ci2 starts bisection 2023-04-02 11:08:39.575023156 +0000 UTC m=+351620.588682140 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: 11974b71f0a4d4a19b3cf572ee20b201704f7b4f96febffee1ca4bec4023d0db all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read testing current HEAD 00c7b5f4ddc5b346df62b757ec73f9357bb452af testing commit 00c7b5f4ddc5b346df62b757ec73f9357bb452af gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a86e59e1a0c485f3618884a1112801cfa5f08c32a53188af3ba3564a441411c9 all runs: crashed: KASAN: slab-out-of-bounds Read in hfsplus_bnode_read revisions tested: 2, total time: 38m37.788689854s (build: 29m17.850066236s, test: 6m38.476040252s) the crash still happens on HEAD commit msg: Merge tag 'input-for-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 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 ffff88801fb8d9c0 by task syz-executor.0/5602 CPU: 1 PID: 5602 Comm: syz-executor.0 Not tainted 6.3.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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+0x3fe/0x7f0 __x64_sys_unlink+0x44/0x50 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f23f7c8c0d9 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:00007f23f6ffe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f23f7dabf80 RCX: 00007f23f7c8c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f23f7ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9f64b8af R14: 00007f23f6ffe300 R15: 0000000000022000 Allocated by task 5602: 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+0x3fe/0x7f0 __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 call_rcu+0x167/0xa30 replace+0x1a4/0x450 resize+0x167c/0x1f40 fib_remove_alias+0x2ba/0x3f0 fib_table_delete+0xe23/0x1160 fib_del_ifaddr+0x1b2d/0x28b0 fib_inetaddr_event+0xfd/0x290 blocking_notifier_call_chain+0xf8/0x130 __inet_del_ifa+0x70c/0xd00 inetdev_event+0x273/0x11b0 raw_notifier_call_chain+0xc8/0x100 unregister_netdevice_many_notify+0xbfe/0x1560 default_device_exit_batch+0x3ee/0x560 cleanup_net+0x6d4/0xa30 process_one_work+0x7c4/0xe70 worker_thread+0x8c9/0xfd0 kthread+0x232/0x2b0 ret_from_fork+0x1f/0x30 The buggy address belongs to the object at ffff88801fb8d900 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 [ffff88801fb8d900, ffff88801fb8d998) The buggy address belongs to the physical page: page:ffffea00007ee340 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fb8d flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888011041a00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 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 6973384067, free_ts 0 get_page_from_freelist+0x31e9/0x3360 __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 device_add+0x6f4/0xd90 device_create+0x21b/0x2a0 mon_bin_add+0x85/0xf0 mon_bus_init+0x164/0x280 mon_notify+0x2a/0x350 blocking_notifier_call_chain+0xf8/0x130 page_owner free stack trace missing Memory state around the buggy address: ffff88801fb8d880: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff88801fb8d900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801fb8d980: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801fb8da00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801fb8da80: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================