syzbot


general protection fault in dummy_timer

Status: auto-obsoleted due to no activity on 2024/02/14 16:35
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+8e5997cc1e3b7a15034a@syzkaller.appspotmail.com
First crash: 236d, last: 186d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000040: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000200-0x0000000000000207]
CPU: 1 PID: 689 Comm: kworker/1:2 Not tainted 6.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: usb_hub_wq hub_event
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:282
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 50 0f b6 6b ff 4c 8d 66 01 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 24 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc900001986c8 EFLAGS: 00010046
RAX: 0000000000000040 RBX: ffffffff86a696c1 RCX: ffffffff8b769100
RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffffffff86a696c0
RBP: 0000000000000066 R08: ffffffff8b769110 R09: dffffc0000000000
R10: ffffffff8b769100 R11: 0000000000000100 R12: 0000000000000201
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000200
FS:  0000000000000000(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe201953070 CR3: 000000013b852000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 count_matching_names kernel/locking/lockdep.c:873 [inline]
 register_lock_class+0x6f1/0x1320 kernel/locking/lockdep.c:1332
 __lock_acquire+0x13c/0x5de0 kernel/locking/lockdep.c:5013
 lock_acquire kernel/locking/lockdep.c:5753 [inline]
 lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162
 complete_with_flags kernel/sched/completion.c:20 [inline]
 complete+0x1d/0x200 kernel/sched/completion.c:47
 transfer drivers/usb/gadget/udc/dummy_hcd.c:1515 [inline]
 dummy_timer+0x1271/0x35f0 drivers/usb/gadget/udc/dummy_hcd.c:1971
 call_timer_fn+0x193/0x580 kernel/time/timer.c:1700
 expire_timers kernel/time/timer.c:1751 [inline]
 __run_timers+0x764/0xb10 kernel/time/timer.c:2022
 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
 __do_softirq+0x20a/0x94b kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xa7/0x110 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x8e/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:console_flush_all+0xa0c/0xd50 kernel/printk/printk.c:2973
Code: e8 b9 5b 23 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 17 a1 1c 00 48 85 db 0f 85 74 01 00 00 e8 79 a5 1c 00 fb 48 8b 04 24 <4c> 89 fa 83 e2 07 0f b6 00 38 d0 7f 08 84 c0 0f 85 4b 02 00 00 41
RSP: 0018:ffffc90001baf298 EFLAGS: 00000283
RAX: fffff52000375e7a RBX: 0000000000000000 RCX: ffffc9000c14c000
RDX: 0000000000040000 RSI: ffffffff81315367 RDI: 0000000000000007
RBP: dffffc0000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 205d393836542020 R12: 0000000000000000
R13: ffffffff88356f98 R14: ffffffff88356f40 R15: ffffc90001baf3d0
 console_unlock+0x10c/0x260 kernel/printk/printk.c:3036
 vprintk_emit+0x17f/0x5f0 kernel/printk/printk.c:2303
 dev_vprintk_emit drivers/base/core.c:4850 [inline]
 dev_printk_emit+0xfb/0x140 drivers/base/core.c:4861
 __dev_printk+0xf5/0x270 drivers/base/core.c:4873
 _dev_notice+0xe5/0x120 drivers/base/core.c:4918
 usb_parse_interface drivers/usb/core/config.c:593 [inline]
 usb_parse_configuration drivers/usb/core/config.c:795 [inline]
 usb_get_configuration+0x2b49/0x5640 drivers/usb/core/config.c:944
 usb_enumerate_device drivers/usb/core/hub.c:2431 [inline]
 usb_new_device+0x1173/0x19f0 drivers/usb/core/hub.c:2569
 hub_port_connect drivers/usb/core/hub.c:5463 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5603 [inline]
 port_event drivers/usb/core/hub.c:5763 [inline]
 hub_event+0x2e62/0x4f40 drivers/usb/core/hub.c:5845
 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:282
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 50 0f b6 6b ff 4c 8d 66 01 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 24 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc900001986c8 EFLAGS: 00010046
RAX: 0000000000000040 RBX: ffffffff86a696c1 RCX: ffffffff8b769100
RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffffffff86a696c0
RBP: 0000000000000066 R08: ffffffff8b769110 R09: dffffc0000000000
R10: ffffffff8b769100 R11: 0000000000000100 R12: 0000000000000201
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000200
FS:  0000000000000000(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe201953070 CR3: 000000013b852000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	fa                   	cli
   1:	48 c1 e8 03          	shr    $0x3,%rax
   5:	83 e2 07             	and    $0x7,%edx
   8:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
   d:	38 d0                	cmp    %dl,%al
   f:	7f 04                	jg     0x15
  11:	84 c0                	test   %al,%al
  13:	75 50                	jne    0x65
  15:	0f b6 6b ff          	movzbl -0x1(%rbx),%ebp
  19:	4c 8d 66 01          	lea    0x1(%rsi),%r12
  1d:	48 89 f0             	mov    %rsi,%rax
  20:	48 89 f2             	mov    %rsi,%rdx
  23:	48 c1 e8 03          	shr    $0x3,%rax
  27:	83 e2 07             	and    $0x7,%edx
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	38 d0                	cmp    %dl,%al
  31:	7f 04                	jg     0x37
  33:	84 c0                	test   %al,%al
  35:	75 24                	jne    0x5b
  37:	41 3a 6c 24 ff       	cmp    -0x1(%r12),%bpl
  3c:	74 ae                	je     0xffffffec
  3e:	19 c0                	sbb    %eax,%eax

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/16 16:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b85ea95d0864 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2023/09/27 16:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 6465e260f487 2895a507 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
* Struck through repros no longer work on HEAD.