mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium EXT4-fs error (device loop0): ext4_find_dest_de:2052: inode #2: block 13: comm syz.0.0: bad entry in directory: directory entry overrun - offset=92, inode=0, rec_len=1024, size=1024 fake=0 EXT4-fs error (device loop0): ext4_validate_block_bitmap:436: comm syz.0.0: bg 0: block 18: invalid block bitmap EXT4-fs error (device loop0) in ext4_mb_clear_bb:6678: Corrupt filesystem EXT4-fs error (device loop0): ext4_read_inode_bitmap:141: comm syz.0.0: Invalid inode bitmap blk 65548 in block_group 0 EXT4-fs error (device loop0) in ext4_free_inode:363: Corrupt filesystem ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x92b/0x1ed0 fs/ext4/xattr.c:1767 Read of size 18446744073709551600 at addr ffff8880545086b8 by task syz.0.0/5352 CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0x92b/0x1ed0 fs/ext4/xattr.c:1767 ext4_xattr_ibody_set+0x262/0x710 fs/ext4/xattr.c:2277 ext4_destroy_inline_data_nolock+0x23a/0x5f0 fs/ext4/inline.c:471 ext4_convert_inline_data_to_extent+0x549/0xde0 fs/ext4/inline.c:630 ext4_write_begin+0x3bd/0x1900 fs/ext4/inode.c:1427 generic_perform_write+0x2d5/0x8e0 mm/filemap.c:4392 ext4_buffered_write_iter+0x139/0x540 fs/ext4/file.c:372 ext4_file_write_iter+0xae4/0x1cd0 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x612/0xba0 fs/read_write.c:667 ksys_pwrite64 fs/read_write.c:774 [inline] __do_sys_pwrite64 fs/read_write.c:782 [inline] __se_sys_pwrite64 fs/read_write.c:779 [inline] __x64_sys_pwrite64+0x210/0x2c0 fs/read_write.c:779 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9a81ba94d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9a829b8fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f9a81e26090 RCX: 00007f9a81ba94d9 RDX: 0000000000000001 RSI: 0000200000001480 RDI: 0000000000000005 RBP: 00007f9a81c3804e R08: 0000000000000000 R09: 0000000000000000 R10: 000000000004fed0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a81e26128 R14: 00007f9a81e26090 R15: 00007ffed916b7e8 The buggy address belongs to the physical page: page: refcount:2 mapcount:0 mapping:ffff88801e825940 index:0xc pfn:0x54508 memcg:ffff88801e2d9680 aops:def_blk_aops ino:700000 dentry name(?):"" flags: 0x4fff38000000a3c(referenced|uptodate|dirty|lru|workingset|owner_2|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff38000000a3c ffffea00015141c8 ffffea0001514248 ffff88801e825940 raw: 000000000000000c ffff888044a6dd20 00000002ffffffff ffff88801e2d9680 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5297, tgid 5297 (udevd), ts 102683715331 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x225d/0x22e0 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5492 alloc_pages_mpol+0x21e/0x390 mm/mempolicy.c:2513 alloc_frozen_pages_noprof mm/mempolicy.c:2584 [inline] alloc_pages_noprof+0xb1/0x2b0 mm/mempolicy.c:2604 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2614 filemap_alloc_folio_noprof+0x111/0x460 mm/filemap.c:1017 ractl_alloc_folio mm/readahead.c:200 [inline] page_cache_ra_unbounded+0x390/0x9d0 mm/readahead.c:288 do_page_cache_ra mm/readahead.c:348 [inline] force_page_cache_ra+0x26c/0x2e0 mm/readahead.c:378 filemap_get_pages+0x48f/0x1ee0 mm/filemap.c:2743 filemap_read+0x421/0x11e0 mm/filemap.c:2853 blkdev_read_iter+0x3c6/0x590 block/fops.c:892 new_sync_read fs/read_write.c:473 [inline] vfs_read+0x595/0xa80 fs/read_write.c:554 ksys_read+0x150/0x270 fs/read_write.c:696 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Memory state around the buggy address: ffff888054508580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888054508600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888054508680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888054508700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888054508780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================