ci2 starts bisection 2024-09-18 05:07:49.228769212 +0000 UTC m=+138554.719196763 bisecting fixing commit since 993bed180178156a70afdafe8aaf23a117107352 building syzkaller on 33b9e058838dbe993f943107bcdd0223e831bd84 ensuring issue is reproducible on original commit 993bed180178156a70afdafe8aaf23a117107352 testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6f0321ceb35a3d28df8713fabf3cccf108eca6c2b66c17d534328ca3c48dcd65 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7e58b1fd0e8e5d8f49a38a32a6a785c8fbef2ec9c22c9b8b87ad50c94d74b920 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=4920 full=6159 leaves diff=242 split chunks (needed=false): <242> split chunk #0 of len 242 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 777ec04689aa395c86ce0108e7b80dd8ba49aea87ab4560776a0fcd0167a0f5a all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 016c3e7461f8a0b783157484313f8c6cbe21201383aa5fe1ce2c72b7f6040f99 run #0: crashed: KASAN: use-after-free Write in igrab run #1: crashed: KASAN: use-after-free Write in igrab run #2: crashed: KASAN: use-after-free Write in igrab run #3: crashed: KASAN: use-after-free Write in igrab run #4: crashed: KASAN: use-after-free Write in igrab run #5: crashed: KASAN: use-after-free Write in igrab run #6: crashed: KASAN: use-after-free Write in igrab run #7: crashed: KASAN: use-after-free Write in igrab run #8: crashed: KASAN: use-after-free Write in igrab run #9: crashed: KASAN: use-after-free Read in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 883f62d220331a8aba3536df4d74f5d60c4b59a914cd487eb7241a4099302514 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0d51519e9182ced857c397886e9239f2119912e85da2a61293e1ccb6b955bce0 all runs: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 993bed180178156a70afdafe8aaf23a117107352: net/socket.c:1191: undefined reference to `wext_handle_ioctl' net/socket.c:3385: 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 46 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 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD b92c0d35d015044124da6005ed3065becc8d98d9 testing commit b92c0d35d015044124da6005ed3065becc8d98d9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0856ee001035e0d35be9f87af92a39a94924a0baceed3836a5c329218065ddaa run #0: crashed: KASAN: use-after-free Read in igrab run #1: crashed: KASAN: use-after-free Write in igrab run #2: crashed: KASAN: use-after-free Write in igrab run #3: crashed: KASAN: use-after-free Write in igrab run #4: crashed: KASAN: use-after-free Write in igrab run #5: crashed: KASAN: use-after-free Write in igrab run #6: crashed: KASAN: use-after-free Write in igrab run #7: crashed: KASAN: use-after-free Write in igrab run #8: crashed: KASAN: use-after-free Write in igrab run #9: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Read in igrab, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 49m37.642259842s (build: 27m9.476888086s, test: 20m49.402568482s) crash still not fixed or there were kernel test errors commit msg: Revert "drm/mipi-dsi: use correct return type for the DSC functions" crash: KASAN: use-after-free Read in igrab ================================================================== BUG: KASAN: use-after-free in igrab+0x7c/0x80 fs/inode.c:1347 Read of size 8 at addr ffff8881176673c8 by task syz-executor.0/337 CPU: 1 PID: 337 Comm: syz-executor.0 Not tainted 5.15.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x38/0x49 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 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 igrab+0x7c/0x80 fs/inode.c:1347 f2fs_sync_inode_meta+0x16e/0x260 fs/f2fs/checkpoint.c:1157 block_operations fs/f2fs/checkpoint.c:1265 [inline] f2fs_write_checkpoint+0x693/0x6430 fs/f2fs/checkpoint.c:1659 __write_checkpoint_sync fs/f2fs/checkpoint.c:1776 [inline] f2fs_issue_checkpoint+0x2a6/0x440 fs/f2fs/checkpoint.c:1873 f2fs_sync_fs+0x14c/0x240 fs/f2fs/super.c:1695 sync_filesystem.part.0+0xfc/0x170 fs/sync.c:66 sync_filesystem+0x66/0x80 fs/sync.c:43 f2fs_quota_off_umount+0x52/0xd0 fs/f2fs/super.c:2896 f2fs_put_super+0xb8/0xd50 fs/f2fs/super.c:1582 generic_shutdown_super+0x13d/0x340 fs/super.c:475 kill_block_super+0x9a/0xd0 fs/super.c:1414 kill_f2fs_super+0x24d/0x360 fs/f2fs/super.c:4657 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:181 [inline] exit_to_user_mode_prepare+0x143/0x150 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:307 do_syscall_64+0x40/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4005d24197 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffcaa693d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f4005d24197 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcaa693de0 RBP: 00007ffcaa693de0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffcaa694ea0 R13: 00007f4005d6e3b9 R14: 0000000000008d73 R15: 0000000000000003 Allocated by task 344: 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_slab_alloc+0x94/0xc0 mm/kasan/common.c:466 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 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2795 [inline] f2fs_alloc_inode+0x1d/0x370 fs/f2fs/super.c:1406 alloc_inode+0x5c/0x1e0 fs/inode.c:236 iget_locked+0x138/0x5f0 fs/inode.c:1244 f2fs_iget+0x52/0x4df0 fs/f2fs/inode.c:504 f2fs_lookup+0x484/0xbe0 fs/f2fs/namei.c:551 lookup_open fs/namei.c:3440 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x1196/0x4180 fs/namei.c:3739 do_filp_open+0x1ab/0x3f0 fs/namei.c:3769 do_sys_openat2+0x135/0x8e0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1261 x64_sys_call+0x2eb/0x990 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 337: 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] kmem_cache_free+0x105/0x250 mm/slub.c:3535 f2fs_free_inode+0x1d/0x30 fs/f2fs/super.c:1550 i_callback+0x3a/0x60 fs/inode.c:225 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 handle_softirqs+0x1c5/0x510 kernel/softirq.c:565 __do_softirq kernel/softirq.c:603 [inline] invoke_softirq kernel/softirq.c:425 [inline] __irq_exit_rcu kernel/softirq.c:652 [inline] irq_exit_rcu+0x66/0x110 kernel/softirq.c:664 sysvec_apic_timer_interrupt+0x9d/0xc0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 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 destroy_inode+0x11f/0x190 fs/inode.c:291 evict+0x43c/0x610 fs/inode.c:602 dispose_list+0xf5/0x1a0 fs/inode.c:620 evict_inodes+0x2e6/0x3d0 fs/inode.c:670 generic_shutdown_super+0xa4/0x340 fs/super.c:454 kill_block_super+0x9a/0xd0 fs/super.c:1414 kill_f2fs_super+0x24d/0x360 fs/f2fs/super.c:4657 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:181 [inline] exit_to_user_mode_prepare+0x143/0x150 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:307 do_syscall_64+0x40/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888117667330 which belongs to the cache f2fs_inode_cache of size 1424 The buggy address is located 152 bytes inside of 1424-byte region [ffff888117667330, ffff8881176678c0) The buggy address belongs to the page: page:ffffea00045d9800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x117660 head:ffffea00045d9800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881083bad80 raw: 0000000000000000 0000000080150015 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 344, ts 36623616843, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2605 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2611 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4485 __alloc_pages+0x2d5/0x2620 mm/page_alloc.c:5779 __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] kmem_cache_alloc+0x440/0x480 mm/slub.c:3253 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2795 [inline] f2fs_alloc_inode+0x1d/0x370 fs/f2fs/super.c:1406 alloc_inode+0x5c/0x1e0 fs/inode.c:236 iget_locked+0x138/0x5f0 fs/inode.c:1244 f2fs_iget+0x52/0x4df0 fs/f2fs/inode.c:504 f2fs_lookup+0x484/0xbe0 fs/f2fs/namei.c:551 lookup_open fs/namei.c:3440 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x1196/0x4180 fs/namei.c:3739 do_filp_open+0x1ab/0x3f0 fs/namei.c:3769 do_sys_openat2+0x135/0x8e0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1261 page_owner free stack trace missing Memory state around the buggy address: ffff888117667280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888117667300: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb >ffff888117667380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888117667400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888117667480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================