ci2 starts bisection 2023-07-09 23:10:54.865179479 +0000 UTC m=+198448.445734096 bisecting fixing commit since e5282a7d8f6b604f2bb6a06457734b8cf1e2f8f2 building syzkaller on a4ae4f428721da42ac15f07d6f3b54584dedee27 ensuring issue is reproducible on original commit e5282a7d8f6b604f2bb6a06457734b8cf1e2f8f2 testing commit e5282a7d8f6b604f2bb6a06457734b8cf1e2f8f2 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 89099dd83b2c9f31a90a9d3f03cd0dda5e2c1d6b5d675fe70c64033842ea1e69 all runs: crashed: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key representative crash: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit e5282a7d8f6b604f2bb6a06457734b8cf1e2f8f2 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 599dc66c8fd1aff5328069982a9f82e2beac347f77bfb85bef5e7719462beeba all runs: crashed: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key representative crash: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 testing commit 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5e71cec757bf1dbee05c83c816354a2ec5b26d8d127dd10c6810fa471b53e033 all runs: crashed: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key representative crash: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 3, total time: 3h8m6.113882791s (build: 2h44m53.044739793s, test: 9m29.36107347s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Linux 6.5-rc1 crash: KASAN: slab-out-of-bounds Write in hfs_bnode_read_key loop0: detected capacity change from 0 to 64 hfs: unable to locate alternate MDB hfs: continuing without an alternate MDB ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_page include/linux/highmem.h:417 [inline] BUG: KASAN: slab-out-of-bounds in hfs_bnode_read fs/hfs/bnode.c:35 [inline] BUG: KASAN: slab-out-of-bounds in hfs_bnode_read_key+0x1cc/0x3d0 fs/hfs/bnode.c:70 Write of size 256 at addr ffff88802b46b980 by task syz-executor.0/5415 CPU: 1 PID: 5415 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x167/0x220 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 memcpy_from_page include/linux/highmem.h:417 [inline] hfs_bnode_read fs/hfs/bnode.c:35 [inline] hfs_bnode_read_key+0x1cc/0x3d0 fs/hfs/bnode.c:70 hfs_brec_insert+0x65e/0xc90 fs/hfs/brec.c:141 hfs_cat_create+0x52e/0x8b0 fs/hfs/catalog.c:131 hfs_create+0x5f/0xb0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xf26/0x2c10 fs/namei.c:3790 do_filp_open+0x22a/0x440 fs/namei.c:3820 do_sys_openat2+0xf6/0x170 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1433 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f11d748c169 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:00007f11d81ee168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f11d75abf80 RCX: 00007f11d748c169 RDX: 0000000000141842 RSI: 0000000020000380 RDI: ffffffffffffff9c RBP: 00007f11d74e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc413c21ef R14: 00007f11d81ee300 R15: 0000000000022000 Allocated by task 5415: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0xaa/0x1d0 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [inline] hfs_find_init+0x8a/0x1c0 fs/hfs/bfind.c:21 hfs_cat_create+0x169/0x8b0 fs/hfs/catalog.c:96 hfs_create+0x5f/0xb0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xf26/0x2c10 fs/namei.c:3790 do_filp_open+0x22a/0x440 fs/namei.c:3820 do_sys_openat2+0xf6/0x170 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1433 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xad/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xba/0x730 kernel/rcu/tree.c:3368 cfg80211_update_known_bss+0x114/0x850 __cfg80211_bss_update+0x126/0x17d0 net/wireless/scan.c:1788 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2881 [inline] cfg80211_inform_bss_frame_data+0xb0c/0x1460 net/wireless/scan.c:2912 ieee80211_bss_info_update+0x66a/0x990 net/mac80211/scan.c:211 ieee80211_rx_bss_info net/mac80211/ibss.c:1124 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1613 [inline] ieee80211_ibss_rx_queued_mgmt+0x1162/0x2460 net/mac80211/ibss.c:1642 ieee80211_iface_process_skb net/mac80211/iface.c:1604 [inline] ieee80211_iface_work+0x558/0x940 net/mac80211/iface.c:1658 cfg80211_wiphy_work+0x1dc/0x220 net/wireless/core.c:435 process_one_work+0x7e4/0xf40 kernel/workqueue.c:2597 worker_thread+0x80a/0xe70 kernel/workqueue.c:2748 kthread+0x233/0x280 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff88802b46b980 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of allocated 78-byte region [ffff88802b46b980, ffff88802b46b9ce) The buggy address belongs to the physical page: page:ffffea0000ad1ac0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2b46b flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888010c41780 ffffea0000a56bc0 0000000000000004 raw: 0000000000000000 0000000080200020 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 1032, tgid 1032 (kworker/u4:5), ts 54276978988, free_ts 54123556355 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x26e/0x290 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x3238/0x33d0 mm/page_alloc.c:3221 __alloc_pages+0x255/0x650 mm/page_alloc.c:4477 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_slab_page+0x59/0x160 mm/slub.c:1864 allocate_slab mm/slub.c:2009 [inline] new_slab+0x70/0x260 mm/slub.c:2062 ___slab_alloc+0x946/0xe90 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x221/0x2f0 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc_node+0x9c/0x1d0 mm/slab_common.c:992 kmalloc_array_node include/linux/slab.h:680 [inline] kcalloc_node include/linux/slab.h:685 [inline] memcg_alloc_slab_cgroups+0x81/0x120 mm/memcontrol.c:2899 account_slab mm/slab.h:636 [inline] allocate_slab mm/slub.c:2027 [inline] new_slab+0xaa/0x260 mm/slub.c:2062 ___slab_alloc+0x946/0xe90 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] slab_alloc mm/slub.c:3478 [inline] __kmem_cache_alloc_lru mm/slub.c:3485 [inline] kmem_cache_alloc_lru+0x1a2/0x2a0 mm/slub.c:3501 alloc_inode_sb include/linux/fs.h:2729 [inline] alloc_inode fs/inode.c:262 [inline] new_inode_pseudo+0x75/0x180 fs/inode.c:1018 new_inode+0x1e/0x1b0 fs/inode.c:1046 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x110/0x490 fs/debugfs/inode.c:430 nsim_dev_psample_init+0x219/0x530 drivers/net/netdevsim/psample.c:218 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x817/0x940 mm/page_alloc.c:2348 free_unref_page+0x37/0x3c0 mm/page_alloc.c:2443 discard_slab mm/slub.c:2108 [inline] __unfreeze_partials+0x1cc/0x210 mm/slub.c:2647 put_cpu_partial+0xf8/0x130 mm/slub.c:2723 __slab_free+0x2b6/0x390 mm/slub.c:3671 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x67/0x410 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] kmem_cache_alloc_node+0x1c3/0x380 mm/slub.c:3515 __alloc_skb+0x1e4/0x8b0 net/core/skbuff.c:634 alloc_skb include/linux/skbuff.h:1289 [inline] nlmsg_new include/net/netlink.h:1003 [inline] inet6_netconf_notify_devconf+0x74/0x100 net/ipv6/addrconf.c:581 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7122 [inline] addrconf_sysctl_unregister net/ipv6/addrconf.c:7146 [inline] addrconf_ifdown+0x136a/0x1650 net/ipv6/addrconf.c:3908 addrconf_notify+0x19a/0xca0 notifier_call_chain+0x10f/0x220 kernel/notifier.c:93 call_netdevice_notifiers_info net/core/dev.c:1962 [inline] call_netdevice_notifiers_extack net/core/dev.c:2000 [inline] call_netdevice_notifiers net/core/dev.c:2014 [inline] unregister_netdevice_many_notify+0x101e/0x17f0 net/core/dev.c:10850 Memory state around the buggy address: ffff88802b46b880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88802b46b900: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff88802b46b980: 00 00 00 00 00 00 00 00 00 06 fc fc fc fc fc fc ^ ffff88802b46ba00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88802b46ba80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================