syzbot


kernel BUG at fs/reiserfs/lock.c:LINE! (2)

Status: fixed on 2020/03/21 18:15
Reported-by: syzbot+3794dc94be61e6d17705@syzkaller.appspotmail.com
Fix commit: ef3d73fe8836 reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling
First crash: 1752d, last: 1752d
Fix bisection: fixed by (bisect log) :
commit ef3d73fe8836192410cbc2d2a15b2946e26a45d1
Author: Jan Kara <jack@suse.cz>
Date: Thu Dec 12 10:35:58 2019 +0000

  reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at fs/reiserfs/lock.c:LINE! reiserfs 13 2055d 2341d 0/28 auto-closed as invalid on 2019/10/19 15:58
linux-4.14 kernel BUG at fs/reiserfs/lock.c:LINE! 1 1768d 1768d 0/1 auto-closed as invalid on 2020/06/02 22:04
linux-4.19 kernel BUG at fs/reiserfs/lock.c:LINE! 5 1890d 2056d 0/1 auto-closed as invalid on 2020/02/01 11:28

Sample crash report:
RBP: 0000000000000006 R08: 00007ffeec4e5e20 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeec4e5e20
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
REISERFS warning (device loop0):  reiserfs_fill_super: Cannot allocate memory for journal device name
------------[ cut here ]------------
kernel BUG at fs/reiserfs/lock.c:44!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8336 Comm: syz-executor040 Not tainted 4.19.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:reiserfs_write_unlock+0xeb/0x110 fs/reiserfs/lock.c:44
Code: 5d c3 e8 78 fb 86 ff 48 8d 7b 28 48 c7 83 a8 00 00 00 00 00 00 00 e8 74 cb 6f 05 e8 5f fb 86 ff 5b 41 5c 5d c3 e8 55 fb 86 ff <0f> 0b e8 de 98 be ff eb a1 e8 f7 98 be ff e9 33 ff ff ff e8 ed 98
RSP: 0018:ffff88808ecb7a90 EFLAGS: 00010293
RAX: ffff88807e192100 RBX: ffff8880891f0900 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81e3e16b RDI: ffff8880891f09a8
RBP: ffff88808ecb7aa0 R08: 0000000000000065 R09: ffffed1015d25079
R10: ffffed1015d25078 R11: ffff8880ae9283c7 R12: ffff8880891f0900
R13: ffff8880891f0bc8 R14: 00000000ffffffea R15: ffff8880a82f4140
FS:  000000000244f880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625208 CR3: 00000000a885c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 reiserfs_fill_super+0x29ce/0x2e90 fs/reiserfs/super.c:2222
 mount_bdev+0x304/0x3c0 fs/super.c:1158
 get_super_block+0x35/0x40 fs/reiserfs/super.c:2609
 mount_fs+0xa8/0x31f fs/super.c:1261
 vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x53e/0x2bc0 fs/namespace.c:2799
 ksys_mount+0xdb/0x150 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3026
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44867a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 bd a2 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 9a a2 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffeec4e5d88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044867a
RDX: 00007ffeec4e5dc0 RSI: 0000000020000140 RDI: 00007ffeec4e5de0
RBP: 0000000000000006 R08: 00007ffeec4e5e20 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeec4e5e20
R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 96121f8b88a9933f ]---
RIP: 0010:reiserfs_write_unlock+0xeb/0x110 fs/reiserfs/lock.c:44
Code: 5d c3 e8 78 fb 86 ff 48 8d 7b 28 48 c7 83 a8 00 00 00 00 00 00 00 e8 74 cb 6f 05 e8 5f fb 86 ff 5b 41 5c 5d c3 e8 55 fb 86 ff <0f> 0b e8 de 98 be ff eb a1 e8 f7 98 be ff e9 33 ff ff ff e8 ed 98
RSP: 0018:ffff88808ecb7a90 EFLAGS: 00010293
RAX: ffff88807e192100 RBX: ffff8880891f0900 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81e3e16b RDI: ffff8880891f09a8
RBP: ffff88808ecb7aa0 R08: 0000000000000065 R09: ffffed1015d25079
R10: ffffed1015d25078 R11: ffff8880ae9283c7 R12: ffff8880891f0900
R13: ffff8880891f0bc8 R14: 00000000ffffffea R15: ffff8880a82f4140
FS:  000000000244f880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625208 CR3: 00000000a885c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/20 06:26 linux-4.19.y 4fccc2503536 b690a6e3 .config console log report syz C ci2-linux-4-19
2020/02/20 05:54 linux-4.19.y 4fccc2503536 b690a6e3 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.