syzbot


general protection fault in dummy_timer (2)

Status: upstream: reported syz repro on 2024/11/24 05:03
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+faf3a6cf579fc65591ca@syzkaller.appspotmail.com
First crash: 249d, last: 19d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [usb?] general protection fault in dummy_timer (2) 0 (2) 2025/03/04 01:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dummy_timer usb 2 547d 593d 0/28 auto-obsoleted due to no activity on 2024/02/14 16:35
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/04/18 02:59 18m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2025/03/25 01:07 21m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000060: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000300-0x0000000000000307]
CPU: 0 UID: 0 PID: 5822 Comm: udevd Not tainted 6.14.0-rc6-syzkaller-ged492c95f13a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:277
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 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 2c 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc90000007848 EFLAGS: 00010046
RAX: 0000000000000060 RBX: ffffffff8747dfe1 RCX: ffffffff8fb4ee80
RDX: 0000000000000000 RSI: 0000000000000300 RDI: ffffffff8747dfe0
RBP: 0000000000000026 R08: 0000000000000001 R09: dffffc0000000000
R10: ffffffff8fb4ee90 R11: ffffffff8fb4ee80 R12: 0000000000000301
R13: dffffc0000000000 R14: 000000000000029c R15: ffffffff935059e0
FS:  00007f9753f9ac80(0000) GS:ffff8881f5800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 0000000110302000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 count_matching_names kernel/locking/lockdep.c:877 [inline]
 register_lock_class+0x63b/0x1240 kernel/locking/lockdep.c:1342
 __lock_acquire+0x135/0x3c40 kernel/locking/lockdep.c:5103
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3a/0x60 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:1523 [inline]
 dummy_timer+0x1c37/0x3960 drivers/usb/gadget/udc/dummy_hcd.c:1978
 __run_hrtimer kernel/time/hrtimer.c:1801 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1865
 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1882
 handle_softirqs+0x206/0x8d0 kernel/softirq.c:561
 __do_softirq kernel/softirq.c:595 [inline]
 invoke_softirq kernel/softirq.c:435 [inline]
 __irq_exit_rcu+0xfa/0x160 kernel/softirq.c:662
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_release+0x3e5/0x6f0 kernel/locking/lockdep.c:5859
Code: 7e 83 f8 01 0f 85 fe 01 00 00 9c 58 f6 c4 02 0f 85 e9 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 c7 43 08 00 00 00 00 48 8b 84 24 88
RSP: 0018:ffffc9000178fb98 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff920002f1f75 RCX: ffffc9000178fbe8
RDX: 1ffff11021d6f153 RSI: ffffffff87282920 RDI: ffffffff8747d360
RBP: 6c94374045a89b09 R08: 0000000000000000 R09: fffffbfff14afc72
R10: ffffffff8a57e397 R11: 0000000000000002 R12: 0000000000000001
R13: 0000000000000002 R14: ffff88810eb78aa0 R15: ffff88810eb78000
 might_alloc include/linux/sched/mm.h:319 [inline]
 slab_pre_alloc_hook mm/slub.c:4066 [inline]
 slab_alloc_node mm/slub.c:4144 [inline]
 __do_kmalloc_node mm/slub.c:4293 [inline]
 __kmalloc_node_track_caller_noprof+0xbc/0x4c0 mm/slub.c:4313
 memdup_user+0x2a/0xd0 mm/util.c:218
 proc_pid_attr_write+0x22e/0x790 fs/proc/base.c:2836
 vfs_write+0x24c/0x1150 fs/read_write.c:677
 ksys_write+0x12b/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f97540c5bf2
Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe758e4f58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9753f9ab70 RCX: 00007f97540c5bf2
RDX: 000000000000001b RSI: 00005602208cfc30 RDI: 0000000000000008
RBP: 00005602208cfc30 R08: 0000000000000000 R09: 831e2a83abc728f6
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
R13: ffffffffffffffff R14: 00007ffe758e4f60 R15: 00007ffe758e59e9
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:strcmp+0x5b/0xb0 lib/string.c:277
Code: fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 04 84 c0 75 58 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 2c 41 3a 6c 24 ff 74 ae 19 c0
RSP: 0018:ffffc90000007848 EFLAGS: 00010046
RAX: 0000000000000060 RBX: ffffffff8747dfe1 RCX: ffffffff8fb4ee80
RDX: 0000000000000000 RSI: 0000000000000300 RDI: ffffffff8747dfe0
RBP: 0000000000000026 R08: 0000000000000001 R09: dffffc0000000000
R10: ffffffff8fb4ee90 R11: ffffffff8fb4ee80 R12: 0000000000000301
R13: dffffc0000000000 R14: 000000000000029c R15: ffffffff935059e0
FS:  00007f9753f9ac80(0000) GS:ffff8881f5800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 0000000110302000 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 58                	jne    0x6d
  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 2c                	jne    0x63
  37:	41 3a 6c 24 ff       	cmp    -0x1(%r12),%bpl
  3c:	74 ae                	je     0xffffffec
  3e:	19 c0                	sbb    %eax,%eax

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/02 01:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ed492c95f13a b8645499 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/01/18 08:09 upstream ad26fc09dabf f2cb035c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in dummy_timer
2025/04/27 13:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3baea29dc0a7 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/04/03 13:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a2cc6ff5ec8f 996a9618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/04/01 21:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ed492c95f13a b8645499 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/03/10 22:39 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 525b139fb403 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/03/05 02:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 811d22141369 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/03/04 13:14 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 811d22141369 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/03/04 01:00 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 811d22141369 c3901742 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/02/23 11:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c749f058b437 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/02/09 10:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 9682c35ff6ec ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/01/31 13:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 72deda0abee6 4c6ac32f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2025/01/25 06:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 70cd0576aa39 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/12/29 22:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing f097a36ef88d d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/11/24 05:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 237d4e0f4113 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/10/14 18:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64f3b5a6bc49 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/10/13 19:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d73dc7b182be 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/09/21 14:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 68d4209158f4 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb general protection fault in dummy_timer
2024/09/09 10:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing f299cd11f753 9750182a .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.