JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_match fs/ocfs2/dir.c:334 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_search_dirblock+0x26b/0x830 fs/ocfs2/dir.c:367 Read of size 1 at addr ffff8880364d0f42 by task syz.0.17/5620 CPU: 0 UID: 0 PID: 5620 Comm: syz.0.17 Not tainted 6.11.0-rc5-syzkaller-00176-g20371ba12063 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 ocfs2_match fs/ocfs2/dir.c:334 [inline] ocfs2_search_dirblock+0x26b/0x830 fs/ocfs2/dir.c:367 ocfs2_find_entry_id fs/ocfs2/dir.c:414 [inline] ocfs2_find_entry+0x1169/0x2780 fs/ocfs2/dir.c:1078 ocfs2_find_files_on_disk+0xff/0x360 fs/ocfs2/dir.c:1980 ocfs2_lookup_ino_from_name+0xb1/0x1e0 fs/ocfs2/dir.c:2002 ocfs2_lookup+0x292/0xa60 fs/ocfs2/namei.c:122 lookup_open fs/namei.c:3556 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0x11cc/0x3470 fs/namei.c:3883 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3fa09799b9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3fa1727038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3fa0b15f80 RCX: 00007f3fa09799b9 RDX: 0000000000105042 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f3fa09e78d8 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001ff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3fa0b15f80 R15: 00007fff5e610cb8 Allocated by task 1: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4044 __proc_create+0x44f/0xa50 fs/proc/generic.c:425 proc_create_reg fs/proc/generic.c:552 [inline] proc_create_data+0x128/0x2c0 fs/proc/generic.c:572 __snd_info_register sound/core/info.c:793 [inline] snd_info_register+0x1db/0x300 sound/core/info.c:818 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_card_register+0x50/0x190 sound/core/info.c:509 snd_card_register+0x4fc/0x6c0 sound/core/init.c:913 loopback_probe+0xeb6/0x14f0 sound/drivers/aloop.c:1829 platform_probe+0x13a/0x1c0 drivers/base/platform.c:1404 really_probe+0x2b8/0xad0 drivers/base/dd.c:657 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:799 driver_probe_device+0x50/0x430 drivers/base/dd.c:829 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:957 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:457 __device_attach+0x333/0x520 drivers/base/dd.c:1029 bus_probe_device+0x189/0x260 drivers/base/bus.c:532 device_add+0x856/0xbf0 drivers/base/core.c:3682 platform_device_add+0x45d/0x7c0 drivers/base/platform.c:716 platform_device_register_full+0x5eb/0x6f0 drivers/base/platform.c:844 platform_device_register_resndata include/linux/platform_device.h:169 [inline] platform_device_register_simple include/linux/platform_device.h:198 [inline] alsa_card_loopback_init+0x15d/0x2e0 sound/drivers/aloop.c:1887 do_one_initcall+0x248/0x880 init/main.c:1267 do_initcall_level+0x157/0x210 init/main.c:1329 do_initcalls+0x3f/0x80 init/main.c:1345 kernel_init_freeable+0x435/0x5d0 init/main.c:1578 kernel_init+0x1d/0x2b0 init/main.c:1467 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff8880364d0dc0 which belongs to the cache proc_dir_entry of size 256 The buggy address is located 130 bytes to the right of allocated 256-byte region [ffff8880364d0dc0, ffff8880364d0ec0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x364d0 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 04fff00000000000 ffff8880163748c0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000001fdffffff 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 23812193436, free_ts 23382684759 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3439 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2321 allocate_slab+0x5a/0x2f0 mm/slub.c:2484 new_slab mm/slub.c:2537 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3723 __slab_alloc+0x58/0xa0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] kmem_cache_alloc_noprof+0x1c1/0x2a0 mm/slub.c:4044 __proc_create+0x44f/0xa50 fs/proc/generic.c:425 proc_create_reg fs/proc/generic.c:552 [inline] proc_create_data+0x128/0x2c0 fs/proc/generic.c:572 __snd_info_register sound/core/info.c:793 [inline] snd_info_register+0x1db/0x300 sound/core/info.c:818 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_register+0x265/0x300 sound/core/info.c:824 snd_info_card_register+0x50/0x190 sound/core/info.c:509 snd_card_register+0x4fc/0x6c0 sound/core/init.c:913 page last free pid 8 tgid 8 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0xd22/0xea0 mm/page_alloc.c:2612 vfree+0x186/0x2e0 mm/vmalloc.c:3364 delayed_vfree_work+0x56/0x80 mm/vmalloc.c:3285 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd10 kernel/workqueue.c:3389 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff8880364d0e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880364d0e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880364d0f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880364d0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880364d1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================