BUG: corrupted list in p9_fd_cancelled (2)

4 views
Skip to first unread message

syzbot

unread,
Nov 23, 2021, 10:00:19 AM11/23/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 697fba25ed27 FROMGIT: binder: fix test regression due to s..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1680c3a1b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=8844969a6709ae53
dashboard link: https://syzkaller.appspot.com/bug?extid=6c5973e636aa01c648cd
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2

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+6c5973...@syzkaller.appspotmail.com

list_del corruption, ffff8881f2df1d80->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:47!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 18008 Comm: syz-executor.5 Not tainted 5.4.147-syzkaller-00010-g697fba25ed27 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0xbb/0x100 lib/list_debug.c:45
Code: 89 df e8 a8 71 6e ff 48 8b 13 4c 39 f2 75 43 b0 01 5b 41 5c 41 5e 41 5f c3 48 c7 c7 c0 95 e3 84 4c 89 f6 31 c0 e8 d1 8c 2b ff <0f> 0b 48 c7 c7 20 96 e3 84 4c 89 f6 31 c0 e8 be 8c 2b ff 0f 0b 48
RSP: 0018:ffff8881e1ddf880 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 5df9e8373efd6300
RDX: ffffc9000058e000 RSI: 00000000000150b2 RDI: 00000000000150b3
RBP: 0000000000000005 R08: ffffffff814b2a4c R09: ffffed103edc9608
R10: ffffed103edc9608 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881f2df1d00 R14: ffff8881f2df1d80 R15: dead000000000122
FS: 00007f0b84346700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556368b78 CR3: 000000019f621000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
__list_del_entry include/linux/list.h:131 [inline]
list_del include/linux/list.h:139 [inline]
p9_fd_cancelled+0x71/0x1b0 net/9p/trans_fd.c:722
p9_client_flush+0x2e9/0x4d0 net/9p/client.c:675
p9_client_rpc+0x728/0x9b0 net/9p/client.c:782
p9_client_version+0xfd/0x620 net/9p/client.c:943
p9_client_create+0x845/0xaf0 net/9p/client.c:1053
v9fs_session_init+0x18c/0x1820 fs/9p/v9fs.c:406
v9fs_mount+0x72/0x780 fs/9p/vfs_super.c:124
legacy_get_tree+0xde/0x170 fs/fs_context.c:647
vfs_get_tree+0x83/0x260 fs/super.c:1547
do_new_mount fs/namespace.c:2843 [inline]
do_mount+0x17be/0x2390 fs/namespace.c:3163
ksys_mount+0xc2/0xf0 fs/namespace.c:3372
__do_sys_mount fs/namespace.c:3386 [inline]
__se_sys_mount fs/namespace.c:3383 [inline]
__x64_sys_mount+0xb1/0xc0 fs/namespace.c:3383
do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f0b86611ae9
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:00007f0b84346188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0b867250e0 RCX: 00007f0b86611ae9
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f0b8666bf6d R08: 0000000020000180 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd394af88f R14: 00007f0b84346300 R15: 0000000000022000
Modules linked in:
---[ end trace 7b58854356b7f817 ]---
RIP: 0010:__list_del_entry_valid+0xbb/0x100 lib/list_debug.c:45
Code: 89 df e8 a8 71 6e ff 48 8b 13 4c 39 f2 75 43 b0 01 5b 41 5c 41 5e 41 5f c3 48 c7 c7 c0 95 e3 84 4c 89 f6 31 c0 e8 d1 8c 2b ff <0f> 0b 48 c7 c7 20 96 e3 84 4c 89 f6 31 c0 e8 be 8c 2b ff 0f 0b 48
RSP: 0018:ffff8881e1ddf880 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 5df9e8373efd6300
RDX: ffffc9000058e000 RSI: 00000000000150b2 RDI: 00000000000150b3
RBP: 0000000000000005 R08: ffffffff814b2a4c R09: ffffed103edc9608
R10: ffffed103edc9608 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881f2df1d00 R14: ffff8881f2df1d80 R15: dead000000000122
FS: 00007f0b84346700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556368b78 CR3: 000000019f621000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
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 11, 2023, 2:29:42 PM3/11/23
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 250ac66f1853 UPSTREAM: usb: gadget: f_fs: Ensure ep0req is..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=15f800dcc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=e270749e5a0ba365
dashboard link: https://syzkaller.appspot.com/bug?extid=6c5973e636aa01c648cd
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=172d2eb8c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2b9474fb6a17/disk-250ac66f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/825061f700a1/vmlinux-250ac66f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6e4040b78dde/bzImage-250ac66f.xz

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

