kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2364 Comm: syz.5.516 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__hlist_del include/linux/list.h:791 [inline] RIP: 0010:detach_timer kernel/time/timer.c:824 [inline] RIP: 0010:detach_if_pending+0x146/0x330 kernel/time/timer.c:841 Code: e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 93 09 3d 00 4d 89 65 00 4d 85 e4 74 4a e8 b5 0e 0f 00 49 83 c4 08 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 6b 09 3d 00 4d 89 2c 24 80 7d cc RSP: 0018:ffff8881de2af850 EFLAGS: 00010802 RAX: 1bd5a00000000025 RBX: ffff8881e557f1c0 RCX: 0000000000080000 RDX: ffffc90009160000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffff8881de2af898 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103bc55ef8 R11: 1ffff1103bc55ef8 R12: dead00000000012a R13: ffff8881e834c080 R14: ffff8881e557f1c8 R15: dffffc0000000000 FS: 00007fd036c586c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001e3d35000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: try_to_del_timer_sync kernel/time/timer.c:1267 [inline] del_timer_sync+0x136/0x1a0 kernel/time/timer.c:1410 tun_flow_uninit+0x2f/0x2b0 drivers/net/tun.c:1452 tun_free_netdev+0x7a/0x1b0 drivers/net/tun.c:2404 netdev_run_todo+0xa45/0xc70 net/core/dev.c:9477 rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:112 tun_detach drivers/net/tun.c:766 [inline] tun_chr_close+0xc4/0x140 drivers/net/tun.c:3563 __fput+0x2a3/0x730 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x146/0x170 kernel/task_work.c:113 get_signal+0x1352/0x13d0 kernel/signal.c:2532 do_signal+0xad/0xda0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0xc4/0x1b0 arch/x86/entry/common.c:159 prepare_exit_to_usermode+0x18e/0x1f0 arch/x86/entry/common.c:194 syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x13e/0x170 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7fd038610969 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:00007fd036c57fe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: fffffffffffffff4 RBX: 00007fd038838080 RCX: 00007fd038610969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000042000000 RBP: 00007fd038692ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd038838080 R15: 00007ffd9e1742c8 Modules linked in: ---[ end trace 6b453235d1a0ff26 ]--- RIP: 0010:__hlist_del include/linux/list.h:791 [inline] RIP: 0010:detach_timer kernel/time/timer.c:824 [inline] RIP: 0010:detach_if_pending+0x146/0x330 kernel/time/timer.c:841 Code: e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 93 09 3d 00 4d 89 65 00 4d 85 e4 74 4a e8 b5 0e 0f 00 49 83 c4 08 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 6b 09 3d 00 4d 89 2c 24 80 7d cc RSP: 0018:ffff8881de2af850 EFLAGS: 00010802 RAX: 1bd5a00000000025 RBX: ffff8881e557f1c0 RCX: 0000000000080000 RDX: ffffc90009160000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffff8881de2af898 R08: 0000000000000004 R09: 0000000000000003 R10: ffffed103bc55ef8 R11: 1ffff1103bc55ef8 R12: dead00000000012a R13: ffff8881e834c080 R14: ffff8881e557f1c8 R15: dffffc0000000000 FS: 00007fd036c586c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001e3d35000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: e8 03 42 80 3c call 0x3c804208 5: 38 00 cmp %al,(%rax) 7: 74 08 je 0x11 9: 4c 89 ef mov %r13,%rdi c: e8 93 09 3d 00 call 0x3d09a4 11: 4d 89 65 00 mov %r12,0x0(%r13) 15: 4d 85 e4 test %r12,%r12 18: 74 4a je 0x64 1a: e8 b5 0e 0f 00 call 0xf0ed4 1f: 49 83 c4 08 add $0x8,%r12 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 e7 mov %r12,%rdi 34: e8 6b 09 3d 00 call 0x3d09a4 39: 4d 89 2c 24 mov %r13,(%r12) 3d: 80 .byte 0x80 3e: 7d cc jge 0xc