ci2 starts bisection 2024-11-19 17:43:37.402507729 +0000 UTC m=+4318.259656680 bisecting fixing commit since 5c7d0d4f4a388a17a5b2f312902215265500b52b building syzkaller on 5643e0e933eb9fd69bb78740a8f3967b4d37bc0e ensuring issue is reproducible on original commit 5c7d0d4f4a388a17a5b2f312902215265500b52b testing commit 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6198753880c278e240d9b8b03babfd1b8b4aa904f6652056a9af1925fd62e00f 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] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d99f640fb22e12151fe10e8f8eecd0132ddb46c5ba66c8a3c1442c9568810803 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] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed kconfig minimization: base=5179 full=6543 leaves diff=263 split chunks (needed=false): <263> split chunk #0 of len 263 into 5 parts testing without sub-chunk 1/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 464e6525b2cb99d9f7f634a0fbda6f37b5e7369f4efaa9814198dd1bf73632a7 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] 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 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5db61d4b391dfe1c67b4921f70211c569884569d9c46dd551c318c7e87f18c4d run #0: crashed: KASAN: use-after-free Write in steam_input_open run #1: crashed: KASAN: use-after-free Read in input_dev_uevent 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_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_open 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_open, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1e113ea95c23b8034b45936b7cf8a1bbcc297dd5e2059056236968adf228de7b 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] 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 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b95fa87afb11cbefbca51c390c91db2c8082cbbcd2c29b64e06887d65e0dd3fc 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] 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 5c7d0d4f4a388a17a5b2f312902215265500b52b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building 5c7d0d4f4a388a17a5b2f312902215265500b52b: net/socket.c:1245: undefined reference to `wext_handle_ioctl' net/socket.c:3442: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:329: undefined reference to `wext_proc_init' net/core/net-procfs.c:345: undefined reference to `wext_proc_exit' minimized to 51 configs; suspects: [HID_ZEROPLUS 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_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 V4L2_ASYNC V4L2_FWNODE VIDEO_CAMERA_SENSOR WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_PURELIFI WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_SILABS WLAN_VENDOR_ZYDAS X86_X32_ABI ZEROPLUS_FF] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 4a105e4e1c7acd61d2da80929e5e4d4e40999913 testing commit 4a105e4e1c7acd61d2da80929e5e4d4e40999913 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 094770c361f1263981e4e63aa3476aacacab8965d88f25f571ab7afe56f6d5bb 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_open 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_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] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h39m51.280329476s (build: 1h8m45.922409391s, test: 28m39.236141175s) crash still not fixed or there were kernel test errors commit msg: ANDROID: ABI: Update pixel 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:102 [inline] BUG: KASAN: use-after-free in atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1779 [inline] BUG: KASAN: use-after-free in __mutex_trylock_fast kernel/locking/mutex.c:176 [inline] BUG: KASAN: use-after-free in mutex_lock+0xa4/0x1e0 kernel/locking/mutex.c:295 Write of size 8 at addr ffff88812af90850 by task acpid/83 CPU: 1 PID: 83 Comm: acpid Not tainted 6.1.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:427 kasan_report+0x13c/0x170 mm/kasan/report.c:531 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1779 [inline] __mutex_trylock_fast kernel/locking/mutex.c:176 [inline] mutex_lock+0xa4/0x1e0 kernel/locking/mutex.c:295 steam_input_open+0x8c/0x180 drivers/hid/hid-steam.c:297 input_open_device+0x148/0x2d0 drivers/input/input.c:650 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x344/0x520 drivers/input/evdev.c:487 chrdev_open+0x364/0x570 fs/char_dev.c:414 do_dentry_open+0x620/0xdc0 fs/open.c:884 vfs_open+0x6e/0x80 fs/open.c:1015 do_open fs/namei.c:3627 [inline] path_openat+0x1eb0/0x2440 fs/namei.c:3784 do_filp_open+0x226/0x430 fs/namei.c:3811 do_sys_openat2+0x103/0x6e0 fs/open.c:1341 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x209/0x250 fs/open.c:1368 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f20cec3e9a4 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:00007ffd68068210 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ffd68068518 RCX: 00007f20cec3e9a4 RDX: 0000000000080800 RSI: 00007ffd680683f8 RDI: 00000000ffffff9c RBP: 00007ffd680683f8 R08: 00000000000000f4 R09: 00007ffd680683f8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080800 R13: 0000000000000060 R14: 00007ffd680684f8 R15: 00007ffd680683f8 Allocated by task 476: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x9c/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xa8/0x180 mm/slab_common.c:958 alloc_dr drivers/base/devres.c:116 [inline] devm_kmalloc+0x40/0x140 drivers/base/devres.c:826 devm_kzalloc include/linux/device.h:211 [inline] steam_probe+0xf0/0xb10 drivers/hid/hid-steam.c:741 hid_device_probe+0x21c/0x2e0 drivers/hid/hid-core.c:2624 really_probe+0x214/0x760 drivers/base/dd.c:639 __driver_probe_device+0x146/0x2b0 drivers/base/dd.c:808 driver_probe_device+0x4f/0x350 drivers/base/dd.c:838 __device_attach_driver+0x294/0x350 drivers/base/dd.c:966 bus_for_each_drv+0x152/0x1b0 drivers/base/bus.c:427 __device_attach+0x2bc/0x450 drivers/base/dd.c:1038 device_initial_probe+0xe/0x10 drivers/base/dd.c:1087 bus_probe_device+0x8d/0x190 drivers/base/bus.c:487 device_add+0x718/0xc20 drivers/base/core.c:3692 hid_add_device+0x301/0x470 drivers/hid/hid-core.c:2776 usbhid_probe+0xb18/0xf30 drivers/hid/usbhid/hid-core.c:1424 usb_probe_interface+0x466/0x8e0 drivers/usb/core/driver.c:397 really_probe+0x214/0x760 drivers/base/dd.c:639 __driver_probe_device+0x146/0x2b0 drivers/base/dd.c:808 driver_probe_device+0x4f/0x350 drivers/base/dd.c:838 __device_attach_driver+0x294/0x350 drivers/base/dd.c:966 bus_for_each_drv+0x152/0x1b0 drivers/base/bus.c:427 __device_attach+0x2bc/0x450 drivers/base/dd.c:1038 device_initial_probe+0xe/0x10 drivers/base/dd.c:1087 bus_probe_device+0x8d/0x190 drivers/base/bus.c:487 device_add+0x718/0xc20 drivers/base/core.c:3692 usb_set_configuration+0x158b/0x1b80 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x66/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd2/0x1e0 drivers/usb/core/driver.c:294 really_probe+0x214/0x760 drivers/base/dd.c:639 __driver_probe_device+0x146/0x2b0 drivers/base/dd.c:808 driver_probe_device+0x4f/0x350 drivers/base/dd.c:838 __device_attach_driver+0x294/0x350 drivers/base/dd.c:966 bus_for_each_drv+0x152/0x1b0 drivers/base/bus.c:427 __device_attach+0x2bc/0x450 drivers/base/dd.c:1038 device_initial_probe+0xe/0x10 drivers/base/dd.c:1087 bus_probe_device+0x8d/0x190 drivers/base/bus.c:487 device_add+0x718/0xc20 drivers/base/core.c:3692 usb_new_device+0xd7f/0x16a0 drivers/usb/core/hub.c:2645 hub_port_connect drivers/usb/core/hub.c:5554 [inline] hub_port_connect_change drivers/usb/core/hub.c:5694 [inline] port_event drivers/usb/core/hub.c:5854 [inline] hub_event+0x2211/0x3a10 drivers/usb/core/hub.c:5936 process_one_work+0x6de/0xd00 kernel/workqueue.c:2299 process_scheduled_works kernel/workqueue.c:2362 [inline] worker_thread+0xb8f/0xf20 kernel/workqueue.c:2448 kthread+0x215/0x270 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 475: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x131/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1745 [inline] slab_free_freelist_hook mm/slub.c:1771 [inline] slab_free mm/slub.c:3686 [inline] __kmem_cache_free+0x1fa/0x3c0 mm/slub.c:3702 kfree+0x7a/0xf0 mm/slab_common.c:990 release_nodes+0x70/0x1b0 drivers/base/devres.c:503 devres_release_all+0x153/0x1a0 drivers/base/devres.c:532 device_unbind_cleanup drivers/base/dd.c:530 [inline] __device_release_driver drivers/base/dd.c:1288 [inline] device_release_driver_internal+0x50b/0x790 drivers/base/dd.c:1309 device_release_driver+0xd/0x10 drivers/base/dd.c:1332 bus_remove_device+0x229/0x300 drivers/base/bus.c:529 device_del+0x558/0xc00 drivers/base/core.c:3880 hid_remove_device drivers/hid/hid-core.c:2824 [inline] hid_destroy_device+0x49/0xf0 drivers/hid/hid-core.c:2843 usbhid_disconnect+0x94/0xb0 drivers/hid/usbhid/hid-core.c:1451 usb_unbind_interface+0x171/0x720 drivers/usb/core/driver.c:459 device_remove drivers/base/dd.c:550 [inline] __device_release_driver drivers/base/dd.c:1283 [inline] device_release_driver_internal+0x4a8/0x790 drivers/base/dd.c:1309 device_release_driver+0xd/0x10 drivers/base/dd.c:1332 bus_remove_device+0x229/0x300 drivers/base/bus.c:529 device_del+0x558/0xc00 drivers/base/core.c:3880 usb_disable_device+0x2b8/0x570 drivers/usb/core/message.c:1414 usb_disconnect+0x2b8/0x790 drivers/usb/core/hub.c:2300 hub_port_connect drivers/usb/core/hub.c:5393 [inline] hub_port_connect_change drivers/usb/core/hub.c:5694 [inline] port_event drivers/usb/core/hub.c:5854 [inline] hub_event+0x15de/0x3a10 drivers/usb/core/hub.c:5936 process_one_work+0x6de/0xd00 kernel/workqueue.c:2299 worker_thread+0x892/0xf20 kernel/workqueue.c:2446 kthread+0x215/0x270 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88812af90800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 80 bytes inside of 512-byte region [ffff88812af90800, ffff88812af90a00) The buggy address belongs to the physical page: page:ffffea0004abe400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12af90 head:ffffea0004abe400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 334, tgid 334 (syz-executor), ts 27500266998, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2590 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2597 get_page_from_freelist+0x29f1/0x2a70 mm/page_alloc.c:4439 __alloc_pages+0x234/0x610 mm/page_alloc.c:5728 alloc_slab_page+0x6c/0xf0 allocate_slab mm/slub.c:1962 [inline] new_slab+0x7b/0x370 mm/slub.c:2015 ___slab_alloc+0x611/0x9a0 mm/slub.c:3203 __slab_alloc+0x52/0x90 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] __kmem_cache_alloc_node+0x207/0x2a0 mm/slub.c:3462 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc+0x99/0x1a0 mm/slab_common.c:951 kmalloc include/linux/slab.h:562 [inline] kzalloc include/linux/slab.h:693 [inline] fib6_info_alloc+0x29/0xc0 net/ipv6/ip6_fib.c:156 ip6_route_info_create+0x3de/0x12e0 net/ipv6/route.c:3757 ip6_route_add+0x18/0xe0 net/ipv6/route.c:3851 addrconf_add_mroute net/ipv6/addrconf.c:2529 [inline] addrconf_add_dev+0x33c/0x4b0 net/ipv6/addrconf.c:2547 inet6_addr_add+0x107/0x8e0 net/ipv6/addrconf.c:2986 inet6_rtm_newaddr+0x8f5/0x23d0 net/ipv6/addrconf.c:4981 rtnetlink_rcv_msg+0x6bd/0xb70 net/core/rtnetlink.c:6121 page_owner free stack trace missing Memory state around the buggy address: ffff88812af90700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812af90780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812af90800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812af90880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812af90900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== hid 0003:28DE:1102.0023: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0023: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0023: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0023: No HID_FEATURE_REPORT submitted - nothing to read hid 0003:28DE:1102.0023: No HID_FEATURE_REPORT submitted - nothing to read