syzbot


BUG: unable to handle kernel NULL pointer dereference in __sys_sendmmsg

Status: auto-closed as invalid on 2020/02/28 16:35
Reported-by: syzbot+aefadc03b47e1128ab0a@syzkaller.appspotmail.com
First crash: 972d, last: 972d

Sample crash report:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x138/0x197 lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10f/0x159 lib/fault-inject.c:149
 should_failslab+0xdb/0x130 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3376 [inline]
 kmem_cache_alloc_trace+0x4b/0x790 mm/slab.c:3616
 kmalloc include/linux/slab.h:488 [inline]
 kzalloc include/linux/slab.h:661 [inline]
 sctp_add_bind_addr+0x6d/0x360 net/sctp/bind_addr.c:159
BUG: unable to handle kernel NULL pointer dereference at           (null)
 sctp_copy_local_addr_list+0x2e0/0x430 net/sctp/protocol.c:229
IP:           (null)
PGD 83330067 
P4D 83330067 
PUD 955ec067 
 sctp_copy_one_addr+0x52/0x120 net/sctp/bind_addr.c:449
PMD 0 
 sctp_bind_addr_copy+0xfc/0x294 net/sctp/bind_addr.c:71
Oops: 0010 [#1] PREEMPT SMP KASAN
 sctp_assoc_set_bind_addr_from_ep+0x13a/0x190 net/sctp/associola.c:1611
Modules linked in:
 sctp_sendmsg+0x1849/0x2e00 net/sctp/socket.c:1874
CPU: 1 PID: 17743 Comm: syz-executor.2 Not tainted 4.14.151 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888081462000 task.stack: ffff888063a00000
RIP: 0010:          (null)
RSP: 0018:ffff888063a07d48 EFLAGS: 00010246
 inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762
RAX: dffffc0000000000 RBX: ffffffff88151060 RCX: ffffc90009448000
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xce/0x110 net/socket.c:656
RDX: 1ffffffff102a223 RSI: 0000000000000000 RDI: ffff8880996a5000
 ___sys_sendmsg+0x349/0x840 net/socket.c:2062
RBP: ffff888063a07d68 R08: 0000000000000001 R09: ffff8880814628a0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880996a5000
R13: ffff8880996a500e R14: 000000000000001c R15: 0000000000000002
FS:  00007f1f07d71700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009906e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __sys_sendmmsg+0x152/0x3a0 net/socket.c:2152
 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
 SYSC_sendmmsg net/socket.c:2183 [inline]
 SyS_sendmmsg+0x35/0x60 net/socket.c:2178
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459f49
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RSP: 002b:00007f1f07d70c78 EFLAGS: 00000246
RIP: 0033:0x459f49
 ORIG_RAX: 000000000000002a
RSP: 002b:00007f6410a8ec78 EFLAGS: 00000246
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459f49
 ORIG_RAX: 0000000000000133
RDX: 000000000000001c RSI: 0000000020000180 RDI: 0000000000000008
RAX: ffffffffffffffda RBX: 00007f6410a8ec90 RCX: 0000000000459f49
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
RDX: 0000000000000002 RSI: 0000000020005500 RDI: 0000000000000003
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1f07d716d4
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R13: 00000000004c0671 R14: 00000000004d2d28 R15: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6410a8f6d4
Code: 
R13: 00000000004c7bac R14: 00000000004ddcd8 R15: 0000000000000004
 Bad RIP value.
kobject: 'loop2' (ffff8880a4a16ee0): kobject_uevent_env
RIP:           (null) RSP: ffff888063a07d48
kobject: 'loop2' (ffff8880a4a16ee0): fill_kobj_path: path = '/devices/virtual/block/loop2'
CR2: 0000000000000000
---[ end trace 8abe955f8fba9c50 ]---
kobject: 'loop0' (ffff8880a49a0de0): kobject_uevent_env
kobject: 'loop0' (ffff8880a49a0de0): fill_kobj_path: path = '/devices/virtual/block/loop0'
kobject: 'loop2' (ffff8880a4a16ee0): kobject_uevent_env
kobject: 'loop2' (ffff8880a4a16ee0): fill_kobj_path: path = '/devices/virtual/block/loop2'

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2019/10/31 16:34 linux-4.14.y ddef1e8e3f6e a41ca8fa .config log report