syzbot


general protection fault in incfs_kill_sb

Status: fixed on 2022/04/19 10:20
Reported-by: syzbot+d77e6e10f069db4b611e@syzkaller.appspotmail.com
Fix commit: b730087e9a5d ANDROID: incremental-fs: limit mount stack depth
First crash: 1023d, last: 988d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in incfs_kill_sb C done 380 1001d 1003d 2/2 fixed on 2022/05/12 07:47

Sample crash report:
incfs: Backing dir is not set, filesystem can't be mounted.
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: 299 Comm: syz-executor159 Not tainted 5.4.161-syzkaller-00026-g8a3679a75730 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:incfs_kill_sb+0x47/0xe0 fs/incfs/vfs.c:1882
Code: 9e f0 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 68 32 b2 ff 4c 8b 23 49 8d 5c 24 10 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 4a 32 b2 ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffff8881de56fcb8 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: ffff8881de566e40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881de57e000
RBP: 0000000000000000 R08: ffffffff821f6354 R09: ffffed103bcadf1c
R10: ffffed103bcadf1c R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8881de57e000 R15: dffffc0000000000
FS:  0000555557376300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc5936080 CR3: 00000001dea71000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 deactivate_locked_super+0xaf/0x100 fs/super.c:335
 incfs_mount_fs+0x70c/0x7d0 fs/incfs/vfs.c:1846
 legacy_get_tree+0xde/0x170 fs/fs_context.c:647
 vfs_get_tree+0x83/0x260 fs/super.c:1547
 do_new_mount fs/namespace.c:2843 [inline]
 do_mount+0x17be/0x2390 fs/namespace.c:3163
 ksys_mount+0xc2/0xf0 fs/namespace.c:3372
 __do_sys_mount fs/namespace.c:3386 [inline]
 __se_sys_mount fs/namespace.c:3383 [inline]
 __x64_sys_mount+0xb1/0xc0 fs/namespace.c:3383
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f1cd70cbd29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcc58db318 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1cd70cbd29
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffcc58db4b8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1cd708f5b0
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace c696e636ecbe7097 ]---
RIP: 0010:incfs_kill_sb+0x47/0xe0 fs/incfs/vfs.c:1882
Code: 9e f0 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 68 32 b2 ff 4c 8b 23 49 8d 5c 24 10 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 4a 32 b2 ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffff8881de56fcb8 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: ffff8881de566e40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881de57e000
RBP: 0000000000000000 R08: ffffffff821f6354 R09: ffffed103bcadf1c
R10: ffffed103bcadf1c R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8881de57e000 R15: dffffc0000000000
FS:  0000555557376300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc5936080 CR3: 00000001dea71000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	9e                   	sahf
   1:	f0 03 00             	lock add (%rax),%eax
   4:	00 48 89             	add    %cl,-0x77(%rax)
   7:	d8 48 c1             	fmuls  -0x3f(%rax)
   a:	e8 03 42 80 3c       	callq  0x3c804212
   f:	28 00                	sub    %al,(%rax)
  11:	74 08                	je     0x1b
  13:	48 89 df             	mov    %rbx,%rdi
  16:	e8 68 32 b2 ff       	callq  0xffb23283
  1b:	4c 8b 23             	mov    (%rbx),%r12
  1e:	49 8d 5c 24 10       	lea    0x10(%r12),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 4a 32 b2 ff       	callq  0xffb23283
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	48 83 c3 30          	add    $0x30,%rbx

Crashes (2965):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/08 04:28 android12-5.4 8a3679a75730 7bdd8b2c .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/07 09:10 android12-5.4 8a3679a75730 7bdd8b2c .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/07 01:41 android12-5.4 8a3679a75730 7bdd8b2c .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/04 17:03 android12-5.4 8a3679a75730 45a13a73 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/28 15:41 android12-5.4 961dd91cc692 45a13a73 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/27 16:07 android12-5.4 961dd91cc692 45a13a73 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/27 12:33 android12-5.4 961dd91cc692 45a13a73 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/25 19:38 android12-5.4 961dd91cc692 45a13a73 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/25 10:46 android12-5.4 7479ec62adf6 7c337266 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/25 09:14 android12-5.4 7479ec62adf6 7c337266 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/23 17:19 android12-5.4 cae20698ffbf 6e821dbf .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/22 15:48 android12-5.4 4a84ba582b02 6e821dbf .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/19 06:58 android12-5.4 2426795494c7 3cd800e4 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/11 23:49 android12-5.4 ffa24218d8b0 8b9ca619 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/08 23:04 android12-5.4 2159354389cf 0b33604d .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/08 06:06 android12-5.4 2159354389cf a7dab638 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/04 12:58 android12-5.4 287dec2d1089 a3e470b2 .config console log report syz C ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 20:52 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 19:44 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 19:10 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 18:09 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 17:07 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 15:49 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 14:51 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 13:31 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 12:17 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 11:09 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 10:11 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 09:07 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 08:06 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 05:50 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 04:49 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 03:25 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 02:48 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 01:44 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/10 00:30 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 23:16 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 22:10 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 20:25 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 19:16 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 18:15 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 17:12 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 16:11 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 15:41 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 14:17 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 13:14 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 12:28 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 11:16 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 08:43 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 07:19 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 06:12 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 04:40 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 03:31 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 02:15 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/09 00:35 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/08 23:30 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/08 22:22 android12-5.4 2d28921044b9 9e8eaa75 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/08 18:55 android12-5.4 8a3679a75730 7bdd8b2c .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/08 17:23 android12-5.4 8a3679a75730 7bdd8b2c .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/03/08 16:11 android12-5.4 8a3679a75730 7bdd8b2c .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
2022/02/04 10:18 android12-5.4 287dec2d1089 a3e470b2 .config console log report info ci2-android-5-4-kasan general protection fault in incfs_kill_sb
* Struck through repros no longer work on HEAD.