syzbot


general protection fault in arch_tlbbatch_flush

Status: auto-obsoleted due to no activity on 2023/09/26 12:19
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+5759bce381cb6f9c51fa@syzkaller.appspotmail.com
First crash: 532d, last: 532d
Cause bisection: introduced by (bisect log) :
commit 75c400f82d347af1307010a3e06f3aa5d831d995
Author: Alistair Popple <apopple@nvidia.com>
Date: Wed Jul 19 12:18:44 2023 +0000

  mmu_notifiers: call invalidate_range() when invalidating TLBs

Crash: general protection fault in arch_tlbbatch_flush (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] general protection fault in arch_tlbbatch_flush 0 (2) 2023/09/12 01:34
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/28 00:23 31m retest repro linux-next OK log
Cause bisection attempts (3)
Created Duration User Patch Repo Result
2023/09/11 13:58 11h35m bisect linux-next OK (1) job log log
2023/08/25 02:17 0m (2) bisect linux-next error job log
marked invalid by nogikh@google.com
2023/07/24 02:47 9m bisect linux-next error job log
marked invalid by nogikh@google.com

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc00000000fe: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000007f0-0x00000000000007f7]
CPU: 1 PID: 31 Comm: kcompactd0 Not tainted 6.5.0-rc2-next-20230720-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:mm_has_notifiers include/linux/mmu_notifier.h:282 [inline]
RIP: 0010:mmu_notifier_arch_invalidate_secondary_tlbs include/linux/mmu_notifier.h:489 [inline]
RIP: 0010:arch_tlbbatch_flush+0x3d8/0x560 arch/x86/mm/tlb.c:1268
Code: 03 80 3c 02 00 0f 85 f3 00 00 00 48 8b 9b 28 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb f0 07 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c0 00 00 00 48 83 bb f0 07 00 00 00 75 62 48 83
RSP: 0018:ffffc90000a7f5d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 00000000000000fe RSI: ffffffff813b2ae5 RDI: 00000000000007f0
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b993bbc0
R13: 0000000000000001 R14: ffffc90000a7f8d8 R15: ffffea0000314b48
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd5da70d80 CR3: 000000002a6e2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 try_to_unmap_flush+0x6b/0xf0 mm/rmap.c:621
 migrate_pages_batch+0x2524/0x2c70 mm/migrate.c:1740
 migrate_pages_sync mm/migrate.c:1822 [inline]
 migrate_pages+0x1a01/0x2640 mm/migrate.c:1926
 compact_zone+0x1cee/0x3f60 mm/compaction.c:2512
 proactive_compact_node+0x118/0x1d0 mm/compaction.c:2777
 kcompactd+0x710/0xd80 mm/compaction.c:3097
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mm_has_notifiers include/linux/mmu_notifier.h:282 [inline]
RIP: 0010:mmu_notifier_arch_invalidate_secondary_tlbs include/linux/mmu_notifier.h:489 [inline]
RIP: 0010:arch_tlbbatch_flush+0x3d8/0x560 arch/x86/mm/tlb.c:1268
Code: 03 80 3c 02 00 0f 85 f3 00 00 00 48 8b 9b 28 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb f0 07 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c0 00 00 00 48 83 bb f0 07 00 00 00 75 62 48 83
RSP: 0018:ffffc90000a7f5d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 00000000000000fe RSI: ffffffff813b2ae5 RDI: 00000000000007f0
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b993bbc0
R13: 0000000000000001 R14: ffffc90000a7f8d8 R15: ffffea0000314b48
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000000c776000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   4:	0f 85 f3 00 00 00    	jne    0xfd
   a:	48 8b 9b 28 05 00 00 	mov    0x528(%rbx),%rbx
  11:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  18:	fc ff df
  1b:	48 8d bb f0 07 00 00 	lea    0x7f0(%rbx),%rdi
  22:	48 89 fa             	mov    %rdi,%rdx
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2d:	0f 85 c0 00 00 00    	jne    0xf3
  33:	48 83 bb f0 07 00 00 	cmpq   $0x0,0x7f0(%rbx)
  3a:	00
  3b:	75 62                	jne    0x9f
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/20 17:53 linux-next c58c49dd8932 7b630fdb .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in arch_tlbbatch_flush
2023/07/21 01:16 linux-next c58c49dd8932 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in arch_tlbbatch_flush
2023/07/20 14:03 linux-next c58c49dd8932 7b630fdb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in arch_tlbbatch_flush
2023/07/20 06:17 linux-next c58c49dd8932 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in arch_tlbbatch_flush
* Struck through repros no longer work on HEAD.