syzbot


BUG: unable to handle kernel paging request in sched_balance_update_blocked_averages

Status: moderation: reported on 2024/06/02 09:45
Subsystems: arm
[Documentation on labels]
Reported-by: syzbot+01d2d7cbeae03540f79d@syzkaller.appspotmail.com
First crash: 16d, last: 16d

Sample crash report:
Unable to handle kernel paging request at virtual address 007000000c9c0b60
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[007000000c9c0b60] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3979 Comm: syz-executor.0 Not tainted 6.10.0-rc1-syzkaller-00021-ge0cce98fe279 #0
Hardware name: linux,dummy-virt (DT)
pstate: 204000c9 (nzCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : skip_blocked_update kernel/sched/fair.c:4446 [inline]
pc : __update_blocked_fair kernel/sched/fair.c:9406 [inline]
pc : sched_balance_update_blocked_averages+0x240/0x5a4 kernel/sched/fair.c:9500
lr : update_cfs_rq_load_avg kernel/sched/fair.c:4634 [inline]
lr : __update_blocked_fair kernel/sched/fair.c:9394 [inline]
lr : sched_balance_update_blocked_averages+0x22c/0x5a4 kernel/sched/fair.c:9500
sp : ffff800080003e80
x29: ffff800080003e80
 x28: 0000000000000100
 x27: 0000003e832edae0

x26: fdf000000c9c0800
 x25: 0000000000000000
 x24: fff000007f8d6cc0

x23: 0000000000000000 x22: 0000000000000000 x21: fdf000000c9c0948
x20: fff000007f8d6340 x19: fcf000000a03c000 x18: 0000000000000000
x17: fff07ffffd319000 x16: ffff800080000000 x15: 0000ffffe1769e78
x14: 00000000000003b6 x13: 00000000000003b6 x12: 0000000000000000
x11: 0000000000000000 x10: 00000048195b50b0 x9 : 0000000000000800
x8 : fdf000000c9c0880 x7 : fdf000000c9c0800 x6 : 0000000000000400
x5 : f3f000000c5c4980 x4 : 0000000000000002 x3 : 0000000000000000
x2 : 0000003e832ed800 x1 : fa7000000c9c0a80 x0 : f0f000000438cdc0
Call trace:
 __update_blocked_fair kernel/sched/fair.c:9406 [inline]
 sched_balance_update_blocked_averages+0x240/0x5a4 kernel/sched/fair.c:9500
 sched_balance_softirq+0x44/0x74 kernel/sched/fair.c:12502
 handle_softirqs+0x10c/0x240 kernel/softirq.c:554
 __do_softirq+0x14/0x20 kernel/softirq.c:588
 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:81
 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:889
 do_softirq_own_stack+0x1c/0x28 arch/arm64/kernel/irq.c:86
 invoke_softirq kernel/softirq.c:435 [inline]
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0xbc/0xd8 kernel/softirq.c:649
 __el1_irq arch/arm64/kernel/entry-common.c:537 [inline]
 el1_interrupt+0x38/0x64 arch/arm64/kernel/entry-common.c:551
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:556
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:594
 tlb_get_level arch/arm64/include/asm/tlb.h:45 [inline]
 tlb_flush arch/arm64/include/asm/tlb.h:63 [inline]
 tlb_flush_mmu_tlbonly include/asm-generic/tlb.h:465 [inline]
 tlb_end_vma include/asm-generic/tlb.h:566 [inline]
 madvise_free_single_vma+0x208/0x2bc mm/madvise.c:817
 madvise_dontneed_free mm/madvise.c:929 [inline]
 madvise_vma_behavior+0x1d0/0x790 mm/madvise.c:1046
 madvise_walk_vmas+0xbc/0x12c mm/madvise.c:1268
 do_madvise+0x160/0x418 mm/madvise.c:1464
 __do_sys_madvise mm/madvise.c:1481 [inline]
 __se_sys_madvise mm/madvise.c:1479 [inline]
 __arm64_sys_madvise+0x24/0x34 mm/madvise.c:1479
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x48/0x118 arch/arm64/kernel/syscall.c:48
 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:152
 el0_svc+0x34/0xf8 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598
Code: f940af41 f9406420 f8776801 b4000101 (f9407020) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	f940af41 	ldr	x1, [x26, #344]
   4:	f9406420 	ldr	x0, [x1, #200]
   8:	f8776801 	ldr	x1, [x0, x23]
   c:	b4000101 	cbz	x1, 0x2c
* 10:	f9407020 	ldr	x0, [x1, #224] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/29 09:43 upstream e0cce98fe279 34889ee3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel paging request in sched_balance_update_blocked_averages
* Struck through repros no longer work on HEAD.