syzbot


BUG: unable to handle kernel NULL pointer dereference in quarantine_remove_cache

Status: auto-closed as invalid on 2022/05/18 10:27
Reported-by: syzbot+dfad424cc563afc27049@syzkaller.appspotmail.com
First crash: 1052d, last: 1040d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in quarantine_remove_cache (2) 5 1315d 1542d 0/1 auto-closed as invalid on 2021/08/15 16:36
linux-4.19 BUG: unable to handle kernel paging request in quarantine_remove_cache (2) 4 1185d 1251d 0/1 auto-closed as invalid on 2021/12/23 22:53
linux-4.19 general protection fault in quarantine_remove_cache (2) 1 853d 853d 0/1 auto-obsoleted due to no activity on 2022/11/20 15:56
linux-4.14 general protection fault in quarantine_remove_cache 1 1685d 1685d 0/1 auto-closed as invalid on 2020/08/10 13:39
linux-4.19 general protection fault in quarantine_remove_cache 1 1448d 1448d 0/1 auto-closed as invalid on 2021/04/05 09:12
linux-4.14 BUG: unable to handle kernel paging request in quarantine_remove_cache 2 1643d 1649d 0/1 auto-closed as invalid on 2020/09/21 13:58
linux-4.14 BUG: unable to handle kernel paging request in quarantine_remove_cache (2) 1 1429d 1429d 0/1 auto-closed as invalid on 2021/04/24 11:49
linux-4.19 BUG: unable to handle kernel paging request in quarantine_remove_cache 2 1424d 1444d 0/1 auto-closed as invalid on 2021/04/28 15:13

Sample crash report:
input: syz1 as /devices/virtual/input/input33
BUG: unable to handle kernel NULL pointer dereference at 0000000000000014
PGD b45cb067 P4D b45cb067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8120 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:qlist_move_cache+0x93/0xd0 mm/kasan/quarantine.c:279
Code: 3f 4c 89 ef e8 ce ea 92 ff 48 c1 e8 0c 48 c1 e0 06 4c 01 e0 48 8b 50 08 48 8d 4a ff 83 e2 01 48 0f 45 c1 48 8b 40 18 48 39 c5 <8b> 50 14 75 aa 48 83 3b 00 74 2c 48 8b 43 08 4c 89 28 4c 89 6b 08
RSP: 0018:ffff8880b301fb78 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffff8880b301fbb0 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff812b5eca RDI: 0000000000000007
RBP: ffff8880a2198940 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffffea0000000000
R13: ffff888000000000 R14: ffffffff8d25a6c8 R15: f000ff53f000ff53
FS:  0000555556a26400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000014 CR3: 000000009d804000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 quarantine_remove_cache+0x73/0x100 mm/kasan/quarantine.c:317
 shutdown_cache+0xe/0x1e0 mm/slab_common.c:562
 kmem_cache_destroy+0x267/0x310 mm/slab_common.c:927
 p9_client_destroy+0x250/0x360 net/9p/client.c:1112
 v9fs_session_close+0x45/0x2c0 fs/9p/v9fs.c:513
 v9fs_kill_super+0x49/0x90 fs/9p/vfs_super.c:233
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 deactivate_super+0x174/0x1a0 fs/super.c:360
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6fcf45b307
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffd45738c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6fcf45b307
RDX: 00007fffd457399c RSI: 000000000000000a RDI: 00007fffd4573990
RBP: 00007fffd4573990 R08: 00000000ffffffff R09: 00007fffd4573760
R10: 0000555556a27903 R11: 0000000000000246 R12: 00007f6fcf4b3172
R13: 00007fffd4574a50 R14: 0000555556a27810 R15: 00007fffd4574a90
Modules linked in:
CR2: 0000000000000014
---[ end trace 233288170173f459 ]---
RIP: 0010:qlist_move_cache+0x93/0xd0 mm/kasan/quarantine.c:279
Code: 3f 4c 89 ef e8 ce ea 92 ff 48 c1 e8 0c 48 c1 e0 06 4c 01 e0 48 8b 50 08 48 8d 4a ff 83 e2 01 48 0f 45 c1 48 8b 40 18 48 39 c5 <8b> 50 14 75 aa 48 83 3b 00 74 2c 48 8b 43 08 4c 89 28 4c 89 6b 08
RSP: 0018:ffff8880b301fb78 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffff8880b301fbb0 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff812b5eca RDI: 0000000000000007
RBP: ffff8880a2198940 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffffea0000000000
R13: ffff888000000000 R14: ffffffff8d25a6c8 R15: f000ff53f000ff53
FS:  0000555556a26400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000014 CR3: 000000009d804000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	4c 89 ef             	mov    %r13,%rdi
   3:	e8 ce ea 92 ff       	callq  0xff92ead6
   8:	48 c1 e8 0c          	shr    $0xc,%rax
   c:	48 c1 e0 06          	shl    $0x6,%rax
  10:	4c 01 e0             	add    %r12,%rax
  13:	48 8b 50 08          	mov    0x8(%rax),%rdx
  17:	48 8d 4a ff          	lea    -0x1(%rdx),%rcx
  1b:	83 e2 01             	and    $0x1,%edx
  1e:	48 0f 45 c1          	cmovne %rcx,%rax
  22:	48 8b 40 18          	mov    0x18(%rax),%rax
  26:	48 39 c5             	cmp    %rax,%rbp
* 29:	8b 50 14             	mov    0x14(%rax),%edx <-- trapping instruction
  2c:	75 aa                	jne    0xffffffd8
  2e:	48 83 3b 00          	cmpq   $0x0,(%rbx)
  32:	74 2c                	je     0x60
  34:	48 8b 43 08          	mov    0x8(%rbx),%rax
  38:	4c 89 28             	mov    %r13,(%rax)
  3b:	4c 89 6b 08          	mov    %r13,0x8(%rbx)

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/05 15:58 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in quarantine_remove_cache
2022/01/18 10:26 linux-4.19.y 3f8a27f9e27b 731a2d23 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in quarantine_remove_cache
2022/01/10 17:48 linux-4.19.y 3f8a27f9e27b ddb0ab8c .config console log report info ci2-linux-4-19 general protection fault in quarantine_remove_cache
2022/01/09 20:31 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 general protection fault in quarantine_remove_cache
2022/01/08 12:07 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 general protection fault in quarantine_remove_cache
* Struck through repros no longer work on HEAD.