syzbot
kernel BUG at mm/usercopy.c:LINE!
Status: fixed on 2017/09/06 01:15
Fix commit:
fd851ba9caa9
udp: harden copy_linear_skb()
First crash: 3294d, last: 3281d
Sample crash report:
------------[ 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: 0 PID: 2917 Comm: syzkaller842281 Not tainted 4.13.0-rc3+ #16
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d2fa40c0 task.stack: ffff8801d1fe8000
RIP: 0010:report_usercopy mm/usercopy.c:64 [inline]
RIP: 0010:__check_object_size+0x3ad/0x500 mm/usercopy.c:264
RSP: 0018:ffff8801d1fef8a8 EFLAGS: 00010286
RAX: 0000000000000078 RBX: ffffffff847102c0 RCX: 0000000000000000
RDX: 0000000000000078 RSI: 1ffff1003a3fded5 RDI: ffffed003a3fdf09
RBP: ffff8801d1fef998 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d1ea480e
R13: fffffffffffffffa R14: ffffffff84710280 R15: dffffc0000000000
FS: 0000000001360880(0000) GS:ffff8801dc000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000202ecfe4 CR3: 00000001d1ff8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
check_object_size include/linux/thread_info.h:108 [inline]
check_copy_size include/linux/thread_info.h:139 [inline]
copy_to_iter include/linux/uio.h:105 [inline]
copy_linear_skb include/net/udp.h:371 [inline]
udpv6_recvmsg+0x1040/0x1af0 net/ipv6/udp.c:395
inet_recvmsg+0x14c/0x5f0 net/ipv4/af_inet.c:793
sock_recvmsg_nosec net/socket.c:792 [inline]
sock_recvmsg+0xc9/0x110 net/socket.c:799
SYSC_recvfrom+0x2d6/0x570 net/socket.c:1788
SyS_recvfrom+0x40/0x50 net/socket.c:1760
entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x43fe59
RSP: 002b:00007ffe9d04e668 EFLAGS: 00000203 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 00000000006ccd60 RCX: 000000000043fe59
RDX: 0000000000000000 RSI: 00000000207df000 RDI: 0000000000000004
RBP: 0000000000000082 R08: 000000002034eff6 R09: 0000000000000008
R10: 0000000020000043 R11: 0000000000000203 R12: ffffffffffffffff
R13: 9abcdb1737225b7b R14: 0000000000000000 R15: 0000000000000000
Code: 48 0f 44 da e8 c5 d5 ca ff 48 8b 85 28 ff ff ff 4d 89 e9 4c 89 e1 4c 89 f2 48 89 de 48 c7 c7 00 03 71 84 49 89 c0 e8 a8 49 b6 ff <0f> 0b 48 c7 c0 c0 00 71 84 eb 96 48 c7 c0 00 01 71 84 eb 8d 48
RIP: report_usercopy mm/usercopy.c:64 [inline] RSP: ffff8801d1fef8a8
RIP: __check_object_size+0x3ad/0x500 mm/usercopy.c:264 RSP: ffff8801d1fef8a8
---[ end trace 2141bb72cdf9cbf2 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..
* Struck through repros no longer work on HEAD.