syzbot


BUG: unable to handle kernel paging request in mas_alloc_nodes

Status: auto-obsoleted due to no activity on 2023/11/25 23:33
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+de4269ef04437bffcaa9@syzkaller.appspotmail.com
First crash: 255d, last: 255d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: BUG: unable to handle kernel paging request in __delayacct_add_tsk (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] BUG: unable to handle kernel paging request in mas_alloc_nodes 0 (1) 2023/09/06 21:35
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/11/25 23:11 21m retest repro linux-next OK log
2023/09/16 22:27 17m retest repro linux-next report log

Sample crash report:
BUG: unable to handle page fault for address: 00000076000400c8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4494 Comm: udevd Not tainted 6.5.0-next-20230831-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__kmem_cache_alloc_bulk mm/slub.c:3986 [inline]
RIP: 0010:kmem_cache_alloc_bulk+0x16a/0x7c0 mm/slub.c:4049
Code: 00 0f 85 1b 05 00 00 45 31 d2 4c 89 3c 24 65 48 8b 0c 25 c0 bc 03 00 4d 89 d7 48 89 4d 28 31 ed 48 89 4c 24 18 eb 2d 8b 43 28 <48> 8b 04 07 49 89 04 24 49 89 3b 0f 1f 44 00 00 4c 8b 1c 24 41 81
RSP: 0018:ffffc900031af878 EFLAGS: 00010006

RAX: 0000000000000080 RBX: ffff88801364d000 RCX: ffff88807d56bb80
RDX: 0000000000000000 RSI: ffffffff8ae925a0 RDI: 0000007600040048
RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1d9c40a
R10: 0000000000000000 R11: ffff888073edee10 R12: ffff8880b9841830
R13: 000000000000000e R14: ffff888073edee10 R15: 0000000000000000
FS:  00007ff1acb30c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000076000400c8 CR3: 00000000290ce000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 mt_alloc_bulk lib/maple_tree.c:165 [inline]
 mas_alloc_nodes+0x39c/0x830 lib/maple_tree.c:1271
 mas_node_count_gfp+0x105/0x130 lib/maple_tree.c:1329
 mas_node_count lib/maple_tree.c:1343 [inline]
 mas_expected_entries+0x116/0x200 lib/maple_tree.c:5577
 vma_iter_bulk_alloc include/linux/mm.h:985 [inline]
 dup_mmap+0x4f8/0x1d80 kernel/fork.c:681
 dup_mm kernel/fork.c:1686 [inline]
 copy_mm kernel/fork.c:1735 [inline]
 copy_process+0x6c11/0x7400 kernel/fork.c:2501
 kernel_clone+0xfd/0x930 kernel/fork.c:2909
 __do_sys_clone+0xba/0x100 kernel/fork.c:3052
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff1ac6fca12
Code: 41 5d 41 5e 41 5f c3 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 e7 43 0f 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fffc6413228 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000562ccc95ee01 RCX: 00007ff1ac6fca12
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000562ccc94b910
R10: 00007ff1acb30f50 R11: 0000000000000246 R12: 0000562ccc973450
R13: 0000000000000000 R14: 0000000000000000 R15: 0000562ccc94b910
 </TASK>
Modules linked in:
CR2: 00000076000400c8
---[ end trace 0000000000000000 ]---
RIP: 0010:__kmem_cache_alloc_bulk mm/slub.c:3986 [inline]
RIP: 0010:kmem_cache_alloc_bulk+0x16a/0x7c0 mm/slub.c:4049
Code: 00 0f 85 1b 05 00 00 45 31 d2 4c 89 3c 24 65 48 8b 0c 25 c0 bc 03 00 4d 89 d7 48 89 4d 28 31 ed 48 89 4c 24 18 eb 2d 8b 43 28 <48> 8b 04 07 49 89 04 24 49 89 3b 0f 1f 44 00 00 4c 8b 1c 24 41 81
RSP: 0018:ffffc900031af878 EFLAGS: 00010006
RAX: 0000000000000080 RBX: ffff88801364d000 RCX: ffff88807d56bb80
RDX: 0000000000000000 RSI: ffffffff8ae925a0 RDI: 0000007600040048
RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1d9c40a
R10: 0000000000000000 R11: ffff888073edee10 R12: ffff8880b9841830
R13: 000000000000000e R14: ffff888073edee10 R15: 0000000000000000
FS:  00007ff1acb30c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000076000400c8 CR3: 00000000290ce000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 0f                	add    %cl,(%rdi)
   2:	85 1b                	test   %ebx,(%rbx)
   4:	05 00 00 45 31       	add    $0x31450000,%eax
   9:	d2 4c 89 3c          	rorb   %cl,0x3c(%rcx,%rcx,4)
   d:	24 65                	and    $0x65,%al
   f:	48 8b 0c 25 c0 bc 03 	mov    0x3bcc0,%rcx
  16:	00
  17:	4d 89 d7             	mov    %r10,%r15
  1a:	48 89 4d 28          	mov    %rcx,0x28(%rbp)
  1e:	31 ed                	xor    %ebp,%ebp
  20:	48 89 4c 24 18       	mov    %rcx,0x18(%rsp)
  25:	eb 2d                	jmp    0x54
  27:	8b 43 28             	mov    0x28(%rbx),%eax
* 2a:	48 8b 04 07          	mov    (%rdi,%rax,1),%rax <-- trapping instruction
  2e:	49 89 04 24          	mov    %rax,(%r12)
  32:	49 89 3b             	mov    %rdi,(%r11)
  35:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  3a:	4c 8b 1c 24          	mov    (%rsp),%r11
  3e:	41                   	rex.B
  3f:	81                   	.byte 0x81

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/02 21:26 linux-next a47fc304d2b6 696ea0d2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in mas_alloc_nodes
* Struck through repros no longer work on HEAD.