Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 UID: 0 PID: 13831 Comm: syz.2.2301 Not tainted syzkaller #0 PREEMPT(lazy)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:gb_operation_message_init drivers/greybus/operation.c:340 [inline]
RIP: 0010:gb_operation_message_alloc+0x186/0x2c0 drivers/greybus/operation.c:385
Code: 00 e8 1e f1 85 fb 41 80 fd 7f 0f 84 b9 00 00 00 e8 ff f6 85 fb 48 89 ea 41 83 c4 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 01 0f 8e b8 00 00 00 48 8d 7d 02 66 44
RSP: 0018:ffffc900000079f8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff88811c440e80 RCX: ffffc90001041000
RDX: 0000000000000002 RSI: ffffffff86317dc1 RDI: 0000000000000001
RBP: 0000000000000010 R08: 000000000000007f R09: 0000000000000000
R10: ffff88811c440e80 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000800 R15: 0000000000000018
FS: 00007f9085ac76c0(0000) GS:ffff88826812a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555594544e8 CR3: 0000000118e66000 CR4: 00000000003506f0
Call Trace:
gb_operation_create_common+0x9f/0x710 drivers/greybus/operation.c:532
gb_operation_create_incoming drivers/greybus/operation.c:644 [inline]
gb_connection_recv_request drivers/greybus/operation.c:926 [inline]
gb_connection_recv+0x1dc/0x1050 drivers/greybus/operation.c:1063
greybus_data_rcvd+0x244/0x600 drivers/greybus/connection.c:89
cport_in_callback+0x1fb/0x280 drivers/greybus/es2.c:840
__usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1658
usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1742
dummy_timer+0xdb5/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:2051
__run_hrtimer kernel/time/hrtimer.c:2079 [inline]
__hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136
hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153
handle_softirqs+0x209/0xa00 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0x17a/0x220 kernel/softirq.c:786
irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:221
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 26 7d ee f9 48 89 df e8 ae d3 ee f9 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 55 01 e1 f9 65 48 83 3d a4 e4 aa 05 00 74 16 5b
RSP: 0018:ffffc900176ffc08 EFLAGS: 00000246
RAX: 0000000000000006 RBX: ffff88810a38c000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff8951bcf4 RDI: ffffffff87f36780
RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88810a38cc00
R13: ffff88810a38cbfc R14: 0000000000000027 R15: ffff88811af9a76c
spin_unlock_irqrestore include/linux/spinlock.h:425 [inline]
dummy_queue+0x3c5/0xb80 drivers/usb/gadget/udc/dummy_hcd.c:800
usb_ep_queue+0xfa/0x3c0 drivers/usb/gadget/udc/core.c:306
raw_process_ep_io+0x64d/0xc40 drivers/usb/gadget/legacy/raw_gadget.c:1114
raw_ioctl_ep_write drivers/usb/gadget/legacy/raw_gadget.c:1153 [inline]
raw_ioctl+0x25a/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1325
vfs_ioctl fs/ioctl.c:52 [inline]
__do_sys_ioctl fs/ioctl.c:598 [inline]
__se_sys_ioctl fs/ioctl.c:584 [inline]
__x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:584
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x119/0x730 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f90870797eb
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007f9085ac5f60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000027 RCX: 00007f90870797eb
RDX: 00007f9085ac5fe0 RSI: 0000000040085507 RDI: 0000000000000003
RBP: 0000000000000003 R08: 00007f9087430320 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000246 R12: 0000200000000040
R13: 0000000000000000 R14: 00007f9087305fa0 R15: 00007fff0a853d78
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:gb_operation_message_init drivers/greybus/operation.c:340 [inline]
RIP: 0010:gb_operation_message_alloc+0x186/0x2c0 drivers/greybus/operation.c:385
Code: 00 e8 1e f1 85 fb 41 80 fd 7f 0f 84 b9 00 00 00 e8 ff f6 85 fb 48 89 ea 41 83 c4 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 01 0f 8e b8 00 00 00 48 8d 7d 02 66 44
RSP: 0018:ffffc900000079f8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffff88811c440e80 RCX: ffffc90001041000
RDX: 0000000000000002 RSI: ffffffff86317dc1 RDI: 0000000000000001
RBP: 0000000000000010 R08: 000000000000007f R09: 0000000000000000
R10: ffff88811c440e80 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000800 R15: 0000000000000018
FS: 00007f9085ac76c0(0000) GS:ffff88826812a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555594544e8 CR3: 0000000118e66000 CR4: 00000000003506f0
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 1e f1 85 fb call 0xfb85f123
5: 41 80 fd 7f cmp $0x7f,%r13b
9: 0f 84 b9 00 00 00 je 0xc8
f: e8 ff f6 85 fb call 0xfb85f713
14: 48 89 ea mov %rbp,%rdx
17: 41 83 c4 08 add $0x8,%r12d
1b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
22: fc ff df
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction
2d: 84 c0 test %al,%al
2f: 74 08 je 0x39
31: 3c 01 cmp $0x1,%al
33: 0f 8e b8 00 00 00 jle 0xf1
39: 48 8d 7d 02 lea 0x2(%rbp),%rdi
3d: 66 data16
3e: 44 rex.R