syzbot


WARNING in match_held_lock

Status: upstream: reported on 2022/07/03 19:59
Reported-by: syzbot+6c67d4224af196c99976@syzkaller.appspotmail.com
First crash: 48d, last: 14d

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!hlock->nest_lock)
WARNING: CPU: 1 PID: 7875 at kernel/locking/lockdep.c:5135 match_held_lock+0xad/0xc0 kernel/locking/lockdep.c:5135
Modules linked in:
CPU: 1 PID: 7875 Comm: dhcpcd-run-hook Not tainted 5.19.0-rc7-syzkaller-00199-g8288c99fc263 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:match_held_lock+0xad/0xc0 kernel/locking/lockdep.c:5135
Code: e8 b8 0a 24 fc 85 c0 74 e4 8b 05 a6 f7 ee 02 85 c0 75 da 48 c7 c6 60 9f 47 86 48 c7 c7 e0 9b 47 86 89 44 24 04 e8 fe 99 d1 ff <0f> 0b 8b 44 24 04 eb bd 66 66 2e 0f 1f 84 00 00 00 00 00 41 57 41
RSP: 0018:ffffc90000178800 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffff8881183ccb68 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff812c21e8 RDI: fffff5200002f0f2
RBP: ffffffff87a95080 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000102 R11: 0000000000000001 R12: ffff8881183cb900
R13: ffff8881183cc2f8 R14: 00000000ffffffff R15: ffff8881183ccb68
FS:  0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bf98d82000 CR3: 00000001234b6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __lock_is_held kernel/locking/lockdep.c:5406 [inline]
 lock_is_held_type+0xa7/0x140 kernel/locking/lockdep.c:5708
 lock_is_held include/linux/lockdep.h:279 [inline]
 rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125
 trace_softirq_raise include/trace/events/irq.h:156 [inline]
 __raise_softirq_irqoff+0x15d/0x1e0 kernel/softirq.c:712
 raise_softirq_irqoff+0x5/0x40 kernel/softirq.c:685
 __dev_kfree_skb_irq+0x169/0x2e0 net/core/dev.c:3140
 __dev_kfree_skb_any+0x55/0x80 net/core/dev.c:3148
 dev_kfree_skb_any include/linux/netdevice.h:3769 [inline]
 ath9k_htc_rx_msg+0x22d/0xb70 drivers/net/wireless/ath/ath9k/htc_hst.c:425
 ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:653 [inline]
 ath9k_hif_usb_rx_cb+0x546/0x10d0 drivers/net/wireless/ath/ath9k/hif_usb.c:686
 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670
 usb_hcd_giveback_urb+0x380/0x430 drivers/usb/core/hcd.c:1753
 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1988
 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790
 __run_timers kernel/time/timer.c:1768 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
 __do_softirq+0x288/0x9a5 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x113/0x170 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:207 [inline]
