syzbot


BUG: corrupted list in p9_fd_cancelled (2)

Status: upstream: reported on 2021/11/23 15:00
Reported-by: syzbot+6c5973e636aa01c648cd@syzkaller.appspotmail.com
First crash: 367d, last: 68d
similar bugs (10):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: corrupted list in p9_fd_cancelled 1 355d 355d 0/2 closed as invalid on 2022/03/01 11:24
upstream BUG: corrupted list in p9_fd_cancelled (2) syz error error 17 12d 1185d 0/24 upstream: reported syz repro on 2019/08/29 03:58
linux-4.14 BUG: corrupted list in p9_fd_cancelled syz done 2 1089d 1135d 1/1 fixed on 2020/01/03 09:37
android-5-10 BUG: corrupted list in p9_fd_cancelled (2) 3 228d 264d 0/2 auto-closed as invalid on 2022/07/10 10:51
android-54 BUG: corrupted list in p9_fd_cancelled 3 516d 725d 0/2 auto-closed as invalid on 2021/10/25 12:29
linux-4.19 BUG: corrupted list in p9_fd_cancelled syz done 2 1109d 1172d 1/1 fixed on 2019/12/18 17:42
upstream BUG: corrupted list in p9_fd_cancelled 16 1493d 1593d 0/24 auto-closed as invalid on 2019/04/23 06:51
linux-4.19 BUG: corrupted list in p9_fd_cancelled (3) 1 324d 324d 0/1 auto-closed as invalid on 2022/05/05 22:32
linux-4.19 BUG: corrupted list in p9_fd_cancelled (2) 1 638d 638d 0/1 auto-closed as invalid on 2021/06/25 15:45
android-5-10 BUG: corrupted list in p9_fd_cancelled (3) 2 8d19h 92d 0/2 premoderation: reported on 2022/08/25 12:46

Sample crash report:
list_del corruption, ffff8881e292b630->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:47!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4937 Comm: syz-executor.3 Not tainted 5.4.197-syzkaller-00011-gf3665979a8e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:__list_del_entry_valid+0xbb/0x100 lib/list_debug.c:45
Code: 89 df e8 58 3f 70 ff 48 8b 13 4c 39 f2 75 43 b0 01 5b 41 5c 41 5e 41 5f c3 48 c7 c7 60 29 be 84 4c 89 f6 31 c0 e8 3a 93 ff 01 <0f> 0b 48 c7 c7 c0 29 be 84 4c 89 f6 31 c0 e8 27 93 ff 01 0f 0b 48
RSP: 0018:ffff8881ea217820 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 458075a618eaa200
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000005 R08: ffffffff814a983a R09: ffffed103edeaa08
R10: ffffed103edeaa08 R11: 1ffff1103edeaa07 R12: dffffc0000000000
R13: ffff8881e292b5b0 R14: ffff8881e292b630 R15: dead000000000122
FS:  00007f1ec0761700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003030 CR3: 00000001e0c52000 CR4: 00000000003406e0
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+0x71/0x1b0 net/9p/trans_fd.c:722
 p9_client_flush+0x2e6/0x4c0 net/9p/client.c:677
 p9_client_rpc+0x729/0x9e0 net/9p/client.c:784
 p9_client_version+0xfd/0x620 net/9p/client.c:945
 p9_client_create+0x835/0xae0 net/9p/client.c:1055
 v9fs_session_init+0x18c/0x17b0 fs/9p/v9fs.c:406
 v9fs_mount+0x72/0x770 fs/9p/vfs_super.c:124
 legacy_get_tree+0xde/0x170 fs/fs_context.c:647
 vfs_get_tree+0x85/0x260 fs/super.c:1547
 do_new_mount+0x23a/0x500 fs/namespace.c:2843
 do_mount+0x5e2/0xcd0 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/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f1ec164e409
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1ec0761168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1ec17611f0 RCX: 00007f1ec164e409
RDX: 0000000020000280 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f1ec16a9367 R08: 00000000200002c0 R09: 0000000000000000
R10: 0000000002000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe72623e4f R14: 00007f1ec0761300 R15: 0000000000022000
Modules linked in:
---[ end trace 495fb9bdf0cb5b3c ]---
RIP: 0010:__list_del_entry_valid+0xbb/0x100 lib/list_debug.c:45
Code: 89 df e8 58 3f 70 ff 48 8b 13 4c 39 f2 75 43 b0 01 5b 41 5c 41 5e 41 5f c3 48 c7 c7 60 29 be 84 4c 89 f6 31 c0 e8 3a 93 ff 01 <0f> 0b 48 c7 c7 c0 29 be 84 4c 89 f6 31 c0 e8 27 93 ff 01 0f 0b 48
RSP: 0018:ffff8881ea217820 EFLAGS: 00010246
RAX: 000000000000004e RBX: dead000000000100 RCX: 458075a618eaa200
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000005 R08: ffffffff814a983a R09: ffffed103edeaa08
R10: ffffed103edeaa08 R11: 1ffff1103edeaa07 R12: dffffc0000000000
R13: ffff8881e292b5b0 R14: ffff8881e292b630 R15: dead000000000122
FS:  00007f1ec0761700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003030 CR3: 00000001e0c52000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2022/09/18 21:39 android12-5.4 f3665979a8e7 dd9a85ff .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2022/09/12 12:40 android12-5.4 704c7d053806 356d8217 .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2022/06/07 08:57 android12-5.4 7dee356a61d0 c8857892 .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2022/03/18 18:53 android12-5.4 49216514f3a3 e2d91b1d .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2021/12/04 03:28 android12-5.4 97b7ffb32f29 a617004c .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2021/11/29 05:04 android12-5.4 0bbc71d87f4d 63eeac02 .config log report info BUG: corrupted list in p9_fd_cancelled
ci2-android-5-4-kasan 2021/11/23 15:00 android12-5.4 697fba25ed27 545ab074 .config log report info BUG: corrupted list in p9_fd_cancelled
* Struck through repros no longer work on HEAD.