BUG: corrupted list in xprt_alloc

10 views
Skip to first unread message

syzbot

unread,
Aug 31, 2021, 9:55:22 AM8/31/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e23d55af0e1f Linux 4.19.205
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10b18a6d300000
kernel config: https://syzkaller.appspot.com/x/.config?x=2221dd564152b412
dashboard link: https://syzkaller.appspot.com/bug?extid=86c6e685507598f02e2e
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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+86c6e6...@syzkaller.appspotmail.com

FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=00000000159c4875 [p=0000000000e8ee1b fl=2 nc=0 na=1]
------------[ cut here ]------------
FS-Cache: N-cookie d=00000000b3fb679b n=00000000eb98de36
kernel BUG at lib/list_debug.c:23!
FS-Cache: N-key=[16] '02000000000000000200040072720000'
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7556 Comm: syz-executor.1 Not tainted 4.19.205-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23
Code: fb e8 d6 50 66 f9 48 c7 c7 40 dd b3 88 49 83 cc ff e8 ec 42 f7 ff e9 bd 72 7a fb 4c 89 e1 48 c7 c7 60 e1 b3 88 e8 d8 42 f7 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 a0 e2 b3 88 e8 c1 42 f7
RSP: 0018:ffff888225b6f448 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff888000126080 RCX: 0000000000000000
RDX: 0000000000000022 RSI: ffffffff814e0d61 RDI: ffffed1044b6de7b
RBP: ffff888000126138 R08: 0000000000000075 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888000126138
R13: 0000000000000010 R14: ffff888000126138 R15: ffff888000126138
FS: 00007fa094c7f700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb980dc1000 CR3: 00000000a0361000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add include/linux/list.h:79 [inline]
xprt_alloc+0x45d/0x720 net/sunrpc/xprt.c:1261
xs_setup_xprt.part.0+0x4f/0x2b0 net/sunrpc/xprtsock.c:2900
xs_setup_xprt net/sunrpc/xprtsock.c:3072 [inline]
xs_setup_udp+0x9e/0x860 net/sunrpc/xprtsock.c:3016
xprt_create_transport+0xf9/0x4b0 net/sunrpc/xprt.c:1485
rpc_create+0x288/0x540 net/sunrpc/clnt.c:573
nfs_create_rpc_client+0x36f/0x440 fs/nfs/client.c:529
nfs_init_client fs/nfs/client.c:640 [inline]
nfs_init_client+0x6d/0x100 fs/nfs/client.c:627
nfs_get_client+0xedb/0x1310 fs/nfs/client.c:431
nfs_init_server+0x249/0xe10 fs/nfs/client.c:676
nfs_create_server+0x7a/0x4f0 fs/nfs/client.c:960
nfs_try_mount+0x141/0x880 fs/nfs/super.c:1884
nfs_fs_mount+0x171f/0x2e90 fs/nfs/super.c:2701
mount_fs+0xa3/0x310 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2492 [inline]
do_mount+0x115c/0x2f50 fs/namespace.c:2822
ksys_mount+0xcf/0x130 fs/namespace.c:3038
__do_sys_mount fs/namespace.c:3052 [inline]
__se_sys_mount fs/namespace.c:3049 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3049
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa094c7f188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9
RDX: 000000002015bffc RSI: 0000000020000240 RDI: 0000000000000000
RBP: 00000000004bfcc4 R08: 0000000020000000 R09: 0000000000000000
R10: 0000000054000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffc8c73fdcf R14: 00007fa094c7f300 R15: 0000000000022000
Modules linked in:
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=00000000e3cae26f [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=00000000bf165812
FS-Cache: N-key=[16] '02000000000000000200040072720000'
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=000000006d558d15 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=000000005f5202fd
FS-Cache: N-key=[16] '02000000000000000200040072720000'
---[ end trace f845c1e532bb78e0 ]---
RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23
Code: fb e8 d6 50 66 f9 48 c7 c7 40 dd b3 88 49 83 cc ff e8 ec 42 f7 ff e9 bd 72 7a fb 4c 89 e1 48 c7 c7 60 e1 b3 88 e8 d8 42 f7 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 a0 e2 b3 88 e8 c1 42 f7
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=00000000f46d9353 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=0000000084de36c7
FS-Cache: N-key=[16] '02000000000000000200040072720000'
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=00000000fed09ca1 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=00000000b6458c95
FS-Cache: N-key=[16] '02000000000000000200040072720000'
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=0000000092b7d449 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=00000000eb7a8c1d
FS-Cache: N-key=[16] '02000000000000000200040072720000'
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=000000005659048b [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=00000000c6f95835
FS-Cache: N-key=[16] '02000000000000000200040072720000'
RSP: 0018:ffff888225b6f448 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff888000126080 RCX: 0000000000000000
RDX: 0000000000000022 RSI: ffffffff814e0d61 RDI: ffffed1044b6de7b
RBP: ffff888000126138 R08: 0000000000000075 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888000126138
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
R13: 0000000000000010 R14: ffff888000126138 R15: ffff888000126138
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=0000000054e59645 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS-Cache: N-cookie d=00000000b3fb679b n=000000001a091636
FS-Cache: N-key=[16] '02000000000000000200040072720000'
FS-Cache: Duplicate cookie detected
FS-Cache: O-cookie c=00000000b7ea0ded [p=0000000000e8ee1b fl=222 nc=0 na=1]
FS-Cache: O-cookie d=00000000b3fb679b n=00000000e3918a0e
FS-Cache: O-key=[16] '02000000000000000200040072720000'
FS-Cache: N-cookie c=000000005adb7aa4 [p=0000000000e8ee1b fl=2 nc=0 na=1]
FS: 00007fa094c7f700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
FS-Cache: N-cookie d=00000000b3fb679b n=00000000a6ad24c0
FS-Cache: N-key=[16] '02000000000000000200040072720000'
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcbce34ff8 CR3: 00000000a0361000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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,
Dec 29, 2021, 8:55:25 AM12/29/21
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages