ci2 starts bisection 2025-04-10 20:07:44.248466457 +0000 UTC m=+14175.597549105 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: 76289af208c34dcffab833287fd7831e8b5ad5e9ed2062f5e1e425230f206e71 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_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_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_close 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 steam_send_report run #14: crashed: KASAN: use-after-free Write in steam_input_close run #15: crashed: KASAN: use-after-free Write in steam_input_close 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 [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: 95852835d5f8cbb0b7c078571d7986455c907605646afbed17f855aa0dc83efe 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_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_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 representative crash: KASAN: use-after-free Write in steam_input_close, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], 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 [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: 57f7ed58bc43d80420a436d1f15957e061e17c3e23eb7d7a8b7f9a7ab0ced6f2 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_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_close, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/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: a79fe593855f0d2bf03aa7ddcb742c4da8d6a037507b308ff0b3b8c3a2ea3bad 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_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_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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], 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: d264a801d86dd7c06dafdffd58379344690b0fa5db79dbb6d0c92ee9599e5a8c 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 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_close 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 [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: 9a14ef6760715e7ae3b0b06abff2a61e565e68b4674b96d6193afdc02cf2088a 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_close 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_open representative crash: KASAN: use-after-free Write in steam_input_close, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/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 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD e0b88ee5f09c4906ca93c2f0358c9fd1388f6b36 testing commit e0b88ee5f09c4906ca93c2f0358c9fd1388f6b36 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0f9ee6c8359daeb157292c545c52f258b1ef14d04a82e7036bf9e54e24532755 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: 1h29m57.677674764s (build: 35m7.225950702s, test: 53m10.708829861s) crash still not fixed or there were kernel test errors commit msg: Merge b44253956407 ("usb: xhci: Fix NULL pointer dereference on certain command aborts") into android13-5.10-lts 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 ffff8881182e6440 by task udevd/519 CPU: 0 PID: 519 Comm: udevd Not tainted 5.10.234-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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:0x7f8e751929a4 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:00007ffdbe2e5660 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8e751929a4 RDX: 0000000000080000 RSI: 0000556f86554d40 RDI: 00000000ffffff9c RBP: 0000556f86554d40 R08: 0000556f86586428 R09: 00007f8e7526db10 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 00007ffdbe2e5828 R14: 0000000000000000 R15: 0000556f68debed5 Allocated by task 0: (stack is not available) Freed by task 380: 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:2503 [inline] hid_destroy_device+0xc2/0x130 drivers/hid/hid-core.c:2522 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:5298 [inline] hub_port_connect_change drivers/usb/core/hub.c:5599 [inline] port_event drivers/usb/core/hub.c:5749 [inline] hub_event+0x13a6/0x36a0 drivers/usb/core/hub.c:5831 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 ffff8881182e6400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff8881182e6400, ffff8881182e6600) The buggy address belongs to the page: page:ffffea000460b900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1182e4 head:ffffea000460b900 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000100000001 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 128, ts 5163616822, 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] __kmalloc_track_caller+0x325/0x360 mm/slub.c:4536 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0x74/0x4d0 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] alloc_skb_with_frags+0x76/0x4a0 net/core/skbuff.c:5993 sock_alloc_send_pskb+0x69b/0x850 net/core/sock.c:2388 unix_dgram_sendmsg+0x339/0x1e50 net/unix/af_unix.c:1725 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 sock_write_iter+0x223/0x430 net/socket.c:1018 call_write_iter include/linux/fs.h:2058 [inline] new_sync_write+0x49b/0x6d0 fs/read_write.c:518 vfs_write+0x4e4/0x750 fs/read_write.c:605 ksys_write+0x192/0x210 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:667 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 page_owner free stack trace missing Memory state around the buggy address: ffff8881182e6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881182e6380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881182e6400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881182e6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881182e6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.000B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.000B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.000B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.000B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.000B: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0012: No HID_FEATURE_REPORT submitted - nothing to read