ci2 starts bisection 2024-06-01 06:14:29.896252653 +0000 UTC m=+30504.930612637 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: 36e75a1c58df9a41eb9414c677e7605dff201537825ccec3a3e9483dbdc35758 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: ab71db24c8b9c7e81cdbea4ac7c96b8369ad8dc497ef7c4f22f83602c5ccffd6 all runs: OK false negative chance: 0.122 kconfig minimization: base=4789 full=6022 leaves diff=241 split chunks (needed=false): <241> split chunk #0 of len 241 into 5 parts testing without sub-chunk 1/5 testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 27dc8ce467cfff192222013c96783085e826a301e1a68f96374820c9fbb28f81 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: lost connection to test machine 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 UNKNOWN] the chunk can be dropped testing without sub-chunk 2/5 testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e6f550c0bb43f9c9d4ae7c6322710fd4cbc120cb80da2db4ad759d9a17d34636 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 3/5 testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0840bcccba61da4ab3fe0ff0004ad2c9a6f25d78d6e8ecfd5978d090014cac0b 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 testing commit 1a7db4583e18ca49cb3babc08be65afcb4f32925 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4982472f4e66c53dcccf951dc4968e3e27c1d82bb01d1455df1a2a82d874330d 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] testing without sub-chunk 5/5 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 94 configs; suspects: [HID_ZEROPLUS SND SOUND USB_CONFIGFS USB_CONFIGFS_F_FS USB_CONFIGFS_F_HID USB_CONFIGFS_F_LB_SS USB_CONFIGFS_F_MIDI USB_CONFIGFS_F_PRINTER USB_CONFIGFS_F_UAC1 USB_CONFIGFS_F_UAC1_LEGACY USB_CONFIGFS_F_UAC2 USB_CONFIGFS_F_UVC USB_CONFIGFS_MASS_STORAGE USB_CONFIGFS_NCM USB_CONFIGFS_OBEX USB_CONFIGFS_RNDIS USB_CONFIGFS_SERIAL USB_CONFIGFS_UEVENT USB_EHCI_ROOT_HUB_TT USB_EHSET_TEST_FIXTURE USB_F_ACC USB_F_ACM USB_F_AUDIO_SRC USB_F_ECM USB_F_EEM USB_F_FS USB_F_HID USB_F_MASS_STORAGE USB_F_MIDI USB_F_NCM USB_F_OBEX USB_F_PRINTER USB_F_RNDIS USB_F_SERIAL USB_F_SS_LB USB_F_SUBSET USB_F_UAC1 USB_F_UAC1_LEGACY USB_F_UAC2 USB_F_UVC USB_GADGET_DEBUG_FILES USB_GADGET_DEBUG_FS USB_IPHETH USB_ISP1760 USB_ISP1760_HCD USB_ISP1760_HOST_ROLE USB_LIBCOMPOSITE USB_LINK_LAYER_TEST USB_MON USB_NET_CDC_MBIM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_DM9601 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] testing current HEAD a8e7f812fbc15d931311179614ea38730b6bcf09 testing commit a8e7f812fbc15d931311179614ea38730b6bcf09 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3ad00acd10670c53de0cc5f11ce5e118ad00dfcd337e8d00d28d94e8bec1ed03 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: crashed: KASAN: use-after-free Read in macsec_get_iflink run #5: crashed: KASAN: use-after-free Read in macsec_get_iflink run #6: crashed: KASAN: use-after-free Read in macsec_get_iflink 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.20 repro chance estimate) revisions tested: 7, total time: 1h21m46.640353471s (build: 16m31.750307413s, test: 1h3m59.669155142s) crash still not fixed or there were kernel test errors commit msg: ANDROID: cpufreq: brcmstb-avs-cpufreq: fix build error crash: KASAN: use-after-free Read in macsec_get_iflink 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 ffff8881075fe100 by task syz-executor.3/463 CPU: 0 PID: 463 Comm: syz-executor.3 Not tainted 5.10.214-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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/0xbc0 net/core/dev.c:10310 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0x355/0x9e0 net/core/rtnetlink.c:5608 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5625 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:0x7fe4001a1da9 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:00007fe3ffd240c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fe4002d0f80 RCX: 00007fe4001a1da9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007fe4001ee47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000004d R14: 00007fe4002d0f80 R15: 00007ffc0af05018 Allocated by task 364: 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/0x380 mm/slub.c:4033 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x25/0xa0 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+0x34d/0x9e0 net/core/rtnetlink.c:5607 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5625 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 466: 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/0x210 drivers/base/core.c:2122 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x156/0x210 lib/kobject.c:761 netdev_run_todo+0x6d6/0xbc0 net/core/dev.c:10331 rtnl_unlock net/core/rtnetlink.c:112 [inline] rtnetlink_rcv_msg+0x355/0x9e0 net/core/rtnetlink.c:5608 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2497 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5625 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 ffff8881075fe000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 256 bytes inside of 4096-byte region [ffff8881075fe000, ffff8881075ff000) The buggy address belongs to the page: page:ffffea00041d7e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1075f8 head:ffffea00041d7e00 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 1416408809, 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+0x204a/0x2e30 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x2470 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+0x33e/0x750 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+0x4aa/0x520 mm/slub.c:2972 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] kobject_uevent_env+0x1c3/0xff0 lib/kobject_uevent.c:524 kobject_uevent+0xb/0x10 lib/kobject_uevent.c:642 kernel_add_sysfs_param kernel/params.c:798 [inline] param_sysfs_builtin kernel/params.c:833 [inline] param_sysfs_init+0x28f/0x2ea kernel/params.c:954 do_one_initcall+0x92/0x300 init/main.c:1195 do_initcall_level init/main.c:1268 [inline] do_initcalls init/main.c:1284 [inline] do_basic_setup init/main.c:1304 [inline] kernel_init_freeable+0x509/0x55d init/main.c:1508 kernel_init+0xd/0x111 init/main.c:1395 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 page_owner free stack trace missing Memory state around the buggy address: ffff8881075fe000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881075fe080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881075fe100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881075fe180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881075fe200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================