syzbot


kernel BUG at lib/string.c:LINE! (2)

Status: fixed on 2018/03/23 18:14
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+2287ac532caa81900a4e@syzkaller.appspotmail.com
Fix commit: 0c81ffc60d52 RDMA/ucma: Don't allow join attempts for unsupported AF family
First crash: 2229d, last: 2229d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 3.16 000/410] 3.16.57-rc1 review 426 (426) 2018/11/12 17:42
[PATCH 4.4 00/72] 4.4.127-stable review 83 (83) 2018/05/17 08:56
[PATCH 4.9 000/177] 4.9.90-stable review 186 (186) 2018/03/24 16:31
[PATCH 4.14 00/77] 4.14.30-stable review 82 (82) 2018/03/24 16:17
[PATCH 4.15 00/84] 4.15.13-stable review 94 (94) 2018/03/24 09:05
kernel BUG at lib/string.c:LINE! (2) 0 (1) 2018/03/13 01:59
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at lib/string.c:LINE! netfilter C 73 2383d 2399d 3/26 fixed on 2017/10/24 07:07
upstream kernel BUG at lib/string.c:LINE! (5) btrfs C done 558 1303d 1311d 15/26 fixed on 2020/10/15 08:22
upstream kernel BUG at lib/string.c:LINE! (6) netfilter C done 2 1217d 1213d 19/26 fixed on 2021/03/10 01:48
upstream kernel BUG in sg_write scsi 3 1131d 1132d 0/26 auto-closed as invalid on 2021/05/17 10:34
upstream kernel BUG at lib/string.c:LINE! (3) rdma C 5 2213d 2214d 5/26 fixed on 2018/04/06 16:37
upstream kernel BUG at lib/string.c:LINE! (4) lvs C 2 2164d 2164d 5/26 fixed on 2018/06/07 13:52

Sample crash report:
audit: type=1400 audit(1520896835.087:8): avc:  denied  { map } for  pid=4105 comm="syz-execprog" path="/root/syzkaller-shm186702042" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1
IPVS: ftp: loaded support on port[0] = 21
detected buffer overflow in memcpy
------------[ cut here ]------------
kernel BUG at lib/string.c:1052!
invalid opcode: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4113 Comm: syz-executor0 Not tainted 4.16.0-rc5+ #261
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fortify_panic+0x13/0x20 lib/string.c:1051
RSP: 0018:ffff8801ca81f8f0 EFLAGS: 00010286
RAX: 0000000000000022 RBX: 1ffff10039503f23 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 1ffff10039503ed3 RDI: ffffed0039503f12
RBP: ffff8801ca81f8f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000006 R11: 0000000000000000 R12: ffff8801ca81f998
R13: ffff8801ca81f938 R14: ffff8801ca81fa58 R15: 000000000000fa00
FS:  0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:000000000a12a900
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000008138024 CR3: 00000001cbb58004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 memcpy include/linux/string.h:344 [inline]
 ucma_join_ip_multicast+0x36b/0x3b0 drivers/infiniband/core/ucma.c:1421
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1633
 __vfs_write+0xef/0x970 fs/read_write.c:480
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline]
 do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f9ec99
RSP: 002b:00000000ff8172cc EFLAGS: 00000282 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000100
RDX: 0000000000000063 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 89 df e8 42 2c e3 fb eb de 55 48 89 fe 48 c7 c7 80 75 98 86 48 89 e5 e8 85 95 94 fb <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 41 57 41 56 
RIP: fortify_panic+0x13/0x20 lib/string.c:1051 RSP: ffff8801ca81f8f0
---[ end trace 38d88b3acc1e3095 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/12 23:23 upstream 0c8efd610b58 f505ca4b .config console log report syz ci-upstream-kasan-gce-386
2018/03/12 23:07 upstream 0c8efd610b58 f505ca4b .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.