ci2 starts bisection 2025-01-15 21:40:37.155445843 +0000 UTC m=+13279.209735746 bisecting fixing commit since ab7c0abef9cf6d23f68065b7a20e80a9852bdfad building syzkaller on 578925bcbcaef470c75aea9e463ca6a44ac10c17 ensuring issue is reproducible on original commit ab7c0abef9cf6d23f68065b7a20e80a9852bdfad testing commit ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e5fa1d72f0ace5cc0d638940d618771202ed17afe6378bfd9dbb0aa3504af5cb run #0: crashed: KASAN: use-after-free Write in steam_input_close run #1: crashed: KASAN: use-after-free Write in steam_input_open run #2: crashed: KASAN: use-after-free Write in steam_input_close run #3: crashed: KASAN: use-after-free Write in steam_input_open run #4: crashed: KASAN: use-after-free Write in steam_input_close run #5: crashed: KASAN: use-after-free Write in steam_input_close run #6: crashed: KASAN: use-after-free Write in steam_input_close run #7: crashed: KASAN: use-after-free Write in steam_input_close run #8: crashed: KASAN: use-after-free Write in steam_input_open run #9: crashed: KASAN: use-after-free Write in steam_input_open run #10: crashed: KASAN: use-after-free Write in steam_input_open run #11: crashed: KASAN: use-after-free Write in steam_input_close run #12: crashed: KASAN: use-after-free Write in steam_input_open run #13: crashed: KASAN: use-after-free Read in input_dev_uevent run #14: crashed: KASAN: use-after-free Write in steam_input_open run #15: crashed: KASAN: use-after-free Write in steam_input_open run #16: crashed: KASAN: use-after-free Write in steam_input_close run #17: crashed: KASAN: use-after-free Write in steam_input_close run #18: crashed: KASAN: use-after-free Write in steam_input_close run #19: crashed: KASAN: use-after-free Write in steam_input_open representative crash: KASAN: use-after-free Write in steam_input_close, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9cd78f75049d7f1f23ee4a67d514beb86d67d6b8151201e066c859a169c92828 run #0: crashed: KASAN: use-after-free Write in steam_input_open run #1: crashed: KASAN: use-after-free Write in steam_input_open run #2: crashed: KASAN: use-after-free Write in steam_input_close run #3: crashed: KASAN: use-after-free Write in steam_input_open run #4: crashed: KASAN: use-after-free Write in steam_input_open run #5: crashed: KASAN: use-after-free Write in steam_input_close run #6: crashed: KASAN: use-after-free Write in steam_input_open run #7: crashed: KASAN: use-after-free Write in steam_input_close run #8: crashed: KASAN: use-after-free Write in steam_input_close run #9: crashed: KASAN: use-after-free Write in steam_input_close representative crash: KASAN: use-after-free Write in steam_input_open, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=4789 full=6020 leaves diff=243 split chunks (needed=false): <243> split chunk #0 of len 243 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 ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5f9c89722628f481a2610eafda8d15ff39c3c4066acee6aa7b056d345c764720 run #0: crashed: KASAN: use-after-free Write in steam_input_close run #1: crashed: KASAN: use-after-free Write in steam_input_close run #2: crashed: KASAN: use-after-free Write in steam_input_open run #3: crashed: KASAN: use-after-free Read in steam_send_report run #4: crashed: KASAN: use-after-free Write in steam_input_close run #5: crashed: KASAN: use-after-free Write in steam_input_close run #6: crashed: KASAN: use-after-free Write in steam_input_close run #7: crashed: KASAN: use-after-free Read in steam_send_report run #8: crashed: KASAN: use-after-free Write in steam_input_close run #9: crashed: KASAN: use-after-free Write in steam_input_close representative crash: KASAN: use-after-free Write in steam_input_close, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2c70c13625ef54f1cb318e8fee196868bfe24b5c2b6d779bb2ffbf1aac7a8b24 run #0: crashed: KASAN: use-after-free Write in steam_input_open run #1: crashed: KASAN: use-after-free Write in steam_input_close run #2: crashed: KASAN: use-after-free Write in steam_input_close run #3: crashed: KASAN: use-after-free Write in steam_input_open run #4: crashed: KASAN: use-after-free Write in steam_input_close run #5: crashed: KASAN: use-after-free Write in steam_input_open run #6: crashed: KASAN: use-after-free Write in steam_input_close run #7: crashed: KASAN: use-after-free Write in steam_input_open run #8: crashed: KASAN: use-after-free Write in steam_input_close run #9: crashed: KASAN: use-after-free Write in steam_input_close representative crash: KASAN: use-after-free Write in steam_input_open, 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 ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a1fed8d4def51d75fe578df2af1788fe610d4f72da729fe1e7764f3e3998a46 run #0: crashed: KASAN: use-after-free Write in steam_input_close run #1: crashed: KASAN: use-after-free Write in steam_input_open run #2: crashed: KASAN: use-after-free Write in steam_input_open run #3: crashed: KASAN: use-after-free Write in steam_input_close run #4: crashed: KASAN: use-after-free Write in steam_input_close run #5: crashed: KASAN: use-after-free Write in steam_input_close run #6: crashed: KASAN: use-after-free Write in steam_input_open run #7: crashed: KASAN: use-after-free Write in steam_input_close run #8: crashed: KASAN: use-after-free Write in steam_input_open run #9: crashed: KASAN: use-after-free Write in steam_input_open representative crash: KASAN: use-after-free Write in steam_input_close, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: eba3473048ad9e8a7122ebbe89f80b288721ccd2e6ce25c8c8d693d16ca4f4dc run #0: crashed: KASAN: use-after-free Write in steam_input_open run #1: crashed: KASAN: use-after-free Write in steam_input_close run #2: crashed: KASAN: use-after-free Write in steam_input_close run #3: crashed: KASAN: use-after-free Write in steam_input_close run #4: crashed: KASAN: use-after-free Write in steam_input_open run #5: crashed: KASAN: use-after-free Write in steam_input_open run #6: crashed: KASAN: use-after-free Write in steam_input_open run #7: crashed: KASAN: use-after-free Write in steam_input_close run #8: crashed: KASAN: use-after-free Write in steam_input_close run #9: crashed: KASAN: use-after-free Write in steam_input_open representative crash: KASAN: use-after-free Write in steam_input_open, 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 ab7c0abef9cf6d23f68065b7a20e80a9852bdfad gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building ab7c0abef9cf6d23f68065b7a20e80a9852bdfad: 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 47 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 USB_XHCI_PCI_RENESAS 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 fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e9a388ededd820f07a9ec9da6a2ca8bf0e1b3d4a63bd9fd0b7fdfaec8d5216a7 all runs: crashed: KASAN: use-after-free Write in steam_input_open representative crash: KASAN: use-after-free Write in steam_input_open, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h2m8.919505482s (build: 16m29.561912793s, test: 43m56.90025147s) crash still not fixed or there were kernel test errors commit msg: ANDROID: GKI: virtual_device: add blk_mq_quiesce_queue_nowait to the symbol list crash: KASAN: use-after-free Write in steam_input_open ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: use-after-free in atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1515 [inline] BUG: KASAN: use-after-free in atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] BUG: KASAN: use-after-free in __mutex_trylock_fast kernel/locking/mutex.c:173 [inline] BUG: KASAN: use-after-free in mutex_lock+0x6b/0xd0 kernel/locking/mutex.c:298 Write of size 8 at addr ffff88811802a440 by task udevd/510 CPU: 0 PID: 510 Comm: udevd Not tainted 5.10.233-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic64_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:1515 [inline] atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:443 [inline] __mutex_trylock_fast kernel/locking/mutex.c:173 [inline] mutex_lock+0x6b/0xd0 kernel/locking/mutex.c:298 steam_input_open+0x3e/0xa0 drivers/hid/hid-steam.c:297 input_open_device+0x136/0x280 drivers/input/input.c:635 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x48a/0x630 drivers/input/evdev.c:487 chrdev_open+0x237/0x6a0 fs/char_dev.c:414 do_dentry_open+0x412/0x1010 fs/open.c:819 vfs_open+0x9a/0xc0 fs/open.c:942 do_open fs/namei.c:3391 [inline] path_openat+0x1e4e/0x3950 fs/namei.c:3509 do_filp_open+0x193/0x3d0 fs/namei.c:3536 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1244 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f13223ac9a4 Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffce1ebb5b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f13223ac9a4 RDX: 0000000000080000 RSI: 0000558de5ae2710 RDI: 00000000ffffff9c RBP: 0000558de5ae2710 R08: 0000558de5af7ee8 R09: fffffffffffffe98 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 00007ffce1ebb778 R14: 0000000000000000 R15: 0000558da879ced5 Allocated by task 0: (stack is not available) Freed by task 358: 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 release_nodes+0x3ef/0x8a0 drivers/base/devres.c:524 devres_release_all+0x72/0xb0 drivers/base/devres.c:545 __device_release_driver+0x361/0x6f0 drivers/base/dd.c:1190 device_release_driver_internal drivers/base/dd.c:1221 [inline] device_release_driver+0x24/0x40 drivers/base/dd.c:1244 bus_remove_device+0x2a9/0x470 drivers/base/bus.c:535 device_del+0x507/0xbb0 drivers/base/core.c:3452 hid_remove_device drivers/hid/hid-core.c:2501 [inline] hid_destroy_device+0xc2/0x130 drivers/hid/hid-core.c:2520 usbhid_disconnect+0x99/0xc0 drivers/hid/usbhid/hid-core.c:1445 usb_unbind_interface+0x185/0x7b0 drivers/usb/core/driver.c:459 __device_release_driver+0x351/0x6f0 drivers/base/dd.c:1188 device_release_driver_internal drivers/base/dd.c:1221 [inline] device_release_driver+0x24/0x40 drivers/base/dd.c:1244 bus_remove_device+0x2a9/0x470 drivers/base/bus.c:535 device_del+0x507/0xbb0 drivers/base/core.c:3452 usb_disable_device+0x26d/0x500 drivers/usb/core/message.c:1411 usb_disconnect.cold+0x1e7/0x651 drivers/usb/core/hub.c:2271 hub_port_connect drivers/usb/core/hub.c:5296 [inline] hub_port_connect_change drivers/usb/core/hub.c:5597 [inline] port_event drivers/usb/core/hub.c:5747 [inline] hub_event+0x13a6/0x36a0 drivers/usb/core/hub.c:5829 process_one_work+0x5f5/0xe40 kernel/workqueue.c:2301 worker_thread+0x402/0xcd0 kernel/workqueue.c:2447 kthread+0x345/0x420 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88811802a400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff88811802a400, ffff88811802a600) The buggy address belongs to the page: page:ffffea0004600a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118028 head:ffffea0004600a00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 129, ts 5742513404, 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/0x23d0 mm/page_alloc.c:5348 __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] fib6_info_alloc+0x82/0x160 net/ipv6/ip6_fib.c:154 ip6_route_info_create+0x312/0x1b90 net/ipv6/route.c:3667 ip6_route_add+0x18/0x100 net/ipv6/route.c:3761 addrconf_prefix_route+0x1fc/0x2d0 net/ipv6/addrconf.c:2461 inet6_addr_add+0x49f/0x8b0 net/ipv6/addrconf.c:3016 inet6_rtm_newaddr+0x5d3/0x18c0 net/ipv6/addrconf.c:4957 rtnetlink_rcv_msg+0x334/0x970 net/core/rtnetlink.c:5607 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2485 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:5625 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1901 page_owner free stack trace missing Memory state around the buggy address: ffff88811802a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811802a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811802a400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811802a480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811802a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0013: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0027: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0027: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0027: No HID_FEATURE_REPORT submitted - nothing to read