syzbot


INFO: trying to register non-static key in tun_do_read

Status: fixed on 2018/06/18 18:00
Subsystems: net
[Documentation on labels]
Fix commit: 7063efd33bb1 tuntap: fix use after free during release
First crash: 2340d, last: 2333d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: trying to register non-static key in tun_do_read C 28 1814d 2000d 0/3 public: reported C repro on 2019/04/13 00:00

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 4511 Comm: syz-executor123 Not tainted 4.17.0-rc4+ #46
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_sys_pread64 fs/read_write.c:636 [inline]
 __se_sys_pread64 fs/read_write.c:633 [inline]
 __x64_sys_pread64+0x97/0xf0 fs/read_write.c:633
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x449379
RSP: 002b:00007ff4b1c4eda8 EFLAGS: 00000293 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 0000000000449379
RDX: 0000000000000062 RSI: 0000000020000080 RDI: 0000000000000029
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000006dac20
R13: 0001000000000000 R14: 74656e2f7665642f R15: 0000000000000001

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/14 02:00 upstream 66e1c94db3cd 481f030c .config console log report syz C ci-upstream-kasan-gce
2018/05/14 01:59 upstream 66e1c94db3cd 481f030c .config console log report syz C ci-upstream-kasan-gce-root
2018/05/08 03:47 upstream 75bc37fefc44 9e0846e8 .config console log report syz C ci-upstream-kasan-gce-root
2018/05/08 03:15 upstream 75bc37fefc44 9e0846e8 .config console log report syz C ci-upstream-kasan-gce
2018/05/14 01:59 upstream 66e1c94db3cd 481f030c .config console log report syz ci-upstream-kasan-gce-386
2018/05/14 12:28 upstream 66e1c94db3cd d131f1b9 .config console log report ci-upstream-kasan-gce-root
2018/05/14 10:21 upstream 66e1c94db3cd 2407e740 .config console log report ci-upstream-kasan-gce-root
2018/05/13 15:16 upstream ccda3c4b7777 c05b619d .config console log report ci-upstream-kasan-gce-root
2018/05/12 22:28 upstream 427fbe89261d e726f42b .config console log report ci-upstream-kasan-gce
2018/05/12 15:08 upstream f0ab773f5c96 e726f42b .config console log report ci-upstream-kasan-gce-root
2018/05/12 09:38 upstream f0ab773f5c96 e726f42b .config console log report ci-upstream-kasan-gce
2018/05/12 07:48 upstream f0ab773f5c96 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/11 20:21 upstream 41e3e1082367 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/11 06:59 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/11 02:10 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce-root
2018/05/10 22:40 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 22:04 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce-root
2018/05/10 19:12 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 15:41 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 12:58 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 05:31 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 05:25 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/10 04:33 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce
2018/05/14 11:17 upstream 66e1c94db3cd 2407e740 .config console log report ci-upstream-kasan-gce-386
2018/05/14 02:43 upstream 66e1c94db3cd 481f030c .config console log report ci-upstream-kasan-gce-386
2018/05/13 22:38 upstream 66e1c94db3cd 481f030c .config console log report ci-upstream-kasan-gce-386
2018/05/11 18:04 upstream 41e3e1082367 12c7428a .config console log report ci-upstream-kasan-gce-386
2018/05/10 20:20 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.