syzbot


WARNING in invalidate_bh_lru

Status: upstream: reported C repro on 2022/12/22 02:57
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+9743a41f74f00e50fc77@syzkaller.appspotmail.com
First crash: 443d, last: 42d
Cause bisection: introduced by (bisect log) :
commit f6e2c20ca7604e6a267c93a511d19dda72573be1
Author: Liu Shixin <liushixin2@huawei.com>
Date: Fri Apr 29 21:38:04 2022 +0000

  fs: sysv: check sbi->s_firstdatazone in complete_read_super

Crash: WARNING in invalidate_bh_lru (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [sysv?] [vfs?] WARNING in invalidate_bh_lru 4 (8) 2024/03/02 12:14
[syzbot] Monthly udf report (Nov 2023) 0 (1) 2023/11/09 18:23
[syzbot] Monthly udf report (Oct 2023) 0 (1) 2023/10/09 09:23
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 6 1d14h 143d 0/3 upstream: reported C repro on 2023/10/14 00:04
linux-5.15 WARNING in invalidate_bh_lru 2 326d 329d 0/3 auto-obsoleted due to no activity on 2023/08/11 11:15
linux-5.15 WARNING in invalidate_bh_lru (2) origin:lts-only C done 4 106d 198d 0/3 upstream: reported C repro on 2023/08/19 22:31
linux-6.1 WARNING in invalidate_bh_lru 1 318d 318d 0/3 auto-obsoleted due to no activity on 2023/08/20 02:46
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/02/21 08:31 17m retest repro upstream OK log
2024/01/22 17:27 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/22 17:27 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/12/27 08:17 17m retest repro upstream report log
2023/12/27 08:09 14m retest repro upstream report log
2023/11/12 18:09 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/12 18:09 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/10/29 14:19 13m retest repro upstream report log
2023/10/07 09:33 14m retest repro upstream report log
2023/08/24 03:53 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/03/02 08:31 3h41m bisect fix upstream job log (1)
2023/12/13 07:02 1h04m bisect fix upstream job log (0) log
2023/07/17 06:07 1h39m bisect fix upstream job log (0) log

Sample crash report:
memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4991 'syz-executor285'
loop0: detected capacity change from 0 to 128
oldfs: cannot read superblock
------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 0 PID: 4991 at fs/buffer.c:1194 __brelse fs/buffer.c:1194 [inline]
WARNING: CPU: 0 PID: 4991 at fs/buffer.c:1194 brelse include/linux/buffer_head.h:335 [inline]
WARNING: CPU: 0 PID: 4991 at fs/buffer.c:1194 __invalidate_bh_lrus fs/buffer.c:1429 [inline]
WARNING: CPU: 0 PID: 4991 at fs/buffer.c:1194 invalidate_bh_lru+0xfc/0x1b0 fs/buffer.c:1442
Modules linked in:
CPU: 0 PID: 4991 Comm: syz-executor285 Not tainted 6.4.0-rc4-syzkaller-00265-g4ecd704a4c51 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:__brelse fs/buffer.c:1194 [inline]
RIP: 0010:brelse include/linux/buffer_head.h:335 [inline]
RIP: 0010:__invalidate_bh_lrus fs/buffer.c:1429 [inline]
RIP: 0010:invalidate_bh_lru+0xfc/0x1b0 fs/buffer.c:1442
Code: 00 e8 d8 e3 df ff f0 ff 0b eb 21 e8 7e 0d 88 ff 41 80 3c 2e 00 75 26 eb 2c e8 70 0d 88 ff 48 c7 c7 00 a0 f7 8a e8 e4 8c 4f 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:ffffc90003c2f0a8 EFLAGS: 00010046
RAX: 00caeea4101d0a00 RBX: ffff8880749ab400 RCX: ffff88802890d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81530142 R09: ffffed1017305163
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9838078
R13: 0000000000000000 R14: 1ffff1101730700f R15: ffff8880b9838078
FS:  00005555566ab300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000066c7e0 CR3: 000000007a0cd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 smp_call_function_many_cond+0x130b/0x1f60 kernel/smp.c:819
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:996
 invalidate_bdev+0x8e/0xc0 block/bdev.c:85
 invalidate_disk+0x45/0xe0 block/genhd.c:705
 __loop_clr_fd+0x251/0x6a0 drivers/block/loop.c:1164
 loop_clr_fd drivers/block/loop.c:1257 [inline]
 lo_ioctl+0x16d1/0x2080 drivers/block/loop.c:1563
 blkdev_ioctl+0x602/0x7a0 block/ioctl.c:615
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f631d705627
Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 24 44 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff5b45e448 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 00007f631d705627
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004
RBP: 00007fff5b45e450 R08: 00007fff5b45e490 R09: 0000000000009df6
R10: 0000000000008003 R11: 0000000000000246 R12: 0000000000000004
R13: 00005555566ab2c0 R14: 00007fff5b45e490 R15: 0000000000000000
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/03 11:07 upstream 4ecd704a4c51 a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in invalidate_bh_lru
2023/09/23 08:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2022/12/18 02:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/10/15 14:04 upstream 9a3dad63edbe f757a323 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in invalidate_bh_lru
2023/02/25 17:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/08 16:05 upstream 0983f6bf2bfc fc9c934e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in invalidate_bh_lru
2023/09/23 08:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/03/01 04:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/28 01:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/26 12:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/24 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/18 13:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2023/02/13 17:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 4d66ad72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2022/12/24 10:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
2022/12/18 18:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in invalidate_bh_lru
* Struck through repros no longer work on HEAD.