INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 7519 Comm: syz-executor6 Not tainted 4.9.99-gc462abb #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff88018f2e7790 ffffffff81eb0f09 0000000000000000 ffffffff85b2d700 ffff8801d00496a0 ffffffff85584460 0000000000000000 ffff88018f2e7810 ffffffff81230b40 ffffffff8558c640 ffff8801d4798080 000000000000377a Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] register_lock_class+0x1460/0x1470 kernel/locking/lockdep.c:738 [] __lock_acquire+0x169/0x4070 kernel/locking/lockdep.c:3233 [] lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756 [] __raw_spin_lock include/linux/spinlock_api_smp.h:144 [inline] [] _raw_spin_lock+0x36/0x50 kernel/locking/spinlock.c:151 [] spin_lock include/linux/spinlock.h:302 [inline] [] ptr_ring_consume include/linux/ptr_ring.h:268 [inline] [] skb_array_consume include/linux/skb_array.h:97 [inline] [] tun_ring_recv drivers/net/tun.c:1477 [inline] [] tun_do_read.part.42+0x74d/0x1250 drivers/net/tun.c:1514 [] tun_do_read drivers/net/tun.c:1536 [inline] [] tun_chr_read_iter+0x161/0x1f0 drivers/net/tun.c:1536 [] new_sync_read fs/read_write.c:439 [inline] [] __vfs_read+0x3dd/0x570 fs/read_write.c:451 [] vfs_read+0x120/0x380 fs/read_write.c:472 [] SYSC_pread64 fs/read_write.c:626 [inline] [] SyS_pread64+0x145/0x170 fs/read_write.c:613 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb