ci starts bisection 2023-01-30 18:26:34.798256176 +0000 UTC m=+688508.744318260 bisecting fixing commit since 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 building syzkaller on 67be1ae742603edad9c97d30b6ed69f9bbe2ffa8 ensuring issue is reproducible on original commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 testing commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 094690658ae44ab61e6e2ae5b55f9237f01529ee03cd8e8cfa7779d7a809ebf9 all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read testing current HEAD c0b67534c95c537f7a506a06b98e5e85d72e2b7d testing commit c0b67534c95c537f7a506a06b98e5e85d72e2b7d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 04d9e5556ebd0649fece694ab3d3ea03e7257ab80d9c37d079fdb9ae85dd55ad all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read revisions tested: 2, total time: 24m47.760645237s (build: 17m12.073714942s, test: 6m46.978982922s) the crash still happens on HEAD commit msg: Merge tag 'cgroup-for-6.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup 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+0x11a/0x130 fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff888026f614c0 by task syz-executor.0/5626 CPU: 1 PID: 5626 Comm: syz-executor.0 Not tainted 6.2.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x5b/0x81 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:306 [inline] print_report+0x15e/0x45d mm/kasan/report.c:417 kasan_report+0xbf/0x1f0 mm/kasan/report.c:517 hfsplus_bnode_read+0x11a/0x130 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_u16 fs/hfsplus/bnode.c:45 [inline] hfsplus_bnode_dump+0x1fa/0x310 fs/hfsplus/bnode.c:321 hfsplus_brec_remove+0x326/0x430 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x1f1/0x340 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x1ff/0x280 fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x768/0xd80 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x19a/0x770 fs/hfsplus/dir.c:385 vfs_unlink+0x295/0x810 fs/namei.c:4252 do_unlinkat+0x2f7/0x530 fs/namei.c:4320 __do_sys_unlink fs/namei.c:4368 [inline] __se_sys_unlink fs/namei.c:4366 [inline] __x64_sys_unlink+0xa4/0xe0 fs/namei.c:4366 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f291828c0d9 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:00007f2918fb3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f29183abf80 RCX: 00007f291828c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f29182e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd26f3847f R14: 00007f2918fb3300 R15: 0000000000022000 Allocated by task 5626: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] ____kasan_kmalloc mm/kasan/common.c:330 [inline] __kasan_kmalloc+0xa5/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc+0x5a/0xd0 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] __hfs_bnode_create+0xf0/0x750 fs/hfsplus/bnode.c:409 hfsplus_bnode_find+0x348/0xa70 fs/hfsplus/bnode.c:486 hfsplus_brec_find+0x256/0x450 fs/hfsplus/bfind.c:183 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x1eb/0x280 fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0x768/0xd80 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x19a/0x770 fs/hfsplus/dir.c:385 vfs_unlink+0x295/0x810 fs/namei.c:4252 do_unlinkat+0x2f7/0x530 fs/namei.c:4320 __do_sys_unlink fs/namei.c:4368 [inline] __se_sys_unlink fs/namei.c:4366 [inline] __x64_sys_unlink+0xa4/0xe0 fs/namei.c:4366 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:488 insert_work+0x43/0x2e0 kernel/workqueue.c:1358 __queue_work+0x546/0xfc0 kernel/workqueue.c:1517 queue_work_on+0x74/0x90 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:503 [inline] call_usermodehelper_exec+0x198/0x430 kernel/umh.c:437 kobject_uevent_env+0xc4e/0x12d0 lib/kobject_uevent.c:618 kernel_add_sysfs_param kernel/params.c:816 [inline] param_sysfs_builtin kernel/params.c:851 [inline] param_sysfs_builtin_init+0x27b/0x31b kernel/params.c:985 do_one_initcall+0xf8/0x560 init/main.c:1306 do_initcall_level init/main.c:1379 [inline] do_initcalls init/main.c:1395 [inline] do_basic_setup init/main.c:1414 [inline] kernel_init_freeable+0x5df/0x639 init/main.c:1634 kernel_init+0x18/0x130 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff888026f61400 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes to the right of 192-byte region [ffff888026f61400, ffff888026f614c0) The buggy address belongs to the physical page: page:ffffea00009bd840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26f61 ksm flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888011441a00 ffffea00009ea1c0 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 6263012216, free_ts 6260707845 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x119c/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5549 alloc_page_interleave+0xf/0x1c0 mm/mempolicy.c:2119 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x350 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292 __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x1a4/0x430 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0x4b/0xc0 mm/slab_common.c:988 __do_krealloc mm/slab_common.c:1365 [inline] krealloc+0x5e/0x100 mm/slab_common.c:1398 add_sysfs_param+0xaf/0x900 kernel/params.c:651 kernel_add_sysfs_param kernel/params.c:812 [inline] param_sysfs_builtin kernel/params.c:851 [inline] param_sysfs_builtin_init+0x23e/0x31b kernel/params.c:985 do_one_initcall+0xf8/0x560 init/main.c:1306 do_initcall_level init/main.c:1379 [inline] do_initcalls init/main.c:1395 [inline] do_basic_setup init/main.c:1414 [inline] kernel_init_freeable+0x5df/0x639 init/main.c:1634 kernel_init+0x18/0x130 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x65c/0xc00 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3464 __vunmap+0x66e/0xb40 mm/vmalloc.c:2727 free_work+0x4f/0x70 mm/vmalloc.c:100 process_one_work+0x8ba/0x14c0 kernel/workqueue.c:2289 worker_thread+0x59c/0xec0 kernel/workqueue.c:2436 kthread+0x298/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff888026f61380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888026f61400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888026f61480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888026f61500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888026f61580: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ==================================================================