ci2 starts bisection 2024-01-23 11:33:27.487454653 +0000 UTC m=+26195.960821754 bisecting fixing commit since 28e3f5851a993d680ac5a14fd70cce739e78375d building syzkaller on fb427a0782000106c62de76d251e5a02de5406a9 ensuring issue is reproducible on original commit 28e3f5851a993d680ac5a14fd70cce739e78375d testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 79a251f479b54c242695f8a4816d99c4e38d7a7639b5737b6369d293db2665d2 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cad4c89c9e8cd2be68b49df1d4f2c91dd0777f4391d11c74fe7c247542333cca 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a5a5888971c068c3b53bbece0f480f553b26d8e5d4f0a9676222fc22a1e964b6 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 09602a4e75bb1eed8a5a1280db44572b842e181d4de9265ce8119710e34b0d48 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 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c6dbc589be1f453a7b8967441e13d7b1ee53feefaecb2ddd0f6eab4cfd233af3 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 04b91324ff87d8342a44ae86f5b167a9799a577bcb531cafd4467b3322c1b99c 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 28e3f5851a993d680ac5a14fd70cce739e78375d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 28e3f5851a993d680ac5a14fd70cce739e78375d: 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 45 configs; suspects: [HID_ZEROPLUS 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 [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD 1c3a1f32bcbdc0591d0eab67b745f1f4d3ecef6b testing commit 1c3a1f32bcbdc0591d0eab67b745f1f4d3ecef6b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: de821122dbd13e2cbdbdaf67b108aeb41fdb99deb46057309e1672395e9ddd85 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 Read in igrab run #9: crashed: KASAN: use-after-free Write in igrab representative crash: KASAN: use-after-free Write in igrab, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 44m4.006504334s (build: 16m13.136007283s, test: 25m59.669282197s) crash still not fixed or there were kernel test errors commit msg: Revert "ipv6: remove max_size check inline with ipv4" crash: KASAN: use-after-free Write in igrab ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] BUG: KASAN: use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] BUG: KASAN: use-after-free in do_raw_spin_lock include/linux/spinlock.h:187 [inline] BUG: KASAN: use-after-free in __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] BUG: KASAN: use-after-free in _raw_spin_lock+0x78/0x110 kernel/locking/spinlock.c:154 Write of size 4 at addr ffff88810b7592b8 by task syz-executor.0/346 CPU: 0 PID: 346 Comm: syz-executor.0 Not tainted 5.15.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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 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] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0x78/0x110 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] igrab+0x19/0x80 fs/inode.c:1346 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:4610 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: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 RIP: 0033:0x7f694cb52017 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:00007fffbe7c0d18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f694cb52017 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fffbe7c0dd0 RBP: 00007fffbe7c0dd0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffbe7c1e90 R13: 00007f694cb9c3b9 R14: 000000000000afc3 R15: 0000000000000003 Allocated by task 352: 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+0x55/0x4c70 fs/f2fs/inode.c:489 f2fs_lookup+0x484/0xbe0 fs/f2fs/namei.c:551 lookup_open fs/namei.c:3446 [inline] open_last_lookups fs/namei.c:3538 [inline] path_openat+0x1196/0x4180 fs/namei.c:3745 do_filp_open+0x1ab/0x3f0 fs/namei.c:3775 do_sys_openat2+0x135/0x8e0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_open fs/open.c:1258 [inline] __se_sys_open fs/open.c:1254 [inline] __x64_sys_open+0x105/0x1c0 fs/open.c:1254 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 346: 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 __do_softirq+0x1c1/0x5c8 kernel/softirq.c:565 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 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:4610 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: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 ffff88810b759230 which belongs to the cache f2fs_inode_cache of size 1424 The buggy address is located 136 bytes inside of 1424-byte region [ffff88810b759230, ffff88810b7597c0) The buggy address belongs to the page: page:ffffea00042dd600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10b758 head:ffffea00042dd600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888104de1b00 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 352, ts 45360120560, 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] 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+0x55/0x4c70 fs/f2fs/inode.c:489 f2fs_fill_super+0x30d3/0x6280 fs/f2fs/super.c:4223 mount_bdev+0x2b7/0x390 fs/super.c:1387 f2fs_mount+0x10/0x20 fs/f2fs/super.c:4578 legacy_get_tree+0xf5/0x1d0 fs/fs_context.c:611 vfs_get_tree+0x81/0x1b0 fs/super.c:1517 page_owner free stack trace missing Memory state around the buggy address: ffff88810b759180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810b759200: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb >ffff88810b759280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810b759300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810b759380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================