Message ID | cover.1685645613.git.boris@bur.io (mailing list archive) |
---|---|
Headers | show |
Series | btrfs: fix logical_to_ino panic in btrfs_map_bio | expand |
On Thu, Jun 01, 2023 at 11:55:12AM -0700, Boris Burkov wrote: > The gory details are in the second patch, but it is possible to panic > the kernel by running the ioctl BTRFS_IOC_LOGICAL_INO (and V2 of that > ioctl). > > The TL;DR of the problem is that we do not properly handle logging a > move from a push_node_left btree balancing operation in the tree mod > log, so it is possible for backref walking using the tree mod log to > construct an invalid extent_buffer and ultimately try to map invalid > bios for block 0 which ultimately hits a null pointer error and panics. > > The patch set introduces additional bookkeeping in tree mod log to warn > on this issue and also fixes the issue itself. > > --- > Changelog: > v4: > - actually include the changes to Patch 1 cited in v3, my mistake. Added to misc-next, thanks.