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: 2482d, last: 2470d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at mm/usercopy.c:LINE! (2) hardening mm C 109444 2353d 2406d 0/26 closed as invalid on 2018/02/01 14:57

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..

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/08/03 07:50 upstream 19ec50a438c2 f5040a63 .config console log report syz C ci-upstream-kasan-gce
2017/08/16 03:30 upstream 40c6d1b9e2fc 6a0246bf .config console log report ci-upstream-kasan-gce
2017/08/16 02:06 upstream 40c6d1b9e2fc 6a0246bf .config console log report ci-upstream-kasan-gce
2017/08/16 02:04 upstream 40c6d1b9e2fc 6a0246bf .config console log report ci-upstream-kasan-gce
2017/08/09 19:20 upstream bfa738cf3dfa 7e288c05 .config console log report ci-upstream-kasan-gce
2017/08/03 06:57 upstream 19ec50a438c2 f5040a63 .config console log report ci-upstream-kasan-gce
2017/08/15 22:02 net-next-old 2587b52a7b5a 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/15 16:26 net-next-old 2587b52a7b5a 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/15 09:58 net-next-old cb44a8606f06 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/15 07:53 net-next-old cb44a8606f06 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/14 21:40 net-next-old f5b589488ea5 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/14 19:06 net-next-old f5b589488ea5 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/14 18:51 net-next-old f5b589488ea5 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/14 18:31 net-next-old f5b589488ea5 6a0246bf .config console log report ci-upstream-net-kasan-gce
2017/08/14 03:14 net-next-old d0225784be6c 360f0528 .config console log report ci-upstream-net-kasan-gce
2017/08/13 09:57 net-next-old aa69ff9e9c32 360f0528 .config console log report ci-upstream-net-kasan-gce
2017/08/12 22:41 net-next-old aa69ff9e9c32 360f0528 .config console log report ci-upstream-net-kasan-gce
2017/08/12 21:08 net-next-old aa69ff9e9c32 360f0528 .config console log report ci-upstream-net-kasan-gce
2017/08/11 21:33 linux-next 91dfed74eabc 360f0528 .config console log report ci-upstream-next-kasan-gce
2017/08/11 20:50 linux-next 91dfed74eabc 360f0528 .config console log report ci-upstream-next-kasan-gce
2017/08/11 20:45 linux-next 91dfed74eabc 360f0528 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.