INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 10497 Comm: syz-executor0 Not tainted 4.17.0-rc4+ #67 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 assign_lock_key kernel/locking/lockdep.c:729 [inline] register_lock_class+0x1dd2/0x2630 kernel/locking/lockdep.c:755 __lock_acquire+0x1a7/0x5140 kernel/locking/lockdep.c:3319 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:310 [inline] ptr_ring_consume include/linux/ptr_ring.h:335 [inline] tun_ring_recv drivers/net/tun.c:2143 [inline] tun_do_read+0x18b1/0x29f0 drivers/net/tun.c:2182 tun_chr_read_iter+0xe5/0x1e0 drivers/net/tun.c:2214 call_read_iter include/linux/fs.h:1778 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x696/0xa50 fs/read_write.c:418 vfs_read+0x17f/0x3d0 fs/read_write.c:452 ksys_pread64+0x174/0x1a0 fs/read_write.c:626 __do_compat_sys_x86_pread arch/x86/ia32/sys_ia32.c:177 [inline] __se_compat_sys_x86_pread arch/x86/ia32/sys_ia32.c:174 [inline] __ia32_compat_sys_x86_pread+0xc4/0x130 arch/x86/ia32/sys_ia32.c:174 do_syscall_32_irqs_on arch/x86/entry/common.c:323 [inline] do_fast_syscall_32+0x345/0xf9b arch/x86/entry/common.c:394 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fa1cb9 RSP: 002b:00000000f5f9d0ac EFLAGS: 00000282 ORIG_RAX: 00000000000000b4 RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020000080 RDX: 0000000000000062 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 sock: process `syz-executor7' is using obsolete setsockopt SO_BSDCOMPAT sock: process `syz-executor6' is using obsolete setsockopt SO_BSDCOMPAT sock: process `syz-executor7' is using obsolete setsockopt SO_BSDCOMPAT sock: process `syz-executor5' is using obsolete setsockopt SO_BSDCOMPAT sock: process `syz-executor7' is using obsolete setsockopt SO_BSDCOMPAT sock: process `syz-executor5' is using obsolete setsockopt SO_BSDCOMPAT netlink: 11 bytes leftover after parsing attributes in process `syz-executor6'.