syzbot


general protection fault in smc_set_keepalive

Status: fixed on 2018/05/16 09:57
Subsystems: s390 net
[Documentation on labels]
Reported-by: syzbot+cf9012c597c8379d535c@syzkaller.appspotmail.com
Fix commit: 070204a34884 net/smc: keep clcsock reference in smc_tcp_listen_work()
First crash: 2192d, last: 2187d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 4.16 00/55] 4.16.10-stable review 63 (63) 2018/05/19 07:43
[PATCH net 1/1] net/smc: keep clcsock reference in smc_tcp_listen_work() 2 (2) 2018/04/25 18:38
general protection fault in smc_set_keepalive 0 (1) 2018/04/25 01:40

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
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
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4452 Comm: syz-executor014 Not tainted 4.17.0-rc2+ #19
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:smc_set_keepalive+0x4e/0xd0 net/smc/af_smc.c:59
RSP: 0018:ffff8801b4effa68 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff85d68bcb
RDX: 0000000000000004 RSI: ffffffff873e68c4 RDI: 0000000000000020
RBP: ffff8801b4effa80 R08: ffff8801b49b8740 R09: 0000000000000006
R10: ffff8801b49b8740 R11: 0000000000000000 R12: ffff8801b4f9b7c0
R13: 0000000000000001 R14: 0000000000000003 R15: ffff8801ae2055c0
FS:  0000000000f6d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000001b482f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sock_setsockopt+0x14e2/0x1f40 net/core/sock.c:801
 __sys_setsockopt+0x2df/0x390 net/socket.c:1899
 __do_sys_setsockopt net/socket.c:1914 [inline]
 __se_sys_setsockopt net/socket.c:1911 [inline]
 __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1911
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43fcf9
RSP: 002b:00007ffd725fd188 EFLAGS: 00000217 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcf9
RDX: 0000000000000009 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000004 R09: 00000000004002c8
R10: 0000000020000040 R11: 0000000000000217 R12: 0000000000401620
R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 78 48 8b 9b 50 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 20 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6b 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 20 48 
RIP: smc_set_keepalive+0x4e/0xd0 net/smc/af_smc.c:59 RSP: ffff8801b4effa68
---[ end trace fd4053905e5579ec ]---

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/27 03:43 upstream 0644f186fc9d 73417389 .config console log report syz C ci-upstream-kasan-gce-root
2018/04/25 15:59 upstream 3be4aaf4e2d3 73417389 .config console log report syz C ci-upstream-kasan-gce
2018/04/24 23:57 net-next-old 9c20b9372fba 37e76fe2 .config console log report syz C ci-upstream-net-kasan-gce
2018/04/30 09:34 upstream 6da6c0db5316 06db3cec .config console log report ci-upstream-kasan-gce-root
2018/04/28 14:26 upstream 46dc111dfe47 d5a5d045 .config console log report ci-upstream-kasan-gce
2018/04/24 23:37 net-next-old 9c20b9372fba 37e76fe2 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.