syzbot


BUG: corrupted list in __prepare_to_swait

Status: fixed on 2023/01/23 16:52
Subsystems: erofs
[Documentation on labels]
Reported-by: syzbot+4d15e77deaec58116d46@syzkaller.appspotmail.com
Fix commit: e82a3f108d9d UPSTREAM: fs: erofs: add sanity check for kobject in erofs_unregister_sysfs
First crash: 566d, last: 458d
Cause bisection: failed (error log, bisect log)
  
Last patch testing requests (8)
Created Duration User Patch Repo Result
2022/11/23 10:01 16m jun.nie@linaro.org patch android13-5.15-lts OK log
2022/11/23 08:41 6m jun.nie@linaro.org patch android13-5.15-lts error OK
2022/11/23 07:36 7m jun.nie@linaro.org https://android.googlesource.com/kernel/common f443e374ae131c16 report log
2022/11/22 01:07 6m jun.nie@linaro.org https://android.googlesource.com/kernel/common 8bb7eca972ad error OK
2022/11/21 10:40 8m jun.nie@linaro.org https://android.googlesource.com/kernel/common 36de88a85525 error OK
2022/10/12 22:50 0m tadeusz.struk@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y error OK
2022/10/12 17:45 16m tadeusz.struk@linaro.org upstream OK log
2022/10/12 17:45 7m tadeusz.struk@linaro.org android13-5.15-lts report log

Sample crash report:
list_add corruption. prev is NULL.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:24!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 395 Comm: syz-executor254 Tainted: G        W         5.15.72-syzkaller-04310-g43eb03f7ce81 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:__list_add_valid+0xbc/0x100 lib/list_debug.c:23
Code: c0 74 ed 48 c7 c7 a0 c6 66 85 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 41 22 57 02 0f 0b 48 c7 c7 a0 c4 66 85 31 c0 e8 31 22 57 02 <0f> 0b 48 c7 c7 40 c5 66 85 31 c0 e8 21 22 57 02 0f 0b 48 c7 c7 a0
RSP: 0018:ffffc90000ae78e0 EFLAGS: 00010046

RAX: 0000000000000022 RBX: 1ffff9200015cf3d RCX: 12ffa64da8c05700
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: ffffc90000ae7908 R08: ffffffff81572d19 R09: 0000000000000003
R10: fffff5200015ce89 R11: 1ffff9200015ce88 R12: ffffc90000ae79e8
R13: 1ffff11020f34aac R14: ffffc90000ae79e0 R15: ffff8881079a5560
FS:  00007fa0f8103700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556eff5f8 CR3: 000000010118d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:67 [inline]
 list_add_tail include/linux/list.h:100 [inline]
 __prepare_to_swait+0xad/0x140 kernel/sched/swait.c:89
 do_wait_for_common kernel/sched/completion.c:82 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common+0x257/0x430 kernel/sched/completion.c:117
 wait_for_completion+0x18/0x20 kernel/sched/completion.c:138
 erofs_unregister_sysfs+0x5e/0x70 fs/erofs/sysfs.c:209
 erofs_put_super+0x46/0xa0 fs/erofs/super.c:815
 generic_shutdown_super+0x14f/0x2d0 fs/super.c:465
 kill_block_super+0x80/0xe0 fs/super.c:1395
 erofs_kill_sb+0x66/0x130 fs/erofs/super.c:796
 deactivate_locked_super+0xb0/0x100 fs/super.c:335
 get_tree_bdev+0x437/0x640 fs/super.c:1295
 erofs_fc_get_tree+0x1c/0x20 fs/erofs/super.c:708
 vfs_get_tree+0x88/0x290 fs/super.c:1498
 do_new_mount+0x289/0xad0 fs/namespace.c:2994
 path_mount+0x60b/0x1050 fs/namespace.c:3324
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x2d2/0x3c0 fs/namespace.c:3522
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fa0f815fc9a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 98 03 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007fa0f8103158 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fa0f815fc9a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fa0f8103170
RBP: 0000000000000005 R08: 00007fa0f81031b0 R09: 00007fa0f81036b8
R10: 0000000000000000 R11: 0000000000000286 R12: 00007fa0f81031b0
R13: 0000000000000002 R14: 00007fa0f8103170 R15: 0000000020000230
 </TASK>
