syzbot


BUG: bad usercopy in ___sys_sendmsg

Status: closed as dup on 2017/12/31 08:10
Subsystems: hardening mm
[Documentation on labels]
Reported-by: syzbot+60f2c3a2a759796bd44ac3f94599ab78756b6a62@syzkaller.appspotmail.com
First crash: 2570d, last: 2544d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in __list_del_entry_valid (2) crypto C 11 2563d 2565d

Sample crash report:
usercopy: kernel memory overwrite attempt detected to 00000000440af9e1 (kmalloc-1024) (1000 bytes)
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:72!
invalid opcode: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 16175 Comm: syz-executor7 Not tainted 4.15.0-rc5+ #177
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=19 sclass=netlink_audit_socket pig=16216 comm=syz-executor2
SELinux: unrecognized netlink message: protocol=9 nlmsg_type=19 sclass=netlink_audit_socket pig=16218 comm=syz-executor2
RIP: 0010:report_usercopy mm/usercopy.c:64 [inline]
RIP: 0010:__check_object_size+0x3a2/0x4f0 mm/usercopy.c:264
RSP: 0018:ffff8801d2787920 EFLAGS: 00010286
RAX: 0000000000000062 RBX: ffffffff8592bb60 RCX: 0000000000000000
RDX: 0000000000000062 RSI: ffffc90001e15000 RDI: ffffed003a4f0f18
RBP: ffff8801d2787a10 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000c089692f R11: 0000000000000000 R12: ffffffff8592bb20
R13: ffff8801cc5e8090 R14: 00000000000003e8 R15: ffffea0007317a00
FS:  00007f737eec3700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a2fa38 CR3: 00000001ab6a3005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 check_object_size include/linux/thread_info.h:112 [inline]
 check_copy_size include/linux/thread_info.h:143 [inline]
 copy_from_user include/linux/uaccess.h:146 [inline]
 ___sys_sendmsg+0x59c/0x8b0 net/socket.c:1995
 __sys_sendmmsg+0x1ee/0x620 net/socket.c:2108
 SYSC_sendmmsg net/socket.c:2139 [inline]
 SyS_sendmmsg+0x35/0x60 net/socket.c:2134
 entry_SYSCALL_64_fastpath+0x23/0x9a
RIP: 0033:0x452ac9
RSP: 002b:00007f737eec2c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9
RDX: 0000000000000003 RSI: 00000000204e3000 RDI: 0000000000000014
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000024000040 R11: 0000000000000212 R12: 00000000006ee0b8
R13: 00000000ffffffff R14: 00007f737eec36d4 R15: 0000000000000000
Code: 48 0f 44 da e8 70 5b c0 ff 48 8b 85 28 ff ff ff 4d 89 f1 4c 89 e9 4c 89 e2 48 89 de 48 c7 c7 20 bc 92 85 49 89 c0 e8 e6 10 aa ff <0f> 0b 48 c7 c0 e0 b9 92 85 eb 96 48 c7 c0 20 ba 92 85 eb 8d 48 
RIP: report_usercopy mm/usercopy.c:64 [inline] RSP: ffff8801d2787920
RIP: __check_object_size+0x3a2/0x4f0 mm/usercopy.c:264 RSP: ffff8801d2787920
---[ end trace a4de899f12c63eb6 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (70):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/08 02:12 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/08 01:34 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/07 17:24 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/07 10:12 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/07 08:57 net-next-old d0adb51edb73 19c05fff .config console log report ci-upstream-net-kasan-gce
2018/01/05 20:14 net-next-old 72deacce011b 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/05 11:40 net-next-old 72deacce011b 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/05 07:47 net-next-old 8a4816cad00b 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/05 07:15 net-next-old 8a4816cad00b 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/04 10:32 net-next-old 4b24dd802280 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/04 08:21 net-next-old 4b24dd802280 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/03 10:17 net-next-old 72bca2084a21 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/02 00:39 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/01 19:37 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/01 15:54 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/01 14:40 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/01 09:42 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2018/01/01 00:20 net-next-old 6bb8824732f6 00193447 .config console log report ci-upstream-net-kasan-gce
2017/12/31 05:29 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/31 05:19 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/30 18:13 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/30 16:14 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/30 02:33 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/30 02:13 net-next-old 6bb8824732f6 bb6384b8 .config console log report ci-upstream-net-kasan-gce
2017/12/29 09:50 net-next-old d367341b25bd 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 23:40 net-next-old 836df24a7062 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 17:37 net-next-old 836df24a7062 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 11:58 net-next-old 55b07a65e15b 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 04:17 net-next-old 55b07a65e15b 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/28 01:41 net-next-old 55b07a65e15b 7d240098 .config console log report ci-upstream-net-kasan-gce
2017/12/27 05:16 net-next-old 243dc5fb4697 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/27 03:18 net-next-old 243dc5fb4697 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/26 20:28 net-next-old 243dc5fb4697 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/26 14:35 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/26 13:04 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/26 08:40 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/25 21:40 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/25 20:33 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2017/12/25 20:25 net-next-old fba961ab29e5 73aba437 .config console log report ci-upstream-net-kasan-gce
2018/01/01 07:37 linux-next 0e08c463db38 00193447 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.