Skip to content

nilfs2: fix potential issues with empty b-tree nodes

Ryusuke Konishi linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] nilfs2-fix-potential-oob-read-in-nilfs_btree_check_delete.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3nilfs2: fix potential null-ptr-deref in nilfs_btree_insert()fs/nilfs2/btree.c+2 -10 repliesApplied
2/3nilfs2: determine empty node blocks as corruptedfs/nilfs2/btree.c+1 -10 repliesApplied
3/3nilfs2: fix potential oob read in nilfs_btree_check_delete()fs/nilfs2/btree.c+5 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nilfs2: fix potential issues with empty b-tree nodes

Hi Andrew,

please add this series to the queue for the next cycle.

This addresses three potential issues with empty b-tree nodes that can occur with corrupted filesystem images, including one recently discovered by syzbot.

Thanks,
Ryusuke Konishi

Ryusuke Konishi (3):
nilfs2: fix potential null-ptr-deref in nilfs_btree_insert()
nilfs2: determine empty node blocks as corrupted
nilfs2: fix potential oob read in nilfs_btree_check_delete()

 fs/nilfs2/btree.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0