syzbot


WARNING: refcount bug in sk_alloc

Status: auto-closed as invalid on 2019/02/22 10:22
Reported-by: syzbot+8362f345b3edaf37e986@syzkaller.appspotmail.com
First crash: 1579d, last: 1527d
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in refcount_sub_and_test (2) C 2 1547d 1549d 0/22 closed as dup on 2018/04/01 10:35
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in sk_alloc (2) syz done error 31 438d 837d 0/22 upstream: reported syz repro on 2020/03/10 22:25

Sample crash report:
------------[ cut here ]------------
refcount_t: increment on 0; use-after-free.
WARNING: CPU: 0 PID: 4527 at lib/refcount.c:153 refcount_inc+0x5d/0x70 lib/refcount.c:153
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4527 Comm: syz-executor7 Not tainted 4.16.0+ #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b9/0x29f lib/dump_stack.c:53
 panic+0x22f/0x4de kernel/panic.c:183
 __warn.cold.8+0x163/0x1a3 kernel/panic.c:547
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1bc/0x470 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:991
RIP: 0010:refcount_inc+0x5d/0x70 lib/refcount.c:153
RSP: 0018:ffff88018f29f838 EFLAGS: 00010286
RAX: 000000000000002b RBX: 0000000000000000 RCX: ffffffff815ecc1d
RDX: 0000000000000000 RSI: ffffffff815f1a01 RDI: ffff88018f29f398
RBP: ffff88018f29f840 R08: ffff88018f2922c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801cefc3500
R13: ffff88018f29fac8 R14: 0000000000000040 R15: ffff88018efa8180
 get_net include/net/net_namespace.h:206 [inline]
 sk_alloc+0x450/0x17b0 net/core/sock.c:1540
 inet_create+0x4f8/0x10a0 net/ipv4/af_inet.c:320
 __sock_create+0x526/0x920 net/socket.c:1285
 sock_create net/socket.c:1325 [inline]
 __sys_socket+0x100/0x250 net/socket.c:1355
 SYSC_socket net/socket.c:1364 [inline]
 SyS_socket+0x24/0x30 net/socket.c:1362
 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457e07
RSP: 002b:00007fffcb8b8f18 EFLAGS: 00000202 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00000000000000f8 RCX: 0000000000457e07
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 000000000002e121 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000202 R12: 0000000000000362
R13: 0000000000000009 R14: 0000000000000362 R15: 000000000002df3c
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (46):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2018/04/06 02:14 upstream 3c8ba0d61d04 a932eae6 .config log report
ci-upstream-kasan-gce-root 2018/04/03 00:58 upstream 86bbbebac193 676bd07e .config log report
ci-upstream-kasan-gce-root 2018/03/31 19:36 upstream 10b84daddbec 0174c6c8 .config log report
ci-upstream-kasan-gce-root 2018/03/30 12:37 upstream c2a9838452a4 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/20 13:35 bpf-next 878a4d328104 cc402841 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/19 10:27 bpf-next 7f3249fb1231 d1b2ef69 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/18 21:54 bpf-next 7f3249fb1231 829f0234 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/18 07:41 bpf-next a2d481b326c9 52643b44 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/18 00:07 bpf-next a2d481b326c9 b80fd3b5 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/16 22:33 bpf-next 5d1365940a68 b80fd3b5 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/11 08:20 bpf-next 17dec0a94915 8b8de427 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/07 12:26 bpf-next 4608f064532c 66f22a7f .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/05 21:38 bpf-next 4608f064532c a932eae6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/05 10:37 bpf-next 4608f064532c 5e1ccffc .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/05 10:21 bpf-next 4608f064532c 5e1ccffc .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/01 17:09 bpf-next 7828f20e3779 dc889257 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/01 16:48 bpf-next 7828f20e3779 0a78e248 .config log report
ci-upstream-bpf-next-kasan-gce 2018/04/01 15:04 bpf-next 7828f20e3779 0a78e248 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 16:22 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 14:04 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 11:38 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 10:17 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 09:46 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 09:08 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 08:51 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 08:14 bpf-next 7828f20e3779 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 07:20 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 05:13 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 02:52 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 01:50 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/31 00:05 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 22:12 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 21:55 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 21:36 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 21:26 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 19:36 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 19:03 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 19:02 bpf-next 1379ef828a18 8fbce0e4 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/30 02:12 bpf-next 1379ef828a18 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/29 23:44 bpf-next 1379ef828a18 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/29 12:29 bpf-next 22527437e0a0 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/29 11:40 bpf-next 22527437e0a0 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/29 11:01 bpf-next 22527437e0a0 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/03/29 10:49 bpf-next 22527437e0a0 d47f0ed6 .config log report
ci-upstream-bpf-next-kasan-gce 2018/02/27 11:14 bpf-next 6f1b5a2b58d8 05b5a32c .config log report