list_del corruption, ffff8881d87a6150->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:55!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4005 Comm: syz-executor.1 Not tainted 5.4.225-syzkaller-00007-g250ac66f1853 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:__list_del_entry_valid+0xe5/0x120 lib/list_debug.c:53
Code: 4c 89 f6 e8 d5 0d 0f 02 0f 0b 48 c7 c7 a0 af d9 84 4c 89 f6 e8 c4 0d 0f 02 0f 0b 48 c7 c7 00 b0 d9 84 4c 89 f6 e8 b3 0d 0f 02 <0f> 0b 48 c7 c7 60 b0 d9 84 4c 89 f6 e8 a2 0d 0f 02 0f 0b 48 c7 c7
RSP: 0018:ffff8881e805f478 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 0a948ba354e24200
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000005 R08: ffffffff814ca286 R09: ffffed103edcaa08
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881d87a60d0 R14: ffff8881d87a6150 R15: dead000000000122
FS: 00007fc166cc0700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200bd038 CR3: 00000001de019000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_del_entry include/linux/list.h:131 [inline]
list_del include/linux/list.h:139 [inline]
p9_fd_cancelled+0x72/0x1b0 net/9p/trans_fd.c:725
p9_client_flush+0x392/0x570 net/9p/client.c:677
p9_client_rpc+0xae0/0x1410 net/9p/client.c:784
p9_client_version net/9p/client.c:942 [inline]
p9_client_create+0x9be/0x11a0 net/9p/client.c:1052
v9fs_session_init+0x1fa/0x19b0 fs/9p/v9fs.c:406
v9fs_mount+0x72/0x770 fs/9p/vfs_super.c:124
legacy_get_tree+0xdf/0x170 fs/fs_context.c:647
vfs_get_tree+0x85/0x260 fs/super.c:1547
do_new_mount+0x292/0x570 fs/namespace.c:2843
do_mount+0x688/0xdd0 fs/namespace.c:3163
ksys_mount+0xc2/0xf0 fs/namespace.c:3372
__do_sys_mount fs/namespace.c:3386 [inline]
__se_sys_mount fs/namespace.c:3383 [inline]
__x64_sys_mount+0xb1/0xc0 fs/namespace.c:3383
do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace b9165e64011b3eb3 ]---
RIP: 0010:__list_del_entry_valid+0xe5/0x120 lib/list_debug.c:53
Code: 4c 89 f6 e8 d5 0d 0f 02 0f 0b 48 c7 c7 a0 af d9 84 4c 89 f6 e8 c4 0d 0f 02 0f 0b 48 c7 c7 00 b0 d9 84 4c 89 f6 e8 b3 0d 0f 02 <0f> 0b 48 c7 c7 60 b0 d9 84 4c 89 f6 e8 a2 0d 0f 02 0f 0b 48 c7 c7
RSP: 0018:ffff8881e805f478 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 0a948ba354e24200
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000005 R08: ffffffff814ca286 R09: ffffed103edcaa08
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881d87a60d0 R14: ffff8881d87a6150 R15: dead000000000122
FS: 00007fc166cc0700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200bd038 CR3: 00000001de019000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Reply all
Reply to author
Forward
0 new messages