On 2024/12/20 21:51, Dmitry Antipov wrote:
On 12/20/24 4:34 PM, Chao Yu wrote:

I agree w/ you, I've figured out a patch previously, please check it?

Hm... https://syzkaller.appspot.com/bug?extid=e4876215632c2d23b481 and
https://syzkaller.appspot.com/bug?extid=69f5379a1717a0b982a1 looks
identical (but the second one doesn't provide the reproducer). I've

Yes, I think so.

tested this fix locally and submitted to syzbot under the first report
as well (still pending).

I think our solutions are almost the same, I tested my patch w/ reproducer
downloaded from https://syzkaller.appspot.com/x/repro.c?x=13511730580000,
and also w/ below testcase, we can reproduce this bug more directly:

- mkfs.f2fs -f -O extra_attr,flexible_inline_xattr /dev/sdb
- mount -o inline_xattr_size=512 /dev/sdb /mnt/f2fs
- touch /mnt/f2fs/file
- umount /mnt/f2fs
- inject.f2fs --node --mb i_inline --nid 4 --val 0x1 /dev/sdb
- inject.f2fs --node --mb i_inline_xattr_size --nid 4 --val 2048 /dev/sdb
- mount /dev/sdb /mnt/f2fs
- getfattr /mnt/f2fs/file

Thanks,


Dmitry




_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to