syzbot


general protection fault in finish_wait

Status: fixed on 2019/02/27 11:24
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+3aac4a52d8e8ca0414d5@syzkaller.appspotmail.com
Fix commit: 78abe3d0dfad net/smc: fix TCP fallback socket release
First crash: 2115d, last: 1899d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in finish_wait 1 (2) 2019/02/27 00:55

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 1 PID: 19 Comm: kworker/1:0 Not tainted 4.18.0-rc3+ #4
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events smc_tcp_listen_work
RIP: 0010:__lock_acquire+0x245/0x5020 kernel/locking/lockdep.c:3314
Code: 28 00 00 00 0f 85 03 34 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 c6 35 00 00 49 81 7d 00 60 76 e7 89 0f 84 42 ff 
RSP: 0000:ffff8801d9b36d20 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffff88f1b060
RBP: ffff8801d9b370a8 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8801d9b2a500 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000018 R14: ffff8801d9b2a500 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002cc0 CR3: 00000001ae03f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152
 finish_wait+0x119/0x430 kernel/sched/wait.c:364
 inet_csk_wait_for_connect net/ipv4/inet_connection_sock.c:418 [inline]
 inet_csk_accept+0x6d0/0xe70 net/ipv4/inet_connection_sock.c:451
 inet_accept+0x138/0x9f0 net/ipv4/af_inet.c:734
 kernel_accept+0x136/0x310 net/socket.c:3251
 smc_clcsock_accept net/smc/af_smc.c:701 [inline]
 smc_tcp_listen_work+0x222/0xef0 net/smc/af_smc.c:1114
 process_one_work+0xc73/0x1ba0 kernel/workqueue.c:2153
 worker_thread+0x189/0x13c0 kernel/workqueue.c:2296
 kthread+0x345/0x410 kernel/kthread.c:240
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 472b359041f047a6 ]---
RIP: 0010:__lock_acquire+0x245/0x5020 kernel/locking/lockdep.c:3314
Code: 28 00 00 00 0f 85 03 34 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 c6 35 00 00 49 81 7d 00 60 76 e7 89 0f 84 42 ff 
RSP: 0000:ffff8801d9b36d20 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffff88f1b060
RBP: ffff8801d9b370a8 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8801d9b2a500 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000018 R14: ffff8801d9b2a500 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002cc0 CR3: 00000001ae03f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/09 08:06 net-old 6508b6781be0 f25e5770 .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/19 13:38 upstream 08b5fa819970 2dc4378f .config console log report ci-upstream-kasan-gce
2018/08/02 02:16 upstream 44960f2a7b63 0a7cf4ec .config console log report ci-upstream-kasan-gce
2018/07/22 17:48 upstream 45ae4df92207 8cc079c3 .config console log report ci-upstream-kasan-gce-root
2019/02/10 00:22 net-old 225d94642685 d75f7686 .config console log report ci-upstream-net-this-kasan-gce
2019/01/08 16:27 net-old 26d92e951fe0 37dd2683 .config console log report ci-upstream-net-this-kasan-gce
2018/09/30 13:39 net-old 43955a45dc0b 41e4b329 .config console log report ci-upstream-net-this-kasan-gce
2018/08/02 02:52 net-old a94c689e6c9e 0a7cf4ec .config console log report ci-upstream-net-this-kasan-gce
2018/07/24 08:05 net-old 5302a84e3781 912c93d7 .config console log report ci-upstream-net-this-kasan-gce
2018/07/20 14:04 net-old f39f28ff82c1 49f35839 .config console log report ci-upstream-net-this-kasan-gce
2018/07/16 23:03 net-old c604cb767049 40cb0c9a .config console log report ci-upstream-net-this-kasan-gce
2018/07/15 14:36 net-old 6bed5e260709 92a49505 .config console log report ci-upstream-net-this-kasan-gce
2018/07/09 07:15 net-old 6508b6781be0 f25e5770 .config console log report ci-upstream-net-this-kasan-gce
2019/01/26 00:13 net-next-old 30e5c2c6bf28 ebf7a37c .config console log report ci-upstream-net-kasan-gce
2018/09/02 09:20 net-next-old 2de9d505fb0d a4718693 .config console log report ci-upstream-net-kasan-gce
2018/08/24 15:02 net-next-old 2ad0d5269970 95b5c82b .config console log report ci-upstream-net-kasan-gce
2018/08/02 14:56 net-next-old db57dc7c7a5c 0a7cf4ec .config console log report ci-upstream-net-kasan-gce
2018/08/02 04:18 net-next-old fea49f60c9b7 0a7cf4ec .config console log report ci-upstream-net-kasan-gce
2018/07/31 11:41 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 14:07 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/30 01:36 net-next-old 19725496da56 1a381291 .config console log report ci-upstream-net-kasan-gce
2018/07/23 22:57 net-next-old fd800f646402 912c93d7 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.