syzbot


WARNING in __find_get_block

Status: upstream: reported on 2022/10/01 13:50
Reported-by: syzbot+250b054f84ffcf12d7f1@syzkaller.appspotmail.com
First crash: 60d, last: 22d

Sample crash report:
------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 1 PID: 31868 at fs/buffer.c:1145 __brelse fs/buffer.c:1145 [inline]
WARNING: CPU: 1 PID: 31868 at fs/buffer.c:1145 brelse include/linux/buffer_head.h:326 [inline]
WARNING: CPU: 1 PID: 31868 at fs/buffer.c:1145 bh_lru_install fs/buffer.c:1259 [inline]
WARNING: CPU: 1 PID: 31868 at fs/buffer.c:1145 __find_get_block+0xfe9/0x1110 fs/buffer.c:1309
Modules linked in:

CPU: 0 PID: 31868 Comm: syz-executor.2 Not tainted 6.1.0-rc3-syzkaller-00288-gb208b9fbbcba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__brelse fs/buffer.c:1145 [inline]
RIP: 0010:brelse include/linux/buffer_head.h:326 [inline]
RIP: 0010:bh_lru_install fs/buffer.c:1259 [inline]
RIP: 0010:__find_get_block+0xfe9/0x1110 fs/buffer.c:1309
Code: 8c ff e8 7a 65 93 ff fb e9 02 f3 ff ff e8 8f b3 8c ff e9 f8 f2 ff ff e8 85 b3 8c ff 48 c7 c7 40 cc 9d 8a 31 c0 e8 97 51 54 ff <0f> 0b e9 de f2 ff ff 44 89 f9 80 e1 07 38 c1 0f 8c a1 f3 ff ff 4c
RSP: 0018:ffffc90004ad77c0 EFLAGS: 00010246
RAX: cb5f9bbdad8aa800 RBX: 0000000000000000 RCX: ffff8880753dd7c0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90004ad7920 R08: ffffffff816b9e3d R09: fffff5200095aeb1
R10: fffff5200095aeb1 R11: 1ffff9200095aeb0 R12: 1ffff11017366bae
R13: ffff888073ac5000 R14: ffff88803dec51d0 R15: ffff88803dd2ddf8
FS:  00007fd79f11c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb05f90caa5 CR3: 000000001f0f2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __getblk_gfp+0x2d/0x290 fs/buffer.c:1329
 sb_getblk include/linux/buffer_head.h:356 [inline]
 ext4_getblk+0x297/0x770 fs/ext4/inode.c:868
 ext4_bread+0x2a/0x170 fs/ext4/inode.c:914
 ext4_append+0x290/0x530 fs/ext4/namei.c:83
 ext4_init_new_dir+0x359/0x670 fs/ext4/namei.c:2948
 ext4_mkdir+0x4fa/0xcf0 fs/ext4/namei.c:2994
 vfs_mkdir+0x3b3/0x590 fs/namei.c:4035
 do_mkdirat+0x279/0x550 fs/namei.c:4060
 __do_sys_mkdir fs/namei.c:4080 [inline]
 __se_sys_mkdir fs/namei.c:4078 [inline]
 __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4078
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd79e48b5a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fd79f11c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fd79e5abf80 RCX: 00007fd79e48b5a9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00007fd79e4e67b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe956914ef R14: 00007fd79f11c300 R15: 0000000000022000
 </TASK>

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/06 16:30 upstream b208b9fbbcba 6d752409 .config log report info WARNING in __find_get_block
ci2-upstream-fs 2022/10/30 10:04 upstream b229b6ca5abb 2a71366b .config log report info WARNING in __find_get_block
ci2-upstream-fs 2022/09/30 05:56 upstream c3e0e1e23c70 45fd7169 .config log report info WARNING in __find_get_block
* Struck through repros no longer work on HEAD.