syzbot


WARNING in __brelse (3)

Status: upstream: reported C repro on 2023/07/26 14:30
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ce3af36144a13b018cc7@syzkaller.appspotmail.com
First crash: 141d, last: 4d16h
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
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 0/1 ] fs: Warming in __brelse 1 (1) 2023/08/16 16:40
[syzbot] [fs?] WARNING in __brelse (3) 0 (1) 2023/07/26 14:30
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 WARNING in __brelse C 6 1712d 1701d 0/3 public: reported C repro on 2019/04/14 00:00
upstream WARNING in __brelse udf C inconclusive 22 296d 438d 24/25 fixed on 2023/02/24 13:50
linux-4.14 WARNING in __brelse vfs udf C 6 298d 405d 0/1 upstream: reported C repro on 2022/10/31 19:01
android-414 WARNING in __brelse C 10 1712d 1703d 0/1 public: reported C repro on 2019/04/12 00:00
upstream WARNING in __brelse (2) udf 1 288d 284d 0/25 auto-obsoleted due to no activity on 2023/06/25 16:51
linux-5.15 WARNING in __brelse 1 238d 238d 0/3 auto-obsoleted due to no activity on 2023/08/14 05:07
linux-4.19 WARNING in __brelse vfs reiserfs ext4 udf C 43 279d 435d 0/1 upstream: reported C repro on 2022/10/01 01:04
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/09 06:58 28m andrew.kanner@gmail.com upstream report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/12/06 04:05 3h19m bisect fix upstream job log (0) log
2023/11/05 08:44 1h36m bisect fix upstream job log (0) log
2023/10/06 02:15 1h24m bisect fix upstream job log (0) log

Sample crash report:
------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 1 PID: 5011 at fs/buffer.c:1257 __brelse fs/buffer.c:1257 [inline]
WARNING: CPU: 1 PID: 5011 at fs/buffer.c:1257 __brelse+0x6b/0xa0 fs/buffer.c:1251
Modules linked in:
CPU: 1 PID: 5011 Comm: syz-executor104 Not tainted 6.5.0-rc2-syzkaller-00307-gd192f5382581 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:__brelse fs/buffer.c:1257 [inline]
RIP: 0010:__brelse+0x6b/0xa0 fs/buffer.c:1251
Code: 7c 04 84 d2 75 4e 44 8b 63 60 31 ff 44 89 e6 e8 1b 29 8d ff 45 85 e4 75 1c e8 a1 2d 8d ff 48 c7 c7 20 a7 7c 8a e8 65 f6 53 ff <0f> 0b 5b 5d 41 5c e9 8a 2d 8d ff e8 85 2d 8d ff be 04 00 00 00 48
RSP: 0018:ffffc900033cf8c8 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffff88807135a2b8 RCX: 0000000000000000
RDX: ffff88807e0da000 RSI: ffffffff814c5346 RDI: 0000000000000001
RBP: ffff88807135a318 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88807135a2b8 R14: dffffc0000000000 R15: ffffffff81f85b70
FS:  0000555555653380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000066c7e0 CR3: 000000007cf88000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 brelse include/linux/buffer_head.h:339 [inline]
 __invalidate_bh_lrus fs/buffer.c:1492 [inline]
 invalidate_bh_lru+0xa2/0x190 fs/buffer.c:1505
 csd_do_func kernel/smp.c:131 [inline]
 smp_call_function_many_cond+0x122a/0x1570 kernel/smp.c:826
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1003
 invalidate_bdev+0x9b/0xd0 block/bdev.c:85
 invalidate_disk+0x41/0x110 block/genhd.c:734
 __loop_clr_fd+0x259/0x900 drivers/block/loop.c:1164
 loop_clr_fd drivers/block/loop.c:1257 [inline]
 lo_ioctl+0x5d8/0x1a50 drivers/block/loop.c:1563
 blkdev_ioctl+0x2f9/0x770 block/ioctl.c:621
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f986153247b
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffd9d3fbdc0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 00007f986153247b
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004
RBP: 0000000000000004 R08: 00007ffd9d3fbe60 R09: 0000000000009df6
R10: 0000000000008003 R11: 0000000000000246 R12: 00007ffd9d3fbe60
R13: 0000000000000003 R14: 0000000000010000 R15: 0000000000000001
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/22 14:28 upstream d192f5382581 27cbe77f .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in __brelse
* Struck through repros no longer work on HEAD.