================================================ WARNING: lock held when returning to user space! 5.0.0+ #1 Not tainted ------------------------------------------------ syz-executor.2/6721 is leaving the kernel with locks still held! 1 lock held by syz-executor.2/6721: #0: 000000005e2a33a4 (rcu_read_lock){....}, at: tun_get_user+0xaf4/0x39e0 drivers/net/tun.c:1956 WARNING: CPU: 0 PID: 6721 at kernel/rcu/tree_plugin.h:314 rcu_note_context_switch+0x183/0x1890 kernel/rcu/tree_plugin.h:314 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 6721 Comm: syz-executor.2 Not tainted 5.0.0+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 panic+0x212/0x41d kernel/panic.c:214 __warn.cold.8+0x1b/0x36 kernel/panic.c:571 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:291 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 RIP: 0010:rcu_note_context_switch+0x183/0x1890 kernel/rcu/tree_plugin.h:314 Code: ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 28 10 00 00 45 84 ff 41 8b 85 70 03 00 00 0f 85 a0 01 00 00 85 c0 0f 8e a0 01 00 00 <0f> 0b 4d 8d bd 74 03 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 fa RSP: 0000:ffff888074f9fd68 EFLAGS: 00010002 RAX: 0000000000000001 RBX: ffff88802d82dd80 RCX: 1ffffffff0fb4e0c RDX: 1ffff1100f3a7076 RSI: ffffffff86943e5f RDI: ffff888079d383b0 RBP: ffff888074f9fde0 R08: ffffed1005b05bc8 R09: ffffed1005b05bc7 R10: ffffed1005b05bc7 R11: ffff88802d82de3b R12: ffff888074f98000 R13: ffff888079d38040 R14: ffffffff88d3be98 R15: 0000000000000000 __schedule+0x1ed/0x1c20 kernel/sched/core.c:3446 schedule+0x7f/0x180 kernel/sched/core.c:3562 exit_to_usermode_loop+0xf2/0x200 arch/x86/entry/common.c:152 prepare_exit_to_usermode+0x1c5/0x210 arch/x86/entry/common.c:197 retint_user+0x8/0x18 RIP: 0033:0x457651 Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 c4 b6 fb ff c3 48 83 ec 08 e8 ba 14 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 03 15 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f1b3accfbc0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff02 RAX: fffffffffffffffb RBX: 0000000000000032 RCX: 0000000000457651 RDX: 0000000000000001 RSI: 00007f1b3accfc10 RDI: 00000000000000f0 RBP: 0000000020000000 R08: 00000000000000f0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00000000ffffffff R13: 00000000006ef700 R14: 00000000004ad7c2 R15: 00007f1b3acd06d4 Kernel Offset: disabled Rebooting in 86400 seconds..