ci2 starts bisection 2024-06-04 13:04:45.796655634 +0000 UTC m=+5665.270895176 bisecting fixing commit since 61cfd264993d07540f60a5c53d77a14c818e54a9 building syzkaller on 5b429f39ae82dfd954322d3f42c830cf560f51d2 ensuring issue is reproducible on original commit 61cfd264993d07540f60a5c53d77a14c818e54a9 testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f176d73d1fee723dc1eba7a21e25055c246d0571b5403867897a920f57317bb0 run #0: crashed: KASAN: use-after-free Read in trylock_super run #1: crashed: KASAN: use-after-free Read in trylock_super run #2: crashed: KASAN: use-after-free Read in trylock_super run #3: crashed: KASAN: use-after-free Read in trylock_super run #4: crashed: KASAN: use-after-free Read in trylock_super run #5: crashed: KASAN: use-after-free Read in trylock_super run #6: crashed: KASAN: use-after-free Read in trylock_super run #7: crashed: KASAN: use-after-free Read in trylock_super run #8: crashed: KASAN: use-after-free Read in trylock_super run #9: crashed: KASAN: use-after-free Read in trylock_super run #10: crashed: KASAN: use-after-free Read in trylock_super run #11: crashed: KASAN: use-after-free Read in trylock_super run #12: crashed: KASAN: use-after-free Read in trylock_super run #13: crashed: KASAN: use-after-free Read in trylock_super run #14: crashed: KASAN: use-after-free Read in trylock_super run #15: crashed: KASAN: use-after-free Read in trylock_super run #16: crashed: KASAN: use-after-free Read in trylock_super run #17: crashed: KASAN: use-after-free Read in trylock_super run #18: crashed: KASAN: use-after-free Read in trylock_super run #19: OK representative crash: KASAN: use-after-free Read in trylock_super, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 75827aee3a81a3a8c9be6748b4cb69604f655edf04624230f7dfa5b8dc20b35e run #0: crashed: lost connection to test machine run #1: crashed: KASAN: use-after-free Read in trylock_super run #2: crashed: KASAN: use-after-free Read in trylock_super run #3: crashed: KASAN: use-after-free Read in trylock_super run #4: crashed: KASAN: use-after-free Read in trylock_super run #5: crashed: KASAN: use-after-free Read in trylock_super run #6: crashed: KASAN: use-after-free Read in trylock_super run #7: crashed: KASAN: use-after-free Read in trylock_super run #8: crashed: KASAN: use-after-free Read in trylock_super run #9: crashed: KASAN: use-after-free Read in trylock_super representative crash: KASAN: use-after-free Read in trylock_super, 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=4920 full=6161 leaves diff=241 split chunks (needed=false): <241> split chunk #0 of len 241 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 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4929f81ab6bc464ab0ddeeac61a7312bea2e814bc7917c2d70f737c747ac568e run #0: crashed: KASAN: use-after-free Read in trylock_super run #1: crashed: KASAN: use-after-free Read in trylock_super run #2: crashed: KASAN: use-after-free Read in trylock_super run #3: crashed: KASAN: use-after-free Read in trylock_super run #4: crashed: KASAN: use-after-free Read in trylock_super run #5: crashed: KASAN: use-after-free Read in trylock_super run #6: crashed: KASAN: use-after-free Read in trylock_super run #7: crashed: KASAN: use-after-free Read in trylock_super run #8: OK run #9: OK representative crash: KASAN: use-after-free Read in trylock_super, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: de2249eaebdf87ea609608cd0461e10ac182127b6ea340e00601d99acf252ff8 all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fc9a9cf0ff5f77acf27478bacac41a3a5ef703d03871af757d9ab14a7516b3ec all runs: crashed: KASAN: use-after-free Read in trylock_super representative crash: KASAN: use-after-free Read in trylock_super, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2009b9346eee6c9899413681f10ac661eb53e4d9b654b287c0b2f2e1d1e145d5 run #0: crashed: KASAN: use-after-free Read in trylock_super run #1: crashed: KASAN: use-after-free Read in trylock_super run #2: crashed: KASAN: use-after-free Read in trylock_super run #3: crashed: KASAN: use-after-free Read in trylock_super run #4: crashed: KASAN: use-after-free Read in trylock_super run #5: crashed: KASAN: use-after-free Read in trylock_super run #6: crashed: KASAN: use-after-free Read in trylock_super run #7: crashed: KASAN: use-after-free Read in trylock_super run #8: OK run #9: OK representative crash: KASAN: use-after-free Read in trylock_super, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 61cfd264993d07540f60a5c53d77a14c818e54a9: net/socket.c:1189: undefined reference to `wext_handle_ioctl' net/socket.c:3383: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:343: undefined reference to `wext_proc_exit' net/core/net-procfs.c:327: undefined reference to `wext_proc_init' minimized to 94 configs; suspects: [FB HID_HOLTEK HID_ORTEK HID_PANTHERLORD HID_PENMOUNT HID_PETALYNX HID_PICOLCD_FB HID_PICOLCD_LEDS HID_PID HID_PRIMAX HID_PRODIKEYS HID_RMI HID_SAITEK HID_SAMSUNG HID_SENSOR_CUSTOM_SENSOR HID_SENSOR_HUB HID_SPEEDLINK HID_STEELSERIES HID_SUNPLUS HID_THINGM HID_TIVO HID_TOPSEED HID_TWINHAN HID_WALTOP HID_XINMO HID_ZEROPLUS HID_ZYDACRON HOLTEK_FF HOTPLUG_PCI HWMON HW_CONSOLE I2C_MUX INPUT_JOYSTICK INPUT_LEDS INPUT_MOUSE INPUT_TOUCHSCREEN INTEGRITY INTEGRITY_AUDIT JOYSTICK_XPAD JOYSTICK_XPAD_FF JOYSTICK_XPAD_LEDS KCOV KCOV_ENABLE_COMPARISONS KCOV_INSTRUMENT_ALL LCD_CLASS_DEVICE LOGIG940_FF LOGIRUMBLEPAD2_FF LOGITECH_FF LOGIWHEELS_FF MEDIA_ANALOG_TV_SUPPORT MEDIA_ATTACH MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_TUNER MFD_CORE NET_DEVLINK NOP_USB_XCEIV PANTHERLORD_FF RADIO_ADAPTERS REGMAP_SPI RESET_CONTROLLER SND SOUND 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 VT 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD 79bd336c7a94039e3d325195b978a04f3b89d2f3 testing commit 79bd336c7a94039e3d325195b978a04f3b89d2f3 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 92148cb7a637d2aaedb9a40e3c710e0f2a8c3fe0c6e08f657aaa519b96ef7f6a run #0: crashed: KASAN: use-after-free Read in trylock_super run #1: crashed: KASAN: use-after-free Read in trylock_super run #2: crashed: KASAN: use-after-free Read in trylock_super run #3: crashed: KASAN: use-after-free Read in trylock_super run #4: crashed: KASAN: use-after-free Read in trylock_super run #5: crashed: KASAN: use-after-free Read in trylock_super run #6: crashed: KASAN: use-after-free Read in trylock_super run #7: boot failed: can't ssh into the instance run #8: crashed: KASAN: use-after-free Read in trylock_super run #9: OK representative crash: KASAN: use-after-free Read in trylock_super, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h32m52.31901606s (build: 20m12.540890767s, test: 1h10m53.016222177s) crash still not fixed or there were kernel test errors commit msg: Merge a585faf05915 ("fs/ntfs3: Fix oob in ntfs_listxattr") into android-mainline crash: KASAN: use-after-free Read in trylock_super ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in atomic_long_read include/linux/atomic/atomic-instrumented.h:1183 [inline] BUG: KASAN: use-after-free in __down_read_trylock kernel/locking/rwsem.c:1331 [inline] BUG: KASAN: use-after-free in down_read_trylock+0x7f/0x300 kernel/locking/rwsem.c:1598 Read of size 8 at addr ffff888115bb2070 by task kworker/u4:4/404 CPU: 1 PID: 404 Comm: kworker/u4:4 Not tainted 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: writeback wb_workfn (flush-7:1) Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x75/0x9b lib/dump_stack.c:106 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:444 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 __kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_long_read include/linux/atomic/atomic-instrumented.h:1183 [inline] __down_read_trylock kernel/locking/rwsem.c:1331 [inline] down_read_trylock+0x7f/0x300 kernel/locking/rwsem.c:1598 trylock_super+0x22/0x110 fs/super.c:418 __writeback_inodes_wb+0x1aa/0x270 fs/fs-writeback.c:1992 wb_writeback+0x6f0/0x8a0 fs/fs-writeback.c:2106 wb_check_background_flush fs/fs-writeback.c:2172 [inline] wb_do_writeback fs/fs-writeback.c:2260 [inline] wb_workfn+0x8d0/0x1000 fs/fs-writeback.c:2288 process_one_work+0x6ed/0xf20 kernel/workqueue.c:2325 worker_thread+0x569/0xf90 kernel/workqueue.c:2472 kthread+0x363/0x440 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 2648: 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:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] ____kasan_kmalloc mm/kasan/common.c:471 [inline] __kasan_kmalloc+0xae/0xe0 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] kmem_cache_alloc_trace+0xbb/0x490 mm/slub.c:3267 kmalloc include/linux/slab.h:603 [inline] kzalloc include/linux/slab.h:733 [inline] alloc_super+0x54/0x980 fs/super.c:203 sget+0x112/0x530 fs/super.c:624 mount_bdev+0xff/0x3f0 fs/super.c:1360 f2fs_mount+0x35/0x40 fs/f2fs/super.c:4578 legacy_get_tree+0xfc/0x200 fs/fs_context.c:611 vfs_get_tree+0x88/0x1e0 fs/super.c:1517 do_new_mount fs/namespace.c:3005 [inline] path_mount+0x6e1/0x2050 fs/namespace.c:3335 do_mount fs/namespace.c:3348 [inline] __do_sys_mount fs/namespace.c:3556 [inline] __se_sys_mount fs/namespace.c:3533 [inline] __x64_sys_mount+0x2aa/0x340 fs/namespace.c:3533 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 312: 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:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kfree+0xc2/0x260 mm/slub.c:4579 destroy_super_work+0x42/0x50 fs/super.c:165 process_one_work+0x6ed/0xf20 kernel/workqueue.c:2325 worker_thread+0x569/0xf90 kernel/workqueue.c:2472 kthread+0x363/0x440 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Last potentially related work creation: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd8/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x4d/0x350 kernel/workqueue.c:1373 __queue_work+0x559/0xd90 kernel/workqueue.c:1539 queue_work_on+0x9c/0xa0 kernel/workqueue.c:1566 queue_work include/linux/workqueue.h:510 [inline] schedule_work include/linux/workqueue.h:571 [inline] destroy_super_rcu+0xd5/0x140 fs/super.c:172 rcu_do_batch+0x340/0xca0 kernel/rcu/tree.c:2523 rcu_core+0x56b/0xac0 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 __do_softirq+0x1c1/0x5c8 kernel/softirq.c:565 Second to last potentially related work creation: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd8/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu_common.constprop.0+0xd7/0x11c0 kernel/rcu/tree.c:3007 call_rcu+0x9/0x10 kernel/rcu/tree.c:3125 __put_super.part.0+0x20a/0x2a0 fs/super.c:299 __put_super fs/super.c:350 [inline] put_super fs/super.c:313 [inline] deactivate_locked_super+0x15d/0x180 fs/super.c:346 deactivate_super+0xb3/0xd0 fs/super.c:366 cleanup_mnt+0x330/0x470 fs/namespace.c:1143 __cleanup_mnt+0x16/0x20 fs/namespace.c:1150 task_work_run+0xe7/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888115bb2000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 112 bytes inside of 2048-byte region [ffff888115bb2000, ffff888115bb2800) The buggy address belongs to the page: page:ffffea000456ec00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115bb0 head:ffffea000456ec00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043200 raw: 0000000000000000 0000000000080008 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 134, ts 4453893032, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x2d1/0x2620 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] __kmalloc+0x49f/0x4e0 mm/slub.c:4423 kmalloc include/linux/slab.h:608 [inline] sk_prot_alloc+0x11b/0x380 net/core/sock.c:1854 sk_alloc+0x35/0x5f0 net/core/sock.c:1911 __netlink_create+0x66/0x1d0 net/netlink/af_netlink.c:647 netlink_create+0x3b0/0x5d0 net/netlink/af_netlink.c:710 __sock_create+0x270/0x4e0 net/socket.c:1486 sock_create net/socket.c:1537 [inline] __sys_socket+0x104/0x220 net/socket.c:1579 __do_sys_socket net/socket.c:1588 [inline] __se_sys_socket net/socket.c:1586 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1586 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb page_owner free stack trace missing Memory state around the buggy address: ffff888115bb1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888115bb1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888115bb2000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888115bb2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888115bb2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================