netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. netlink: 44 bytes leftover after parsing attributes in process `syz.0.0'. ================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x31/0x190 lib/list_debug.c:49 Read of size 8 at addr ffff88801f0a74f0 by task syz.0.0/5315 CPU: 0 UID: 0 PID: 5315 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 mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x31/0x190 lib/list_debug.c:49 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] gfs2_remove_from_journal+0x250/0x6b0 fs/gfs2/meta_io.c:352 gfs2_journal_wipe+0x3b3/0x8b0 fs/gfs2/meta_io.c:461 sweep_bh_for_rgrps fs/gfs2/bmap.c:1590 [inline] punch_hole+0x2563/0x3b40 fs/gfs2/bmap.c:1871 gfs2_iomap_end+0x5e7/0x7b0 fs/gfs2/bmap.c:1189 iomap_iter+0x2eb/0xf30 fs/iomap/iter.c:81 iomap_file_buffered_write+0x92f/0xb30 fs/iomap/buffered-io.c:1210 gfs2_file_buffered_write+0x4eb/0x870 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x976/0x1130 fs/gfs2/file.c:1166 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f383c99bf79 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:00007f383d836028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f383cc16180 RCX: 00007f383c99bf79 RDX: 000000000208e24b RSI: 0000200000000000 RDI: 0000000000000048 RBP: 00007f383ca327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f383cc16218 R14: 00007f383cc16180 R15: 00007ffc3a770bc8 Allocated by task 5315: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4459 [inline] slab_alloc_node mm/slub.c:4788 [inline] kmem_cache_alloc_noprof+0x2bc/0x650 mm/slub.c:4795 gfs2_alloc_bufdata fs/gfs2/trans.c:173 [inline] gfs2_trans_add_meta+0x2ce/0x960 fs/gfs2/trans.c:276 gfs2_indirect_init+0x100/0x480 fs/gfs2/bmap.c:618 __gfs2_iomap_alloc+0xdfc/0x1ab0 fs/gfs2/bmap.c:752 gfs2_iomap_begin_write fs/gfs2/bmap.c:1070 [inline] gfs2_iomap_begin+0xbcf/0x12a0 fs/gfs2/bmap.c:1133 iomap_iter+0x600/0xf30 fs/iomap/iter.c:110 iomap_file_buffered_write+0x92f/0xb30 fs/iomap/buffered-io.c:1210 gfs2_file_buffered_write+0x4eb/0x870 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x976/0x1130 fs/gfs2/file.c:1166 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5313: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kmem_cache_free+0x180/0x610 mm/slub.c:6212 trans_drain fs/gfs2/log.c:1008 [inline] gfs2_log_flush+0x13cf/0x2510 fs/gfs2/log.c:1154 gfs2_write_inode+0x23f/0x3e0 fs/gfs2/super.c:449 write_inode fs/fs-writeback.c:1582 [inline] __writeback_single_inode+0x75a/0x1060 fs/fs-writeback.c:1813 writeback_single_inode+0x4ac/0xdc0 fs/fs-writeback.c:1869 sync_inode_metadata+0x122/0x1d0 fs/fs-writeback.c:2974 gfs2_fsync+0x1a6/0x370 fs/gfs2/file.c:763 generic_write_sync include/linux/fs.h:2640 [inline] gfs2_file_write_iter+0xee4/0x1130 fs/gfs2/file.c:1168 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88801f0a74d0 which belongs to the cache gfs2_bufdata of size 80 The buggy address is located 32 bytes inside of freed 80-byte region [ffff88801f0a74d0, ffff88801f0a7520) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801f0a7a80 pfn:0x1f0a7 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff8880313a7500 ffff88801cb20ac8 ffff88801cb20ac8 raw: ffff88801f0a7a80 0000000000240018 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5313, tgid 5312 (syz.0.0), ts 75274724470, free_ts 72588790549 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5245 alloc_slab_page mm/slub.c:3238 [inline] allocate_slab+0x77/0x660 mm/slub.c:3411 new_slab mm/slub.c:3469 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7091 refill_sheaf+0x29/0x50 mm/slub.c:2787 alloc_full_sheaf mm/slub.c:2808 [inline] __pcs_replace_empty_main+0x3ef/0x620 mm/slub.c:4546 alloc_from_pcs mm/slub.c:4639 [inline] slab_alloc_node mm/slub.c:4773 [inline] kmem_cache_alloc_noprof+0x37d/0x650 mm/slub.c:4795 gfs2_alloc_bufdata fs/gfs2/trans.c:173 [inline] gfs2_trans_add_meta+0x2ce/0x960 fs/gfs2/trans.c:276 gfs2_alloc_extent fs/gfs2/rgrp.c:2237 [inline] gfs2_alloc_blocks+0x7ae/0x2090 fs/gfs2/rgrp.c:2447 alloc_dinode+0x252/0x560 fs/gfs2/inode.c:436 gfs2_create_inode+0xc4a/0x1630 fs/gfs2/inode.c:822 gfs2_atomic_open+0x116/0x200 fs/gfs2/inode.c:1402 atomic_open+0x14f/0x370 fs/namei.c:4336 lookup_open fs/namei.c:4449 [inline] open_last_lookups fs/namei.c:4583 [inline] path_openat+0x10e9/0x3860 fs/namei.c:4827 do_file_open+0x23e/0x4a0 fs/namei.c:4859 page last free pid 72 tgid 72 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] free_unref_folios+0xdce/0x1510 mm/page_alloc.c:3035 shrink_folio_list+0x4930/0x5160 mm/vmscan.c:1603 evict_folios+0x4795/0x5880 mm/vmscan.c:4711 try_to_shrink_lruvec+0x88b/0xb20 mm/vmscan.c:4874 shrink_one+0x25c/0x710 mm/vmscan.c:4919 shrink_many mm/vmscan.c:4982 [inline] lru_gen_shrink_node mm/vmscan.c:5060 [inline] shrink_node+0x2f8b/0x35f0 mm/vmscan.c:6047 kswapd_shrink_node mm/vmscan.c:6901 [inline] balance_pgdat mm/vmscan.c:7084 [inline] kswapd+0x144c/0x2800 mm/vmscan.c:7354 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88801f0a7380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801f0a7400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801f0a7480: fc fc fc fc fc fc fc fc fc fc fa fb fb fb fb fb ^ ffff88801f0a7500: fb fb fb fb fc fc fc fc fa fb fb fb fb fb fb fb ffff88801f0a7580: fb fb fc fc fc fc fa fb fb fb fb fb fb fb fb fb ==================================================================