BUG: corrupted list in rdma_listen (2)

5 views
Skip to first unread message

syzbot

unread,
Jul 30, 2020, 2:22:24 PM7/30/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e5a54aa2 Linux 4.14.190
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=115c4f4c900000
kernel config: https://syzkaller.appspot.com/x/.config?x=dbb53fc7192d83c3
dashboard link: https://syzkaller.appspot.com/bug?extid=dbe5efc341bec3342aba
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dbe5ef...@syzkaller.appspotmail.com

list_add corruption. prev->next should be next (ffffffff885b3180), but was 00000000ffffffff. (prev=ffff88808b1b0218).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:26!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 16314 Comm: syz-executor.1 Not tainted 4.14.190-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880963f0100 task.stack: ffff888050c80000
RIP: 0010:__list_add_valid.cold+0x3a/0x3c lib/list_debug.c:26
RSP: 0018:ffff888050c87bc8 EFLAGS: 00010282
RAX: 0000000000000075 RBX: ffff888092531200 RCX: 0000000000000000
RDX: 0000000000015a4a RSI: ffffffff814a46a0 RDI: ffffed100a190f6f
RBP: ffff8880925313d8 R08: 0000000000000075 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff885b3180
R13: 0000000000000400 R14: ffff888092531418 R15: 0000000000000000
FS: 00007f4bc34c3700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31c2c000 CR3: 0000000095cd7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add_tail include/linux/list.h:93 [inline]
cma_listen_on_all drivers/infiniband/core/cma.c:2327 [inline]
rdma_listen+0x656/0x9b0 drivers/infiniband/core/cma.c:3338
ucma_listen+0x10b/0x170 drivers/infiniband/core/ucma.c:1078
ucma_write+0x206/0x2c0 drivers/infiniband/core/ucma.c:1672
__vfs_write+0xe4/0x630 fs/read_write.c:480
vfs_write+0x17f/0x4d0 fs/read_write.c:544
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45cc79
RSP: 002b:00007f4bc34c2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000000375c0 RCX: 000000000045cc79
RDX: 0000000000000010 RSI: 0000000020000080 RDI: 000000000000000a
RBP: 000000000078bfe0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bfac
R13: 00007ffc46d72bdf R14: 00007f4bc34c39c0 R15: 000000000078bfac
Code: 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 80 5c e4 86 e8 1c b6 44 fe 0f 0b 48 89 f1 48 c7 c7 00 5c e4 86 4c 89 e6 e8 08 b6 44 fe <0f> 0b 48 89 ee 48 c7 c7 a0 5d e4 86 e8 f7 b5 44 fe 0f 0b 4c 89
RIP: __list_add_valid.cold+0x3a/0x3c lib/list_debug.c:26 RSP: ffff888050c87bc8
---[ end trace a77b5bbb0a03c777 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 7, 2021, 11:34:13 PM3/7/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1d177c08 Linux 4.14.224
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17921c2ad00000
kernel config: https://syzkaller.appspot.com/x/.config?x=d474f9d9298a6d6a
dashboard link: https://syzkaller.appspot.com/bug?extid=dbe5efc341bec3342aba
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=106f9142d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dbe5ef...@syzkaller.appspotmail.com

batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 8351 Comm: syz-executor.0 Not tainted 4.14.224-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880aaf56100 task.stack: ffff888095790000
RIP: 0010:cma_bind_listen drivers/infiniband/core/cma.c:3205 [inline]
RIP: 0010:rdma_listen+0x32b/0x9b0 drivers/infiniband/core/cma.c:3318
RSP: 0018:ffff888095797be8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888093716480 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff87ccd680 RDI: 0000000000000008
RBP: ffff888093716694 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880aaf56100 R12: 0000000000000000
R13: 0000000000000400 R14: ffff888093716698 R15: 0000000000000008
FS: 00007f9135d90700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f18f50a2710 CR3: 000000009dbc9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ucma_listen+0x10b/0x170 drivers/infiniband/core/ucma.c:1078
ucma_write+0x206/0x2c0 drivers/infiniband/core/ucma.c:1672
__vfs_write+0xe4/0x630 fs/read_write.c:480
vfs_write+0x17f/0x4d0 fs/read_write.c:544
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x465f69
RSP: 002b:00007f9135d90188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465f69
RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007fff3fb70aaf R14: 00007f9135d90300 R15: 0000000000022000
Code: 4c 8b a3 c0 01 00 00 31 f6 48 c7 c7 00 4b b4 89 e8 db 79 d4 01 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 92 05 00 00 48 b8 00 00 00 00 00 fc ff df 4d
RIP: cma_bind_listen drivers/infiniband/core/cma.c:3205 [inline] RSP: ffff888095797be8
RIP: rdma_listen+0x32b/0x9b0 drivers/infiniband/core/cma.c:3318 RSP: ffff888095797be8
---[ end trace 0927ae09d182f5ef ]---

syzbot

unread,
May 27, 2022, 1:47:21 AM5/27/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 501eec4f9e13 Linux 4.14.281
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10f01b19f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f1fa63ddcfc7168c
dashboard link: https://syzkaller.appspot.com/bug?extid=dbe5efc341bec3342aba
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13d40d03f00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=128902ddf00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dbe5ef...@syzkaller.appspotmail.com

kasan: CONFIG_KASAN_INLINE enabled
futex_wait_setup+0xb3/0x260 kernel/futex.c:2787
futex_wait+0x199/0x5a0 kernel/futex.c:2850
kasan: GPF could be caused by NULL-ptr deref or user memory access
do_futex+0x1d8/0x1570 kernel/futex.c:3906
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 8006 Comm: syz-executor332 Not tainted 4.14.281-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b3b36500 task.stack: ffff88808d378000
RIP: 0010:cma_bind_listen drivers/infiniband/core/cma.c:3206 [inline]
RIP: 0010:rdma_listen+0x32b/0x9b0 drivers/infiniband/core/cma.c:3319
RSP: 0018:ffff88808d37fbe8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880b3f9bb40 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000002 RDI: 0000000000000008
RBP: ffff8880b3f9bd54 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b3b36500 R12: 0000000000000000
SYSC_futex kernel/futex.c:3966 [inline]
SyS_futex+0x1da/0x290 kernel/futex.c:3934
R13: 0000000000000400 R14: ffff8880b3f9bd58 R15: 0000000000000008
FS: 00007fc39b19d700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1f3c574000 CR3: 00000000a9240000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
Call Trace:
entry_SYSCALL_64_after_hwframe+0x46/0xbb
ucma_listen+0x10b/0x170 drivers/infiniband/core/ucma.c:1078
RIP: 0033:0x7fc39b20cfb9
RSP: 002b:00007fc39b13a2e8 EFLAGS: 00000246
ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fc39b296520 RCX: 00007fc39b20cfb9
ucma_write+0x206/0x2c0 drivers/infiniband/core/ucma.c:1672
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fc39b296528
RBP: 00007fc39b263194 R08: 0000000000000032 R09: 0000000000000032
__vfs_write+0xe4/0x630 fs/read_write.c:480
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc39b13a2f0
R13: 006d635f616d6472 R14: 00007fc39b296528 R15: 0000000000000001
vfs_write+0x17f/0x4d0 fs/read_write.c:544
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fc39b20cfb9
RSP: 002b:00007fc39b19d2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fc39b2964f0 RCX: 00007fc39b20cfb9
RDX: 0000000000000010 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007fc39b263194 R08: 00007fc39b19d700 R09: 0000000000000000
R10: 00007fc39b19d700 R11: 0000000000000246 R12: 00007fc39b19d2f0
R13: 006d635f616d6472 R14: 00007fc39b2964f8 R15: 0000000000022000
Code: 4c 8b a3 c0 01 00 00 31 f6 48 c7 c7 c0 cb b4 89 e8 5b 93 d5 01 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 92 05 00 00 48 b8 00 00 00 00 00 fc ff df 4d
RIP: cma_bind_listen drivers/infiniband/core/cma.c:3206 [inline] RSP: ffff88808d37fbe8
RIP: rdma_listen+0x32b/0x9b0 drivers/infiniband/core/cma.c:3319 RSP: ffff88808d37fbe8
---[ end trace 85ab7b5b612abf1a ]---
----------------
Code disassembly (best guess):
0: 4c 8b a3 c0 01 00 00 mov 0x1c0(%rbx),%r12
7: 31 f6 xor %esi,%esi
9: 48 c7 c7 c0 cb b4 89 mov $0xffffffff89b4cbc0,%rdi
10: e8 5b 93 d5 01 callq 0x1d59370
15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1c: fc ff df
1f: 49 8d 7c 24 08 lea 0x8(%r12),%rdi
24: 48 89 fa mov %rdi,%rdx
27: 48 c1 ea 03 shr $0x3,%rdx
* 2b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2f: 0f 85 92 05 00 00 jne 0x5c7
35: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
3c: fc ff df
3f: 4d rex.WRB

Reply all
Reply to author
Forward
0 new messages