syzbot


general protection fault in page_vma_mapped_walk

Status: auto-closed as invalid on 2022/03/18 08:11
Reported-by: syzbot+fa151651c4146a3ba664@syzkaller.appspotmail.com
First crash: 1016d, last: 897d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in page_vma_mapped_walk mm 1 897d 893d 0/26 auto-closed as invalid on 2022/01/17 20:48
linux-4.14 general protection fault in page_vma_mapped_walk 1 1592d 1592d 0/1 auto-closed as invalid on 2020/04/22 07:29
linux-4.14 general protection fault in page_vma_mapped_walk (2) 1 1442d 1442d 0/1 auto-closed as invalid on 2020/09/19 03:21

Sample crash report:
Bluetooth: hci5: command 0x040f tx timeout
Bluetooth: hci5: command 0x0419 tx timeout
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
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: 8619 Comm: kworker/u4:1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
RIP: 0010:page_vma_mapped_walk+0x86a/0x27d0 mm/page_vma_mapped.c:196
Code: 8b 44 24 08 80 38 00 0f 85 58 1a 00 00 48 8b 44 24 20 4c 89 f5 48 c1 ed 24 81 e5 f8 0f 00 00 48 03 68 50 48 89 e8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 3e 19 00 00 4c 8b 65 00 31 ff 44 89 e5 83 e5
RSP: 0018:ffff888227db6eb8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888227db6fa0 RCX: ffffffff818f3ba7
RDX: 0000000000000000 RSI: ffffffff818f3ccf RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000007e38902 R12: 0000000000000000
R13: 0000000000000001 R14: 0000001b32b21000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0005fc324 CR3: 00000000b003a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 page_mkclean_one+0x3af/0x860 mm/rmap.c:899
 rmap_walk_file+0x539/0xb10 mm/rmap.c:1897
 rmap_walk+0x105/0x190 mm/rmap.c:1915
 page_mkclean+0x20f/0x2b0 mm/rmap.c:981
 clear_page_dirty_for_io+0x305/0xee0 mm/page-writeback.c:2687
 mpage_submit_page+0x80/0x250 fs/ext4/inode.c:2215
 mpage_process_page_bufs+0x534/0x630 fs/ext4/inode.c:2345
 mpage_prepare_extent_to_map+0x9a2/0xf10 fs/ext4/inode.c:2707
 ext4_writepages+0x111d/0x37f0 fs/ext4/inode.c:2835
 do_writepages+0xe5/0x290 mm/page-writeback.c:2344
 __writeback_single_inode+0x10c/0x11d0 fs/fs-writeback.c:1385
 writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647
 __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1716
 wb_writeback+0x841/0xcc0 fs/fs-writeback.c:1822
 wb_check_old_data_flush fs/fs-writeback.c:1924 [inline]
 wb_do_writeback fs/fs-writeback.c:1977 [inline]
 wb_workfn+0x8ba/0x1250 fs/fs-writeback.c:2006
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 901b608ab4430766 ]---
RIP: 0010:page_vma_mapped_walk+0x86a/0x27d0 mm/page_vma_mapped.c:196
Code: 8b 44 24 08 80 38 00 0f 85 58 1a 00 00 48 8b 44 24 20 4c 89 f5 48 c1 ed 24 81 e5 f8 0f 00 00 48 03 68 50 48 89 e8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 3e 19 00 00 4c 8b 65 00 31 ff 44 89 e5 83 e5
RSP: 0018:ffff888227db6eb8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888227db6fa0 RCX: ffffffff818f3ba7
RDX: 0000000000000000 RSI: ffffffff818f3ccf RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000007e38902 R12: 0000000000000000
R13: 0000000000000001 R14: 0000001b32b21000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007feb208f7000 CR3: 00000000a0c86000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 44 24 08          	mov    0x8(%rsp),%eax
   4:	80 38 00             	cmpb   $0x0,(%rax)
   7:	0f 85 58 1a 00 00    	jne    0x1a65
   d:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  12:	4c 89 f5             	mov    %r14,%rbp
  15:	48 c1 ed 24          	shr    $0x24,%rbp
  19:	81 e5 f8 0f 00 00    	and    $0xff8,%ebp
  1f:	48 03 68 50          	add    0x50(%rax),%rbp
  23:	48 89 e8             	mov    %rbp,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	0f 85 3e 19 00 00    	jne    0x1973
  35:	4c 8b 65 00          	mov    0x0(%rbp),%r12
  39:	31 ff                	xor    %edi,%edi
  3b:	44 89 e5             	mov    %r12d,%ebp
  3e:	83                   	.byte 0x83
  3f:	e5                   	.byte 0xe5

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/18 08:10 linux-4.19.y 3f8a27f9e27b cafff8b6 .config console log report info ci2-linux-4-19 general protection fault in page_vma_mapped_walk
2021/07/22 16:54 linux-4.19.y 4938296e03bd 241790bb .config console log report info ci2-linux-4-19 general protection fault in page_vma_mapped_walk
* Struck through repros no longer work on HEAD.