RIP: 0010:test_bit include/asm-generic/bitops/instrumented-non-atomic.h:135 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:118 [inline]
RIP: 0010:need_resched include/linux/sched.h:2196 [inline]
RIP: 0010:zap_pte_range mm/memory.c:1421 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1567 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1596 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1617 [inline]
RIP: 0010:unmap_page_range+0x6d5/0x2ca0 mm/memory.c:1638
Code: 10 00 00 e9 85 01 00 00 e8 78 00 dc ff 48 8b 7c 24 18 be 08 00 00 00 e8 79 f8 10 00 48 8b 44 24 28 80 38 00 0f 85 9c 1f 00 00 <48> 8b 44 24 18 31 ff 48 8b 28 83 e5 08 48 89 ee e8 a6 fc db ff 48
RSP: 0018:ffffc9000e637720 EFLAGS: 00000246
RAX: ffffed1023079720 RBX: 00007fdcef6dd000 RCX: ffffffff81692887
RDX: ffffed1023079721 RSI: 0000000000000008 RDI: ffff8881183cb900
RBP: 00000001f689d005 R08: 0000000000000000 R09: ffff8881183cb907
R10: ffffed1023079720 R11: 0000000000000001 R12: 00000001f689d025
R13: ffff88813ad036e0 R14: dffffc0000000000 R15: 00007fdcef71b000
 unmap_single_vma+0x196/0x360 mm/memory.c:1686
 unmap_vmas+0x18c/0x310 mm/memory.c:1723
 exit_mmap+0x1c4/0x4a0 mm/mmap.c:3162
 __mmput kernel/fork.c:1187 [inline]
 mmput+0xcc/0x410 kernel/fork.c:1208
 exec_mmap fs/exec.c:1038 [inline]
 begin_new_exec+0x101b/0x2e90 fs/exec.c:1297
 load_elf_binary+0x15a3/0x4ec0 fs/binfmt_elf.c:1002
 search_binary_handler fs/exec.c:1728 [inline]
 exec_binprm fs/exec.c:1769 [inline]
 bprm_execve fs/exec.c:1838 [inline]
 bprm_execve+0x7ef/0x1960 fs/exec.c:1800
 do_execveat_common+0x727/0x890 fs/exec.c:1943
 do_execve fs/exec.c:2017 [inline]
 __do_sys_execve fs/exec.c:2093 [inline]
 __se_sys_execve fs/exec.c:2088 [inline]
 __x64_sys_execve+0x8f/0xc0 fs/exec.c:2088
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fdcef588337
Code: Unable to access opcode bytes at RIP 0x7fdcef58830d.
RSP: 002b:00007fff2b105608 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 000055bf98d81f28 RCX: 00007fdcef588337
RDX: 000055bf98d81f78 RSI: 000055bf98d81f28 RDI: 000055bf98d82000
RBP: 000055bf98d82000 R08: 000055bf98d82009 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 000055bf98d81f78
R13: 00007fdcef72dff4 R14: 000055bf98d81f78 R15: 0000000000000000
 </TASK>
----------------
Code disassembly (best guess):
   0:	10 00                	adc    %al,(%rax)
   2:	00 e9                	add    %ch,%cl
   4:	85 01                	test   %eax,(%rcx)
   6:	00 00                	add    %al,(%rax)
   8:	e8 78 00 dc ff       	callq  0xffdc0085
   d:	48 8b 7c 24 18       	mov    0x18(%rsp),%rdi
  12:	be 08 00 00 00       	mov    $0x8,%esi
  17:	e8 79 f8 10 00       	callq  0x10f895
  1c:	48 8b 44 24 28       	mov    0x28(%rsp),%rax
  21:	80 38 00             	cmpb   $0x0,(%rax)
  24:	0f 85 9c 1f 00 00    	jne    0x1fc6
* 2a:	48 8b 44 24 18       	mov    0x18(%rsp),%rax <-- trapping instruction
  2f:	31 ff                	xor    %edi,%edi
  31:	48 8b 28             	mov    (%rax),%rbp
  34:	83 e5 08             	and    $0x8,%ebp
  37:	48 89 ee             	mov    %rbp,%rsi
  3a:	e8 a6 fc db ff       	callq  0xffdbfce5
  3f:	48                   	rex.W

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-usb 2022/08/02 18:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 8288c99fc263 fef302b1 .config log report info WARNING in match_held_lock
ci2-upstream-usb 2022/07/24 06:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b7423bb23cdd 22343af4 .config log report info WARNING in match_held_lock
ci2-upstream-usb 2022/07/18 02:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c76d09da77d6 95cb00d1 .config log report info WARNING in match_held_lock
ci2-upstream-usb 2022/07/17 00:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c76d09da77d6 95cb00d1 .config log report info WARNING in match_held_lock
ci2-upstream-usb 2022/06/29 19:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 849f35422319 1434eec0 .config log report info WARNING in match_held_lock