syzbot


general protection fault in mark_buffer_dirty_inode

Status: auto-closed as invalid on 2020/08/30 19:17
Reported-by: syzbot+31c11d2c20a4de06d787@syzkaller.appspotmail.com
First crash: 1664d, last: 1664d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in mark_buffer_dirty_inode 1 216d 216d 0/3 auto-obsoleted due to no activity on 2024/07/28 10:58
linux-4.19 general protection fault in mark_buffer_dirty_inode (2) C error 1 724d 724d 0/1 upstream: reported C repro on 2022/11/28 03:52
upstream general protection fault in mark_buffer_dirty_inode (2) udf C 32 565d 723d 22/28 fixed on 2023/06/08 14:41
android-49 general protection fault in mark_buffer_dirty_inode 2 2302d 2329d 0/3 auto-closed as invalid on 2019/02/22 14:57
upstream general protection fault in mark_buffer_dirty_inode exfat 1 2042d 2038d 0/28 auto-closed as invalid on 2019/10/16 22:48

Sample crash report:
audit: type=1800 audit(1588446988.337:372): pid=7758 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.0" name="file0" dev="loop0" ino=189 res=0
loop_set_block_size: loop0 () has still dirty pages (nrpages=1)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7758 Comm: syz-executor.0 Not tainted 4.19.120-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1ca/0x49c0 kernel/locking/lockdep.c:3294
Code: 28 00 00 00 0f 85 37 2e 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c1 32 00 00 49 81 3f 60 b4 d0 8a 0f 84 55 ff ff
RSP: 0018:ffff888085dcf130 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000025 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff888085dcf300 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888092590340 R15: 0000000000000128
FS:  00007fce3a5ca700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff5f315e00 CR3: 0000000093219000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3907
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
 spin_lock include/linux/spinlock.h:329 [inline]
 mark_buffer_dirty_inode+0x12c/0x3c0 fs/buffer.c:556
 fat_alloc_clusters+0x5d0/0xe50 fs/fat/fatent.c:503
 fat_add_cluster+0x6d/0xf0 fs/fat/inode.c:101
 __fat_get_block fs/fat/inode.c:148 [inline]
 fat_get_block+0x2fb/0x8e0 fs/fat/inode.c:183
 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1978
 __block_write_begin fs/buffer.c:2028 [inline]
 block_write_begin+0x58/0x2e0 fs/buffer.c:2087
 cont_write_begin+0x46f/0x7e0 fs/buffer.c:2440
 fat_write_begin+0x8d/0x120 fs/fat/inode.c:229
 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162
 __generic_file_write_iter+0x492/0x610 mm/filemap.c:3255
 generic_file_write_iter+0x37f/0x729 mm/filemap.c:3315
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x512/0x760 fs/read_write.c:487
 vfs_write+0x206/0x550 fs/read_write.c:549
 ksys_pwrite64+0x16f/0x1a0 fs/read_write.c:653
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fce3a5c9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00000000004fa7c0 RCX: 000000000045c829
RDX: 0000000000000001 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000872 R14: 00000000004cb2d0 R15: 00007fce3a5ca6d4
Modules linked in:
---[ end trace ce63f36a03bccb31 ]---
RIP: 0010:__lock_acquire+0x1ca/0x49c0 kernel/locking/lockdep.c:3294
Code: 28 00 00 00 0f 85 37 2e 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c1 32 00 00 49 81 3f 60 b4 d0 8a 0f 84 55 ff ff
RSP: 0018:ffff888085dcf130 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000025 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff888085dcf300 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888092590340 R15: 0000000000000128
FS:  00007fce3a5ca700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff5f315e00 CR3: 0000000093219000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/02 19:16 linux-4.19.y fdc072324f3c 58da4c35 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.