syzbot


general protection fault in nfsd_reply_cache_free_locked (2)

Status: auto-closed as invalid on 2022/04/06 17:29
Reported-by: syzbot+314d9a0380418b51606b@syzkaller.appspotmail.com
First crash: 541d, last: 353d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in nfsd_reply_cache_free_locked 5 796d 928d 0/24 auto-closed as invalid on 2021/01/19 08:07

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000022103: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000000110818-0x000000000011081f]
CPU: 1 PID: 7786 Comm: kworker/u4:6 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:nfsd_reply_cache_free_locked+0x31/0x3b0 fs/nfsd/nfscache.c:123
Code: 54 49 89 fc 55 48 89 f5 53 48 89 d3 48 83 ec 08 e8 24 52 18 ff 48 8d 7d 61 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 c3 02 00 00
RSP: 0018:ffffc9000349fb68 EFLAGS: 00010216
RAX: dffffc0000000000 RBX: ffff88807df59000 RCX: 0000000000000000
RDX: 0000000000022103 RSI: ffffffff825e9afc RDI: 0000000000110819
RBP: 00000000001107b8 R08: 0000000000000800 R09: ffffffff8fd019ef
R10: ffffffff825ea97e R11: 0000000000086089 R12: ffff888000110800
R13: 0000000000010800 R14: ffffed1000022101 R15: ffff888000110800
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558a78d9e3e8 CR3: 0000000082d63000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 nfsd_reply_cache_shutdown+0x153/0x2d0 fs/nfsd/nfscache.c:222
 nfsd_exit_net+0x10e/0x4b0 fs/nfsd/nfsctl.c:1506
 ops_exit_list+0xb0/0x160 net/core/net_namespace.c:168
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:591
 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Modules linked in:
---[ end trace 047d3dcf9473cd65 ]---
RIP: 0010:nfsd_reply_cache_free_locked+0x31/0x3b0 fs/nfsd/nfscache.c:123
Code: 54 49 89 fc 55 48 89 f5 53 48 89 d3 48 83 ec 08 e8 24 52 18 ff 48 8d 7d 61 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 c3 02 00 00
RSP: 0018:ffffc9000349fb68 EFLAGS: 00010216
RAX: dffffc0000000000 RBX: ffff88807df59000 RCX: 0000000000000000
RDX: 0000000000022103 RSI: ffffffff825e9afc RDI: 0000000000110819
RBP: 00000000001107b8 R08: 0000000000000800 R09: ffffffff8fd019ef
R10: ffffffff825ea97e R11: 0000000000086089 R12: ffff888000110800
R13: 0000000000010800 R14: ffffed1000022101 R15: ffff888000110800
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32128000 CR3: 000000007a575000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	54                   	push   %rsp
   1:	49 89 fc             	mov    %rdi,%r12
   4:	55                   	push   %rbp
   5:	48 89 f5             	mov    %rsi,%rbp
   8:	53                   	push   %rbx
   9:	48 89 d3             	mov    %rdx,%rbx
   c:	48 83 ec 08          	sub    $0x8,%rsp
  10:	e8 24 52 18 ff       	callq  0xff185239
  15:	48 8d 7d 61          	lea    0x61(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	48 89 fa             	mov    %rdi,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 c3 02 00 00    	jne    0x303

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/11/01 18:36 upstream 8bb7eca972ad 098b5d53 .config log report info general protection fault in nfsd_reply_cache_free_locked
ci-upstream-kasan-gce 2021/06/02 11:42 upstream 231bc5390667 0740de69 .config log report info general protection fault in nfsd_reply_cache_free_locked
ci-upstream-kasan-gce-386 2021/08/02 10:01 upstream c500bee1c5b2 6c236867 .config log report info general protection fault in nfsd_reply_cache_free_locked
ci-upstream-kasan-gce-386 2021/07/28 22:35 upstream 4010a528219e 9a4781d4 .config log report info general protection fault in nfsd_reply_cache_free_locked
ci-upstream-kasan-gce-386 2021/06/03 23:02 upstream f88cd3fb9df2 0740de69 .config log report info general protection fault in nfsd_reply_cache_free_locked
ci-upstream-linux-next-kasan-gce-root 2021/12/07 17:28 linux-next 04fe99a8d936 0230ba3e .config log report info general protection fault in nfsd_reply_cache_free_locked
* Struck through repros no longer work on HEAD.