syzbot


BUG: unable to handle kernel NULL pointer dereference in inet_autobind

Status: fixed on 2019/12/16 09:09
Reported-by: syzbot+5b78051b180613f94dff@syzkaller.appspotmail.com
Fix commit: 7c3c0d51129a sctp: not bind the socket in sctp_connect
First crash: 1850d, last: 1842d
Cause bisection: the cause commit could be any of (bisect log):
  dce4350a1dd4 sctp: change sctp_prot .no_autobind with true
  eccfa2109a54 net: avoid potential infinite loop in tc_ctl_action()
  
Fix bisection: fixed by (bisect log) :
commit 7c3c0d51129a1914e36f1942b1c226e894859f08
Author: Xin Long <lucien.xin@gmail.com>
Date: Wed Jun 26 08:31:39 2019 +0000

  sctp: not bind the socket in sctp_connect

  

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)
audit: type=1400 audit(1572784947.685:36): avc:  denied  { map } for  pid=6859 comm="syz-executor633" path="/root/syz-executor633628728" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
BUG: unable to handle kernel NULL pointer dereference at           (null)
IP:           (null)
PGD 9f1a1067 P4D 9f1a1067 PUD 964a0067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 6859 Comm: syz-executor633 Not tainted 4.14.151 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888096b68340 task.stack: ffff888080f78000
RIP: 0010:          (null)
RSP: 0018:ffff888080f7fd48 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff88151060 RCX: 1ffff11012d6d17c
RDX: 1ffffffff102a223 RSI: 0000000000000000 RDI: ffff8880a6985800
RBP: ffff888080f7fd68 R08: 0000000000000001 R09: ffff888096b68be0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a6985800
R13: ffff8880a698580e R14: 000000000000001c R15: 0000000000000002
FS:  0000000000b8f880(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000096f57000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 inet_autobind+0xae/0x180 net/ipv4/af_inet.c:181
 inet_dgram_connect+0x136/0x1e0 net/ipv4/af_inet.c:538
 SYSC_connect+0x1f6/0x2d0 net/socket.c:1655
 SyS_connect+0x24/0x30 net/socket.c:1636
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x440179
RSP: 002b:00007ffdec0d7fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440179
RDX: 000000000000001c RSI: 0000000020d83fe4 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a00
R13: 0000000000401a90 R14: 0000000000000000 R15: 0000000000000000
Code:  Bad RIP value.
RIP:           (null) RSP: ffff888080f7fd48
CR2: 0000000000000000
---[ end trace c1f17591adb2902c ]---

Crashes (3133):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/03 12:45 linux-4.14.y ddef1e8e3f6e c9610487 .config console log report syz C ci2-linux-4-14
2019/11/02 13:58 linux-4.14.y ddef1e8e3f6e 997ccc67 .config console log report syz C ci2-linux-4-14
2019/10/31 23:23 linux-4.14.y ddef1e8e3f6e a41ca8fa .config console log report syz C ci2-linux-4-14
2019/10/31 16:57 linux-4.14.y ddef1e8e3f6e a41ca8fa .config console log report syz C ci2-linux-4-14
2019/10/29 09:55 linux-4.14.y ddef1e8e3f6e 5ea87a66 .config console log report syz C ci2-linux-4-14
2019/11/06 11:20 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 10:46 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 10:22 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 10:11 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 09:44 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 09:17 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 08:18 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 07:53 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 06:49 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 06:19 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 05:46 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 05:11 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 04:43 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 04:14 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 04:12 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 03:11 linux-4.14.y ddef1e8e3f6e bc2c6e45 .config console log report ci2-linux-4-14
2019/11/06 01:44 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/06 00:53 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/06 00:30 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/06 00:22 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 23:16 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 22:14 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 21:25 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 21:18 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 20:17 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 20:17 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 19:13 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 18:34 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 18:26 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 17:25 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 16:21 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 15:24 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 14:50 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/05 13:24 linux-4.14.y ddef1e8e3f6e 0f3ec414 .config console log report ci2-linux-4-14
2019/11/05 12:51 linux-4.14.y ddef1e8e3f6e 0f3ec414 .config console log report ci2-linux-4-14
2019/11/05 11:18 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/11/05 10:33 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/11/05 10:27 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/11/05 09:25 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/11/05 08:42 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/11/05 08:13 linux-4.14.y ddef1e8e3f6e 76630fc9 .config console log report ci2-linux-4-14
2019/10/29 09:41 linux-4.14.y ddef1e8e3f6e 5ea87a66 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.