syzbot


BUG: corrupted list in p9_fd_cancel (2)

Status: fixed on 2023/02/24 13:50
Subsystems: v9fs fuse
[Documentation on labels]
Reported-by: syzbot+9b69b8d10ab4a7d88056@syzkaller.appspotmail.com
Fix commit: 11c10956515b 9p/fd: fix issue of list_del corruption in p9_fd_cancel()
First crash: 720d, last: 695d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] net/9p: fix issue of list_del corruption in p9_fd_cancel() 4 (4) 2022/11/11 02:12
[syzbot] BUG: corrupted list in p9_fd_cancel (2) 1 (2) 2022/10/23 16:09
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in p9_fd_cancel v9fs C 34 2273d 2287d 8/28 fixed on 2018/08/28 17:48
android-54 BUG: corrupted list in p9_fd_cancel 1 624d 624d 0/2 auto-obsoleted due to no activity on 2023/05/27 07:47
android-5-15 BUG: corrupted list in p9_fd_cancel C done 2 628d 628d 2/2 fixed on 2023/01/27 09:47
Last patch testing requests (3)
Created Duration User Patch Repo Result
2022/10/24 07:04 20m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d47136c28015 report log
2022/10/24 01:23 20m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git aae703b02f92 report log
2022/10/23 13:58 19m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d47136c28015 report log

Sample crash report:
list_del corruption, ffff88802295c4b0->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: 4018 Comm: syz-executor365 Not tainted 6.1.0-rc1-syzkaller-00427-gd47136c28015 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:__list_del_entry_valid+0xef/0x130 lib/list_debug.c:53
Code: 29 40 03 06 0f 0b 48 c7 c7 e0 bf 0a 8b 4c 89 fe 31 c0 e8 16 40 03 06 0f 0b 48 c7 c7 40 c0 0a 8b 4c 89 fe 31 c0 e8 03 40 03 06 <0f> 0b 48 c7 c7 a0 c0 0a 8b 4c 89 fe 31 c0 e8 f0 3f 03 06 0f 0b 48
RSP: 0018:ffffc900044c7630 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000122 RCX: 5051969350135b00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff816cec5d R09: fffff52000898e7d
R10: fffff52000898e7d R11: 1ffff92000898e7c R12: dffffc0000000000
R13: 1ffff1100452b880 R14: dead000000000100 R15: ffff88802295c4b0
FS:  00007f0d52859700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000007ed87000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del include/linux/list.h:148 [inline]
 p9_fd_cancel+0x9c/0x230 net/9p/trans_fd.c:703
 p9_client_rpc+0x92c/0xad0 net/9p/client.c:723
 p9_client_create+0x997/0x1030 net/9p/client.c:1015
 v9fs_session_init+0x1e3/0x1990 fs/9p/v9fs.c:408
 v9fs_mount+0xd2/0xcb0 fs/9p/vfs_super.c:126
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0d528a89f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0d528592f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0d529344e0 RCX: 00007f0d528a89f9
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f0d52901174 R08: 0000000020000080 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 0000000000000004 R14: 64663d736e617274 R15: 00007f0d529344e8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0xef/0x130 lib/list_debug.c:53
Code: 29 40 03 06 0f 0b 48 c7 c7 e0 bf 0a 8b 4c 89 fe 31 c0 e8 16 40 03 06 0f 0b 48 c7 c7 40 c0 0a 8b 4c 89 fe 31 c0 e8 03 40 03 06 <0f> 0b 48 c7 c7 a0 c0 0a 8b 4c 89 fe 31 c0 e8 f0 3f 03 06 0f 0b 48
RSP: 0018:ffffc900044c7630 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000122 RCX: 5051969350135b00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff816cec5d R09: fffff52000898e7d
R10: fffff52000898e7d R11: 1ffff92000898e7c R12: dffffc0000000000
R13: 1ffff1100452b880 R14: dead000000000100 R15: ffff88802295c4b0
FS:  00007f0d52859700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000007ed87000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/23 10:18 upstream d47136c28015 c0b80a55 .config console log report syz C ci-upstream-kasan-gce-smack-root BUG: corrupted list in p9_fd_cancel
2022/11/06 07:11 upstream 2f5065a0bc9d 6d752409 .config console log report info ci-upstream-kasan-gce-root BUG: corrupted list in p9_fd_cancel
2022/10/29 21:53 upstream b229b6ca5abb 899d812a .config console log report info ci-upstream-kasan-gce-smack-root BUG: corrupted list in p9_fd_cancel
2022/10/24 19:52 upstream 247f34f7b803 ff2fe65d .config console log report info ci-upstream-kasan-gce-smack-root BUG: corrupted list in p9_fd_cancel
2022/10/24 08:58 upstream a70385240892 23bf86af .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root BUG: corrupted list in p9_fd_cancel
2022/10/23 03:51 upstream d47136c28015 c0b80a55 .config console log report info ci-upstream-kasan-gce-smack-root BUG: corrupted list in p9_fd_cancel
2022/10/31 20:04 upstream 200204f56f3b 43f72c2d .config console log report info ci-qemu-upstream-386 BUG: corrupted list in p9_fd_cancel
2022/11/17 14:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: corrupted list in p9_fd_cancel
* Struck through repros no longer work on HEAD.