Modules linked in:
---[ end trace 11fa2bc6d8c10691 ]---
RIP: 0010:__list_add_valid+0xbc/0x100 lib/list_debug.c:23
Code: c0 74 ed 48 c7 c7 a0 c6 66 85 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 41 22 57 02 0f 0b 48 c7 c7 a0 c4 66 85 31 c0 e8 31 22 57 02 <0f> 0b 48 c7 c7 40 c5 66 85 31 c0 e8 21 22 57 02 0f 0b 48 c7 c7 a0
RSP: 0018:ffffc90000ae78e0 EFLAGS: 00010046
RAX: 0000000000000022 RBX: 1ffff9200015cf3d RCX: 12ffa64da8c05700
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: ffffc90000ae7908 R08: ffffffff81572d19 R09: 0000000000000003
R10: fffff5200015ce89 R11: 1ffff9200015ce88 R12: ffffc90000ae79e8
R13: 1ffff11020f34aac R14: ffffc90000ae79e0 R15: ffff8881079a5560
FS:  00007fa0f8103700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556eff5f8 CR3: 000000010118d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (49):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/06 18:11 android13-5.15-lts 43eb03f7ce81 80b58a42 .config strace log report syz C [mounted in repro] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/22 11:17 android13-5.15-lts 72d681a01da5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/19 22:17 android13-5.15-lts c73b4619ad86 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/18 19:52 android13-5.15-lts c73b4619ad86 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/17 18:24 android13-5.15-lts c73b4619ad86 42660d9e .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/17 14:17 android13-5.15-lts c73b4619ad86 a63719e7 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/16 02:01 android13-5.15-lts c73b4619ad86 a63719e7 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/15 21:38 android13-5.15-lts c73b4619ad86 a63719e7 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/14 02:16 android13-5.15-lts c73b4619ad86 529798b0 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/13 17:34 android13-5.15-lts c73b4619ad86 529798b0 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/05 17:51 android13-5.15-lts c73b4619ad86 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/05 16:36 android13-5.15-lts c73b4619ad86 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/05 16:28 android13-5.15-lts c73b4619ad86 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2023/01/02 17:10 android13-5.15-lts c73b4619ad86 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/29 15:48 android13-5.15-lts c73b4619ad86 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/24 17:24 android13-5.15-lts c73b4619ad86 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/23 17:25 android13-5.15-lts c73b4619ad86 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/21 14:23 android13-5.15-lts c73b4619ad86 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/20 13:02 android13-5.15-lts c73b4619ad86 c52b2efb .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/16 17:42 android13-5.15-lts c73b4619ad86 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/13 00:41 android13-5.15-lts 7048384c9872 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/12 16:41 android13-5.15-lts 7048384c9872 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/11 09:29 android13-5.15-lts 7048384c9872 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/10 08:46 android13-5.15-lts 7048384c9872 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/09 21:47 android13-5.15-lts 7048384c9872 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/06 05:19 android13-5.15-lts 92f701cae0bc 045cbb84 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/03 04:17 android13-5.15-lts 92f701cae0bc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/12/02 15:29 android13-5.15-lts 92f701cae0bc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/30 12:28 android13-5.15-lts d9d889009b78 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/30 10:54 android13-5.15-lts d9d889009b78 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/29 22:31 android13-5.15-lts d9d889009b78 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/27 00:05 android13-5.15-lts 4ec71a9ec769 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/25 03:32 android13-5.15-lts 4ec71a9ec769 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/24 05:40 android13-5.15-lts 4ec71a9ec769 ff68ff8f .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/23 10:57 android13-5.15-lts 4ec71a9ec769 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/23 07:16 android13-5.15-lts 4ec71a9ec769 9da37ae8 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/22 09:39 android13-5.15-lts 4ec71a9ec769 1c576c23 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/22 09:25 android13-5.15-lts 4ec71a9ec769 1c576c23 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/21 21:37 android13-5.15-lts 4ec71a9ec769 1c576c23 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/08 09:12 android13-5.15-lts 7f2e600bf63a 6feb842b .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/03 19:37 android13-5.15-lts 7f2e600bf63a 7a2ebf95 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/11/01 06:30 android13-5.15-lts 7f2e600bf63a a1d8560a .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/28 21:00 android13-5.15-lts 7f2e600bf63a 8168b69e .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/27 21:21 android13-5.15-lts 7f2e600bf63a 5c716ff6 .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/20 22:06 android13-5.15-lts 7f2e600bf63a a0fd4dab .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/18 21:14 android13-5.15-lts 44b8b2ac1d96 b31320fc .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/11 03:47 android13-5.15-lts 43eb03f7ce81 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/10 14:03 android13-5.15-lts 43eb03f7ce81 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
2022/10/06 17:09 android13-5.15-lts 43eb03f7ce81 80b58a42 .config console log report info ci2-android-5-15 BUG: corrupted list in __prepare_to_swait
* Struck through repros no longer work on HEAD.