syzbot


general protection fault in incfs_kill_sb

Status: fixed on 2022/05/12 07:47
Reported-by: syzbot+071207fec3b90d253e91@syzkaller.appspotmail.com
Fix commit: 3e45af8a72c0 ANDROID: incremental-fs: limit mount stack depth
First crash: 787d, last: 784d
Cause bisection: introduced by (bisect log) :
commit 6f915dd2af92ade13d280d83fcce327161b9573c
Author: Tadeusz Struk <tadeusz.struk@linaro.org>
Date: Wed Jan 26 21:09:39 2022 +0000

  ANDROID: incremental-fs: remove index and incomplete dir on umount

Crash: general protection fault in incfs_kill_sb (log)
Repro: C syz .config
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in incfs_kill_sb C 2965 771d 806d 2/2 fixed on 2022/04/19 10:20
Last patch testing requests (3)
Created Duration User Patch Repo Result
2022/03/22 22:09 9m tadeusz.struk@linaro.org https://android.googlesource.com/kernel/common android13-5.10 error OK
2022/03/22 19:07 11m tadeusz.struk@linaro.org https://android.googlesource.com/kernel/common android13-5.10 error OK
2022/03/16 17:40 11m tadeusz.struk@linaro.org android12-5.10-lts OK

Sample crash report:
incfs: Backing dir is not set, filesystem can't be mounted.
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 366 Comm: syz-executor500 Not tainted 5.10.102-syzkaller-00166-gcbfab5c59cf6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:incfs_kill_sb+0x59/0x130 fs/incfs/vfs.c:1907
Code: c1 ef 03 43 80 3c 27 00 74 08 4c 89 f7 e8 4f 7e 9c ff 4d 8b 2e 49 8d 5d 10 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 29 7e 9c ff 48 8b 1b 48 83 c3 30 48
RSP: 0018:ffffc90000bb7ab0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffc90000bb7a58 RDI: ffff88811a012000
RBP: ffffc90000bb7ae0 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52000176ec5 R11: 0000000000000004 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88811a0123c8 R15: 1ffff11023402479
FS:  00005555567a6300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005599c92800a8 CR3: 000000011c9b7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 deactivate_locked_super+0xb0/0x100 fs/super.c:335
 incfs_mount_fs+0x859/0x950 fs/incfs/vfs.c:1868
 legacy_get_tree+0xf0/0x190 fs/fs_context.c:592
 vfs_get_tree+0x89/0x270 fs/super.c:1549
 do_new_mount fs/namespace.c:2899 [inline]
 path_mount+0x1975/0x2ab0 fs/namespace.c:3229
 do_mount fs/namespace.c:3242 [inline]
 __do_sys_mount fs/namespace.c:3450 [inline]
 __se_sys_mount+0x2f7/0x3b0 fs/namespace.c:3427
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f752344fd29
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:00007ffe8b50c928 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f752344fd29
RDX: 0000000020000200 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffe8b50cac8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f75234135b0
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 519bf011b1e9a12a ]---
RIP: 0010:incfs_kill_sb+0x59/0x130 fs/incfs/vfs.c:1907
Code: c1 ef 03 43 80 3c 27 00 74 08 4c 89 f7 e8 4f 7e 9c ff 4d 8b 2e 49 8d 5d 10 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 29 7e 9c ff 48 8b 1b 48 83 c3 30 48
RSP: 0018:ffffc90000bb7ab0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffc90000bb7a58 RDI: ffff88811a012000
RBP: ffffc90000bb7ae0 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52000176ec5 R11: 0000000000000004 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88811a0123c8 R15: 1ffff11023402479
FS:  00005555567a6300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005599c92800a8 CR3: 000000011c9b7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c1 ef 03             	shr    $0x3,%edi
   3:	43 80 3c 27 00       	cmpb   $0x0,(%r15,%r12,1)
   8:	74 08                	je     0x12
   a:	4c 89 f7             	mov    %r14,%rdi
   d:	e8 4f 7e 9c ff       	callq  0xff9c7e61
  12:	4d 8b 2e             	mov    (%r14),%r13
  15:	49 8d 5d 10          	lea    0x10(%r13),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 29 7e 9c ff       	callq  0xff9c7e61
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	48 83 c3 30          	add    $0x30,%rbx
  3f:	48                   	rex.W

Crashes (380):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/25 11:44 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report syz C ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 10:36 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report syz C ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 16:54 android12-5.10-lts add227a8d80c 6e821dbf .config console log report syz C ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 16:27 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 15:20 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 14:19 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 13:51 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 12:46 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 11:22 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 10:23 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 07:36 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 06:15 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 05:02 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 04:48 android12-5.10-lts cbfab5c59cf6 7c337266 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 02:23 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 01:21 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/25 00:46 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 23:43 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 22:40 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 21:33 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 20:42 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 19:24 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 18:06 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 16:49 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 16:44 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 15:30 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 14:24 android12-5.10-lts cbfab5c59cf6 b28851a4 .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 12:08 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 11:59 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 10:47 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 09:41 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 09:04 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 08:04 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 06:53 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 06:38 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 05:36 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 04:51 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 03:46 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 02:54 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 02:06 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 00:55 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/24 00:39 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 23:38 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 23:33 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 22:29 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 20:36 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 19:44 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
2022/02/23 11:14 android12-5.10-lts add227a8d80c 6e821dbf .config console log report info ci2-android-5-10 general protection fault in incfs_kill_sb
* Struck through repros no longer work on HEAD.