syzbot


WARNING in invalidate_bh_lru (2)

Status: upstream: reported C repro on 2023/08/19 22:31
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+b76ff2dacb179537b4fc@syzkaller.appspotmail.com
First crash: 186d, last: 94d
Fix commit to backport (bisect log) :
tree: upstream
commit e9109a92d2a95889498bed3719cd2318892171a2
Author: Jan Kara <jack@suse.cz>
Date: Thu Oct 6 14:41:23 2022 +0000

  udf: Convert udf_rename() to new directory iteration code

  
Bug presence (2)
Date Name Commit Repro Result
2023/08/20 linux-5.15.y (ToT) f6f7927ac664 C [report] WARNING in invalidate_bh_lru
2023/08/20 upstream (ToT) 9e6c269de404 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in invalidate_bh_lru (2) origin:lts-only C done 5 8d07h 131d 0/3 upstream: reported C repro on 2023/10/14 00:04
linux-5.15 WARNING in invalidate_bh_lru 2 314d 317d 0/3 auto-obsoleted due to no activity on 2023/08/11 11:15
linux-6.1 WARNING in invalidate_bh_lru 1 306d 306d 0/3 auto-obsoleted due to no activity on 2023/08/20 02:46
upstream WARNING in invalidate_bh_lru udf C done 15 30d 427d 0/26 upstream: reported C repro on 2022/12/22 02:57
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/08/29 23:13 5h01m fix candidate upstream job log (1)

Sample crash report:
------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 1 PID: 3488 at fs/buffer.c:1148 __brelse fs/buffer.c:1148 [inline]
WARNING: CPU: 1 PID: 3488 at fs/buffer.c:1148 brelse include/linux/buffer_head.h:325 [inline]
WARNING: CPU: 1 PID: 3488 at fs/buffer.c:1148 __invalidate_bh_lrus fs/buffer.c:1394 [inline]
WARNING: CPU: 1 PID: 3488 at fs/buffer.c:1148 invalidate_bh_lru+0xf8/0x1a0 fs/buffer.c:1407
Modules linked in:
CPU: 1 PID: 3488 Comm: syz-executor257 Not tainted 5.15.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__brelse fs/buffer.c:1148 [inline]
RIP: 0010:brelse include/linux/buffer_head.h:325 [inline]
RIP: 0010:__invalidate_bh_lrus fs/buffer.c:1394 [inline]
RIP: 0010:invalidate_bh_lru+0xf8/0x1a0 fs/buffer.c:1407
Code: 00 e8 1c 7a e4 ff f0 ff 0b eb 21 e8 82 d8 9a ff 41 80 3c 2e 00 75 26 eb 2c e8 74 d8 9a ff 48 c7 c7 e0 44 97 8a e8 48 a1 66 ff <0f> 0b 48 bd 00 00 00 00 00 fc ff df 41 80 3c 2e 00 74 08 4c 89 ff
RSP: 0018:ffffc90002f4fac8 EFLAGS: 00010046
RAX: 175042778e3b2600 RBX: ffff888071565d10 RCX: ffff88801efe0000
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff816658fc R09: ffffed1017364f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9b35978
R13: 0000000000000000 R14: 1ffff11017366b2f R15: ffff8880b9b35978
FS:  0000555555844380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560d67ee7038 CR3: 000000007578b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 smp_call_function_many_cond+0x8fa/0xd90 kernel/smp.c:960
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 kill_bdev block/bdev.c:76 [inline]
 blkdev_flush_mapping+0x178/0x340 block/bdev.c:659
 blkdev_put_whole block/bdev.c:690 [inline]
 blkdev_put+0x4f1/0x790 block/bdev.c:954
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f62d0140507
Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff388fe588 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f62d0140507
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fff388fe640
RBP: 00007fff388fe640 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007fff388ff6c0
R13: 00005555558456c0 R14: 431bde82d7b634db R15: 00007fff388ff6e0
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/19 22:47 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in invalidate_bh_lru
2023/11/20 01:23 linux-5.15.y 80529b4968a8 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in invalidate_bh_lru
2023/10/14 00:06 linux-5.15.y 02e21884dcf2 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in invalidate_bh_lru
2023/08/19 22:31 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in invalidate_bh_lru
* Struck through repros no longer work on HEAD.