F2FS-fs (loop3): Stopped filesystem due to reason: 0 ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: null-ptr-deref in atomic_fetch_add_relaxed include/linux/atomic/atomic-instrumented.h:252 [inline] BUG: KASAN: null-ptr-deref in __refcount_add include/linux/refcount.h:184 [inline] BUG: KASAN: null-ptr-deref in __refcount_inc include/linux/refcount.h:241 [inline] BUG: KASAN: null-ptr-deref in refcount_inc include/linux/refcount.h:258 [inline] BUG: KASAN: null-ptr-deref in get_task_struct include/linux/sched/task.h:118 [inline] BUG: KASAN: null-ptr-deref in kthread_stop+0x60/0x330 kernel/kthread.c:703 Write of size 4 at addr 0000000000000028 by task syz.3.41/5351 CPU: 0 PID: 5351 Comm: syz.3.41 Not tainted 6.9.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:114 print_report+0xe8/0x550 mm/kasan/report.c:491 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_fetch_add_relaxed include/linux/atomic/atomic-instrumented.h:252 [inline] __refcount_add include/linux/refcount.h:184 [inline] __refcount_inc include/linux/refcount.h:241 [inline] refcount_inc include/linux/refcount.h:258 [inline] get_task_struct include/linux/sched/task.h:118 [inline] kthread_stop+0x60/0x330 kernel/kthread.c:703 f2fs_stop_gc_thread+0x5b/0xa0 fs/f2fs/gc.c:210 f2fs_do_shutdown+0x12c/0x390 fs/f2fs/file.c:2280 f2fs_ioc_shutdown fs/f2fs/file.c:2322 [inline] __f2fs_ioctl+0x4d42/0xab10 fs/f2fs/file.c:4297 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xab/0xf0 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x95/0x180 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f32c2f75b59 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f32c3c60048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f32c3106038 RCX: 00007f32c2f75b59 RDX: 0000000020000140 RSI: 000000008004587d RDI: 0000000000000005 RBP: 00007f32c2fe4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f32c3106038 R15: 00007ffd27d839f8 ==================================================================