syzbot


INFO: rcu detected stall in call_usermodehelper_exec_async (2)

Status: auto-closed as invalid on 2022/08/28 20:38
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 186d, last: 186d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in call_usermodehelper_exec_async 1 1096d 1096d 0/24 closed as invalid on 2019/12/04 14:14
upstream BUG: soft lockup in call_usermodehelper_exec_async 2 391d 441d 0/24 closed as dup on 2021/09/17 07:37

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=4c5/1/0x4000000000000000 softirq=115320/115325 fqs=2100 
	(detected by 0, t=10505 jiffies, g=168857, q=1021 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2508 Comm: modprobe Not tainted 5.18.0-syzkaller-11338-g2c5ca23f7414 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/12/2022
RIP: 0010:__lock_acquire+0x275/0x5660 kernel/locking/lockdep.c:4988
Code: d2 74 09 80 fa 03 0f 8e 3d 13 00 00 41 0f b7 44 24 20 49 8d 7c 24 08 48 89 fa 48 c1 ea 03 66 25 00 e0 09 c8 66 41 89 44 24 20 <48> b8 00 00 00 00 00 fc ff df 80 3c 02 00 0f 85 71 38 00 00 48 8b
RSP: 0018:ffffc900001f0af0 EFLAGS: 00000006
RAX: 0000000000004000 RBX: ffffffff907df058 RCX: 0000000000000000
RDX: 1ffff110048f050c RSI: 000000000000005c RDI: ffff888024782860
RBP: 0000000000000000 R08: 1ffff110048f050a R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888024782858
R13: ffff888024781d80 R14: 0000000000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0cbe5e038 CR3: 0000000076514000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 lock_acquire kernel/locking/lockdep.c:5665 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
 debug_object_deactivate lib/debugobjects.c:732 [inline]
 debug_object_deactivate+0x101/0x300 lib/debugobjects.c:720
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate kernel/time/hrtimer.c:481 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x3f8/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_is_held_type+0xff/0x140 kernel/locking/lockdep.c:5713
Code: 00 00 b8 ff ff ff ff 65 0f c1 05 74 03 8c 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48
RSP: 0018:ffffc90002e8f808 EFLAGS: 00000282
RAX: 0000000000000046 RBX: 0000000000000002 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8bdcba98 R08: 0000000000000000 R09: ffffffff900b1887
R10: fffffbfff2016310 R11: 0000000000000001 R12: ffff888024781d80
R13: 0000000000000000 R14: 00000000ffffffff R15: ffff888024782808
 lock_is_held include/linux/lockdep.h:279 [inline]
 task_css include/linux/cgroup.h:495 [inline]
 mem_cgroup_from_task+0x8c/0x130 mm/memcontrol.c:907
 get_obj_cgroup_from_current+0x10e/0x250 mm/memcontrol.c:2923
 memcg_slab_pre_alloc_hook mm/slab.h:489 [inline]
 slab_pre_alloc_hook mm/slab.h:728 [inline]
 slab_alloc_node mm/slub.c:3128 [inline]
 slab_alloc mm/slub.c:3222 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3229 [inline]
 kmem_cache_alloc+0x78/0x3b0 mm/slub.c:3239
 anon_vma_alloc mm/rmap.c:93 [inline]
 __anon_vma_prepare+0x2d6/0x560 mm/rmap.c:201
 anon_vma_prepare include/linux/rmap.h:156 [inline]
 do_cow_fault mm/memory.c:4519 [inline]
 do_fault mm/memory.c:4634 [inline]
 handle_pte_fault mm/memory.c:4895 [inline]
 __handle_mm_fault+0x3fa2/0x4130 mm/memory.c:5034
 handle_mm_fault+0x1c8/0x790 mm/memory.c:5132
 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1484 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540
 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:__clear_user+0x40/0x70 arch/x86/lib/usercopy_64.c:24
Code: 85 2c 8a e8 22 02 8d fd 0f 01 cb 48 89 d8 48 c1 eb 03 48 89 ef 83 e0 07 48 89 d9 48 85 c9 74 19 66 2e 0f 1f 84 00 00 00 00 00 <48> c7 07 00 00 00 00 48 83 c7 08 ff c9 75 f1 48 89 c1 85 c9 74 0a
RSP: 0018:ffffc90002e8fc00 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 00000000000001f9 RCX: 00000000000001f9
RDX: ffff888024781d80 RSI: ffffffff8425061e RDI: 00007ff0cbe5e038
RBP: 00007ff0cbe5e038 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 00007fffffffe038
R13: 00007ff0cbe5e038 R14: 00007ff0cbe5e1d8 R15: ffff88807c5cb800
 clear_user+0xca/0x100 arch/x86/lib/usercopy_64.c:52
 padzero fs/binfmt_elf.c:143 [inline]
 load_elf_interp fs/binfmt_elf.c:690 [inline]
 load_elf_binary+0x4d57/0x4ec0 fs/binfmt_elf.c:1250
 search_binary_handler fs/exec.c:1730 [inline]
 exec_binprm fs/exec.c:1771 [inline]
 bprm_execve fs/exec.c:1840 [inline]
 bprm_execve+0x7ef/0x1970 fs/exec.c:1802
 kernel_execve+0x394/0x490 fs/exec.c:2001
 call_usermodehelper_exec_async+0x2e3/0x580 kernel/umh.c:112
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
----------------
Code disassembly (best guess):
   0:	d2 74 09 80          	shlb   %cl,-0x80(%rcx,%rcx,1)
   4:	fa                   	cli
   5:	03 0f                	add    (%rdi),%ecx
   7:	8e 3d 13 00 00 41    	mov    0x41000013(%rip),%?        # 0x41000020
   d:	0f b7 44 24 20       	movzwl 0x20(%rsp),%eax
  12:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
  17:	48 89 fa             	mov    %rdi,%rdx
  1a:	48 c1 ea 03          	shr    $0x3,%rdx
  1e:	66 25 00 e0          	and    $0xe000,%ax
  22:	09 c8                	or     %ecx,%eax
  24:	66 41 89 44 24 20    	mov    %ax,0x20(%r12)
* 2a:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax <-- trapping instruction
  31:	fc ff df
  34:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  38:	0f 85 71 38 00 00    	jne    0x38af
  3e:	48                   	rex.W
  3f:	8b                   	.byte 0x8b

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/05/30 20:35 upstream 2c5ca23f7414 af70c3a9 .config log report info INFO: rcu detected stall in call_usermodehelper_exec_async
* Struck through repros no longer work on HEAD.