syzbot


general protection fault in gfs2_ri_update

Status: fixed on 2021/01/09 09:31
Reported-by: syzbot+c975a9ffb1906ee59b93@syzkaller.appspotmail.com
Fix commit: 6790f8b9370b gfs2: check for empty rgrp tree in gfs2_ri_update
First crash: 1304d, last: 1228d
Fix bisection: fixed by (bisect log) :
commit 6790f8b9370bf83c6733a537414c7ff7d989be30
Author: Bob Peterson <rpeterso@redhat.com>
Date: Tue Nov 24 15:44:36 2020 +0000

  gfs2: check for empty rgrp tree in gfs2_ri_update

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in gfs2_ri_update gfs2 1 1250d 1245d 19/26 fixed on 2021/03/10 01:48

Sample crash report:
gfs2: fsid=syz:syz.0: jid=0: Looking at journal...
gfs2: fsid=syz:syz.0: jid=0: Done
gfs2: fsid=syz:syz.0: first mount done, others may mount
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: 0 PID: 6499 Comm: syz-executor384 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:set_rgrp_preferences fs/gfs2/rgrp.c:984 [inline]
RIP: 0010:gfs2_ri_update+0x289/0x520 fs/gfs2/rgrp.c:1012
Code: e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 bc f9 44 fe 49 8d 7f 74 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 68
RSP: 0018:ffff888084b67638 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff832cd73b
RDX: 000000000000000e RSI: ffffffff832cd8a4 RDI: 0000000000000074
RBP: ffff88808ccd1440 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88808ccd143c R15: 0000000000000000
FS:  0000000001335880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7d4d6b4740 CR3: 0000000096198000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 gfs2_rindex_update+0x3ba/0x430 fs/gfs2/rgrp.c:1052
 init_inodes+0x10cb/0x1ee0 fs/gfs2/ops_fstype.c:815
 fill_super+0x190e/0x2680 fs/gfs2/ops_fstype.c:1149
 gfs2_mount+0x4c0/0x598 fs/gfs2/ops_fstype.c:1312
 mount_fs+0xa3/0x318 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x51c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b73a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad 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 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007fff7ff01d28 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff7ff01d80 RCX: 000000000045b73a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff7ff01d40
RBP: 00007fff7ff01d40 R08: 00007fff7ff01d80 R09: 00007fff00000015
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000091c
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
---[ end trace b661299dace97eec ]---
RIP: 0010:set_rgrp_preferences fs/gfs2/rgrp.c:984 [inline]
RIP: 0010:gfs2_ri_update+0x289/0x520 fs/gfs2/rgrp.c:1012
Code: e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 bc f9 44 fe 49 8d 7f 74 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 68
RSP: 0018:ffff888084b67638 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff832cd73b
RDX: 000000000000000e RSI: ffffffff832cd8a4 RDI: 0000000000000074
RBP: ffff88808ccd1440 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88808ccd143c R15: 0000000000000000
FS:  0000000001335880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7d4d6b4740 CR3: 0000000096198000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/12 12:28 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report syz C ci2-linux-4-19
2020/12/08 03:30 linux-4.19.y daefdc9eb24b 51a9082e .config console log report info ci2-linux-4-19
2020/12/08 00:12 linux-4.19.y daefdc9eb24b 51a9082e .config console log report info ci2-linux-4-19
2020/12/06 10:41 linux-4.19.y daefdc9eb24b f12ba0c5 .config console log report info ci2-linux-4-19
2020/12/06 04:21 linux-4.19.y daefdc9eb24b 50503117 .config console log report info ci2-linux-4-19
2020/12/01 06:14 linux-4.19.y 0c88e405c97e b3a34598 .config console log report info ci2-linux-4-19
2020/11/28 16:27 linux-4.19.y 0c88e405c97e 3c7136c0 .config console log report info ci2-linux-4-19
2020/11/23 09:01 linux-4.19.y 76bda503e640 0d27f508 .config console log report info ci2-linux-4-19
2020/11/16 09:40 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/14 21:42 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/09 17:20 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/08 22:07 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/08 12:15 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/07 08:24 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/05 23:07 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/03 07:06 linux-4.19.y f5d8eef067ac 7f344fa6 .config console log report info ci2-linux-4-19
2020/11/01 21:28 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/11/01 11:20 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/11/01 10:59 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/11/01 03:20 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/10/25 22:23 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/25 19:54 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/25 19:38 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/24 22:15 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/14 18:01 linux-4.19.y a1b977b49b66 fc7735a2 .config console log report info ci2-linux-4-19
2020/10/11 15:15 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/02 15:04 linux-4.19.y b09c34517e1a 062c9832 .config console log report info ci2-linux-4-19
2020/09/23 03:11 linux-4.19.y 015e94d0e37b 3e8f6c27 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.