ci2 starts bisection 2024-04-28 02:03:24.408756795 +0000 UTC m=+83936.818062332 bisecting fixing commit since 1a7db4583e18ca49cb3babc08be65afcb4f32925 building syzkaller on cc4a4020ecb6d62110981f597feea0c04a643efa ensuring issue is reproducible on original commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e2ec6ed78591cc9ed4db833ddf41538061d562810b90dc59e1611ca2ef9dc144 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0ac955971102fc4a294f8d690c3c4733a84a0295f580286b5bcff107a643eefa run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: crashed: KASAN: use-after-free Read in macsec_get_iflink run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed kconfig minimization: base=4789 full=6022 leaves diff=238 split chunks (needed=false): <238> split chunk #0 of len 238 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 32cbb65cf2ffb86e64bca688e088fffc0d1c0d9fb9cef9a04e8b0c232d039c62 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 61f2034ed90eb5c60d1882c3fcdd60bb8bb62ce0c3e1b9f57a4bbd70b6f3f3f9 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4d754b411b20a8db98de9caecbbf8dc2761d8727b93e1bf6e8260ac39afcdd0e run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 232ed42f1d6be521ff3307692d6f0663ca0eddedb01c10b6a524402dd8129aa5 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 1a7db4583e18ca49cb3babc08be65afcb4f32925: net/socket.c:1128: undefined reference to `wext_handle_ioctl' net/socket.c:3397: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346: undefined reference to `wext_proc_exit' net/core/net-procfs.c:330: undefined reference to `wext_proc_init' minimized to 46 configs; suspects: [HID_ZEROPLUS USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing current HEAD 70b6ab09a34b4cbcada982b2f5c68a408a5c0cde testing commit 70b6ab09a34b4cbcada982b2f5c68a408a5c0cde gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2f67d1dcd86907f30358afd97f7d699eb5b81965a11a71eb9cbda8826dd07d84 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: crashed: KASAN: use-after-free Read in macsec_get_iflink run #2: crashed: KASAN: use-after-free Read in macsec_get_iflink run #3: crashed: KASAN: use-after-free Read in macsec_get_iflink run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in macsec_get_iflink, types: [KASAN] crash still not fixed/happens on the oldest tested release reproducer is flaky (0.10 repro chance estimate) revisions tested: 7, total time: 1h42m33.300955579s (build: 17m5.893260429s, test: 1h24m6.141243118s) crash still not fixed or there were kernel test errors commit msg: Revert "hrtimer: Report offline hrtimer enqueue" crash: KASAN: use-after-free Read in macsec_get_iflink device dummy0 entered promiscuous mode device macsec1 entered promiscuous mode device dummy0 left promiscuous mode ================================================================== BUG: KASAN: use-after-free in macsec_get_iflink+0x62/0x70 drivers/net/macsec.c:3654 Read of size 4 at addr ffff888122406100 by task syz-executor.0/485 CPU: 0 PID: 485 Comm: syz-executor.0 Not tainted 5.10.210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 macsec_get_iflink+0x62/0x70 drivers/net/macsec.c:3654 dev_get_iflink+0x64/0xc0 net/core/dev.c:824 rfc2863_policy+0x1bb/0x230 net/core/link_watch.c:41 linkwatch_do_dev+0x28/0xf0 net/core/link_watch.c:160 linkwatch_forget_dev+0x157/0x200 net/core/link_watch.c:238 netdev_wait_allrefs net/core/dev.c:10195 [inline] netdev_run_todo+0x234/0xb10 net/core/dev.c:10310 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0x33c/0x970 net/core/rtnetlink.c:5609 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5626 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 ____sys_sendmsg+0x694/0x990 net/socket.c:2376 ___sys_sendmsg+0xfc/0x190 net/socket.c:2430 __sys_sendmsg+0xc3/0x160 net/socket.c:2459 __do_sys_sendmsg net/socket.c:2468 [inline] __se_sys_sendmsg net/socket.c:2466 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2466 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f3c49af2da9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3c496750c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f3c49c21f80 RCX: 00007f3c49af2da9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007f3c49b3f47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000004d R14: 00007f3c49c21f80 R15: 00007fff4197e658 Allocated by task 384: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] ____kasan_kmalloc mm/kasan/common.c:468 [inline] __kasan_kmalloc+0xae/0xe0 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1cd/0x360 mm/slub.c:4033 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x25/0x90 mm/util.c:612 kvmalloc include/linux/mm.h:822 [inline] kvzalloc include/linux/mm.h:830 [inline] alloc_netdev_mqs+0x5d/0xdc0 net/core/dev.c:10506 rtnl_create_link+0x1e2/0xb80 net/core/rtnetlink.c:3192 __rtnl_newlink+0xcdd/0x14e0 net/core/rtnetlink.c:3469 rtnl_newlink+0x5f/0x90 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x334/0x970 net/core/rtnetlink.c:5608 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5626 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 __sys_sendto+0x1e3/0x2f0 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xdc/0x1a0 net/socket.c:2014 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 Freed by task 491: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:362 [inline] ____kasan_slab_free mm/kasan/common.c:324 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1595 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1621 slab_free mm/slub.c:3203 [inline] kfree+0xc2/0x4e0 mm/slub.c:4191 kvfree+0x25/0x30 mm/util.c:647 netdev_freemem+0x47/0x60 net/core/dev.c:10460 netdev_release+0x68/0x80 net/core/net-sysfs.c:1886 device_release+0x9d/0x1a0 drivers/base/core.c:2122 kobject_cleanup+0xb5/0x180 lib/kobject.c:713 kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x45/0x60 lib/kobject.c:761 netdev_run_todo+0x6a6/0xb10 net/core/dev.c:10331 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0x33c/0x970 net/core/rtnetlink.c:5609 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5626 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 ____sys_sendmsg+0x694/0x990 net/socket.c:2376 ___sys_sendmsg+0xfc/0x190 net/socket.c:2430 __sys_sendmsg+0xc3/0x160 net/socket.c:2459 __do_sys_sendmsg net/socket.c:2468 [inline] __se_sys_sendmsg net/socket.c:2466 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2466 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 The buggy address belongs to the object at ffff888122406000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 256 bytes inside of 4096-byte region [ffff888122406000, ffff888122407000) The buggy address belongs to the page: page:ffffea0004890000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122400 head:ffffea0004890000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042c00 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 388, ts 68908902763, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x2360 mm/page_alloc.c:5346 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1665 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1808 new_slab mm/slub.c:1869 [inline] new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2791 __slab_alloc mm/slub.c:2831 [inline] slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc_trace+0x4a2/0x500 mm/slub.c:2972 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] snmp6_alloc_dev net/ipv6/addrconf.c:354 [inline] ipv6_add_dev.part.0+0x489/0xf90 net/ipv6/addrconf.c:403 ipv6_add_dev net/ipv6/addrconf.c:376 [inline] addrconf_notify+0x60a/0x1c50 net/ipv6/addrconf.c:3550 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8e/0xd0 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_info net/core/dev.c:2039 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] register_netdevice+0xc10/0x14a0 net/core/dev.c:10067 veth_newlink+0x448/0x950 drivers/net/veth.c:1387 __rtnl_newlink+0xdb8/0x14e0 net/core/rtnetlink.c:3479 rtnl_newlink+0x5f/0x90 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x334/0x970 net/core/rtnetlink.c:5608 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5626 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1348 page_owner free stack trace missing Memory state around the buggy address: ffff888122406000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888122406080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888122406100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888122406180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888122406200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================