syzbot


kernel BUG in end_buffer_async_write

Status: fixed on 2024/03/28 13:35
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+5c04210f7c7f897c1e7f@syzkaller.appspotmail.com
Fix commit: 5bc09b397cbf nilfs2: fix potential bug in end_buffer_async_write
First crash: 569d, last: 281d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in account_page_dirtied (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH] nilfs2: fix potential bug in end_buffer_async_write 1 (1) 2024/02/03 16:16
[syzbot] Monthly nilfs report (Jan 2024) 0 (1) 2024/01/02 13:35
[syzbot] Monthly nilfs report (Dec 2023) 0 (1) 2023/12/02 14:45
[syzbot] Monthly nilfs report (Oct 2023) 0 (1) 2023/11/01 10:11
[syzbot] Monthly nilfs report (Sep 2023) 0 (1) 2023/10/02 09:42
[syzbot] Monthly nilfs report (Aug 2023) 0 (1) 2023/08/30 09:54
[syzbot] Monthly nilfs report (Jul 2023) 0 (1) 2023/07/30 13:15
[syzbot] [nilfs?] kernel BUG in end_buffer_async_write 0 (1) 2023/06/04 00:35
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/11/20 14:42 15m retest repro upstream report log
2023/09/27 10:13 17m retest repro upstream report log
2023/09/11 07:51 22m retest repro upstream report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2023/12/31 03:03 2h12m bisect fix upstream OK (0) job log log
2023/11/30 22:31 4h31m bisect fix upstream OK (0) job log log
2023/10/29 16:40 2h28m bisect fix upstream OK (0) job log log
2023/07/19 03:09 2h39m bisect fix upstream OK (0) job log log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/20 22:59 4h38m bisect upstream OK (0) job log log
2023/06/04 00:38 8h33m bisect upstream error job log
marked invalid by nogikh@google.com

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/buffer.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.5.0-rc7-syzkaller-00190-g85eb043618bb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:end_buffer_async_write+0x3e4/0x4e0 fs/buffer.c:390
Code: 89 df e8 af 40 e0 ff 48 8b 13 48 c7 c7 c0 c2 17 8b 4c 89 fe 48 c7 c1 60 be 17 8b e8 e6 57 b6 08 e9 6a fd ff ff e8 cc 5f 87 ff <0f> 0b 4c 89 e3 e8 c2 5f 87 ff 48 89 df 48 c7 c6 20 c2 17 8b e8 d3
RSP: 0018:ffffc900001b7b40 EFLAGS: 00010246
RAX: ffffffff820458b4 RBX: 000000000000001d RCX: ffff888017249dc0
RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff82045532 R09: 1ffff1100e63db96
R10: dffffc0000000000 R11: ffffed100e63db97 R12: dffffc0000000000
R13: ffff8880731edcb0 R14: 0000000000000001 R15: 1ffff1100e63db96
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce53cc1000 CR3: 000000002aa65000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 end_bio_bh_io_sync+0xb7/0x110 fs/buffer.c:2794
 req_bio_endio block/blk-mq.c:782 [inline]
 blk_update_request+0x53f/0x1020 block/blk-mq.c:927
 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1050
 blk_complete_reqs block/blk-mq.c:1130 [inline]
 blk_done_softirq+0x103/0x150 block/blk-mq.c:1135
 __do_softirq+0x2ab/0x908 kernel/softirq.c:553
 run_ksoftirqd+0xc5/0x120 kernel/softirq.c:921
 smpboot_thread_fn+0x533/0x9f0 kernel/smpboot.c:164
 kthread+0x2b8/0x350 kernel/kthread.c:389
 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:end_buffer_async_write+0x3e4/0x4e0 fs/buffer.c:390
Code: 89 df e8 af 40 e0 ff 48 8b 13 48 c7 c7 c0 c2 17 8b 4c 89 fe 48 c7 c1 60 be 17 8b e8 e6 57 b6 08 e9 6a fd ff ff e8 cc 5f 87 ff <0f> 0b 4c 89 e3 e8 c2 5f 87 ff 48 89 df 48 c7 c6 20 c2 17 8b e8 d3
RSP: 0018:ffffc900001b7b40 EFLAGS: 00010246
RAX: ffffffff820458b4 RBX: 000000000000001d RCX: ffff888017249dc0
RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff82045532 R09: 1ffff1100e63db96
R10: dffffc0000000000 R11: ffffed100e63db97 R12: dffffc0000000000
R13: ffff8880731edcb0 R14: 0000000000000001 R15: 1ffff1100e63db96
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce53cc1000 CR3: 000000002aa65000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/28 05:13 upstream 85eb043618bb 03d9c195 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in end_buffer_async_write
2023/06/04 00:34 upstream 51f269a6ecc7 a4ae4f42 .config console log report syz C [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in end_buffer_async_write
2023/06/08 08:48 upstream 5f63595ebd82 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in end_buffer_async_write
2023/06/01 19:18 upstream 929ed21dfdb6 a4ae4f42 .config console log report info ci-upstream-kasan-gce-root kernel BUG in end_buffer_async_write
2023/05/28 04:35 upstream 4e893b5aa4ac cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in end_buffer_async_write
2023/03/17 22:44 upstream 38e04b3e4240 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in end_buffer_async_write
* Struck through repros no longer work on HEAD.