syzbot


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

Status: fixed on 2018/04/06 16:37
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+6800425d54ed3ed8135d@syzkaller.appspotmail.com
Fix commit: 84652aefb347 RDMA/ucma: Introduce safer rdma_addr_size() variants
First crash: 2216d, last: 2214d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
KASAN: stack-out-of-bounds Read in rdma_bind_addr (2) rdma C 4 2213d 2213d 0/26 closed as dup on 2018/04/04 06:24
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 3.16 000/366] 3.16.60-rc1 review 370 (370) 2019/03/29 15:47
[PATCH 4.4 00/72] 4.4.127-stable review 83 (83) 2018/05/17 08:56
[PATCH 4.9 000/102] 4.9.93-stable review 111 (111) 2018/04/12 16:56
[PATCH 4.15 00/72] 4.15.16-stable review 78 (78) 2018/04/07 06:10
[PATCH 4.14 00/67] 4.14.33-stable review 71 (71) 2018/04/06 22:10
kernel BUG at lib/string.c:LINE! (3) 0 (2) 2018/03/29 05:09
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 2384d 2400d 3/26 fixed on 2017/10/24 07:07
upstream kernel BUG at lib/string.c:LINE! (5) btrfs C done 558 1304d 1312d 15/26 fixed on 2020/10/15 08:22
upstream kernel BUG at lib/string.c:LINE! (2) rdma syz 2 2230d 2230d 4/26 fixed on 2018/03/23 18:14
upstream kernel BUG at lib/string.c:LINE! (6) netfilter C done 2 1218d 1214d 19/26 fixed on 2021/03/10 01:48
upstream kernel BUG in sg_write scsi 3 1132d 1133d 0/26 auto-closed as invalid on 2021/05/17 10:34
upstream kernel BUG at lib/string.c:LINE! (4) lvs C 2 2165d 2165d 5/26 fixed on 2018/06/07 13:52

Sample crash report:
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: 1 PID: 4265 Comm: syzkaller394057 Not tainted 4.16.0-rc7+ #369
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:ffff8801c0baf940 EFLAGS: 00010282
RAX: 0000000000000022 RBX: 1ffff10038175f2d RCX: 0000000000000000
RDX: 0000000000000022 RSI: 1ffff10038175edd RDI: ffffed0038175f1c
RBP: ffff8801c0baf940 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000006 R11: 0000000000000000 R12: ffff8801c0baf9e8
R13: ffff8801c0baf988 R14: ffff8801c0bafaa8 R15: 000000000000fa00
FS:  00000000019a4880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000140 CR3: 00000001c12ff001 CR4: 00000000001606e0
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+0x37a/0x3c0 drivers/infiniband/core/ucma.c:1434
 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1649
 __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_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x43fd29
RSP: 002b:00007ffff57bdc78 EFLAGS: 00000213 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd29
RDX: 0000000000000118 RSI: 0000000020000f80 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401650
R13: 00000000004016e0 R14: 0000000000000000 R15: 0000000000000000
Code: 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 89 df e8 d2 a7 3f fb eb de 55 48 89 fe 48 c7 c7 c0 43 44 87 48 89 e5 e8 d5 05 f1 fa <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: ffff8801c0baf940
---[ end trace 1b9f94576855f965 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/29 06:05 upstream a2601d78b77a bf5e585c .config console log report syz C ci-upstream-kasan-gce
2018/03/29 05:08 upstream a2601d78b77a bf5e585c .config console log report syz C ci-upstream-kasan-gce-root
2018/03/29 05:11 upstream a2601d78b77a bf5e585c .config console log report syz ci-upstream-kasan-gce-386
2018/03/26 11:30 upstream 3eb2ce825ea1 e033c1f1 .config console log report syz ci-upstream-kasan-gce-386
2018/03/26 11:10 upstream 3eb2ce825ea1 e033c1f1 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.