ci2 starts bisection 2023-05-02 20:35:10.440954936 +0000 UTC m=+39170.386876919 bisecting fixing commit since faf68e3523c21d07c5f7fdabd0daf6301ff8db3f building syzkaller on f4470a7b5efeb021c66c8fb38656bcb2b1597974 ensuring issue is reproducible on original commit faf68e3523c21d07c5f7fdabd0daf6301ff8db3f testing commit faf68e3523c21d07c5f7fdabd0daf6301ff8db3f gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 13fe718d82ea9158bc1933865e3ed5578c124ef97ab8277a45008ce0b0f7e29b all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read testing current HEAD 7df047b3f0aa0c0ba730b6be9ab35c0053a3d4fd testing commit 7df047b3f0aa0c0ba730b6be9ab35c0053a3d4fd gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 594d213dd27d40226056741ca6ed48bb4917fb06b3e6533f397c10b35db4d69b all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read revisions tested: 2, total time: 59m41.715652658s (build: 50m51.593313337s, test: 6m58.711572565s) the crash still happens on HEAD commit msg: Merge tag 'vfio-v6.4-rc1' of https://github.com/awilliam/linux-vfio crash: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read loop0: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 393216 in B*Tree hfsplus: request for non-existent node 393216 in B*Tree ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xa4/0x190 Read of size 8 at addr ffff88801aea77c0 by task syz-executor.0/5427 CPU: 1 PID: 5427 Comm: syz-executor.0 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: dump_stack_lvl+0x12e/0x1d0 print_report+0x163/0x510 kasan_report+0x108/0x140 hfsplus_bnode_read+0xa4/0x190 hfsplus_bnode_dump+0x2d8/0x4a0 hfsplus_brec_remove+0x3c2/0x470 __hfsplus_delete_attr+0x216/0x3d0 hfsplus_delete_all_attrs+0x22a/0x350 hfsplus_delete_cat+0xa80/0xfd0 hfsplus_unlink+0x2dc/0x660 vfs_unlink+0x2b4/0x4c0 do_unlinkat+0x404/0x800 __x64_sys_unlink+0x44/0x50 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f022048c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f022126a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f02205abf80 RCX: 00007f022048c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f02204e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff4cce594f R14: 00007f022126a300 R15: 0000000000022000 Allocated by task 5427: kasan_set_track+0x40/0x60 __kasan_kmalloc+0x98/0xb0 __kmalloc+0xb9/0x230 __hfs_bnode_create+0xe1/0x7a0 hfsplus_bnode_find+0x2a8/0xc00 hfsplus_brec_find+0x130/0x490 hfsplus_delete_all_attrs+0x211/0x350 hfsplus_delete_cat+0xa80/0xfd0 hfsplus_unlink+0x2dc/0x660 vfs_unlink+0x2b4/0x4c0 do_unlinkat+0x404/0x800 __x64_sys_unlink+0x44/0x50 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x2f/0x50 __kasan_record_aux_stack+0xb0/0xc0 insert_work+0x4f/0x330 __queue_work+0x886/0xb30 queue_work_on+0xde/0x180 call_usermodehelper_exec+0x2b5/0x3c0 kobject_uevent_env+0x5f6/0x6e0 kernel_add_sysfs_param+0xb3/0xe0 param_sysfs_builtin+0x183/0x220 param_sysfs_builtin_init+0x1e/0x30 do_one_initcall+0x199/0x550 do_initcall_level+0x125/0x1b0 do_initcalls+0x56/0xa0 kernel_init_freeable+0x35a/0x4b0 kernel_init+0x18/0x1a0 ret_from_fork+0x1f/0x30 The buggy address belongs to the object at ffff88801aea7700 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 40 bytes to the right of allocated 152-byte region [ffff88801aea7700, ffff88801aea7798) The buggy address belongs to the physical page: page:ffffea00006ba9c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1aea7 ksm flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888011041a00 ffffea00006c81c0 dead000000000003 raw: 0000000000000000 0000000080100010 00000001ffffffff 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 9327108577, free_ts 8966763483 get_page_from_freelist+0x31bf/0x3340 __alloc_pages+0x255/0x670 alloc_page_interleave+0xf/0x140 alloc_slab_page+0x6a/0x160 new_slab+0x84/0x2f0 ___slab_alloc+0xa07/0x1000 __kmem_cache_alloc_node+0x1b8/0x290 kmalloc_trace+0x2a/0xe0 call_usermodehelper_setup+0x77/0x220 kobject_uevent_env+0x5e1/0x6e0 kernel_add_sysfs_param+0xb3/0xe0 param_sysfs_builtin+0x183/0x220 param_sysfs_builtin_init+0x1e/0x30 do_one_initcall+0x199/0x550 do_initcall_level+0x125/0x1b0 do_initcalls+0x56/0xa0 page last free stack trace: free_unref_page_prepare+0x8fe/0xa10 free_unref_page+0x37/0x3f0 vfree+0x11f/0x240 delayed_vfree_work+0x3c/0x70 process_one_work+0x7c4/0xe70 worker_thread+0x8c9/0xfd0 kthread+0x276/0x2f0 ret_from_fork+0x1f/0x30 Memory state around the buggy address: ffff88801aea7680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801aea7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801aea7780: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801aea7800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801aea7880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================