syzbot


general protection fault in load_balance

Status: auto-closed as invalid on 2020/10/31 07:23
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+d7b75fdd3726e03605dd@syzkaller.appspotmail.com
First crash: 1330d, last: 1330d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 32618 Comm: syz-executor.4 Not tainted 5.9.0-rc2-next-20200828-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:group_balance_mask kernel/sched/sched.h:1505 [inline]
RIP: 0010:should_we_balance kernel/sched/fair.c:9483 [inline]
RIP: 0010:load_balance+0x2fc/0x2ac0 kernel/sched/fair.c:9527
Code: 00 00 00 48 c7 c0 64 73 bc 8a 48 89 c1 83 e0 07 48 c1 eb 03 48 c1 e9 03 49 89 c7 4c 01 eb 48 89 8c 24 c0 00 00 00 41 83 c7 03 <80> 3b 00 48 8b 94 24 30 01 00 00 0f 85 95 25 00 00 49 8b 44 24 10
RSP: 0018:ffffc90000007c98 EFLAGS: 00010202
RAX: 0000000000000004 RBX: dffffc0000000002 RCX: 1ffffffff1578e6c
RDX: ffffed1015cc41b3 RSI: 0000000000000008 RDI: ffff8880ae620d90
RBP: ffffc90000007e68 R08: 0000000000000000 R09: ffff8880ae620d97
R10: ffffed1015cc41b2 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 00000000ffffffff R15: 0000000000000007
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9b6558edb8 CR3: 0000000009a8d000 CR4: 00000000001526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rebalance_domains+0x637/0xce0 kernel/sched/fair.c:9955
 __do_softirq+0x2de/0xa24 kernel/softirq.c:298
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu kernel/softirq.c:423 [inline]
 irq_exit_rcu+0x1f3/0x230 kernel/softirq.c:435
 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:653 [inline]
RIP: 0010:lock_acquire+0x27b/0xad0 kernel/locking/lockdep.c:5008
Code: 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 f8 06 00 00 48 83 3d 6a d1 5b 08 00 0f 84 a6 05 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 10 48 c7
RSP: 0018:ffffc900075d7858 EFLAGS: 00000286
RAX: 1ffffffff136c7d9 RBX: ffff888040dae4c0 RCX: 00000000207dde82
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 0000000000000286
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8c6a59e7
R10: fffffbfff18d4b3c R11: 0000000000000000 R12: 0000000000000002
R13: ffffffff89c67640 R14: 0000000000000000 R15: ffff8880a79904a8
 rcu_lock_acquire include/linux/rcupdate.h:248 [inline]
 rcu_read_lock include/linux/rcupdate.h:641 [inline]
 lock_page_memcg+0x63/0x260 mm/memcontrol.c:2094
 page_remove_rmap+0x25/0x16f0 mm/rmap.c:1328
 zap_pte_range mm/memory.c:1093 [inline]
 zap_pmd_range mm/memory.c:1197 [inline]
 zap_pud_range mm/memory.c:1226 [inline]
 zap_p4d_range mm/memory.c:1247 [inline]
 unmap_page_range+0xf6a/0x2ab0 mm/memory.c:1268
 unmap_single_vma+0x198/0x300 mm/memory.c:1313
 unmap_vmas+0x168/0x2e0 mm/memory.c:1345
 exit_mmap+0x2b1/0x530 mm/mmap.c:3228
 __mmput+0x122/0x470 kernel/fork.c:1075
 mmput+0x53/0x60 kernel/fork.c:1096
 exit_mm kernel/exit.c:483 [inline]
 do_exit+0xa8b/0x29f0 kernel/exit.c:793
 do_group_exit+0x125/0x310 kernel/exit.c:903
 __do_sys_exit_group kernel/exit.c:914 [inline]
 __se_sys_exit_group kernel/exit.c:912 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:912
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5b9
Code: Bad RIP value.
RSP: 002b:00007f088baeb688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 000000000045d5b9
RDX: 000000000045d5b9 RSI: 0000000000000000 RDI: 000000000000000b
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000400000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007fff6561bcaf R14: 00007f088baec9c0 R15: 000000000118cf4c
Modules linked in:
---[ end trace 4fdea04e9801e291 ]---
RIP: 0010:group_balance_mask kernel/sched/sched.h:1505 [inline]
RIP: 0010:should_we_balance kernel/sched/fair.c:9483 [inline]
RIP: 0010:load_balance+0x2fc/0x2ac0 kernel/sched/fair.c:9527
Code: 00 00 00 48 c7 c0 64 73 bc 8a 48 89 c1 83 e0 07 48 c1 eb 03 48 c1 e9 03 49 89 c7 4c 01 eb 48 89 8c 24 c0 00 00 00 41 83 c7 03 <80> 3b 00 48 8b 94 24 30 01 00 00 0f 85 95 25 00 00 49 8b 44 24 10
RSP: 0018:ffffc90000007c98 EFLAGS: 00010202
RAX: 0000000000000004 RBX: dffffc0000000002 RCX: 1ffffffff1578e6c
RDX: ffffed1015cc41b3 RSI: 0000000000000008 RDI: ffff8880ae620d90
RBP: ffffc90000007e68 R08: 0000000000000000 R09: ffff8880ae620d97
R10: ffffed1015cc41b2 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 00000000ffffffff R15: 0000000000000007
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9b6558edb8 CR3: 0000000009a8d000 CR4: 00000000001526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/01 07:22 linux-next b36c969764ab d5a3ae1f .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.