ci starts bisection 2023-06-01 22:38:48.422542279 +0000 UTC m=+31081.920496833 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: b0078889777cb1d5a35be055245ed02c8df2942105f46a3721aa4a8ec9627c44 all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read testing current HEAD 9e87b63ed37e202c77aa17d4112da6ae0c7c097c testing commit 9e87b63ed37e202c77aa17d4112da6ae0c7c097c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ad66c5a01bf4c0c87018a8dff6fbd5ac3697e6c0cefe6fea451314a4885c0ce5 all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 24m56.943218146s (build: 17m41.316890881s, test: 6m21.770139865s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Merge tag 'fbdev-for-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev 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 ffff88801cd73fc0 by task syz-executor.0/5462 CPU: 1 PID: 5462 Comm: syz-executor.0 Not tainted 6.4.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x64/0xb0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 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+0x24f/0x350 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x1ff/0x2c0 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:4327 do_unlinkat+0x310/0x550 fs/namei.c:4393 __do_sys_unlink fs/namei.c:4441 [inline] __se_sys_unlink fs/namei.c:4439 [inline] __x64_sys_unlink+0xa4/0xe0 fs/namei.c:4439 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:0x7fecf308c0d9 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:00007fecf3e6e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fecf31abf80 RCX: 00007fecf308c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007fecf30e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3a5a7d1f R14: 00007fecf3e6e300 R15: 0000000000022000 Allocated by task 5462: 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:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc+0x5e/0x190 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:680 [inline] __hfs_bnode_create+0xed/0x790 fs/hfsplus/bnode.c:409 hfsplus_bnode_find+0x357/0xa80 fs/hfsplus/bnode.c:486 hfsplus_brec_find+0x256/0x470 fs/hfsplus/bfind.c:183 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x1eb/0x2c0 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:4327 do_unlinkat+0x310/0x550 fs/namei.c:4393 __do_sys_unlink fs/namei.c:4441 [inline] __se_sys_unlink fs/namei.c:4439 [inline] __x64_sys_unlink+0xa4/0xe0 fs/namei.c:4439 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:491 __call_rcu_common.constprop.0+0x99/0x7e0 kernel/rcu/tree.c:2627 inetdev_destroy net/ipv4/devinet.c:329 [inline] inetdev_event+0xd9e/0x12c0 net/ipv4/devinet.c:1606 notifier_call_chain+0x94/0x2a0 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:1973 [inline] call_netdevice_notifiers net/core/dev.c:1987 [inline] unregister_netdevice_many_notify+0x628/0x1620 net/core/dev.c:10882 unregister_netdevice_many net/core/dev.c:10938 [inline] default_device_exit_batch+0x3b5/0x520 net/core/dev.c:11391 cleanup_net+0x427/0x990 net/core/net_namespace.c:614 process_one_work+0x86e/0x1410 kernel/workqueue.c:2405 worker_thread+0x5af/0xf00 kernel/workqueue.c:2552 kthread+0x2ea/0x3c0 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Second to 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:491 insert_work+0x42/0x2f0 kernel/workqueue.c:1365 __queue_work+0x4e9/0xdc0 kernel/workqueue.c:1526 queue_work_on+0x74/0x90 kernel/workqueue.c:1554 queue_work include/linux/workqueue.h:505 [inline] call_usermodehelper_exec+0x19a/0x430 kernel/umh.c:434 kobject_uevent_env+0xc7c/0x14a0 lib/kobject_uevent.c:618 device_add+0xd99/0x1620 drivers/base/core.c:3606 device_create_groups_vargs+0x1c7/0x240 drivers/base/core.c:4302 device_create+0xa5/0xe0 drivers/base/core.c:4341 do_register_framebuffer drivers/video/fbdev/core/fbmem.c:1555 [inline] register_framebuffer+0x283/0x850 drivers/video/fbdev/core/fbmem.c:1676 __drm_fb_helper_initial_config_and_unlock+0xaa0/0x1450 drivers/gpu/drm/drm_fb_helper.c:2227 drm_fbdev_generic_client_hotplug+0x15e/0x210 drivers/gpu/drm/drm_fbdev_generic.c:281 drm_fbdev_generic_setup+0xf5/0x350 drivers/gpu/drm/drm_fbdev_generic.c:343 vkms_create drivers/gpu/drm/vkms/vkms_drv.c:204 [inline] vkms_init+0x588/0x690 drivers/gpu/drm/vkms/vkms_drv.c:230 do_one_initcall+0xc2/0x3c0 init/main.c:1246 do_initcall_level init/main.c:1319 [inline] do_initcalls init/main.c:1335 [inline] do_basic_setup init/main.c:1354 [inline] kernel_init_freeable+0x541/0x950 init/main.c:1571 kernel_init+0x1a/0x1c0 init/main.c:1462 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff88801cd73f00 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 [ffff88801cd73f00, ffff88801cd73f98) The buggy address belongs to the physical page: page:ffffea0000735cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1cd73 anon flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888011441a00 ffffea00005bbc80 dead000000000005 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 2461799039, free_ts 2459220726 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf85/0x2ca0 mm/page_alloc.c:3502 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4768 alloc_page_interleave+0xf/0x1c0 mm/mempolicy.c:2112 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3192 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3291 __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] __kmem_cache_alloc_node+0x136/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] call_usermodehelper_setup+0x83/0x320 kernel/umh.c:363 kobject_uevent_env+0xc5f/0x14a0 lib/kobject_uevent.c:614 driver_register+0x274/0x460 drivers/base/driver.c:254 do_one_initcall+0xc2/0x3c0 init/main.c:1246 do_initcall_level init/main.c:1319 [inline] do_initcalls init/main.c:1335 [inline] do_basic_setup init/main.c:1354 [inline] kernel_init_freeable+0x541/0x950 init/main.c:1571 kernel_init+0x1a/0x1c0 init/main.c:1462 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:1302 [inline] free_unref_page_prepare+0x620/0xc80 mm/page_alloc.c:2564 free_unref_page_list+0xe3/0xa70 mm/page_alloc.c:2705 release_pages+0x320/0x10d0 mm/swap.c:1042 tlb_batch_pages_flush+0x85/0x160 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x114/0x6c0 mm/mmu_gather.c:391 exit_mmap+0x23d/0x750 mm/mmap.c:3123 __mmput+0xf3/0x440 kernel/fork.c:1351 free_bprm+0x11c/0x390 fs/exec.c:1490 kernel_execve+0x332/0x460 fs/exec.c:2024 call_usermodehelper_exec_async+0x235/0x450 kernel/umh.c:110 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff88801cd73e80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801cd73f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801cd73f80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801cd74000: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff88801cd74080: 00 00 00 00 00 00 00 00 05 fc fc fc fc fc fc fc ==================================================================