ci2 starts bisection 2024-03-31 20:57:58.36919517 +0000 UTC m=+157435.100513187 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: 664218104050e28bab0a7f29943210a1649d34d436a2d1cf93d87265394a743c all runs: crashed: KASAN: use-after-free Read in trylock_super representative crash: KASAN: use-after-free Read in trylock_super, 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 61cfd264993d07540f60a5c53d77a14c818e54a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 670a0655fc43d139b1f6d743f69a0828e8cd5665e39cc2453ec2d75c2cc3f84b all runs: 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: e265856302a3ef826c47cff95bcb42f39a0671b64abedaa50527b2048013a4f8 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 2/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: 61139725fe0f95097cc7b351871be87fe2d6b38528bef83ea1f0dba6457092a0 all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: 7819597a3289c98e3db9cbd8bb4423be6cfea22d314d474dc4a046dda41fb2d6 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 [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: 028fa4f01e4c79985f6c6ca640502c9333c11e44c5349542ced0a1c7f7ad1be4 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 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 993bed180178156a70afdafe8aaf23a117107352 testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b030759358f5af079ebc088c0f9fb8acf758dd116f754f4afc66e1d089923e2c all runs: crashed: KASAN: use-after-free Read in trylock_super 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: 1h48m31.850443492s (build: 51m25.739317951s, test: 55m6.534811459s) crash still not fixed or there were kernel test errors commit msg: Merge "Merge branch 'android13-5.15' into branch 'android13-5.15-lts'" into android13-5.15-lts 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:1321 [inline] BUG: KASAN: use-after-free in down_read_trylock+0x7f/0x300 kernel/locking/rwsem.c:1588 Read of size 8 at addr ffff888114d02070 by task kworker/u4:1/10 CPU: 0 PID: 10 Comm: kworker/u4:1 Not tainted 5.15.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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:1321 [inline] down_read_trylock+0x7f/0x300 kernel/locking/rwsem.c:1588 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 1160: 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 303: 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 kernel/rcu/tree.c:3007 [inline] call_rcu+0xe7/0x1420 kernel/rcu/tree.c:3087 __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 ffff888114d02000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 112 bytes inside of 2048-byte region [ffff888114d02000, ffff888114d02800) The buggy address belongs to the page: page:ffffea0004534000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x114d00 head:ffffea0004534000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 0000000100000001 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 362, ts 58145853486, free_ts 58055317636 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_node include/linux/slab.h:469 [inline] kmalloc_node include/linux/slab.h:626 [inline] kvmalloc_node+0x146/0x390 mm/util.c:628 kvmalloc include/linux/mm.h:851 [inline] kvmalloc_array include/linux/mm.h:869 [inline] alloc_fdtable+0xdc/0x290 fs/file.c:136 dup_fd+0x691/0xb80 fs/file.c:354 copy_files kernel/fork.c:1620 [inline] copy_process+0x1ff9/0x7a50 kernel/fork.c:2252 kernel_clone+0xed/0xbe0 kernel/fork.c:2662 __do_sys_clone+0xef/0x130 kernel/fork.c:2788 __se_sys_clone kernel/fork.c:2772 [inline] __x64_sys_clone+0xbe/0x140 kernel/fork.c:2772 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 last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare+0x1b6/0x4c0 mm/page_alloc.c:1543 free_unref_page_prepare mm/page_alloc.c:3533 [inline] free_unref_page+0x84/0x760 mm/page_alloc.c:3615 free_the_page mm/page_alloc.c:804 [inline] __free_pages+0xd7/0xf0 mm/page_alloc.c:5852 __free_slab+0xdb/0x1c0 mm/slub.c:2020 free_slab mm/slub.c:2035 [inline] discard_slab+0x2b/0x40 mm/slub.c:2041 __slab_free+0x4af/0x4d0 mm/slub.c:3424 do_slab_free mm/slub.c:3507 [inline] ___cache_free+0x1ee/0x230 mm/slub.c:3526 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x6e/0x150 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15f/0x1c0 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0xaa/0xc0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x197/0x480 mm/slub.c:3253 __d_alloc+0x2e/0x880 fs/dcache.c:1744 d_alloc+0x47/0x270 fs/dcache.c:1823 d_alloc_parallel+0xf4/0x1270 fs/dcache.c:2575 __lookup_slow+0x121/0x420 fs/namei.c:1648 lookup_slow fs/namei.c:1680 [inline] lookup_one_unlocked+0x131/0x150 fs/namei.c:2779 Memory state around the buggy address: ffff888114d01f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888114d01f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888114d02000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888114d02080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888114d02100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================