ci2 starts bisection 2024-03-08 01:07:44.389815022 +0000 UTC m=+43054.944680838 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: ace1b090984908ce027dd21cd9d7786fea586509e93c7d970af0a4720ba2d57e 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 [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 kernel signature: 6bc2a7170bdefa0bf3ef989095d6ae78b734cc4a5162423d6543137d11715aa3 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 bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], 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 [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: 3fe77f97ef94120ba58125a1a8ac11c997792eef02381ebe50c3e578b3ee8458 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 [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: d3170d50d483858a01b9d4f6d1f66b0819a98889af5f088f8ceaa88ff150de69 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 [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 kernel signature: 1047cd5655d7d72a0c97424260d157df355f78691caf454d847e6bfb6d0da3af 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] the chunk can be dropped testing without sub-chunk 4/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: 98dfddd4392b93f29969f995368ae81e7ccfb12572a63a998a1f9339bbfafaaa 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 chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD dd976ecce2ce969d698599c84c8e7dcbb07c9aaf testing commit dd976ecce2ce969d698599c84c8e7dcbb07c9aaf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dd717772ab292f195d7dc7f7e73e662c45eef36fa43e014c7ce9f6f5bf524368 run #0: crashed: KASAN: use-after-free Read in macsec_get_iflink run #1: OK 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] crash still not fixed/happens on the oldest tested release reproducer is flaky (0.15 repro chance estimate) revisions tested: 7, total time: 1h20m44.537522547s (build: 14m33.192392527s, test: 1h4m46.739453005s) crash still not fixed or there were kernel test errors commit msg: Merge "Merge branch 'android13-5.10' into branch 'android13-5.10-lts'" into android13-5.10-lts crash: KASAN: use-after-free Read in macsec_get_iflink device veth1_vlan entered promiscuous mode device macsec1 entered promiscuous mode device veth1_vlan 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 ffff888122dc8100 by task syz-executor.1/602 CPU: 1 PID: 602 Comm: syz-executor.1 Not tainted 5.10.209-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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:0x7f2b789ffda9 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:00007f2b785820c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2b78b2ef80 RCX: 00007f2b789ffda9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007f2b78a4c47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f2b78b2ef80 R15: 00007ffcb3c61e58 Allocated by task 362: 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 veth_newlink+0x1a6/0x950 drivers/net/veth.c:1344 __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 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 606: 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 ffff888122dc8000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 256 bytes inside of 4096-byte region [ffff888122dc8000, ffff888122dc9000) The buggy address belongs to the page: page:ffffea00048b7200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122dc8 head:ffffea00048b7200 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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 368, ts 59816875010, 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] __kmalloc_track_caller+0x325/0x360 mm/slub.c:4536 __kmalloc_reserve net/core/skbuff.c:143 [inline] __alloc_skb+0x74/0x4d0 net/core/skbuff.c:211 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] rtmsg_ifinfo_build_skb+0x70/0x160 net/core/rtnetlink.c:3841 rtmsg_ifinfo_event net/core/rtnetlink.c:3877 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3868 [inline] rtmsg_ifinfo+0x65/0x110 net/core/rtnetlink.c:3886 __dev_notify_flags+0x233/0x3b0 net/core/dev.c:8548 dev_change_flags+0xf0/0x150 net/core/dev.c:8590 do_setlink+0x7e2/0x2fd0 net/core/rtnetlink.c:2729 __rtnl_newlink+0xa11/0x14e0 net/core/rtnetlink.c:3407 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 page_owner free stack trace missing Memory state around the buggy address: ffff888122dc8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888122dc8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888122dc8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888122dc8180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888122dc8200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================