syzbot


WARNING: locking bug in call_usermodehelper_exec_work

Status: closed as dup on 2023/02/26 04:56
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+ed63f5009044b5dc16ba@syzkaller.appspotmail.com
First crash: 429d, last: 429d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: locking bug in umh_complete kernel 1 457d 453d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING: locking bug in call_usermodehelper_exec_work 0 (1) 2023/02/24 14:43

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 5159 at kernel/locking/lockdep.c:231 check_wait_context kernel/locking/lockdep.c:4729 [inline]
WARNING: CPU: 0 PID: 5159 at kernel/locking/lockdep.c:231 __lock_acquire+0x2c0/0x2f48 kernel/locking/lockdep.c:5005
Modules linked in:
CPU: 0 PID: 5159 Comm: kworker/u4:11 Not tainted 6.2.0-rc7-syzkaller-17907-g2d3827b3f393 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Workqueue: events_unbound call_usermodehelper_exec_work
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : check_wait_context kernel/locking/lockdep.c:4729 [inline]
pc : __lock_acquire+0x2c0/0x2f48 kernel/locking/lockdep.c:5005
lr : hlock_class kernel/locking/lockdep.c:231 [inline]
lr : check_wait_context kernel/locking/lockdep.c:4729 [inline]
lr : __lock_acquire+0x2a8/0x2f48 kernel/locking/lockdep.c:5005
sp : ffff80002054bb00
x29: ffff80002054bbe0 x28: ffff0000e74b2440 x27: ffff80000d2c49a4
x26: ffff0000e74b2420 x25: 0000000000000001 x24: 0000000000000000
x23: 0000000000000001 x22: 0000000000000000 x21: ffff0000e74b23d0
x20: 0000000000000002 x19: aaaaaaaaaaa31957 x18: 0000000000000000
x17: 000000000000ba7e x16: 0000000000000001 x15: ffff80000dbd2118
x14: ffff0000e74b1a00 x13: 0000000000000012 x12: ffff0000e74b1a00
x11: ffff80000dd94158 x10: 0000000000000000 x9 : da680f1092402900
x8 : 0000000000000000 x7 : 4e5241575f534b43 x6 : ffff80000bf650d4
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000100000001 x0 : 0000000000000016
Call trace:
 check_wait_context kernel/locking/lockdep.c:4729 [inline]
 __lock_acquire+0x2c0/0x2f48 kernel/locking/lockdep.c:5005
 lock_acquire+0x164/0x334 kernel/locking/lockdep.c:5668
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x68/0x88 kernel/locking/spinlock.c:162
 complete+0x24/0x90 kernel/sched/completion.c:32
 call_usermodehelper_exec_work+0x128/0x17c
 process_one_work+0x3ac/0x9d0 kernel/workqueue.c:2289
 worker_thread+0x340/0x608 kernel/workqueue.c:2436
 kthread+0x12c/0x158 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 115998
hardirqs last  enabled at (115997): [<ffff80000bf56d78>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline]
hardirqs last  enabled at (115997): [<ffff80000bf56d78>] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94
hardirqs last disabled at (115998): [<ffff80000bf6a910>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (115998): [<ffff80000bf6a910>] _raw_spin_lock_irqsave+0x2c/0x88 kernel/locking/spinlock.c:162
softirqs last  enabled at (115906): [<ffff80000bbed718>] spin_unlock_bh include/linux/spinlock.h:395 [inline]
softirqs last  enabled at (115906): [<ffff80000bbed718>] ieee80211_ibss_work+0x170/0x9d8 net/mac80211/ibss.c:1701
softirqs last disabled at (115904): [<ffff80000bbed610>] spin_lock_bh include/linux/spinlock.h:355 [inline]
softirqs last disabled at (115904): [<ffff80000bbed610>] ieee80211_ibss_work+0x68/0x9d8 net/mac80211/ibss.c:1690
---[ end trace 0000000000000000 ]---
Unable to handle kernel NULL pointer dereference at virtual address 00000000000000b8
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=00000001274f6000
[00000000000000b8] pgd=0800000127562003, p4d=0800000127562003, pud=0800000109882003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 5159 Comm: kworker/u4:11 Tainted: G        W          6.2.0-rc7-syzkaller-17907-g2d3827b3f393 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Workqueue: events_unbound call_usermodehelper_exec_work
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : check_wait_context kernel/locking/lockdep.c:4729 [inline]
pc : __lock_acquire+0x2e0/0x2f48 kernel/locking/lockdep.c:5005
lr : hlock_class kernel/locking/lockdep.c:231 [inline]
lr : check_wait_context kernel/locking/lockdep.c:4729 [inline]
lr : __lock_acquire+0x2a8/0x2f48 kernel/locking/lockdep.c:5005
sp : ffff80002054bb00
x29: ffff80002054bbe0 x28: ffff0000e74b2440 x27: ffff80000d2c49a4
x26: ffff0000e74b2420 x25: 0000000000000001 x24: 0000000000000000
x23: 0000000000000001 x22: 0000000000000000 x21: ffff0000e74b23d0
x20: 0000000000000002 x19: aaaaaaaaaaa31957 x18: 0000000000000000
x17: 000000000000ba7e x16: 0000000000000001 x15: ffff80000dbd2118
x14: ffff0000e74b1a00 x13: 0000000000000012 x12: ffff0000e74b1a00
x11: ffff80000dd94158 x10: 0000000000000000 x9 : 00000000000c1957
x8 : 0000000000000000 x7 : 4e5241575f534b43 x6 : ffff80000bf650d4
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000100000001 x0 : 0000000000000016
Call trace:
 hlock_class kernel/locking/lockdep.c:222 [inline]
 check_wait_context kernel/locking/lockdep.c:4730 [inline]
 __lock_acquire+0x2e0/0x2f48 kernel/locking/lockdep.c:5005
 lock_acquire+0x164/0x334 kernel/locking/lockdep.c:5668
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x68/0x88 kernel/locking/spinlock.c:162
 complete+0x24/0x90 kernel/sched/completion.c:32
 call_usermodehelper_exec_work+0x128/0x17c
 process_one_work+0x3ac/0x9d0 kernel/workqueue.c:2289
 worker_thread+0x340/0x608 kernel/workqueue.c:2436
 kthread+0x12c/0x158 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
Code: 910461ef 9002dfeb 9105616b b9400389 (3942e118) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	910461ef 	add	x15, x15, #0x118
   4:	9002dfeb 	adrp	x11, 0x5bfc000
   8:	9105616b 	add	x11, x11, #0x158
   c:	b9400389 	ldr	w9, [x28]
* 10:	3942e118 	ldrb	w24, [x8, #184] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/20 14:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 4f5f5209 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in call_usermodehelper_exec_work
* Struck through repros no longer work on HEAD.