ID Workflow Result Correct Bug Created Started Finished Revision
75fec6f2 patching βœ… WARNING in cxacru_cm/usb_submit_urb (3) 2026/07/31 06:48 2026/07/31 06:48 2026/07/31 07:54 aaffb173
Agent: prod-syz-agent-0
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle WARNING in cxacru_cm/usb_submit_urb
CrashLogID 4628715956338688
CrashReportID 5118878142693376
KernelCommit 5d5fd841c34649f1b09220fe58e59dffd61c447d
KernelConfig
Show (250182 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 syzkaller Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 14.2.0-19) 14.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=24400
CONFIG_LLD_VERSION=0
CONFIG_RUSTC_VERSION=109600
CONFIG_RUST_IS_AVAILABLE=y
CONFIG_RUSTC_LLVM_VERSION=220102
CONFIG_RUSTC_LLVM_MAJOR_VERSION=22
CONFIG_CC_CAN_LINK=y
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
CONFIG_TOOLS_SUPPORT_RELR=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_ASSUME=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_LD_CAN_USE_KEEP_IN_OVERLAY=y
CONFIG_RUSTC_HAS_SPAN_FILE=y
CONFIG_RUSTC_HAS_UNNECESSARY_TRANSMUTES=y
CONFIG_RUSTC_HAS_FILE_WITH_NUL=y
CONFIG_RUSTC_HAS_FILE_AS_C_STR=y
CONFIG_PAHOLE_VERSION=130
CONFIG_CONSTRUCTORS=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_HAVE_KERNEL_ZSTD=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not set
CONFIG_DEFAULT_INIT=""
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not set
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y
CONFIG_GENERIC_IRQ_RESERVATION_MODE=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem

CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_INIT=y
CONFIG_ARCH_WANTS_CLOCKSOURCE_READ_INLINE=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED_INLINE=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_HRTIMER_REARM_DEFERRED=y
CONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_CONTEXT_TRACKING_IDLE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_CONTEXT_TRACKING_USER=y
# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# CONFIG_POSIX_AUX_CLOCKS is not set
# end of Timers subsystem

CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y

#
# BPF subsystem
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
# CONFIG_BPF_PRELOAD is not set
# CONFIG_BPF_LSM is not set
# end of BPF subsystem

CONFIG_PREEMPT_BUILD=y
CONFIG_ARCH_HAS_PREEMPT_LAZY=y
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_RT is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
# CONFIG_SCHED_CORE is not set

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
# CONFIG_TICK_CPU_ACCOUNTING is not set
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting

CONFIG_CPU_ISOLATION=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_TREE_SRCU=y
CONFIG_TASKS_RCU_GENERIC=y
CONFIG_NEED_TASKS_RCU=y
CONFIG_TASKS_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem

# CONFIG_IKCONFIG is not set
# CONFIG_IKHEADERS is not set
CONFIG_LOG_BUF_SHIFT=18
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
# CONFIG_PRINTK_INDEX is not set
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y

#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# CONFIG_SCHED_PROXY_EXEC is not set
# end of Scheduler features

CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_CC_HAS_INT128=y
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
CONFIG_CC_MS_EXTENSIONS="-fms-extensions"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_CC_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_CC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
# CONFIG_NUMA_BALANCING is not set
CONFIG_SCHED_CACHE=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
CONFIG_MEMCG=y
CONFIG_MEMCG_V1=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_CFS_BANDWIDTH is not set
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_SCHED_MM_CID=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
# CONFIG_CGROUP_DMEM is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
# CONFIG_CPUSETS_V1 is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_BPF is not set
CONFIG_CGROUP_MISC=y
CONFIG_CGROUP_DEBUG=y
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_TIME_NS=y
CONFIG_TIME_NS_VDSO=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not set
CONFIG_CMDLINE_LOG_WRAP_IDEAL_LEN=1021
CONFIG_INITRAMFS_PRESERVE_MTIME=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_LD_ORPHAN_WARN=y
CONFIG_LD_ORPHAN_WARN_LEVEL="warn"
CONFIG_SYSCTL=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
# CONFIG_SYSFS_SYSCALL is not set
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_FHANDLE=y
CONFIG_POSIX_TIMERS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_PCSPKR_PLATFORM=y
# CONFIG_BASE_SMALL is not set
CONFIG_FUTEX=y
CONFIG_FUTEX_PI=y
CONFIG_FUTEX_PRIVATE_HASH=y
CONFIG_FUTEX_MPOL=y
CONFIG_HAVE_FUTEX_ROBUST_UNLOCK=y
CONFIG_FUTEX_ROBUST_UNLOCK=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
# CONFIG_IO_URING_MOCK_FILE is not set
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
# CONFIG_RSEQ_SLICE_EXTENSION is not set
# CONFIG_RSEQ_STATS is not set
# CONFIG_RSEQ_DEBUG_DEFAULT_ENABLE is not set
CONFIG_CACHESTAT_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS=y
CONFIG_HAVE_PERF_EVENTS=y

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters

CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y

#
# Kexec and crash features
#
CONFIG_CRASH_RESERVE=y
CONFIG_VMCORE_INFO=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set
# CONFIG_KEXEC_JUMP is not set
CONFIG_CRASH_DUMP=y
CONFIG_CRASH_HOTPLUG=y
CONFIG_CRASH_MAX_MEMORY_RANGES=8192
# end of Kexec and crash features

#
# Live Update and Kexec HandOver
#
# CONFIG_KEXEC_HANDOVER is not set
# end of Live Update and Kexec HandOver
# end of General setup

CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=28
CONFIG_ARCH_MMAP_RND_BITS_MAX=32
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_AUDIT_ARCH=y
CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000
CONFIG_HAVE_INTEL_TXT=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=5

#
# Processor type and features
#
CONFIG_SMP=y
CONFIG_X86_X2APIC=y
# CONFIG_X86_POSTED_MSI is not set
CONFIG_X86_MPPARSE=y
# CONFIG_X86_CPU_RESCTRL is not set
# CONFIG_X86_FRED is not set
CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not set
# CONFIG_X86_INTEL_MID is not set
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
CONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not set
CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_PARAVIRT_SPINLOCKS=y
CONFIG_X86_HV_CALLBACK_VECTOR=y
# CONFIG_XEN is not set
CONFIG_KVM_GUEST=y
CONFIG_ARCH_CPUIDLE_HALTPOLL=y
CONFIG_PVH=y
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
CONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_BHYVE_GUEST is not set
CONFIG_CC_HAS_MARCH_NATIVE=y
# CONFIG_X86_NATIVE_CPU is not set
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_HAVE_PAE=y
CONFIG_X86_CX8=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=64
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_IA32_FEAT_CTL=y
CONFIG_X86_VMX_FEATURE_NAMES=y
CONFIG_PROCESSOR_SELECT=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_AMD=y
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not set
# CONFIG_CPU_SUP_ZHAOXIN is not set
CONFIG_BROADCAST_TLB_FLUSH=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_DMI=y
# CONFIG_GART_IOMMU is not set
# CONFIG_MAXSMP is not set
CONFIG_NR_CPUS_RANGE_BEGIN=2
CONFIG_NR_CPUS_RANGE_END=512
CONFIG_NR_CPUS_DEFAULT=64
CONFIG_NR_CPUS=8
CONFIG_SCHED_MC_PRIO=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_ACPI_MADT_WAKEUP=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCELOG_LEGACY is not set
CONFIG_X86_MCE_INTEL=y
CONFIG_X86_MCE_AMD=y
CONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not set

#
# Performance monitoring
#
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=y
CONFIG_PERF_EVENTS_INTEL_CSTATE=y
# CONFIG_PERF_EVENTS_AMD_POWER is not set
CONFIG_PERF_EVENTS_AMD_UNCORE=y
# CONFIG_PERF_EVENTS_AMD_BRS is not set
# end of Performance monitoring

CONFIG_X86_16BIT=y
CONFIG_X86_ESPFIX64=y
CONFIG_X86_VSYSCALL_EMULATION=y
CONFIG_X86_IOPL_IOPERM=y
CONFIG_MICROCODE=y
# CONFIG_MICROCODE_LATE_LOADING is not set
# CONFIG_MICROCODE_DBG is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_NODES_SHIFT=6
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_PMEM_LEGACY is not set
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set
CONFIG_X86_PAT=y
CONFIG_X86_UMIP=y
CONFIG_CC_HAS_IBT=y
CONFIG_X86_CET=y
CONFIG_X86_KERNEL_IBT=y
CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
CONFIG_ARCH_PKEY_BITS=4
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
CONFIG_X86_INTEL_TSX_MODE_ON=y
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
# CONFIG_X86_SGX is not set
# CONFIG_X86_USER_SHADOW_STACK is not set
# CONFIG_EFI is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_ARCH_SUPPORTS_KEXEC=y
CONFIG_ARCH_SUPPORTS_KEXEC_FILE=y
CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG_FORCE=y
CONFIG_ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_JUMP=y
CONFIG_ARCH_SUPPORTS_KEXEC_HANDOVER=y
CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y
CONFIG_ARCH_DEFAULT_CRASH_DUMP=y
CONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG=y
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION=y
CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set
CONFIG_PHYSICAL_ALIGN=0x200000
CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not set
CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="earlyprintk=serial net.ifnames=0 sysctl.kernel.hung_task_all_cpu_backtrace=1 ima_policy=tcb nf-conntrack-ftp.ports=20000 nf-conntrack-tftp.ports=20000 nf-conntrack-sip.ports=20000 nf-conntrack-irc.ports=20000 nf-conntrack-sane.ports=20000 binder.debug_mask=0 rcupdate.rcu_expedited=1 rcupdate.rcu_cpu_stall_cputime=1 no_hash_pointers page_owner=on sysctl.vm.nr_hugepages=4 sysctl.vm.nr_overcommit_hugepages=4 secretmem.enable=1 sysctl.max_rcu_stall_to_panic=1 msr.allow_writes=off coredump_filter=0xffff root=/dev/sda console=ttyS0 vsyscall=native numa=fake=2 kvm-intel.nested=1 spec_store_bypass_disable=prctl nopcid vivid.n_devs=64 vivid.multiplanar=1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 netrom.nr_ndevs=32 rose.rose_ndevs=32 smp.csd_lock_timeout=100000 watchdog_thresh=55 workqueue.watchdog_thresh=140 sysctl.net.core.netdev_unregister_timeout_secs=140 dummy_hcd.num=32 max_loop=32 nbds_max=32 panic_on_warn=1"
# CONFIG_CMDLINE_OVERRIDE is not set
CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
CONFIG_HAVE_LIVEPATCH=y
CONFIG_HAVE_KLP_BUILD=y
CONFIG_X86_BUS_LOCK_DETECT=y
# end of Processor type and features

CONFIG_CC_HAS_NAMED_AS=y
CONFIG_CC_HAS_NAMED_AS_FIXED_SANITIZERS=y
CONFIG_USE_X86_SEG_SUPPORT=y
CONFIG_CC_HAS_SLS=y
CONFIG_CC_HAS_RETURN_THUNK=y
CONFIG_CC_HAS_ENTRY_PADDING=y
CONFIG_FUNCTION_PADDING_CFI=11
CONFIG_FUNCTION_PADDING_BYTES=16
CONFIG_CALL_PADDING=y
CONFIG_HAVE_CALL_THUNKS=y
CONFIG_CALL_THUNKS=y
CONFIG_CPU_MITIGATIONS=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_MITIGATION_RETPOLINE=y
CONFIG_MITIGATION_RETHUNK=y
CONFIG_MITIGATION_UNRET_ENTRY=y
CONFIG_MITIGATION_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not set
CONFIG_MITIGATION_IBPB_ENTRY=y
CONFIG_MITIGATION_IBRS_ENTRY=y
CONFIG_MITIGATION_SRSO=y
# CONFIG_MITIGATION_SLS is not set
CONFIG_MITIGATION_GDS=y
CONFIG_MITIGATION_RFDS=y
CONFIG_MITIGATION_SPECTRE_BHI=y
CONFIG_MITIGATION_MDS=y
CONFIG_MITIGATION_TAA=y
CONFIG_MITIGATION_MMIO_STALE_DATA=y
CONFIG_MITIGATION_L1TF=y
CONFIG_MITIGATION_RETBLEED=y
CONFIG_MITIGATION_SPECTRE_V1=y
CONFIG_MITIGATION_SPECTRE_V2=y
CONFIG_MITIGATION_SRBDS=y
CONFIG_MITIGATION_SSB=y
CONFIG_MITIGATION_ITS=y
CONFIG_MITIGATION_TSA=y
CONFIG_ARCH_HAS_ADD_PAGES=y

#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_HIBERNATION_SNAPSHOT_DEV=y
CONFIG_HIBERNATION_COMP_LZO=y
# CONFIG_HIBERNATION_COMP_LZ4 is not set
CONFIG_HIBERNATION_DEF_COMP="lzo"
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
# CONFIG_PM_QOS_CPU_SYSTEM_WAKEUP is not set
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not set
CONFIG_ARCH_SUPPORTS_ACPI=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
CONFIG_ACPI_THERMAL_LIB=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not set
CONFIG_ACPI_LPIT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
CONFIG_ACPI_EC=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_TAD is not set
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_PLATFORM_PROFILE=y
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_DEBUG=y
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
CONFIG_ACPI_NHLT=y
# CONFIG_ACPI_NFIT is not set
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not set
# CONFIG_ACPI_DPTF is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_PFRUT is not set
CONFIG_ACPI_PCC=y
# CONFIG_ACPI_FFH is not set
CONFIG_ACPI_MRRM=y
CONFIG_PMIC_OPREGION=y
CONFIG_BXT_WC_PMIC_OPREGION=y
# CONFIG_CHT_WC_PMIC_OPREGION is not set
CONFIG_X86_PM_TIMER=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
# CONFIG_CPU_FREQ_STAT is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

#
# CPU frequency scaling drivers
#
# CONFIG_CPUFREQ_DT is not set
# CONFIG_CPUFREQ_DT_PLATDEV is not set
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
# CONFIG_X86_AMD_PSTATE_UT is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_CPB=y
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set

#
# shared options
#
CONFIG_CPUFREQ_ARCH_CUR_FREQ=y
# end of CPU Frequency scaling

#
# CPU Idle
#
CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
CONFIG_CPU_IDLE_GOV_HALTPOLL=y
CONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle

CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options

#
# Bus options (PCI etc.)
#
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_MMCONF_FAM10H=y
# CONFIG_ISA_BUS is not set
CONFIG_ISA_DMA_API=y
CONFIG_AMD_NB=y
CONFIG_AMD_NODE=y
# end of Bus options (PCI etc.)

#
# Binary Emulations
#
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_EMULATION_DEFAULT_DISABLED is not set
CONFIG_X86_X32_ABI=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations

CONFIG_VIRTUALIZATION=y
# CONFIG_KVM is not set
CONFIG_X86_REQUIRED_FEATURE_ALWAYS=y
CONFIG_X86_REQUIRED_FEATURE_NOPL=y
CONFIG_X86_REQUIRED_FEATURE_CX8=y
CONFIG_X86_REQUIRED_FEATURE_CMOV=y
CONFIG_X86_REQUIRED_FEATURE_SYSFAST32=y
CONFIG_X86_REQUIRED_FEATURE_CPUID=y
CONFIG_X86_REQUIRED_FEATURE_FPU=y
CONFIG_X86_REQUIRED_FEATURE_PAE=y
CONFIG_X86_REQUIRED_FEATURE_PSE=y
CONFIG_X86_REQUIRED_FEATURE_PGE=y
CONFIG_X86_REQUIRED_FEATURE_MSR=y
CONFIG_X86_REQUIRED_FEATURE_FXSR=y
CONFIG_X86_REQUIRED_FEATURE_XMM=y
CONFIG_X86_REQUIRED_FEATURE_XMM2=y
CONFIG_X86_REQUIRED_FEATURE_LM=y
CONFIG_X86_DISABLED_FEATURE_VME=y
CONFIG_X86_DISABLED_FEATURE_K6_MTRR=y
CONFIG_X86_DISABLED_FEATURE_CYRIX_ARR=y
CONFIG_X86_DISABLED_FEATURE_CENTAUR_MCR=y
CONFIG_X86_DISABLED_FEATURE_LAM=y
CONFIG_X86_DISABLED_FEATURE_ENQCMD=y
CONFIG_X86_DISABLED_FEATURE_SGX=y
CONFIG_X86_DISABLED_FEATURE_XENPV=y
CONFIG_X86_DISABLED_FEATURE_TDX_GUEST=y
CONFIG_X86_DISABLED_FEATURE_USER_SHSTK=y
CONFIG_X86_DISABLED_FEATURE_FRED=y
CONFIG_X86_DISABLED_FEATURE_SEV_SNP=y
CONFIG_AS_WRUSS=y
CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y

#
# General architecture-dependent options
#
CONFIG_HOTPLUG_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_CLUSTER=y
CONFIG_ARCH_SUPPORTS_SCHED_MC=y
CONFIG_SCHED_SMT=y
CONFIG_SCHED_CLUSTER=y
CONFIG_SCHED_MC=y
CONFIG_HOTPLUG_CORE_SYNC=y
CONFIG_HOTPLUG_CORE_SYNC_DEAD=y
CONFIG_HOTPLUG_CORE_SYNC_FULL=y
CONFIG_HOTPLUG_SPLIT_STARTUP=y
CONFIG_HOTPLUG_PARALLEL=y
CONFIG_GENERIC_IRQ_ENTRY=y
CONFIG_GENERIC_SYSCALL=y
CONFIG_GENERIC_ENTRY=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y
CONFIG_HAVE_NMI=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
CONFIG_ARCH_HAS_CPU_PASID=y
CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_ARCH_WANTS_NO_INSTR=y
CONFIG_ARCH_MEMORY_ORDER_TSO=y
CONFIG_HAVE_ASM_MODVERSIONS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_RUST=y
CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y
CONFIG_UNWIND_USER=y
CONFIG_HAVE_UNWIND_USER_FP=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
CONFIG_MMU_GATHER_TABLE_FREE=y
CONFIG_MMU_GATHER_RCU_TABLE_FREE=y
CONFIG_MMU_GATHER_MERGE_VMAS=y
CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM=y
CONFIG_MMU_LAZY_TLB_REFCOUNT=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_HAVE_EXTRA_ELF_NOTES=y
CONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_SECCOMP=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP=y
CONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set
CONFIG_HAVE_ARCH_KSTACK_ERASE=y
CONFIG_HAVE_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR_STRONG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y
CONFIG_LTO_NONE=y
CONFIG_ARCH_SUPPORTS_CFI=y
CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y
CONFIG_HAVE_CONTEXT_TRACKING_USER=y
CONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_PV_STEAL_CLOCK_GEN=y
CONFIG_HAVE_MOVE_PUD=y
CONFIG_HAVE_MOVE_PMD=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_HUGE_VMALLOC=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ARCH_HAS_EXECMEM_ROX=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y
CONFIG_SOFTIRQ_ON_OWN_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
CONFIG_HAVE_EXIT_THREAD=y
CONFIG_ARCH_MMAP_RND_BITS=28
CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y
CONFIG_HAVE_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
CONFIG_PAGE_SHIFT=12
CONFIG_HAVE_OBJTOOL=y
CONFIG_HAVE_JUMP_LABEL_HACK=y
CONFIG_HAVE_NOINSTR_HACK=y
CONFIG_HAVE_NOINSTR_VALIDATION=y
CONFIG_HAVE_UACCESS_VALIDATION=y
CONFIG_HAVE_STACK_VALIDATION=y
CONFIG_HAVE_RELIABLE_STACKTRACE=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_COMPAT_OLD_SIGACTION=y
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_ARCH_SUPPORTS_RT=y
CONFIG_HAVE_ARCH_VMAP_STACK=y
CONFIG_VMAP_STACK=y
CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y
CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y
# CONFIG_LOCK_EVENT_COUNTS is not set
CONFIG_ARCH_HAS_MEM_ENCRYPT=y
CONFIG_HAVE_STATIC_CALL=y
CONFIG_HAVE_STATIC_CALL_INLINE=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y
CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y
CONFIG_DYNAMIC_SIGFRAME=y
CONFIG_ARCH_HAS_HW_PTE_YOUNG=y
CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
CONFIG_ARCH_HAS_KERNEL_FPU_SUPPORT=y
CONFIG_HAVE_GENERIC_TIF_BITS=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling

CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_FUNCTION_ALIGNMENT_4B=y
CONFIG_FUNCTION_ALIGNMENT_16B=y
CONFIG_FUNCTION_ALIGNMENT=16
CONFIG_CC_HAS_MIN_FUNCTION_ALIGNMENT=y
CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT=y
CONFIG_ARCH_HAS_CPU_ATTACK_VECTORS=y
# end of General architecture-dependent options

CONFIG_RT_MUTEXES=y
CONFIG_MODULES=y
# CONFIG_MODULE_DEBUG is not set
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_UNLOAD_TAINT_TRACKING is not set
CONFIG_MODVERSIONS=y
# CONFIG_GENKSYMS is not set
CONFIG_GENDWARFKSYMS=y
CONFIG_ASM_MODVERSIONS=y
# CONFIG_EXTENDED_MODVERSIONS is not set
# CONFIG_BASIC_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLOCK_LEGACY_AUTOLOAD=y
CONFIG_BLK_RQ_ALLOC_TIME=y
CONFIG_BLK_DEV_BSG_COMMON=y
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_DEV_WRITE_MOUNTED is not set
# CONFIG_BLK_DEV_ZONED is not set
# CONFIG_BLK_DEV_THROTTLING is not set
# CONFIG_BLK_WBT is not set
CONFIG_BLK_CGROUP_IOLATENCY=y
CONFIG_BLK_CGROUP_IOCOST=y
CONFIG_BLK_CGROUP_IOPRIO=y
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y
# end of Partition Types

CONFIG_BLK_PM=y
CONFIG_BLOCK_HOLDER_DEPRECATED=y
CONFIG_BLK_MQ_STACKING=y
# CONFIG_BLK_ERROR_INJECTION is not set

#
# IO Schedulers
#
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
# CONFIG_IOSCHED_BFQ is not set
# end of IO Schedulers

CONFIG_PADATA=y
CONFIG_ASN1=y
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
CONFIG_QUEUED_RWLOCKS=y
CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=y
CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=y
CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
CONFIG_FREEZER=y

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
# end of Executable file formats

#
# Memory Management options
#
CONFIG_SWAP=y
# CONFIG_ZSWAP is not set

#
# Slab allocator options
#
CONFIG_SLUB=y
CONFIG_KVFREE_RCU_BATCHED=y
# CONFIG_SLUB_TINY is not set
CONFIG_SLAB_MERGE_DEFAULT=y
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SLAB_BUCKETS is not set
# CONFIG_SLUB_STATS is not set
# CONFIG_KMALLOC_PARTITION_CACHES is not set
# end of Slab allocator options

# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not set
CONFIG_SPARSEMEM=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_SPARSEMEM_VMEMMAP_PREINIT=y
CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=y
CONFIG_ARCH_WANT_HUGETLB_VMEMMAP_PREINIT=y
CONFIG_HAVE_GUP_FAST=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not set
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
CONFIG_SPLIT_PTE_PTLOCKS=y
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_SPLIT_PMD_PTLOCKS=y
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
# CONFIG_PAGE_REPORTING is not set
CONFIG_NUMA_MIGRATION=y
CONFIG_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_PCP_BATCH_SCALE_MAX=5
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_MMU_NOTIFIER=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_WANTS_THP_SWAP=y
# CONFIG_TRANSPARENT_HUGEPAGE is not set
CONFIG_PAGE_MAPCOUNT=y
CONFIG_PGTABLE_HAS_HUGE_LEAVES=y
CONFIG_HAVE_GIGANTIC_FOLIOS=y
CONFIG_ASYNC_KERNEL_PGTABLE_FREE=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not set
CONFIG_PAGE_BLOCK_MAX_ORDER=10
CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
# CONFIG_IDLE_PAGE_TRACKING is not set
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_ARCH_HAS_CURRENT_STACK_POINTER=y
CONFIG_ARCH_HAS_ZONE_DMA_SET=y
CONFIG_ZONE_DMA=y
CONFIG_ZONE_DMA32=y
CONFIG_VMAP_PFN=y
CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_ARCH_USES_PG_ARCH_2=y
CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_KMAP_LOCAL=y
CONFIG_MEMFD_CREATE=y
CONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not set
# CONFIG_USERFAULTFD is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
CONFIG_LRU_GEN_WALKS_MMU=y
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
CONFIG_PER_VMA_LOCK=y
CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
# CONFIG_NUMA_EMU is not set
CONFIG_PT_RECLAIM=y

#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring
# end of Memory Management options

CONFIG_NET=y
CONFIG_NET_INGRESS=y
CONFIG_NET_EGRESS=y
CONFIG_NET_XGRESS=y
CONFIG_SKB_EXTENSIONS=y
CONFIG_NET_DEVMEM=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
# CONFIG_INET_PSP is not set
CONFIG_UNIX=y
CONFIG_AF_UNIX_OOB=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_TLS is not set
CONFIG_XFRM=y
CONFIG_XFRM_ALGO=y
CONFIG_XFRM_USER=y
# CONFIG_XFRM_USER_COMPAT is not set
# CONFIG_XFRM_INTERFACE is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
CONFIG_XFRM_AH=y
CONFIG_XFRM_ESP=y
# CONFIG_NET_KEY is not set
# CONFIG_XFRM_IPTFS is not set
# CONFIG_DIBS is not set
# CONFIG_XDP_SOCKETS is not set
CONFIG_NET_HANDSHAKE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_FIB_TRIE_STATS is not set
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
CONFIG_NET_IP_TUNNEL=y
CONFIG_IP_MROUTE_COMMON=y
CONFIG_IP_MROUTE=y
# CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
# CONFIG_NET_IPVTI is not set
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
CONFIG_INET_TABLE_PERTURB_ORDER=16
CONFIG_INET_TUNNEL=y
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not set
CONFIG_TCP_CONG_CUBIC=y
# CONFIG_TCP_CONG_WESTWOOD is not set
# CONFIG_TCP_CONG_HTCP is not set
# CONFIG_TCP_CONG_HSTCP is not set
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not set
# CONFIG_TCP_CONG_NV is not set
# CONFIG_TCP_CONG_SCALABLE is not set
# CONFIG_TCP_CONG_LP is not set
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not set
# CONFIG_TCP_CONG_ILLINOIS is not set
# CONFIG_TCP_CONG_DCTCP is not set
# CONFIG_TCP_CONG_CDG is not set
# CONFIG_TCP_CONG_BBR is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_AO is not set
CONFIG_TCP_MD5SIG=y
CONFIG_IPV6=y
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
CONFIG_INET6_AH=y
CONFIG_INET6_ESP=y
# CONFIG_INET6_ESP_OFFLOAD is not set
# CONFIG_INET6_ESPINTCP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_ILA is not set
# CONFIG_IPV6_VTI is not set
CONFIG_IPV6_SIT=y
# CONFIG_IPV6_SIT_6RD is not set
CONFIG_IPV6_NDISC_NODETYPE=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_MULTIPLE_TABLES is not set
# CONFIG_IPV6_MROUTE is not set
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not set
# CONFIG_IPV6_IOAM6_LWTUNNEL is not set
CONFIG_NETLABEL=y
# CONFIG_MPTCP is not set
CONFIG_NETWORK_SECMARK=y
CONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_ADVANCED is not set

#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_INGRESS=y
CONFIG_NETFILTER_EGRESS=y
CONFIG_NETFILTER_SKIP_EGRESS=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_BPF_LINK=y
CONFIG_NETFILTER_NETLINK_LOG=y
CONFIG_NF_CONNTRACK=y
CONFIG_NF_LOG_SYSLOG=y
CONFIG_NF_CONNTRACK_SECMARK=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
# CONFIG_NF_CONNTRACK_LABELS is not set
CONFIG_NF_CONNTRACK_FTP=y
CONFIG_NF_CONNTRACK_IRC=y
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
CONFIG_NF_CONNTRACK_SIP=y
CONFIG_NF_CT_NETLINK=y
# CONFIG_NETFILTER_NETLINK_GLUE_CT is not set
CONFIG_NF_NAT=y
CONFIG_NF_NAT_FTP=y
CONFIG_NF_NAT_IRC=y
CONFIG_NF_NAT_SIP=y
CONFIG_NF_NAT_MASQUERADE=y
# CONFIG_NF_TABLES is not set
CONFIG_NETFILTER_XTABLES=y
# CONFIG_NETFILTER_XTABLES_COMPAT is not set
# CONFIG_NETFILTER_XTABLES_LEGACY is not set

#
# Xtables combined modules
#
CONFIG_NETFILTER_XT_MARK=y

#
# Xtables targets
#
CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y
CONFIG_NETFILTER_XT_TARGET_LOG=y
# CONFIG_NETFILTER_XT_NAT is not set
# CONFIG_NETFILTER_XT_TARGET_NETMAP is not set
CONFIG_NETFILTER_XT_TARGET_NFLOG=y
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
CONFIG_NETFILTER_XT_TARGET_MASQUERADE=y
CONFIG_NETFILTER_XT_TARGET_SECMARK=y
CONFIG_NETFILTER_XT_TARGET_TCPMSS=y

#
# Xtables matches
#
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
CONFIG_NETFILTER_XT_MATCH_POLICY=y
CONFIG_NETFILTER_XT_MATCH_STATE=y
# end of Core Netfilter Configuration

# CONFIG_IP_SET is not set
# CONFIG_IP_VS is not set

#
# IP: Netfilter Configuration
#
CONFIG_NF_DEFRAG_IPV4=y
# CONFIG_NF_SOCKET_IPV4 is not set
# CONFIG_NF_TPROXY_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
CONFIG_NF_LOG_ARP=y
CONFIG_NF_LOG_IPV4=y
CONFIG_NF_REJECT_IPV4=y
CONFIG_IP_NF_IPTABLES=y
# end of IP: Netfilter Configuration

#
# IPv6: Netfilter Configuration
#
# CONFIG_NF_SOCKET_IPV6 is not set
# CONFIG_NF_TPROXY_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
CONFIG_NF_REJECT_IPV6=y
CONFIG_NF_LOG_IPV6=y
CONFIG_IP6_NF_IPTABLES=y
CONFIG_IP6_NF_MATCH_IPV6HEADER=y
# end of IPv6: Netfilter Configuration

CONFIG_NF_DEFRAG_IPV6=y
# CONFIG_NF_CONNTRACK_BRIDGE is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
CONFIG_ATM=y
# CONFIG_ATM_BR2684 is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_LLC2 is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
CONFIG_PHONET=y
# CONFIG_6LOWPAN is not set
CONFIG_IEEE802154=y
# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set
# CONFIG_IEEE802154_SOCKET is not set
CONFIG_MAC802154=y
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not set
# CONFIG_NET_SCH_PRIO is not set
# CONFIG_NET_SCH_MULTIQ is not set
# CONFIG_NET_SCH_RED is not set
# CONFIG_NET_SCH_SFB is not set
# CONFIG_NET_SCH_SFQ is not set
# CONFIG_NET_SCH_TEQL is not set
# CONFIG_NET_SCH_TBF is not set
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not set
# CONFIG_NET_SCH_TAPRIO is not set
# CONFIG_NET_SCH_GRED is not set
# CONFIG_NET_SCH_NETEM is not set
# CONFIG_NET_SCH_DRR is not set
# CONFIG_NET_SCH_MQPRIO is not set
# CONFIG_NET_SCH_SKBPRIO is not set
# CONFIG_NET_SCH_CHOKE is not set
# CONFIG_NET_SCH_QFQ is not set
# CONFIG_NET_SCH_CODEL is not set
# CONFIG_NET_SCH_FQ_CODEL is not set
# CONFIG_NET_SCH_CAKE is not set
# CONFIG_NET_SCH_FQ is not set
# CONFIG_NET_SCH_HHF is not set
# CONFIG_NET_SCH_PIE is not set
# CONFIG_NET_SCH_INGRESS is not set
# CONFIG_NET_SCH_PLUG is not set
# CONFIG_NET_SCH_ETS is not set
# CONFIG_NET_SCH_DUALPI2 is not set
# CONFIG_NET_SCH_DEFAULT is not set

#
# Classification
#
CONFIG_NET_CLS=y
# CONFIG_NET_CLS_BASIC is not set
# CONFIG_NET_CLS_ROUTE4 is not set
# CONFIG_NET_CLS_FW is not set
# CONFIG_NET_CLS_U32 is not set
# CONFIG_NET_CLS_FLOW is not set
CONFIG_NET_CLS_CGROUP=y
# CONFIG_NET_CLS_BPF is not set
# CONFIG_NET_CLS_FLOWER is not set
# CONFIG_NET_CLS_MATCHALL is not set
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
# CONFIG_NET_EMATCH_CMP is not set
# CONFIG_NET_EMATCH_NBYTE is not set
# CONFIG_NET_EMATCH_U32 is not set
# CONFIG_NET_EMATCH_META is not set
# CONFIG_NET_EMATCH_TEXT is not set
# CONFIG_NET_EMATCH_CANID is not set
# CONFIG_NET_EMATCH_IPT is not set
CONFIG_NET_CLS_ACT=y
# CONFIG_NET_ACT_POLICE is not set
# CONFIG_NET_ACT_GACT is not set
# CONFIG_NET_ACT_MIRRED is not set
# CONFIG_NET_ACT_SAMPLE is not set
# CONFIG_NET_ACT_NAT is not set
# CONFIG_NET_ACT_PEDIT is not set
# CONFIG_NET_ACT_SIMP is not set
# CONFIG_NET_ACT_SKBEDIT is not set
# CONFIG_NET_ACT_CSUM is not set
# CONFIG_NET_ACT_MPLS is not set
# CONFIG_NET_ACT_VLAN is not set
# CONFIG_NET_ACT_BPF is not set
# CONFIG_NET_ACT_SKBMOD is not set
# CONFIG_NET_ACT_IFE is not set
# CONFIG_NET_ACT_TUNNEL_KEY is not set
# CONFIG_NET_ACT_GATE is not set
# CONFIG_NET_TC_SKB_EXT is not set
CONFIG_NET_SCH_FIFO=y
# CONFIG_DCB is not set
CONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not set
# CONFIG_NET_NSH is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set
# CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not set
# CONFIG_PCPU_DEV_REFCNT is not set
CONFIG_MAX_SKB_FRAGS=17
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing
# end of Networking options

CONFIG_CAN=y
# CONFIG_CAN_RAW is not set
# CONFIG_CAN_BCM is not set
# CONFIG_CAN_GW is not set
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
CONFIG_BT=y
CONFIG_BT_BREDR=y
# CONFIG_BT_RFCOMM is not set
# CONFIG_BT_BNEP is not set
CONFIG_BT_HIDP=y
# CONFIG_BT_LE is not set
# CONFIG_BT_LEDS is not set
# CONFIG_BT_MSFTEXT is not set
# CONFIG_BT_AOSPEXT is not set
# CONFIG_BT_DEBUGFS is not set
# CONFIG_BT_SELFTEST is not set

#
# Bluetooth device drivers
#
CONFIG_BT_INTEL=y
CONFIG_BT_BCM=y
CONFIG_BT_RTL=y
CONFIG_BT_MTK=y
CONFIG_BT_HCIBTUSB=y
CONFIG_BT_HCIBTUSB_AUTOSUSPEND=y
CONFIG_BT_HCIBTUSB_POLL_SYNC=y
CONFIG_BT_HCIBTUSB_BCM=y
CONFIG_BT_HCIBTUSB_MTK=y
CONFIG_BT_HCIBTUSB_RTL=y
# CONFIG_BT_HCIBTSDIO is not set
CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_SERDEV=y
CONFIG_BT_HCIUART_H4=y
# CONFIG_BT_HCIUART_NOKIA is not set
# CONFIG_BT_HCIUART_BCSP is not set
# CONFIG_BT_HCIUART_ATH3K is not set
# CONFIG_BT_HCIUART_LL is not set
# CONFIG_BT_HCIUART_3WIRE is not set
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_RTL is not set
# CONFIG_BT_HCIUART_QCA is not set
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIUART_MRVL is not set
# CONFIG_BT_HCIUART_AML is not set
CONFIG_BT_HCIBCM203X=y
# CONFIG_BT_HCIBCM4377 is not set
CONFIG_BT_HCIBPA10X=y
CONFIG_BT_HCIBFUSB=y
# CONFIG_BT_HCIVHCI is not set
CONFIG_BT_MRVL=y
CONFIG_BT_MRVL_SDIO=y
CONFIG_BT_ATH3K=y
CONFIG_BT_MTKSDIO=y
CONFIG_BT_MTKUART=y
# CONFIG_BT_VIRTIO is not set
# CONFIG_BT_NXPUART is not set
# CONFIG_BT_INTEL_PCIE is not set
# end of Bluetooth device drivers

# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
CONFIG_MCTP=y
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_DEBUGFS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
# CONFIG_CFG80211_WEXT is not set
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
CONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not set
CONFIG_NET_9P=y
CONFIG_NET_9P_FD=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_USBG is not set
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CEPH_LIB is not set
CONFIG_NFC=y
CONFIG_NFC_DIGITAL=y
CONFIG_NFC_NCI=y
# CONFIG_NFC_NCI_SPI is not set
# CONFIG_NFC_NCI_UART is not set
# CONFIG_NFC_HCI is not set

#
# Near Field Communication (NFC) devices
#
# CONFIG_NFC_TRF7970A is not set
# CONFIG_NFC_SIM is not set
CONFIG_NFC_PORT100=y
# CONFIG_NFC_VIRTUAL_NCI is not set
# CONFIG_NFC_FDP is not set
CONFIG_NFC_PN533=y
CONFIG_NFC_PN533_USB=y
# CONFIG_NFC_PN533_I2C is not set
# CONFIG_NFC_PN532_UART is not set
CONFIG_NFC_MRVL=y
CONFIG_NFC_MRVL_USB=y
# CONFIG_NFC_MRVL_I2C is not set
# CONFIG_NFC_ST_NCI_I2C is not set
# CONFIG_NFC_ST_NCI_SPI is not set
# CONFIG_NFC_NXP_NCI is not set
# CONFIG_NFC_S3FWRN5_I2C is not set
# CONFIG_NFC_S3FWRN82_UART is not set
# CONFIG_NFC_ST95HF is not set
# end of Near Field Communication (NFC) devices

# CONFIG_PSAMPLE is not set
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not set
CONFIG_DST_CACHE=y
CONFIG_GRO_CELLS=y
CONFIG_NET_SELFTESTS=y
CONFIG_NET_SOCK_MSG=y
CONFIG_NET_DEVLINK=y
CONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not set
CONFIG_FAILOVER=y
CONFIG_ETHTOOL_NETLINK=y

#
# Device Drivers
#
CONFIG_HAVE_PCI=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCIEPORTBUS=y
# CONFIG_HOTPLUG_PCI_PCIE is not set
# CONFIG_PCIEAER is not set
CONFIG_PCIEASPM=y
CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set
CONFIG_PCIE_PME=y
# CONFIG_PCIE_PTM is not set
CONFIG_PCI_MSI=y
CONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not set
CONFIG_PCI_ATS=y
CONFIG_PCI_IDE=y
CONFIG_PCI_TSM=y
CONFIG_PCI_DOE=y
CONFIG_PCI_ECAM=y
CONFIG_PCI_LOCKLESS_CONFIG=y
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_NPEM is not set
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
# CONFIG_PCIE_TPH is not set
CONFIG_PCI_LABEL=y
# CONFIG_PCI_DYNAMIC_OF_NODES is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_OCTEONEP is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# PCI controller drivers
#
CONFIG_PCI_HOST_COMMON=y
# CONFIG_PCI_FTPCI100 is not set
CONFIG_PCI_HOST_GENERIC=y
# CONFIG_VMD is not set
# CONFIG_PCIE_XILINX is not set

#
# Cadence-based PCIe controllers
#
# CONFIG_PCIE_CADENCE_PLAT_HOST is not set
# end of Cadence-based PCIe controllers

#
# DesignWare-based PCIe controllers
#
# CONFIG_PCI_MESON is not set
# CONFIG_PCIE_INTEL_GW is not set
# CONFIG_PCIE_DW_PLAT_HOST is not set
# end of DesignWare-based PCIe controllers

#
# Mobiveil-based PCIe controllers
#
# end of Mobiveil-based PCIe controllers

#
# PLDA-based PCIe controllers
#
# CONFIG_PCIE_MICROCHIP_HOST is not set
# end of PLDA-based PCIe controllers
# end of PCI controller drivers

#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint

#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers

# CONFIG_PCI_PWRCTRL_GENERIC is not set
# CONFIG_PCI_PWRCTRL_TC9563 is not set
# CONFIG_CXL_BUS is not set
CONFIG_PCCARD=y
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=y
CONFIG_YENTA_O2=y
CONFIG_YENTA_RICOH=y
CONFIG_YENTA_TI=y
CONFIG_YENTA_ENE_TUNE=y
CONFIG_YENTA_TOSHIBA=y
# CONFIG_PD6729 is not set
CONFIG_PCCARD_NONSTATIC=y
# CONFIG_RAPIDIO is not set
# CONFIG_PC104 is not set

#
# Generic Driver Options
#
CONFIG_AUXILIARY_BUS=y
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_DEVTMPFS_SAFE is not set
CONFIG_DRIVER_DEFERRED_PROBE_TIMEOUT=10
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y

#
# Firmware loader
#
CONFIG_FW_LOADER=y
# CONFIG_FW_LOADER_DEBUG is not set
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER is not set
# CONFIG_FW_LOADER_COMPRESS is not set
CONFIG_FW_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader

CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
CONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_DEVICES=y
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options

#
# Bus devices
#
# CONFIG_MOXTET is not set
# CONFIG_MHI_BUS is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Firmware Drivers
#

#
# ARM System Control and Management Interface Protocol
#
# end of ARM System Control and Management Interface Protocol

# CONFIG_EDD is not set
CONFIG_FIRMWARE_MEMMAP=y
CONFIG_DMIID=y
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not set
# CONFIG_SYSFB_SIMPLEFB is not set
# CONFIG_GOOGLE_FIRMWARE is not set

#
# Qualcomm firmware drivers
#
# end of Qualcomm firmware drivers

#
# Tegra firmware driver
#
# end of Tegra firmware driver
# end of Firmware Drivers

# CONFIG_FWCTL is not set
CONFIG_GNSS=y
# CONFIG_GNSS_MTK_SERIAL is not set
# CONFIG_GNSS_SIRF_SERIAL is not set
# CONFIG_GNSS_UBX_SERIAL is not set
CONFIG_GNSS_USB=y
# CONFIG_MTD is not set
CONFIG_DTC=y
CONFIG_OF=y
# CONFIG_OF_UNITTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_KOBJ=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_OF_OVERLAY is not set
CONFIG_OF_NUMA=y
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PARPORT_NOT_PC=y
CONFIG_PNP=y
CONFIG_PNP_DEBUG_MESSAGES=y

#
# Protocols
#
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_FD is not set
CONFIG_CDROM=y
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_ATA_OVER_ETH is not set
CONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_UBLK is not set

#
# NVME Support
#
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_NVME_FC is not set
# CONFIG_NVME_TCP is not set
# CONFIG_NVME_TARGET is not set
# end of NVME Support

#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_RPMB is not set
# CONFIG_TI_FPC202 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
CONFIG_MISC_RTSX=y
# CONFIG_HISI_HIKEY_USB is not set
# CONFIG_OPEN_DICE is not set
# CONFIG_NTSYNC is not set
# CONFIG_VCPU_STALL_DETECTOR is not set
# CONFIG_NSM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_MAX6875 is not set
CONFIG_EEPROM_93CX6=y
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_EEPROM_EE1004 is not set
# CONFIG_EEPROM_M24LR is not set
# end of EEPROM support

# CONFIG_CB710_CORE is not set
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not set
CONFIG_INTEL_MEI=y
CONFIG_INTEL_MEI_ME=y
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_GSC is not set
# CONFIG_INTEL_MEI_CSC is not set
# CONFIG_INTEL_MEI_VSC_HW is not set
# CONFIG_INTEL_MEI_HDCP is not set
# CONFIG_INTEL_MEI_PXP is not set
# CONFIG_INTEL_MEI_GSC_PROXY is not set
# CONFIG_VMWARE_VMCI is not set
# CONFIG_GENWQE is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
CONFIG_MISC_RTSX_USB=y
# CONFIG_UACCE is not set
# CONFIG_PVPANIC is not set
# CONFIG_GP_PCI1XXXX is not set
# CONFIG_KEBA_CP500 is not set
# CONFIG_MISC_RP1 is not set
# end of Misc devices

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI_COMMON=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_BLK_DEV_BSG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# end of SCSI Transports

CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_MPI3MR is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
CONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_LOWLEVEL_PCMCIA is not set
# CONFIG_SCSI_DH is not set
# end of SCSI device support

CONFIG_ATA=y
CONFIG_SATA_HOST=y
CONFIG_PATA_TIMINGS=y
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_FORCE=y
CONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not set
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI=y
CONFIG_SATA_MOBILE_LPM_POLICY=3
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_AHCI_DWC is not set
# CONFIG_AHCI_CEVA is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
CONFIG_ATA_PIIX=y
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
CONFIG_PATA_AMD=y
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
CONFIG_PATA_OLDPIIX=y
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
CONFIG_PATA_SCH=y
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PCMCIA is not set
# CONFIG_PATA_OF_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_BITMAP=y
# CONFIG_MD_LLBITMAP is not set
CONFIG_MD_AUTODETECT=y
CONFIG_MD_BITMAP_FILE=y
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID456 is not set
# CONFIG_BCACHE is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
# CONFIG_DM_UNSTRIPED is not set
# CONFIG_DM_CRYPT is not set
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_THIN_PROVISIONING is not set
# CONFIG_DM_CACHE is not set
# CONFIG_DM_WRITECACHE is not set
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
# CONFIG_DM_CLONE is not set
CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
# CONFIG_DM_RAID is not set
CONFIG_DM_ZERO=y
# CONFIG_DM_MULTIPATH is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
# CONFIG_DM_UEVENT is not set
# CONFIG_DM_FLAKEY is not set
# CONFIG_DM_VERITY is not set
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
# CONFIG_DM_INTEGRITY is not set
# CONFIG_DM_AUDIT is not set
# CONFIG_DM_VDO is not set
CONFIG_TARGET_CORE=y
# CONFIG_TCM_IBLOCK is not set
# CONFIG_TCM_FILEIO is not set
# CONFIG_TCM_PSCSI is not set
# CONFIG_LOOPBACK_TARGET is not set
# CONFIG_ISCSI_TARGET is not set
# CONFIG_REMOTE_TARGET is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support

CONFIG_MACINTOSH_DRIVERS=y
CONFIG_MAC_EMUMOUSEBTN=y
CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not set
# CONFIG_OVPN is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_PFCP is not set
# CONFIG_AMT is not set
# CONFIG_MACSEC is not set
CONFIG_NETCONSOLE=y
# CONFIG_NETCONSOLE_DYNAMIC is not set
# CONFIG_NETCONSOLE_EXTENDED_LOG is not set
CONFIG_NETPOLL=y
CONFIG_NET_POLL_CONTROLLER=y
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
CONFIG_VIRTIO_NET=y
# CONFIG_NLMON is not set
# CONFIG_NETKIT is not set
# CONFIG_ARCNET is not set
# CONFIG_ATM_DRIVERS is not set
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not set
CONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not set
CONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not set
CONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not set
CONFIG_NET_VENDOR_ALIBABA=y
# CONFIG_ALIBABA_EEA is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
CONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_AMD_XGBE is not set
# CONFIG_PDS_CORE is not set
CONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not set
CONFIG_NET_VENDOR_ARC=y
CONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
# CONFIG_CX_ECAT is not set
CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
CONFIG_TIGON3=y
CONFIG_TIGON3_HWMON=y
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not set
# CONFIG_BNGE is not set
CONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not set
CONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not set
# CONFIG_CAVIUM_PTP is not set
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not set
CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
CONFIG_NET_VENDOR_CORTINA=y
# CONFIG_GEMINI_ETHERNET is not set
CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
CONFIG_NET_VENDOR_DEC=y
CONFIG_NET_TULIP=y
# CONFIG_DE2104X is not set
# CONFIG_TULIP is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set
# CONFIG_ULI526X is not set
# CONFIG_PCMCIA_XIRCOM is not set
CONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not set
CONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
CONFIG_NET_VENDOR_EZCHIP=y
# CONFIG_EZCHIP_NPS_MANAGEMENT_ENET is not set
CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set
CONFIG_NET_VENDOR_GOOGLE=y
CONFIG_GVE=y
CONFIG_NET_VENDOR_HISILICON=y
# CONFIG_HIBMCGE is not set
CONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not set
# CONFIG_HINIC3 is not set
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_E100=y
CONFIG_E1000=y
CONFIG_E1000E=y
CONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not set
# CONFIG_IDPF is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_ADI is not set
CONFIG_NET_VENDOR_LITEX=y
# CONFIG_LITEX_LITEETH is not set
CONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
CONFIG_SKY2=y
# CONFIG_SKY2_DEBUG is not set
# CONFIG_OCTEON_EP is not set
# CONFIG_OCTEON_EP_VF is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set
CONFIG_NET_VENDOR_META=y
# CONFIG_FBNIC is not set
CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not set
CONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN743X is not set
# CONFIG_LAN865X is not set
# CONFIG_VCAP is not set
CONFIG_NET_VENDOR_MICROSEMI=y
CONFIG_NET_VENDOR_MICROSOFT=y
CONFIG_NET_VENDOR_MUCSE=y
# CONFIG_MGBE is not set
CONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not set
CONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not set
CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not set
CONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not set
CONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not set
# CONFIG_PCMCIA_PCNET is not set
CONFIG_NET_VENDOR_NVIDIA=y
CONFIG_FORCEDETH=y
CONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not set
CONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not set
CONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not set
CONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set
CONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCA7000_SPI is not set
# CONFIG_QCA7000_UART is not set
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not set
CONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not set
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
CONFIG_8139TOO=y
CONFIG_8139TOO_PIO=y
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
CONFIG_R8169=y
# CONFIG_RTASE is not set
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_NET_VENDOR_ROCKER=y
CONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not set
CONFIG_NET_VENDOR_SEEQ=y
CONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not set
CONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not set
CONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not set
# CONFIG_SFC_SIENA is not set
CONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set
CONFIG_NET_VENDOR_SOCIONEXT=y
CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set
CONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
CONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not set
CONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not set
# CONFIG_TEHUTI_TN40 is not set
CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not set
CONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not set
CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not set
CONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not set
# CONFIG_TXGBEVF is not set
# CONFIG_NGBEVF is not set
CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
CONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_LL_TEMAC is not set
CONFIG_NET_VENDOR_XIRCOM=y
# CONFIG_PCMCIA_XIRC2PS is not set
# CONFIG_FDDI is not set
CONFIG_PHYLINK=y
CONFIG_PHYLIB=y
CONFIG_SWPHY=y
CONFIG_PHY_PACKAGE=y
# CONFIG_LED_TRIGGER_PHY is not set
CONFIG_PHYLIB_LEDS=y
CONFIG_FIXED_PHY=y
# CONFIG_SFP is not set

#
# MII PHY device drivers
#
# CONFIG_AS21XXX_PHY is not set
# CONFIG_AIR_AN8801_PHY is not set
# CONFIG_AIR_EN8811H_PHY is not set
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_ADIN1100_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
CONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88Q2XXX_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_MAXLINEAR_86110_PHY is not set
# CONFIG_MEDIATEK_GE_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_T1S_PHY is not set
CONFIG_MICROCHIP_PHY=y
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_CBTX_PHY is not set
# CONFIG_NXP_C45_TJA11XX_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_NCN26000_PHY is not set
# CONFIG_AT803X_PHY is not set
# CONFIG_QCA83XX_PHY is not set
# CONFIG_QCA808X_PHY is not set
# CONFIG_QCA807X_PHY is not set
# CONFIG_QSEMI_PHY is not set
CONFIG_REALTEK_PHY=y
# CONFIG_REALTEK_PHY_HWMON is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
CONFIG_SMSC_PHY=y
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_DP83TD510_PHY is not set
# CONFIG_DP83TG720_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_PSE_CONTROLLER is not set
CONFIG_CAN_DEV=y
# CONFIG_CAN_VCAN is not set
# CONFIG_CAN_VXCAN is not set
CONFIG_CAN_NETLINK=y
# CONFIG_CAN_CALC_BITTIMING is not set
CONFIG_CAN_RX_OFFLOAD=y
# CONFIG_CAN_CAN327 is not set
# CONFIG_CAN_DUMMY is not set
# CONFIG_CAN_FLEXCAN is not set
# CONFIG_CAN_GRCAN is not set
# CONFIG_CAN_KVASER_PCIEFD is not set
# CONFIG_CAN_SLCAN is not set
# CONFIG_CAN_VIRTIO_CAN is not set
# CONFIG_CAN_C_CAN is not set
# CONFIG_CAN_CC770 is not set
# CONFIG_CAN_CTUCANFD_PCI is not set
# CONFIG_CAN_CTUCANFD_PLATFORM is not set
# CONFIG_CAN_ESD_402_PCI is not set
# CONFIG_CAN_IFI_CANFD is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not set
# CONFIG_CAN_SJA1000 is not set
# CONFIG_CAN_SOFTING is not set

#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces

#
# CAN USB interfaces
#
CONFIG_CAN_8DEV_USB=y
CONFIG_CAN_EMS_USB=y
CONFIG_CAN_ESD_USB=y
CONFIG_CAN_ETAS_ES58X=y
CONFIG_CAN_F81604=y
CONFIG_CAN_GS_USB=y
CONFIG_CAN_KVASER_USB=y
CONFIG_CAN_MCBA_USB=y
CONFIG_CAN_PEAK_USB=y
CONFIG_CAN_UCAN=y
# end of CAN USB interfaces

# CONFIG_CAN_DEBUG_DEVICES is not set

#
# MCTP Device Drivers
#
# CONFIG_MCTP_SERIAL is not set
# CONFIG_MCTP_TRANSPORT_USB is not set
# end of MCTP Device Drivers

CONFIG_FWNODE_MDIO=y
CONFIG_OF_MDIO=y
CONFIG_ACPI_MDIO=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_HISI_FEMAC is not set
CONFIG_MDIO_MVUSB=y
# CONFIG_MDIO_MSCC_MIIM is not set
# CONFIG_MDIO_OCTEON is not set
# CONFIG_MDIO_IPQ4019 is not set
# CONFIG_MDIO_IPQ8064 is not set
# CONFIG_MDIO_THUNDER is not set

#
# MDIO Multiplexers
#
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set

#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers

# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
CONFIG_USB_NET_DRIVERS=y
CONFIG_USB_CATC=y
CONFIG_USB_KAWETH=y
CONFIG_USB_PEGASUS=y
CONFIG_USB_RTL8150=y
CONFIG_USB_RTL8152=y
CONFIG_USB_LAN78XX=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_AX8817X=y
CONFIG_USB_NET_AX88179_178A=y
CONFIG_USB_NET_CDCETHER=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_NCM=y
CONFIG_USB_NET_HUAWEI_CDC_NCM=y
CONFIG_USB_NET_CDC_MBIM=y
CONFIG_USB_NET_DM9601=y
CONFIG_USB_NET_SR9700=y
CONFIG_USB_NET_SR9800=y
CONFIG_USB_NET_SMSC75XX=y
CONFIG_USB_NET_SMSC95XX=y
CONFIG_USB_NET_GL620A=y
CONFIG_USB_NET_NET1080=y
CONFIG_USB_NET_PLUSB=y
CONFIG_USB_NET_MCS7830=y
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_NET_CDC_SUBSET_ENABLE=y
CONFIG_USB_NET_CDC_SUBSET=y
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_BELKIN=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_KC2190=y
CONFIG_USB_NET_ZAURUS=y
CONFIG_USB_NET_CX82310_ETH=y
CONFIG_USB_NET_KALMIA=y
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_USB_HSO=y
CONFIG_USB_NET_INT51X1=y
CONFIG_USB_CDC_PHONET=y
CONFIG_USB_IPHETH=y
CONFIG_USB_SIERRA_NET=y
CONFIG_USB_VL600=y
CONFIG_USB_NET_CH9200=y
CONFIG_USB_NET_AQC111=y
CONFIG_USB_RTL8153_ECM=y
CONFIG_WLAN=y
CONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not set
CONFIG_ATH_COMMON=y
CONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
CONFIG_ATH9K_HW=y
CONFIG_ATH9K_COMMON=y
CONFIG_ATH9K_COMMON_DEBUG=y
CONFIG_ATH9K_BTCOEX_SUPPORT=y
CONFIG_ATH9K=y
# CONFIG_ATH9K_PCI is not set
# CONFIG_ATH9K_AHB is not set
CONFIG_ATH9K_DEBUGFS=y
# CONFIG_ATH9K_STATION_STATISTICS is not set
# CONFIG_ATH9K_DYNACK is not set
# CONFIG_ATH9K_WOW is not set
# CONFIG_ATH9K_RFKILL is not set
# CONFIG_ATH9K_CHANNEL_CONTEXT is not set
# CONFIG_ATH9K_PCOEM is not set
CONFIG_ATH9K_HTC=y
CONFIG_ATH9K_HTC_DEBUGFS=y
# CONFIG_ATH9K_HWRNG is not set
CONFIG_ATH9K_COMMON_SPECTRAL=y
CONFIG_CARL9170=y
CONFIG_CARL9170_LEDS=y
# CONFIG_CARL9170_DEBUGFS is not set
CONFIG_CARL9170_WPC=y
CONFIG_CARL9170_HWRNG=y
CONFIG_ATH6KL=y
# CONFIG_ATH6KL_SDIO is not set
CONFIG_ATH6KL_USB=y
# CONFIG_ATH6KL_DEBUG is not set
# CONFIG_ATH6KL_TRACING is not set
CONFIG_AR5523=y
# CONFIG_WIL6210 is not set
CONFIG_ATH10K=y
CONFIG_ATH10K_CE=y
# CONFIG_ATH10K_PCI is not set
# CONFIG_ATH10K_SDIO is not set
CONFIG_ATH10K_USB=y
# CONFIG_ATH10K_DEBUG is not set
# CONFIG_ATH10K_DEBUGFS is not set
CONFIG_ATH10K_LEDS=y
# CONFIG_ATH10K_TRACING is not set
# CONFIG_WCN36XX is not set
# CONFIG_ATH11K is not set
# CONFIG_ATH12K is not set
CONFIG_WLAN_VENDOR_ATMEL=y
CONFIG_AT76C50X_USB=y
CONFIG_WLAN_VENDOR_BROADCOM=y
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
CONFIG_BRCMUTIL=y
# CONFIG_BRCMSMAC is not set
CONFIG_BRCMFMAC=y
CONFIG_BRCMFMAC_PROTO_BCDC=y
# CONFIG_BRCMFMAC_SDIO is not set
CONFIG_BRCMFMAC_USB=y
# CONFIG_BRCMFMAC_PCIE is not set
# CONFIG_BRCM_TRACING is not set
# CONFIG_BRCMDBG is not set
CONFIG_WLAN_VENDOR_INTEL=y
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_IWLWIFI is not set
CONFIG_WLAN_VENDOR_INTERSIL=y
CONFIG_P54_COMMON=y
CONFIG_P54_USB=y
# CONFIG_P54_PCI is not set
# CONFIG_P54_SPI is not set
CONFIG_P54_LEDS=y
CONFIG_WLAN_VENDOR_MARVELL=y
CONFIG_LIBERTAS=y
CONFIG_LIBERTAS_USB=y
CONFIG_LIBERTAS_SDIO=y
CONFIG_LIBERTAS_SPI=y
# CONFIG_LIBERTAS_DEBUG is not set
CONFIG_LIBERTAS_MESH=y
CONFIG_LIBERTAS_THINFIRM=y
# CONFIG_LIBERTAS_THINFIRM_DEBUG is not set
CONFIG_LIBERTAS_THINFIRM_USB=y
CONFIG_MWIFIEX=y
# CONFIG_MWIFIEX_SDIO is not set
# CONFIG_MWIFIEX_PCIE is not set
CONFIG_MWIFIEX_USB=y
# CONFIG_MWL8K is not set
CONFIG_WLAN_VENDOR_MEDIATEK=y
CONFIG_MT7601U=y
CONFIG_MT76_CORE=y
CONFIG_MT76_LEDS=y
CONFIG_MT76_USB=y
CONFIG_MT76x02_LIB=y
CONFIG_MT76x02_USB=y
CONFIG_MT76_CONNAC_LIB=y
CONFIG_MT792x_LIB=y
CONFIG_MT792x_USB=y
CONFIG_MT76x0_COMMON=y
CONFIG_MT76x0U=y
# CONFIG_MT76x0E is not set
CONFIG_MT76x2_COMMON=y
# CONFIG_MT76x2E is not set
CONFIG_MT76x2U=y
# CONFIG_MT7603E is not set
CONFIG_MT7615_COMMON=y
# CONFIG_MT7615E is not set
CONFIG_MT7663_USB_SDIO_COMMON=y
CONFIG_MT7663U=y
# CONFIG_MT7663S is not set
# CONFIG_MT7915E is not set
CONFIG_MT7921_COMMON=y
# CONFIG_MT7921E is not set
# CONFIG_MT7921S is not set
CONFIG_MT7921U=y
# CONFIG_MT7996E is not set
CONFIG_MT7925_COMMON=y
# CONFIG_MT7925E is not set
CONFIG_MT7925U=y
CONFIG_WLAN_VENDOR_MICROCHIP=y
CONFIG_WILC1000=y
CONFIG_WILC1000_SDIO=y
# CONFIG_WILC1000_SPI is not set
# CONFIG_WILC1000_HW_OOB_INTR is not set
CONFIG_WLAN_VENDOR_PURELIFI=y
CONFIG_PLFXLC=y
CONFIG_WLAN_VENDOR_RALINK=y
CONFIG_RT2X00=y
# CONFIG_RT2400PCI is not set
# CONFIG_RT2500PCI is not set
# CONFIG_RT61PCI is not set
# CONFIG_RT2800PCI is not set
CONFIG_RT2500USB=y
CONFIG_RT73USB=y
CONFIG_RT2800USB=y
CONFIG_RT2800USB_RT33XX=y
CONFIG_RT2800USB_RT35XX=y
CONFIG_RT2800USB_RT3573=y
CONFIG_RT2800USB_RT53XX=y
CONFIG_RT2800USB_RT55XX=y
CONFIG_RT2800USB_UNKNOWN=y
CONFIG_RT2800_LIB=y
CONFIG_RT2X00_LIB_USB=y
CONFIG_RT2X00_LIB=y
CONFIG_RT2X00_LIB_FIRMWARE=y
CONFIG_RT2X00_LIB_CRYPTO=y
CONFIG_RT2X00_LIB_LEDS=y
# CONFIG_RT2X00_LIB_DEBUGFS is not set
# CONFIG_RT2X00_DEBUG is not set
CONFIG_WLAN_VENDOR_REALTEK=y
# CONFIG_RTL8180 is not set
CONFIG_RTL8187=y
CONFIG_RTL8187_LEDS=y
CONFIG_RTL_CARDS=y
CONFIG_RTL8192CE=y
CONFIG_RTL8192SE=y
CONFIG_RTL8192DE=y
CONFIG_RTL8723AE=y
CONFIG_RTL8723BE=y
CONFIG_RTL8188EE=y
CONFIG_RTL8192EE=y
CONFIG_RTL8821AE=y
CONFIG_RTL8192CU=y
# CONFIG_RTL8192DU is not set
CONFIG_RTLWIFI=y
CONFIG_RTLWIFI_PCI=y
CONFIG_RTLWIFI_USB=y
# CONFIG_RTLWIFI_DEBUG is not set
CONFIG_RTL8192C_COMMON=y
CONFIG_RTL8192D_COMMON=y
CONFIG_RTL8723_COMMON=y
CONFIG_RTLBTCOEXIST=y
CONFIG_RTL8XXXU=y
CONFIG_RTL8XXXU_UNTESTED=y
CONFIG_RTW88=y
CONFIG_RTW88_CORE=y
CONFIG_RTW88_USB=y
CONFIG_RTW88_8822B=y
CONFIG_RTW88_8822C=y
CONFIG_RTW88_8723X=y
CONFIG_RTW88_8723D=y
CONFIG_RTW88_8821C=y
# CONFIG_RTW88_8822BE is not set
# CONFIG_RTW88_8822BS is not set
CONFIG_RTW88_8822BU=y
# CONFIG_RTW88_8822CE is not set
# CONFIG_RTW88_8822CS is not set
CONFIG_RTW88_8822CU=y
# CONFIG_RTW88_8723DE is not set
# CONFIG_RTW88_8723DS is not set
# CONFIG_RTW88_8723CS is not set
CONFIG_RTW88_8723DU=y
# CONFIG_RTW88_8821CE is not set
# CONFIG_RTW88_8821CS is not set
CONFIG_RTW88_8821CU=y
# CONFIG_RTW88_8821AU is not set
# CONFIG_RTW88_8812AU is not set
# CONFIG_RTW88_8814AE is not set
# CONFIG_RTW88_8814AU is not set
# CONFIG_RTW88_DEBUG is not set
# CONFIG_RTW88_DEBUGFS is not set
CONFIG_RTW88_LEDS=y
CONFIG_RTW89=y
# CONFIG_RTW89_8851BE is not set
# CONFIG_RTW89_8851BU is not set
# CONFIG_RTW89_8852AE is not set
# CONFIG_RTW89_8852AU is not set
# CONFIG_RTW89_8852BE is not set
# CONFIG_RTW89_8852BU is not set
# CONFIG_RTW89_8852BTE is not set
# CONFIG_RTW89_8852CE is not set
# CONFIG_RTW89_8852CU is not set
# CONFIG_RTW89_8922AE is not set
# CONFIG_RTW89_8922AU is not set
CONFIG_WLAN_VENDOR_RSI=y
CONFIG_RSI_91X=y
# CONFIG_RSI_DEBUGFS is not set
# CONFIG_RSI_SDIO is not set
CONFIG_RSI_USB=y
# CONFIG_RSI_COEX is not set
CONFIG_WLAN_VENDOR_SILABS=y
# CONFIG_WFX is not set
CONFIG_WLAN_VENDOR_ST=y
# CONFIG_CW1200 is not set
CONFIG_WLAN_VENDOR_TI=y
# CONFIG_WL1251 is not set
# CONFIG_WL12XX is not set
# CONFIG_WL18XX is not set
# CONFIG_WLCORE is not set
CONFIG_WLAN_VENDOR_ZYDAS=y
CONFIG_ZD1211RW=y
# CONFIG_ZD1211RW_DEBUG is not set
CONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_QTNFMAC_PCIE is not set
# CONFIG_MAC80211_HWSIM is not set
# CONFIG_VIRT_WIFI is not set
# CONFIG_WAN is not set
CONFIG_IEEE802154_DRIVERS=y
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
CONFIG_IEEE802154_ATUSB=y
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
# CONFIG_IEEE802154_HWSIM is not set

#
# Wireless WAN
#
# CONFIG_WWAN is not set
# end of Wireless WAN

# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_NETDEVSIM is not set
CONFIG_NET_FAILOVER=y

#
# Input device support
#
CONFIG_INPUT=y
CONFIG_INPUT_LEDS=y
CONFIG_INPUT_FF_MEMLESS=y
CONFIG_INPUT_SPARSEKMAP=y
# CONFIG_INPUT_MATRIXKMAP is not set
CONFIG_INPUT_VIVALDIFMAP=y

#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5588 is not set
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_CHARLIEPLEX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_PINEPHONE is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_OMAP4 is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_TWL4030 is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CROS_EC is not set
# CONFIG_KEYBOARD_CAP11XX is not set
# CONFIG_KEYBOARD_BCM is not set
# CONFIG_KEYBOARD_CYPRESS_SF is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_BYD=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=y
CONFIG_MOUSE_PS2_CYPRESS=y
CONFIG_MOUSE_PS2_LIFEBOOK=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_ELANTECH is not set
# CONFIG_MOUSE_PS2_SENTELIC is not set
# CONFIG_MOUSE_PS2_TOUCHKIT is not set
CONFIG_MOUSE_PS2_FOCALTECH=y
# CONFIG_MOUSE_PS2_VMMOUSE is not set
CONFIG_MOUSE_PS2_SMBUS=y
# CONFIG_MOUSE_SERIAL is not set
CONFIG_MOUSE_APPLETOUCH=y
CONFIG_MOUSE_BCM5974=y
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
CONFIG_MOUSE_SYNAPTICS_USB=y
CONFIG_INPUT_JOYSTICK=y
# CONFIG_JOYSTICK_ANALOG is not set
# CONFIG_JOYSTICK_A3D is not set
# CONFIG_JOYSTICK_ADC is not set
# CONFIG_JOYSTICK_ADI is not set
# CONFIG_JOYSTICK_COBRA is not set
# CONFIG_JOYSTICK_GF2K is not set
# CONFIG_JOYSTICK_GRIP is not set
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not set
# CONFIG_JOYSTICK_INTERACT is not set
# CONFIG_JOYSTICK_SIDEWINDER is not set
# CONFIG_JOYSTICK_TMDC is not set
CONFIG_JOYSTICK_IFORCE=y
CONFIG_JOYSTICK_IFORCE_USB=y
# CONFIG_JOYSTICK_IFORCE_232 is not set
# CONFIG_JOYSTICK_WARRIOR is not set
# CONFIG_JOYSTICK_MAGELLAN is not set
# CONFIG_JOYSTICK_SPACEORB is not set
# CONFIG_JOYSTICK_SPACEBALL is not set
# CONFIG_JOYSTICK_STINGER is not set
# CONFIG_JOYSTICK_TWIDJOY is not set
# CONFIG_JOYSTICK_ZHENHUA is not set
# CONFIG_JOYSTICK_DB9 is not set
# CONFIG_JOYSTICK_GAMECON is not set
# CONFIG_JOYSTICK_TURBOGRAFX is not set
# CONFIG_JOYSTICK_AS5011 is not set
# CONFIG_JOYSTICK_JOYDUMP is not set
CONFIG_JOYSTICK_XPAD=y
CONFIG_JOYSTICK_XPAD_FF=y
CONFIG_JOYSTICK_XPAD_LEDS=y
# CONFIG_JOYSTICK_WALKERA0701 is not set
# CONFIG_JOYSTICK_PSXPAD_SPI is not set
CONFIG_JOYSTICK_PXRC=y
# CONFIG_JOYSTICK_QWIIC is not set
# CONFIG_JOYSTICK_FSIA6B is not set
# CONFIG_JOYSTICK_SENSEHAT is not set
# CONFIG_JOYSTICK_SEESAW is not set
CONFIG_INPUT_TABLET=y
CONFIG_TABLET_USB_ACECAD=y
CONFIG_TABLET_USB_AIPTEK=y
CONFIG_TABLET_USB_HANWANG=y
CONFIG_TABLET_USB_KBTAB=y
CONFIG_TABLET_USB_PEGASUS=y
# CONFIG_TABLET_SERIAL_WACOM4 is not set
CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not set
# CONFIG_TOUCHSCREEN_ADC is not set
# CONFIG_TOUCHSCREEN_AR1021_I2C is not set
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_BU21029 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8318 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8505 is not set
# CONFIG_TOUCHSCREEN_CY8CTMA140 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set
# CONFIG_TOUCHSCREEN_CYTTSP5 is not set
# CONFIG_TOUCHSCREEN_DYNAPRO is not set
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
# CONFIG_TOUCHSCREEN_EETI is not set
# CONFIG_TOUCHSCREEN_EGALAX is not set
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
# CONFIG_TOUCHSCREEN_EXC3000 is not set
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_GOODIX is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_I2C is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_SPI is not set
# CONFIG_TOUCHSCREEN_HIDEEP is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX852X is not set
# CONFIG_TOUCHSCREEN_HYCON_HY46XX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CSTXXX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CST816X is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_ILITEK is not set
# CONFIG_TOUCHSCREEN_S6SY761 is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
# CONFIG_TOUCHSCREEN_ELAN is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_WACOM_W9000 is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MSG2638 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_NOVATEK_NVT_TS is not set
# CONFIG_TOUCHSCREEN_IMAGIS is not set
# CONFIG_TOUCHSCREEN_IMX6UL_TSC is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
# CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
CONFIG_TOUCHSCREEN_USB_COMPOSITE=y
CONFIG_TOUCHSCREEN_USB_EGALAX=y
CONFIG_TOUCHSCREEN_USB_PANJIT=y
CONFIG_TOUCHSCREEN_USB_3M=y
CONFIG_TOUCHSCREEN_USB_ITM=y
CONFIG_TOUCHSCREEN_USB_ETURBO=y
CONFIG_TOUCHSCREEN_USB_GUNZE=y
CONFIG_TOUCHSCREEN_USB_DMC_TSC10=y
CONFIG_TOUCHSCREEN_USB_IRTOUCH=y
CONFIG_TOUCHSCREEN_USB_IDEALTEK=y
CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=y
CONFIG_TOUCHSCREEN_USB_GOTOP=y
CONFIG_TOUCHSCREEN_USB_JASTEC=y
CONFIG_TOUCHSCREEN_USB_ELO=y
CONFIG_TOUCHSCREEN_USB_E2I=y
CONFIG_TOUCHSCREEN_USB_ZYTRONIC=y
CONFIG_TOUCHSCREEN_USB_ETT_TC45USB=y
CONFIG_TOUCHSCREEN_USB_NEXIO=y
CONFIG_TOUCHSCREEN_USB_EASYTOUCH=y
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
# CONFIG_TOUCHSCREEN_STMFTS is not set
CONFIG_TOUCHSCREEN_SUR40=y
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_SX8654 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_ZET6223 is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_TOUCHSCREEN_COLIBRI_VF50 is not set
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
# CONFIG_TOUCHSCREEN_IQS5XX is not set
# CONFIG_TOUCHSCREEN_IQS7211 is not set
# CONFIG_TOUCHSCREEN_ZINITIX is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX83112B is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_ATMEL_CAPTOUCH is not set
# CONFIG_INPUT_AW86927 is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_E3X0_BUTTON is not set
# CONFIG_INPUT_PCSPKR is not set
# CONFIG_INPUT_MMA8450 is not set
# CONFIG_INPUT_APANEL is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_GPIO_VIBRA is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
CONFIG_INPUT_ATI_REMOTE2=y
CONFIG_INPUT_KEYSPAN_REMOTE=y
# CONFIG_INPUT_KXTJ9 is not set
CONFIG_INPUT_POWERMATE=y
CONFIG_INPUT_YEALINK=y
CONFIG_INPUT_CM109=y
# CONFIG_INPUT_REGULATOR_HAPTIC is not set
# CONFIG_INPUT_RETU_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_VIBRA is not set
# CONFIG_INPUT_UINPUT is not set
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA7280_HAPTICS is not set
# CONFIG_INPUT_ADXL34X is not set
CONFIG_INPUT_IMS_PCU=y
# CONFIG_INPUT_IQS269A is not set
# CONFIG_INPUT_IQS626A is not set
# CONFIG_INPUT_IQS7222 is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not set
# CONFIG_INPUT_DRV2667_HAPTICS is not set
CONFIG_RMI4_CORE=y
# CONFIG_RMI4_I2C is not set
# CONFIG_RMI4_SPI is not set
# CONFIG_RMI4_SMB is not set
CONFIG_RMI4_F03=y
CONFIG_RMI4_F03_SERIO=y
CONFIG_RMI4_2D_SENSOR=y
CONFIG_RMI4_F11=y
CONFIG_RMI4_F12=y
# CONFIG_RMI4_F1A is not set
# CONFIG_RMI4_F21 is not set
CONFIG_RMI4_F30=y
# CONFIG_RMI4_F34 is not set
CONFIG_RMI4_F3A=y
# CONFIG_RMI4_F54 is not set
# CONFIG_RMI4_F55 is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_APBPS2 is not set
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports
# end of Input device support

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_LEGACY_TIOCSTI=y
CONFIG_LDISC_AUTOLOAD=y

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set
# CONFIG_SERIAL_8250_FINTEK is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCILIB=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_EXAR=y
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
CONFIG_SERIAL_8250_LPSS=y
CONFIG_SERIAL_8250_MID=y
CONFIG_SERIAL_8250_PERICOM=y
# CONFIG_SERIAL_8250_NI is not set
# CONFIG_SERIAL_OF_PLATFORM is not set
CONFIG_SERIAL_8250_DWLIB=y

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_SIFIVE is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers

CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
# CONFIG_N_HDLC is not set
# CONFIG_IPWIRELESS is not set
# CONFIG_N_GSM is not set
# CONFIG_NOZOMI is not set
# CONFIG_NULL_TTY is not set
CONFIG_HVC_DRIVER=y
CONFIG_SERIAL_DEV_BUS=y
# CONFIG_SERIAL_DEV_CTRL_TTYPORT is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_INTEL is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_BA431 is not set
# CONFIG_HW_RANDOM_VIA is not set
CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_CCTRNG is not set
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_DEVMEM is not set
CONFIG_NVRAM=y
# CONFIG_DEVPORT is not set
CONFIG_HPET=y
# CONFIG_HPET_MMAP is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
CONFIG_XILLYBUS_CLASS=y
# CONFIG_XILLYBUS is not set
CONFIG_XILLYUSB=y
# end of Character devices

#
# I2C support
#
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_I2C_BOARDINFO=y
# CONFIG_I2C_CHARDEV is not set
CONFIG_I2C_MUX=y

#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_ARB_GPIO_CHALLENGE is not set
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_GPMUX is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not set
# CONFIG_I2C_MUX_MLXCPLD is not set
# end of Multiplexer I2C Chip support

CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_SMBUS=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not set
CONFIG_I2C_I801=y
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_CHT_WC is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
# CONFIG_I2C_ZHAOXIN is not set

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_CBUS_GPIO is not set
CONFIG_I2C_DESIGNWARE_CORE=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
# CONFIG_I2C_DESIGNWARE_AMDPSP is not set
# CONFIG_I2C_DESIGNWARE_BAYTRAIL is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_RK3X is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
CONFIG_I2C_DIOLAN_U2C=y
CONFIG_I2C_DLN2=y
CONFIG_I2C_LJCA=y
CONFIG_I2C_CP2615=y
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PCI1XXXX is not set
CONFIG_I2C_ROBOTFUZZ_OSIF=y
# CONFIG_I2C_TAOS_EVM is not set
CONFIG_I2C_TINY_USB=y
CONFIG_I2C_VIPERBOARD=y

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_MLXCPLD is not set
# CONFIG_I2C_CROS_EC_TUNNEL is not set
# CONFIG_I2C_VIRTIO is not set
# end of I2C Hardware Bus support

# CONFIG_I2C_STUB is not set
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support

# CONFIG_I3C is not set
CONFIG_I3C_OR_I2C=y
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set

#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_CH341 is not set
# CONFIG_SPI_DESIGNWARE is not set
CONFIG_SPI_DLN2=y
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_FSL_SPI is not set
CONFIG_SPI_LJCA=y
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_MICROCHIP_CORE_SPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PCI1XXXX is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_VIRTIO is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set

#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set

#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not set
CONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set

#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
# CONFIG_PPS_CLIENT_LDISC is not set
# CONFIG_PPS_CLIENT_PARPORT is not set
# CONFIG_PPS_CLIENT_GPIO is not set
# CONFIG_PPS_GENERATOR is not set

#
# PTP clock support
#
CONFIG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_OPTIONAL=y

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_PTP_1588_CLOCK_KVM=y
CONFIG_PTP_1588_CLOCK_VMCLOCK=y
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_FC3W is not set
# CONFIG_PTP_1588_CLOCK_MOCK is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# CONFIG_PTP_NETC_V4_TIMER is not set
# end of PTP clock support

#
# DPLL device support
#
# CONFIG_ZL3073X_I2C is not set
# CONFIG_ZL3073X_SPI is not set
# end of DPLL device support

# CONFIG_PINCTRL is not set
CONFIG_GPIOLIB_LEGACY=y
CONFIG_GPIOLIB=y
CONFIG_GPIOLIB_FASTPATH_LIMIT=512
CONFIG_OF_GPIO=y
CONFIG_GPIO_ACPI=y
CONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not set
# CONFIG_GPIO_CDEV is not set

#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_74XX_MMIO is not set
# CONFIG_GPIO_ALTERA is not set
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_BY_PINCTRL is not set
# CONFIG_GPIO_CADENCE is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_FTGPIO010 is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_GRANITERAPIDS is not set
# CONFIG_GPIO_GRGPIO is not set
# CONFIG_GPIO_HLWD is not set
# CONFIG_GPIO_LOGICVC is not set
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_POLARFIRE_SOC is not set
# CONFIG_GPIO_SIFIVE is not set
# CONFIG_GPIO_SYSCON is not set
# CONFIG_GPIO_WAVESHARE_DSI_TOUCH is not set
# CONFIG_GPIO_XILINX is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers

#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_NOVALAKE is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers

#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADNP is not set
# CONFIG_GPIO_FXL6408 is not set
# CONFIG_GPIO_DS4520 is not set
# CONFIG_GPIO_GW_PLD is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders

#
# MFD GPIO expanders
#
# CONFIG_GPIO_CROS_EC is not set
CONFIG_GPIO_DLN2=y
CONFIG_GPIO_LJCA=y
# CONFIG_GPIO_TWL4030 is not set
# CONFIG_GPIO_WHISKEY_COVE is not set
# end of MFD GPIO expanders

#
# Auxiliary Bus GPIO drivers
#
# end of Auxiliary Bus GPIO drivers

#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# CONFIG_GPIO_SODAVILLE is not set
# end of PCI GPIO expanders

#
# SPI GPIO expanders
#
# CONFIG_GPIO_74X164 is not set
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders

#
# USB GPIO expanders
#
CONFIG_GPIO_VIPERBOARD=y
# CONFIG_GPIO_MPSSE is not set
# end of USB GPIO expanders

#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_LATCH is not set
# CONFIG_GPIO_LINE_MUX is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers

#
# GPIO Debugging utilities
#
# CONFIG_GPIO_SLOPPY_LOGIC_ANALYZER is not set
# CONFIG_GPIO_VIRTUSER is not set
# end of GPIO Debugging utilities

CONFIG_W1=y
# CONFIG_W1_CON is not set

#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_AMD_AXI is not set
# CONFIG_W1_MASTER_MATROX is not set
CONFIG_W1_MASTER_DS2490=y
# CONFIG_W1_MASTER_DS2482 is not set
# CONFIG_W1_MASTER_GPIO is not set
# CONFIG_W1_MASTER_SGI is not set
# CONFIG_W1_MASTER_UART is not set
# end of 1-wire Bus Masters

#
# 1-wire Slaves
#
# CONFIG_W1_SLAVE_THERM is not set
# CONFIG_W1_SLAVE_SMEM is not set
# CONFIG_W1_SLAVE_DS2405 is not set
# CONFIG_W1_SLAVE_DS2408 is not set
# CONFIG_W1_SLAVE_DS2413 is not set
# CONFIG_W1_SLAVE_DS2406 is not set
# CONFIG_W1_SLAVE_DS2423 is not set
# CONFIG_W1_SLAVE_DS2805 is not set
# CONFIG_W1_SLAVE_DS2430 is not set
# CONFIG_W1_SLAVE_DS2431 is not set
# CONFIG_W1_SLAVE_DS2433 is not set
# CONFIG_W1_SLAVE_DS2438 is not set
# CONFIG_W1_SLAVE_DS250X is not set
# CONFIG_W1_SLAVE_DS2780 is not set
# CONFIG_W1_SLAVE_DS2781 is not set
# CONFIG_W1_SLAVE_DS28E04 is not set
# CONFIG_W1_SLAVE_DS28E17 is not set
# end of 1-wire Slaves

# CONFIG_POWER_RESET is not set
# CONFIG_POWER_SEQUENCING is not set
CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
CONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_GENERIC_ADC_BATTERY is not set
# CONFIG_IP5XXX_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CHAGALL is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2760 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SAMSUNG_SDI is not set
# CONFIG_BATTERY_S2MU005 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_BATTERY_MAX1720X is not set
# CONFIG_BATTERY_MAX1721X is not set
CONFIG_CHARGER_ISP1704=y
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_TWL4030 is not set
# CONFIG_CHARGER_TWL6030 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_MANAGER is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_DETECTOR_MAX14656 is not set
# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_MAX8971 is not set
# CONFIG_CHARGER_MT6360 is not set
# CONFIG_CHARGER_MT6370 is not set
# CONFIG_CHARGER_BQ2415X is not set
CONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_RT9467 is not set
# CONFIG_CHARGER_RT9471 is not set
# CONFIG_CHARGER_RT9756 is not set
# CONFIG_CHARGER_CROS_USBPD is not set
# CONFIG_CHARGER_CROS_PCHG is not set
# CONFIG_CHARGER_CROS_CONTROL is not set
# CONFIG_FUEL_GAUGE_STC3117 is not set
# CONFIG_CHARGER_UCS1002 is not set
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_SURFACE is not set
# CONFIG_CHARGER_SURFACE is not set
# CONFIG_BATTERY_UG3105 is not set
# CONFIG_BATTERY_CHARGER_SURFACE_RT is not set
# CONFIG_FUEL_GAUGE_MM8013 is not set
CONFIG_HWMON=y
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM1177 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not set
CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=y
# CONFIG_SENSORS_AS370 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ASUS_ROG_RYUJIN is not set
# CONFIG_SENSORS_AXI_FAN_CONTROL is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ARCTIC_FAN_CONTROLLER is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_CHIPCAP2 is not set
CONFIG_SENSORS_CORSAIR_CPRO=y
CONFIG_SENSORS_CORSAIR_PSU=y
# CONFIG_SENSORS_CROS_EC is not set
# CONFIG_SENSORS_DRIVETEMP is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_FTSTEUTATES is not set
CONFIG_SENSORS_GIGABYTE_WATERFORCE=y
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_GPD is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_GPIO_FAN is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_HS3001 is not set
# CONFIG_SENSORS_HTU31 is not set
# CONFIG_SENSORS_IIO_HWMON is not set
# CONFIG_SENSORS_I5500 is not set
# CONFIG_SENSORS_CORETEMP is not set
# CONFIG_SENSORS_ISL28022 is not set
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_JC42 is not set
CONFIG_SENSORS_POWERZ=y
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_PROM21_XHCI is not set
# CONFIG_SENSORS_LATTEPANDA_SIGMA_EC is not set
# CONFIG_SENSORS_LENOVO_EC is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2991 is not set
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_LTC4282 is not set
# CONFIG_SENSORS_LTC4283 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX31760 is not set
# CONFIG_MAX31827 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MC34VR500 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_MCP9982 is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT6775_I2C is not set
# CONFIG_SENSORS_NCT7363 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
CONFIG_SENSORS_NZXT_KRAKEN2=y
# CONFIG_SENSORS_NZXT_KRAKEN3 is not set
CONFIG_SENSORS_NZXT_SMART2=y
# CONFIG_SENSORS_OCC_P8_I2C is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_PT5161L is not set
# CONFIG_SENSORS_SBTSI is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC1812 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC2305 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SURFACE_FAN is not set
# CONFIG_SENSORS_SURFACE_TEMP is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_SPD5118 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not set
# CONFIG_SENSORS_TSC1641 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
# CONFIG_SENSORS_XGENE is not set
# CONFIG_SENSORS_YOGAFAN is not set

#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
# CONFIG_SENSORS_ASUS_WMI is not set
# CONFIG_SENSORS_ASUS_EC is not set
# CONFIG_SENSORS_HP_WMI is not set
CONFIG_THERMAL=y
CONFIG_THERMAL_NETLINK=y
# CONFIG_THERMAL_STATISTICS is not set
# CONFIG_THERMAL_DEBUGFS is not set
# CONFIG_THERMAL_CORE_TESTING is not set
CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0
CONFIG_THERMAL_HWMON=y
# CONFIG_THERMAL_OF is not set
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
# CONFIG_THERMAL_GOV_FAIR_SHARE is not set
CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_PCIE_THERMAL is not set
# CONFIG_THERMAL_EMULATION is not set
# CONFIG_THERMAL_MMIO is not set

#
# Intel thermal drivers
#
# CONFIG_INTEL_POWERCLAMP is not set
CONFIG_X86_THERMAL_VECTOR=y
CONFIG_INTEL_TCC=y
CONFIG_X86_PKG_TEMP_THERMAL=y
# CONFIG_INTEL_SOC_DTS_THERMAL is not set

#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not set
# end of ACPI INT340X thermal drivers

# CONFIG_INTEL_BXT_PMIC_THERMAL is not set
# CONFIG_INTEL_PCH_THERMAL is not set
# CONFIG_INTEL_TCC_COOLING is not set
# CONFIG_INTEL_HFI_THERMAL is not set
# end of Intel thermal drivers

# CONFIG_GENERIC_ADC_THERMAL is not set
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_CORE is not set
# CONFIG_WATCHDOG_NOWAYOUT is not set
CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=y
CONFIG_WATCHDOG_OPEN_TIMEOUT=0
# CONFIG_WATCHDOG_SYSFS is not set
# CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT is not set

#
# Watchdog Pretimeout Governors
#

#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_CROS_EC_WATCHDOG is not set
# CONFIG_GPIO_WATCHDOG is not set
# CONFIG_LENOVO_SE10_WDT is not set
# CONFIG_LENOVO_SE30_WDT is not set
# CONFIG_WDAT_WDT is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_TWL4030_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_RETU_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ADVANTECH_EC_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_EBC_C384_WDT is not set
# CONFIG_EXAR_WDT is not set
# CONFIG_F71808E_WDT is not set
# CONFIG_SP5100_TCO is not set
# CONFIG_SBC_FITPC2_WATCHDOG is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not set
# CONFIG_IE6XX_WDT is not set
# CONFIG_INTEL_OC_WATCHDOG is not set
# CONFIG_ITCO_WDT is not set
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not set
# CONFIG_HP_WATCHDOG is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_NV_TCO is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not set
# CONFIG_VIA_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
# CONFIG_INTEL_MEI_WDT is not set
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set

#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set

#
# USB-based Watchdog Cards
#
CONFIG_USBPCWATCHDOG=y
CONFIG_SSB_POSSIBLE=y
CONFIG_SSB=y
CONFIG_SSB_PCIHOST_POSSIBLE=y
# CONFIG_SSB_PCIHOST is not set
CONFIG_SSB_PCMCIAHOST_POSSIBLE=y
# CONFIG_SSB_PCMCIAHOST is not set
CONFIG_SSB_SDIOHOST_POSSIBLE=y
# CONFIG_SSB_SDIOHOST is not set
# CONFIG_SSB_DRIVER_GPIO is not set
CONFIG_BCMA_POSSIBLE=y
CONFIG_BCMA=y
CONFIG_BCMA_HOST_PCI_POSSIBLE=y
# CONFIG_BCMA_HOST_PCI is not set
# CONFIG_BCMA_HOST_SOC is not set
# CONFIG_BCMA_DRIVER_PCI is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not set
# CONFIG_BCMA_DRIVER_GPIO is not set
# CONFIG_BCMA_DEBUG is not set

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=y
# CONFIG_MFD_ADP5585 is not set
# CONFIG_MFD_ACT8945A is not set
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_SMPRO is not set
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_ATMEL_FLEXCOM is not set
# CONFIG_MFD_ATMEL_HLCDC is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CGBC is not set
CONFIG_MFD_CROS_EC_DEV=y
# CONFIG_MFD_CS40L50_I2C is not set
# CONFIG_MFD_CS40L50_SPI is not set
# CONFIG_MFD_CS42L43_I2C is not set
# CONFIG_MFD_CS42L43_SDW is not set
# CONFIG_MFD_LOCHNAGAR is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
CONFIG_MFD_DLN2=y
# CONFIG_MFD_GATEWORKS_GSC is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_MFD_PF1550 is not set
# CONFIG_MFD_HI6421_PMIC is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_INTEL_SOC_PMIC is not set
CONFIG_INTEL_SOC_PMIC_BXTWC=y
CONFIG_INTEL_SOC_PMIC_CHTWC=y
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
CONFIG_MFD_INTEL_PMC_BXT=y
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_88PM886_PMIC is not set
# CONFIG_MFD_MAX5970 is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77541 is not set
# CONFIG_MFD_MAX77620 is not set
# CONFIG_MFD_MAX77650 is not set
# CONFIG_MFD_MAX77686 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77705 is not set
# CONFIG_MFD_MAX77714 is not set
# CONFIG_MFD_MAX77759 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
CONFIG_MFD_MT6360=y
CONFIG_MFD_MT6370=y
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_MFD_NCT6694 is not set
# CONFIG_MFD_OCELOT is not set
# CONFIG_MFD_CPCAP is not set
CONFIG_MFD_VIPERBOARD=y
# CONFIG_MFD_NTXEC is not set
CONFIG_MFD_RETU=y
# CONFIG_MFD_SY7636A is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT4831 is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RT5120 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_RK8XX_I2C is not set
# CONFIG_MFD_RK8XX_SPI is not set
# CONFIG_MFD_RN5T618 is not set
# CONFIG_MFD_SEC_I2C is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_STMPE is not set
CONFIG_MFD_SYSCON=y
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_BQ257XX is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TI_LP87565 is not set
# CONFIG_MFD_TPS65218 is not set
# CONFIG_MFD_TPS65219 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS6594_I2C is not set
# CONFIG_MFD_TPS6594_SPI is not set
CONFIG_TWL4030_CORE=y
# CONFIG_MFD_TWL4030_AUDIO is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TQMX86 is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_ROHM_BD718XX is not set
# CONFIG_MFD_ROHM_BD71828 is not set
# CONFIG_MFD_ROHM_BD957XMUF is not set
# CONFIG_MFD_ROHM_BD96801 is not set
# CONFIG_MFD_STPMIC1 is not set
# CONFIG_MFD_STMFX is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_QCOM_PM8008 is not set
# CONFIG_RAVE_SP_CORE is not set
# CONFIG_MFD_INTEL_M10_BMC_SPI is not set
# CONFIG_MFD_QNAP_MCU is not set
# CONFIG_MFD_RSMU_I2C is not set
# CONFIG_MFD_RSMU_SPI is not set
# CONFIG_MFD_UPBOARD_FPGA is not set
# CONFIG_MFD_MAX7360 is not set
# end of Multifunction device drivers

CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not set
CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_NETLINK_EVENTS is not set
# CONFIG_REGULATOR_88PG86X is not set
# CONFIG_REGULATOR_ACT8865 is not set
# CONFIG_REGULATOR_AD5398 is not set
# CONFIG_REGULATOR_ADP5055 is not set
# CONFIG_REGULATOR_AW37503 is not set
# CONFIG_REGULATOR_CROS_EC is not set
# CONFIG_REGULATOR_DA9121 is not set
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_DA9211 is not set
# CONFIG_REGULATOR_FAN53555 is not set
# CONFIG_REGULATOR_FAN53880 is not set
# CONFIG_REGULATOR_GPIO is not set
# CONFIG_REGULATOR_ISL9305 is not set
# CONFIG_REGULATOR_ISL6271A is not set
# CONFIG_REGULATOR_FP9931 is not set
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_LP872X is not set
# CONFIG_REGULATOR_LP8755 is not set
# CONFIG_REGULATOR_LTC3589 is not set
# CONFIG_REGULATOR_LTC3676 is not set
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_MAX77503 is not set
# CONFIG_REGULATOR_MAX77675 is not set
# CONFIG_REGULATOR_MAX77857 is not set
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8893 is not set
# CONFIG_REGULATOR_MAX8952 is not set
# CONFIG_REGULATOR_MAX20086 is not set
# CONFIG_REGULATOR_MAX20411 is not set
# CONFIG_REGULATOR_MAX77826 is not set
# CONFIG_REGULATOR_MAX77838 is not set
# CONFIG_REGULATOR_MCP16502 is not set
# CONFIG_REGULATOR_MP5416 is not set
# CONFIG_REGULATOR_MP8859 is not set
# CONFIG_REGULATOR_MP886X is not set
# CONFIG_REGULATOR_MPQ7920 is not set
# CONFIG_REGULATOR_MT6311 is not set
# CONFIG_REGULATOR_MT6360 is not set
# CONFIG_REGULATOR_MT6370 is not set
# CONFIG_REGULATOR_PCA9450 is not set
# CONFIG_REGULATOR_PF9453 is not set
# CONFIG_REGULATOR_PF0900 is not set
# CONFIG_REGULATOR_PF530X is not set
# CONFIG_REGULATOR_PF8X00 is not set
# CONFIG_REGULATOR_PFUZE100 is not set
# CONFIG_REGULATOR_PV88060 is not set
# CONFIG_REGULATOR_PV88080 is not set
# CONFIG_REGULATOR_PV88090 is not set
# CONFIG_REGULATOR_RAA215300 is not set
# CONFIG_REGULATOR_RT4801 is not set
# CONFIG_REGULATOR_RT4803 is not set
# CONFIG_REGULATOR_RT5133 is not set
# CONFIG_REGULATOR_RT5190A is not set
# CONFIG_REGULATOR_RT5739 is not set
# CONFIG_REGULATOR_RT5759 is not set
# CONFIG_REGULATOR_RT6160 is not set
# CONFIG_REGULATOR_RT6190 is not set
# CONFIG_REGULATOR_RT6245 is not set
# CONFIG_REGULATOR_RT8092 is not set
# CONFIG_REGULATOR_RTQ2134 is not set
# CONFIG_REGULATOR_RTMV20 is not set
# CONFIG_REGULATOR_RTQ6752 is not set
# CONFIG_REGULATOR_RTQ2208 is not set
# CONFIG_REGULATOR_SGM3804 is not set
# CONFIG_REGULATOR_SLG51000 is not set
# CONFIG_REGULATOR_SY8106A is not set
# CONFIG_REGULATOR_SY8824X is not set
# CONFIG_REGULATOR_SY8827N is not set
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS62360 is not set
# CONFIG_REGULATOR_TPS6286X is not set
# CONFIG_REGULATOR_TPS6287X is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_TPS65132 is not set
# CONFIG_REGULATOR_TPS65185 is not set
# CONFIG_REGULATOR_TPS6524X is not set
CONFIG_REGULATOR_TWL4030=y
# CONFIG_REGULATOR_VCTRL is not set
CONFIG_RC_CORE=y
# CONFIG_LIRC is not set
# CONFIG_RC_MAP is not set
# CONFIG_RC_DECODERS is not set
CONFIG_RC_DEVICES=y
# CONFIG_IR_ENE is not set
# CONFIG_IR_FINTEK is not set
# CONFIG_IR_GPIO_CIR is not set
# CONFIG_IR_HIX5HD2 is not set
CONFIG_IR_IGORPLUGUSB=y
CONFIG_IR_IGUANA=y
CONFIG_IR_IMON=y
CONFIG_IR_IMON_RAW=y
# CONFIG_IR_ITE_CIR is not set
CONFIG_IR_MCEUSB=y
# CONFIG_IR_NUVOTON is not set
CONFIG_IR_REDRAT3=y
# CONFIG_IR_SERIAL is not set
CONFIG_IR_STREAMZAP=y
CONFIG_IR_TOY=y
CONFIG_IR_TTUSBIR=y
# CONFIG_IR_WINBOND_CIR is not set
CONFIG_RC_ATI_REMOTE=y
# CONFIG_RC_LOOPBACK is not set
CONFIG_RC_XBOX_DVD=y
CONFIG_CEC_CORE=y

#
# CEC support
#
# CONFIG_MEDIA_CEC_RC is not set
CONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set
# CONFIG_CEC_NXP_TDA9950 is not set
# CONFIG_CEC_CROS_EC is not set
# CONFIG_CEC_GPIO is not set
# CONFIG_CEC_SECO is not set
# CONFIG_USB_EXTRON_DA_HD_4K_PLUS_CEC is not set
CONFIG_USB_PULSE8_CEC=y
CONFIG_USB_RAINSHADOW_CEC=y
# end of CEC support

CONFIG_MEDIA_SUPPORT=y
# CONFIG_MEDIA_SUPPORT_FILTER is not set
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set

#
# Media device types
#
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_MEDIA_ANALOG_TV_SUPPORT=y
CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
CONFIG_MEDIA_RADIO_SUPPORT=y
CONFIG_MEDIA_SDR_SUPPORT=y
CONFIG_MEDIA_PLATFORM_SUPPORT=y
CONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types

#
# Media core support
#
CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_DVB_CORE=y
# end of Media core support

#
# Video4Linux options
#
CONFIG_VIDEO_V4L2_I2C=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
CONFIG_VIDEO_TUNER=y
# end of Video4Linux options

#
# Media controller options
#
CONFIG_MEDIA_CONTROLLER_DVB=y
# end of Media controller options

#
# Digital TV options
#
# CONFIG_DVB_MMAP is not set
# CONFIG_DVB_NET is not set
CONFIG_DVB_MAX_ADAPTERS=16
# CONFIG_DVB_DYNAMIC_MINORS is not set
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set
# CONFIG_DVB_ULE_DEBUG is not set
# end of Digital TV options

#
# Media drivers
#

#
# Media drivers
#
CONFIG_MEDIA_USB_SUPPORT=y

#
# Webcam devices
#
CONFIG_USB_GSPCA=y
CONFIG_USB_GSPCA_BENQ=y
CONFIG_USB_GSPCA_CONEX=y
CONFIG_USB_GSPCA_CPIA1=y
CONFIG_USB_GSPCA_DTCS033=y
CONFIG_USB_GSPCA_ETOMS=y
CONFIG_USB_GSPCA_FINEPIX=y
CONFIG_USB_GSPCA_JEILINJ=y
CONFIG_USB_GSPCA_JL2005BCD=y
CONFIG_USB_GSPCA_KINECT=y
CONFIG_USB_GSPCA_KONICA=y
CONFIG_USB_GSPCA_MARS=y
CONFIG_USB_GSPCA_MR97310A=y
CONFIG_USB_GSPCA_NW80X=y
CONFIG_USB_GSPCA_OV519=y
CONFIG_USB_GSPCA_OV534=y
CONFIG_USB_GSPCA_OV534_9=y
CONFIG_USB_GSPCA_PAC207=y
CONFIG_USB_GSPCA_PAC7302=y
CONFIG_USB_GSPCA_PAC7311=y
CONFIG_USB_GSPCA_SE401=y
CONFIG_USB_GSPCA_SN9C2028=y
CONFIG_USB_GSPCA_SN9C20X=y
CONFIG_USB_GSPCA_SONIXB=y
CONFIG_USB_GSPCA_SONIXJ=y
CONFIG_USB_GSPCA_SPCA1528=y
CONFIG_USB_GSPCA_SPCA500=y
CONFIG_USB_GSPCA_SPCA501=y
CONFIG_USB_GSPCA_SPCA505=y
CONFIG_USB_GSPCA_SPCA506=y
CONFIG_USB_GSPCA_SPCA508=y
CONFIG_USB_GSPCA_SPCA561=y
CONFIG_USB_GSPCA_SQ905=y
CONFIG_USB_GSPCA_SQ905C=y
CONFIG_USB_GSPCA_SQ930X=y
CONFIG_USB_GSPCA_STK014=y
CONFIG_USB_GSPCA_STK1135=y
CONFIG_USB_GSPCA_STV0680=y
CONFIG_USB_GSPCA_SUNPLUS=y
CONFIG_USB_GSPCA_T613=y
CONFIG_USB_GSPCA_TOPRO=y
CONFIG_USB_GSPCA_TOUPTEK=y
CONFIG_USB_GSPCA_TV8532=y
CONFIG_USB_GSPCA_VC032X=y
CONFIG_USB_GSPCA_VICAM=y
CONFIG_USB_GSPCA_XIRLINK_CIT=y
CONFIG_USB_GSPCA_ZC3XX=y
CONFIG_USB_GL860=y
CONFIG_USB_M5602=y
CONFIG_USB_STV06XX=y
CONFIG_USB_PWC=y
# CONFIG_USB_PWC_DEBUG is not set
CONFIG_USB_PWC_INPUT_EVDEV=y
CONFIG_USB_S2255=y
CONFIG_VIDEO_USBTV=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

#
# Analog TV USB devices
#
CONFIG_VIDEO_GO7007=y
CONFIG_VIDEO_GO7007_USB=y
CONFIG_VIDEO_GO7007_LOADER=y
CONFIG_VIDEO_GO7007_USB_S2250_BOARD=y
CONFIG_VIDEO_HDPVR=y
CONFIG_VIDEO_PVRUSB2=y
CONFIG_VIDEO_PVRUSB2_SYSFS=y
CONFIG_VIDEO_PVRUSB2_DVB=y
# CONFIG_VIDEO_PVRUSB2_DEBUGIFC is not set
CONFIG_VIDEO_STK1160=y

#
# Analog/digital TV USB devices
#
CONFIG_VIDEO_AU0828=y
CONFIG_VIDEO_AU0828_V4L2=y
CONFIG_VIDEO_AU0828_RC=y
CONFIG_VIDEO_CX231XX=y
CONFIG_VIDEO_CX231XX_RC=y
CONFIG_VIDEO_CX231XX_ALSA=y
CONFIG_VIDEO_CX231XX_DVB=y

#
# Digital TV USB devices
#
CONFIG_DVB_AS102=y
CONFIG_DVB_B2C2_FLEXCOP_USB=y
# CONFIG_DVB_B2C2_FLEXCOP_USB_DEBUG is not set
CONFIG_DVB_USB_V2=y
CONFIG_DVB_USB_AF9015=y
CONFIG_DVB_USB_AF9035=y
CONFIG_DVB_USB_ANYSEE=y
CONFIG_DVB_USB_AU6610=y
CONFIG_DVB_USB_AZ6007=y
CONFIG_DVB_USB_CE6230=y
CONFIG_DVB_USB_DVBSKY=y
CONFIG_DVB_USB_EC168=y
CONFIG_DVB_USB_GL861=y
CONFIG_DVB_USB_LME2510=y
CONFIG_DVB_USB_MXL111SF=y
CONFIG_DVB_USB_RTL28XXU=y
CONFIG_DVB_USB_ZD1301=y
CONFIG_DVB_USB=y
# CONFIG_DVB_USB_DEBUG is not set
CONFIG_DVB_USB_A800=y
CONFIG_DVB_USB_AF9005=y
CONFIG_DVB_USB_AF9005_REMOTE=y
CONFIG_DVB_USB_AZ6027=y
CONFIG_DVB_USB_CINERGY_T2=y
CONFIG_DVB_USB_CXUSB=y
CONFIG_DVB_USB_CXUSB_ANALOG=y
CONFIG_DVB_USB_DIB0700=y
CONFIG_DVB_USB_DIB3000MC=y
CONFIG_DVB_USB_DIBUSB_MB=y
# CONFIG_DVB_USB_DIBUSB_MB_FAULTY is not set
CONFIG_DVB_USB_DIBUSB_MC=y
CONFIG_DVB_USB_DIGITV=y
CONFIG_DVB_USB_DTT200U=y
CONFIG_DVB_USB_DTV5100=y
CONFIG_DVB_USB_DW2102=y
CONFIG_DVB_USB_GP8PSK=y
CONFIG_DVB_USB_M920X=y
CONFIG_DVB_USB_NOVA_T_USB2=y
CONFIG_DVB_USB_OPERA1=y
CONFIG_DVB_USB_PCTV452E=y
CONFIG_DVB_USB_TECHNISAT_USB2=y
CONFIG_DVB_USB_TTUSB2=y
CONFIG_DVB_USB_UMT_010=y
CONFIG_DVB_USB_VP702X=y
CONFIG_DVB_USB_VP7045=y
CONFIG_SMS_USB_DRV=y
CONFIG_DVB_TTUSB_BUDGET=y
CONFIG_DVB_TTUSB_DEC=y

#
# Webcam, TV (analog/digital) USB devices
#
CONFIG_VIDEO_EM28XX=y
CONFIG_VIDEO_EM28XX_V4L2=y
CONFIG_VIDEO_EM28XX_ALSA=y
CONFIG_VIDEO_EM28XX_DVB=y
CONFIG_VIDEO_EM28XX_RC=y

#
# Software defined radio USB devices
#
CONFIG_USB_AIRSPY=y
CONFIG_USB_HACKRF=y
CONFIG_USB_MSI2500=y
CONFIG_MEDIA_PCI_SUPPORT=y

#
# Media capture support
#
# CONFIG_VIDEO_HWS is not set
# CONFIG_VIDEO_SOLO6X10 is not set
# CONFIG_VIDEO_TW5864 is not set
# CONFIG_VIDEO_TW68 is not set
# CONFIG_VIDEO_TW686X is not set
# CONFIG_VIDEO_ZORAN is not set

#
# Media capture/analog TV support
#
# CONFIG_VIDEO_DT3155 is not set
# CONFIG_VIDEO_IVTV is not set
# CONFIG_VIDEO_HEXIUM_GEMINI is not set
# CONFIG_VIDEO_HEXIUM_ORION is not set
# CONFIG_VIDEO_MXB is not set

#
# Media capture/analog/hybrid TV support
#
# CONFIG_VIDEO_BT848 is not set
# CONFIG_VIDEO_CX18 is not set
# CONFIG_VIDEO_CX23885 is not set
# CONFIG_VIDEO_CX25821 is not set
# CONFIG_VIDEO_CX88 is not set
CONFIG_VIDEO_SAA7134=y
# CONFIG_VIDEO_SAA7134_ALSA is not set
# CONFIG_VIDEO_SAA7134_RC is not set
# CONFIG_VIDEO_SAA7134_DVB is not set
CONFIG_VIDEO_SAA7134_GO7007=y
# CONFIG_VIDEO_SAA7164 is not set

#
# Media digital TV PCI Adapters
#
CONFIG_DVB_B2C2_FLEXCOP_PCI=y
# CONFIG_DVB_B2C2_FLEXCOP_PCI_DEBUG is not set
# CONFIG_DVB_DDBRIDGE is not set
# CONFIG_DVB_DM1105 is not set
# CONFIG_MANTIS_CORE is not set
# CONFIG_DVB_NETUP_UNIDVB is not set
# CONFIG_DVB_NGENE is not set
# CONFIG_DVB_PLUTO2 is not set
# CONFIG_DVB_PT1 is not set
# CONFIG_DVB_PT3 is not set
# CONFIG_DVB_SMIPCIE is not set
# CONFIG_DVB_BUDGET_CORE is not set
# CONFIG_VIDEO_IPU3_CIO2 is not set
# CONFIG_VIDEO_INTEL_IPU6 is not set
# CONFIG_INTEL_VSC is not set
# CONFIG_IPU_BRIDGE is not set
CONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SAA7706H is not set
CONFIG_RADIO_SHARK=y
CONFIG_RADIO_SHARK2=y
CONFIG_RADIO_SI4713=y
CONFIG_RADIO_TEA575X=y
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_TEF6862 is not set
CONFIG_USB_DSBR=y
CONFIG_USB_KEENE=y
CONFIG_USB_MA901=y
CONFIG_USB_MR800=y
CONFIG_USB_RAREMONO=y
CONFIG_RADIO_SI470X=y
CONFIG_USB_SI470X=y
# CONFIG_I2C_SI470X is not set
CONFIG_USB_SI4713=y
# CONFIG_PLATFORM_SI4713 is not set
CONFIG_I2C_SI4713=y
# CONFIG_MEDIA_PLATFORM_DRIVERS is not set

#
# MMC/SDIO DVB adapters
#
CONFIG_SMS_SDIO_DRV=y
# CONFIG_V4L_TEST_DRIVERS is not set
# CONFIG_DVB_TEST_DRIVERS is not set
CONFIG_MEDIA_COMMON_OPTIONS=y

#
# common driver options
#
CONFIG_CYPRESS_FIRMWARE=y
CONFIG_TTPCI_EEPROM=y
CONFIG_UVC_COMMON=y
CONFIG_VIDEO_CX2341X=y
CONFIG_VIDEO_TVEEPROM=y
CONFIG_DVB_B2C2_FLEXCOP=y
CONFIG_SMS_SIANO_MDTV=y
CONFIG_SMS_SIANO_RC=y
CONFIG_SMS_SIANO_DEBUGFS=y
CONFIG_VIDEOBUF2_CORE=y
CONFIG_VIDEOBUF2_V4L2=y
CONFIG_VIDEOBUF2_MEMOPS=y
CONFIG_VIDEOBUF2_VMALLOC=y
CONFIG_VIDEOBUF2_DMA_SG=y
# end of Media drivers

#
# Media ancillary drivers
#
CONFIG_MEDIA_ATTACH=y
# CONFIG_VIDEO_IR_I2C is not set
# CONFIG_VIDEO_CAMERA_SENSOR is not set

#
# Camera ISPs
#
# CONFIG_VIDEO_THP7312 is not set
# end of Camera ISPs

# CONFIG_VIDEO_CAMERA_LENS is not set

#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_LM3560 is not set
# CONFIG_VIDEO_LM3646 is not set
# end of Flash devices

#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_CS3308 is not set
# CONFIG_VIDEO_CS5345 is not set
CONFIG_VIDEO_CS53L32A=y
CONFIG_VIDEO_MSP3400=y
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# CONFIG_VIDEO_TDA1997X is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_UDA1342 is not set
# CONFIG_VIDEO_VP27SMPX is not set
# CONFIG_VIDEO_WM8739 is not set
CONFIG_VIDEO_WM8775=y
# end of Audio decoders, processors and mixers

#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
# end of RDS decoders

#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_ADV7183 is not set
# CONFIG_VIDEO_ADV748X is not set
# CONFIG_VIDEO_ADV7604 is not set
# CONFIG_VIDEO_ADV7842 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_ISL7998X is not set
# CONFIG_VIDEO_LT6911UXE is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_MAX9286 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
CONFIG_VIDEO_SAA711X=y
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TC358746 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9900 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set

#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
CONFIG_VIDEO_CX25840=y
# end of Video decoders

#
# Video encoders
#
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_ADV7393 is not set
# CONFIG_VIDEO_ADV7511 is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_THS8200 is not set
# end of Video encoders

#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
# end of Video improvement chips

#
# Audio/Video compression chips
#
# CONFIG_VIDEO_SAA6752HS is not set
# end of Audio/Video compression chips

#
# SDR tuner chips
#
# CONFIG_SDR_MAX2175 is not set
# end of SDR tuner chips

#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_INTEL_CVS is not set
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_ST_MIPID02 is not set
# CONFIG_VIDEO_THS7303 is not set
# end of Miscellaneous helper chips

#
# Video serializers and deserializers
#
# CONFIG_VIDEO_DS90UB913 is not set
# CONFIG_VIDEO_DS90UB953 is not set
# CONFIG_VIDEO_DS90UB960 is not set
# CONFIG_VIDEO_MAX96714 is not set
# CONFIG_VIDEO_MAX96717 is not set
# end of Video serializers and deserializers

#
# Media SPI Adapters
#
# CONFIG_CXD2880_SPI_DRV is not set
# CONFIG_VIDEO_GS1662 is not set
# end of Media SPI Adapters

CONFIG_MEDIA_TUNER=y

#
# Customize TV tuners
#
# CONFIG_MEDIA_TUNER_E4000 is not set
# CONFIG_MEDIA_TUNER_FC0011 is not set
# CONFIG_MEDIA_TUNER_FC0012 is not set
# CONFIG_MEDIA_TUNER_FC0013 is not set
# CONFIG_MEDIA_TUNER_FC2580 is not set
# CONFIG_MEDIA_TUNER_IT913X is not set
# CONFIG_MEDIA_TUNER_M88RS6000T is not set
# CONFIG_MEDIA_TUNER_MAX2165 is not set
# CONFIG_MEDIA_TUNER_MC44S803 is not set
CONFIG_MEDIA_TUNER_MSI001=y
# CONFIG_MEDIA_TUNER_MT2060 is not set
# CONFIG_MEDIA_TUNER_MT2063 is not set
# CONFIG_MEDIA_TUNER_MT20XX is not set
# CONFIG_MEDIA_TUNER_MT2131 is not set
# CONFIG_MEDIA_TUNER_MT2266 is not set
# CONFIG_MEDIA_TUNER_MXL301RF is not set
# CONFIG_MEDIA_TUNER_MXL5005S is not set
# CONFIG_MEDIA_TUNER_MXL5007T is not set
# CONFIG_MEDIA_TUNER_QM1D1B0004 is not set
# CONFIG_MEDIA_TUNER_QM1D1C0042 is not set
# CONFIG_MEDIA_TUNER_QT1010 is not set
# CONFIG_MEDIA_TUNER_R820T is not set
# CONFIG_MEDIA_TUNER_SI2157 is not set
# CONFIG_MEDIA_TUNER_SIMPLE is not set
# CONFIG_MEDIA_TUNER_TDA18212 is not set
# CONFIG_MEDIA_TUNER_TDA18218 is not set
# CONFIG_MEDIA_TUNER_TDA18250 is not set
# CONFIG_MEDIA_TUNER_TDA18271 is not set
# CONFIG_MEDIA_TUNER_TDA827X is not set
# CONFIG_MEDIA_TUNER_TDA8290 is not set
# CONFIG_MEDIA_TUNER_TDA9887 is not set
# CONFIG_MEDIA_TUNER_TEA5761 is not set
# CONFIG_MEDIA_TUNER_TEA5767 is not set
# CONFIG_MEDIA_TUNER_TUA9001 is not set
# CONFIG_MEDIA_TUNER_XC2028 is not set
# CONFIG_MEDIA_TUNER_XC4000 is not set
# CONFIG_MEDIA_TUNER_XC5000 is not set
# end of Customize TV tuners

#
# Customise DVB Frontends
#

#
# Multistandard (satellite) frontends
#
# CONFIG_DVB_M88DS3103 is not set
# CONFIG_DVB_MXL5XX is not set
# CONFIG_DVB_STB0899 is not set
# CONFIG_DVB_STB6100 is not set
# CONFIG_DVB_STV090x is not set
# CONFIG_DVB_STV0910 is not set
# CONFIG_DVB_STV6110x is not set
# CONFIG_DVB_STV6111 is not set

#
# Multistandard (cable + terrestrial) frontends
#
# CONFIG_DVB_DRXK is not set
# CONFIG_DVB_MN88472 is not set
# CONFIG_DVB_MN88473 is not set
# CONFIG_DVB_SI2165 is not set
# CONFIG_DVB_TDA18271C2DD is not set

#
# DVB-S (satellite) frontends
#
# CONFIG_DVB_CX24110 is not set
# CONFIG_DVB_CX24116 is not set
# CONFIG_DVB_CX24117 is not set
# CONFIG_DVB_CX24120 is not set
# CONFIG_DVB_CX24123 is not set
# CONFIG_DVB_DS3000 is not set
# CONFIG_DVB_MB86A16 is not set
# CONFIG_DVB_MT312 is not set
# CONFIG_DVB_S5H1420 is not set
# CONFIG_DVB_SI21XX is not set
# CONFIG_DVB_STB6000 is not set
# CONFIG_DVB_STV0288 is not set
# CONFIG_DVB_STV0299 is not set
# CONFIG_DVB_STV0900 is not set
# CONFIG_DVB_STV6110 is not set
# CONFIG_DVB_TDA10071 is not set
# CONFIG_DVB_TDA10086 is not set
# CONFIG_DVB_TDA8083 is not set
# CONFIG_DVB_TDA8261 is not set
# CONFIG_DVB_TDA826X is not set
# CONFIG_DVB_TS2020 is not set
# CONFIG_DVB_TUA6100 is not set
# CONFIG_DVB_TUNER_CX24113 is not set
# CONFIG_DVB_TUNER_ITD1000 is not set
# CONFIG_DVB_VES1X93 is not set
# CONFIG_DVB_ZL10036 is not set
# CONFIG_DVB_ZL10039 is not set

#
# DVB-T (terrestrial) frontends
#
CONFIG_DVB_AF9013=y
CONFIG_DVB_AS102_FE=y
# CONFIG_DVB_CX22700 is not set
# CONFIG_DVB_CX22702 is not set
# CONFIG_DVB_CXD2820R is not set
# CONFIG_DVB_CXD2841ER is not set
CONFIG_DVB_DIB3000MB=y
CONFIG_DVB_DIB3000MC=y
# CONFIG_DVB_DIB7000M is not set
# CONFIG_DVB_DIB7000P is not set
# CONFIG_DVB_DIB9000 is not set
# CONFIG_DVB_DRXD is not set
CONFIG_DVB_EC100=y
CONFIG_DVB_GP8PSK_FE=y
# CONFIG_DVB_L64781 is not set
# CONFIG_DVB_MT352 is not set
# CONFIG_DVB_NXT6000 is not set
CONFIG_DVB_RTL2830=y
CONFIG_DVB_RTL2832=y
CONFIG_DVB_RTL2832_SDR=y
# CONFIG_DVB_S5H1432 is not set
# CONFIG_DVB_SI2168 is not set
# CONFIG_DVB_SP887X is not set
# CONFIG_DVB_STV0367 is not set
# CONFIG_DVB_TDA10048 is not set
# CONFIG_DVB_TDA1004X is not set
# CONFIG_DVB_ZD1301_DEMOD is not set
CONFIG_DVB_ZL10353=y
# CONFIG_DVB_CXD2880 is not set

#
# DVB-C (cable) frontends
#
# CONFIG_DVB_STV0297 is not set
# CONFIG_DVB_TDA10021 is not set
# CONFIG_DVB_TDA10023 is not set
# CONFIG_DVB_VES1820 is not set

#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends
#
# CONFIG_DVB_AU8522_DTV is not set
# CONFIG_DVB_AU8522_V4L is not set
# CONFIG_DVB_BCM3510 is not set
# CONFIG_DVB_LG2160 is not set
# CONFIG_DVB_LGDT3305 is not set
# CONFIG_DVB_LGDT3306A is not set
# CONFIG_DVB_LGDT330X is not set
# CONFIG_DVB_MXL692 is not set
# CONFIG_DVB_NXT200X is not set
# CONFIG_DVB_OR51132 is not set
# CONFIG_DVB_OR51211 is not set
# CONFIG_DVB_S5H1409 is not set
# CONFIG_DVB_S5H1411 is not set

#
# ISDB-T (terrestrial) frontends
#
# CONFIG_DVB_DIB8000 is not set
# CONFIG_DVB_MB86A20S is not set
# CONFIG_DVB_S921 is not set

#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends
#
# CONFIG_DVB_MN88443X is not set
# CONFIG_DVB_TC90522 is not set

#
# Digital terrestrial only tuners/PLL
#
# CONFIG_DVB_PLL is not set
# CONFIG_DVB_TUNER_DIB0070 is not set
# CONFIG_DVB_TUNER_DIB0090 is not set

#
# SEC control devices for DVB-S
#
# CONFIG_DVB_A8293 is not set
CONFIG_DVB_AF9033=y
# CONFIG_DVB_ASCOT2E is not set
# CONFIG_DVB_ATBM8830 is not set
# CONFIG_DVB_HELENE is not set
# CONFIG_DVB_HORUS3A is not set
# CONFIG_DVB_ISL6405 is not set
# CONFIG_DVB_ISL6421 is not set
# CONFIG_DVB_ISL6423 is not set
# CONFIG_DVB_IX2505V is not set
# CONFIG_DVB_LGS8GL5 is not set
# CONFIG_DVB_LGS8GXX is not set
# CONFIG_DVB_LNBH25 is not set
# CONFIG_DVB_LNBH29 is not set
# CONFIG_DVB_LNBP21 is not set
# CONFIG_DVB_LNBP22 is not set
# CONFIG_DVB_M88RS2000 is not set
# CONFIG_DVB_TDA665x is not set
# CONFIG_DVB_DRX39XYJ is not set

#
# Common Interface (EN50221) controller drivers
#
# CONFIG_DVB_CXD2099 is not set
# CONFIG_DVB_SP2 is not set
# end of Customise DVB Frontends

#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set
# end of Media ancillary drivers

#
# Graphics support
#
CONFIG_APERTURE_HELPERS=y
CONFIG_SCREEN_INFO=y
CONFIG_VIDEO=y
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not set
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
CONFIG_INTEL_GTT=y
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_GPU_BUDDY=y
CONFIG_DRM=y

#
# DRM debugging options
#
# CONFIG_DRM_WERROR is not set
# CONFIG_DRM_DEBUG_MM is not set
# end of DRM debugging options

CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_PANIC is not set
# CONFIG_DRM_RAS is not set
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
CONFIG_DRM_CLIENT_SELECTION=y

#
# Supported DRM clients
#
# CONFIG_DRM_FBDEV_EMULATION is not set
# CONFIG_DRM_CLIENT_LOG is not set
# end of Supported DRM clients

# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_DISPLAY_HELPER=y
# CONFIG_DRM_DISPLAY_DP_AUX_CEC is not set
# CONFIG_DRM_DISPLAY_DP_AUX_CHARDEV is not set
CONFIG_DRM_DISPLAY_DP_HELPER=y
CONFIG_DRM_DISPLAY_DSC_HELPER=y
CONFIG_DRM_DISPLAY_HDCP_HELPER=y
CONFIG_DRM_DISPLAY_HDMI_HELPER=y
CONFIG_DRM_TTM=y
CONFIG_DRM_BUDDY=y
CONFIG_DRM_GEM_SHMEM_HELPER=y
# CONFIG_DRM_AMDGPU is not set

#
# ARM devices
#
# CONFIG_DRM_KOMEDA is not set
# end of ARM devices

# CONFIG_DRM_AST is not set
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_AUX_BRIDGE=y
CONFIG_DRM_AUX_HPD_BRIDGE=y

#
# Display Interface Bridges
#
# CONFIG_DRM_CHIPONE_ICN6211 is not set
# CONFIG_DRM_CHRONTEL_CH7033 is not set
# CONFIG_DRM_DISPLAY_CONNECTOR is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_ITE_IT6263 is not set
# CONFIG_DRM_ITE_IT6505 is not set
# CONFIG_DRM_LONTIUM_LT8912B is not set
# CONFIG_DRM_LONTIUM_LT9211 is not set
# CONFIG_DRM_LONTIUM_LT9611 is not set
# CONFIG_DRM_LONTIUM_LT9611UXC is not set
# CONFIG_DRM_LONTIUM_LT8713SX is not set
# CONFIG_DRM_ITE_IT66121 is not set
# CONFIG_DRM_LVDS_CODEC is not set
# CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW is not set
# CONFIG_DRM_NWL_MIPI_DSI is not set
# CONFIG_DRM_NXP_PTN3460 is not set
# CONFIG_DRM_PARADE_PS8622 is not set
# CONFIG_DRM_PARADE_PS8640 is not set
# CONFIG_DRM_SAMSUNG_DSIM is not set
# CONFIG_DRM_SIL_SII8620 is not set
# CONFIG_DRM_SII902X is not set
# CONFIG_DRM_SII9234 is not set
# CONFIG_DRM_SIMPLE_BRIDGE is not set
# CONFIG_DRM_SOLOMON_SSD2825 is not set
# CONFIG_DRM_THINE_THC63LVD1024 is not set
# CONFIG_DRM_TOSHIBA_TC358762 is not set
# CONFIG_DRM_TOSHIBA_TC358764 is not set
# CONFIG_DRM_TOSHIBA_TC358767 is not set
# CONFIG_DRM_TOSHIBA_TC358768 is not set
# CONFIG_DRM_TOSHIBA_TC358775 is not set
# CONFIG_DRM_TI_DLPC3433 is not set
# CONFIG_DRM_TI_TDP158 is not set
# CONFIG_DRM_TI_TFP410 is not set
# CONFIG_DRM_TI_SN65DSI83 is not set
# CONFIG_DRM_TI_SN65DSI86 is not set
# CONFIG_DRM_TI_TPD12S015 is not set
# CONFIG_DRM_WAVESHARE_BRIDGE is not set
# CONFIG_DRM_ANALOGIX_ANX6345 is not set
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# CONFIG_DRM_ANALOGIX_ANX7625 is not set
# CONFIG_DRM_I2C_ADV7511 is not set
# CONFIG_DRM_CDNS_DSI is not set
# CONFIG_DRM_CDNS_MHDP8546 is not set
# end of Display Interface Bridges

# CONFIG_DRM_ETNAVIV is not set
# CONFIG_DRM_GMA500 is not set
CONFIG_DRM_GUD=y
# CONFIG_DRM_HISI_HIBMC is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y

#
# drm/i915 Debugging
#
# CONFIG_DRM_I915_WERROR is not set
# CONFIG_DRM_I915_REPLAY_GPU_HANGS_API is not set
# CONFIG_DRM_I915_DEBUG is not set
# CONFIG_DRM_I915_DEBUG_MMIO is not set
# CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set
# CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set
# CONFIG_DRM_I915_DEBUG_GUC is not set
# CONFIG_DRM_I915_SELFTEST is not set
# CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set
# CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set
# CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set
# CONFIG_DRM_I915_DEBUG_WAKEREF is not set
# end of drm/i915 Debugging

#
# drm/i915 Profile Guided Optimisation
#
CONFIG_DRM_I915_REQUEST_TIMEOUT=20000
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_PREEMPT_TIMEOUT_COMPUTE=7500
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
# end of drm/i915 Profile Guided Optimisation

# CONFIG_DRM_LOGICVC is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_NOUVEAU is not set
CONFIG_DRM_PANEL=y

#
# Display Panels
#
# CONFIG_DRM_PANEL_ABT_Y030XX067A is not set
# CONFIG_DRM_PANEL_ARM_VERSATILE is not set
# CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596 is not set
# CONFIG_DRM_PANEL_AUO_A030JTN01 is not set
# CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0 is not set
# CONFIG_DRM_PANEL_BOE_HIMAX8279D is not set
# CONFIG_DRM_PANEL_BOE_TD4320 is not set
# CONFIG_DRM_PANEL_BOE_TH101MB31UIG002_28A is not set
# CONFIG_DRM_PANEL_BOE_TV101WUM_NL6 is not set
# CONFIG_DRM_PANEL_BOE_TV101WUM_LL2 is not set
# CONFIG_DRM_PANEL_CHIPWEALTH_CH13726A is not set
# CONFIG_DRM_PANEL_EBBG_FT8719 is not set
# CONFIG_DRM_PANEL_ELIDA_KD35T133 is not set
# CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02 is not set
# CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D is not set
# CONFIG_DRM_PANEL_FOCALTECH_OTA7290B is not set
# CONFIG_DRM_PANEL_DSI_CM is not set
# CONFIG_DRM_PANEL_LVDS is not set
# CONFIG_DRM_PANEL_HIMAX_HX8279 is not set
# CONFIG_DRM_PANEL_HIMAX_HX83102 is not set
# CONFIG_DRM_PANEL_HIMAX_HX83112A is not set
# CONFIG_DRM_PANEL_HIMAX_HX83112B is not set
# CONFIG_DRM_PANEL_HIMAX_HX83121A is not set
# CONFIG_DRM_PANEL_HIMAX_HX8394 is not set
# CONFIG_DRM_PANEL_HYDIS_HV101HD1 is not set
# CONFIG_DRM_PANEL_ILITEK_IL9322 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9805 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9806E_DSI is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9881C is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9882T is not set
# CONFIG_DRM_PANEL_INNOLUX_EJ030NA is not set
# CONFIG_DRM_PANEL_INNOLUX_P079ZCA is not set
# CONFIG_DRM_PANEL_JADARD_JD9365DA_H3 is not set
# CONFIG_DRM_PANEL_JDI_LPM102A188A is not set
# CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
# CONFIG_DRM_PANEL_JDI_R63452 is not set
# CONFIG_DRM_PANEL_KHADAS_TS050 is not set
# CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set
# CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W is not set
# CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829 is not set
# CONFIG_DRM_PANEL_LINCOLNTECH_LCD197 is not set
# CONFIG_DRM_PANEL_LG_LB035Q02 is not set
# CONFIG_DRM_PANEL_LG_LD070WX3 is not set
# CONFIG_DRM_PANEL_LG_LG4573 is not set
# CONFIG_DRM_PANEL_LG_SW43408 is not set
# CONFIG_DRM_PANEL_LXD_M9189A is not set
# CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966 is not set
# CONFIG_DRM_PANEL_MANTIX_MLAF057WE51 is not set
# CONFIG_DRM_PANEL_MOTOROLA_MOT is not set
# CONFIG_DRM_PANEL_NEC_NL8048HL11 is not set
# CONFIG_DRM_PANEL_NEWVISION_NV3051D is not set
# CONFIG_DRM_PANEL_NEWVISION_NV3052C is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35510 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35532 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35560 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35950 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36523 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36672A is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36672E is not set
# CONFIG_DRM_PANEL_NOVATEK_NT37700F is not set
# CONFIG_DRM_PANEL_NOVATEK_NT37801 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT39016 is not set
# CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO is not set
# CONFIG_DRM_PANEL_ORISETECH_OTA5601A is not set
# CONFIG_DRM_PANEL_ORISETECH_OTM8009A is not set
# CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS is not set
# CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00 is not set
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM67191 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM67200 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM68200 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM692E5 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM69380 is not set
# CONFIG_DRM_PANEL_RENESAS_R61307 is not set
# CONFIG_DRM_PANEL_RENESAS_R69328 is not set
# CONFIG_DRM_PANEL_RONBO_RB070D30 is not set
# CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20 is not set
# CONFIG_DRM_PANEL_SAMSUNG_DB7430 is not set
# CONFIG_DRM_PANEL_SAMSUNG_LD9040 is not set
# CONFIG_DRM_PANEL_SAMSUNG_LTL106HL02 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D16D0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D27A1 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3FC2X01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3HA8 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E63M0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8FC0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_SOFEF00 is not set
# CONFIG_DRM_PANEL_SEIKO_43WVF1G is not set
# CONFIG_DRM_PANEL_SHARP_LQ079L1SX01 is not set
# CONFIG_DRM_PANEL_SHARP_LQ101R1SX01 is not set
# CONFIG_DRM_PANEL_SHARP_LS037V7DW01 is not set
# CONFIG_DRM_PANEL_SHARP_LS043T1LE01 is not set
# CONFIG_DRM_PANEL_SHARP_LS060T1SX01 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7701 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7703 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
# CONFIG_DRM_PANEL_SONY_ACX565AKM is not set
# CONFIG_DRM_PANEL_SONY_TD4353_JDI is not set
# CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521 is not set
# CONFIG_DRM_PANEL_STARTEK_KD070FHFID015 is not set
# CONFIG_DRM_PANEL_EDP is not set
# CONFIG_DRM_PANEL_SIMPLE is not set
# CONFIG_DRM_PANEL_SUMMIT is not set
# CONFIG_DRM_PANEL_SYNAPTICS_R63353 is not set
# CONFIG_DRM_PANEL_SYNAPTICS_TDDI is not set
# CONFIG_DRM_PANEL_TDO_TL070WSH30 is not set
# CONFIG_DRM_PANEL_TPO_TD028TTEC1 is not set
# CONFIG_DRM_PANEL_TPO_TD043MTEA1 is not set
# CONFIG_DRM_PANEL_TPO_TPG110 is not set
# CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA is not set
# CONFIG_DRM_PANEL_VISIONOX_G2647FB105 is not set
# CONFIG_DRM_PANEL_VISIONOX_R66451 is not set
# CONFIG_DRM_PANEL_VISIONOX_RM69299 is not set
# CONFIG_DRM_PANEL_VISIONOX_RM692E5 is not set
# CONFIG_DRM_PANEL_VISIONOX_VTDR6130 is not set
# CONFIG_DRM_PANEL_WIDECHIPS_WS2401 is not set
# CONFIG_DRM_PANEL_XINPENG_XPP055C272 is not set
# end of Display Panels

# CONFIG_DRM_QXL is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_ST7571 is not set
# CONFIG_DRM_ST7586 is not set
# CONFIG_DRM_ST7735R is not set
# CONFIG_DRM_ST7920 is not set
# CONFIG_DRM_SSD130X is not set

#
# Drivers for system framebuffers
#
# CONFIG_DRM_SIMPLEDRM is not set
# CONFIG_DRM_VESADRM is not set
# end of Drivers for system framebuffers

# CONFIG_DRM_APPLETBDRM is not set
# CONFIG_DRM_ARCPGU is not set
# CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
CONFIG_DRM_GM12U320=y
# CONFIG_DRM_PANEL_MIPI_DBI is not set
# CONFIG_DRM_PIXPAPER is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_SHARP_MEMORY is not set
CONFIG_DRM_UDL=y
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_VGEM is not set
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VIRTIO_GPU_KMS=y
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_XE is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

#
# Frame buffer Devices
#
CONFIG_FB=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
CONFIG_FB_SMSCUFX=y
CONFIG_FB_UDL=y
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_FB_SM712 is not set
CONFIG_FB_CORE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB_DEVICE=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYSMEM_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_SYSMEM_HELPERS=y
CONFIG_FB_SYSMEM_HELPERS_DEFERRED=y
CONFIG_FB_MODE_HELPERS=y
# CONFIG_FB_TILEBLITTING is not set
# end of Frame buffer Devices

#
# Backlight & LCD device support
#
CONFIG_LCD_CLASS_DEVICE=y
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not set
# CONFIG_LCD_PLATFORM is not set
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_AW99706 is not set
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_KTD2801 is not set
# CONFIG_BACKLIGHT_KTZ8866 is not set
# CONFIG_BACKLIGHT_MAX25014 is not set
# CONFIG_BACKLIGHT_MT6370 is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3509 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_PANDORA is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# CONFIG_BACKLIGHT_LED is not set
# end of Backlight & LCD device support

CONFIG_HDMI=y
# CONFIG_FIRMWARE_EDID is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
# CONFIG_FRAMEBUFFER_CONSOLE is not set
# end of Console display driver support

# CONFIG_LOGO is not set
# CONFIG_TRACE_GPU_MEM is not set
# end of Graphics support

# CONFIG_DRM_ACCEL is not set
CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_UMP=y
# CONFIG_SND_UMP_LEGACY_RAWMIDI is not set
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
# CONFIG_SND_OSSEMUL is not set
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_HRTIMER=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_CTL_FAST_LOOKUP=y
# CONFIG_SND_DEBUG is not set
# CONFIG_SND_CTL_INPUT_VALIDATION is not set
# CONFIG_SND_UTIMER is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=y
CONFIG_SND_SEQ_MIDI=y
# CONFIG_SND_SEQ_UMP is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_PCSP is not set
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_ALOOP is not set
# CONFIG_SND_PCMTEST is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_MTS64 is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_SERIAL_GENERIC is not set
# CONFIG_SND_MPU401 is not set
# CONFIG_SND_PORTMAN2X4 is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SE6X is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set

#
# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_CTL_DEV_ID is not set
CONFIG_SND_HDA_PREALLOC_SIZE=0
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_ACPI is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_SENARYTECH is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_CM9825 is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
# CONFIG_SND_HDA_GENERIC is not set
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_SPI is not set
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_COMPONENT=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_INTEL_NHLT=y
CONFIG_SND_INTEL_DSP_CONFIG=y
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=y
# end of HD-Audio

# CONFIG_SND_SPI is not set
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_AUDIO_MIDI_V2=y
CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER=y
CONFIG_SND_USB_UA101=y
CONFIG_SND_USB_USX2Y=y
CONFIG_SND_USB_CAIAQ=y
CONFIG_SND_USB_CAIAQ_INPUT=y
CONFIG_SND_USB_US122L=y
# CONFIG_SND_USB_US144MKII is not set
CONFIG_SND_USB_6FIRE=y
CONFIG_SND_USB_HIFACE=y
CONFIG_SND_BCD2000=y
CONFIG_SND_USB_LINE6=y
CONFIG_SND_USB_POD=y
CONFIG_SND_USB_PODHD=y
CONFIG_SND_USB_TONEPORT=y
CONFIG_SND_USB_VARIAX=y
CONFIG_SND_PCMCIA=y
# CONFIG_SND_VXPOCKET is not set
# CONFIG_SND_PDAUDIOCF is not set
CONFIG_SND_SOC=y
# CONFIG_SND_SOC_USB is not set

#
# Analog Devices
#
# CONFIG_SND_SOC_ADI_AXI_I2S is not set
# CONFIG_SND_SOC_ADI_AXI_SPDIF is not set
# end of Analog Devices

#
# AMD
#
# CONFIG_SND_SOC_AMD_ACP is not set
# CONFIG_SND_SOC_AMD_ACP3x is not set
# CONFIG_SND_SOC_AMD_RENOIR is not set
# CONFIG_SND_SOC_AMD_ACP5x is not set
# CONFIG_SND_SOC_AMD_ACP6x is not set
# CONFIG_SND_AMD_ACP_CONFIG is not set
# CONFIG_SND_SOC_AMD_ACP_COMMON is not set
# end of AMD

#
# Apple
#
# end of Apple

#
# Atmel
#
# CONFIG_SND_SOC_MIKROE_PROTO is not set
# end of Atmel

#
# Au1x
#
# end of Au1x

#
# Broadcom
#
# CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
# end of Broadcom

#
# Cirrus Logic
#
# end of Cirrus Logic

#
# DesignWare
#
# CONFIG_SND_DESIGNWARE_I2S is not set
# end of DesignWare

#
# Freescale
#

#
# Common SoC Audio options for Freescale CPUs:
#
# CONFIG_SND_SOC_FSL_ASRC is not set
# CONFIG_SND_SOC_FSL_SAI is not set
# CONFIG_SND_SOC_FSL_AUDMIX is not set
# CONFIG_SND_SOC_FSL_SSI is not set
# CONFIG_SND_SOC_FSL_SPDIF is not set
# CONFIG_SND_SOC_FSL_ESAI is not set
# CONFIG_SND_SOC_FSL_MICFIL is not set
# CONFIG_SND_SOC_FSL_XCVR is not set
# CONFIG_SND_SOC_IMX_AUDMUX is not set
# end of Freescale

#
# Google
#
# CONFIG_SND_SOC_CHV3_I2S is not set
# end of Google

#
# Hisilicon
#
# CONFIG_SND_I2S_HI6210_I2S is not set
# end of Hisilicon

#
# JZ4740
#
# end of JZ4740

#
# Kirkwood
#
# end of Kirkwood

#
# Loongson
#
# end of Loongson

#
# Intel
#
# CONFIG_SND_SOC_INTEL_SST_TOPLEVEL is not set
# CONFIG_SND_SOC_INTEL_AVS is not set
# end of Intel

#
# Mediatek
#
# CONFIG_SND_SOC_MTK_BTCVSD is not set
# end of Mediatek

#
# PXA
#
# end of PXA

#
# SoundWire (SDCA)
#
# CONFIG_SND_SOC_SDCA is not set
CONFIG_SND_SOC_SDCA_OPTIONAL=y
# end of SoundWire (SDCA)

#
# ST SPEAr
#
# end of ST SPEAr

#
# Spreadtrum
#
# end of Spreadtrum

#
# STMicroelectronics STM32
#
# end of STMicroelectronics STM32

#
# Tegra
#
# end of Tegra

#
# Xilinx
#
# CONFIG_SND_SOC_XILINX_I2S is not set
# CONFIG_SND_SOC_XILINX_AUDIO_FORMATTER is not set
# CONFIG_SND_SOC_XILINX_SPDIF is not set
# end of Xilinx

#
# Xtensa
#
# CONFIG_SND_SOC_XTFPGA_I2S is not set
# end of Xtensa

# CONFIG_SND_SOC_SOF_TOPLEVEL is not set
CONFIG_SND_SOC_I2C_AND_SPI=y

#
# CODEC drivers
#
# CONFIG_SND_SOC_AC97_CODEC is not set
# CONFIG_SND_SOC_ADAU1372_I2C is not set
# CONFIG_SND_SOC_ADAU1372_SPI is not set
# CONFIG_SND_SOC_ADAU1373 is not set
# CONFIG_SND_SOC_ADAU1701 is not set
# CONFIG_SND_SOC_ADAU1761_I2C is not set
# CONFIG_SND_SOC_ADAU1761_SPI is not set
# CONFIG_SND_SOC_ADAU7002 is not set
# CONFIG_SND_SOC_ADAU7118_HW is not set
# CONFIG_SND_SOC_ADAU7118_I2C is not set
# CONFIG_SND_SOC_AK4104 is not set
# CONFIG_SND_SOC_AK4118 is not set
# CONFIG_SND_SOC_AK4375 is not set
# CONFIG_SND_SOC_AK4458 is not set
# CONFIG_SND_SOC_AK4554 is not set
# CONFIG_SND_SOC_AK4613 is not set
# CONFIG_SND_SOC_AK4619 is not set
# CONFIG_SND_SOC_AK4642 is not set
# CONFIG_SND_SOC_AK5386 is not set
# CONFIG_SND_SOC_AK5558 is not set
# CONFIG_SND_SOC_ALC5623 is not set
# CONFIG_SND_SOC_AUDIO_IIO_AUX is not set
# CONFIG_SND_SOC_AW8738 is not set
# CONFIG_SND_SOC_AW88395 is not set
# CONFIG_SND_SOC_AW88166 is not set
# CONFIG_SND_SOC_AW88261 is not set
# CONFIG_SND_SOC_AW88081 is not set
# CONFIG_SND_SOC_AW87390 is not set
# CONFIG_SND_SOC_AW88399 is not set
# CONFIG_SND_SOC_BD28623 is not set
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CHV3_CODEC is not set
# CONFIG_SND_SOC_CROS_EC_CODEC is not set
# CONFIG_SND_SOC_CS35L32 is not set
# CONFIG_SND_SOC_CS35L33 is not set
# CONFIG_SND_SOC_CS35L34 is not set
# CONFIG_SND_SOC_CS35L35 is not set
# CONFIG_SND_SOC_CS35L36 is not set
# CONFIG_SND_SOC_CS35L41_SPI is not set
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_SPI is not set
# CONFIG_SND_SOC_CS35L45_I2C is not set
# CONFIG_SND_SOC_CS35L56_I2C is not set
# CONFIG_SND_SOC_CS35L56_SPI is not set
# CONFIG_SND_SOC_CS35L56_SDW is not set
# CONFIG_SND_SOC_CS42L42 is not set
# CONFIG_SND_SOC_CS42L42_SDW is not set
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS42L52 is not set
# CONFIG_SND_SOC_CS42L56 is not set
# CONFIG_SND_SOC_CS42L73 is not set
# CONFIG_SND_SOC_CS42L83 is not set
# CONFIG_SND_SOC_CS42L84 is not set
# CONFIG_SND_SOC_CS4234 is not set
# CONFIG_SND_SOC_CS4265 is not set
# CONFIG_SND_SOC_CS4270 is not set
# CONFIG_SND_SOC_CS4271_I2C is not set
# CONFIG_SND_SOC_CS4271_SPI is not set
# CONFIG_SND_SOC_CS42XX8_SPI is not set
# CONFIG_SND_SOC_CS42XX8_I2C is not set
# CONFIG_SND_SOC_CS43130 is not set
# CONFIG_SND_SOC_CS4341 is not set
# CONFIG_SND_SOC_CS4349 is not set
# CONFIG_SND_SOC_CS48L32 is not set
# CONFIG_SND_SOC_CS53L30 is not set
# CONFIG_SND_SOC_CS530X_I2C is not set
# CONFIG_SND_SOC_CS530X_SPI is not set
# CONFIG_SND_SOC_CX2072X is not set
# CONFIG_SND_SOC_DA7213 is not set
# CONFIG_SND_SOC_DMIC is not set
# CONFIG_SND_SOC_ES7134 is not set
# CONFIG_SND_SOC_ES7241 is not set
# CONFIG_SND_SOC_ES8311 is not set
# CONFIG_SND_SOC_ES8316 is not set
# CONFIG_SND_SOC_ES8323 is not set
# CONFIG_SND_SOC_ES8326 is not set
# CONFIG_SND_SOC_ES8328_I2C is not set
# CONFIG_SND_SOC_ES8328_SPI is not set
# CONFIG_SND_SOC_ES8375 is not set
# CONFIG_SND_SOC_ES8389 is not set
# CONFIG_SND_SOC_FS210X is not set
# CONFIG_SND_SOC_GTM601 is not set
# CONFIG_SND_SOC_HDA is not set
# CONFIG_SND_SOC_ICS43432 is not set
# CONFIG_SND_SOC_IDT821034 is not set
# CONFIG_SND_SOC_MAX98088 is not set
# CONFIG_SND_SOC_MAX98090 is not set
# CONFIG_SND_SOC_MAX98357A is not set
# CONFIG_SND_SOC_MAX98504 is not set
# CONFIG_SND_SOC_MAX9867 is not set
# CONFIG_SND_SOC_MAX98927 is not set
# CONFIG_SND_SOC_MAX98520 is not set
# CONFIG_SND_SOC_MAX98363 is not set
# CONFIG_SND_SOC_MAX98373_I2C is not set
# CONFIG_SND_SOC_MAX98373_SDW is not set
# CONFIG_SND_SOC_MAX98388 is not set
# CONFIG_SND_SOC_MAX98390 is not set
# CONFIG_SND_SOC_MAX98396 is not set
# CONFIG_SND_SOC_MAX9860 is not set
# CONFIG_SND_SOC_MSM8916_WCD_DIGITAL is not set
# CONFIG_SND_SOC_PCM1681 is not set
# CONFIG_SND_SOC_PCM1754 is not set
# CONFIG_SND_SOC_PCM1789_I2C is not set
# CONFIG_SND_SOC_PCM179X_I2C is not set
# CONFIG_SND_SOC_PCM179X_SPI is not set
# CONFIG_SND_SOC_PCM186X_I2C is not set
# CONFIG_SND_SOC_PCM186X_SPI is not set
# CONFIG_SND_SOC_PCM3060_I2C is not set
# CONFIG_SND_SOC_PCM3060_SPI is not set
# CONFIG_SND_SOC_PCM3168A_I2C is not set
# CONFIG_SND_SOC_PCM3168A_SPI is not set
# CONFIG_SND_SOC_PCM5102A is not set
# CONFIG_SND_SOC_PCM512x_I2C is not set
# CONFIG_SND_SOC_PCM512x_SPI is not set
# CONFIG_SND_SOC_PCM6240 is not set
# CONFIG_SND_SOC_PEB2466 is not set
# CONFIG_SND_SOC_PM4125_SDW is not set
# CONFIG_SND_SOC_RT1017_SDCA_SDW is not set
# CONFIG_SND_SOC_RT1308_SDW is not set
# CONFIG_SND_SOC_RT1316_SDW is not set
# CONFIG_SND_SOC_RT1318_SDW is not set
# CONFIG_SND_SOC_RT1320_SDW is not set
# CONFIG_SND_SOC_RT5575 is not set
# CONFIG_SND_SOC_RT5616 is not set
# CONFIG_SND_SOC_RT5631 is not set
# CONFIG_SND_SOC_RT5640 is not set
# CONFIG_SND_SOC_RT5659 is not set
# CONFIG_SND_SOC_RT5682_SDW is not set
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW is not set
# CONFIG_SND_SOC_RT721_SDCA_SDW is not set
# CONFIG_SND_SOC_RT722_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_RT9123 is not set
# CONFIG_SND_SOC_RT9123P is not set
# CONFIG_SND_SOC_RTQ9124 is not set
# CONFIG_SND_SOC_RTQ9128 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not set
# CONFIG_SND_SOC_SGTL5000 is not set
# CONFIG_SND_SOC_SIMPLE_AMPLIFIER is not set
# CONFIG_SND_SOC_SIMPLE_MUX is not set
# CONFIG_SND_SOC_SMA1303 is not set
# CONFIG_SND_SOC_SMA1307 is not set
# CONFIG_SND_SOC_SPDIF is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2305 is not set
# CONFIG_SND_SOC_SSM2518 is not set
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM3515 is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not set
# CONFIG_SND_SOC_STA350 is not set
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not set
# CONFIG_SND_SOC_TAS2562 is not set
# CONFIG_SND_SOC_TAS2764 is not set
# CONFIG_SND_SOC_TAS2770 is not set
# CONFIG_SND_SOC_TAS2780 is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TAS5086 is not set
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TAS675X is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not set
# CONFIG_SND_SOC_TFA989X is not set
# CONFIG_SND_SOC_TLV320ADC3XXX is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not set
# CONFIG_SND_SOC_TLV320ADCX140 is not set
# CONFIG_SND_SOC_TS3A227E is not set
# CONFIG_SND_SOC_TSCS42XX is not set
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_UDA1334 is not set
# CONFIG_SND_SOC_UDA1342 is not set
# CONFIG_SND_SOC_UDA1380 is not set
# CONFIG_SND_SOC_WCD937X_SDW is not set
# CONFIG_SND_SOC_WCD938X_SDW is not set
# CONFIG_SND_SOC_WCD939X_SDW is not set
# CONFIG_SND_SOC_WM8510 is not set
# CONFIG_SND_SOC_WM8523 is not set
# CONFIG_SND_SOC_WM8524 is not set
# CONFIG_SND_SOC_WM8580 is not set
# CONFIG_SND_SOC_WM8711 is not set
# CONFIG_SND_SOC_WM8728 is not set
# CONFIG_SND_SOC_WM8731_I2C is not set
# CONFIG_SND_SOC_WM8731_SPI is not set
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not set
# CONFIG_SND_SOC_WM8750 is not set
# CONFIG_SND_SOC_WM8753 is not set
# CONFIG_SND_SOC_WM8770 is not set
# CONFIG_SND_SOC_WM8776 is not set
# CONFIG_SND_SOC_WM8782 is not set
# CONFIG_SND_SOC_WM8804_I2C is not set
# CONFIG_SND_SOC_WM8804_SPI is not set
# CONFIG_SND_SOC_WM8903 is not set
# CONFIG_SND_SOC_WM8904 is not set
# CONFIG_SND_SOC_WM8940 is not set
# CONFIG_SND_SOC_WM8960 is not set
# CONFIG_SND_SOC_WM8961 is not set
# CONFIG_SND_SOC_WM8962 is not set
# CONFIG_SND_SOC_WM8974 is not set
# CONFIG_SND_SOC_WM8978 is not set
# CONFIG_SND_SOC_WM8985 is not set
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_WSA883X is not set
# CONFIG_SND_SOC_WSA884X is not set
# CONFIG_SND_SOC_ZL38060 is not set
# CONFIG_SND_SOC_MAX9759 is not set
# CONFIG_SND_SOC_MT6351 is not set
# CONFIG_SND_SOC_MT6357 is not set
# CONFIG_SND_SOC_MT6358 is not set
# CONFIG_SND_SOC_MT6660 is not set
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_NAU8325 is not set
# CONFIG_SND_SOC_NAU8540 is not set
# CONFIG_SND_SOC_NAU8810 is not set
# CONFIG_SND_SOC_NAU8821 is not set
# CONFIG_SND_SOC_NAU8822 is not set
# CONFIG_SND_SOC_NAU8824 is not set
# CONFIG_SND_SOC_NTP8918 is not set
# CONFIG_SND_SOC_NTP8835 is not set
# CONFIG_SND_SOC_TPA6130A2 is not set
# CONFIG_SND_SOC_LPASS_WSA_MACRO is not set
# CONFIG_SND_SOC_LPASS_VA_MACRO is not set
# CONFIG_SND_SOC_LPASS_RX_MACRO is not set
# CONFIG_SND_SOC_LPASS_TX_MACRO is not set
# end of CODEC drivers

#
# Generic drivers
#
# CONFIG_SND_SIMPLE_CARD is not set
# CONFIG_SND_AUDIO_GRAPH_CARD is not set
# CONFIG_SND_AUDIO_GRAPH_CARD2 is not set
# CONFIG_SND_TEST_COMPONENT is not set
# end of Generic drivers

CONFIG_SND_X86=y
# CONFIG_HDMI_LPE_AUDIO is not set
# CONFIG_SND_VIRTIO is not set
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
CONFIG_UHID=y
CONFIG_HID_GENERIC=y
# CONFIG_HID_HAPTIC is not set

#
# Special HID drivers
#
CONFIG_HID_A4TECH=y
CONFIG_HID_ACCUTOUCH=y
CONFIG_HID_ACRUX=y
CONFIG_HID_ACRUX_FF=y
CONFIG_HID_APPLE=y
CONFIG_HID_APPLEIR=y
# CONFIG_HID_APPLETB_BL is not set
# CONFIG_HID_APPLETB_KBD is not set
CONFIG_HID_ASUS=y
CONFIG_HID_AUREAL=y
CONFIG_HID_BELKIN=y
CONFIG_HID_BETOP_FF=y
CONFIG_HID_BIGBEN_FF=y
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
CONFIG_HID_CORSAIR=y
CONFIG_HID_COUGAR=y
CONFIG_HID_MACALLY=y
CONFIG_HID_PRODIKEYS=y
CONFIG_HID_CMEDIA=y
CONFIG_HID_CP2112=y
CONFIG_HID_CREATIVE_SB0540=y
CONFIG_HID_CYPRESS=y
CONFIG_HID_DRAGONRISE=y
CONFIG_DRAGONRISE_FF=y
CONFIG_HID_EMS_FF=y
CONFIG_HID_ELAN=y
CONFIG_HID_ELECOM=y
CONFIG_HID_ELO=y
CONFIG_HID_EVISION=y
CONFIG_HID_EZKEY=y
CONFIG_HID_FT260=y
CONFIG_HID_GEMBIRD=y
CONFIG_HID_GFRM=y
CONFIG_HID_GLORIOUS=y
CONFIG_HID_HOLTEK=y
CONFIG_HOLTEK_FF=y
CONFIG_HID_VIVALDI_COMMON=y
# CONFIG_HID_GOODIX_SPI is not set
CONFIG_HID_GOOGLE_HAMMER=y
CONFIG_HID_GOOGLE_STADIA_FF=y
CONFIG_HID_VIVALDI=y
CONFIG_HID_GT683R=y
CONFIG_HID_KEYTOUCH=y
CONFIG_HID_KYE=y
# CONFIG_HID_KYSONA is not set
CONFIG_HID_UCLOGIC=y
CONFIG_HID_WALTOP=y
CONFIG_HID_VIEWSONIC=y
CONFIG_HID_VRC2=y
CONFIG_HID_XIAOMI=y
CONFIG_HID_GYRATION=y
CONFIG_HID_ICADE=y
CONFIG_HID_ITE=y
CONFIG_HID_JABRA=y
CONFIG_HID_TWINHAN=y
CONFIG_HID_KENSINGTON=y
CONFIG_HID_LCPOWER=y
CONFIG_HID_LED=y
CONFIG_HID_LENOVO=y
# CONFIG_HID_LENOVO_GO is not set
# CONFIG_HID_LENOVO_GO_S is not set
CONFIG_HID_LETSKETCH=y
CONFIG_HID_LOGITECH=y
CONFIG_HID_LOGITECH_DJ=y
CONFIG_HID_LOGITECH_HIDPP=y
CONFIG_LOGITECH_FF=y
CONFIG_LOGIRUMBLEPAD2_FF=y
CONFIG_LOGIG940_FF=y
CONFIG_LOGIWHEELS_FF=y
CONFIG_HID_MAGICMOUSE=y
CONFIG_HID_MALTRON=y
CONFIG_HID_MAYFLASH=y
CONFIG_HID_MEGAWORLD_FF=y
# CONFIG_HID_RAKK is not set
CONFIG_HID_REDRAGON=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MONTEREY=y
CONFIG_HID_MULTITOUCH=y
CONFIG_HID_NINTENDO=y
CONFIG_NINTENDO_FF=y
CONFIG_HID_NTI=y
CONFIG_HID_NTRIG=y
CONFIG_HID_NVIDIA_SHIELD=y
CONFIG_NVIDIA_SHIELD_FF=y
CONFIG_HID_ORTEK=y
# CONFIG_HID_OXP is not set
CONFIG_HID_PANTHERLORD=y
CONFIG_PANTHERLORD_FF=y
CONFIG_HID_PENMOUNT=y
CONFIG_HID_PETALYNX=y
CONFIG_HID_PICOLCD=y
CONFIG_HID_PICOLCD_FB=y
CONFIG_HID_PICOLCD_BACKLIGHT=y
CONFIG_HID_PICOLCD_LCD=y
CONFIG_HID_PICOLCD_LEDS=y
CONFIG_HID_PICOLCD_CIR=y
CONFIG_HID_PLANTRONICS=y
CONFIG_HID_PLAYSTATION=y
CONFIG_PLAYSTATION_FF=y
CONFIG_HID_PXRC=y
# CONFIG_HID_RAPOO is not set
CONFIG_HID_RAZER=y
CONFIG_HID_PRIMAX=y
CONFIG_HID_RETRODE=y
CONFIG_HID_ROCCAT=y
CONFIG_HID_SAITEK=y
CONFIG_HID_SAMSUNG=y
CONFIG_HID_SEMITEK=y
CONFIG_HID_SIGMAMICRO=y
CONFIG_HID_SONY=y
CONFIG_SONY_FF=y
CONFIG_HID_SPEEDLINK=y
CONFIG_HID_STEAM=y
CONFIG_STEAM_FF=y
CONFIG_HID_STEELSERIES=y
CONFIG_HID_SUNPLUS=y
CONFIG_HID_RMI=y
CONFIG_HID_GREENASIA=y
CONFIG_GREENASIA_FF=y
CONFIG_HID_SMARTJOYPLUS=y
CONFIG_SMARTJOYPLUS_FF=y
CONFIG_HID_TIVO=y
CONFIG_HID_TOPSEED=y
CONFIG_HID_TOPRE=y
CONFIG_HID_THINGM=y
CONFIG_HID_THRUSTMASTER=y
CONFIG_THRUSTMASTER_FF=y
CONFIG_HID_UDRAW_PS3=y
CONFIG_HID_U2FZERO=y
# CONFIG_HID_UNIVERSAL_PIDFF is not set
CONFIG_HID_WACOM=y
CONFIG_HID_WIIMOTE=y
# CONFIG_HID_WINWING is not set
CONFIG_HID_XINMO=y
CONFIG_HID_ZEROPLUS=y
CONFIG_ZEROPLUS_FF=y
CONFIG_HID_ZYDACRON=y
CONFIG_HID_SENSOR_HUB=y
CONFIG_HID_SENSOR_CUSTOM_SENSOR=y
CONFIG_HID_ALPS=y
CONFIG_HID_MCP2200=y
CONFIG_HID_MCP2221=y
CONFIG_HID_HUAWEI=y
# end of Special HID drivers

#
# HID-BPF support
#
# end of HID-BPF support

CONFIG_I2C_HID=y
CONFIG_I2C_HID_ACPI=y
CONFIG_I2C_HID_OF=y
# CONFIG_I2C_HID_OF_ELAN is not set
# CONFIG_I2C_HID_OF_GOODIX is not set
CONFIG_I2C_HID_CORE=y

#
# Intel ISH HID support
#
CONFIG_INTEL_ISH_HID=y
CONFIG_INTEL_ISH_FIRMWARE_DOWNLOADER=y
# end of Intel ISH HID support

#
# AMD SFH HID Support
#
CONFIG_AMD_SFH_HID=y
# end of AMD SFH HID Support

#
# Surface System Aggregator Module HID support
#
CONFIG_SURFACE_HID=y
CONFIG_SURFACE_KBD=y
# end of Surface System Aggregator Module HID support

CONFIG_SURFACE_HID_CORE=y

#
# Intel THC HID Support
#
# CONFIG_INTEL_THC_HID is not set
# end of Intel THC HID Support

#
# USB HID support
#
CONFIG_USB_HID=y
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y
# end of USB HID support

CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_LED_TRIG=y
CONFIG_USB_ULPI_BUS=y
CONFIG_USB_CONN_GPIO=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_PCI=y
CONFIG_USB_PCI_AMD=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_FEW_INIT_RETRIES is not set
CONFIG_USB_DYNAMIC_MINORS=y
CONFIG_USB_OTG=y
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not set
CONFIG_USB_OTG_FSM=y
CONFIG_USB_LEDS_TRIGGER_USBPORT=y
CONFIG_USB_AUTOSUSPEND_DELAY=2
CONFIG_USB_DEFAULT_AUTHORIZATION_MODE=1
CONFIG_USB_MON=y

#
# USB Host Controller Drivers
#
CONFIG_USB_C67X00_HCD=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DBGCAP=y
CONFIG_USB_XHCI_PCI=y
CONFIG_USB_XHCI_PCI_RENESAS=y
CONFIG_USB_XHCI_PLATFORM=y
# CONFIG_USB_XHCI_SIDEBAND is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_EHCI_FSL=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
CONFIG_USB_OXU210HP_HCD=y
CONFIG_USB_ISP116X_HCD=y
CONFIG_USB_MAX3421_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_SSB is not set
CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_SL811_HCD=y
CONFIG_USB_SL811_HCD_ISO=y
CONFIG_USB_SL811_CS=y
CONFIG_USB_R8A66597_HCD=y
CONFIG_USB_HCD_BCMA=y
CONFIG_USB_HCD_SSB=y
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
CONFIG_USB_ACM=y
CONFIG_USB_PRINTER=y
CONFIG_USB_WDM=y
CONFIG_USB_TMC=y

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_REALTEK=y
CONFIG_REALTEK_AUTOPM=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
CONFIG_USB_STORAGE_ENE_UB6250=y
CONFIG_USB_UAS=y

#
# USB Imaging devices
#
CONFIG_USB_MDC800=y
CONFIG_USB_MICROTEK=y
CONFIG_USBIP_CORE=y
CONFIG_USBIP_VHCI_HCD=y
CONFIG_USBIP_VHCI_HC_PORTS=8
CONFIG_USBIP_VHCI_NR_HCS=1
CONFIG_USBIP_HOST=y
CONFIG_USBIP_VUDC=y
# CONFIG_USBIP_DEBUG is not set

#
# USB dual-mode controller drivers
#
CONFIG_USB_CDNS_SUPPORT=y
CONFIG_USB_CDNS3=y
CONFIG_USB_CDNS3_HOST=y
CONFIG_USB_CDNS3_GADGET=y

#
# Platform glue driver support
#
CONFIG_USB_CDNS3_PCI_WRAP=y
CONFIG_USB_CDNSP_PCI=y
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_GADGET is not set
CONFIG_USB_MUSB_DUAL_ROLE=y

#
# Platform Glue Layer
#

#
# MUSB DMA mode
#
CONFIG_MUSB_PIO_ONLY=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_ULPI=y
# CONFIG_USB_DWC3_HOST is not set
# CONFIG_USB_DWC3_GADGET is not set
CONFIG_USB_DWC3_DUAL_ROLE=y

#
# Platform Glue Driver Support
#
CONFIG_USB_DWC3_PCI=y
CONFIG_USB_DWC3_HAPS=y
CONFIG_USB_DWC3_OF_SIMPLE=y
# CONFIG_USB_DWC3_GENERIC_PLAT is not set
# CONFIG_USB_DWC3_GOOGLE is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2_HOST=y

#
# Gadget/Dual-role mode requires USB Gadget support to be enabled
#
# CONFIG_USB_DWC2_PERIPHERAL is not set
# CONFIG_USB_DWC2_DUAL_ROLE is not set
CONFIG_USB_DWC2_PCI=y
# CONFIG_USB_DWC2_DEBUG is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_UDC=y
CONFIG_USB_CHIPIDEA_HOST=y
CONFIG_USB_CHIPIDEA_PCI=y
CONFIG_USB_CHIPIDEA_MSM=y
CONFIG_USB_CHIPIDEA_NPCM=y
# CONFIG_USB_CHIPIDEA_IMX is not set
CONFIG_USB_CHIPIDEA_GENERIC=y
# CONFIG_USB_CHIPIDEA_TEGRA is not set
CONFIG_USB_ISP1760=y
CONFIG_USB_ISP1760_HCD=y
CONFIG_USB_ISP1761_UDC=y
# CONFIG_USB_ISP1760_HOST_ROLE is not set
# CONFIG_USB_ISP1760_GADGET_ROLE is not set
CONFIG_USB_ISP1760_DUAL_ROLE=y

#
# USB port drivers
#
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CONSOLE=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_SIMPLE=y
CONFIG_USB_SERIAL_AIRCABLE=y
CONFIG_USB_SERIAL_ARK3116=y
CONFIG_USB_SERIAL_BELKIN=y
CONFIG_USB_SERIAL_CH341=y
CONFIG_USB_SERIAL_WHITEHEAT=y
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=y
CONFIG_USB_SERIAL_CP210X=y
CONFIG_USB_SERIAL_CYPRESS_M8=y
CONFIG_USB_SERIAL_EMPEG=y
CONFIG_USB_SERIAL_FTDI_SIO=y
CONFIG_USB_SERIAL_VISOR=y
CONFIG_USB_SERIAL_IPAQ=y
CONFIG_USB_SERIAL_IR=y
CONFIG_USB_SERIAL_EDGEPORT=y
CONFIG_USB_SERIAL_EDGEPORT_TI=y
CONFIG_USB_SERIAL_F81232=y
CONFIG_USB_SERIAL_F8153X=y
CONFIG_USB_SERIAL_GARMIN=y
CONFIG_USB_SERIAL_IPW=y
CONFIG_USB_SERIAL_IUU=y
CONFIG_USB_SERIAL_KEYSPAN_PDA=y
CONFIG_USB_SERIAL_KEYSPAN=y
CONFIG_USB_SERIAL_KLSI=y
CONFIG_USB_SERIAL_KOBIL_SCT=y
CONFIG_USB_SERIAL_MCT_U232=y
CONFIG_USB_SERIAL_METRO=y
CONFIG_USB_SERIAL_MOS7720=y
CONFIG_USB_SERIAL_MOS7715_PARPORT=y
CONFIG_USB_SERIAL_MOS7840=y
CONFIG_USB_SERIAL_MXUPORT=y
CONFIG_USB_SERIAL_NAVMAN=y
CONFIG_USB_SERIAL_PL2303=y
CONFIG_USB_SERIAL_OTI6858=y
CONFIG_USB_SERIAL_QCAUX=y
CONFIG_USB_SERIAL_QUALCOMM=y
CONFIG_USB_SERIAL_SPCP8X5=y
CONFIG_USB_SERIAL_SAFE=y
# CONFIG_USB_SERIAL_SAFE_PADDED is not set
CONFIG_USB_SERIAL_SIERRAWIRELESS=y
CONFIG_USB_SERIAL_SYMBOL=y
CONFIG_USB_SERIAL_TI=y
CONFIG_USB_SERIAL_CYBERJACK=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_SERIAL_OMNINET=y
CONFIG_USB_SERIAL_OPTICON=y
CONFIG_USB_SERIAL_XSENS_MT=y
CONFIG_USB_SERIAL_WISHBONE=y
CONFIG_USB_SERIAL_SSU100=y
CONFIG_USB_SERIAL_QT2=y
CONFIG_USB_SERIAL_UPD78F0730=y
CONFIG_USB_SERIAL_XR=y
CONFIG_USB_SERIAL_DEBUG=y

#
# USB Miscellaneous drivers
#
CONFIG_USB_USS720=y
CONFIG_USB_EMI62=y
CONFIG_USB_EMI26=y
CONFIG_USB_ADUTUX=y
CONFIG_USB_SEVSEG=y
CONFIG_USB_LEGOTOWER=y
CONFIG_USB_LCD=y
CONFIG_USB_CYPRESS_CY7C63=y
CONFIG_USB_CYTHERM=y
CONFIG_USB_IDMOUSE=y
CONFIG_USB_APPLEDISPLAY=y
CONFIG_APPLE_MFI_FASTCHARGE=y
CONFIG_USB_LJCA=y
# CONFIG_USB_USBIO is not set
CONFIG_USB_SISUSBVGA=y
CONFIG_USB_LD=y
CONFIG_USB_TRANCEVIBRATOR=y
CONFIG_USB_IOWARRIOR=y
CONFIG_USB_TEST=y
CONFIG_USB_EHSET_TEST_FIXTURE=y
CONFIG_USB_ISIGHTFW=y
CONFIG_USB_YUREX=y
CONFIG_USB_EZUSB_FX2=y
CONFIG_USB_HUB_USB251XB=y
CONFIG_USB_HSIC_USB3503=y
CONFIG_USB_HSIC_USB4604=y
CONFIG_USB_LINK_LAYER_TEST=y
CONFIG_USB_CHAOSKEY=y
# CONFIG_USB_ONBOARD_DEV is not set
CONFIG_USB_ATM=y
CONFIG_USB_SPEEDTOUCH=y
CONFIG_USB_CXACRU=y
CONFIG_USB_UEAGLEATM=y
CONFIG_USB_XUSBATM=y

#
# USB Physical Layer drivers
#
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_TAHVO_USB=y
CONFIG_TAHVO_USB_HOST_BY_DEFAULT=y
CONFIG_USB_ISP1301=y
# end of USB Physical Layer drivers

CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
CONFIG_USB_GADGET_DEBUG_FILES=y
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2

#
# USB Peripheral Controller
#
CONFIG_USB_GR_UDC=y
CONFIG_USB_R8A66597=y
CONFIG_USB_PXA27X=y
CONFIG_USB_SNP_CORE=y
# CONFIG_USB_SNP_UDC_PLAT is not set
# CONFIG_USB_M66592 is not set
CONFIG_USB_BDC_UDC=y
CONFIG_USB_AMD5536UDC=y
CONFIG_USB_NET2280=y
CONFIG_USB_GOKU=y
CONFIG_USB_EG20T=y
# CONFIG_USB_GADGET_XILINX is not set
CONFIG_USB_MAX3420_UDC=y
CONFIG_USB_CDNS2_UDC=y
CONFIG_USB_DUMMY_HCD=y
# end of USB Peripheral Controller

# CONFIG_USB_CONFIGFS is not set

#
# USB Gadget precomposed configurations
#
# CONFIG_USB_ZERO is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_MASS_STORAGE is not set
# CONFIG_USB_GADGET_TARGET is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not set
# CONFIG_USB_G_NOKIA is not set
# CONFIG_USB_G_ACM_MS is not set
# CONFIG_USB_G_MULTI is not set
# CONFIG_USB_G_HID is not set
# CONFIG_USB_G_DBGP is not set
# CONFIG_USB_G_WEBCAM is not set
CONFIG_USB_RAW_GADGET=y
# end of USB Gadget precomposed configurations

CONFIG_TYPEC=y
CONFIG_TYPEC_TCPM=y
CONFIG_TYPEC_TCPCI=y
CONFIG_TYPEC_RT1711H=y
CONFIG_TYPEC_MT6360=y
CONFIG_TYPEC_TCPCI_MT6370=y
CONFIG_TYPEC_TCPCI_MAXIM=y
CONFIG_TYPEC_FUSB302=y
CONFIG_TYPEC_WCOVE=y
CONFIG_TYPEC_UCSI=y
CONFIG_UCSI_CCG=y
CONFIG_UCSI_ACPI=y
CONFIG_UCSI_STM32G0=y
# CONFIG_CROS_EC_UCSI is not set
CONFIG_TYPEC_TPS6598X=y
CONFIG_TYPEC_ANX7411=y
CONFIG_TYPEC_RT1719=y
CONFIG_TYPEC_HD3SS3220=y
CONFIG_TYPEC_STUSB160X=y
CONFIG_TYPEC_WUSB3801=y

#
# USB Type-C Multiplexer/DeMultiplexer Switch support
#
CONFIG_TYPEC_MUX_FSA4480=y
CONFIG_TYPEC_MUX_GPIO_SBU=y
CONFIG_TYPEC_MUX_PI3USB30532=y
CONFIG_TYPEC_MUX_INTEL_PMC=y
# CONFIG_TYPEC_MUX_IT5205 is not set
CONFIG_TYPEC_MUX_NB7VPQ904M=y
# CONFIG_TYPEC_MUX_PS883X is not set
CONFIG_TYPEC_MUX_PTN36502=y
# CONFIG_TYPEC_MUX_TUSB1046 is not set
CONFIG_TYPEC_MUX_WCD939X_USBSS=y
# end of USB Type-C Multiplexer/DeMultiplexer Switch support

#
# USB Type-C Alternate Mode drivers
#
CONFIG_TYPEC_DP_ALTMODE=y
CONFIG_TYPEC_NVIDIA_ALTMODE=y
# CONFIG_TYPEC_TBT_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers

CONFIG_USB_ROLE_SWITCH=y
CONFIG_USB_ROLES_INTEL_XHCI=y
CONFIG_MMC=y
# CONFIG_PWRSEQ_EMMC is not set
# CONFIG_PWRSEQ_SD8787 is not set
# CONFIG_PWRSEQ_SIMPLE is not set
# CONFIG_MMC_BLOCK is not set
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set

#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_SDRICOH_CS is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
CONFIG_MMC_VUB300=y
CONFIG_MMC_USHC=y
# CONFIG_MMC_USDHI6ROL0 is not set
CONFIG_MMC_REALTEK_USB=y
# CONFIG_MMC_CQHCI is not set
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_SCSI_UFSHCD is not set
CONFIG_MEMSTICK=y
# CONFIG_MEMSTICK_DEBUG is not set

#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not set
# CONFIG_MSPRO_BLOCK is not set
# CONFIG_MS_BLOCK is not set

#
# MemoryStick Host Controller Drivers
#
# CONFIG_MEMSTICK_TIFM_MS is not set
# CONFIG_MEMSTICK_JMICRON_38X is not set
# CONFIG_MEMSTICK_R592 is not set
CONFIG_MEMSTICK_REALTEK_USB=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
CONFIG_LEDS_CLASS_MULTICOLOR=y
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set

#
# LED drivers
#
# CONFIG_LEDS_AN30259A is not set
# CONFIG_LEDS_APU is not set
# CONFIG_LEDS_OSRAM_AMS_AS3668 is not set
# CONFIG_LEDS_AW200XX is not set
# CONFIG_LEDS_AW2013 is not set
# CONFIG_LEDS_BCM6328 is not set
# CONFIG_LEDS_BCM6358 is not set
# CONFIG_LEDS_CHT_WCOVE is not set
# CONFIG_LEDS_CR0014114 is not set
# CONFIG_LEDS_CROS_EC is not set
# CONFIG_LEDS_EL15203000 is not set
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_LM3692X is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not set
# CONFIG_LEDS_LP55XX_COMMON is not set
# CONFIG_LEDS_LP8860 is not set
# CONFIG_LEDS_LP8864 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_PCA995X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_REGULATOR is not set
# CONFIG_LEDS_BD2606MVV is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
# CONFIG_LEDS_IS31FL319X is not set
# CONFIG_LEDS_IS31FL32XX is not set

#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)
#
# CONFIG_LEDS_BLINKM is not set
# CONFIG_LEDS_SYSCON is not set
# CONFIG_LEDS_MLXCPLD is not set
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_SPI_BYTE is not set
# CONFIG_LEDS_LM3697 is not set
# CONFIG_LEDS_ST1202 is not set
# CONFIG_LEDS_LGM is not set

#
# Flash and Torch LED drivers
#

#
# RGB LED drivers
#
# CONFIG_LEDS_GROUP_MULTICOLOR is not set
# CONFIG_LEDS_KTD202X is not set
# CONFIG_LEDS_LP5812 is not set
# CONFIG_LEDS_LP5860_CORE is not set
# CONFIG_LEDS_LP5860_SPI is not set
# CONFIG_LEDS_NCP5623 is not set
# CONFIG_LEDS_MT6370_RGB is not set

#
# LED Triggers
#
CONFIG_LEDS_TRIGGERS=y
# CONFIG_LEDS_TRIGGER_TIMER is not set
# CONFIG_LEDS_TRIGGER_ONESHOT is not set
# CONFIG_LEDS_TRIGGER_DISK is not set
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not set
# CONFIG_LEDS_TRIGGER_GPIO is not set
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set

#
# iptables trigger is under Netfilter config (LED target)
#
# CONFIG_LEDS_TRIGGER_TRANSIENT is not set
# CONFIG_LEDS_TRIGGER_CAMERA is not set
# CONFIG_LEDS_TRIGGER_PANIC is not set
# CONFIG_LEDS_TRIGGER_NETDEV is not set
# CONFIG_LEDS_TRIGGER_PATTERN is not set
# CONFIG_LEDS_TRIGGER_TTY is not set
# CONFIG_LEDS_TRIGGER_INPUT_EVENTS is not set

#
# Simatic LED drivers
#
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_DECODE_MCE is not set
# CONFIG_EDAC_SCRUB is not set
# CONFIG_EDAC_ECS is not set
# CONFIG_EDAC_MEM_REPAIR is not set
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not set
# CONFIG_EDAC_I3000 is not set
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not set
# CONFIG_EDAC_X38 is not set
# CONFIG_EDAC_I5400 is not set
# CONFIG_EDAC_I7CORE is not set
# CONFIG_EDAC_I5100 is not set
# CONFIG_EDAC_I7300 is not set
# CONFIG_EDAC_SBRIDGE is not set
# CONFIG_EDAC_SKX is not set
# CONFIG_EDAC_I10NM is not set
# CONFIG_EDAC_IMH is not set
# CONFIG_EDAC_PND2 is not set
# CONFIG_EDAC_IGEN6 is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_MC146818_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
CONFIG_RTC_NVMEM=y

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_HYM8563 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_MAX31335 is not set
# CONFIG_RTC_DRV_NCT3018Y is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_ISL12026 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85363 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_TWL4030 is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8111 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD2405AL is not set
# CONFIG_RTC_DRV_SD3078 is not set

#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not set
CONFIG_RTC_I2C_AND_SPI=y

#
# SPI and I2C RTC drivers
#
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RX6110 is not set

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_ZYNQMP is not set
# CONFIG_RTC_DRV_CROS_EC is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_CADENCE is not set
# CONFIG_RTC_DRV_FTRTC010 is not set
# CONFIG_RTC_DRV_R7301 is not set
# CONFIG_RTC_DRV_GOLDFISH is not set

#
# HID Sensor RTC drivers
#
CONFIG_RTC_DRV_HID_SENSOR_TIME=y
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ENGINE=y
CONFIG_DMA_VIRTUAL_CHANNELS=y
CONFIG_DMA_ACPI=y
CONFIG_DMA_OF=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_DW_AXI_DMAC is not set
# CONFIG_FSL_EDMA is not set
# CONFIG_INTEL_IDMA64 is not set
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not set
# CONFIG_INTEL_IOATDMA is not set
# CONFIG_PLX_DMA is not set
# CONFIG_SWITCHTEC_DMA is not set
# CONFIG_XILINX_DMA is not set
# CONFIG_XILINX_XDMA is not set
# CONFIG_XILINX_ZYNQMP_DPDMA is not set
# CONFIG_AMD_PTDMA is not set
# CONFIG_AMD_QDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not set
CONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not set
# CONFIG_DW_DMAC_PCI is not set
# CONFIG_DW_EDMA is not set
CONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set

#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set

#
# DMABUF options
#
CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_HEAPS is not set
# end of DMABUF options

# CONFIG_UIO is not set
# CONFIG_VFIO is not set
# CONFIG_VIRT_DRIVERS is not set
CONFIG_TSM=y
CONFIG_VIRTIO_ANCHOR=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI_LIB=y
CONFIG_VIRTIO_PCI_LIB_LEGACY=y
CONFIG_VIRTIO_MENU=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_ADMIN_LEGACY=y
CONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_BALLOON is not set
CONFIG_VIRTIO_INPUT=y
# CONFIG_VIRTIO_MMIO is not set
CONFIG_VIRTIO_DMA_SHARED_BUFFER=y
# CONFIG_VIRTIO_DEBUG is not set
# CONFIG_VIRTIO_RTC is not set
# CONFIG_VDPA is not set
CONFIG_VHOST_MENU=y
# CONFIG_VHOST_NET is not set
# CONFIG_VHOST_SCSI is not set
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
CONFIG_VHOST_ENABLE_FORK_OWNER_CONTROL=y

#
# Microsoft Hyper-V guest support
#
# CONFIG_HYPERV is not set
# end of Microsoft Hyper-V guest support

CONFIG_GREYBUS=y
# CONFIG_GREYBUS_BEAGLEPLAY is not set
CONFIG_GREYBUS_ES2=y
CONFIG_COMEDI=y
# CONFIG_COMEDI_DEBUG is not set
CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048
CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480
# CONFIG_COMEDI_MISC_DRIVERS is not set
# CONFIG_COMEDI_PCI_DRIVERS is not set
# CONFIG_COMEDI_PCMCIA_DRIVERS is not set
CONFIG_COMEDI_USB_DRIVERS=y
CONFIG_COMEDI_DT9812=y
CONFIG_COMEDI_NI_USB6501=y
CONFIG_COMEDI_USBDUX=y
CONFIG_COMEDI_USBDUXFAST=y
CONFIG_COMEDI_USBDUXSIGMA=y
CONFIG_COMEDI_VMK80XX=y
# CONFIG_COMEDI_8255_SA is not set
# CONFIG_COMEDI_KCOMEDILIB is not set
# CONFIG_COMEDI_TESTS is not set
# CONFIG_GPIB is not set
CONFIG_STAGING=y
# CONFIG_RTL8723BS is not set

#
# IIO staging drivers
#

#
# Accelerometers
#
# CONFIG_ADIS16203 is not set
# end of Accelerometers

#
# Analog to digital converters
#
# CONFIG_AD7816 is not set
# end of Analog to digital converters

#
# Analog digital bi-direction converters
#
# CONFIG_ADT7316 is not set
# end of Analog digital bi-direction converters

#
# Direct Digital Synthesis
#
# CONFIG_AD9832 is not set
# CONFIG_AD9834 is not set
# end of Direct Digital Synthesis

#
# Network Analyzer, Impedance Converters
#
# CONFIG_AD5933 is not set
# end of Network Analyzer, Impedance Converters
# end of IIO staging drivers

# CONFIG_FB_SM750 is not set
# CONFIG_STAGING_MEDIA is not set
# CONFIG_FB_TFT is not set
# CONFIG_MOST_COMPONENTS is not set
# CONFIG_GREYBUS_AUDIO is not set
# CONFIG_GREYBUS_BOOTROM is not set
# CONFIG_GREYBUS_FIRMWARE is not set
CONFIG_GREYBUS_HID=y
# CONFIG_GREYBUS_LOG is not set
# CONFIG_GREYBUS_LOOPBACK is not set
# CONFIG_GREYBUS_POWER is not set
# CONFIG_GREYBUS_RAW is not set
# CONFIG_GREYBUS_VIBRATOR is not set
CONFIG_GREYBUS_BRIDGED_PHY=y
# CONFIG_GREYBUS_GPIO is not set
# CONFIG_GREYBUS_I2C is not set
# CONFIG_GREYBUS_SDIO is not set
# CONFIG_GREYBUS_SPI is not set
# CONFIG_GREYBUS_UART is not set
CONFIG_GREYBUS_USB=y
# CONFIG_XIL_AXIS_FIFO is not set
# CONFIG_VME_BUS is not set
# CONFIG_GOLDFISH is not set
CONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_ACPI is not set
# CONFIG_CHROMEOS_LAPTOP is not set
# CONFIG_CHROMEOS_PSTORE is not set
# CONFIG_CHROMEOS_TBMC is not set
# CONFIG_CHROMEOS_OF_HW_PROBER is not set
CONFIG_CROS_EC=y
# CONFIG_CROS_EC_I2C is not set
CONFIG_CROS_EC_ISHTP=y
# CONFIG_CROS_EC_SPI is not set
# CONFIG_CROS_EC_UART is not set
# CONFIG_CROS_EC_LPC is not set
CONFIG_CROS_EC_PROTO=y
# CONFIG_CROS_KBD_LED_BACKLIGHT is not set
# CONFIG_CROS_EC_CHARDEV is not set
# CONFIG_CROS_EC_LIGHTBAR is not set
# CONFIG_CROS_EC_VBC is not set
# CONFIG_CROS_EC_DEBUGFS is not set
# CONFIG_CROS_EC_SENSORHUB is not set
# CONFIG_CROS_EC_SYSFS is not set
CONFIG_CROS_EC_TYPEC_ALTMODES=y
CONFIG_CROS_EC_TYPEC=y
CONFIG_CROS_HPS_I2C=y
CONFIG_CROS_USBPD_NOTIFY=y
# CONFIG_CHROMEOS_PRIVACY_SCREEN is not set
CONFIG_CROS_TYPEC_SWITCH=y
# CONFIG_MELLANOX_PLATFORM is not set
CONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_ACPI_NOTIFY is not set
# CONFIG_SURFACE_AGGREGATOR_CDEV is not set
# CONFIG_SURFACE_AGGREGATOR_HUB is not set
CONFIG_SURFACE_AGGREGATOR_REGISTRY=y
# CONFIG_SURFACE_AGGREGATOR_TABLET_SWITCH is not set
# CONFIG_SURFACE_DTX is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PLATFORM_PROFILE is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
CONFIG_SURFACE_AGGREGATOR=y
CONFIG_SURFACE_AGGREGATOR_BUS=y
CONFIG_X86_PLATFORM_DEVICES=y
CONFIG_WMI_BMOF=y
# CONFIG_HUAWEI_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_UNIWILL is not set
# CONFIG_MXM_WMI is not set
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_REDMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
# CONFIG_BITLAND_MIFS_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_ACER_WMI is not set

#
# AMD HSMP Driver
#
# CONFIG_AMD_HSMP_ACPI is not set
# CONFIG_AMD_HSMP_PLAT is not set
# end of AMD HSMP Driver

CONFIG_AMD_PMF=y
CONFIG_AMD_PMF_DEBUG=y
# CONFIG_AMD_PMC is not set
# CONFIG_AMD_HFI is not set
# CONFIG_AMD_3D_VCACHE is not set
# CONFIG_AMD_WBRF is not set
# CONFIG_AMD_ISP_PLATFORM is not set
# CONFIG_ADV_SWBUTTON is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_ARMOURY is not set
CONFIG_ASUS_WMI=y
# CONFIG_ASUS_WMI_DEPRECATED_ATTRS is not set
# CONFIG_ASUS_NB_WMI is not set
CONFIG_ASUS_TF103C_DOCK=y
# CONFIG_AYANEO_EC is not set
CONFIG_EEEPC_LAPTOP=y
# CONFIG_EEEPC_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not set
# CONFIG_AMILO_RFKILL is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_GPD_POCKET_FAN is not set
# CONFIG_X86_PLATFORM_DRIVERS_HP is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_INTEL_ATOMISP2_PM is not set
# CONFIG_INTEL_IFS is not set
# CONFIG_INTEL_SAR_INT1092 is not set
# CONFIG_INTEL_SKL_INT3472 is not set

#
# Intel Speed Select Technology interface support
#
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support

# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not set
# CONFIG_INTEL_WMI_THUNDERBOLT is not set

#
# Intel Uncore Frequency Control
#
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not set
# end of Intel Uncore Frequency Control

# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_VBTN is not set
# CONFIG_INTEL_EHL_PSE_IO is not set
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_INTEL_OAKTRAIL is not set
# CONFIG_INTEL_BXTWC_PMIC_TMU is not set
CONFIG_INTEL_CHTWC_INT33FE=y
CONFIG_INTEL_ISHTP_ECLITE=y
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_INTEL_TURBO_MAX_3 is not set
# CONFIG_INTEL_VSEC is not set
# CONFIG_IDEAPAD_LAPTOP is not set
# CONFIG_LENOVO_WMI_HOTKEY_UTILITIES is not set
# CONFIG_LENOVO_WMI_CAMERA is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_THINKPAD_LMI is not set
# CONFIG_YOGABOOK is not set
# CONFIG_YT2_1380 is not set
# CONFIG_LENOVO_WMI_GAMEZONE is not set
# CONFIG_LENOVO_WMI_TUNING is not set
# CONFIG_ACPI_QUICKSTART is not set
# CONFIG_MEEGOPAD_ANX7428 is not set
# CONFIG_MSI_EC is not set
# CONFIG_MSI_LAPTOP is not set
# CONFIG_MSI_WMI is not set
# CONFIG_MSI_WMI_PLATFORM is not set
# CONFIG_PCENGINES_APU2 is not set
# CONFIG_PORTWELL_EC is not set
# CONFIG_BARCO_P50_GPIO is not set
# CONFIG_SAMSUNG_GALAXYBOOK is not set
# CONFIG_SAMSUNG_LAPTOP is not set
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not set
# CONFIG_ACPI_CMPC is not set
# CONFIG_COMPAL_LAPTOP is not set
# CONFIG_LG_LAPTOP is not set
# CONFIG_PANASONIC_LAPTOP is not set
# CONFIG_SONY_LAPTOP is not set
# CONFIG_SYSTEM76_ACPI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_SERIAL_MULTI_INSTANTIATE is not set
# CONFIG_INSPUR_PLATFORM_PROFILE is not set
# CONFIG_DASHARO_ACPI is not set
# CONFIG_INTEL_IPS is not set
CONFIG_INTEL_SCU_IPC=y
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not set
# CONFIG_SIEMENS_SIMATIC_IPC is not set
# CONFIG_SILICOM_PLATFORM is not set
# CONFIG_WINMATE_FM07_KEYS is not set
# CONFIG_OXP_EC is not set
# CONFIG_TUXEDO_NB04_WMI_AB is not set
CONFIG_P2SB=y
CONFIG_ACPI_WMI=y
# CONFIG_ACPI_WMI_LEGACY_DEVICE_NAMES is not set
CONFIG_HAVE_CLK=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI514 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_SI570 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CDCE925 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_CLK_TWL is not set
# CONFIG_COMMON_CLK_AXI_CLKGEN is not set
# CONFIG_COMMON_CLK_RS9_PCIE is not set
# CONFIG_COMMON_CLK_SI521XX is not set
# CONFIG_COMMON_CLK_VC3 is not set
# CONFIG_COMMON_CLK_VC5 is not set
# CONFIG_COMMON_CLK_VC7 is not set
# CONFIG_COMMON_CLK_FIXED_MMIO is not set
# CONFIG_CLK_LGM_CGU is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set
# CONFIG_HWSPINLOCK is not set

#
# Clock Source drivers
#
CONFIG_CLKEVT_I8253=y
CONFIG_I8253_LOCK=y
CONFIG_CLKBLD_I8253=y
# end of Clock Source drivers

CONFIG_MAILBOX=y
# CONFIG_PLATFORM_MHU is not set
CONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not set
# CONFIG_MAILBOX_TEST is not set
CONFIG_IOMMU_IOVA=y
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support

# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_OF_IOMMU=y
CONFIG_IOMMU_DMA=y
CONFIG_IOMMU_SVA=y
CONFIG_IOMMU_IOPF=y
CONFIG_AMD_IOMMU=y
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_PERF_EVENTS=y
# CONFIG_IOMMUFD is not set
CONFIG_IRQ_REMAP=y
# CONFIG_VIRTIO_IOMMU is not set
CONFIG_GENERIC_PT=y
CONFIG_DEBUG_GENERIC_PT=y
CONFIG_IOMMU_PT=y
CONFIG_IOMMU_PT_AMDV1=y
CONFIG_IOMMU_PT_VTDSS=y
# CONFIG_IOMMU_PT_RISCV64 is not set
CONFIG_IOMMU_PT_X86_64=y

#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers

#
# Rpmsg drivers
#
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers

CONFIG_SOUNDWIRE=y

#
# SoundWire Devices
#
# CONFIG_SOUNDWIRE_AMD is not set
# CONFIG_SOUNDWIRE_INTEL is not set
# CONFIG_SOUNDWIRE_QCOM is not set

#
# SOC (System On Chip) specific Drivers
#

#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers

#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers

#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers

#
# fujitsu SoC drivers
#
# end of fujitsu SoC drivers

#
# i.MX SoC drivers
#
# end of i.MX SoC drivers

#
# Enable LiteX SoC Builder specific drivers
#
# CONFIG_LITEX_SOC_CONTROLLER is not set
# end of Enable LiteX SoC Builder specific drivers

# CONFIG_WPCM450_SOC is not set

#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers

# CONFIG_SOC_TI is not set

#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers
# end of SOC (System On Chip) specific Drivers

#
# PM Domains
#

#
# Amlogic PM Domains
#
# end of Amlogic PM Domains

#
# Broadcom PM Domains
#
# end of Broadcom PM Domains

#
# i.MX PM Domains
#
# end of i.MX PM Domains

#
# Qualcomm PM Domains
#
# end of Qualcomm PM Domains
# end of PM Domains

# CONFIG_PM_DEVFREQ is not set
CONFIG_EXTCON=y

#
# Extcon Device Drivers
#
# CONFIG_EXTCON_ADC_JACK is not set
# CONFIG_EXTCON_FSA9480 is not set
# CONFIG_EXTCON_GPIO is not set
# CONFIG_EXTCON_INTEL_INT3496 is not set
CONFIG_EXTCON_INTEL_CHT_WC=y
# CONFIG_EXTCON_LC824206XA is not set
# CONFIG_EXTCON_MAX3355 is not set
# CONFIG_EXTCON_MAX14526 is not set
CONFIG_EXTCON_PTN5150=y
# CONFIG_EXTCON_RT8973A is not set
# CONFIG_EXTCON_SM5502 is not set
# CONFIG_EXTCON_USB_GPIO is not set
# CONFIG_EXTCON_USBC_CROS_EC is not set
CONFIG_EXTCON_USBC_TUSB320=y
# CONFIG_MEMORY is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
# CONFIG_IIO_BUFFER_DMA is not set
# CONFIG_IIO_BUFFER_DMAENGINE is not set
# CONFIG_IIO_BUFFER_HW_CONSUMER is not set
CONFIG_IIO_KFIFO_BUF=y
CONFIG_IIO_TRIGGERED_BUFFER=y
# CONFIG_IIO_CONFIGFS is not set
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
# CONFIG_IIO_SW_DEVICE is not set
# CONFIG_IIO_SW_TRIGGER is not set
# CONFIG_IIO_TRIGGERED_EVENT is not set

#
# Accelerometers
#
# CONFIG_ADIS16201 is not set
# CONFIG_ADIS16209 is not set
# CONFIG_ADXL313_I2C is not set
# CONFIG_ADXL313_SPI is not set
# CONFIG_ADXL345_I2C is not set
# CONFIG_ADXL345_SPI is not set
# CONFIG_ADXL355_I2C is not set
# CONFIG_ADXL355_SPI is not set
# CONFIG_ADXL367_SPI is not set
# CONFIG_ADXL367_I2C is not set
# CONFIG_ADXL372_SPI is not set
# CONFIG_ADXL372_I2C is not set
# CONFIG_ADXL380_SPI is not set
# CONFIG_ADXL380_I2C is not set
# CONFIG_BMA180 is not set
# CONFIG_BMA220 is not set
# CONFIG_BMA400 is not set
# CONFIG_BMC150_ACCEL is not set
# CONFIG_BMI088_ACCEL is not set
# CONFIG_DA280 is not set
# CONFIG_DA311 is not set
# CONFIG_DMARD06 is not set
# CONFIG_DMARD09 is not set
# CONFIG_DMARD10 is not set
# CONFIG_FXLS8962AF_I2C is not set
# CONFIG_FXLS8962AF_SPI is not set
CONFIG_HID_SENSOR_ACCEL_3D=y
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
# CONFIG_IIO_KX022A_SPI is not set
# CONFIG_IIO_KX022A_I2C is not set
# CONFIG_KXSD9 is not set
# CONFIG_KXCJK1013 is not set
# CONFIG_MC3230 is not set
# CONFIG_MMA7455_I2C is not set
# CONFIG_MMA7455_SPI is not set
# CONFIG_MMA7660 is not set
# CONFIG_MMA8452 is not set
# CONFIG_MMA9551 is not set
# CONFIG_MMA9553 is not set
# CONFIG_MSA311 is not set
# CONFIG_MXC4005 is not set
# CONFIG_MXC6255 is not set
# CONFIG_SCA3000 is not set
# CONFIG_SCA3300 is not set
# CONFIG_STK8312 is not set
# CONFIG_STK8BA50 is not set
# end of Accelerometers

#
# Analog to digital converters
#
# CONFIG_AD4000 is not set
# CONFIG_AD4080 is not set
# CONFIG_AD4130 is not set
# CONFIG_AD4134 is not set
# CONFIG_AD4170_4 is not set
# CONFIG_AD4691 is not set
# CONFIG_AD4695 is not set
# CONFIG_AD7091R5 is not set
# CONFIG_AD7091R8 is not set
# CONFIG_AD7124 is not set
# CONFIG_AD7173 is not set
# CONFIG_AD7191 is not set
# CONFIG_AD7192 is not set
# CONFIG_AD7266 is not set
# CONFIG_AD7280 is not set
# CONFIG_AD7291 is not set
# CONFIG_AD7292 is not set
# CONFIG_AD7298 is not set
# CONFIG_AD7380 is not set
# CONFIG_AD7476 is not set
# CONFIG_AD7606_IFACE_PARALLEL is not set
# CONFIG_AD7606_IFACE_SPI is not set
# CONFIG_AD7766 is not set
# CONFIG_AD7768_1 is not set
# CONFIG_AD7779 is not set
# CONFIG_AD7780 is not set
# CONFIG_AD7791 is not set
# CONFIG_AD7793 is not set
# CONFIG_AD7887 is not set
# CONFIG_AD7923 is not set
# CONFIG_AD7944 is not set
# CONFIG_AD7949 is not set
# CONFIG_AD799X is not set
# CONFIG_AD9467 is not set
# CONFIG_ADE9000 is not set
# CONFIG_CC10001_ADC is not set
CONFIG_DLN2_ADC=y
# CONFIG_ENVELOPE_DETECTOR is not set
# CONFIG_GEHC_PMC_ADC is not set
# CONFIG_HI8435 is not set
# CONFIG_HX711 is not set
# CONFIG_INA2XX_ADC is not set
# CONFIG_LTC2309 is not set
# CONFIG_LTC2471 is not set
# CONFIG_LTC2485 is not set
# CONFIG_LTC2496 is not set
# CONFIG_LTC2497 is not set
# CONFIG_MAX1027 is not set
# CONFIG_MAX11100 is not set
# CONFIG_MAX1118 is not set
# CONFIG_MAX11205 is not set
# CONFIG_MAX11410 is not set
# CONFIG_MAX1241 is not set
# CONFIG_MAX1363 is not set
# CONFIG_MAX14001 is not set
# CONFIG_MAX34408 is not set
# CONFIG_MAX9611 is not set
# CONFIG_MCP320X is not set
# CONFIG_MCP3422 is not set
# CONFIG_MCP3564 is not set
# CONFIG_MCP3911 is not set
# CONFIG_MEDIATEK_MT6360_ADC is not set
# CONFIG_MEDIATEK_MT6370_ADC is not set
# CONFIG_NAU7802 is not set
# CONFIG_NCT7201 is not set
# CONFIG_PAC1921 is not set
# CONFIG_PAC1934 is not set
# CONFIG_ROHM_BD79112 is not set
# CONFIG_ROHM_BD79124 is not set
# CONFIG_RICHTEK_RTQ6056 is not set
# CONFIG_SD_ADC_MODULATOR is not set
# CONFIG_TI_ADC081C is not set
# CONFIG_TI_ADC0832 is not set
# CONFIG_TI_ADC084S021 is not set
# CONFIG_TI_ADC108S102 is not set
# CONFIG_TI_ADC12138 is not set
# CONFIG_TI_ADC128S052 is not set
# CONFIG_TI_ADC161S626 is not set
# CONFIG_TI_ADS1015 is not set
# CONFIG_TI_ADS1018 is not set
# CONFIG_TI_ADS1100 is not set
# CONFIG_TI_ADS1119 is not set
# CONFIG_TI_ADS124S08 is not set
# CONFIG_TI_ADS1298 is not set
# CONFIG_TI_ADS131E08 is not set
# CONFIG_TI_ADS131M02 is not set
# CONFIG_TI_ADS7138 is not set
# CONFIG_TI_ADS7924 is not set
# CONFIG_TI_ADS7950 is not set
# CONFIG_TI_ADS8344 is not set
# CONFIG_TI_ADS8688 is not set
# CONFIG_TI_LMP92064 is not set
# CONFIG_TI_TLC4541 is not set
# CONFIG_TI_TSC2046 is not set
# CONFIG_TWL4030_MADC is not set
# CONFIG_TWL6030_GPADC is not set
# CONFIG_VF610_ADC is not set
CONFIG_VIPERBOARD_ADC=y
# CONFIG_XILINX_XADC is not set
# end of Analog to digital converters

#
# Analog to digital and digital to analog converters
#
# CONFIG_AD74115 is not set
# CONFIG_AD74413R is not set
# end of Analog to digital and digital to analog converters

#
# Analog Front Ends
#
# CONFIG_IIO_RESCALE is not set
# end of Analog Front Ends

#
# Amplifiers
#
# CONFIG_AD8366 is not set
# CONFIG_ADA4250 is not set
# CONFIG_ADL8113 is not set
# CONFIG_HMC425 is not set
# end of Amplifiers

#
# Capacitance to digital converters
#
# CONFIG_AD7150 is not set
# CONFIG_AD7746 is not set
# end of Capacitance to digital converters

#
# Chemical Sensors
#
# CONFIG_AOSONG_AGS02MA is not set
# CONFIG_ATLAS_PH_SENSOR is not set
# CONFIG_ATLAS_EZO_SENSOR is not set
# CONFIG_BME680 is not set
# CONFIG_CCS811 is not set
# CONFIG_ENS160 is not set
# CONFIG_IAQCORE is not set
# CONFIG_MHZ19B is not set
# CONFIG_PMS7003 is not set
# CONFIG_SCD30_CORE is not set
# CONFIG_SCD4X is not set
# CONFIG_SEN0322 is not set
# CONFIG_SENSIRION_SGP30 is not set
# CONFIG_SENSIRION_SGP40 is not set
# CONFIG_SPS30_I2C is not set
# CONFIG_SPS30_SERIAL is not set
# CONFIG_SENSEAIR_SUNRISE_CO2 is not set
# CONFIG_VZ89X is not set
# end of Chemical Sensors

#
# Hid Sensor IIO Common
#
CONFIG_HID_SENSOR_IIO_COMMON=y
CONFIG_HID_SENSOR_IIO_TRIGGER=y
# end of Hid Sensor IIO Common

#
# IIO SCMI Sensors
#
# end of IIO SCMI Sensors

#
# SSP Sensor Common
#
# CONFIG_IIO_SSP_SENSORHUB is not set
# end of SSP Sensor Common

#
# Digital to analog converters
#
# CONFIG_AD3530R is not set
# CONFIG_AD3552R_HS is not set
# CONFIG_AD3552R is not set
# CONFIG_AD5064 is not set
# CONFIG_AD5360 is not set
# CONFIG_AD5380 is not set
# CONFIG_AD5421 is not set
# CONFIG_AD5446_SPI is not set
# CONFIG_AD5446_I2C is not set
# CONFIG_AD5449 is not set
# CONFIG_AD5592R is not set
# CONFIG_AD5593R is not set
# CONFIG_AD5504 is not set
# CONFIG_AD5624R_SPI is not set
# CONFIG_AD5706R is not set
# CONFIG_AD9739A is not set
# CONFIG_LTC2688 is not set
# CONFIG_AD5686_SPI is not set
# CONFIG_AD5696_I2C is not set
# CONFIG_AD5755 is not set
# CONFIG_AD5758 is not set
# CONFIG_AD5761 is not set
# CONFIG_AD5764 is not set
# CONFIG_AD5766 is not set
# CONFIG_AD5770R is not set
# CONFIG_AD5791 is not set
# CONFIG_AD7293 is not set
# CONFIG_AD7303 is not set
# CONFIG_AD8460 is not set
# CONFIG_AD8801 is not set
# CONFIG_BD79703 is not set
# CONFIG_DPOT_DAC is not set
# CONFIG_DS4424 is not set
# CONFIG_LTC1660 is not set
# CONFIG_LTC2632 is not set
# CONFIG_LTC2664 is not set
# CONFIG_M62332 is not set
# CONFIG_MAX517 is not set
# CONFIG_MAX22007 is not set
# CONFIG_MAX5522 is not set
# CONFIG_MAX5821 is not set
# CONFIG_MCP4725 is not set
# CONFIG_MCP4728 is not set
# CONFIG_MCP47FEB02 is not set
# CONFIG_MCP4821 is not set
# CONFIG_MCP4922 is not set
# CONFIG_TI_DAC082S085 is not set
# CONFIG_TI_DAC5571 is not set
# CONFIG_TI_DAC7311 is not set
# CONFIG_TI_DAC7612 is not set
# CONFIG_VF610_DAC is not set
# end of Digital to analog converters

#
# IIO dummy driver
#
# end of IIO dummy driver

#
# Filters
#
# CONFIG_ADMV8818 is not set
# end of Filters

#
# Frequency Synthesizers DDS/PLL
#

#
# Clock Generator/Distribution
#
# CONFIG_AD9523 is not set
# end of Clock Generator/Distribution

#
# Phase-Locked Loop (PLL) frequency synthesizers
#
# CONFIG_ADF4350 is not set
# CONFIG_ADF4371 is not set
# CONFIG_ADF4377 is not set
# CONFIG_ADMFM2000 is not set
# CONFIG_ADMV1013 is not set
# CONFIG_ADMV1014 is not set
# CONFIG_ADMV4420 is not set
# CONFIG_ADRF6780 is not set
# end of Phase-Locked Loop (PLL) frequency synthesizers
# end of Frequency Synthesizers DDS/PLL

#
# Digital gyroscope sensors
#
# CONFIG_ADIS16080 is not set
# CONFIG_ADIS16130 is not set
# CONFIG_ADIS16136 is not set
# CONFIG_ADIS16260 is not set
# CONFIG_ADXRS290 is not set
# CONFIG_ADXRS450 is not set
# CONFIG_BMG160 is not set
# CONFIG_FXAS21002C is not set
CONFIG_HID_SENSOR_GYRO_3D=y
# CONFIG_MPU3050_I2C is not set
# CONFIG_IIO_ST_GYRO_3AXIS is not set
# CONFIG_ITG3200 is not set
# end of Digital gyroscope sensors

#
# Health Sensors
#

#
# Heart Rate Monitors
#
# CONFIG_AFE4403 is not set
# CONFIG_AFE4404 is not set
# CONFIG_MAX30100 is not set
# CONFIG_MAX30102 is not set
# end of Heart Rate Monitors
# end of Health Sensors

#
# Humidity sensors
#
# CONFIG_AM2315 is not set
# CONFIG_DHT11 is not set
# CONFIG_ENS210 is not set
# CONFIG_HDC100X is not set
# CONFIG_HDC2010 is not set
# CONFIG_HDC3020 is not set
CONFIG_HID_SENSOR_HUMIDITY=y
# CONFIG_HTS221 is not set
# CONFIG_HTU21 is not set
# CONFIG_SI7005 is not set
# CONFIG_SI7020 is not set
# end of Humidity sensors

#
# Inertial measurement units
#
# CONFIG_ADIS16400 is not set
# CONFIG_ADIS16460 is not set
# CONFIG_ADIS16475 is not set
# CONFIG_ADIS16480 is not set
# CONFIG_ADIS16550 is not set
# CONFIG_BMI160_I2C is not set
# CONFIG_BMI160_SPI is not set
# CONFIG_BMI270_I2C is not set
# CONFIG_BMI270_SPI is not set
# CONFIG_BMI323_I2C is not set
# CONFIG_BMI323_SPI is not set
# CONFIG_BOSCH_BNO055_SERIAL is not set
# CONFIG_BOSCH_BNO055_I2C is not set
# CONFIG_FXOS8700_I2C is not set
# CONFIG_FXOS8700_SPI is not set
# CONFIG_KMX61 is not set
# CONFIG_INV_ICM42600_I2C is not set
# CONFIG_INV_ICM42600_SPI is not set
# CONFIG_INV_ICM45600_I2C is not set
# CONFIG_INV_ICM45600_SPI is not set
# CONFIG_INV_MPU6050_I2C is not set
# CONFIG_INV_MPU6050_SPI is not set
# CONFIG_SMI240 is not set
# CONFIG_SMI330_I2C is not set
# CONFIG_SMI330_SPI is not set
# CONFIG_IIO_ST_LSM6DSX is not set
# CONFIG_IIO_ST_LSM9DS0 is not set
# end of Inertial measurement units

#
# Light sensors
#
# CONFIG_ACPI_ALS is not set
# CONFIG_ADJD_S311 is not set
# CONFIG_ADUX1020 is not set
# CONFIG_AL3000A is not set
# CONFIG_AL3010 is not set
# CONFIG_AL3320A is not set
# CONFIG_APDS9160 is not set
# CONFIG_APDS9300 is not set
# CONFIG_APDS9306 is not set
# CONFIG_APDS9960 is not set
# CONFIG_APDS9999 is not set
# CONFIG_AS73211 is not set
# CONFIG_BH1745 is not set
# CONFIG_BH1750 is not set
# CONFIG_BH1780 is not set
# CONFIG_CM32181 is not set
# CONFIG_CM3232 is not set
# CONFIG_CM3323 is not set
# CONFIG_CM3605 is not set
# CONFIG_CM36651 is not set
# CONFIG_GP2AP002 is not set
# CONFIG_GP2AP020A00F is not set
# CONFIG_SENSORS_ISL29018 is not set
# CONFIG_SENSORS_ISL29028 is not set
# CONFIG_ISL29125 is not set
# CONFIG_ISL76682 is not set
CONFIG_HID_SENSOR_ALS=y
CONFIG_HID_SENSOR_PROX=y
# CONFIG_JSA1212 is not set
# CONFIG_ROHM_BU27034 is not set
# CONFIG_RPR0521 is not set
# CONFIG_LTR390 is not set
# CONFIG_LTR501 is not set
# CONFIG_LTRF216A is not set
# CONFIG_LV0104CS is not set
# CONFIG_MAX44000 is not set
# CONFIG_MAX44009 is not set
# CONFIG_NOA1305 is not set
# CONFIG_OPT3001 is not set
# CONFIG_OPT4001 is not set
# CONFIG_OPT4060 is not set
# CONFIG_PA12203001 is not set
# CONFIG_SI1133 is not set
# CONFIG_SI1145 is not set
# CONFIG_STK3310 is not set
# CONFIG_ST_UVIS25 is not set
# CONFIG_TCS3414 is not set
# CONFIG_TCS3472 is not set
# CONFIG_SENSORS_TSL2563 is not set
# CONFIG_TSL2583 is not set
# CONFIG_TSL2591 is not set
# CONFIG_TSL2772 is not set
# CONFIG_TSL4531 is not set
# CONFIG_US5182D is not set
# CONFIG_VCNL4000 is not set
# CONFIG_VCNL4035 is not set
# CONFIG_VEML3235 is not set
# CONFIG_VEML3328 is not set
# CONFIG_VEML6030 is not set
# CONFIG_VEML6040 is not set
# CONFIG_VEML6046X00 is not set
# CONFIG_VEML6070 is not set
# CONFIG_VEML6075 is not set
# CONFIG_VL6180 is not set
# CONFIG_ZOPT2201 is not set
# end of Light sensors

#
# Magnetometer sensors
#
# CONFIG_AF8133J is not set
# CONFIG_AK8974 is not set
# CONFIG_AK8975 is not set
# CONFIG_AK09911 is not set
# CONFIG_ALS31300 is not set
# CONFIG_BMC150_MAGN_I2C is not set
# CONFIG_BMC150_MAGN_SPI is not set
# CONFIG_MAG3110 is not set
CONFIG_HID_SENSOR_MAGNETOMETER_3D=y
# CONFIG_MMC35240 is not set
# CONFIG_MMC5633 is not set
# CONFIG_MMC5983 is not set
# CONFIG_IIO_ST_MAGN_3AXIS is not set
# CONFIG_INFINEON_TLV493D is not set
# CONFIG_SENSORS_HMC5843_I2C is not set
# CONFIG_SENSORS_HMC5843_SPI is not set
# CONFIG_SENSORS_RM3100_I2C is not set
# CONFIG_SENSORS_RM3100_SPI is not set
# CONFIG_SI7210 is not set
# CONFIG_TI_TMAG5273 is not set
# CONFIG_YAMAHA_YAS530 is not set
# end of Magnetometer sensors

#
# Multiplexers
#
# CONFIG_IIO_MUX is not set
# end of Multiplexers

#
# Inclinometer sensors
#
CONFIG_HID_SENSOR_INCLINOMETER_3D=y
CONFIG_HID_SENSOR_DEVICE_ROTATION=y
# end of Inclinometer sensors

#
# Triggers - standalone
#
# CONFIG_IIO_SYSFS_TRIGGER is not set
# end of Triggers - standalone

#
# Linear and angular position sensors
#
CONFIG_HID_SENSOR_CUSTOM_INTEL_HINGE=y
# end of Linear and angular position sensors

#
# Digital potentiometers
#
# CONFIG_AD5110 is not set
# CONFIG_AD5272 is not set
# CONFIG_DS1803 is not set
# CONFIG_MAX5432 is not set
# CONFIG_MAX5481 is not set
# CONFIG_MAX5487 is not set
# CONFIG_MCP4018 is not set
# CONFIG_MCP4131 is not set
# CONFIG_MCP4531 is not set
# CONFIG_MCP41010 is not set
# CONFIG_TPL0102 is not set
# CONFIG_X9250 is not set
# end of Digital potentiometers

#
# Digital potentiostats
#
# CONFIG_LMP91000 is not set
# end of Digital potentiostats

#
# Pressure sensors
#
# CONFIG_ABP060MG is not set
# CONFIG_ABP2030PA_I2C is not set
# CONFIG_ABP2030PA_SPI is not set
# CONFIG_ROHM_BM1390 is not set
# CONFIG_BMP280 is not set
# CONFIG_DLHL60D is not set
# CONFIG_DPS310 is not set
CONFIG_HID_SENSOR_PRESS=y
# CONFIG_HP03 is not set
# CONFIG_HSC030PA is not set
# CONFIG_ICP10100 is not set
# CONFIG_MPL115_I2C is not set
# CONFIG_MPL115_SPI is not set
# CONFIG_MPL3115 is not set
# CONFIG_MPRLS0025PA_I2C is not set
# CONFIG_MPRLS0025PA_SPI is not set
# CONFIG_MS5611 is not set
# CONFIG_MS5637 is not set
# CONFIG_SDP500 is not set
# CONFIG_IIO_ST_PRESS is not set
# CONFIG_T5403 is not set
# CONFIG_HP206C is not set
# CONFIG_ZPA2326 is not set
# CONFIG_ADP810 is not set
# end of Pressure sensors

#
# Lightning sensors
#
# CONFIG_AS3935 is not set
# end of Lightning sensors

#
# Proximity and distance sensors
#
# CONFIG_CROS_EC_MKBP_PROXIMITY is not set
# CONFIG_D3323AA is not set
# CONFIG_HX9023S is not set
# CONFIG_IRSD200 is not set
# CONFIG_ISL29501 is not set
# CONFIG_LIDAR_LITE_V2 is not set
# CONFIG_MB1232 is not set
# CONFIG_PING is not set
# CONFIG_RFD77402 is not set
# CONFIG_SRF04 is not set
# CONFIG_SX9310 is not set
# CONFIG_SX9324 is not set
# CONFIG_SX9360 is not set
# CONFIG_SX9500 is not set
# CONFIG_SRF08 is not set
# CONFIG_VCNL3020 is not set
# CONFIG_VL53L0X_I2C is not set
# CONFIG_VL53L1X_I2C is not set
# CONFIG_AW96103 is not set
# end of Proximity and distance sensors

#
# Resolver to digital converters
#
# CONFIG_AD2S90 is not set
# CONFIG_AD2S1200 is not set
# CONFIG_AD2S1210 is not set
# end of Resolver to digital converters

#
# Temperature sensors
#
# CONFIG_LTC2983 is not set
# CONFIG_MAXIM_THERMOCOUPLE is not set
CONFIG_HID_SENSOR_TEMP=y
# CONFIG_MLX90614 is not set
# CONFIG_MLX90632 is not set
# CONFIG_MLX90635 is not set
# CONFIG_TMP006 is not set
# CONFIG_TMP007 is not set
# CONFIG_TMP117 is not set
# CONFIG_TSYS01 is not set
# CONFIG_TSYS02D is not set
# CONFIG_MAX30208 is not set
# CONFIG_MAX31856 is not set
# CONFIG_MAX31865 is not set
# CONFIG_MCP9600 is not set
# end of Temperature sensors

# CONFIG_NTB is not set
# CONFIG_PWM is not set

#
# IRQ chip support
#
CONFIG_IRQCHIP=y
CONFIG_IRQ_MSI_LIB=y
# CONFIG_AL_FIC is not set
# CONFIG_XILINX_INTC is not set
# end of IRQ chip support

# CONFIG_IPACK_BUS is not set
CONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_GPIO is not set
# CONFIG_RESET_INTEL_GW is not set
# CONFIG_RESET_SIMPLE is not set
# CONFIG_RESET_TI_SYSCON is not set
# CONFIG_RESET_TI_TPS380X is not set

#
# PHY Subsystem
#
CONFIG_GENERIC_PHY=y
# CONFIG_PHY_CAN_TRANSCEIVER is not set
# CONFIG_PHY_GOOGLE_USB is not set
CONFIG_USB_LGM_PHY=y
# CONFIG_PHY_NXP_PTN3222 is not set
# CONFIG_PHY_NXP_TJA1145 is not set

#
# PHY drivers for Broadcom platforms
#
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms

# CONFIG_PHY_CADENCE_TORRENT is not set
# CONFIG_PHY_CADENCE_DPHY is not set
# CONFIG_PHY_CADENCE_DPHY_RX is not set
# CONFIG_PHY_CADENCE_SIERRA is not set
# CONFIG_PHY_CADENCE_SALVO is not set
# CONFIG_PHY_INTEL_LGM_COMBO is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
CONFIG_PHY_CPCAP_USB=y
# CONFIG_PHY_MAPPHONE_MDM6600 is not set
# CONFIG_PHY_OCELOT_SERDES is not set
CONFIG_PHY_QCOM_USB_HS=y
CONFIG_PHY_QCOM_USB_HSIC=y
CONFIG_PHY_SAMSUNG_USB2=y
# CONFIG_PHY_TI_DS125DF111 is not set
CONFIG_PHY_TUSB1210=y
# end of PHY Subsystem

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

#
# Performance monitor support
#
# CONFIG_DWC_PCIE_PMU is not set
# end of Performance monitor support

CONFIG_RAS=y
# CONFIG_USB4 is not set

#
# Android
#
# CONFIG_ANDROID_BINDER_IPC is not set
# end of Android

# CONFIG_LIBNVDIMM is not set
# CONFIG_DAX is not set
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
CONFIG_NVMEM_LAYOUTS=y

#
# Layout Types
#
# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set
# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set
# CONFIG_NVMEM_LAYOUT_U_BOOT_ENV is not set
# end of Layout Types

# CONFIG_NVMEM_RMEM is not set

#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support

# CONFIG_FPGA is not set
# CONFIG_FSI is not set
CONFIG_TEE=y
CONFIG_AMDTEE=y
# CONFIG_MUX_CORE is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
CONFIG_MOST=y
CONFIG_MOST_USB_HDM=y
# CONFIG_MOST_CDEV is not set
# CONFIG_MOST_SND is not set
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# end of Device Drivers

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set
CONFIG_FS_IOMAP=y
CONFIG_BUFFER_HEAD=y
CONFIG_LEGACY_DIRECT_IO=y
# CONFIG_EXT2_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
# CONFIG_EXPORTFS_BLOCK_OPS is not set
CONFIG_FILE_LOCKING=y
# CONFIG_FS_ENCRYPTION is not set
# CONFIG_FS_VERITY is not set
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
# CONFIG_FUSE_FS is not set
# CONFIG_OVERLAY_FS is not set

#
# Caches
#
CONFIG_NETFS_SUPPORT=y
# CONFIG_NETFS_STATS is not set
# CONFIG_NETFS_DEBUG is not set
# CONFIG_FSCACHE is not set
# end of Caches

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
# CONFIG_UDF_FS is not set
# end of CD-ROM/DVD Filesystems

#
# DOS/FAT/EXFAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS3_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
# CONFIG_PROC_VMCORE_DEVICE_DUMP is not set
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not set
CONFIG_PROC_PID_ARCH_STATUS=y
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not set
# CONFIG_TMPFS_QUOTA is not set
CONFIG_ARCH_SUPPORTS_HUGETLBFS=y
CONFIG_HUGETLBFS=y
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set
CONFIG_HUGETLB_PAGE=y
CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING=y
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
CONFIG_CONFIGFS_FS=y
# end of Pseudo filesystems

CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not set
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
CONFIG_NFS_V4_0=y
# CONFIG_NFS_V4_2 is not set
CONFIG_PNFS_FILE_LAYOUT=y
CONFIG_PNFS_BLOCK=y
CONFIG_PNFS_FLEXFILE_LAYOUT=y
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_FSCACHE is not set
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFSD is not set
CONFIG_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_SUNRPC_BACKCHANNEL=y
CONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_SMB_SERVER is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_9P_FS=y
# CONFIG_9P_FS_POSIX_ACL is not set
# CONFIG_9P_FS_SECURITY is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
CONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
# CONFIG_UNICODE is not set
CONFIG_IO_WQ=y
# end of File systems

#
# Security options
#
CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not set
# CONFIG_PERSISTENT_KEYRINGS is not set
# CONFIG_BIG_KEYS is not set
# CONFIG_TRUSTED_KEYS is not set
# CONFIG_ENCRYPTED_KEYS is not set
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_PROC_MEM_ALWAYS_FORCE is not set
CONFIG_PROC_MEM_FORCE_PTRACE=y
# CONFIG_PROC_MEM_NO_FORCE is not set
# CONFIG_MSEAL_SYSTEM_MAPPINGS is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
# CONFIG_SECURITY_NETWORK_XFRM is not set
# CONFIG_SECURITY_PATH is not set
# CONFIG_INTEL_TXT is not set
CONFIG_LSM_MMAP_MIN_ADDR=65536
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
CONFIG_SECURITY_SELINUX_AVC_HASH_BITS=9
# CONFIG_SECURITY_SELINUX_DEBUG is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_SECURITY_LANDLOCK is not set
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
# CONFIG_INTEGRITY_SIGNATURE is not set
CONFIG_INTEGRITY_AUDIT=y
# CONFIG_IMA is not set
# CONFIG_EVM is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf"

#
# Kernel hardening options
#

#
# Memory initialization
#
CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_BARE=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not set
CONFIG_INIT_STACK_ALL_ZERO=y
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization

#
# Bounds checking
#
CONFIG_FORTIFY_SOURCE=y
CONFIG_HARDENED_USERCOPY=y
# CONFIG_HARDENED_USERCOPY_DEFAULT_ON is not set
# end of Bounds checking

#
# Hardening of kernel data structures
#
CONFIG_LIST_HARDENED=y
CONFIG_BUG_ON_DATA_CORRUPTION=y
# end of Hardening of kernel data structures

CONFIG_RANDSTRUCT_NONE=y
# end of Kernel hardening options
# end of Security options

CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_SIG=y
CONFIG_CRYPTO_SIG2=y
CONFIG_CRYPTO_SKCIPHER=y
CONFIG_CRYPTO_SKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_KPP=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
# CONFIG_CRYPTO_SELFTESTS is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_PCRYPT is not set
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=y
CONFIG_CRYPTO_KRB5ENC=y
# CONFIG_CRYPTO_BENCHMARK is not set
# end of Crypto core or helper

#
# Public-key cryptography
#
CONFIG_CRYPTO_RSA=y
# CONFIG_CRYPTO_DH is not set
CONFIG_CRYPTO_ECC=y
CONFIG_CRYPTO_ECDH=y
# CONFIG_CRYPTO_ECDSA is not set
# CONFIG_CRYPTO_ECRDSA is not set
# CONFIG_CRYPTO_MLDSA is not set
# end of Public-key cryptography

#
# Block ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_ARIA is not set
# CONFIG_CRYPTO_BLOWFISH is not set
CONFIG_CRYPTO_CAMELLIA=y
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SM4_GENERIC is not set
# CONFIG_CRYPTO_TWOFISH is not set
# end of Block ciphers

#
# Length-preserving ciphers and modes
#
# CONFIG_CRYPTO_ADIANTUM is not set
# CONFIG_CRYPTO_CHACHA20 is not set
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_HCTR2 is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_XTS is not set
# end of Length-preserving ciphers and modes

#
# AEAD (authenticated encryption with associated data) ciphers
#
# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
CONFIG_CRYPTO_CCM=y
CONFIG_CRYPTO_GCM=y
CONFIG_CRYPTO_GENIV=y
CONFIG_CRYPTO_SEQIV=y
CONFIG_CRYPTO_ECHAINIV=y
# CONFIG_CRYPTO_ESSIV is not set
# end of AEAD (authenticated encryption with associated data) ciphers

#
# Hashes, digests, and MACs
#
# CONFIG_CRYPTO_BLAKE2B is not set
CONFIG_CRYPTO_CMAC=y
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_RMD160 is not set
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
# CONFIG_CRYPTO_SHA3 is not set
# CONFIG_CRYPTO_SM3 is not set
# CONFIG_CRYPTO_STREEBOG is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_XXHASH is not set
# end of Hashes, digests, and MACs

#
# CRCs (cyclic redundancy checks)
#
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_CRC32 is not set
# end of CRCs (cyclic redundancy checks)

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
CONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
CONFIG_CRYPTO_LZ4=y
# CONFIG_CRYPTO_LZ4HC is not set
# CONFIG_CRYPTO_ZSTD is not set
# end of Compression

#
# Random number generation
#
# CONFIG_CRYPTO_DRBG is not set
# CONFIG_CRYPTO_JITTERENTROPY is not set
# end of Random number generation

#
# Userspace interface (deprecated)
#
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
# end of Userspace interface (deprecated)

#
# Accelerated Cryptographic Algorithms for CPU (x86)
#
# CONFIG_CRYPTO_AES_NI_INTEL is not set
# CONFIG_CRYPTO_BLOWFISH_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAST6_AVX_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX2_X86_64 is not set
# CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64 is not set
# CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_TWOFISH_X86_64 is not set
# CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set
# CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set
# CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64 is not set
# CONFIG_CRYPTO_ARIA_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64 is not set
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not set
# end of Accelerated Cryptographic Algorithms for CPU (x86)

CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PADLOCK is not set
# CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
# CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
CONFIG_CRYPTO_DEV_CCP=y
CONFIG_CRYPTO_DEV_CCP_DD=y
# CONFIG_CRYPTO_DEV_SP_CCP is not set
CONFIG_CRYPTO_DEV_SP_PSP=y
# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCC is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXX is not set
# CONFIG_CRYPTO_DEV_QAT_C62X is not set
# CONFIG_CRYPTO_DEV_QAT_4XXX is not set
# CONFIG_CRYPTO_DEV_QAT_420XX is not set
# CONFIG_CRYPTO_DEV_QAT_6XXX is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set
# CONFIG_CRYPTO_DEV_QAT_C62XVF is not set
# CONFIG_CRYPTO_DEV_VIRTIO is not set
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
# CONFIG_CRYPTO_DEV_CCREE is not set
# CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
CONFIG_X509_CERTIFICATE_PARSER=y
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not set
CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not set
# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set

#
# Certificates for signature checking
#
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
CONFIG_OPENSSL_SUPPORTS_ML_DSA=y
# end of Certificates for signature checking

CONFIG_CRYPTO_KRB5=y
# CONFIG_CRYPTO_KRB5_SELFTESTS is not set
CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
CONFIG_CRC8=y
CONFIG_CRC16=y
CONFIG_CRC_CCITT=y
CONFIG_CRC_ITU_T=y
CONFIG_CRC_T10DIF=y
CONFIG_CRC_T10DIF_ARCH=y
CONFIG_CRC32=y
CONFIG_CRC32_ARCH=y
CONFIG_CRC_OPTIMIZATIONS=y
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_LIB_UTILS=y
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_LIB_AES_ARCH=y
CONFIG_CRYPTO_LIB_AES_CBC_MACS=y
CONFIG_CRYPTO_LIB_ARC4=y
CONFIG_CRYPTO_LIB_BLAKE2S_ARCH=y
CONFIG_CRYPTO_LIB_GF128HASH=y
CONFIG_CRYPTO_LIB_GF128HASH_ARCH=y
CONFIG_CRYPTO_LIB_MD5=y
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_LIB_SHA1=y
CONFIG_CRYPTO_LIB_SHA1_ARCH=y
CONFIG_CRYPTO_LIB_SHA256=y
CONFIG_CRYPTO_LIB_SHA256_ARCH=y
CONFIG_CRYPTO_LIB_SHA512=y
CONFIG_CRYPTO_LIB_SHA512_ARCH=y
CONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_ARM64=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_RISCV=y
# CONFIG_XZ_DEC_MICROLZMA is not set
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_DECOMPRESS_ZSTD=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_INTERVAL_TREE=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DMA_OPS_HELPERS=y
CONFIG_NEED_SG_DMA_FLAGS=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_DMA_DECLARE_COHERENT=y
CONFIG_SWIOTLB=y
# CONFIG_SWIOTLB_DYNAMIC is not set
CONFIG_DMA_NEED_SYNC=y
# CONFIG_DMA_RESTRICTED_POOL is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_CPUMASK_OFFSTACK is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
# CONFIG_IRQ_POLL is not set
CONFIG_MPILIB=y
CONFIG_DIMLIB=y
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=y
CONFIG_HAVE_GENERIC_VDSO=y
CONFIG_GENERIC_GETTIMEOFDAY=y
CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT=y
CONFIG_VDSO_GETRANDOM=y
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=y
CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y
CONFIG_ARCH_HAS_COPY_MC=y
CONFIG_ARCH_STACKWALK=y
CONFIG_STACKDEPOT=y
CONFIG_STACKDEPOT_ALWAYS_INIT=y
CONFIG_STACKDEPOT_MAX_FRAMES=64
CONFIG_REF_TRACKER=y
CONFIG_SBITMAP=y
# CONFIG_LWQ_TEST is not set
# end of Library routines

CONFIG_FIRMWARE_TABLE=y
CONFIG_UNION_FIND=y

#
# Kernel hacking
#

#
# printk and dmesg options
#
CONFIG_PRINTK_TIME=y
CONFIG_PRINTK_CALLER=y
# CONFIG_STACKTRACE_BUILD_ID is not set
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_CONSOLE_LOGLEVEL_QUIET=4
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_BOOT_PRINTK_DELAY is not set
CONFIG_DYNAMIC_DEBUG=y
CONFIG_DYNAMIC_DEBUG_CORE=y
CONFIG_SYMBOLIC_ERRNAME=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_BUGVERBOSE_DETAILED=y
# end of printk and dmesg options

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y

#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
CONFIG_AS_HAS_NON_CONST_ULEB128=y
# CONFIG_DEBUG_INFO_NONE is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set
CONFIG_DEBUG_INFO_DWARF4=y
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_REDUCED is not set
CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
# CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
# CONFIG_GDB_SCRIPTS is not set
CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set
CONFIG_OBJTOOL=y
# CONFIG_OBJTOOL_WERROR is not set
CONFIG_NOINSTR_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options

#
# Generic Kernel Debugging Instruments
#
# CONFIG_MAGIC_SYSRQ is not set
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_FS_ALLOW_NONE is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
CONFIG_ARCH_HAS_UBSAN=y
CONFIG_UBSAN=y
# CONFIG_UBSAN_TRAP is not set
CONFIG_CC_HAS_UBSAN_BOUNDS_STRICT=y
CONFIG_UBSAN_BOUNDS=y
CONFIG_UBSAN_BOUNDS_STRICT=y
CONFIG_UBSAN_SHIFT=y
# CONFIG_UBSAN_DIV_ZERO is not set
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
# CONFIG_UBSAN_ALIGNMENT is not set
# CONFIG_TEST_UBSAN is not set
CONFIG_HAVE_ARCH_KCSAN=y
CONFIG_HAVE_KCSAN_COMPILER=y
# end of Generic Kernel Debugging Instruments

#
# Networking Debugging
#
CONFIG_NET_DEV_REFCNT_TRACKER=y
CONFIG_NET_NS_REFCNT_TRACKER=y
CONFIG_DEBUG_NET=y
# CONFIG_DEBUG_NET_SMALL_RTNL is not set
# end of Networking Debugging

#
# Memory Debugging
#
CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_SLUB_RCU_DEBUG=y
CONFIG_PAGE_OWNER=y
CONFIG_PAGE_TABLE_CHECK=y
CONFIG_PAGE_TABLE_CHECK_ENFORCED=y
CONFIG_PAGE_POISONING=y
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_ARCH_HAS_DEBUG_WX=y
CONFIG_DEBUG_WX=y
CONFIG_ARCH_HAS_PTDUMP=y
CONFIG_PTDUMP=y
CONFIG_PTDUMP_DEBUGFS=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_PER_VMA_LOCK_STATS is not set
CONFIG_DEBUG_OBJECTS=y
# CONFIG_DEBUG_OBJECTS_SELFTEST is not set
CONFIG_DEBUG_OBJECTS_FREE=y
CONFIG_DEBUG_OBJECTS_TIMERS=y
CONFIG_DEBUG_OBJECTS_WORK=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SHRINKER_DEBUG is not set
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_SCHED_STACK_END_CHECK=y
CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
CONFIG_DEBUG_VFS=y
CONFIG_DEBUG_VM_IRQSOFF=y
CONFIG_DEBUG_VM=y
CONFIG_DEBUG_VM_MAPLE_TREE=y
CONFIG_DEBUG_VM_RB=y
CONFIG_DEBUG_VM_PGFLAGS=y
CONFIG_DEBUG_VM_PGTABLE=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_DEBUG_VIRTUAL=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_PER_CPU_MAPS=y
CONFIG_DEBUG_KMAP_LOCAL=y
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y
# CONFIG_MEM_ALLOC_PROFILING is not set
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_HAVE_ARCH_KASAN_VMALLOC=y
CONFIG_CC_HAS_KASAN_GENERIC=y
CONFIG_CC_HAS_KASAN_SW_TAGS=y
CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
CONFIG_KASAN=y
CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX=y
CONFIG_KASAN_GENERIC=y
# CONFIG_KASAN_OUTLINE is not set
CONFIG_KASAN_INLINE=y
CONFIG_KASAN_STACK=y
CONFIG_KASAN_VMALLOC=y
# CONFIG_KASAN_EXTRA_INFO is not set
CONFIG_HAVE_ARCH_KFENCE=y
# CONFIG_KFENCE is not set
CONFIG_HAVE_ARCH_KMSAN=y
# end of Memory Debugging

# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Oops, Lockups and Hangs
#
CONFIG_PANIC_ON_OOPS=y
CONFIG_PANIC_TIMEOUT=86400
CONFIG_LOCKUP_DETECTOR=y
CONFIG_SOFTLOCKUP_DETECTOR=y
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=0
CONFIG_HAVE_HARDLOCKUP_DETECTOR_BUDDY=y
CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_HARDLOCKUP_DETECTOR_PREFER_BUDDY is not set
CONFIG_HARDLOCKUP_DETECTOR_PERF=y
# CONFIG_HARDLOCKUP_DETECTOR_BUDDY is not set
# CONFIG_HARDLOCKUP_DETECTOR_ARCH is not set
CONFIG_HARDLOCKUP_DETECTOR_COUNTS_HRTIMER=y
CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=140
CONFIG_BOOTPARAM_HUNG_TASK_PANIC=1
# CONFIG_DETECT_HUNG_TASK_BLOCKER is not set
CONFIG_WQ_WATCHDOG=y
CONFIG_BOOTPARAM_WQ_STALL_PANIC=0
# CONFIG_WQ_CPU_INTENSIVE_REPORT is not set
# CONFIG_TEST_LOCKUP is not set
# end of Debug Oops, Lockups and Hangs

#
# Scheduler Debugging
#
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
# end of Scheduler Debugging

CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_ATOMIC is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
CONFIG_LOCK_DEBUGGING_SUPPORT=y
CONFIG_PROVE_LOCKING=y
CONFIG_PROVE_RAW_LOCK_NESTING=y
# CONFIG_LOCK_STAT is not set
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
CONFIG_DEBUG_RWSEMS=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_LOCKDEP=y
CONFIG_LOCKDEP_BITS=20
CONFIG_LOCKDEP_CHAINS_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14
CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
# CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
# CONFIG_SCF_TORTURE_TEST is not set
CONFIG_CSD_LOCK_WAIT_DEBUG=y
# CONFIG_CSD_LOCK_WAIT_DEBUG_DEFAULT is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)

CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACE_IRQFLAGS_NMI=y
CONFIG_NMI_CHECK_CPU=y
CONFIG_DEBUG_IRQFLAGS=y
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_KOBJECT_RELEASE is not set

#
# Debug kernel data structures
#
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_PLIST=y
CONFIG_DEBUG_SG=y
CONFIG_DEBUG_NOTIFIERS=y
CONFIG_DEBUG_MAPLE_TREE=y
# end of Debug kernel data structures

#
# RCU Debugging
#
CONFIG_PROVE_RCU=y
# CONFIG_RCU_SCALE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_REF_SCALE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=100
CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=0
# CONFIG_RCU_CPU_STALL_CPUTIME is not set
# CONFIG_RCU_TRACE is not set
CONFIG_RCU_EQS_DEBUG=y
# end of RCU Debugging

# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
# CONFIG_LATENCYTOP is not set
CONFIG_USER_STACKTRACE_SUPPORT=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_RETHOOK=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y
CONFIG_HAVE_FTRACE_REGS_HAVING_PT_REGS=y
CONFIG_HAVE_DYNAMIC_FTRACE_NO_PATCHABLE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_JMP=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_OBJTOOL_MCOUNT=y
CONFIG_HAVE_OBJTOOL_NOP_MCOUNT=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_PREEMPTIRQ_TRACEPOINTS=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_TRACEFS_AUTOMOUNT_DEPRECATED=y
# CONFIG_BOOTTIME_TRACING is not set
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_UPROBE_EVENTS=y
CONFIG_EPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
CONFIG_PROBE_EVENTS=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_USER_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
CONFIG_TRACE_EVENT_INJECT=y
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS=y
# CONFIG_RING_BUFFER_PERSISTENT_INJECT is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_RV is not set
# CONFIG_TRACE_REMOTE_TEST is not set
CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_SAMPLES is not set
CONFIG_HAVE_SAMPLE_FTRACE_DIRECT=y
CONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI=y
CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not set

#
# x86 Debugging
#
CONFIG_EARLY_PRINTK_USB=y
CONFIG_X86_VERBOSE_BOOTUP=y
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y
# CONFIG_EARLY_PRINTK_USB_XDBC is not set
# CONFIG_DEBUG_TLBFLUSH is not set
CONFIG_HAVE_MMIOTRACE_SUPPORT=y
# CONFIG_X86_DECODER_SELFTEST is not set
CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not set
CONFIG_DEBUG_BOOT_PARAMS=y
# CONFIG_CPA_DEBUG is not set
CONFIG_DEBUG_ENTRY=y
# CONFIG_DEBUG_NMI_SELFTEST is not set
CONFIG_X86_DEBUG_FPU=y
# CONFIG_PUNIT_ATOM_DEBUG is not set
CONFIG_UNWINDER_ORC=y
# CONFIG_UNWINDER_FRAME_POINTER is not set
# end of x86 Debugging

#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
CONFIG_FAULT_INJECTION=y
CONFIG_FAILSLAB=y
CONFIG_FAIL_PAGE_ALLOC=y
CONFIG_FAULT_INJECTION_USERCOPY=y
CONFIG_FAIL_MAKE_REQUEST=y
CONFIG_FAIL_IO_TIMEOUT=y
CONFIG_FAIL_FUTEX=y
CONFIG_FAULT_INJECTION_DEBUG_FS=y
# CONFIG_FAIL_MMC_REQUEST is not set
# CONFIG_FAIL_SKB_REALLOC is not set
CONFIG_FAULT_INJECTION_CONFIGFS=y
# CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set
CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_ENABLE_COMPARISONS=y
CONFIG_KCOV_INSTRUMENT_ALL=y
CONFIG_KCOV_IRQ_AREA_SIZE=0x40000
# CONFIG_KCOV_SELFTEST is not set
CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_TEST_DHRY is not set
# CONFIG_LKDTM is not set
# CONFIG_TEST_DIV64 is not set
# CONFIG_TEST_MULDIV64 is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_TEST_REF_TRACKER is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_XARRAY is not set
# CONFIG_TEST_MAPLE_TREE is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_IDA is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_BITOPS is not set
# CONFIG_TEST_VMALLOC is not set
# CONFIG_TEST_WORKQUEUE is not set
# CONFIG_TEST_BPF is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_CONTEXT_ANALYSIS_TEST is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_FREE_PAGES is not set
# CONFIG_TEST_CLOCKSOURCE_WATCHDOG is not set
# CONFIG_TEST_OBJPOOL is not set
CONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage

#
# Rust hacking
#
# end of Rust hacking
# end of Kernel hacking

CONFIG_IO_URING_ZCRX=y
CONFIG_IO_URING_BPF=y
KernelRepo https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
ReproCID 5558519719264256
ReproOpts
Show (105 bytes)
{"repeat":true,"procs":1,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false,"callcomments":true}
ReproSyzID 4820970755325952
SyzkallerCommit aaffb17308eeb2113f56cda753e4eaa5d3c6ab89
TargetArch amd64
TargetOS linux

Current Stage: upstream
Next Stage:

Reporting Stages and Comments:
Stage Source Reported At Ext ID Comments
moderation lore 2026/07/31 07:54 <19c83890-3da4-471c-bbca-8d873b803586@mail.kernel.org>
1 Comments
  • syzbot@kernel.org (2026/07/31 07:59):
    If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
    it aborts and returns the error without killing the already submitted
    rcv_urb. This leaves the rcv_urb active.
    
    When this happens during initialization (e.g., in cxacru_atm_start()), the
    driver may ignore the error and proceed to call cxacru_poll_status(), which
    invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
    triggers a warning in usb_submit_urb():
    
    cxacru 1-1:1.0: send of cm 0x84 failed (-104)
    ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
    ------------[ cut here ]------------
    URB ffff88812658d200 submitted while active
    WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0
    drivers/usb/core/urb.c:379
    ...
    Call Trace:
     <TASK>
     cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
     cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
     cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
     cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
     usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
     usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
     cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
    ...
    
    To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts
    early. We can safely call usb_kill_urb() on rcv_urb in the error path, as
    it is safe to call even if the URB is not active (e.g., if it failed to
    submit in the first place, or if it already completed).
    
    Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru")
    Assisted-by: Gemini:gemini-3.5-flash Gemini:gemini-3.1-pro-preview syzbot
    Reported-by: syzbot+c9dff578c3a41775176a@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=c9dff578c3a41775176a
    Link: https://syzkaller.appspot.com/ai_job?id=75fec6f2-c8a6-43b1-b184-4d26baba86cc
    To: "Chas Williams" <3chas3@gmail.com>
    To: <accessrunner-general@lists.sourceforge.net>
    To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
    To: <linux-atm-general@lists.sourceforge.net>
    To: <linux-usb@vger.kernel.org>
    To: <netdev@vger.kernel.org>
    To: "Duncan Sands" <duncan.sands@math.u-psud.fr>
    Cc: <linux-kernel@vger.kernel.org>
    
    ---
    diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
    index f1900c567..429ac20a8 100644
    --- a/drivers/usb/atm/cxacru.c
    +++ b/drivers/usb/atm/cxacru.c
    @@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
     	ret = offd;
     	usb_dbg(instance->usbatm, "cm %#x\n", cm);
     fail:
    +	if (ret < 0)
    +		usb_kill_urb(instance->rcv_urb);
     	mutex_unlock(&instance->cm_serialize);
     err:
     	return ret;
    
    
    base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
    -- 
    This is an AI-generated patch subject to moderation.
    Reply with '#syz upstream' to Sign-off the patch as a human author
    and send it to the upstream kernel mailing lists.
    Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    
    See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    You can comment on the patch as usual, syzbot will try to address
    the comments and send a new version of the patch if necessary.
    syzbot engineers can be reached at syzkaller@googlegroups.com.
    
upstream lore 2026/07/31 10:15 <91edfa4c-a63d-400c-9f00-31f3e1f98c00@mail.kernel.org>
2 Comments
  • syzbot@kernel.org (2026/07/31 10:19):
    From: Aleksandr Nogikh <nogikh@google.com>
    
    If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
    it aborts and returns the error without killing the already submitted
    rcv_urb. This leaves the rcv_urb active.
    
    When this happens during initialization (e.g., in cxacru_atm_start()), the
    driver may ignore the error and proceed to call cxacru_poll_status(), which
    invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
    triggers a warning in usb_submit_urb():
    
    cxacru 1-1:1.0: send of cm 0x84 failed (-104)
    ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
    ------------[ cut here ]------------
    URB ffff88812658d200 submitted while active
    WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0
    drivers/usb/core/urb.c:379
    ...
    Call Trace:
     <TASK>
     cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
     cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
     cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
     cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
     usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
     usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
     cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
    ...
    
    To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts
    early. We can safely call usb_kill_urb() on rcv_urb in the error path, as
    it is safe to call even if the URB is not active (e.g., if it failed to
    submit in the first place, or if it already completed).
    
    Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru")
    Assisted-by: Gemini:gemini-3.5-flash Gemini:gemini-3.1-pro-preview syzbot
    Reported-by: syzbot+c9dff578c3a41775176a@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=c9dff578c3a41775176a
    Link: https://syzkaller.appspot.com/ai_job?id=75fec6f2-c8a6-43b1-b184-4d26baba86cc
    Signed-off-by: Aleksandr Nogikh <nogikh@google.com>
    
    ---
    diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
    index f1900c567..429ac20a8 100644
    --- a/drivers/usb/atm/cxacru.c
    +++ b/drivers/usb/atm/cxacru.c
    @@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
     	ret = offd;
     	usb_dbg(instance->usbatm, "cm %#x\n", cm);
     fail:
    +	if (ret < 0)
    +		usb_kill_urb(instance->rcv_urb);
     	mutex_unlock(&instance->cm_serialize);
     err:
     	return ret;
    
    
    base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
    -- 
    See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    You can comment on the patch as usual, syzbot will try to address
    the comments and send a new version of the patch if necessary.
    syzbot engineers can be reached at syzkaller@googlegroups.com.
    
  • patchwork-bot@kernel.org (2026/08/06 15:54):
    Hello:
    
    This patch was applied to netdev/net-next.git (main)
    by Jakub Kicinski <kuba@kernel.org>:
    
    On Fri, 31 Jul 2026 10:15:20 +0000 (UTC) you wrote:
    > From: Aleksandr Nogikh <nogikh@google.com>
    > 
    > If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
    > it aborts and returns the error without killing the already submitted
    > rcv_urb. This leaves the rcv_urb active.
    > 
    > When this happens during initialization (e.g., in cxacru_atm_start()), the
    > driver may ignore the error and proceed to call cxacru_poll_status(), which
    > invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
    > triggers a warning in usb_submit_urb():
    > 
    > [...]
    
    Here is the summary with links:
      - usb: atm: cxacru: properly kill rcv_urb on error in cxacru_cm()
        https://git.kernel.org/netdev/net-next/c/d87cabf0b673
    
    You are awesome, thank you!
    -- 
    Deet-doot-dot, I am a bot.
    https://korg.docs.kernel.org/patchwork/pwbot.html
    
    
    

Decision History:
Time User Decision Source Error
2026/07/31 10:14 nogikh@google.com βœ… lore

Outputs:
AckedBy
[]
Fixes
map[AuthorEmail:duncan.sands@math.u-psud.fr AuthorName:Duncan Sands Hash:1b0e614652344a2d39eb336f3dc07651782883bf Title:[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru]
KernelBranch
master
KernelCommit
f5098b6bae761e346ebcd9da7f95622c04733cff
KernelRepo
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
PatchDescription
usb: atm: cxacru: properly kill rcv_urb on error in cxacru_cm()

If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
it aborts and returns the error without killing the already submitted
rcv_urb. This leaves the rcv_urb active.

When this happens during initialization (e.g., in cxacru_atm_start()), the
driver may ignore the error and proceed to call cxacru_poll_status(), which
invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
triggers a warning in usb_submit_urb():

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0
drivers/usb/core/urb.c:379
...
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
...

To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts
early. We can safely call usb_kill_urb() on rcv_urb in the error path, as
it is safe to call even if the URB is not active (e.g., if it failed to
submit in the first place, or if it already completed).
PatchDiff
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
Recipients
[map[Email:3chas3@gmail.com Name:Chas Williams To:true] map[Email:accessrunner-general@lists.sourceforge.net Name: To:true] map[Email:gregkh@linuxfoundation.org Name:Greg Kroah-Hartman To:true] map[Email:linux-atm-general@lists.sourceforge.net Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:linux-usb@vger.kernel.org Name: To:true] map[Email:netdev@vger.kernel.org Name: To:true] map[Email:duncan.sands@math.u-psud.fr Name:Duncan Sands To:true]]
ReportedBy
[]
ReviewedBy
[]
TestedBy
[]

Crash report:
cxacru 4-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff888115908300 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x1689/0x19b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:2/1121
Modules linked in:
CPU: 1 UID: 0 PID: 1121 Comm: kworker/1:2 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x168c/0x19b0 drivers/usb/core/urb.c:379
Code: 00 48 8b 04 24 48 8b 90 b0 00 00 00 e9 70 ff ff ff bb ed ff ff ff e9 ac f1 ff ff e8 ae c8 ba fc 48 8d 3d 97 28 01 06 48 89 de <67> 48 0f b9 3a bb f0 ff ff ff e9 8e f1 ff ff c7 44 24 30 00 00 00
RSP: 0018:ffffc90003d1eb98 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888115908300 RCX: 0000000000000000
RDX: ffff88810efc8000 RSI: ffff888115908300 RDI: ffffffff8afa6430
RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000000
R10: ffffc90003d1ec20 R11: 0000000000000000 R12: 0000000000000040
R13: ffff88811defd000 R14: ffff888113b12000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888268736000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff1ba63958 CR3: 000000011715a000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 cxacru_cm+0x202/0x950 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x147/0xdc0 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x203/0x240 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x196/0x360 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x147e/0x1b50 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x101/0x200 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x386/0x9b0 drivers/usb/core/driver.c:399
 call_driver_probe drivers/base/dd.c:628 [inline]
 really_probe+0x241/0xa60 drivers/base/dd.c:706
 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868
 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898
 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026
 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500
 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098
 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x64/0x160 drivers/base/bus.c:620
 device_add+0x121d/0x1970 drivers/base/core.c:3772
 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250
 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:628 [inline]
 really_probe+0x241/0xa60 drivers/base/dd.c:706
 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868
 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898
 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026
 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500
 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098
 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x64/0x160 drivers/base/bus.c:620
 device_add+0x121d/0x1970 drivers/base/core.c:3772
 usb_new_device.cold+0x685/0x115c drivers/usb/core/hub.c:2700
 hub_port_connect drivers/usb/core/hub.c:5572 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5712 [inline]
 port_event drivers/usb/core/hub.c:5876 [inline]
 hub_event+0x314d/0x4af0 drivers/usb/core/hub.c:5958
 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322
 process_scheduled_works kernel/workqueue.c:3405 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486
 kthread+0x370/0x450 kernel/kthread.c:436
 ret_from_fork+0x69a/0xc80 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	00 48 8b             	add    %cl,-0x75(%rax)
   3:	04 24                	add    $0x24,%al
   5:	48 8b 90 b0 00 00 00 	mov    0xb0(%rax),%rdx
   c:	e9 70 ff ff ff       	jmp    0xffffff81
  11:	bb ed ff ff ff       	mov    $0xffffffed,%ebx
  16:	e9 ac f1 ff ff       	jmp    0xfffff1c7
  1b:	e8 ae c8 ba fc       	call   0xfcbac8ce
  20:	48 8d 3d 97 28 01 06 	lea    0x6012897(%rip),%rdi        # 0x60128be
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	bb f0 ff ff ff       	mov    $0xfffffff0,%ebx
  34:	e9 8e f1 ff ff       	jmp    0xfffff1c7
  39:	c7                   	.byte 0xc7
  3a:	44 24 30             	rex.R and $0x30,%al
  3d:	00 00                	add    %al,(%rax)

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/07/31 06:48 flow patching
1h05m Results:
map[AckedBy:[] Fixes:map[AuthorEmail:duncan.sands@math.u-psud.fr AuthorName:Duncan Sands Hash:1b0e614652344a2d39eb336f3dc07651782883bf Title:[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru] KernelBranch:master KernelCommit:f5098b6bae761e346ebcd9da7f95622c04733cff KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git PatchDescription:usb: atm: cxacru: properly kill rcv_urb on error in cxacru_cm()

If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
it aborts and returns the error without killing the already submitted
rcv_urb. This leaves the rcv_urb active.

When this happens during initialization (e.g., in cxacru_atm_start()), the
driver may ignore the error and proceed to call cxacru_poll_status(), which
invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
triggers a warning in usb_submit_urb():

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0
drivers/usb/core/urb.c:379
...
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
...

To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts
early. We can safely call usb_kill_urb() on rcv_urb in the error path, as
it is safe to call even if the URB is not active (e.g., if it failed to
submit in the first place, or if it already completed). PatchDiff:diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
 Recipients:[map[Email:3chas3@gmail.com Name:Chas Williams To:true] map[Email:accessrunner-general@lists.sourceforge.net Name: To:true] map[Email:gregkh@linuxfoundation.org Name:Greg Kroah-Hartman To:true] map[Email:linux-atm-general@lists.sourceforge.net Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:linux-usb@vger.kernel.org Name: To:true] map[Email:netdev@vger.kernel.org Name: To:true] map[Email:duncan.sands@math.u-psud.fr Name:Duncan Sands To:true]] ReportedBy:[] ReviewedBy:[] TestedBy:[]]

1/1 2026/07/31 06:48 action base-commit-picker
0m Results:
map[KernelBranch:master KernelCommit:f5098b6bae761e346ebcd9da7f95622c04733cff KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git]

2/1 2026/07/31 06:48 action syz-repro-to-c-repro
0m Results:
map[SimplifiedCRepro:// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE 

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/usb/ch9.h>

static unsigned long long procid;

static void sleep_ms(uint64_t ms)
{
	usleep(ms * 1000);
}

#define MAX_FDS 30

#define USB_MAX_IFACE_NUM 4
#define USB_MAX_EP_NUM 32
#define USB_MAX_FDS 6

struct usb_endpoint_index {
	struct usb_endpoint_descriptor desc;
	int handle;
};

struct usb_iface_index {
	struct usb_interface_descriptor* iface;
	uint8_t bInterfaceNumber;
	uint8_t bAlternateSetting;
	uint8_t bInterfaceClass;
	struct usb_endpoint_index eps[USB_MAX_EP_NUM];
	int eps_num;
};

struct usb_device_index {
	struct usb_device_descriptor* dev;
	struct usb_config_descriptor* config;
	uint8_t bDeviceClass;
	uint8_t bMaxPower;
	int config_length;
	struct usb_iface_index ifaces[USB_MAX_IFACE_NUM];
	int ifaces_num;
	int iface_cur;
};

struct usb_info {
	int fd;
	struct usb_device_index index;
};

static struct usb_info usb_devices[USB_MAX_FDS];

static struct usb_device_index* lookup_usb_index(int fd)
{
	for (int i = 0; i < USB_MAX_FDS; i++) {
		if (__atomic_load_n(&usb_devices[i].fd, __ATOMIC_ACQUIRE) == fd)
			return &usb_devices[i].index;
	}
	return NULL;
}

static int usb_devices_num;

static bool parse_usb_descriptor(const char* buffer, size_t length, struct usb_device_index* index)
{
	if (length < sizeof(*index->dev) + sizeof(*index->config))
		return false;
	memset(index, 0, sizeof(*index));
	index->dev = (struct usb_device_descriptor*)buffer;
	index->config = (struct usb_config_descriptor*)(buffer + sizeof(*index->dev));
	index->bDeviceClass = index->dev->bDeviceClass;
	index->bMaxPower = index->config->bMaxPower;
	index->config_length = length - sizeof(*index->dev);
	index->iface_cur = -1;
	size_t offset = 0;
	while (true) {
		if (offset + 1 >= length)
			break;
		uint8_t desc_length = buffer[offset];
		uint8_t desc_type = buffer[offset + 1];
		if (desc_length <= 2)
			break;
		if (offset + desc_length > length)
			break;
		if (desc_type == USB_DT_INTERFACE && index->ifaces_num < USB_MAX_IFACE_NUM) {
			struct usb_interface_descriptor* iface = (struct usb_interface_descriptor*)(buffer + offset);
			index->ifaces[index->ifaces_num].iface = iface;
			index->ifaces[index->ifaces_num].bInterfaceNumber = iface->bInterfaceNumber;
			index->ifaces[index->ifaces_num].bAlternateSetting = iface->bAlternateSetting;
			index->ifaces[index->ifaces_num].bInterfaceClass = iface->bInterfaceClass;
			index->ifaces_num++;
		}
		if (desc_type == USB_DT_ENDPOINT && index->ifaces_num > 0) {
			struct usb_iface_index* iface = &index->ifaces[index->ifaces_num - 1];
			if (iface->eps_num < USB_MAX_EP_NUM) {
				memcpy(&iface->eps[iface->eps_num].desc, buffer + offset, sizeof(iface->eps[iface->eps_num].desc));
				iface->eps_num++;
			}
		}
		offset += desc_length;
	}
	return true;
}

static struct usb_device_index* add_usb_index(int fd, const char* dev, size_t dev_len)
{
	int i = __atomic_fetch_add(&usb_devices_num, 1, __ATOMIC_RELAXED);
	if (i >= USB_MAX_FDS)
		return NULL;
	if (!parse_usb_descriptor(dev, dev_len, &usb_devices[i].index))
		return NULL;
	__atomic_store_n(&usb_devices[i].fd, fd, __ATOMIC_RELEASE);
	return &usb_devices[i].index;
}

struct vusb_connect_string_descriptor {
	uint32_t len;
	char* str;
} __attribute__((packed));

struct vusb_connect_descriptors {
	uint32_t qual_len;
	char* qual;
	uint32_t bos_len;
	char* bos;
	uint32_t strs_len;
	struct vusb_connect_string_descriptor strs[0];
} __attribute__((packed));

static const char default_string[] = {
    8, USB_DT_STRING,
    's', 0, 'y', 0, 'z', 0
};

static const char default_lang_id[] = {
    4, USB_DT_STRING,
    0x09, 0x04
};

static bool lookup_connect_response_in(int fd, const struct vusb_connect_descriptors* descs,
				       const struct usb_ctrlrequest* ctrl,
				       struct usb_qualifier_descriptor* qual,
				       char** response_data, uint32_t* response_length)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	uint8_t str_idx;
	if (!index)
		return false;
	switch (ctrl->bRequestType & USB_TYPE_MASK) {
	case USB_TYPE_STANDARD:
		switch (ctrl->bRequest) {
		case USB_REQ_GET_DESCRIPTOR:
			switch (ctrl->wValue >> 8) {
			case USB_DT_DEVICE:
				*response_data = (char*)index->dev;
				*response_length = sizeof(*index->dev);
				return true;
			case USB_DT_CONFIG:
				*response_data = (char*)index->config;
				*response_length = index->config_length;
				return true;
			case USB_DT_STRING:
				str_idx = (uint8_t)ctrl->wValue;
				if (descs && str_idx < descs->strs_len) {
					*response_data = descs->strs[str_idx].str;
					*response_length = descs->strs[str_idx].len;
					return true;
				}
				if (str_idx == 0) {
					*response_data = (char*)&default_lang_id[0];
					*response_length = default_lang_id[0];
					return true;
				}
				*response_data = (char*)&default_string[0];
				*response_length = default_string[0];
				return true;
			case USB_DT_BOS:
				*response_data = descs->bos;
				*response_length = descs->bos_len;
				return true;
			case USB_DT_DEVICE_QUALIFIER:
				if (!descs->qual) {
					qual->bLength = sizeof(*qual);
					qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER;
					qual->bcdUSB = index->dev->bcdUSB;
					qual->bDeviceClass = index->dev->bDeviceClass;
					qual->bDeviceSubClass = index->dev->bDeviceSubClass;
					qual->bDeviceProtocol = index->dev->bDeviceProtocol;
					qual->bMaxPacketSize0 = index->dev->bMaxPacketSize0;
					qual->bNumConfigurations = index->dev->bNumConfigurations;
					qual->bRESERVED = 0;
					*response_data = (char*)qual;
					*response_length = sizeof(*qual);
					return true;
				}
				*response_data = descs->qual;
				*response_length = descs->qual_len;
				return true;
			default:
				break;
			}
			break;
		default:
			break;
		}
		break;
	default:
		break;
	}
	return false;
}

typedef bool (*lookup_connect_out_response_t)(int fd, const struct vusb_connect_descriptors* descs,
					      const struct usb_ctrlrequest* ctrl, bool* done);

static bool lookup_connect_response_out_generic(int fd, const struct vusb_connect_descriptors* descs,
						const struct usb_ctrlrequest* ctrl, bool* done)
{
	switch (ctrl->bRequestType & USB_TYPE_MASK) {
	case USB_TYPE_STANDARD:
		switch (ctrl->bRequest) {
		case USB_REQ_SET_CONFIGURATION:
			*done = true;
			return true;
		default:
			break;
		}
		break;
	}
	return false;
}

struct vusb_descriptor {
	uint8_t req_type;
	uint8_t desc_type;
	uint32_t len;
	char data[0];
} __attribute__((packed));

struct vusb_descriptors {
	uint32_t len;
	struct vusb_descriptor* generic;
	struct vusb_descriptor* descs[0];
} __attribute__((packed));

struct vusb_response {
	uint8_t type;
	uint8_t req;
	uint32_t len;
	char data[0];
} __attribute__((packed));

struct vusb_responses {
	uint32_t len;
	struct vusb_response* generic;
	struct vusb_response* resps[0];
} __attribute__((packed));

static bool lookup_control_response(const struct vusb_descriptors* descs, const struct vusb_responses* resps,
				    struct usb_ctrlrequest* ctrl, char** response_data, uint32_t* response_length)
{
	int descs_num = 0;
	int resps_num = 0;
	if (descs)
		descs_num = (descs->len - offsetof(struct vusb_descriptors, descs)) / sizeof(descs->descs[0]);
	if (resps)
		resps_num = (resps->len - offsetof(struct vusb_responses, resps)) / sizeof(resps->resps[0]);
	uint8_t req = ctrl->bRequest;
	uint8_t req_type = ctrl->bRequestType & USB_TYPE_MASK;
	uint8_t desc_type = ctrl->wValue >> 8;
	if (req == USB_REQ_GET_DESCRIPTOR) {
		int i;
		for (i = 0; i < descs_num; i++) {
			struct vusb_descriptor* desc = descs->descs[i];
			if (!desc)
				continue;
			if (desc->req_type == req_type && desc->desc_type == desc_type) {
				*response_length = desc->len;
				if (*response_length != 0)
					*response_data = &desc->data[0];
				else
					*response_data = NULL;
				return true;
			}
		}
		if (descs && descs->generic) {
			*response_data = &descs->generic->data[0];
			*response_length = descs->generic->len;
			return true;
		}
	} else {
		int i;
		for (i = 0; i < resps_num; i++) {
			struct vusb_response* resp = resps->resps[i];
			if (!resp)
				continue;
			if (resp->type == req_type && resp->req == req) {
				*response_length = resp->len;
				if (*response_length != 0)
					*response_data = &resp->data[0];
				else
					*response_data = NULL;
				return true;
			}
		}
		if (resps && resps->generic) {
			*response_data = &resps->generic->data[0];
			*response_length = resps->generic->len;
			return true;
		}
	}
	return false;
}

#define UDC_NAME_LENGTH_MAX 128

struct usb_raw_init {
	__u8 driver_name[UDC_NAME_LENGTH_MAX];
	__u8 device_name[UDC_NAME_LENGTH_MAX];
	__u8 speed;
};

enum usb_raw_event_type {
	USB_RAW_EVENT_INVALID = 0,
	USB_RAW_EVENT_CONNECT = 1,
	USB_RAW_EVENT_CONTROL = 2,
};

struct usb_raw_event {
	__u32 type;
	__u32 length;
	__u8 data[0];
};

struct usb_raw_ep_io {
	__u16 ep;
	__u16 flags;
	__u32 length;
	__u8 data[0];
};

#define USB_RAW_EPS_NUM_MAX 30
#define USB_RAW_EP_NAME_MAX 16
#define USB_RAW_EP_ADDR_ANY 0xff

struct usb_raw_ep_caps {
	__u32 type_control : 1;
	__u32 type_iso : 1;
	__u32 type_bulk : 1;
	__u32 type_int : 1;
	__u32 dir_in : 1;
	__u32 dir_out : 1;
};

struct usb_raw_ep_limits {
	__u16 maxpacket_limit;
	__u16 max_streams;
	__u32 reserved;
};

struct usb_raw_ep_info {
	__u8 name[USB_RAW_EP_NAME_MAX];
	__u32 addr;
	struct usb_raw_ep_caps caps;
	struct usb_raw_ep_limits limits;
};

struct usb_raw_eps_info {
	struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX];
};

#define USB_RAW_IOCTL_INIT _IOW('U', 0, struct usb_raw_init)
#define USB_RAW_IOCTL_RUN _IO('U', 1)
#define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event)
#define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP0_READ _IOWR('U', 4, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor)
#define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32)
#define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP_READ _IOWR('U', 8, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_CONFIGURE _IO('U', 9)
#define USB_RAW_IOCTL_VBUS_DRAW _IOW('U', 10, __u32)
#define USB_RAW_IOCTL_EPS_INFO _IOR('U', 11, struct usb_raw_eps_info)
#define USB_RAW_IOCTL_EP0_STALL _IO('U', 12)
#define USB_RAW_IOCTL_EP_SET_HALT _IOW('U', 13, __u32)
#define USB_RAW_IOCTL_EP_CLEAR_HALT _IOW('U', 14, __u32)
#define USB_RAW_IOCTL_EP_SET_WEDGE _IOW('U', 15, __u32)

static int usb_raw_open()
{
	return open("/dev/raw-gadget", O_RDWR);
}

static int usb_raw_init(int fd, uint32_t speed, const char* driver, const char* device)
{
	struct usb_raw_init arg;
	strncpy((char*)&arg.driver_name[0], driver, sizeof(arg.driver_name));
	strncpy((char*)&arg.device_name[0], device, sizeof(arg.device_name));
	arg.speed = speed;
	return ioctl(fd, USB_RAW_IOCTL_INIT, &arg);
}

static int usb_raw_run(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_RUN, 0);
}

static int usb_raw_ep_write(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_WRITE, io);
}

static int usb_raw_ep_read(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_READ, io);
}

static int usb_raw_configure(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_CONFIGURE, 0);
}

static int usb_raw_vbus_draw(int fd, uint32_t power)
{
	return ioctl(fd, USB_RAW_IOCTL_VBUS_DRAW, power);
}

static int usb_raw_ep0_write(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_WRITE, io);
}

static int usb_raw_ep0_read(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_READ, io);
}

static int usb_raw_event_fetch(int fd, struct usb_raw_event* event)
{
	return ioctl(fd, USB_RAW_IOCTL_EVENT_FETCH, event);
}

static int usb_raw_ep_enable(int fd, struct usb_endpoint_descriptor* desc)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_ENABLE, desc);
}

static int usb_raw_ep_disable(int fd, int ep)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_DISABLE, ep);
}

static int usb_raw_ep0_stall(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_STALL, 0);
}

static int lookup_interface(int fd, uint8_t bInterfaceNumber, uint8_t bAlternateSetting)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	for (int i = 0; i < index->ifaces_num; i++) {
		if (index->ifaces[i].bInterfaceNumber == bInterfaceNumber &&
		    index->ifaces[i].bAlternateSetting == bAlternateSetting)
			return i;
	}
	return -1;
}

static int lookup_endpoint(int fd, uint8_t bEndpointAddress)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	if (index->iface_cur < 0)
		return -1;
	for (int ep = 0; ep < index->ifaces[index->iface_cur].eps_num; ep++)
		if (index->ifaces[index->iface_cur].eps[ep].desc.bEndpointAddress == bEndpointAddress)
			return index->ifaces[index->iface_cur].eps[ep].handle;
	return -1;
}

#define USB_MAX_PACKET_SIZE 4096

struct usb_raw_control_event {
	struct usb_raw_event inner;
	struct usb_ctrlrequest ctrl;
	char data[USB_MAX_PACKET_SIZE];
};

struct usb_raw_ep_io_data {
	struct usb_raw_ep_io inner;
	char data[USB_MAX_PACKET_SIZE];
};

static void set_interface(int fd, int n)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return;
	if (index->iface_cur >= 0 && index->iface_cur < index->ifaces_num) {
		for (int ep = 0; ep < index->ifaces[index->iface_cur].eps_num; ep++) {
			int rv = usb_raw_ep_disable(fd, index->ifaces[index->iface_cur].eps[ep].handle);
			if (rv < 0) {
			} else {
			}
		}
	}
	if (n >= 0 && n < index->ifaces_num) {
		for (int ep = 0; ep < index->ifaces[n].eps_num; ep++) {
			int rv = usb_raw_ep_enable(fd, &index->ifaces[n].eps[ep].desc);
			if (rv < 0) {
			} else {
				index->ifaces[n].eps[ep].handle = rv;
			}
		}
		index->iface_cur = n;
	}
}

static int configure_device(int fd)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	int rv = usb_raw_vbus_draw(fd, index->bMaxPower);
	if (rv < 0) {
		return rv;
	}
	rv = usb_raw_configure(fd);
	if (rv < 0) {
		return rv;
	}
	set_interface(fd, 0);
	return 0;
}

static volatile long syz_usb_connect_impl(uint64_t speed, uint64_t dev_len, const char* dev,
					  const struct vusb_connect_descriptors* descs,
					  lookup_connect_out_response_t lookup_connect_response_out)
{
	if (!dev) {
		return -1;
	}
	int fd = usb_raw_open();
	if (fd < 0) {
		return fd;
	}
	if (fd >= MAX_FDS) {
		close(fd);
		return -1;
	}
	struct usb_device_index* index = add_usb_index(fd, dev, dev_len);
	if (!index) {
		return -1;
	}
	char device[32];
	sprintf(&device[0], "dummy_udc.%llu", procid);
	int rv = usb_raw_init(fd, speed, "dummy_udc", &device[0]);
	if (rv < 0) {
		return rv;
	}
	rv = usb_raw_run(fd);
	if (rv < 0) {
		return rv;
	}
	bool done = false;
	while (!done) {
		struct usb_raw_control_event event;
		event.inner.type = 0;
		event.inner.length = sizeof(event.ctrl);
		rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event);
		if (rv < 0) {
			return rv;
		}
		if (event.inner.type != USB_RAW_EVENT_CONTROL)
			continue;
		char* response_data = NULL;
		uint32_t response_length = 0;
		struct usb_qualifier_descriptor qual;
		if (event.ctrl.bRequestType & USB_DIR_IN) {
			if (!lookup_connect_response_in(fd, descs, &event.ctrl, &qual, &response_data, &response_length)) {
				usb_raw_ep0_stall(fd);
				continue;
			}
		} else {
			if (!lookup_connect_response_out(fd, descs, &event.ctrl, &done)) {
				usb_raw_ep0_stall(fd);
				continue;
			}
			response_data = NULL;
			response_length = event.ctrl.wLength;
		}
		if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD &&
		    event.ctrl.bRequest == USB_REQ_SET_CONFIGURATION) {
			rv = configure_device(fd);
			if (rv < 0) {
				return rv;
			}
		}
		struct usb_raw_ep_io_data response;
		response.inner.ep = 0;
		response.inner.flags = 0;
		if (response_length > sizeof(response.data))
			response_length = 0;
		if (event.ctrl.wLength < response_length)
			response_length = event.ctrl.wLength;
		response.inner.length = response_length;
		if (response_data)
			memcpy(&response.data[0], response_data, response_length);
		else
			memset(&response.data[0], 0, response_length);
		if (event.ctrl.bRequestType & USB_DIR_IN) {
			rv = usb_raw_ep0_write(fd, (struct usb_raw_ep_io*)&response);
		} else {
			rv = usb_raw_ep0_read(fd, (struct usb_raw_ep_io*)&response);
		}
		if (rv < 0) {
			return rv;
		}
	}
	sleep_ms(200);
	return fd;
}

static volatile long syz_usb_connect(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	uint64_t speed = a0;
	uint64_t dev_len = a1;
	const char* dev = (const char*)a2;
	const struct vusb_connect_descriptors* descs = (const struct vusb_connect_descriptors*)a3;
	return syz_usb_connect_impl(speed, dev_len, dev, descs, &lookup_connect_response_out_generic);
}

static volatile long syz_usb_control_io(volatile long a0, volatile long a1, volatile long a2)
{
	int fd = a0;
	const struct vusb_descriptors* descs = (const struct vusb_descriptors*)a1;
	const struct vusb_responses* resps = (const struct vusb_responses*)a2;
	struct usb_raw_control_event event;
	event.inner.type = 0;
	event.inner.length = USB_MAX_PACKET_SIZE;
	int rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event);
	if (rv < 0) {
		return rv;
	}
	if (event.inner.type != USB_RAW_EVENT_CONTROL) {
		return -1;
	}
	char* response_data = NULL;
	uint32_t response_length = 0;
	if ((event.ctrl.bRequestType & USB_DIR_IN) && event.ctrl.wLength) {
		if (!lookup_control_response(descs, resps, &event.ctrl, &response_data, &response_length)) {
			usb_raw_ep0_stall(fd);
			return -1;
		}
	} else {
		if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD ||
		    event.ctrl.bRequest == USB_REQ_SET_INTERFACE) {
			int iface_num = event.ctrl.wIndex;
			int alt_set = event.ctrl.wValue;
			int iface_index = lookup_interface(fd, iface_num, alt_set);
			if (iface_index < 0) {
			} else {
				set_interface(fd, iface_index);
			}
		}
		response_length = event.ctrl.wLength;
	}
	struct usb_raw_ep_io_data response;
	response.inner.ep = 0;
	response.inner.flags = 0;
	if (response_length > sizeof(response.data))
		response_length = 0;
	if (event.ctrl.wLength < response_length)
		response_length = event.ctrl.wLength;
	if ((event.ctrl.bRequestType & USB_DIR_IN) && !event.ctrl.wLength) {
		response_length = USB_MAX_PACKET_SIZE;
	}
	response.inner.length = response_length;
	if (response_data)
		memcpy(&response.data[0], response_data, response_length);
	else
		memset(&response.data[0], 0, response_length);
	if ((event.ctrl.bRequestType & USB_DIR_IN) && event.ctrl.wLength) {
		rv = usb_raw_ep0_write(fd, (struct usb_raw_ep_io*)&response);
	} else {
		rv = usb_raw_ep0_read(fd, (struct usb_raw_ep_io*)&response);
	}
	if (rv < 0) {
		return rv;
	}
	sleep_ms(200);
	return 0;
}

static volatile long syz_usb_ep_write(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	int fd = a0;
	uint8_t ep = a1;
	uint32_t len = a2;
	char* data = (char*)a3;
	int ep_handle = lookup_endpoint(fd, ep);
	if (ep_handle < 0) {
		return -1;
	}
	struct usb_raw_ep_io_data io_data;
	io_data.inner.ep = ep_handle;
	io_data.inner.flags = 0;
	if (len > sizeof(io_data.data))
		len = sizeof(io_data.data);
	io_data.inner.length = len;
	memcpy(&io_data.data[0], data, len);
	int rv = usb_raw_ep_write(fd, (struct usb_raw_ep_io*)&io_data);
	if (rv < 0) {
		return rv;
	}
	sleep_ms(200);
	return 0;
}

static volatile long syz_usb_ep_read(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	int fd = a0;
	uint8_t ep = a1;
	uint32_t len = a2;
	char* data = (char*)a3;
	int ep_handle = lookup_endpoint(fd, ep);
	if (ep_handle < 0) {
		return -1;
	}
	struct usb_raw_ep_io_data io_data;
	io_data.inner.ep = ep_handle;
	io_data.inner.flags = 0;
	if (len > sizeof(io_data.data))
		len = sizeof(io_data.data);
	io_data.inner.length = len;
	int rv = usb_raw_ep_read(fd, (struct usb_raw_ep_io*)&io_data);
	if (rv < 0) {
		return rv;
	}
	memcpy(&data[0], &io_data.data[0], io_data.inner.length);
	sleep_ms(200);
	return 0;
}

static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
{
	if (a0 == 0xc || a0 == 0xb) {
		char buf[128];
		sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2);
		return open(buf, O_RDWR, 0);
	} else {
		unsigned long nb = a1;
		char buf[1024];
		char* hash;
		strncpy(buf, (char*)a0, sizeof(buf) - 1);
		buf[sizeof(buf) - 1] = 0;
		while ((hash = strchr(buf, '#'))) {
			*hash = '0' + (char)(nb % 10);
			nb /= 10;
		}
		return open(buf, a2 & ~O_CREAT, 0);
	}
}

uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_usb_connect arguments: [
//    speed: usb_device_speed = 0x3 (8 bytes)
//    dev_len: len = 0x40 (8 bytes)
//    dev: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {12 01 00 02 00 00 00 40 72 05 fe ca 00 01 00 00 00 01 09 02 2e 00 01 01 00 80 fa 09 04 00 00 04 ff 00 00 00 07 05 01 02 00 02 00 07 05 81 02 00 02 00 07 05 02 02 00 02 00 07 05 82 02 00 02} (length 0x3f)
//        }
//      }
//    }
//    conn_descs: nil
//  ]
//  returns fd_usb
memcpy((void*)0x200000000000, "... [truncated large byte array] ...", 63);
	res = -1;
res = syz_usb_connect(/*speed=USB_SPEED_HIGH*/3, /*dev_len=*/0x40, /*dev=*/0x200000000000, /*conn_descs=*/0);
	if (res != -1)
		r[0] = res;
//  syz_usb_ep_read arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x1 (1 bytes)
//    len: len = 0x0 (8 bytes)
//    data: nil
//  ]
syz_usb_ep_read(/*fd=*/r[0], /*ep=*/1, /*len=*/0, /*data=*/0);
//  syz_usb_ep_write arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x81 (1 bytes)
//    len: len = 0x40 (8 bytes)
//    data: ptr[in, buffer] {
//      buffer: {90 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00} (length 0x40)
//    }
//  ]
memcpy((void*)0x200000000100, "... [truncated large byte array] ...", 64);
syz_usb_ep_write(/*fd=*/r[0], /*ep=*/0x81, /*len=*/0x40, /*data=*/0x200000000100);
//  syz_usb_ep_write arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x81 (1 bytes)
//    len: len = 0x40 (8 bytes)
//    data: ptr[in, buffer] {
//      buffer: {91 01 00 00 00 11 22 33 44 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00} (length 0x40)
//    }
//  ]
memcpy((void*)0x200000000300, "... [truncated large byte array] ...", 64);
syz_usb_ep_write(/*fd=*/r[0], /*ep=*/0x81, /*len=*/0x40, /*data=*/0x200000000300);
//  syz_usb_ep_read arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x1 (1 bytes)
//    len: len = 0x0 (8 bytes)
//    data: nil
//  ]
syz_usb_ep_read(/*fd=*/r[0], /*ep=*/1, /*len=*/0, /*data=*/0);
//  syz_open_dev$evdev arguments: [
//    dev: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 69 6e 70 75 74 2f 65 76 65 6e 74 23 00} (length 0x12)
//    }
//    id: intptr = 0x2 (8 bytes)
//    flags: open_flags = 0x0 (8 bytes)
//  ]
//  returns fd_evdev
memcpy((void*)0x200000000040, "/dev/input/event#\000", 18);
	res = -1;
res = syz_open_dev(/*dev=*/0x200000000040, /*id=*/2, /*flags=*/0);
	if (res != -1)
		r[1] = res;
//  ioctl$EVIOCGMASK arguments: [
//    fd: fd_evdev (resource)
//    cmd: const = 0x80104592 (4 bytes)
//    arg: ptr[in, input_mask] {
//      input_mask {
//        type: input_codes = 0x0 (4 bytes)
//        size: bytesize = 0xffffffffffffff36 (4 bytes)
//        ptr: ptr[in, buffer] {
//          buffer: {95 2b b3 e0 06 ae 9a 4c 3a} (length 0x9)
//        }
//      }
//    }
//  ]
*(uint32_t*)0x200000000300 = 0;
*(uint32_t*)0x200000000304 = 0xffffff36;
*(uint64_t*)0x200000000308 = 0x200000000200;
memcpy((void*)0x200000000200, "\x95\x2b\xb3\xe0\x06\xae\x9a\x4c\x3a", 9);
	syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x80104592, /*arg=*/0x200000000300ul);
//  syz_usb_control_io$hid arguments: [
//    fd: fd_usb_hid (resource)
//    descs: nil
//    resps: nil
//  ]
syz_usb_control_io(/*fd=*/r[0], /*descs=*/0, /*resps=*/0);
	return 0;
}
]

3/1 2026/07/31 06:48 action kernel-checkouter
0m Results:
map[KernelSrc:/app/workdir/cache/src/3735123449433f9e6f9fb5b55ddd9994cbcf15f0]

4/1 2026/07/31 06:48 action kernel-builder
8m Results:
map[KernelObj:/app/workdir/cache/build/80e967fc890f01cc63398329da51c2cf96e68fa0]

5/1 2026/07/31 06:57 action crash-reproducer
7m Results:
map[OtherCrashReports:<nil> ReproducedBugTitle:WARNING in cxacru_cm/usb_submit_urb ReproducedCrashReport:cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e
 ReproducedFaultInjection:]

6/1 2026/07/31 07:04 action codesearch-prepare
11m Results:
map[Index:codesearch-index]

7/1 2026/07/31 07:15 agent debugger
7m Model:
best-expensive

Instruction:
You are an experienced Linux kernel developer tasked with debugging a kernel crash root cause.
You need to provide a detailed explanation of the root cause for another developer to be
able to write a fix for the bug based on your explanation. Include all relevant details
into the response: function/struct/field/etc names, code snippets, line numbers,
macro/enum values, etc.



Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.

Prefer calling several tools at the same time to save round-trips.

Prompt:
The crash is:

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e


The following C code is a draft of the vulnerable syscall sequence. Keep in mind that
it may lack the precise threading, sandboxing, and some arguments of a working reproducer:

// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE 

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/usb/ch9.h>

static unsigned long long procid;

static void sleep_ms(uint64_t ms)
{
	usleep(ms * 1000);
}

#define MAX_FDS 30

#define USB_MAX_IFACE_NUM 4
#define USB_MAX_EP_NUM 32
#define USB_MAX_FDS 6

struct usb_endpoint_index {
	struct usb_endpoint_descriptor desc;
	int handle;
};

struct usb_iface_index {
	struct usb_interface_descriptor* iface;
	uint8_t bInterfaceNumber;
	uint8_t bAlternateSetting;
	uint8_t bInterfaceClass;
	struct usb_endpoint_index eps[USB_MAX_EP_NUM];
	int eps_num;
};

struct usb_device_index {
	struct usb_device_descriptor* dev;
	struct usb_config_descriptor* config;
	uint8_t bDeviceClass;
	uint8_t bMaxPower;
	int config_length;
	struct usb_iface_index ifaces[USB_MAX_IFACE_NUM];
	int ifaces_num;
	int iface_cur;
};

struct usb_info {
	int fd;
	struct usb_device_index index;
};

static struct usb_info usb_devices[USB_MAX_FDS];

static struct usb_device_index* lookup_usb_index(int fd)
{
	for (int i = 0; i < USB_MAX_FDS; i++) {
		if (__atomic_load_n(&usb_devices[i].fd, __ATOMIC_ACQUIRE) == fd)
			return &usb_devices[i].index;
	}
	return NULL;
}

static int usb_devices_num;

static bool parse_usb_descriptor(const char* buffer, size_t length, struct usb_device_index* index)
{
	if (length < sizeof(*index->dev) + sizeof(*index->config))
		return false;
	memset(index, 0, sizeof(*index));
	index->dev = (struct usb_device_descriptor*)buffer;
	index->config = (struct usb_config_descriptor*)(buffer + sizeof(*index->dev));
	index->bDeviceClass = index->dev->bDeviceClass;
	index->bMaxPower = index->config->bMaxPower;
	index->config_length = length - sizeof(*index->dev);
	index->iface_cur = -1;
	size_t offset = 0;
	while (true) {
		if (offset + 1 >= length)
			break;
		uint8_t desc_length = buffer[offset];
		uint8_t desc_type = buffer[offset + 1];
		if (desc_length <= 2)
			break;
		if (offset + desc_length > length)
			break;
		if (desc_type == USB_DT_INTERFACE && index->ifaces_num < USB_MAX_IFACE_NUM) {
			struct usb_interface_descriptor* iface = (struct usb_interface_descriptor*)(buffer + offset);
			index->ifaces[index->ifaces_num].iface = iface;
			index->ifaces[index->ifaces_num].bInterfaceNumber = iface->bInterfaceNumber;
			index->ifaces[index->ifaces_num].bAlternateSetting = iface->bAlternateSetting;
			index->ifaces[index->ifaces_num].bInterfaceClass = iface->bInterfaceClass;
			index->ifaces_num++;
		}
		if (desc_type == USB_DT_ENDPOINT && index->ifaces_num > 0) {
			struct usb_iface_index* iface = &index->ifaces[index->ifaces_num - 1];
			if (iface->eps_num < USB_MAX_EP_NUM) {
				memcpy(&iface->eps[iface->eps_num].desc, buffer + offset, sizeof(iface->eps[iface->eps_num].desc));
				iface->eps_num++;
			}
		}
		offset += desc_length;
	}
	return true;
}

static struct usb_device_index* add_usb_index(int fd, const char* dev, size_t dev_len)
{
	int i = __atomic_fetch_add(&usb_devices_num, 1, __ATOMIC_RELAXED);
	if (i >= USB_MAX_FDS)
		return NULL;
	if (!parse_usb_descriptor(dev, dev_len, &usb_devices[i].index))
		return NULL;
	__atomic_store_n(&usb_devices[i].fd, fd, __ATOMIC_RELEASE);
	return &usb_devices[i].index;
}

struct vusb_connect_string_descriptor {
	uint32_t len;
	char* str;
} __attribute__((packed));

struct vusb_connect_descriptors {
	uint32_t qual_len;
	char* qual;
	uint32_t bos_len;
	char* bos;
	uint32_t strs_len;
	struct vusb_connect_string_descriptor strs[0];
} __attribute__((packed));

static const char default_string[] = {
    8, USB_DT_STRING,
    's', 0, 'y', 0, 'z', 0
};

static const char default_lang_id[] = {
    4, USB_DT_STRING,
    0x09, 0x04
};

static bool lookup_connect_response_in(int fd, const struct vusb_connect_descriptors* descs,
				       const struct usb_ctrlrequest* ctrl,
				       struct usb_qualifier_descriptor* qual,
				       char** response_data, uint32_t* response_length)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	uint8_t str_idx;
	if (!index)
		return false;
	switch (ctrl->bRequestType & USB_TYPE_MASK) {
	case USB_TYPE_STANDARD:
		switch (ctrl->bRequest) {
		case USB_REQ_GET_DESCRIPTOR:
			switch (ctrl->wValue >> 8) {
			case USB_DT_DEVICE:
				*response_data = (char*)index->dev;
				*response_length = sizeof(*index->dev);
				return true;
			case USB_DT_CONFIG:
				*response_data = (char*)index->config;
				*response_length = index->config_length;
				return true;
			case USB_DT_STRING:
				str_idx = (uint8_t)ctrl->wValue;
				if (descs && str_idx < descs->strs_len) {
					*response_data = descs->strs[str_idx].str;
					*response_length = descs->strs[str_idx].len;
					return true;
				}
				if (str_idx == 0) {
					*response_data = (char*)&default_lang_id[0];
					*response_length = default_lang_id[0];
					return true;
				}
				*response_data = (char*)&default_string[0];
				*response_length = default_string[0];
				return true;
			case USB_DT_BOS:
				*response_data = descs->bos;
				*response_length = descs->bos_len;
				return true;
			case USB_DT_DEVICE_QUALIFIER:
				if (!descs->qual) {
					qual->bLength = sizeof(*qual);
					qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER;
					qual->bcdUSB = index->dev->bcdUSB;
					qual->bDeviceClass = index->dev->bDeviceClass;
					qual->bDeviceSubClass = index->dev->bDeviceSubClass;
					qual->bDeviceProtocol = index->dev->bDeviceProtocol;
					qual->bMaxPacketSize0 = index->dev->bMaxPacketSize0;
					qual->bNumConfigurations = index->dev->bNumConfigurations;
					qual->bRESERVED = 0;
					*response_data = (char*)qual;
					*response_length = sizeof(*qual);
					return true;
				}
				*response_data = descs->qual;
				*response_length = descs->qual_len;
				return true;
			default:
				break;
			}
			break;
		default:
			break;
		}
		break;
	default:
		break;
	}
	return false;
}

typedef bool (*lookup_connect_out_response_t)(int fd, const struct vusb_connect_descriptors* descs,
					      const struct usb_ctrlrequest* ctrl, bool* done);

static bool lookup_connect_response_out_generic(int fd, const struct vusb_connect_descriptors* descs,
						const struct usb_ctrlrequest* ctrl, bool* done)
{
	switch (ctrl->bRequestType & USB_TYPE_MASK) {
	case USB_TYPE_STANDARD:
		switch (ctrl->bRequest) {
		case USB_REQ_SET_CONFIGURATION:
			*done = true;
			return true;
		default:
			break;
		}
		break;
	}
	return false;
}

struct vusb_descriptor {
	uint8_t req_type;
	uint8_t desc_type;
	uint32_t len;
	char data[0];
} __attribute__((packed));

struct vusb_descriptors {
	uint32_t len;
	struct vusb_descriptor* generic;
	struct vusb_descriptor* descs[0];
} __attribute__((packed));

struct vusb_response {
	uint8_t type;
	uint8_t req;
	uint32_t len;
	char data[0];
} __attribute__((packed));

struct vusb_responses {
	uint32_t len;
	struct vusb_response* generic;
	struct vusb_response* resps[0];
} __attribute__((packed));

static bool lookup_control_response(const struct vusb_descriptors* descs, const struct vusb_responses* resps,
				    struct usb_ctrlrequest* ctrl, char** response_data, uint32_t* response_length)
{
	int descs_num = 0;
	int resps_num = 0;
	if (descs)
		descs_num = (descs->len - offsetof(struct vusb_descriptors, descs)) / sizeof(descs->descs[0]);
	if (resps)
		resps_num = (resps->len - offsetof(struct vusb_responses, resps)) / sizeof(resps->resps[0]);
	uint8_t req = ctrl->bRequest;
	uint8_t req_type = ctrl->bRequestType & USB_TYPE_MASK;
	uint8_t desc_type = ctrl->wValue >> 8;
	if (req == USB_REQ_GET_DESCRIPTOR) {
		int i;
		for (i = 0; i < descs_num; i++) {
			struct vusb_descriptor* desc = descs->descs[i];
			if (!desc)
				continue;
			if (desc->req_type == req_type && desc->desc_type == desc_type) {
				*response_length = desc->len;
				if (*response_length != 0)
					*response_data = &desc->data[0];
				else
					*response_data = NULL;
				return true;
			}
		}
		if (descs && descs->generic) {
			*response_data = &descs->generic->data[0];
			*response_length = descs->generic->len;
			return true;
		}
	} else {
		int i;
		for (i = 0; i < resps_num; i++) {
			struct vusb_response* resp = resps->resps[i];
			if (!resp)
				continue;
			if (resp->type == req_type && resp->req == req) {
				*response_length = resp->len;
				if (*response_length != 0)
					*response_data = &resp->data[0];
				else
					*response_data = NULL;
				return true;
			}
		}
		if (resps && resps->generic) {
			*response_data = &resps->generic->data[0];
			*response_length = resps->generic->len;
			return true;
		}
	}
	return false;
}

#define UDC_NAME_LENGTH_MAX 128

struct usb_raw_init {
	__u8 driver_name[UDC_NAME_LENGTH_MAX];
	__u8 device_name[UDC_NAME_LENGTH_MAX];
	__u8 speed;
};

enum usb_raw_event_type {
	USB_RAW_EVENT_INVALID = 0,
	USB_RAW_EVENT_CONNECT = 1,
	USB_RAW_EVENT_CONTROL = 2,
};

struct usb_raw_event {
	__u32 type;
	__u32 length;
	__u8 data[0];
};

struct usb_raw_ep_io {
	__u16 ep;
	__u16 flags;
	__u32 length;
	__u8 data[0];
};

#define USB_RAW_EPS_NUM_MAX 30
#define USB_RAW_EP_NAME_MAX 16
#define USB_RAW_EP_ADDR_ANY 0xff

struct usb_raw_ep_caps {
	__u32 type_control : 1;
	__u32 type_iso : 1;
	__u32 type_bulk : 1;
	__u32 type_int : 1;
	__u32 dir_in : 1;
	__u32 dir_out : 1;
};

struct usb_raw_ep_limits {
	__u16 maxpacket_limit;
	__u16 max_streams;
	__u32 reserved;
};

struct usb_raw_ep_info {
	__u8 name[USB_RAW_EP_NAME_MAX];
	__u32 addr;
	struct usb_raw_ep_caps caps;
	struct usb_raw_ep_limits limits;
};

struct usb_raw_eps_info {
	struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX];
};

#define USB_RAW_IOCTL_INIT _IOW('U', 0, struct usb_raw_init)
#define USB_RAW_IOCTL_RUN _IO('U', 1)
#define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event)
#define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP0_READ _IOWR('U', 4, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor)
#define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32)
#define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_EP_READ _IOWR('U', 8, struct usb_raw_ep_io)
#define USB_RAW_IOCTL_CONFIGURE _IO('U', 9)
#define USB_RAW_IOCTL_VBUS_DRAW _IOW('U', 10, __u32)
#define USB_RAW_IOCTL_EPS_INFO _IOR('U', 11, struct usb_raw_eps_info)
#define USB_RAW_IOCTL_EP0_STALL _IO('U', 12)
#define USB_RAW_IOCTL_EP_SET_HALT _IOW('U', 13, __u32)
#define USB_RAW_IOCTL_EP_CLEAR_HALT _IOW('U', 14, __u32)
#define USB_RAW_IOCTL_EP_SET_WEDGE _IOW('U', 15, __u32)

static int usb_raw_open()
{
	return open("/dev/raw-gadget", O_RDWR);
}

static int usb_raw_init(int fd, uint32_t speed, const char* driver, const char* device)
{
	struct usb_raw_init arg;
	strncpy((char*)&arg.driver_name[0], driver, sizeof(arg.driver_name));
	strncpy((char*)&arg.device_name[0], device, sizeof(arg.device_name));
	arg.speed = speed;
	return ioctl(fd, USB_RAW_IOCTL_INIT, &arg);
}

static int usb_raw_run(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_RUN, 0);
}

static int usb_raw_ep_write(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_WRITE, io);
}

static int usb_raw_ep_read(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_READ, io);
}

static int usb_raw_configure(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_CONFIGURE, 0);
}

static int usb_raw_vbus_draw(int fd, uint32_t power)
{
	return ioctl(fd, USB_RAW_IOCTL_VBUS_DRAW, power);
}

static int usb_raw_ep0_write(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_WRITE, io);
}

static int usb_raw_ep0_read(int fd, struct usb_raw_ep_io* io)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_READ, io);
}

static int usb_raw_event_fetch(int fd, struct usb_raw_event* event)
{
	return ioctl(fd, USB_RAW_IOCTL_EVENT_FETCH, event);
}

static int usb_raw_ep_enable(int fd, struct usb_endpoint_descriptor* desc)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_ENABLE, desc);
}

static int usb_raw_ep_disable(int fd, int ep)
{
	return ioctl(fd, USB_RAW_IOCTL_EP_DISABLE, ep);
}

static int usb_raw_ep0_stall(int fd)
{
	return ioctl(fd, USB_RAW_IOCTL_EP0_STALL, 0);
}

static int lookup_interface(int fd, uint8_t bInterfaceNumber, uint8_t bAlternateSetting)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	for (int i = 0; i < index->ifaces_num; i++) {
		if (index->ifaces[i].bInterfaceNumber == bInterfaceNumber &&
		    index->ifaces[i].bAlternateSetting == bAlternateSetting)
			return i;
	}
	return -1;
}

static int lookup_endpoint(int fd, uint8_t bEndpointAddress)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	if (index->iface_cur < 0)
		return -1;
	for (int ep = 0; ep < index->ifaces[index->iface_cur].eps_num; ep++)
		if (index->ifaces[index->iface_cur].eps[ep].desc.bEndpointAddress == bEndpointAddress)
			return index->ifaces[index->iface_cur].eps[ep].handle;
	return -1;
}

#define USB_MAX_PACKET_SIZE 4096

struct usb_raw_control_event {
	struct usb_raw_event inner;
	struct usb_ctrlrequest ctrl;
	char data[USB_MAX_PACKET_SIZE];
};

struct usb_raw_ep_io_data {
	struct usb_raw_ep_io inner;
	char data[USB_MAX_PACKET_SIZE];
};

static void set_interface(int fd, int n)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return;
	if (index->iface_cur >= 0 && index->iface_cur < index->ifaces_num) {
		for (int ep = 0; ep < index->ifaces[index->iface_cur].eps_num; ep++) {
			int rv = usb_raw_ep_disable(fd, index->ifaces[index->iface_cur].eps[ep].handle);
			if (rv < 0) {
			} else {
			}
		}
	}
	if (n >= 0 && n < index->ifaces_num) {
		for (int ep = 0; ep < index->ifaces[n].eps_num; ep++) {
			int rv = usb_raw_ep_enable(fd, &index->ifaces[n].eps[ep].desc);
			if (rv < 0) {
			} else {
				index->ifaces[n].eps[ep].handle = rv;
			}
		}
		index->iface_cur = n;
	}
}

static int configure_device(int fd)
{
	struct usb_device_index* index = lookup_usb_index(fd);
	if (!index)
		return -1;
	int rv = usb_raw_vbus_draw(fd, index->bMaxPower);
	if (rv < 0) {
		return rv;
	}
	rv = usb_raw_configure(fd);
	if (rv < 0) {
		return rv;
	}
	set_interface(fd, 0);
	return 0;
}

static volatile long syz_usb_connect_impl(uint64_t speed, uint64_t dev_len, const char* dev,
					  const struct vusb_connect_descriptors* descs,
					  lookup_connect_out_response_t lookup_connect_response_out)
{
	if (!dev) {
		return -1;
	}
	int fd = usb_raw_open();
	if (fd < 0) {
		return fd;
	}
	if (fd >= MAX_FDS) {
		close(fd);
		return -1;
	}
	struct usb_device_index* index = add_usb_index(fd, dev, dev_len);
	if (!index) {
		return -1;
	}
	char device[32];
	sprintf(&device[0], "dummy_udc.%llu", procid);
	int rv = usb_raw_init(fd, speed, "dummy_udc", &device[0]);
	if (rv < 0) {
		return rv;
	}
	rv = usb_raw_run(fd);
	if (rv < 0) {
		return rv;
	}
	bool done = false;
	while (!done) {
		struct usb_raw_control_event event;
		event.inner.type = 0;
		event.inner.length = sizeof(event.ctrl);
		rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event);
		if (rv < 0) {
			return rv;
		}
		if (event.inner.type != USB_RAW_EVENT_CONTROL)
			continue;
		char* response_data = NULL;
		uint32_t response_length = 0;
		struct usb_qualifier_descriptor qual;
		if (event.ctrl.bRequestType & USB_DIR_IN) {
			if (!lookup_connect_response_in(fd, descs, &event.ctrl, &qual, &response_data, &response_length)) {
				usb_raw_ep0_stall(fd);
				continue;
			}
		} else {
			if (!lookup_connect_response_out(fd, descs, &event.ctrl, &done)) {
				usb_raw_ep0_stall(fd);
				continue;
			}
			response_data = NULL;
			response_length = event.ctrl.wLength;
		}
		if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD &&
		    event.ctrl.bRequest == USB_REQ_SET_CONFIGURATION) {
			rv = configure_device(fd);
			if (rv < 0) {
				return rv;
			}
		}
		struct usb_raw_ep_io_data response;
		response.inner.ep = 0;
		response.inner.flags = 0;
		if (response_length > sizeof(response.data))
			response_length = 0;
		if (event.ctrl.wLength < response_length)
			response_length = event.ctrl.wLength;
		response.inner.length = response_length;
		if (response_data)
			memcpy(&response.data[0], response_data, response_length);
		else
			memset(&response.data[0], 0, response_length);
		if (event.ctrl.bRequestType & USB_DIR_IN) {
			rv = usb_raw_ep0_write(fd, (struct usb_raw_ep_io*)&response);
		} else {
			rv = usb_raw_ep0_read(fd, (struct usb_raw_ep_io*)&response);
		}
		if (rv < 0) {
			return rv;
		}
	}
	sleep_ms(200);
	return fd;
}

static volatile long syz_usb_connect(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	uint64_t speed = a0;
	uint64_t dev_len = a1;
	const char* dev = (const char*)a2;
	const struct vusb_connect_descriptors* descs = (const struct vusb_connect_descriptors*)a3;
	return syz_usb_connect_impl(speed, dev_len, dev, descs, &lookup_connect_response_out_generic);
}

static volatile long syz_usb_control_io(volatile long a0, volatile long a1, volatile long a2)
{
	int fd = a0;
	const struct vusb_descriptors* descs = (const struct vusb_descriptors*)a1;
	const struct vusb_responses* resps = (const struct vusb_responses*)a2;
	struct usb_raw_control_event event;
	event.inner.type = 0;
	event.inner.length = USB_MAX_PACKET_SIZE;
	int rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event);
	if (rv < 0) {
		return rv;
	}
	if (event.inner.type != USB_RAW_EVENT_CONTROL) {
		return -1;
	}
	char* response_data = NULL;
	uint32_t response_length = 0;
	if ((event.ctrl.bRequestType & USB_DIR_IN) && event.ctrl.wLength) {
		if (!lookup_control_response(descs, resps, &event.ctrl, &response_data, &response_length)) {
			usb_raw_ep0_stall(fd);
			return -1;
		}
	} else {
		if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD ||
		    event.ctrl.bRequest == USB_REQ_SET_INTERFACE) {
			int iface_num = event.ctrl.wIndex;
			int alt_set = event.ctrl.wValue;
			int iface_index = lookup_interface(fd, iface_num, alt_set);
			if (iface_index < 0) {
			} else {
				set_interface(fd, iface_index);
			}
		}
		response_length = event.ctrl.wLength;
	}
	struct usb_raw_ep_io_data response;
	response.inner.ep = 0;
	response.inner.flags = 0;
	if (response_length > sizeof(response.data))
		response_length = 0;
	if (event.ctrl.wLength < response_length)
		response_length = event.ctrl.wLength;
	if ((event.ctrl.bRequestType & USB_DIR_IN) && !event.ctrl.wLength) {
		response_length = USB_MAX_PACKET_SIZE;
	}
	response.inner.length = response_length;
	if (response_data)
		memcpy(&response.data[0], response_data, response_length);
	else
		memset(&response.data[0], 0, response_length);
	if ((event.ctrl.bRequestType & USB_DIR_IN) && event.ctrl.wLength) {
		rv = usb_raw_ep0_write(fd, (struct usb_raw_ep_io*)&response);
	} else {
		rv = usb_raw_ep0_read(fd, (struct usb_raw_ep_io*)&response);
	}
	if (rv < 0) {
		return rv;
	}
	sleep_ms(200);
	return 0;
}

static volatile long syz_usb_ep_write(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	int fd = a0;
	uint8_t ep = a1;
	uint32_t len = a2;
	char* data = (char*)a3;
	int ep_handle = lookup_endpoint(fd, ep);
	if (ep_handle < 0) {
		return -1;
	}
	struct usb_raw_ep_io_data io_data;
	io_data.inner.ep = ep_handle;
	io_data.inner.flags = 0;
	if (len > sizeof(io_data.data))
		len = sizeof(io_data.data);
	io_data.inner.length = len;
	memcpy(&io_data.data[0], data, len);
	int rv = usb_raw_ep_write(fd, (struct usb_raw_ep_io*)&io_data);
	if (rv < 0) {
		return rv;
	}
	sleep_ms(200);
	return 0;
}

static volatile long syz_usb_ep_read(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	int fd = a0;
	uint8_t ep = a1;
	uint32_t len = a2;
	char* data = (char*)a3;
	int ep_handle = lookup_endpoint(fd, ep);
	if (ep_handle < 0) {
		return -1;
	}
	struct usb_raw_ep_io_data io_data;
	io_data.inner.ep = ep_handle;
	io_data.inner.flags = 0;
	if (len > sizeof(io_data.data))
		len = sizeof(io_data.data);
	io_data.inner.length = len;
	int rv = usb_raw_ep_read(fd, (struct usb_raw_ep_io*)&io_data);
	if (rv < 0) {
		return rv;
	}
	memcpy(&data[0], &io_data.data[0], io_data.inner.length);
	sleep_ms(200);
	return 0;
}

static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
{
	if (a0 == 0xc || a0 == 0xb) {
		char buf[128];
		sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2);
		return open(buf, O_RDWR, 0);
	} else {
		unsigned long nb = a1;
		char buf[1024];
		char* hash;
		strncpy(buf, (char*)a0, sizeof(buf) - 1);
		buf[sizeof(buf) - 1] = 0;
		while ((hash = strchr(buf, '#'))) {
			*hash = '0' + (char)(nb % 10);
			nb /= 10;
		}
		return open(buf, a2 & ~O_CREAT, 0);
	}
}

uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_usb_connect arguments: [
//    speed: usb_device_speed = 0x3 (8 bytes)
//    dev_len: len = 0x40 (8 bytes)
//    dev: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {12 01 00 02 00 00 00 40 72 05 fe ca 00 01 00 00 00 01 09 02 2e 00 01 01 00 80 fa 09 04 00 00 04 ff 00 00 00 07 05 01 02 00 02 00 07 05 81 02 00 02 00 07 05 02 02 00 02 00 07 05 82 02 00 02} (length 0x3f)
//        }
//      }
//    }
//    conn_descs: nil
//  ]
//  returns fd_usb
memcpy((void*)0x200000000000, "... [truncated large byte array] ...", 63);
	res = -1;
res = syz_usb_connect(/*speed=USB_SPEED_HIGH*/3, /*dev_len=*/0x40, /*dev=*/0x200000000000, /*conn_descs=*/0);
	if (res != -1)
		r[0] = res;
//  syz_usb_ep_read arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x1 (1 bytes)
//    len: len = 0x0 (8 bytes)
//    data: nil
//  ]
syz_usb_ep_read(/*fd=*/r[0], /*ep=*/1, /*len=*/0, /*data=*/0);
//  syz_usb_ep_write arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x81 (1 bytes)
//    len: len = 0x40 (8 bytes)
//    data: ptr[in, buffer] {
//      buffer: {90 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00} (length 0x40)
//    }
//  ]
memcpy((void*)0x200000000100, "... [truncated large byte array] ...", 64);
syz_usb_ep_write(/*fd=*/r[0], /*ep=*/0x81, /*len=*/0x40, /*data=*/0x200000000100);
//  syz_usb_ep_write arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x81 (1 bytes)
//    len: len = 0x40 (8 bytes)
//    data: ptr[in, buffer] {
//      buffer: {91 01 00 00 00 11 22 33 44 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00} (length 0x40)
//    }
//  ]
memcpy((void*)0x200000000300, "... [truncated large byte array] ...", 64);
syz_usb_ep_write(/*fd=*/r[0], /*ep=*/0x81, /*len=*/0x40, /*data=*/0x200000000300);
//  syz_usb_ep_read arguments: [
//    fd: fd_usb (resource)
//    ep: int8 = 0x1 (1 bytes)
//    len: len = 0x0 (8 bytes)
//    data: nil
//  ]
syz_usb_ep_read(/*fd=*/r[0], /*ep=*/1, /*len=*/0, /*data=*/0);
//  syz_open_dev$evdev arguments: [
//    dev: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 69 6e 70 75 74 2f 65 76 65 6e 74 23 00} (length 0x12)
//    }
//    id: intptr = 0x2 (8 bytes)
//    flags: open_flags = 0x0 (8 bytes)
//  ]
//  returns fd_evdev
memcpy((void*)0x200000000040, "/dev/input/event#\000", 18);
	res = -1;
res = syz_open_dev(/*dev=*/0x200000000040, /*id=*/2, /*flags=*/0);
	if (res != -1)
		r[1] = res;
//  ioctl$EVIOCGMASK arguments: [
//    fd: fd_evdev (resource)
//    cmd: const = 0x80104592 (4 bytes)
//    arg: ptr[in, input_mask] {
//      input_mask {
//        type: input_codes = 0x0 (4 bytes)
//        size: bytesize = 0xffffffffffffff36 (4 bytes)
//        ptr: ptr[in, buffer] {
//          buffer: {95 2b b3 e0 06 ae 9a 4c 3a} (length 0x9)
//        }
//      }
//    }
//  ]
*(uint32_t*)0x200000000300 = 0;
*(uint32_t*)0x200000000304 = 0xffffff36;
*(uint64_t*)0x200000000308 = 0x200000000200;
memcpy((void*)0x200000000200, "\x95\x2b\xb3\xe0\x06\xae\x9a\x4c\x3a", 9);
	syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x80104592, /*arg=*/0x200000000300ul);
//  syz_usb_control_io$hid arguments: [
//    fd: fd_usb_hid (resource)
//    descs: nil
//    resps: nil
//  ]
syz_usb_control_io(/*fd=*/r[0], /*descs=*/0, /*resps=*/0);
	return 0;
}





Reply:
The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` (`0x84`) command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first (line 631).
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()` (line 657).
4. In the syzkaller reproducer, the USB device behaves unexpectedly (e.g., endpoint stall or disconnect), causing `snd_urb` to complete with an error status of `-104` (`-ECONNRESET`). 
5. `cxacru_start_wait_urb()` returns this `-104` error, which prompts `cxacru_cm()` to print `"send of cm 0x84 failed (-104)"` and jump to the `fail:` label (line 661).
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, **leaving `rcv_urb` still active and pending**.
7. Back in `cxacru_atm_start()`, the error is printed (`"CHIP_ADSL_LINE_START returned -104"`) but ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

### Fix
To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

```c
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
```

8/2 2026/07/31 07:15 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17049
							output: 23
							thoughts: 363
						

Thoughts:
**Crash Analysis: URB Submission Issue**

Okay, so we've got a crash, and the log points to a problem with a URB (USB Request Block) being submitted while active. The kernel is complaining in `drivers/usb/core/urb.c` at line 379. This is interesting – it's a classic race condition or improper handling of URBs. CPU #1, kworker/1:1, process 5258 is the culprit.

The call trace is crucial here. Let's break it down: The crash originates within the `cxacru_cm` function, which then calls `cxacru_cm_get_array` and eventually leads to a problem with polling status via `cxacru_poll_status`, and we arrive at the start of atm.

Looking at the trace, the `cxacru` driver is involved, specifically functions like `cxacru_atm_start`, `usbatm_atm_init`, `usbatm_usb_probe`, and `cxacru_usb_probe`. These functions are all part of the USB ATM subsystem, which is not something I see often now. This suggests a problem with how the driver is managing its USB communication, likely related to URB submission and completion. Specifically, this is a Conexant AccessRunner USB device.

My next step is to deep-dive into the source code, especially focusing on `drivers/usb/atm/cxacru.c` and `drivers/usb/atm/usbatm.c`. I need to understand the control flow, specifically how URBs are submitted, canceled, and handled in the context of the device's polling and status updates. I'll be looking for potential race conditions, incorrect locking, or other synchronization issues that could cause an active URB to be resubmitted. We might have to consider locking, memory access and atomic access, as well as the possible of concurrency issues that come with using different driver stacks. I am also aware that this is a dated card, as atm is an older technology.



9/2 2026/07/31 07:16 tool codesearch-definition-source
0m Args:
map[Name:cxacru_cm]

Results:
map[SourceCode: 608:	static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 609:			     u8 *wdata, int wsize, u8 *rdata, int rsize)
 610:	{
 611:		int ret, actlen;
 612:		int offb, offd;
 613:		const int stride = CMD_PACKET_SIZE - 4;
 614:		u8 *wbuf = instance->snd_buf;
 615:		u8 *rbuf = instance->rcv_buf;
 616:		int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 617:		int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 618:	
 619:		if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
 620:			if (printk_ratelimit())
 621:				usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 622:					wbuflen, rbuflen);
 623:			ret = -ENOMEM;
 624:			goto err;
 625:		}
 626:	
 627:		mutex_lock(&instance->cm_serialize);
 628:	
 629:		/* submit reading urb before the writing one */
 630:		init_completion(&instance->rcv_done);
 631:		ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 632:		if (ret < 0) {
 633:			if (printk_ratelimit())
 634:				usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 635:					cm, ret);
 636:			goto fail;
 637:		}
 638:	
 639:		memset(wbuf, 0, wbuflen);
 640:		/* handle wsize == 0 */
 641:		wbuf[0] = cm;
 642:		for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 643:			wbuf[offb] = cm;
 644:			memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 645:		}
 646:	
 647:		instance->snd_urb->transfer_buffer_length = wbuflen;
 648:		init_completion(&instance->snd_done);
 649:		ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 650:		if (ret < 0) {
 651:			if (printk_ratelimit())
 652:				usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 653:					cm, ret);
 654:			goto fail;
 655:		}
 656:	
 657:		ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 658:		if (ret < 0) {
 659:			if (printk_ratelimit())
 660:				usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 661:			goto fail;
 662:		}
 663:	
 664:		ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 665:		if (ret < 0) {
 666:			if (printk_ratelimit())
 667:				usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 668:			goto fail;
 669:		}
 670:		if (actlen % CMD_PACKET_SIZE || !actlen) {
 671:			if (printk_ratelimit())
 672:				usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 673:					cm, actlen);
 674:			ret = -EIO;
 675:			goto fail;
 676:		}
 677:	
 678:		/* check the return status and copy the data to the output buffer, if needed */
 679:		for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 680:			if (rbuf[offb] != cm) {
 681:				if (printk_ratelimit())
 682:					usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 683:						rbuf[offb], cm);
 684:				ret = -EIO;
 685:				goto fail;
 686:			}
 687:			if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 688:				if (printk_ratelimit())
 689:					usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 690:						cm, rbuf[offb + 1]);
 691:				ret = -EIO;
 692:				goto fail;
 693:			}
 694:			if (offd >= rsize)
 695:				break;
 696:			memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 697:			offd += stride;
 698:		}
 699:	
 700:		ret = offd;
 701:		usb_dbg(instance->usbatm, "cm %#x\n", cm);
 702:	fail:
 703:		mutex_unlock(&instance->cm_serialize);
 704:	err:
 705:		return ret;
 706:	}
 SourceFile:drivers/usb/atm/cxacru.c]

10/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19607
							output: 27
							thoughts: 117
						

Thoughts:
**Analyzing a USB Crash**

Okay, so I'm looking at this crash, and the backtrace points directly to `cxacru_cm+0x21a/0xf10` in `drivers/usb/atm/cxacru.c:631`. That line is where we're submitting the URB – specifically, `ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);`. The critical warning here is "URB ffff88812658d200 submitted while active." Right, so that tells me that `instance->rcv_urb` is *already* active when we're trying to submit it again. That's the problem. We're submitting an URB that's still outstanding.

My next step is to examine `cxacru_start_wait_urb`. Let's see how that URB is being handled to understand the timing and sequencing and to identify *why* it's active when it shouldn't be. I need to understand how we are starting, stopping, and resubmitting this URB to figure out where the logic has gone wrong and fix the race condition that's causing this.



11/2 2026/07/31 07:16 tool codesearch-definition-source
0m Args:
map[Name:cxacru_start_wait_urb]

Results:
map[SourceCode: 590:	static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 591:					 int *actual_length)
 592:	{
 593:		struct cxacru_timer timer = {
 594:			.urb = urb,
 595:		};
 596:	
 597:		timer_setup_on_stack(&timer.timer, cxacru_timeout_kill, 0);
 598:		mod_timer(&timer.timer, jiffies + msecs_to_jiffies(CMD_TIMEOUT));
 599:		wait_for_completion(done);
 600:		timer_delete_sync(&timer.timer);
 601:		timer_destroy_on_stack(&timer.timer);
 602:	
 603:		if (actual_length)
 604:			*actual_length = urb->actual_length;
 605:		return urb->status; /* must read status after completion */
 606:	}
 SourceFile:drivers/usb/atm/cxacru.c]

12/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20318
							output: 25
							thoughts: 763
						

Thoughts:
**Analyzing Potential Race Conditions in `cxacru_cm`**

Okay, let's break this down. My initial thought is that `cxacru_start_wait_urb` seems to be the key to synchronizing the URB submissions and completions. Specifically, I'm concerned about the error handling within `cxacru_cm`.

I see that `cxacru_start_wait_urb` is used to wait for `done`, as the text states. The flow is as follows: If `cxacru_cm` fails during the submission of the send urb, it jumps to `fail:`, unlocking the mutex and returning. I notice a significant issue here: if the `snd_urb` submission fails *or* if `cxacru_start_wait_urb` for the `snd_urb` fails (likely due to a timeout), it still jumps to `fail:`. The problem is that the `rcv_urb` has already been submitted *before* the `snd_urb` is submitted.

The critical vulnerability is this: if either the submission or the wait on `snd_urb` fails (e.g., timeout), the `rcv_urb` remains active. This would lead to a problem because the next time we enter `cxacru_cm`, the routine is still active.  If we re-enter `cxacru_cm`, it will attempt to submit `rcv_urb` *again*, while the *old* `rcv_urb` is still active. This is a classic double submission of a USB request, which will cause a crash.

I need to confirm the timing of this further.

Looking at the code, it's clear: `usb_submit_urb(instance->rcv_urb, GFP_KERNEL)` is called *before* the `snd_urb`. So, `rcv_urb` is submitted first. The code then handles the data transfer for the `snd_urb` and submits that. Crucially, if there's a problem with the `snd_urb` (either submission or timeout), the code jumps to the `fail:` label.

The critical issue is the same: the `rcv_urb` stays active but is not managed correctly by the failure condition.

I need to investigate what `cxacru_start_wait_urb` does in case of timeout or other urb error conditions to confirm the nature of this urb race. Does it use the timeout to kill the URB in question?



13/2 2026/07/31 07:16 tool codesearch-definition-source
0m Args:
map[Name:cxacru_timeout_kill]

Results:
map[SourceCode: 583:	static void cxacru_timeout_kill(struct timer_list *t)
 584:	{
 585:		struct cxacru_timer *timer = timer_container_of(timer, t, timer);
 586:	
 587:		usb_unlink_urb(timer->urb);
 588:	}
 SourceFile:drivers/usb/atm/cxacru.c]

14/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21762
							output: 23
							thoughts: 692
						

Thoughts:
**Analyzing the `cxacru_cm` Error Handling**

Okay, let's break this down. My initial thought is that `cxacru_timeout_kill` unlinks the `snd_urb` in the case of a timeout, which is expected behavior. This triggers the completion handler, and `cxacru_start_wait_urb` then returns `urb->status`, likely `-ENOENT` or `-ECONNRESET`. `cxacru_cm` rightfully checks for the negative return value (`ret < 0`) and jumps to `fail:`. The critical point is that the `rcv_urb`, which was submitted *before* the `snd_urb`, is *never* unlinked in this scenario! This is my first red flag.

If the `snd_urb` submission fails, *or* if it times out, the `rcv_urb` is left hanging. Then, the next time `cxacru_cm` runs, it tries to resubmit that now-stale `rcv_urb`, triggering the warning. This is precisely the problem.

My immediate next step is to examine the `fail:` path. Let's see if there's any attempt at cleaning up the `rcv_urb` there. But, nope. The code simply unlocks the mutex and returns.

Now, I'm thinking, what happens if `usb_submit_urb(instance->snd_urb)` *itself* fails? The `rcv_urb` is still active. Similarly, if `cxacru_start_wait_urb(instance->snd_urb)` fails, the `rcv_urb` is *still* active.

Okay, clearly, we need a `usb_kill_urb`. If `snd_urb` fails, we need to immediately kill the `rcv_urb`. That's the obvious fix.

But, wait, what if `cxacru_start_wait_urb(instance->rcv_urb)` fails? If it *times out*, `cxacru_timeout_kill` *does* unlink the `rcv_urb`, so that is handled. However, if `snd_urb` fails, the `rcv_urb` is never even *waited* for, nor is it unlinked.

Let's look at `cxacru_cm`'s code again.

```c
ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
if (ret < 0) {
	if (printk_ratelimit())
		usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
			cm, ret);
	goto fail;
}

ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
if (ret < 0) {
	if (printk_ratelimit())
		usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
	goto fail;
}
```

If *either* of those submissions fail, we jump to `fail:`. It's pretty clear: we need to insert a `usb_kill_urb(instance->rcv_urb)` *before* the `goto fail;` in both cases. Or at least in the top error path. Time to examine how `cxacru_cm` is used to confirm this.



15/2 2026/07/31 07:16 tool codesearch-find-references
0m Args:
map[Name:cxacru_cm]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_config_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:481] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_state_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:357] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_state_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:377] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_atm_start SourceFile:drivers/usb/atm/cxacru.c SourceLine:780] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_atm_start SourceFile:drivers/usb/atm/cxacru.c SourceLine:789] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_card_status SourceFile:drivers/usb/atm/cxacru.c SourceLine:760] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_cm_get_array SourceFile:drivers/usb/atm/cxacru.c SourceLine:722] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_heavy_init SourceFile:drivers/usb/atm/cxacru.c SourceLine:1100]] TruncatedOutput:false]

16/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23690
							output: 27
							thoughts: 15
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing `cxacru_cm_get_array`**

Alright, let's see what we've got here.  My initial reaction is to pull up my mental schematics for the `cxacru_` namespace, immediately linking it to the core infrastructure of our current project. Given the naming convention, I can almost instantly infer that `cm` signifies some kind of Configuration Management. The function name, `get_array`, implies we're probably dealing with retrieving a structured set of data, likely a list or array, from the CM system. I need to figure out what data is being configured. Is it user preferences, server settings, deployment parameters, or something else entirely? The type of data will influence how I approach the code and the context in which I'll apply any of my expertise.

I'm already mentally running through potential concerns: What's the error handling like? How does it handle the retrieval failures? Is there a caching mechanism to avoid unnecessary calls to the CM system? What are the security implications? Does this function have a role in the authentication or authorization process? I'm going to have to look into all of these things. Finally, I need to know how this array is being used, so I can predict if this is going to be high-frequency access or something that is executed on occasion.



17/2 2026/07/31 07:16 tool codesearch-definition-source
0m Args:
map[Name:cxacru_cm_get_array]

Results:
map[SourceCode: 708:	static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 709:				       u32 *data, int size)
 710:	{
 711:		int ret, len;
 712:		__le32 *buf;
 713:		int offb;
 714:		unsigned int offd;
 715:		const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
 716:		int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
 717:	
 718:		buf = kmalloc(buflen, GFP_KERNEL);
 719:		if (!buf)
 720:			return -ENOMEM;
 721:	
 722:		ret = cxacru_cm(instance, cm, NULL, 0, (u8 *) buf, buflen);
 723:		if (ret < 0)
 724:			goto cleanup;
 725:	
 726:		/* len > 0 && len % 4 == 0 guaranteed by cxacru_cm() */
 727:		len = ret / 4;
 728:		for (offb = 0; offb < len; ) {
 729:			int l = le32_to_cpu(buf[offb++]);
 730:	
 731:			if (l < 0 || l > stride || l > (len - offb) / 2) {
 732:				if (printk_ratelimit())
 733:					usb_err(instance->usbatm, "invalid data length from cm %#x: %d\n",
 734:						cm, l);
 735:				ret = -EIO;
 736:				goto cleanup;
 737:			}
 738:			while (l--) {
 739:				offd = le32_to_cpu(buf[offb++]);
 740:				if (offd >= size) {
 741:					if (printk_ratelimit())
 742:						usb_err(instance->usbatm, "wrong index %#x in response to cm %#x\n",
 743:							offd, cm);
 744:					ret = -EIO;
 745:					goto cleanup;
 746:				}
 747:				data[offd] = le32_to_cpu(buf[offb++]);
 748:			}
 749:		}
 750:	
 751:		ret = 0;
 752:	
 753:	cleanup:
 754:		kfree(buf);
 755:		return ret;
 756:	}
 SourceFile:drivers/usb/atm/cxacru.c]

18/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24832
							output: 22
							thoughts: 47
						

Thoughts:
Okay, here's my take on those thoughts, framed as my own:

**Analyzing a Potential USB Driver Bug**

Right, so I've got a USB driver issue on my hands, and it's looking pretty clear. The problem is that the `rcv_urb` isn't getting properly cleaned up if the `snd_urb` submission or completion goes sideways. That's a classic resource leak scenario, and those are always fun to debug (said with a hint of sarcasm, of course).

My next logical step is to pinpoint everywhere the `rcv_urb` is actually submitted. I need to make sure this isn't an issue originating from a secondary location. I'm going to track it back and then look at the edge cases, and start there. If I can establish the point of submission, I'll have a better understanding of how the failure happens and then I can dig into the control flow to see if there's an obvious missing `usb_kill_urb()` or similar cleanup call.



19/2 2026/07/31 07:16 tool codesearch-find-references
0m Error:
log-in to see details

Args:
map[Name:rcv_urb]

Results:
map[References:<nil> TruncatedOutput:false]

20/2 2026/07/31 07:16 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25138
							output: 23
							thoughts: 13
						

Thoughts:
Okay, let's dive into this. Here's my understanding, presented as a first-person account, tailored for someone who knows their stuff.

**Analyzing the `cxacru_data` Struct**

Alright, time to get my hands dirty. I need to get a clear picture of what's going on, and the place to start is the `cxacru_data` struct. I'm thinking, this is probably where the core data related to whatever process we're dealing with resides. Knowing the specifics of this struct is going to be crucial for understanding the overall flow and functionality. I need to break down each member, its data type, any associated comments, and figure out how they interact with each other. This struct will likely hold the keys to understanding what's happening at the fundamental level. Let's see what gems are hidden in this structure!



21/2 2026/07/31 07:17 tool codesearch-definition-source
0m Args:
map[Name:cxacru_data]

Results:
map[SourceCode: 170:	struct cxacru_data {
 171:		struct usbatm_data *usbatm;
 172:	
 173:		const struct cxacru_modem_type *modem_type;
 174:	
 175:		int line_status;
 176:		struct mutex adsl_state_serialize;
 177:		int adsl_status;
 178:		struct delayed_work poll_work;
 179:		u32 card_info[CXINF_MAX];
 180:		struct mutex poll_state_serialize;
 181:		enum cxacru_poll_state poll_state;
 182:	
 183:		/* control handles */
 184:		struct mutex cm_serialize;
 185:		u8 *rcv_buf;
 186:		u8 *snd_buf;
 187:		struct urb *rcv_urb;
 188:		struct urb *snd_urb;
 189:		struct completion rcv_done;
 190:		struct completion snd_done;
 191:	};
 SourceFile:drivers/usb/atm/cxacru.c]

22/2 2026/07/31 07:17 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25693
							output: 28
							thoughts: 20
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing URB Initialization**

Okay, so I'm diving into the USB stack code again, and my immediate focus is on understanding the initialization of `rcv_urb` and `snd_urb`. These URBs are the fundamental building blocks for USB transfers, so understanding how they're set up is crucial to understanding the underlying mechanism. I'm going to look closely at the places in the code where these structures are first created and populated. I need to figure out what data is being put into the descriptor, what queues they're getting associated with, and what conditions trigger their setup, because the structure is so important to everything that happens afterward. The initial conditions influence the future usage, and I'm looking for any early indicators of potential bottlenecks or design decisions that influence performance or behavior.



23/2 2026/07/31 07:17 tool codesearch-find-references
0m Args:
map[Name:cxacru_data::rcv_urb]

Results:
map[References:[map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:cxacru_bind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1159] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_bind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1160] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_bind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1189] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_bind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1199] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_bind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1224] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_cm SourceFile:drivers/usb/atm/cxacru.c SourceLine:631] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_cm SourceFile:drivers/usb/atm/cxacru.c SourceLine:664] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_unbind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1259] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:cxacru_unbind SourceFile:drivers/usb/atm/cxacru.c SourceLine:1261]] TruncatedOutput:false]

24/2 2026/07/31 07:17 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26428
							output: 23
							thoughts: 11
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing `cxacru_unbind`**

Alright, `cxacru_unbind`... let's break this down. My initial reaction is to immediately consider its context. What's it bound *to*? What's the nature of this "bind" that needs to be "unbound"? I'm immediately thinking about resources, handles, or perhaps even network connections. The name itself suggests a function or method, likely within a system library or framework, as the naming convention feels specific, almost internally facing, rather than a user-friendly API.

Now I'm trying to mentally map this into known patterns. Is this about unbinding from a data structure? A particular communication endpoint? Is it resource management or a lifecycle management operation? Am I dealing with a C-style API, or something higher-level? The presence of "cru" in there makes me think this could be related to some sort of command or configuration aspect. The acronym seems to suggest *C*onfiguration, *R*esources, and *U*nbinding, at least as an initial hypothesis.

I need more information to really pin this down. Is there a related documentation, or an obvious place to look for that? If I were to approach this experimentally, I'd probably start by grepping the codebase for usage of related terms and functions to get a better feel. The goal would be to understand the complete cycle of action bound in order to effectively see its unbinding. Right now, this has me more curious than informed, so I will start looking for clues.



25/2 2026/07/31 07:17 tool codesearch-definition-source
0m Args:
map[Name:cxacru_unbind]

Results:
map[SourceCode:1230:	static void cxacru_unbind(struct usbatm_data *usbatm_instance,
1231:			struct usb_interface *intf)
1232:	{
1233:		struct cxacru_data *instance = usbatm_instance->driver_data;
1234:		int is_polling = 1;
1235:	
1236:		usb_dbg(usbatm_instance, "cxacru_unbind entered\n");
1237:	
1238:		if (!instance) {
1239:			usb_dbg(usbatm_instance, "cxacru_unbind: NULL instance!\n");
1240:			return;
1241:		}
1242:	
1243:		mutex_lock(&instance->poll_state_serialize);
1244:		BUG_ON(instance->poll_state == CXPOLL_SHUTDOWN);
1245:	
1246:		/* ensure that status polling continues unless
1247:		 * it has already stopped */
1248:		if (instance->poll_state == CXPOLL_STOPPED)
1249:			is_polling = 0;
1250:	
1251:		/* stop polling from being stopped or started */
1252:		instance->poll_state = CXPOLL_SHUTDOWN;
1253:		mutex_unlock(&instance->poll_state_serialize);
1254:	
1255:		if (is_polling)
1256:			cancel_delayed_work_sync(&instance->poll_work);
1257:	
1258:		usb_kill_urb(instance->snd_urb);
1259:		usb_kill_urb(instance->rcv_urb);
1260:		usb_free_urb(instance->snd_urb);
1261:		usb_free_urb(instance->rcv_urb);
1262:	
1263:		free_page((unsigned long) instance->snd_buf);
1264:		free_page((unsigned long) instance->rcv_buf);
1265:	
1266:		kfree(instance);
1267:	
1268:		usbatm_instance->driver_data = NULL;
1269:	}
 SourceFile:drivers/usb/atm/cxacru.c]

26/2 2026/07/31 07:17 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27450
							output: 27
							thoughts: 1534
						

Thoughts:
**Analyzing the USB Communication Error in cxacru_cm**

Okay, so I've been tracing through this `cxacru_cm` function, and it looks like I've found a bug related to URB handling. `cxacru_unbind` is responsible for killing and freeing URBs, so it's not there. The issue is definitely within `cxacru_cm` itself.

Here's the problem: The code submits a read URB (`instance->rcv_urb`) first, then a write URB (`instance->snd_urb`). The write URB is submitted, and then the code waits for it. If there's an error during the *submission* of the write URB (e.g., `-ENODEV`, `-EPIPE`), the code jumps to the `fail:` label. But crucially, the read URB is already active! If the *wait* for the write URB fails (via `cxacru_start_wait_urb` returning a negative value), the same thing happens - the code jumps to `fail:` and the read URB is still active. There's no attempt to kill it in these error paths.

Specifically, if the submission of `instance->snd_urb` fails, the `rcv_urb` is left active. The same goes if the wait operation on `snd_urb` fails. The subsequent call to `cxacru_cm` will then attempt to resubmit the `rcv_urb` which is still active. This leads to the "URB ... submitted while active" warning and a `-EBUSY` error.

Essentially, `cxacru_start_wait_urb` returns the `urb->status`, and that's used to determine if the URB succeeded. If it times out, `cxacru_timeout_kill` unlinks the `snd_urb`. Then `cxacru_start_wait_urb` returns the status (typically `-ENOENT` or `-ECONNRESET`) and it jumps to `fail:`. However, the read URB is still active.

So, the fix is straightforward: In the error paths (`fail:`), I need to call `usb_kill_urb(instance->rcv_urb)` to ensure the read URB is cancelled if it was active. Specifically, I'll need to add it after any failure of `usb_submit_urb(instance->snd_urb)` or after the return from `cxacru_start_wait_urb(instance->snd_urb)`. The last case where `cxacru_start_wait_urb(instance->rcv_urb)` fails is fine - because `rcv_urb` will have already been unlinked. It's safe to call `usb_kill_urb` on it, in all cases.

So, the sequence goes like this: `cxacru_cm` is called. `usb_submit_urb(rcv_urb)` succeeds. Then, *either* `usb_submit_urb(snd_urb)` fails, or `cxacru_start_wait_urb(snd_urb)` fails. Either way, `rcv_urb` is still active when the `fail:` label is reached, thus `usb_kill_urb` is needed.

The important thing is that `rcv_urb` is *not* cleaned up if the submit or wait operation of the *write* URB fails. This leaves it in an active state, causing the busy error on the next call to the function. This covers both the submission and timeout scenarios of the write URB. If the read URB times out, the `cxacru_timeout_kill` will be responsible for unlinking it, and the error code path will be entered. So only the failure cases for the write URB are important.



27/2 2026/07/31 07:17 tool codesearch-definition-source
0m Args:
map[Name:cxacru_start_wait_urb]

Results:
map[SourceCode: 590:	static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 591:					 int *actual_length)
 592:	{
 593:		struct cxacru_timer timer = {
 594:			.urb = urb,
 595:		};
 596:	
 597:		timer_setup_on_stack(&timer.timer, cxacru_timeout_kill, 0);
 598:		mod_timer(&timer.timer, jiffies + msecs_to_jiffies(CMD_TIMEOUT));
 599:		wait_for_completion(done);
 600:		timer_delete_sync(&timer.timer);
 601:		timer_destroy_on_stack(&timer.timer);
 602:	
 603:		if (actual_length)
 604:			*actual_length = urb->actual_length;
 605:		return urb->status; /* must read status after completion */
 606:	}
 SourceFile:drivers/usb/atm/cxacru.c]

28/2 2026/07/31 07:17 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30134
							output: 25
							thoughts: 1184
						

Thoughts:
**Analyzing URB Completion and Error Handling**

Okay, let's break this down. My understanding is that `wait_for_completion(done)` is crucial here, as it's the mechanism that waits for a URB to complete. If it times out, a timeout function, `cxacru_timeout_kill`, is triggered which calls `usb_unlink_urb`. This unlinks the URB, causing it to complete with `-ENOENT` or `-ECONNRESET`, which then triggers the completion handler and the subsequent `complete(done)` call, which returns to the waiting function.

Now, I see a potential issue: if the `snd_urb` fails during `cxacru_start_wait_urb`, the `rcv_urb` is never waited on, and therefore, never unlinked. This leaves the `rcv_urb` hanging. The fix seems straightforward: we need to kill the `rcv_urb` in the `fail:` path, right after `snd_urb` fails, to make sure it is not left active.

But then I thought, if `rcv_urb` itself fails during `cxacru_start_wait_urb` it is unlinked by the timer, or completed with an error, so the `usb_kill_urb` call would be a no-op, although safe. Likewise, if `cxacru_cm` succeeds, the `rcv_urb` would have completed successfully, again making the `usb_kill_urb` call safe but unnecessary. The only place we *need* to kill `rcv_urb` is if we are aborting early.

Let me go through the `cxacru_cm` error handling. It looks like it would make sense to add `usb_kill_urb(instance->rcv_urb);` at the `fail:` label. But I want to make sure I am covering all the scenarios.

Let's look at the failure cases to be certain:

*   If we jump to `fail:` because `usb_submit_urb(instance->rcv_urb)` failed, then `rcv_urb` is not active, so `usb_kill_urb` is a no-op.
*   If we jump to `fail:` because `usb_submit_urb(instance->snd_urb)` failed, `rcv_urb` is active, so `usb_kill_urb` will kill it and wait for it to complete. This is exactly what we want.
*   If we jump to `fail:` because `cxacru_start_wait_urb(instance->snd_urb)` failed, `rcv_urb` is active, so `usb_kill_urb` will kill it.
*   If we jump to `fail:` because `cxacru_start_wait_urb(instance->rcv_urb)` failed, `rcv_urb` is already complete (with error), so `usb_kill_urb` is a no-op.
*   If we jump to `fail:` because of invalid response length or wrong cm, `rcv_urb` is already complete, so `usb_kill_urb` is a no-op.

One last thing, is it safe to call `usb_kill_urb` while holding `instance->cm_serialize`? Good, `usb_kill_urb` just waits for the URB to complete. The completion handler `cxacru_blocking_completion` does not take this mutex.

So, in conclusion, adding `usb_kill_urb(instance->rcv_urb);` at the `fail:` label seems like the right solution, as it will cover all the error cases and safely handle the `rcv_urb` if the process aborts early.



29/2 2026/07/31 07:17 tool codesearch-definition-source
0m Args:
map[Name:cxacru_blocking_completion]

Results:
map[SourceCode: 572:	/* the following three functions are stolen from drivers/usb/core/message.c */
 573:	static void cxacru_blocking_completion(struct urb *urb)
 574:	{
 575:		complete(urb->context);
 576:	}
 SourceFile:drivers/usb/atm/cxacru.c]

30/2 2026/07/31 07:17 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32261
							output: 27
							thoughts: 1165
						

Thoughts:
**Analyzing URB Completion and Termination in the `cxacru` Context**

Okay, let's break this down systematically. I see that `cxacru_blocking_completion` just calls `complete(urb->context)`. So, calling `usb_kill_urb` while the mutex is held should be perfectly safe, that part's straightforward.

My primary concern revolves around the potential for URBs remaining active in error scenarios, particularly `rcv_urb` and `snd_urb`. If `usb_kill_urb(instance->rcv_urb)` is called at the `fail:` label, I need to be absolutely certain of the state of both URBs.

Initially, I considered the scenario where `snd_urb` might also be active, especially if `cxacru_start_wait_urb(instance->snd_urb)` fails. However, the logic clearly indicates that a timeout in `cxacru_start_wait_urb(instance->snd_urb)` results in it being unlinked and completed. Failures during `usb_submit_urb(instance->snd_urb)` or `usb_submit_urb(instance->rcv_urb)` will always leave these URBs in the inactive state.

Then, there's the question of `rcv_urb`'s behavior within `usb_kill_urb` given its completion handler. My conclusion is that because we hold the `cm_serialize` mutex there's no way another thread can get in the way of `rcv_done`, so there's no race condition.

I had a moment of confusion when re-examining `fail:`, but it's just the label for the unlock. Adding `usb_kill_urb(instance->rcv_urb);` before `fail:` is a fine way to kill the URB on error or success, so that's good. And calling `usb_kill_urb` on an already completed URB is a safe, no-op. But it's better to avoid the extra call on success. But if we only call it if `ret < 0`, that makes sure we don't try to kill it if the URB hasn't been submitted yet.

I think the safest approach would be adding:
```c
	if (ret < 0)
		usb_kill_urb(instance->rcv_urb);
```
before `mutex_unlock(&instance->cm_serialize);`.

This handles failures at several points: submission of either URB, and `cxacru_start_wait_urb` for both. This will ensure that `rcv_urb` is killed only on error. The URB will be inactive due to timeout, or another error.

Finally, I confirmed that `snd_urb` is also always properly handled due to the logic in `cxacru_start_wait_urb`. The use of `wait_for_completion` (not `wait_for_completion_interruptible`) prevents any signal-based interruptions that could leave it in an indeterminate state.



31/2 2026/07/31 07:18 tool codesearch-find-references
0m Args:
map[Name:cxacru_start_wait_urb]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_cm SourceFile:drivers/usb/atm/cxacru.c SourceLine:657] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_cm SourceFile:drivers/usb/atm/cxacru.c SourceLine:664]] TruncatedOutput:false]

32/2 2026/07/31 07:18 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34231
							output: 27
							thoughts: 1773
						

Thoughts:
**Analyzing USB URB Management in `cxacru_cm`**

Okay, let's break this down. My primary concern is ensuring the safe killing and unlinking of USB URBs, specifically within the `cxacru_cm` function. The code seems to be running in process context, as it's called from a workqueue or `cxacru_atm_start`, which traces back to `usbatm_atm_init` and `usbatm_usb_probe`.  This means `usb_kill_urb` can be used, which is good. There's also a mutex, which covers any potential sleeps in `usb_kill_urb`.

The core issue appears to be around how `cxacru_cm` handles errors and manages the `rcv_urb` and `snd_urb` URBs. Looking at the code:

If `ret < 0` after `cxacru_start_wait_urb`, a `fail:` label is reached, with a subsequent `mutex_unlock`. My initial thought is to kill `rcv_urb` in this case.  However, let's explore all possible scenarios:

*   If `usb_submit_urb(instance->rcv_urb)` fails, then `rcv_urb` wasn't actually submitted and so calling `usb_kill_urb` on it would just return. So, it's safe.
*   If `usb_submit_urb(instance->snd_urb)` fails, then `rcv_urb` has been submitted and active. So, this warrants killing of `rcv_urb`.
*   If `cxacru_start_wait_urb(instance->snd_urb)` fails, `rcv_urb` will have been submitted, so `usb_kill_urb` is necessary.
*   If `cxacru_start_wait_urb(instance->rcv_urb)` times out or the completion handler fails, `usb_kill_urb` will kill the urb.
*   If `ret < 0` for any reason, `usb_kill_urb` is safe to run.
*   If `ret >= 0`, then `usb_kill_urb` is *not* called, and `rcv_urb` completed successfully and is no longer active.

Now, I need to make sure that the `snd_urb` doesn't become active.  I identified that if `cxacru_start_wait_urb(instance->snd_urb)` times out, `cxacru_timeout_kill` is called, which calls `usb_unlink_urb` on the `snd_urb`. This is asynchronous, but the `wait_for_completion` after it ensures that the completion handler has completed. There is also `timer_delete_sync(&timer.timer)`, which will handle any active URBs. So, `snd_urb` is never left active.

The problem, as I see it, is that the current `fail` logic fails to kill the `rcv_urb` in certain error conditions.

Analyzing a specific crash log provides evidence:

```
cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
```

The error `-104` (ECONNRESET) means the `snd_urb` was unlinked or the device was disconnected *during* a `cxacru_start_wait_urb` call. This directly ties to `cxacru_cm` jumping to `fail:` without killing the `rcv_urb`!  It appears to leave `rcv_urb` active. The subsequent call to `cxacru_cm` then re-submits an already active URB, triggering the warning.

So, in conclusion, the code requires modification to call `usb_kill_urb(instance->rcv_urb)` when returning from `cxacru_cm` and *any* error condition to prevent this URB submitted while active error.



33/2 2026/07/31 07:18 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[Name:CM_REQUEST_CARD_GET_STATUS]

Results:
map[SourceCode: SourceFile:]

34/2 2026/07/31 07:18 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37034
							output: 25
							thoughts: 13
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deeply familiar with the relevant technical domain and context.

**Checking `cxacru_cm_request`**

Alright, let's dive into this. "Let's check `cxacru_cm_request`." Hmm, that's a very specific identifier. Clearly, I'm thinking about a process or a data structure named `cxacru_cm_request`. Based on the naming convention, it suggests this might be related to a request, likely something central management (CM) related and probably part of an ACru system or module.

The thought implies I've either been alerted to something, perhaps a performance issue, a bug, or an unusual pattern, that warrants immediate inspection of this particular piece. Or perhaps I'm in the process of debugging a workflow. 

It tells me I know *where* to look - I'm already aware of this specific entity and its role within the larger system. It also means I am confident that examining this component will give me some insight into the problem, and I'm heading in the right direction. It's a targeted check, not a generic search. The fact that the thought is so concise, I'm probably pretty sure I'll get to the heart of the matter quickly. Let's see what's in there.



35/2 2026/07/31 07:18 tool codesearch-definition-source
0m Args:
map[Name:cxacru_cm_request]

Results:
map[SourceCode:  69:	/* commands for interaction with the modem through the control channel once
  70:	 * firmware is loaded  */
  71:	enum cxacru_cm_request {
  72:		CM_REQUEST_UNDEFINED = 0x80,
  73:		CM_REQUEST_TEST,
  74:		CM_REQUEST_CHIP_GET_MAC_ADDRESS,
  75:		CM_REQUEST_CHIP_GET_DP_VERSIONS,
  76:		CM_REQUEST_CHIP_ADSL_LINE_START,
  77:		CM_REQUEST_CHIP_ADSL_LINE_STOP,
  78:		CM_REQUEST_CHIP_ADSL_LINE_GET_STATUS,
  79:		CM_REQUEST_CHIP_ADSL_LINE_GET_SPEED,
  80:		CM_REQUEST_CARD_INFO_GET,
  81:		CM_REQUEST_CARD_DATA_GET,
  82:		CM_REQUEST_CARD_DATA_SET,
  83:		CM_REQUEST_COMMAND_HW_IO,
  84:		CM_REQUEST_INTERFACE_HW_IO,
  85:		CM_REQUEST_CARD_SERIAL_DATA_PATH_GET,
  86:		CM_REQUEST_CARD_SERIAL_DATA_PATH_SET,
  87:		CM_REQUEST_CARD_CONTROLLER_VERSION_GET,
  88:		CM_REQUEST_CARD_GET_STATUS,
  89:		CM_REQUEST_CARD_GET_MAC_ADDRESS,
  90:		CM_REQUEST_CARD_GET_DATA_LINK_STATUS,
  91:		CM_REQUEST_MAX,
  92:	};
 SourceFile:drivers/usb/atm/cxacru.c]

36/2 2026/07/31 07:18 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37806
							output: 25
							thoughts: 551
						

Thoughts:
**Analyzing a USB ATM Driver Crash**

Okay, let's break this down. I see a `CM_REQUEST_UNDEFINED` defined as `0x80`, and other requests defined as well, with `CM_REQUEST_CHIP_ADSL_LINE_START` being `0x84`. I'm focusing on that one now. The log indicates a failed `send of cm 0x84` with an error code of `-104`. This failure propagates up, as expected, leading to a `-104` return from `cxacru_atm_start`. Ultimately, `usbatm_atm_init` fails, which then leads to `usbatm_usb_probe` failing.

Now, if `usbatm_usb_probe` fails, the standard flow should include cleanup and a return. But here's where it gets interesting – the system crashes *back* in `cxacru_cm`. That's unexpected. Let's look at the call trace: `cxacru_cm`, `cxacru_cm_get_array`, `cxacru_poll_status`, `cxacru_atm_start`, `usbatm_atm_init`, and finally `usbatm_usb_probe` and `cxacru_usb_probe`.

Aha! The crash occurs within `cxacru_poll_status`, which is called from within `cxacru_atm_start`. So the initial failure to start the ADSL line is masking something more fundamental. Time to examine the code in `cxacru_atm_start` and see what's going on there. I'm focusing on the interaction between `cxacru_cm`, `cxacru_poll_status`, and the error handling within `cxacru_atm_start` now, specifically the conditions that might lead to a crash after a seemingly handled failure.



37/2 2026/07/31 07:18 tool codesearch-definition-source
0m Args:
map[Name:cxacru_atm_start]

Results:
map[SourceCode: 769:	static int cxacru_atm_start(struct usbatm_data *usbatm_instance,
 770:			struct atm_dev *atm_dev)
 771:	{
 772:		struct cxacru_data *instance = usbatm_instance->driver_data;
 773:		struct usb_interface *intf = usbatm_instance->usb_intf;
 774:		int ret;
 775:		int start_polling = 1;
 776:	
 777:		dev_dbg(&intf->dev, "%s\n", __func__);
 778:	
 779:		/* Read MAC address */
 780:		ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_MAC_ADDRESS, NULL, 0,
 781:				atm_dev->esi, sizeof(atm_dev->esi));
 782:		if (ret < 0) {
 783:			atm_err(usbatm_instance, "cxacru_atm_start: CARD_GET_MAC_ADDRESS returned %d\n", ret);
 784:			return ret;
 785:		}
 786:	
 787:		/* start ADSL */
 788:		mutex_lock(&instance->adsl_state_serialize);
 789:		ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_START, NULL, 0, NULL, 0);
 790:		if (ret < 0)
 791:			atm_err(usbatm_instance, "cxacru_atm_start: CHIP_ADSL_LINE_START returned %d\n", ret);
 792:	
 793:		/* Start status polling */
 794:		mutex_lock(&instance->poll_state_serialize);
 795:		switch (instance->poll_state) {
 796:		case CXPOLL_STOPPED:
 797:			/* start polling */
 798:			instance->poll_state = CXPOLL_POLLING;
 799:			break;
 800:	
 801:		case CXPOLL_STOPPING:
 802:			/* abort stop request */
 803:			instance->poll_state = CXPOLL_POLLING;
 804:			fallthrough;
 805:		case CXPOLL_POLLING:
 806:		case CXPOLL_SHUTDOWN:
 807:			/* don't start polling */
 808:			start_polling = 0;
 809:		}
 810:		mutex_unlock(&instance->poll_state_serialize);
 811:		mutex_unlock(&instance->adsl_state_serialize);
 812:	
 813:		if (start_polling)
 814:			cxacru_poll_status(&instance->poll_work.work);
 815:		return 0;
 816:	}
 SourceFile:drivers/usb/atm/cxacru.c]

38/2 2026/07/31 07:18 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39615
							output: 23
							thoughts: 1555
						

Thoughts:
**Root Cause Analysis and Proposed Fix for USB ATM Driver Crash**

Okay, let's break this down. It seems the `cxacru_atm_start` function calls `cxacru_cm` to request a chip ADSL line start, but it doesn't properly handle the error if that initial communication fails. Specifically, if `CM_REQUEST_CHIP_ADSL_LINE_START` fails, `cxacru_atm_start` prints an error but continues execution. This is a problem. It moves on to polling status, which in turn calls `cxacru_cm` again, but the crucial point is that the receive URB (`rcv_urb`) was left active from that initial failed `CHIP_ADSL_LINE_START` call. The next call to `cxacru_cm` then tries to resubmit this active URB, leading to the "URB submitted while active" warning and a potential crash.

The logs perfectly mirror this sequence. The initial CM request fails with error -104, the driver logs the error, *and then* the subsequent status polling attempts, now resubmitting the URB that's still active, causes the crash.

So, the core problem is that `cxacru_cm` is not properly cleaning up the receive URB when it encounters an error submitting the command or the URB fails to complete. Although `cxacru_unbind` cleans up the URB, calls to `cxacru_cm` from other places will leave the URB active if there's an error.

The first, immediate solution that jumps to mind is to ensure that `cxacru_cm` *always* kills the `rcv_urb` if there's an error. Even if we're not unbinding the device, the general principle is to clean up resources after any failure, because this could cause more problems later. So that means that we need to add a `usb_kill_urb(instance->rcv_urb)` call.

However, we need to ensure this is safe. `usb_kill_urb` itself is safe to call, checking the URB status. We want to place this call in the error handling section of `cxacru_cm`. I can see there's a `goto fail;` label used for error handling. So, the fix looks something like this (insert this in the `fail:` section):

```c
fail:
	if (ret < 0)
		usb_kill_urb(instance->rcv_urb);
	mutex_unlock(&instance->cm_serialize);
```

Let's carefully verify the safety of this change. It looks like it is safe.
The main thing is to confirm `usb_kill_urb` will not be called when it doesn't need to be.
If submission or the `cxacru_start_wait_urb` fails then `rcv_urb` will still be active.
If `actlen % CMD_PACKET_SIZE` fails, then `rcv_urb` completed successfully and is not active. This will cause `usb_kill_urb` to be a no-op. If `ret >= 0`, `usb_kill_urb` will also be a no-op.

The current implementation of `cxacru_cm` will return to the `fail:` label, after a successful operation, so this `if` statement will prevent the function call overhead.

This looks like a robust and correct solution. The revised `cxacru_cm` now cleans up the `rcv_urb` on any error condition, preventing the "URB submitted while active" warning and the potential crash. We're also addressing the underlying resource management issue, ensuring the driver is more resilient to communication failures. This is a *must-fix*.



39/2 2026/07/31 07:19 tool codesearch-definition-source
0m Args:
map[Name:usb_kill_urb]

Results:
map[SourceCode: 676:	/**
 677:	 * usb_kill_urb - cancel a transfer request and wait for it to finish
 678:	 * @urb: pointer to URB describing a previously submitted request,
 679:	 *	may be NULL
 680:	 *
 681:	 * This routine cancels an in-progress request.  It is guaranteed that
 682:	 * upon return all completion handlers will have finished and the URB
 683:	 * will be totally idle and available for reuse.  These features make
 684:	 * this an ideal way to stop I/O in a disconnect() callback or close()
 685:	 * function.  If the request has not already finished or been unlinked
 686:	 * the completion handler will see urb->status == -ENOENT.
 687:	 *
 688:	 * While the routine is running, attempts to resubmit the URB will fail
 689:	 * with error -EPERM.  Thus even if the URB's completion handler always
 690:	 * tries to resubmit, it will not succeed and the URB will become idle.
 691:	 *
 692:	 * The URB must not be deallocated while this routine is running.  In
 693:	 * particular, when a driver calls this routine, it must insure that the
 694:	 * completion handler cannot deallocate the URB.
 695:	 *
 696:	 * This routine may not be used in an interrupt context (such as a bottom
 697:	 * half or a completion handler), or when holding a spinlock, or in other
 698:	 * situations where the caller can't schedule().
 699:	 *
 700:	 * This routine should not be called by a driver after its disconnect
 701:	 * method has returned.
 702:	 */
 703:	void usb_kill_urb(struct urb *urb)
 704:	{
 705:		might_sleep();
 706:		if (!(urb && urb->dev && urb->ep))
 707:			return;
 708:		atomic_inc(&urb->reject);
 709:		/*
 710:		 * Order the write of urb->reject above before the read
 711:		 * of urb->use_count below.  Pairs with the barriers in
 712:		 * __usb_hcd_giveback_urb() and usb_hcd_submit_urb().
 713:		 */
 714:		smp_mb__after_atomic();
 715:	
 716:		usb_hcd_unlink_urb(urb, -ENOENT);
 717:		wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0);
 718:	
 719:		atomic_dec(&urb->reject);
 720:	}
 SourceFile:drivers/usb/core/urb.c]

40/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42797
							output: 25
							thoughts: 2213
						

Thoughts:
**Analysis of USB URB Handling in cxacru Driver**

Okay, let's break this down. First, the question was about the safety of `usb_kill_urb`, even if the URB isn't active. The conclusion here is that it's safe. It handles the inactive case gracefully by incrementing `reject`, calling `usb_hcd_unlink_urb` (which returns an error), waiting for `use_count == 0` (which is already true), and decrementing `reject`. The optimization with `if (ret < 0)` is good.

Now, what if `usb_kill_urb` is called while the receive URB (`rcv_urb`) *is* active? That's the core concern. The logic shows it will unlink it, wait for `use_count == 0`, and the completion handler will call `complete(&instance->rcv_done)`. This also seems safe. I need to be sure the completion is handled correctly.

What if the `cxacru_start_wait_urb` fails due to a timeout? Okay, so if the send URB (`snd_urb`) timed out, the timer will unlink it, `cxacru_cm` jumps to the `fail:` label, and `usb_kill_urb(instance->rcv_urb)` is called. Then, the `cm_serialize` mutex is unlocked. This *looks* correct.

Next, I need to check for any other potential issues. What if the requested transfer size is too large in `cxacru_cm`? The code checks for this: `wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE`. If this is true, it goes to `err:`, bypassing the `fail:` logic. Since the `rcv_urb` hasn't been submitted yet, it's not active and there's no issue here.

What if `usb_submit_urb(instance->rcv_urb)` fails? It jumps to `fail:`.  Since it failed to submit, `rcv_urb` is not active and `usb_kill_urb` returns immediately. Correct.

What if `usb_submit_urb(instance->snd_urb)` fails? Okay, it goes to `fail:`. This time, `rcv_urb` *is* likely active. `usb_kill_urb` will unlink it and wait for completion. Also correct.

If `cxacru_start_wait_urb(instance->snd_urb)` fails, it jumps to `fail:` and the code executes the same safe sequence as above.  The `rcv_urb` is active, it gets killed, and the mutex is unlocked.  Still looks good.

If `cxacru_start_wait_urb(instance->rcv_urb)` fails (likely a timeout), again, the logic executes as intended, where `rcv_urb` is already unlinked or completed. `usb_kill_urb` does the right thing, and the program flow is safe.

What if the receive length (`actlen`) is invalid?  It goes to `fail:`, and once again, the current analysis applies, with `rcv_urb` being unlinked or complete. Also correct.

So, the fix is robust, `fail:` label calls `usb_kill_urb(instance->rcv_urb)` if there's an error, and unlocks `instance->cm_serialize`.

Now, let's think about other URBs and their states. Is `snd_urb` ever left active? No, `usb_submit_urb` failures, or the timer unlinking it, should ensure the URB is killed. The check also ensures that `wait_for_completion` is uninterruptible, so the `snd_urb` is never left active.

What about concurrency? `cxacru_cm` is protected by `mutex_lock(&instance->cm_serialize)`, which blocks any concurrent access. So that's safe.

What about `cxacru_unbind` during `cxacru_cm`? That's a critical point. `cxacru_unbind` will call `usb_kill_urb` for both URBs. This should cause the URBs to complete with `-ENOENT`. Then `cxacru_start_wait_urb` will return `-ENOENT`. This also should mean that we will arrive to `fail:`, which means the same clean shutdown, and release of the mutex. However, `cxacru_unbind` frees the URBs, but *doesn't* take the `cm_serialize` mutex. That's a potential race condition!

Is this actually possible? `cxacru_cm` comes from a workqueue in `cx


41/2 2026/07/31 07:19 tool codesearch-definition-source
0m Args:
map[Name:usbatm_usb_disconnect]

Results:
map[SourceCode:1207:	void usbatm_usb_disconnect(struct usb_interface *intf)
1208:	{
1209:		struct device *dev = &intf->dev;
1210:		struct usbatm_data *instance = usb_get_intfdata(intf);
1211:		struct usbatm_vcc_data *vcc_data;
1212:		int i;
1213:	
1214:		if (!instance) {
1215:			dev_dbg(dev, "%s: NULL instance!\n", __func__);
1216:			return;
1217:		}
1218:	
1219:		usb_set_intfdata(intf, NULL);
1220:	
1221:		mutex_lock(&instance->serialize);
1222:		instance->disconnected = 1;
1223:		if (instance->thread != NULL)
1224:			send_sig(SIGTERM, instance->thread, 1);
1225:		mutex_unlock(&instance->serialize);
1226:	
1227:		wait_for_completion(&instance->thread_exited);
1228:	
1229:		mutex_lock(&instance->serialize);
1230:		list_for_each_entry(vcc_data, &instance->vcc_list, list)
1231:			vcc_release_async(vcc_data->vcc, -EPIPE);
1232:		mutex_unlock(&instance->serialize);
1233:	
1234:		tasklet_disable(&instance->rx_channel.tasklet);
1235:		tasklet_disable(&instance->tx_channel.tasklet);
1236:	
1237:		for (i = 0; i < num_rcv_urbs + num_snd_urbs; i++)
1238:			usb_kill_urb(instance->urbs[i]);
1239:	
1240:		timer_delete_sync(&instance->rx_channel.delay);
1241:		timer_delete_sync(&instance->tx_channel.delay);
1242:	
1243:		/* turn usbatm_[rt]x_process into something close to a no-op */
1244:		/* no need to take the spinlock */
1245:		INIT_LIST_HEAD(&instance->rx_channel.list);
1246:		INIT_LIST_HEAD(&instance->tx_channel.list);
1247:	
1248:		tasklet_enable(&instance->rx_channel.tasklet);
1249:		tasklet_enable(&instance->tx_channel.tasklet);
1250:	
1251:		if (instance->atm_dev && instance->driver->atm_stop)
1252:			instance->driver->atm_stop(instance, instance->atm_dev);
1253:	
1254:		if (instance->driver->unbind)
1255:			instance->driver->unbind(instance, intf);
1256:	
1257:		instance->driver_data = NULL;
1258:	
1259:		for (i = 0; i < num_rcv_urbs + num_snd_urbs; i++) {
1260:			kfree(instance->urbs[i]->transfer_buffer);
1261:			usb_free_urb(instance->urbs[i]);
1262:		}
1263:	
1264:		kfree(instance->cell_buf);
1265:	
1266:		/* ATM finalize */
1267:		if (instance->atm_dev) {
1268:			atm_dev_deregister(instance->atm_dev);
1269:			instance->atm_dev = NULL;
1270:		}
1271:	
1272:		usbatm_put_instance(instance);	/* taken in usbatm_usb_probe */
1273:	}
 SourceFile:drivers/usb/atm/usbatm.c]

42/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47136
							output: 24
							thoughts: 110
						

Thoughts:
**Dissecting the USB Disconnect Path**

Okay, so I'm tracing the disconnect path within the USB ATM driver. Specifically, `usbatm_usb_disconnect` is calling `instance->driver->unbind(instance, intf)`, which I know maps directly to `cxacru_unbind` in this case. That makes sense, standard unbinding process.

However, I'm a little concerned. Before the unbind, it's calling `instance->driver->atm_stop(instance, instance->atm_dev)`. The thing is, `cxacru` doesn't actually define or implement an `atm_stop` function! That's a potential area for a bug, or perhaps some unexpected side effect. I need to figure out what that call is doing, even if it's a no-op.

Then I get to thinking about sysfs. I'm trying to remember exactly *where* the sysfs attributes for this device are registered. Are they attached to `instance->usb_intf->dev`, representing the USB interface itself, or are they under `instance->atm_dev` which represents the ATM device within the USB device? I'm not entirely sure, and that's important for understanding how the device presents its state to the user. I'll need to double check the sysfs creation code to get the answer.



43/2 2026/07/31 07:19 tool codesearch-find-references
0m Args:
map[Name:adsl_config_store]

Results:
map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:dev_attr_adsl_config SourceFile:drivers/usb/atm/cxacru.c SourceLine:539] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:dev_attr_adsl_config SourceFile:drivers/usb/atm/cxacru.c SourceLine:539] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:dev_attr_adsl_config SourceFile:drivers/usb/atm/cxacru.c SourceLine:539]] TruncatedOutput:false]

44/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47766
							output: 26
							thoughts: 14
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing the Configuration Variable: `dev_attr_adsl_config`**

Alright, let's take a closer look at `dev_attr_adsl_config`. I'm immediately curious about what this configuration variable specifically defines. Is it related to the device attributes, possibly for an ADSL connection, as the name hints at? My experience tells me that such configurations can involve a multitude of parameters - MTU size, VPI/VCI values, encapsulation methods (like PPPoE or PPPoA), authentication credentials, and even QoS settings, to name a few.

I need to understand its scope. Is this a system-wide setting, or is it specific to a particular network interface or device instance? Are there other related variables or structures that this config links to? Parsing the associated code, if available, would be the first order of business to figure out how the software actually processes this configuration.

Furthermore, how is the data structure defined? Is it a simple string, an integer, a boolean, or a more complex structure? Are there any validation routines or error handling mechanisms in place for this particular configuration element? Knowing this is paramount, because a malformed setting can cause network instability or complete service failure.

Essentially, I'm thinking about the implications of this variable. Is it an important parameter, as the name makes me believe it is? Is it a key to understanding device connectivity, or just a small piece of the puzzle? What is the impact of changing this particular variable? It will require some thorough examination.



45/2 2026/07/31 07:19 tool codesearch-find-references
0m Args:
map[Name:dev_attr_adsl_config]

Results:
map[References:<nil> TruncatedOutput:false]

46/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48169
							output: 26
							thoughts: 11
						

Thoughts:
Okay, I'm ready to summarize my thought process. Here's how I'm approaching it:

**Thinking Critically About Usage**

Okay, first things first, before I dive into any conclusions or analyses, I need to understand the context. Where exactly is this being used? Knowing the specific application – the field, the system, the project – is absolutely crucial. Without that foundation, any interpretation or assessment is essentially meaningless. I need to pinpoint the application. Then I can make sense of how it functions. That's the baseline.



47/2 2026/07/31 07:19 tool codesearch-definition-source
0m Args:
map[Name:dev_attr_adsl_config]

Results:
map[SourceCode: 539:	CXACRU_ALL_FILES(INIT);
 SourceFile:drivers/usb/atm/cxacru.c]

48/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48371
							output: 25
							thoughts: 10
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Macro-Generated Code - Initial Assessment**

Okay, so I'm looking at this code, and the first thing that jumps out is the structure. It's got that unmistakable fingerprint of a macro-generated program. The repetitive patterns, the potential for abstracted logic, it all screams "macro." Now, the implications are immediate. We're dealing with an abstraction layer. I need to figure out *what* abstraction layer, which usually requires tracing back the preprocessor directives or whatever is generating this stuff. This also means understanding the *purpose* of the macro. Is it for code generation, template instantiation, or something else entirely? Depending on that, my analysis changes quite a bit. My immediate task becomes identifying the macro's definition and its expansion. This will be key to understanding the underlying logic and potential vulnerabilities, since it all relies on the structure set out by the original macro code. I'll need to know the development environment to understand any possible preprocessor directives used.



49/2 2026/07/31 07:19 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[Name:CXACRU_ALL_FILES]

Results:
map[SourceCode: SourceFile:]

50/2 2026/07/31 07:19 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48648
							output: 21
							thoughts: 14
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Grep'ing for the Needle in the Haystack**

Okay, so I'm thinking about how to approach this... My first instinct is to zero in on the obvious: `CXACRU_ALL_FILES`. It's likely a defining variable, a constant, a macro, something that encapsulates the set of files we're dealing with. If it's used with that name consistently, which I'd expect, I should be able to hunt it down pretty quickly with a simple `grep`. I'm mentally making a mental note to refine the `grep` search if I don't get the correct results on the first attempt, I'll need to think about flags and context. I'll need to figure out what type of tool I want to search with: `grep`, `ag`, or something more specialized, depending on the scale and complexity of the codebase. I might need to specify the file types I'm interested in too, to avoid sifting through irrelevant binary data. Hopefully, this variable is well-defined, and the surrounding code will tell me what it's all about.



51/2 2026/07/31 07:19 tool grepper
0m Args:
map[Expression:CXACRU_ALL_FILES]

Results:
map[Output:drivers/usb/atm/cxacru.c=435=static ssize_t adsl_config_store(struct device *dev,
--
drivers/usb/atm/cxacru.c-501-/*
drivers/usb/atm/cxacru.c:502: * All device attributes are included in CXACRU_ALL_FILES
drivers/usb/atm/cxacru.c-503- * so that the same list can be used multiple times:
--
drivers/usb/atm/cxacru.c-508- * With the last two being defined as needed in the functions
drivers/usb/atm/cxacru.c:509: * they are used in before calling CXACRU_ALL_FILES()
drivers/usb/atm/cxacru.c-510- */
drivers/usb/atm/cxacru.c:511:#define CXACRU_ALL_FILES(_action) \
drivers/usb/atm/cxacru.c-512-CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_RATE,           u32,  downstream_rate); \
--
drivers/usb/atm/cxacru.c=537=CXACRU_SET_##_action(                                        adsl_config);
drivers/usb/atm/cxacru.c-538-
drivers/usb/atm/cxacru.c:539:CXACRU_ALL_FILES(INIT);
drivers/usb/atm/cxacru.c-540-
]

52/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49312
							output: 21
							thoughts: 17
						

Thoughts:
Here's a summary of my thought process:

**Hunting Down the Usage of `CXACRU_ALL_FILES`**

Okay, so I need to figure out where `CXACRU_ALL_FILES` is actually being used in this codebase. I'm approaching this systematically. I'll need to use some search tools to track down all instances of this. Probably a grep or a similar command-line utility will be the most efficient way to start. I'll need to consider how the code is structured - are we dealing with a monolithic application or something modular? Does the search need to be case-sensitive, or are we dealing with consistent naming conventions that make it safe to ignore casing? I'll need to keep in mind possible variations, like if it's used with prefixes or suffixes. After locating all references, I'll analyze each instance contextually. I'll note the exact location, the surrounding code, and I'll consider what's happening *around* the usage of the variable. I'll be looking for clues about its purpose, what data it's holding, and how that data is being processed, modified, or ultimately used. That's the first step.



53/2 2026/07/31 07:20 tool grepper
0m Args:
map[Expression:CXACRU_ALL_FILES]

Results:
map[Output:drivers/usb/atm/cxacru.c=435=static ssize_t adsl_config_store(struct device *dev,
--
drivers/usb/atm/cxacru.c-501-/*
drivers/usb/atm/cxacru.c:502: * All device attributes are included in CXACRU_ALL_FILES
drivers/usb/atm/cxacru.c-503- * so that the same list can be used multiple times:
--
drivers/usb/atm/cxacru.c-508- * With the last two being defined as needed in the functions
drivers/usb/atm/cxacru.c:509: * they are used in before calling CXACRU_ALL_FILES()
drivers/usb/atm/cxacru.c-510- */
drivers/usb/atm/cxacru.c:511:#define CXACRU_ALL_FILES(_action) \
drivers/usb/atm/cxacru.c-512-CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_RATE,           u32,  downstream_rate); \
--
drivers/usb/atm/cxacru.c=537=CXACRU_SET_##_action(                                        adsl_config);
drivers/usb/atm/cxacru.c-538-
drivers/usb/atm/cxacru.c:539:CXACRU_ALL_FILES(INIT);
drivers/usb/atm/cxacru.c-540-
]

54/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49981
							output: 22
							thoughts: 23
						

Thoughts:
Here's my thought process, as if I were considering this myself:

**Tracing Down a Code Dependency**

Okay, I need to figure out where this `CXACRU_ALL_FILES(CREATE)` macro, or something similar, is actually being utilized within this system. I know what that macro *should* do, but I need to see the context – how it's being invoked, what it's acting upon, and what other components are interacting with the results. Simply knowing the definition isn't enough; understanding the call stack and its relationship to other functions is the key to understanding its overall impact. I need to perform a code search. I'll need to check the codebase directly for this.



55/2 2026/07/31 07:20 tool grepper
0m Args:
map[Expression:CXACRU_ALL_FILES\(]

Results:
map[Output:drivers/usb/atm/cxacru.c=435=static ssize_t adsl_config_store(struct device *dev,
--
drivers/usb/atm/cxacru.c-508- * With the last two being defined as needed in the functions
drivers/usb/atm/cxacru.c:509: * they are used in before calling CXACRU_ALL_FILES()
drivers/usb/atm/cxacru.c-510- */
drivers/usb/atm/cxacru.c:511:#define CXACRU_ALL_FILES(_action) \
drivers/usb/atm/cxacru.c-512-CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_RATE,           u32,  downstream_rate); \
--
drivers/usb/atm/cxacru.c=537=CXACRU_SET_##_action(                                        adsl_config);
drivers/usb/atm/cxacru.c-538-
drivers/usb/atm/cxacru.c:539:CXACRU_ALL_FILES(INIT);
drivers/usb/atm/cxacru.c-540-
]

56/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50474
							output: 19
							thoughts: 28
						

Thoughts:
Here's my thought process, as if I were considering this myself:

**Investigating a Kernel Device Driver Implementation**

Okay, so I need to figure out how this specific driver is handling the sysfs interface, or perhaps is implementing its own device file creations. My initial instinct is to jump into the `cxacru.c` source file. It’s the obvious starting point. I want to look for the calls to `sysfs_create_group`. That function call is key because it indicates that this module is registering a group of attributes to be exported to the userspace via sysfs, so that's where I can configure and expose driver functionality. Alternatively, I'll be searching for any occurrences of `device_create_file`. This function would point to a custom driver implementation that directly makes device files, rather than relying on the general framework. Knowing which method is used is essential for my analysis. I anticipate, that depending on the implementation, I can quickly gain insight by investigating these functions.



57/2 2026/07/31 07:20 tool grepper
0m Args:
map[Expression:device_create_file]

Results:
map[Output:
Full output is too long, showing 500 out of 2347 lines.
Use more precise expression if possible.

Documentation/driver-api/driver-model/device.rst=107=to remove the device attributes.
Documentation/driver-api/driver-model/device.rst-108-
Documentation/driver-api/driver-model/device.rst:109:Word of warning:  While the kernel allows device_create_file() and
Documentation/driver-api/driver-model/device.rst-110-device_remove_file() to be called on a device at any time, userspace has
--
Documentation/driver-api/driver-model/device.rst=118=attributes for a device at driver probe time.  If the device driver simply
Documentation/driver-api/driver-model/device.rst:119:calls device_create_file() on the device structure passed to it, then
Documentation/driver-api/driver-model/device.rst-120-userspace will never be notified of the new attributes.
--
Documentation/filesystems/sysfs.rst=90=For example, the driver model defines struct device_attribute like::
--
Documentation/filesystems/sysfs.rst-99-
Documentation/filesystems/sysfs.rst:100:    int device_create_file(struct device *, const struct device_attribute *);
Documentation/filesystems/sysfs.rst-101-    void device_remove_file(struct device *, const struct device_attribute *);
--
Documentation/filesystems/sysfs.rst=377=Creation/Removal::
Documentation/filesystems/sysfs.rst-378-
Documentation/filesystems/sysfs.rst:379:    int device_create_file(struct device *dev, const struct device_attribute * attr);
Documentation/filesystems/sysfs.rst-380-    void device_remove_file(struct device *dev, const struct device_attribute * attr);
--
Documentation/translations/zh_CN/filesystems/sysfs.txt=103=struct device_attribute {
--
Documentation/translations/zh_CN/filesystems/sysfs.txt-110-
Documentation/translations/zh_CN/filesystems/sysfs.txt:111:int device_create_file(struct device *, const struct device_attribute *);
Documentation/translations/zh_CN/filesystems/sysfs.txt-112-void device_remove_file(struct device *, const struct device_attribute *);
--
Documentation/translations/zh_CN/filesystems/sysfs.txt=318=DEVICE_ATTR(_name, _mode, _show, _store);
--
Documentation/translations/zh_CN/filesystems/sysfs.txt-321-
Documentation/translations/zh_CN/filesystems/sysfs.txt:322:int device_create_file(struct device *dev, const struct device_attribute * attr);
Documentation/translations/zh_CN/filesystems/sysfs.txt-323-void device_remove_file(struct device *dev, const struct device_attribute * attr);
--
Documentation/translations/zh_TW/filesystems/sysfs.txt=106=struct device_attribute {
--
Documentation/translations/zh_TW/filesystems/sysfs.txt-113-
Documentation/translations/zh_TW/filesystems/sysfs.txt:114:int device_create_file(struct device *, const struct device_attribute *);
Documentation/translations/zh_TW/filesystems/sysfs.txt-115-void device_remove_file(struct device *, const struct device_attribute *);
--
Documentation/translations/zh_TW/filesystems/sysfs.txt=321=DEVICE_ATTR(_name, _mode, _show, _store);
--
Documentation/translations/zh_TW/filesystems/sysfs.txt-324-
Documentation/translations/zh_TW/filesystems/sysfs.txt:325:int device_create_file(struct device *dev, const struct device_attribute * attr);
Documentation/translations/zh_TW/filesystems/sysfs.txt-326-void device_remove_file(struct device *dev, const struct device_attribute * attr);
--
arch/arm/mach-pxa/sharpsl_pm.c=822=static int sharpsl_pm_probe(struct platform_device *pdev)
--
arch/arm/mach-pxa/sharpsl_pm.c-874-
arch/arm/mach-pxa/sharpsl_pm.c:875:	ret = device_create_file(&pdev->dev, &dev_attr_battery_percentage);
arch/arm/mach-pxa/sharpsl_pm.c:876:	ret |= device_create_file(&pdev->dev, &dev_attr_battery_voltage);
arch/arm/mach-pxa/sharpsl_pm.c-877-	if (ret != 0)
--
arch/arm64/kernel/cpufeature.c=1708=static int __init aarch32_el0_sysfs_init(void)
--
arch/arm64/kernel/cpufeature.c-1717-	if (dev_root) {
arch/arm64/kernel/cpufeature.c:1718:		ret = device_create_file(dev_root, &dev_attr_aarch32_el0);
arch/arm64/kernel/cpufeature.c-1719-		put_device(dev_root);
--
arch/arm64/kernel/mte.c=617=static int register_mte_tcf_preferred_sysctl(void)
--
arch/arm64/kernel/mte.c-625-		per_cpu(mte_tcf_preferred, cpu) = MTE_CTRL_TCF_ASYNC;
arch/arm64/kernel/mte.c:626:		device_create_file(get_cpu_device(cpu),
arch/arm64/kernel/mte.c-627-				   &dev_attr_mte_tcf_preferred);
--
arch/powerpc/kernel/eeh_sysfs.c=110=static int eeh_notify_resume_add(struct pci_dev *pdev)
--
arch/powerpc/kernel/eeh_sysfs.c-117-	if (of_property_read_bool(np, "ibm,is-open-sriov-pf"))
arch/powerpc/kernel/eeh_sysfs.c:118:		rc = device_create_file(&pdev->dev, &dev_attr_eeh_notify_resume);
arch/powerpc/kernel/eeh_sysfs.c-119-
--
arch/powerpc/kernel/eeh_sysfs.c=137=void eeh_sysfs_add_device(struct pci_dev *pdev)
--
arch/powerpc/kernel/eeh_sysfs.c-147-
arch/powerpc/kernel/eeh_sysfs.c:148:	rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode);
arch/powerpc/kernel/eeh_sysfs.c:149:	rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr);
arch/powerpc/kernel/eeh_sysfs.c:150:	rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_state);
arch/powerpc/kernel/eeh_sysfs.c-151-	rc += eeh_notify_resume_add(pdev);
--
arch/powerpc/kernel/iommu.c=162=static int fail_iommu_bus_notify(struct notifier_block *nb,
--
arch/powerpc/kernel/iommu.c-167-	if (action == BUS_NOTIFY_ADD_DEVICE) {
arch/powerpc/kernel/iommu.c:168:		if (device_create_file(dev, &dev_attr_fail_iommu))
arch/powerpc/kernel/iommu.c-169-			pr_warn("Unable to create IOMMU fault injection sysfs "
--
arch/powerpc/kernel/sysfs.c=219=static void __init sysfs_create_dscr_default(void)
--
arch/powerpc/kernel/sysfs.c-230-		if (dev_root) {
arch/powerpc/kernel/sysfs.c:231:			device_create_file(dev_root, &dev_attr_dscr_default);
arch/powerpc/kernel/sysfs.c-232-			put_device(dev_root);
--
arch/powerpc/kernel/sysfs.c=754=static void __init create_svm_file(void)
--
arch/powerpc/kernel/sysfs.c-758-	if (dev_root) {
arch/powerpc/kernel/sysfs.c:759:		device_create_file(dev_root, &dev_attr_svm);
arch/powerpc/kernel/sysfs.c-760-		put_device(dev_root);
--
arch/powerpc/kernel/sysfs.c=788=static void create_idle_purr_file(struct device *s)
--
arch/powerpc/kernel/sysfs.c-790-	if (firmware_has_feature(FW_FEATURE_LPAR))
arch/powerpc/kernel/sysfs.c:791:		device_create_file(s, &dev_attr_idle_purr);
arch/powerpc/kernel/sysfs.c-792-}
--
arch/powerpc/kernel/sysfs.c=818=static void create_idle_spurr_file(struct device *s)
--
arch/powerpc/kernel/sysfs.c-820-	if (firmware_has_feature(FW_FEATURE_LPAR))
arch/powerpc/kernel/sysfs.c:821:		device_create_file(s, &dev_attr_idle_spurr);
arch/powerpc/kernel/sysfs.c-822-}
--
arch/powerpc/kernel/sysfs.c=837=static int register_cpu_online(unsigned int cpu)
--
arch/powerpc/kernel/sysfs.c-849-	if (cpu_has_feature(CPU_FTR_SMT))
arch/powerpc/kernel/sysfs.c:850:		device_create_file(s, &dev_attr_smt_snooze_delay);
arch/powerpc/kernel/sysfs.c-851-#endif
--
arch/powerpc/kernel/sysfs.c-883-	for (i = 0; i < nattrs; i++)
arch/powerpc/kernel/sysfs.c:884:		device_create_file(s, &attrs[i]);
arch/powerpc/kernel/sysfs.c-885-
--
arch/powerpc/kernel/sysfs.c-887-		for (i = 0; i < cur_cpu_spec->num_pmcs; i++)
arch/powerpc/kernel/sysfs.c:888:			device_create_file(s, &pmc_attrs[i]);
arch/powerpc/kernel/sysfs.c-889-
--
arch/powerpc/kernel/sysfs.c-892-	if (cpu_has_feature(CPU_FTR_MMCRA))
arch/powerpc/kernel/sysfs.c:893:		device_create_file(s, &dev_attr_mmcra);
arch/powerpc/kernel/sysfs.c-894-
arch/powerpc/kernel/sysfs.c-895-	if (cpu_has_feature(CPU_FTR_ARCH_31))
arch/powerpc/kernel/sysfs.c:896:		device_create_file(s, &dev_attr_mmcr3);
arch/powerpc/kernel/sysfs.c-897-#endif /* CONFIG_PMU_SYSFS */
--
arch/powerpc/kernel/sysfs.c-901-			add_write_permission_dev_attr(&dev_attr_purr);
arch/powerpc/kernel/sysfs.c:902:		device_create_file(s, &dev_attr_purr);
arch/powerpc/kernel/sysfs.c-903-		create_idle_purr_file(s);
--
arch/powerpc/kernel/sysfs.c-906-	if (cpu_has_feature(CPU_FTR_SPURR)) {
arch/powerpc/kernel/sysfs.c:907:		device_create_file(s, &dev_attr_spurr);
arch/powerpc/kernel/sysfs.c-908-		create_idle_spurr_file(s);
--
arch/powerpc/kernel/sysfs.c-911-	if (cpu_has_feature(CPU_FTR_DSCR))
arch/powerpc/kernel/sysfs.c:912:		device_create_file(s, &dev_attr_dscr);
arch/powerpc/kernel/sysfs.c-913-
arch/powerpc/kernel/sysfs.c-914-	if (cpu_has_feature(CPU_FTR_PPCAS_ARCH_V2))
arch/powerpc/kernel/sysfs.c:915:		device_create_file(s, &dev_attr_pir);
arch/powerpc/kernel/sysfs.c-916-
--
arch/powerpc/kernel/sysfs.c-918-		!firmware_has_feature(FW_FEATURE_LPAR))
arch/powerpc/kernel/sysfs.c:919:		device_create_file(s, &dev_attr_tscr);
arch/powerpc/kernel/sysfs.c-920-#endif /* CONFIG_PPC64 */
--
arch/powerpc/kernel/sysfs.c-923-	if (PVR_VER(cur_cpu_spec->pvr_value) == PVR_VER_E6500) {
arch/powerpc/kernel/sysfs.c:924:		device_create_file(s, &dev_attr_pw20_state);
arch/powerpc/kernel/sysfs.c:925:		device_create_file(s, &dev_attr_pw20_wait_time);
arch/powerpc/kernel/sysfs.c-926-
arch/powerpc/kernel/sysfs.c:927:		device_create_file(s, &dev_attr_altivec_idle);
arch/powerpc/kernel/sysfs.c:928:		device_create_file(s, &dev_attr_altivec_idle_wait_time);
arch/powerpc/kernel/sysfs.c-929-	}
--
arch/powerpc/kernel/sysfs.c=1056=int cpu_add_dev_attr(struct device_attribute *attr)
--
arch/powerpc/kernel/sysfs.c-1062-	for_each_possible_cpu(cpu) {
arch/powerpc/kernel/sysfs.c:1063:		device_create_file(get_cpu_device(cpu), attr);
arch/powerpc/kernel/sysfs.c-1064-	}
--
arch/powerpc/kernel/sysfs.c=1151=static int __init topology_init(void)
--
arch/powerpc/kernel/sysfs.c-1172-
arch/powerpc/kernel/sysfs.c:1173:			device_create_file(&c->dev, &dev_attr_physical_id);
arch/powerpc/kernel/sysfs.c-1174-		}
--
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c=144=static int mcu_probe(struct i2c_client *client)
--
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c-172-
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c:173:	if (device_create_file(&client->dev, &dev_attr_status))
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c-174-		dev_err(&client->dev,
--
arch/powerpc/platforms/cell/spu_base.c=473=int spu_add_dev_attr(struct device_attribute *attr)
--
arch/powerpc/platforms/cell/spu_base.c-478-	list_for_each_entry(spu, &spu_full_list, full_list)
arch/powerpc/platforms/cell/spu_base.c:479:		device_create_file(&spu->dev, attr);
arch/powerpc/platforms/cell/spu_base.c-480-	mutex_unlock(&spu_full_list_mutex);
--
arch/powerpc/platforms/powernv/idle.c=1429=static int __init pnv_init_idle_states(void)
--
arch/powerpc/platforms/powernv/idle.c-1478-			if (dev_root) {
arch/powerpc/platforms/powernv/idle.c:1479:				device_create_file(dev_root,
arch/powerpc/platforms/powernv/idle.c-1480-						   &dev_attr_fastsleep_workaround_applyonce);
--
arch/powerpc/platforms/powernv/subcore.c=419=static int subcore_init(void)
--
arch/powerpc/platforms/powernv/subcore.c-445-	if (dev_root) {
arch/powerpc/platforms/powernv/subcore.c:446:		rc = device_create_file(dev_root, &dev_attr_subcores_per_core);
arch/powerpc/platforms/powernv/subcore.c-447-		put_device(dev_root);
--
arch/powerpc/platforms/pseries/cmm.c=392=static int cmm_sysfs_register(struct device *dev)
--
arch/powerpc/platforms/pseries/cmm.c-406-	for (i = 0; i < ARRAY_SIZE(cmm_attrs); i++) {
arch/powerpc/platforms/pseries/cmm.c:407:		if ((rc = device_create_file(dev, cmm_attrs[i])))
arch/powerpc/platforms/pseries/cmm.c-408-			goto fail;
--
arch/powerpc/platforms/pseries/cmm.c-412-		return 0;
arch/powerpc/platforms/pseries/cmm.c:413:	rc = device_create_file(dev, &dev_attr_simulate_loan_target_kb.attr);
arch/powerpc/platforms/pseries/cmm.c-414-	if (rc)
--
arch/powerpc/platforms/pseries/pseries_energy.c=301=static int __init pseries_energy_init(void)
--
arch/powerpc/platforms/pseries/pseries_energy.c-311-	if (dev_root) {
arch/powerpc/platforms/pseries/pseries_energy.c:312:		err = device_create_file(dev_root, &attr_cpu_activate_hint_list);
arch/powerpc/platforms/pseries/pseries_energy.c-313-		if (!err)
arch/powerpc/platforms/pseries/pseries_energy.c:314:			err = device_create_file(dev_root, &attr_cpu_deactivate_hint_list);
arch/powerpc/platforms/pseries/pseries_energy.c-315-		put_device(dev_root);
--
arch/powerpc/platforms/pseries/pseries_energy.c-321-		cpu_dev = get_cpu_device(cpu);
arch/powerpc/platforms/pseries/pseries_energy.c:322:		err = device_create_file(cpu_dev,
arch/powerpc/platforms/pseries/pseries_energy.c-323-				&attr_percpu_activate_hint);
--
arch/powerpc/platforms/pseries/pseries_energy.c-325-			break;
arch/powerpc/platforms/pseries/pseries_energy.c:326:		err = device_create_file(cpu_dev,
arch/powerpc/platforms/pseries/pseries_energy.c-327-				&attr_percpu_deactivate_hint);
--
arch/powerpc/platforms/pseries/suspend.c=146=static int pseries_suspend_sysfs_register(struct device *dev)
--
arch/powerpc/platforms/pseries/suspend.c-158-	if (dev_root) {
arch/powerpc/platforms/pseries/suspend.c:159:		rc = device_create_file(dev_root, &dev_attr_hibernate);
arch/powerpc/platforms/pseries/suspend.c-160-		put_device(dev_root);
--
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c=110=static int __init fsl_wakeup_sys_init(void)
--
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c-122-	if (dev_root) {
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c:123:		ret = device_create_file(dev_root, &mpic_attributes);
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c-124-		put_device(dev_root);
--
arch/s390/kernel/smp.c=1149=static int __init s390_smp_init(void)
--
arch/s390/kernel/smp.c-1155-	if (dev_root) {
arch/s390/kernel/smp.c:1156:		rc = device_create_file(dev_root, &dev_attr_rescan);
arch/s390/kernel/smp.c-1157-		put_device(dev_root);
--
arch/s390/kernel/topology.c=681=static int __init topology_init(void)
--
arch/s390/kernel/topology.c-696-	if (dev_root) {
arch/s390/kernel/topology.c:697:		rc = device_create_file(dev_root, &dev_attr_dispatching);
arch/s390/kernel/topology.c-698-		put_device(dev_root);
--
arch/sh/drivers/dma/dma-sysfs.c=46=static int __init dma_subsys_init(void)
--
arch/sh/drivers/dma/dma-sysfs.c-56-	if (dev_root) {
arch/sh/drivers/dma/dma-sysfs.c:57:		ret = device_create_file(dev_root, &dev_attr_devices);
arch/sh/drivers/dma/dma-sysfs.c-58-		put_device(dev_root);
--
arch/sh/drivers/dma/dma-sysfs.c=127=int dma_create_sysfs_files(struct dma_channel *chan, struct dma_info *info)
--
arch/sh/drivers/dma/dma-sysfs.c-139-
arch/sh/drivers/dma/dma-sysfs.c:140:	ret |= device_create_file(dev, &dev_attr_dev_id);
arch/sh/drivers/dma/dma-sysfs.c:141:	ret |= device_create_file(dev, &dev_attr_count);
arch/sh/drivers/dma/dma-sysfs.c:142:	ret |= device_create_file(dev, &dev_attr_mode);
arch/sh/drivers/dma/dma-sysfs.c:143:	ret |= device_create_file(dev, &dev_attr_flags);
arch/sh/drivers/dma/dma-sysfs.c:144:	ret |= device_create_file(dev, &dev_attr_config);
arch/sh/drivers/dma/dma-sysfs.c-145-
--
arch/sh/drivers/push-switch.c=43=static int switch_drv_probe(struct platform_device *pdev)
--
arch/sh/drivers/push-switch.c-68-	if (psw_info->name) {
arch/sh/drivers/push-switch.c:69:		ret = device_create_file(&pdev->dev, &dev_attr_switch);
arch/sh/drivers/push-switch.c-70-		if (unlikely(ret)) {
--
arch/sparc/kernel/sysfs.c=154=static int register_mmu_stats(struct device *s)
--
arch/sparc/kernel/sysfs.c-157-		return 0;
arch/sparc/kernel/sysfs.c:158:	device_create_file(s, &dev_attr_mmustat_enable);
arch/sparc/kernel/sysfs.c-159-	return sysfs_create_group(&s->kobj, &mmu_stat_group);
--
arch/sparc/kernel/sysfs.c=208=static int register_cpu_online(unsigned int cpu)
--
arch/sparc/kernel/sysfs.c-214-	for (i = 0; i < ARRAY_SIZE(cpu_core_attrs); i++)
arch/sparc/kernel/sysfs.c:215:		device_create_file(s, &cpu_core_attrs[i]);
arch/sparc/kernel/sysfs.c-216-
--
arch/x86/kernel/cpu/mce/core.c=2659=static int mce_device_create(unsigned int cpu)
--
arch/x86/kernel/cpu/mce/core.c-2682-	for (i = 0; mce_device_attrs[i]; i++) {
arch/x86/kernel/cpu/mce/core.c:2683:		err = device_create_file(dev, mce_device_attrs[i]);
arch/x86/kernel/cpu/mce/core.c-2684-		if (err)
--
arch/x86/kernel/cpu/mce/core.c-2687-	for (j = 0; j < per_cpu(mce_num_banks, cpu); j++) {
arch/x86/kernel/cpu/mce/core.c:2688:		err = device_create_file(dev, &mce_bank_devs[j].attr);
arch/x86/kernel/cpu/mce/core.c-2689-		if (err)
--
block/partitions/core.c=295=static struct block_device *add_partition(struct gendisk *disk, int partno,
--
block/partitions/core.c-377-	if (flags & ADDPART_FLAG_WHOLEDISK) {
block/partitions/core.c:378:		err = device_create_file(pdev, &dev_attr_whole_disk);
block/partitions/core.c-379-		if (err)
--
drivers/acpi/power.c=933=struct acpi_device *acpi_add_power_resource(acpi_handle handle)
--
drivers/acpi/power.c-981-
drivers/acpi/power.c:982:	if (!device_create_file(&device->dev, &dev_attr_resource_in_use))
drivers/acpi/power.c-983-		device->remove = acpi_power_sysfs_remove;
--
drivers/ata/sata_fsl.c=1423=static int sata_fsl_probe(struct platform_device *ofdev)
--
drivers/ata/sata_fsl.c-1500-	host_priv->intr_coalescing.attr.mode = S_IRUGO | S_IWUSR;
drivers/ata/sata_fsl.c:1501:	retval = device_create_file(host->dev, &host_priv->intr_coalescing);
drivers/ata/sata_fsl.c-1502-	if (retval)
--
drivers/ata/sata_fsl.c-1509-	host_priv->rx_watermark.attr.mode = S_IRUGO | S_IWUSR;
drivers/ata/sata_fsl.c:1510:	retval = device_create_file(host->dev, &host_priv->rx_watermark);
drivers/ata/sata_fsl.c-1511-	if (retval) {
--
drivers/atm/solos-pci.c=1348=static int atm_init(struct solos_card *card, struct device *parent)
--
drivers/atm/solos-pci.c-1364-		}
drivers/atm/solos-pci.c:1365:		if (device_create_file(&card->atmdev[i]->class_dev, &dev_attr_console))
drivers/atm/solos-pci.c-1366-			dev_err(&card->dev->dev, "Could not register console for ATM device %d\n", i);
--
drivers/base/attribute_container.c=387=attribute_container_add_attrs(struct device *classdev)
--
drivers/base/attribute_container.c-403-		sysfs_attr_init(&attrs[i]->attr);
drivers/base/attribute_container.c:404:		error = device_create_file(classdev, attrs[i]);
drivers/base/attribute_container.c-405-		if (error)
--
drivers/base/core.c=2964=static int device_add_attrs(struct device *dev)
--
drivers/base/core.c-2986-	if (device_supports_offline(dev) && !dev_offline_disabled(dev)) {
drivers/base/core.c:2987:		error = device_create_file(dev, &dev_attr_online);
drivers/base/core.c-2988-		if (error)
--
drivers/base/core.c-2992-	if (fw_devlink_flags && !fw_devlink_is_permissive() && dev->fwnode) {
drivers/base/core.c:2993:		error = device_create_file(dev, &dev_attr_waiting_for_supplier);
drivers/base/core.c-2994-		if (error)
--
drivers/base/core.c-2998-	if (dev_removable_is_valid(dev)) {
drivers/base/core.c:2999:		error = device_create_file(dev, &dev_attr_removable);
drivers/base/core.c-3000-		if (error)
--
drivers/base/core.c=3099=void devices_kset_move_last(struct device *dev)
--
drivers/base/core.c-3109-/**
drivers/base/core.c:3110: * device_create_file - create sysfs attribute file for device.
drivers/base/core.c-3111- * @dev: device.
--
drivers/base/core.c-3113- */
drivers/base/core.c:3114:int device_create_file(struct device *dev,
drivers/base/core.c-3115-		       const struct device_attribute *attr)
--
drivers/base/core.c-3130-}
drivers/base/core.c:3131:EXPORT_SYMBOL_GPL(device_create_file);
drivers/base/core.c-3132-
--
drivers/base/core.c=3639=int device_add(struct device *dev)
--
drivers/base/core.c-3703-
drivers/base/core.c:3704:	error = device_create_file(dev, &dev_attr_uevent);
drivers/base/core.c-3705-	if (error)
--
drivers/base/core.c-3722-	if (MAJOR(dev->devt)) {
drivers/base/core.c:3723:		error = device_create_file(dev, &dev_attr_dev);
drivers/base/core.c-3724-		if (error)
--
drivers/base/dd.c=483=static int driver_sysfs_add(struct device *dev)
--
drivers/base/dd.c-501-
drivers/base/dd.c:502:	ret = device_create_file(dev, &dev_attr_coredump);
drivers/base/dd.c-503-	if (!ret)
--
drivers/base/dd.c=652=static int really_probe(struct device *dev, const struct device_driver *drv)
--
drivers/base/dd.c-731-	if (dev_has_sync_state(dev)) {
drivers/base/dd.c:732:		ret = device_create_file(dev, &dev_attr_state_synced);
drivers/base/dd.c-733-		if (ret) {
--
drivers/base/topology.c=231=static int cpu_capacity_sysctl_add(unsigned int cpu)
--
drivers/base/topology.c-237-
drivers/base/topology.c:238:	device_create_file(cpu_dev, &dev_attr_cpu_capacity);
drivers/base/topology.c-239-
--
drivers/block/nbd.c=1508=static int nbd_start_device(struct nbd_device *nbd)
--
drivers/block/nbd.c-1538-
drivers/block/nbd.c:1539:	error = device_create_file(disk_to_dev(nbd->disk), &pid_attr);
drivers/block/nbd.c-1540-	if (error) {
drivers/block/nbd.c:1541:		dev_err(disk_to_dev(nbd->disk), "device_create_file failed for pid!\n");
drivers/block/nbd.c-1542-		return error;
--
drivers/block/nbd.c=2110=static int nbd_genl_connect(struct sk_buff *skb, struct genl_info *info)
--
drivers/block/nbd.c-2267-	}
drivers/block/nbd.c:2268:	ret = device_create_file(disk_to_dev(nbd->disk), &backend_attr);
drivers/block/nbd.c-2269-	if (ret) {
drivers/block/nbd.c-2270-		dev_err(disk_to_dev(nbd->disk),
drivers/block/nbd.c:2271:			"device_create_file failed for backend!\n");
drivers/block/nbd.c-2272-		goto out;
--
drivers/block/xen-blkback/xenbus.c=441=static int xenvbd_sysfs_addif(struct xenbus_device *dev)
--
drivers/block/xen-blkback/xenbus.c-444-
drivers/block/xen-blkback/xenbus.c:445:	error = device_create_file(&dev->dev, &dev_attr_physical_device);
drivers/block/xen-blkback/xenbus.c-446-	if (error)
--
drivers/block/xen-blkback/xenbus.c-448-
drivers/block/xen-blkback/xenbus.c:449:	error = device_create_file(&dev->dev, &dev_attr_mode);
drivers/block/xen-blkback/xenbus.c-450-	if (error)
--
drivers/char/ipmi/ipmi_msghandler.c=3614=int ipmi_add_smi(struct module         *owner,
--
drivers/char/ipmi/ipmi_msghandler.c-3726-	sysfs_attr_init(&intf->nr_users_devattr.attr);
drivers/char/ipmi/ipmi_msghandler.c:3727:	rv = device_create_file(intf->si_dev, &intf->nr_users_devattr);
drivers/char/ipmi/ipmi_msghandler.c-3728-	if (rv)
--
drivers/char/ipmi/ipmi_msghandler.c-3732-	sysfs_attr_init(&intf->nr_msgs_devattr.attr);
drivers/char/ipmi/ipmi_msghandler.c:3733:	rv = device_create_file(intf->si_dev, &intf->nr_msgs_devattr);
drivers/char/ipmi/ipmi_msghandler.c-3734-	if (rv) {
--
drivers/char/ipmi/ipmi_msghandler.c-3740-	sysfs_attr_init(&intf->maintenance_mode_devattr.attr);
drivers/char/ipmi/ipmi_msghandler.c:3741:	rv = device_create_file(intf->si_dev, &intf->maintenance_mode_devattr);
drivers/char/ipmi/ipmi_msghandler.c-3742-	if (rv) {
--
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c=820=static int create_sysfs_eng_grps_info(struct device *dev,
--
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c-827-	sysfs_attr_init(&eng_grp->info_attr.attr);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:828:	return device_create_file(dev, &eng_grp->info_attr);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c-829-}
--
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c=1611=int otx_cpt_init_eng_grps(struct pci_dev *pdev,
--
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c-1671-	sysfs_attr_init(&eng_grps->ucode_load_attr.attr);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1672:	ret = device_create_file(&pdev->dev,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c-1673-				 &eng_grps->ucode_load_attr);
--
drivers/dio/dio-sysfs.c=67=int dio_create_sysfs_dev_files(struct dio_dev *d)
--
drivers/dio/dio-sysfs.c-72-	/* current configuration's attributes */
drivers/dio/dio-sysfs.c:73:	if ((error = device_create_file(dev, &dev_attr_id)) ||
drivers/dio/dio-sysfs.c:74:	    (error = device_create_file(dev, &dev_attr_ipl)) ||
drivers/dio/dio-sysfs.c:75:	    (error = device_create_file(dev, &dev_attr_secid)) ||
drivers/dio/dio-sysfs.c:76:	    (error = device_create_file(dev, &dev_attr_name)) ||
drivers/dio/dio-sysfs.c:77:	    (error = device_create_file(dev, &dev_attr_resource)))
drivers/dio/dio-sysfs.c-78-		return error;
--
drivers/dma/qcom/hidma.c=660=static int hidma_sysfs_init(struct hidma_dev *dev)
--
drivers/dma/qcom/hidma.c-665-
drivers/dma/qcom/hidma.c:666:	return device_create_file(dev->ddev.dev, dev->chid_attrs);
drivers/dma/qcom/hidma.c-667-}
--
drivers/dma/qcom/hidma_mgmt_sys.c=182=static int create_sysfs_entry(struct hidma_mgmt_dev *dev, char *name, int mode)
--
drivers/dma/qcom/hidma_mgmt_sys.c-201-
drivers/dma/qcom/hidma_mgmt_sys.c:202:	return device_create_file(&dev->pdev->dev, attrs);
drivers/dma/qcom/hidma_mgmt_sys.c-203-}
--
drivers/edac/synopsys_edac.c=1115=static int edac_create_sysfs_attributes(struct mem_ctl_info *mci)
--
drivers/edac/synopsys_edac.c-1118-
drivers/edac/synopsys_edac.c:1119:	rc = device_create_file(&mci->dev, &dev_attr_inject_data_error);
drivers/edac/synopsys_edac.c-1120-	if (rc < 0)
drivers/edac/synopsys_edac.c-1121-		return rc;
drivers/edac/synopsys_edac.c:1122:	rc = device_create_file(&mci->dev, &dev_attr_inject_data_poison);
drivers/edac/synopsys_edac.c-1123-	if (rc < 0)
--
drivers/eisa/eisa-bus.c=226=static int __init eisa_register_device(struct eisa_device *edev)
--
drivers/eisa/eisa-bus.c-233-
drivers/eisa/eisa-bus.c:234:	rc = device_create_file(&edev->dev, &dev_attr_signature);
drivers/eisa/eisa-bus.c-235-	if (rc)
drivers/eisa/eisa-bus.c-236-		goto err_devreg;
drivers/eisa/eisa-bus.c:237:	rc = device_create_file(&edev->dev, &dev_attr_enabled);
drivers/eisa/eisa-bus.c-238-	if (rc)
drivers/eisa/eisa-bus.c-239-		goto err_sig;
drivers/eisa/eisa-bus.c:240:	rc = device_create_file(&edev->dev, &dev_attr_modalias);
drivers/eisa/eisa-bus.c-241-	if (rc)
--
drivers/fsi/fsi-master-aspeed.c=467=static int setup_cfam_reset(struct fsi_master_aspeed *aspeed)
--
drivers/fsi/fsi-master-aspeed.c-480-
drivers/fsi/fsi-master-aspeed.c:481:	rc = device_create_file(dev, &dev_attr_cfam_reset);
drivers/fsi/fsi-master-aspeed.c-482-	if (rc) {
--
drivers/fsi/fsi-master-ast-cf.c=1213=static int fsi_master_acf_probe(struct platform_device *pdev)
--
drivers/fsi/fsi-master-ast-cf.c-1383-
drivers/fsi/fsi-master-ast-cf.c:1384:	rc = device_create_file(&pdev->dev, &dev_attr_external_mode);
drivers/fsi/fsi-master-ast-cf.c-1385-	if (rc)
--
drivers/fsi/fsi-master-gpio.c=771=static int fsi_master_gpio_probe(struct platform_device *pdev)
--
drivers/fsi/fsi-master-gpio.c-851-
drivers/fsi/fsi-master-gpio.c:852:	rc = device_create_file(&pdev->dev, &dev_attr_external_mode);
drivers/fsi/fsi-master-gpio.c-853-	if (rc)
--
drivers/fsi/fsi-sbefifo.c=1025=static int sbefifo_probe(struct fsi_device *fsi_dev)
--
drivers/fsi/fsi-sbefifo.c-1082-
drivers/fsi/fsi-sbefifo.c:1083:	device_create_file(&sbefifo->dev, &dev_attr_timeout);
drivers/fsi/fsi-sbefifo.c-1084-
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c=1990=static int amdgpu_gfx_sysfs_xcp_init(struct amdgpu_device *adev)
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c-2005-
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:2006:	r = device_create_file(adev->dev, &dev_attr_current_compute_partition);
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c-2007-	if (r)

]

58/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62420
							output: 23
							thoughts: 39
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:

**Initial Investigation into a Device Driver Function Call**

Right, so `device_create_file` is the key function being used here. That immediately tells me this driver, presumably `cxacru.c`, is attempting to expose some kind of attribute or file interface within the sysfs hierarchy. Given my familiarity with how these systems are architected, I need to understand what specific attributes are being created and how they are handled. So, let’s go and dig a little deeper. I'm going to run a `grep` for `device_create_file` within the `drivers/usb/atm/cxacru.c` file. This should help to identify the specific file names being created and associated operations. From there, I can analyze the context surrounding these calls, and that should quickly give me the necessary information to determine what information or control interface the driver is providing to user space.



59/2 2026/07/31 07:20 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file.*cxacru]

Results:
map[Output:]

60/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62709
							output: 31
							thoughts: 21
						

Thoughts:
Here's my thought process, as if I were considering this myself:

**Investigating USB ATM Driver Device File Creation**

Okay, so I need to understand how device files are being created for USB ATM devices. My first instinct is to zero in on the function responsible for actually *creating* these files. The most likely candidate function name, based on general Linux device driver knowledge, would be something like `device_create_file`. So, let's start with a focused search. My plan is to grep the `drivers/usb/atm/` directory. That's where the USB ATM driver code should reside, and where I expect to find the relevant code responsible for file creation. I'll use grep to look for instances of `device_create_file`, which should give me a good starting point to dig further into how the file creation process is implemented within the USB ATM driver framework. This is a targeted approach - I’m looking for a specific function within a reasonably well-defined area of the kernel source.



61/2 2026/07/31 07:20 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file PathPrefix:drivers/usb/atm/]

Results:
map[Output:]

62/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62988
							output: 32
							thoughts: 33
						

Thoughts:
Okay, here's my take on those thoughts, framed for an expert like myself:

**Delving into Sysfs Attribute Creation**

Hmm, interesting. I'm hitting a point where I need to understand the mechanics of how these `sysfs` attributes are actually brought into existence. It's not always immediately obvious, and that underlying structure can be crucial for debugging or modifying driver behavior.

Right, so to get a handle on this, let's see how this is done in a sample driver. I think USB ATM would be a great place to start, so let's use a `grep` for `sysfs_create_group`. I'll run this from the `drivers/usb/atm/` directory. That should give me a specific case to look at, probably a good example of how to make sysfs attributes for the USB ATM device. And that ought to give a good starting point to understanding what's going on!



63/2 2026/07/31 07:20 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:sysfs_create_group PathPrefix:drivers/usb/atm/]

Results:
map[Output:]

64/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 63266
							output: 64
							thoughts: 41
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue:

**Investigating CXACRU Driver Sysfs Interaction**

Right, let's dive into the `cxacru.c` driver in the USB ATM subsystem. I need to understand how this driver interacts with sysfs. Specifically, I want to see how it exposes its functionality and device information to userspace. My first instinct is to look for those key sysfs creation functions. I'll start with a `grep` through the code, targeting functions that create device files, like `device_create_file`. Then I'll expand that to check for `sysfs_create` calls, as that's a common method for creating attributes directly under the device's directory in sysfs. And I'll be sure to hunt for any usage of `device_add_groups` too; that can be critical for defining the attribute groupings visible to the user. Hopefully, this should quickly illuminate how the driver presents itself to the system and lets me pinpoint where its control mechanisms might be.



65/2 2026/07/31 07:20 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file|sysfs_create|device_add_groups|device_create_bin_file|sysfs_create_bin_file PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:]

66/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 63611
							output: 36
							thoughts: 22
						

Thoughts:
Here's a summary of my thought process:

**Diving Back into the `cxacru.c` Code**

Okay, I'm going to revisit that `cxacru.c` file. Specifically, I need to use `grep` again, and this time, I'm searching for `device_create_file`. I remember we were looking at some device file creation issues related to this module earlier, and I need to refresh my memory and see if I can spot anything I missed or if I can confirm a previous line of thought. Let's see what pops up this time. I suspect I might find the context I need surrounding device file permissions or naming conflicts.



67/2 2026/07/31 07:20 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:]

68/2 2026/07/31 07:20 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 63827
							output: 25
							thoughts: 26
						

Thoughts:
Okay, let me think this through.

**Digging into Attribute Creation**

Hmm, so I need to understand this process more deeply. Specifically, I'm trying to figure out the actual mechanism of how these attributes get created. It's not immediately obvious. Okay, let's start with `CXACRU_ALL_FILES(INIT)`. That seems like a logical entry point, particularly the initialization stage. Let's see what's happening there and unravel this mystery. I need to understand this attribute creation process.



69/2 2026/07/31 07:21 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[Name:CXACRU_ALL_FILES]

Results:
map[SourceCode: SourceFile:]

70/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 64010
							output: 23
							thoughts: 12
						

Thoughts:
Okay, let's dive into this `cxacru_bind` function. I'm already anticipating some of the usual suspects – likely handling context setup, resource binding, possibly some parameter validation, and then the actual binding operation itself. Given the "cxacru" prefix, I'd wager it's related to some context-aware or cross-context resource management. I'm expecting some sort of handle or identifier to be passed in for the resource, another for the context, and maybe some flags or options to control the bind behavior. I'll need to pay close attention to error handling – are there specific error codes for different failure scenarios? Are they documented clearly? Are there checks for null pointers or invalid handles? I'll be particularly interested in how it handles concurrency and thread safety if this is in a multi-threaded environment. I'll also be on the lookout for memory management aspects, like is it the caller's responsibility to manage the memory associated with what's being bound or is the function doing some internal allocation? Finally, I'll need to check the return value, is it a success or a fail code, and I need to determine how the failure is reported back.



71/2 2026/07/31 07:21 tool codesearch-definition-source
0m Args:
map[Name:cxacru_bind]

Results:
map[SourceCode:1120:	static int cxacru_bind(struct usbatm_data *usbatm_instance,
1121:			       struct usb_interface *intf, const struct usb_device_id *id)
1122:	{
1123:		struct cxacru_data *instance;
1124:		struct usb_device *usb_dev = interface_to_usbdev(intf);
1125:		struct usb_host_endpoint *cmd_ep = usb_dev->ep_in[CXACRU_EP_CMD];
1126:		static const u8 ep_addrs[] = {
1127:			CXACRU_EP_CMD + USB_DIR_IN,
1128:			CXACRU_EP_CMD + USB_DIR_OUT,
1129:			0};
1130:		int ret;
1131:	
1132:		/* instance init */
1133:		instance = kzalloc_obj(*instance);
1134:		if (!instance)
1135:			return -ENOMEM;
1136:	
1137:		instance->usbatm = usbatm_instance;
1138:		instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
1139:	
1140:		mutex_init(&instance->poll_state_serialize);
1141:		instance->poll_state = CXPOLL_STOPPED;
1142:		instance->line_status = -1;
1143:		instance->adsl_status = -1;
1144:	
1145:		mutex_init(&instance->adsl_state_serialize);
1146:	
1147:		instance->rcv_buf = (u8 *) __get_free_page(GFP_KERNEL);
1148:		if (!instance->rcv_buf) {
1149:			usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_buf\n");
1150:			ret = -ENOMEM;
1151:			goto fail;
1152:		}
1153:		instance->snd_buf = (u8 *) __get_free_page(GFP_KERNEL);
1154:		if (!instance->snd_buf) {
1155:			usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_buf\n");
1156:			ret = -ENOMEM;
1157:			goto fail;
1158:		}
1159:		instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
1160:		if (!instance->rcv_urb) {
1161:			ret = -ENOMEM;
1162:			goto fail;
1163:		}
1164:		instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
1165:		if (!instance->snd_urb) {
1166:			ret = -ENOMEM;
1167:			goto fail;
1168:		}
1169:	
1170:		if (!cmd_ep) {
1171:			usb_dbg(usbatm_instance, "cxacru_bind: no command endpoint\n");
1172:			ret = -ENODEV;
1173:			goto fail;
1174:		}
1175:	
1176:		if (usb_endpoint_xfer_int(&cmd_ep->desc))
1177:			ret = usb_check_int_endpoints(intf, ep_addrs);
1178:		else
1179:			ret = usb_check_bulk_endpoints(intf, ep_addrs);
1180:	
1181:		if (!ret) {
1182:			usb_err(usbatm_instance, "cxacru_bind: interface has incorrect endpoints\n");
1183:			ret = -ENODEV;
1184:			goto fail;
1185:		}
1186:	
1187:		if ((cmd_ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
1188:				== USB_ENDPOINT_XFER_INT) {
1189:			usb_fill_int_urb(instance->rcv_urb,
1190:				usb_dev, usb_rcvintpipe(usb_dev, CXACRU_EP_CMD),
1191:				instance->rcv_buf, PAGE_SIZE,
1192:				cxacru_blocking_completion, &instance->rcv_done, 1);
1193:	
1194:			usb_fill_int_urb(instance->snd_urb,
1195:				usb_dev, usb_sndintpipe(usb_dev, CXACRU_EP_CMD),
1196:				instance->snd_buf, PAGE_SIZE,
1197:				cxacru_blocking_completion, &instance->snd_done, 4);
1198:		} else {
1199:			usb_fill_bulk_urb(instance->rcv_urb,
1200:				usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_CMD),
1201:				instance->rcv_buf, PAGE_SIZE,
1202:				cxacru_blocking_completion, &instance->rcv_done);
1203:	
1204:			usb_fill_bulk_urb(instance->snd_urb,
1205:				usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD),
1206:				instance->snd_buf, PAGE_SIZE,
1207:				cxacru_blocking_completion, &instance->snd_done);
1208:		}
1209:	
1210:		mutex_init(&instance->cm_serialize);
1211:	
1212:		INIT_DELAYED_WORK(&instance->poll_work, cxacru_poll_status);
1213:	
1214:		usbatm_instance->driver_data = instance;
1215:	
1216:		usbatm_instance->flags = (cxacru_card_status(instance) ? 0 : UDSL_SKIP_HEAVY_INIT);
1217:	
1218:		return 0;
1219:	
1220:	 fail:
1221:		free_page((unsigned long) instance->snd_buf);
1222:		free_page((unsigned long) instance->rcv_buf);
1223:		usb_free_urb(instance->snd_urb);
1224:		usb_free_urb(instance->rcv_urb);
1225:		kfree(instance);
1226:	
1227:		return ret;
1228:	}
 SourceFile:drivers/usb/atm/cxacru.c]

72/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 66134
							output: 25
							thoughts: 32
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience, presented in the first person:

**Digging into the `cxacru` Driver**

Right, so `cxacru_bind` isn't the function that's responsible for creating those crucial sysfs attributes. That's a bit of a head-scratcher, or at least a slight deviation from my expectation based on prior experience with this type of driver. Therefore, my immediate next step is to examine `cxacru_usb_probe`. It seems logical that the device probing routine would handle initialization tasks and subsequently, the necessary sysfs attribute creation. I need to understand *how* it's constructing the device representation and exposing its state to userspace. I'll focus on what it does with the USB device struct and any calls to related infrastructure for creating the device model.



73/2 2026/07/31 07:21 tool codesearch-definition-source
0m Args:
map[Name:cxacru_usb_probe]

Results:
map[SourceCode:1352:	static int cxacru_usb_probe(struct usb_interface *intf,
1353:			const struct usb_device_id *id)
1354:	{
1355:		struct usb_device *usb_dev = interface_to_usbdev(intf);
1356:		char buf[15];
1357:	
1358:		/* Avoid ADSL routers (cx82310_eth).
1359:		 * Abort if bDeviceClass is 0xff and iProduct is "USB NET CARD".
1360:		 */
1361:		if (usb_dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC
1362:				&& usb_string(usb_dev, usb_dev->descriptor.iProduct,
1363:					buf, sizeof(buf)) > 0) {
1364:			if (!strcmp(buf, "USB NET CARD")) {
1365:				dev_info(&intf->dev, "ignoring cx82310_eth device\n");
1366:				return -ENODEV;
1367:			}
1368:		}
1369:	
1370:		return usbatm_usb_probe(intf, id, &cxacru_driver);
1371:	}
 SourceFile:drivers/usb/atm/cxacru.c]

74/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 66752
							output: 23
							thoughts: 11
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing the `cxacru_driver`**

Alright, `cxacru_driver`. That name immediately triggers a mental checklist.  Given my expertise, "cxacru" likely indicates some kind of crucial component related to... well, context and crucial elements. I’m thinking this driver must be responsible for handling the interaction with a critical section of the system. I have to quickly understand its role in context of other system drivers and its interfaces. Specifically I must quickly determine:

*   What specific hardware or software functionality does it drive?
*   What contexts are important for this driver?
*   Are there error conditions that need specific consideration?
*   How does it handle concurrency and synchronization?
*   What existing documentation and design specifications do I need to review?
*   What test plans and test data exist for this?

I need to quickly assess its stability, security, and performance characteristics. I’m looking for any immediate red flags, like potential race conditions or memory leaks that are common in driver development.  The first step is to quickly identify the key APIs and how this driver is exposed to the rest of the system. I want to see how this driver interacts with other drivers or core system components. Given the name, I suspect this is something core or at least critically important. Time to get to work.



75/2 2026/07/31 07:21 tool codesearch-definition-source
0m Args:
map[Name:cxacru_driver]

Results:
map[SourceCode:1340:	static struct usbatm_driver cxacru_driver = {
1341:		.driver_name	= cxacru_driver_name,
1342:		.bind		= cxacru_bind,
1343:		.heavy_init	= cxacru_heavy_init,
1344:		.unbind		= cxacru_unbind,
1345:		.atm_start	= cxacru_atm_start,
1346:		.bulk_in	= CXACRU_EP_DATA,
1347:		.bulk_out	= CXACRU_EP_DATA,
1348:		.rx_padding	= 3,
1349:		.tx_padding	= 11,
1350:	};
 SourceFile:drivers/usb/atm/cxacru.c]

76/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67325
							output: 32
							thoughts: 31
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Investigating sysfs Attribute Creation in USB ATM Drivers**

Alright, so I'm thinking about the sysfs attributes and where exactly they're being cooked up. My initial hunch, given the context, is that they're likely being created within the USB ATM driver code. That's usually the place where these things happen.

To get a clearer picture of the code flow, the next logical step for me is to pinpoint the function call that's at the heart of this process: `sysfs_create_group`. That's the core sysfs API I'd expect to see in play here. To narrow things down quickly I'll use `grep` and search within the relevant directory. Specifically, I'll focus my `grep` query on `drivers/usb/atm/`. That’s where I'd expect to find the code that's both USB and ATM specific. I'm expecting to find the key calls that manage how attributes are defined, set up, and exposed. Let's see what that search turns up. From there, I'll be able to trace back to where the attributes themselves are defined, and more specifically, where the `sysfs_create_group` function is invoked.



77/2 2026/07/31 07:21 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:sysfs_create_group PathPrefix:drivers/usb/atm/]

Results:
map[Output:]

78/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67678
							output: 31
							thoughts: 21
						

Thoughts:
Here's my thought process, as if I were considering this myself:

**Investigating USB ATM Driver Device File Creation**

Okay, so I need to understand how device files are being created for USB ATM devices. My first instinct is to zero in on the function responsible for actually *creating* these files. The most likely candidate function name, based on general Linux device driver knowledge, would be something like `device_create_file`. So, let's start with a focused search. My plan is to grep the `drivers/usb/atm/` directory. That's where the USB ATM driver code should reside, and where I expect to find the relevant code responsible for file creation. I'll use grep to look for instances of `device_create_file`, which should give me a good starting point to dig further into how the file creation process is implemented within the USB ATM driver framework. This is a targeted approach - I’m looking for a specific function within a reasonably well-defined area of the kernel source.



79/2 2026/07/31 07:21 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file PathPrefix:drivers/usb/atm/]

Results:
map[Output:]

80/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67957
							output: 31
							thoughts: 21
						

Thoughts:
Okay, here's my thought process summarized from the prompt, as if these are my thoughts as an expert:

**Investigating USB ATM Driver Initialization**

Alright, time to dig into the USB ATM driver code. I'm specifically interested in understanding how these devices are grouped, which is often a key aspect of how they're managed within the kernel. The goal is to figure out if there is anything special about the driver.

So, I'm going to kick things off by using `grep`. I want to search through the `drivers/usb/atm/` directory for the string `device_add_group`. This function is often used to add devices to logical groups, and it's a good place to start looking for device management strategies. Hopefully this should turn up some interesting information about how the driver handles device connections.



81/2 2026/07/31 07:21 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_add_group PathPrefix:drivers/usb/atm/]

Results:
map[Output:]

82/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 68197
							output: 25
							thoughts: 32
						

Thoughts:
Okay, here's my interpretation of those thoughts, presented as a first-person expert summary:

**Digging into the Creation Process**

Alright, so we're talking about the initialization and startup sequence, and the question that pops into my head is a fundamental one: how are these things *actually* created? I need to understand the mechanism. No hand-waving here. I'm going to get into the nitty-gritty.

My instinct tells me that the core of this initialization is likely handled by either `cxacru_atm_start` or `cxacru_heavy_init`, or maybe even both in some kind of collaborative role. I'm going to start by diving into the code for those functions, right away. That's the logical place to look for the creation/initialization.



83/2 2026/07/31 07:21 tool codesearch-definition-source
0m Args:
map[Name:cxacru_heavy_init]

Results:
map[SourceCode:1004:	static int cxacru_heavy_init(struct usbatm_data *usbatm_instance,
1005:				     struct usb_interface *usb_intf)
1006:	{
1007:		const struct firmware *fw, *bp;
1008:		struct cxacru_data *instance = usbatm_instance->driver_data;
1009:		struct usbatm_data *usbatm = instance->usbatm;
1010:		struct usb_device *usb_dev = usbatm->usb_dev;
1011:		__le16 signature[] = { usb_dev->descriptor.idVendor,
1012:				       usb_dev->descriptor.idProduct };
1013:		__le32 val;
1014:		int ret;
1015:	
1016:		ret = cxacru_find_firmware(instance, "fw", &fw);
1017:		if (ret) {
1018:			usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n");
1019:			return ret;
1020:		}
1021:	
1022:		if (instance->modem_type->boot_rom_patch) {
1023:			ret = cxacru_find_firmware(instance, "bp", &bp);
1024:			if (ret) {
1025:				usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n");
1026:				release_firmware(fw);
1027:				return ret;
1028:			}
1029:		}
1030:	
1031:		/* FirmwarePllFClkValue */
1032:		val = cpu_to_le32(instance->modem_type->pll_f_clk);
1033:		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4);
1034:		if (ret) {
1035:			usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret);
1036:			goto done;
1037:		}
1038:	
1039:		/* FirmwarePllBClkValue */
1040:		val = cpu_to_le32(instance->modem_type->pll_b_clk);
1041:		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4);
1042:		if (ret) {
1043:			usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret);
1044:			goto done;
1045:		}
1046:	
1047:		/* Enable SDRAM */
1048:		val = cpu_to_le32(SDRAM_ENA);
1049:		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4);
1050:		if (ret) {
1051:			usb_err(usbatm, "Enable SDRAM failed: %d\n", ret);
1052:			goto done;
1053:		}
1054:	
1055:		/* Firmware */
1056:		usb_info(usbatm, "loading firmware\n");
1057:		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size);
1058:		if (ret) {
1059:			usb_err(usbatm, "Firmware upload failed: %d\n", ret);
1060:			goto done;
1061:		}
1062:	
1063:		/* Boot ROM patch */
1064:		if (instance->modem_type->boot_rom_patch) {
1065:			usb_info(usbatm, "loading boot ROM patch\n");
1066:			ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size);
1067:			if (ret) {
1068:				usb_err(usbatm, "Boot ROM patching failed: %d\n", ret);
1069:				goto done;
1070:			}
1071:		}
1072:	
1073:		/* Signature */
1074:		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4);
1075:		if (ret) {
1076:			usb_err(usbatm, "Signature storing failed: %d\n", ret);
1077:			goto done;
1078:		}
1079:	
1080:		usb_info(usbatm, "starting device\n");
1081:		if (instance->modem_type->boot_rom_patch) {
1082:			val = cpu_to_le32(BR_ADDR);
1083:			ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_STACK_ADDR, (u8 *) &val, 4);
1084:		} else {
1085:			ret = cxacru_fw(usb_dev, FW_GOTO_MEM, 0x0, 0x0, FW_ADDR, NULL, 0);
1086:		}
1087:		if (ret) {
1088:			usb_err(usbatm, "Passing control to firmware failed: %d\n", ret);
1089:			goto done;
1090:		}
1091:	
1092:		/* Delay to allow firmware to start up. */
1093:		msleep_interruptible(1000);
1094:	
1095:		usb_clear_halt(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD));
1096:		usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_CMD));
1097:		usb_clear_halt(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_DATA));
1098:		usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_DATA));
1099:	
1100:		ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
1101:		if (ret < 0) {
1102:			usb_err(usbatm, "modem failed to initialize: %d\n", ret);
1103:			goto done;
1104:		}
1105:	
1106:	done:
1107:		if (instance->modem_type->boot_rom_patch)
1108:			release_firmware(bp);
1109:		release_firmware(fw);
1110:	
1111:		ret = cxacru_card_status(instance);
1112:		if (ret)
1113:			usb_dbg(usbatm_instance, "modem initialisation failed\n");
1114:		else
1115:			usb_dbg(usbatm_instance, "done setting up the modem\n");
1116:	
1117:		return ret;
1118:	}
 SourceFile:drivers/usb/atm/cxacru.c]

84/2 2026/07/31 07:21 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70575
							output: 36
							thoughts: 49
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience:

**Analyzing Potential USB ATM Driver Initialization**

Alright, my brain just flagged those macros: `CXACRU_ALL_FILES(INIT)` and `CXACRU_ALL_FILES(CREATE)`. Immediately, I'm thinking they are likely related to initialization and device file creation, presumably within the USB ATM (Asynchronous Transfer Mode) driver context. Given that context, I'm assuming that the `CXACRU_ALL_FILES` macro is doing the heavy lifting to call the kernel's file creation functions from within the `usbatm.c` driver code, for the creation of special device files that are associated with the driver.

My instinct is to jump directly to the kernel code now. So, I need to check the exact function that is being used when device file are created in `usbatm.c`. Let's use `grep` and search for instances of `device_create_file` within that file. That should give me the precise point where the device files are created, and by extension, clarify what the two macros are doing. The calls to the `CXACRU_ALL_FILES` macros are likely calling a generic create or init function, with parameters that the called `device_create_file` function uses to register the device files in the kernel's virtual filesystem.



85/2 2026/07/31 07:22 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:device_create_file PathPrefix:drivers/usb/atm/usbatm.c]

Results:
map[Output:]

86/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70966
							output: 37
							thoughts: 11
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:

**Decoding that `sysfs_create_group` Call**

Okay, hold on. `sysfs_create_group`... that rings a bell, but let me quickly re-contextualize this. We're talking about the system file system, specifically the structure of the `/sys` directory, right?  My initial thought is to figure out what's trying to be organized here.  What hardware or software component are they trying to represent in sysfs? Are we dealing with a new device driver or some kind of management interface? Understanding the context is key to understanding the purpose of creating a group within sysfs. Is it an existing hierarchy? Or a new one.  I'm trying to mentally map out where this new group will slot in. Is this related to resource management? Power control? Debugging information? I'm already anticipating having to dig into the associated structure definitions. Now, I have to figure out the actual arguments to that function call and the structure behind `sysfs_create_group`. I'll be looking to decode what kind of attributes and files they intend to group. This is where the devil's in the details.



87/2 2026/07/31 07:22 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:sysfs_create_group PathPrefix:drivers/usb/atm/usbatm.c]

Results:
map[Output:]

88/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71294
							output: 25
							thoughts: 39
						

Thoughts:
Okay, here's my interpretation of that thought process, from an expert's perspective:

**Diving into the cxacru.c Codebase**

Hmm, `device_create_file` popping up... that's interesting. I know that function, it's used for creating device nodes in the filesystem. Wondering what it's doing in `cxacru.c`... It's not immediately obvious, so I'm going to jump straight to the source. Specifically, I need to see how it's being used. Let me go to line 539 in `cxacru.c`. That should give me the immediate context. Hopefully, the surrounding code will shed some light on the reason for the call. I'm expecting some kind of device setup or perhaps some debugging output. Let's see...



89/2 2026/07/31 07:22 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[Name:CXACRU_ALL_FILES]

Results:
map[SourceCode: SourceFile:]

90/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71557
							output: 39
							thoughts: 18
						

Thoughts:
Here's my summary, as though I'm processing this request:

**Analyzing the `cxacru.c` file around line 539**

Okay, the prompt is clear: I need to delve into `cxacru.c` specifically around line 539. This implies the user is asking me to focus on a particular section of the code, so that's where my attention will be. I'll need to understand the surrounding code context to interpret what's happening at that line. Based on the file name, `cxacru.c`, it's probably related to a critical path, driver interaction, or possibly a configuration component. Let's get to work!



91/2 2026/07/31 07:22 tool read-file
0m Args:
map[File:drivers/usb/atm/cxacru.c FirstLine:520 LineCount:50]

Results:
map[Contents: 520:	CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_ATTENUATION,    dB,   downstream_attenuation); \
 521:	CXACRU_ATTR_##_action(CXINF_TRANSMITTER_POWER,         s8,   transmitter_power); \
 522:	CXACRU_ATTR_##_action(CXINF_UPSTREAM_BITS_PER_FRAME,   u32,  upstream_bits_per_frame); \
 523:	CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_BITS_PER_FRAME, u32,  downstream_bits_per_frame); \
 524:	CXACRU_ATTR_##_action(CXINF_STARTUP_ATTEMPTS,          u32,  startup_attempts); \
 525:	CXACRU_ATTR_##_action(CXINF_UPSTREAM_CRC_ERRORS,       u32,  upstream_crc_errors); \
 526:	CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_CRC_ERRORS,     u32,  downstream_crc_errors); \
 527:	CXACRU_ATTR_##_action(CXINF_UPSTREAM_FEC_ERRORS,       u32,  upstream_fec_errors); \
 528:	CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_FEC_ERRORS,     u32,  downstream_fec_errors); \
 529:	CXACRU_ATTR_##_action(CXINF_UPSTREAM_HEC_ERRORS,       u32,  upstream_hec_errors); \
 530:	CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_HEC_ERRORS,     u32,  downstream_hec_errors); \
 531:	CXACRU_ATTR_##_action(CXINF_LINE_STARTABLE,            bool, line_startable); \
 532:	CXACRU_ATTR_##_action(CXINF_MODULATION,                MODU, modulation); \
 533:	CXACRU_ATTR_##_action(CXINF_ADSL_HEADEND,              u32,  adsl_headend); \
 534:	CXACRU_ATTR_##_action(CXINF_ADSL_HEADEND_ENVIRONMENT,  u32,  adsl_headend_environment); \
 535:	CXACRU_ATTR_##_action(CXINF_CONTROLLER_VERSION,        u32,  adsl_controller_version); \
 536:	CXACRU_CMD_##_action(                                        adsl_state); \
 537:	CXACRU_SET_##_action(                                        adsl_config);
 538:	
 539:	CXACRU_ALL_FILES(INIT);
 540:	
 541:	static struct attribute *cxacru_attrs[] = {
 542:		&dev_attr_adsl_config.attr,
 543:		&dev_attr_adsl_state.attr,
 544:		&dev_attr_adsl_controller_version.attr,
 545:		&dev_attr_adsl_headend_environment.attr,
 546:		&dev_attr_adsl_headend.attr,
 547:		&dev_attr_modulation.attr,
 548:		&dev_attr_line_startable.attr,
 549:		&dev_attr_downstream_hec_errors.attr,
 550:		&dev_attr_upstream_hec_errors.attr,
 551:		&dev_attr_downstream_fec_errors.attr,
 552:		&dev_attr_upstream_fec_errors.attr,
 553:		&dev_attr_downstream_crc_errors.attr,
 554:		&dev_attr_upstream_crc_errors.attr,
 555:		&dev_attr_startup_attempts.attr,
 556:		&dev_attr_downstream_bits_per_frame.attr,
 557:		&dev_attr_upstream_bits_per_frame.attr,
 558:		&dev_attr_transmitter_power.attr,
 559:		&dev_attr_downstream_attenuation.attr,
 560:		&dev_attr_upstream_attenuation.attr,
 561:		&dev_attr_downstream_snr_margin.attr,
 562:		&dev_attr_upstream_snr_margin.attr,
 563:		&dev_attr_mac_address.attr,
 564:		&dev_attr_line_status.attr,
 565:		&dev_attr_link_status.attr,
 566:		&dev_attr_upstream_rate.attr,
 567:		&dev_attr_downstream_rate.attr,
 568:		NULL,
 569:	};
]

92/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73049
							output: 23
							thoughts: 22
						

Thoughts:
Here's a summary of my thought process:

**Diving into the Code: Understanding `cxacru_attrs`**

Okay, so `cxacru_attrs` is defined. That's good; it's a known quantity. Now my immediate focus shifts to understanding its role. The key question is always: where and how is this thing *used*? That's where the real insight lies. I need to trace its usage, see what functions or modules are referencing it, and ideally, what manipulations are being performed. Finding the call sites will be the next logical step. The pattern is always the same: define something, then immediately understand its scope by tracing its use. That's how I can build a mental model of how this piece fits into the overall architecture. I anticipate it will be relatively straightforward to track down.



93/2 2026/07/31 07:22 tool codesearch-find-references
0m Args:
map[Name:cxacru_attrs]

Results:
map[References:<nil> TruncatedOutput:false]

94/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73287
							output: 39
							thoughts: 10
						

Thoughts:
Okay, I'm ready. Here's a summary as if I'm processing the provided text, assuming the user is an expert.

**Initial Considerations and Reading Strategy**

Alright, before I dive in, I need to make sure I grasp the complete picture. It's crucial to resist the urge to jump to conclusions based on an initial skim. Therefore, I need to be diligent about carefully reading the lines that follow. Context is everything, and a quick glance is just not going to cut it. My expertise requires a nuanced approach, and that starts with thoroughness.



95/2 2026/07/31 07:22 tool read-file
0m Args:
map[File:drivers/usb/atm/cxacru.c FirstLine:570 LineCount:50]

Results:
map[Contents: 570:	ATTRIBUTE_GROUPS(cxacru);
 571:	
 572:	/* the following three functions are stolen from drivers/usb/core/message.c */
 573:	static void cxacru_blocking_completion(struct urb *urb)
 574:	{
 575:		complete(urb->context);
 576:	}
 577:	
 578:	struct cxacru_timer {
 579:		struct timer_list timer;
 580:		struct urb *urb;
 581:	};
 582:	
 583:	static void cxacru_timeout_kill(struct timer_list *t)
 584:	{
 585:		struct cxacru_timer *timer = timer_container_of(timer, t, timer);
 586:	
 587:		usb_unlink_urb(timer->urb);
 588:	}
 589:	
 590:	static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 591:					 int *actual_length)
 592:	{
 593:		struct cxacru_timer timer = {
 594:			.urb = urb,
 595:		};
 596:	
 597:		timer_setup_on_stack(&timer.timer, cxacru_timeout_kill, 0);
 598:		mod_timer(&timer.timer, jiffies + msecs_to_jiffies(CMD_TIMEOUT));
 599:		wait_for_completion(done);
 600:		timer_delete_sync(&timer.timer);
 601:		timer_destroy_on_stack(&timer.timer);
 602:	
 603:		if (actual_length)
 604:			*actual_length = urb->actual_length;
 605:		return urb->status; /* must read status after completion */
 606:	}
 607:	
 608:	static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 609:			     u8 *wdata, int wsize, u8 *rdata, int rsize)
 610:	{
 611:		int ret, actlen;
 612:		int offb, offd;
 613:		const int stride = CMD_PACKET_SIZE - 4;
 614:		u8 *wbuf = instance->snd_buf;
 615:		u8 *rbuf = instance->rcv_buf;
 616:		int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 617:		int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 618:	
 619:		if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
]

96/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74265
							output: 23
							thoughts: 35
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing the cxacru Attribute Group**

Right, so `ATTRIBUTE_GROUPS(cxacru);` immediately instantiates a new set of attribute groups, which I'm calling `cxacru_groups`. My initial question is always, "Where does this come into play?" I need to understand the lifecycle of `cxacru_groups`. Is it used directly within a calculation, passed as a parameter to a function, or perhaps referenced in a configuration file? The usage patterns determine its significance, performance characteristics, and potential for optimization. I'm going to start tracing references to understand the scope and purpose of this newly created object. Understanding where it's used is the key to understanding its overall impact on the system.



97/2 2026/07/31 07:22 tool codesearch-find-references
0m Args:
map[Name:cxacru_groups]

Results:
map[References:<nil> TruncatedOutput:false]

98/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74510
							output: 36
							thoughts: 37
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue:

**Investigating the `cxacru_groups` Connection**

Alright, hang on a minute. It's dawning on me – `ATTRIBUTE_GROUPS`… that’s the definition that's *actually* responsible for spinning up these `cxacru_groups`. I need to solidify that in my mind, make sure I understand the chain of command, so to speak.

Right, so to trace this, I need to see *where* this `cxacru_groups` thing is being used, how it's being interacted with within the core code. Let's do a quick grep. The obvious place to start is `cxacru.c`. That's where I would expect all the main data handling to take place, the guts of the process. Time to see what that reveals.



99/2 2026/07/31 07:22 tool grepper
0m Args:
map[Expression:cxacru_groups PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:drivers/usb/atm/cxacru.c=1373=static struct usb_driver cxacru_usb_driver = {
--
drivers/usb/atm/cxacru.c-1377-	.id_table	= cxacru_usb_ids,
drivers/usb/atm/cxacru.c:1378:	.dev_groups	= cxacru_groups,
drivers/usb/atm/cxacru.c-1379-};
]

100/2 2026/07/31 07:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74905
							output: 750
							thoughts: 1695
						

Thoughts:
**Debugging the `URB submitted while active` USB Driver Bug**

Okay, so I've been digging into this `URB submitted while active` warning in the `cxacru` driver. It seems the issue is rooted in how `cxacru_cm` handles errors after submitting URBs. Let me break it down. The USB core creates the sysfs attributes when the device is probed.

The problem arises in `cxacru_cm()` when there's an issue with the `snd_urb`. The code submits both a `rcv_urb` and a `snd_urb`. If `snd_urb` fails (maybe due to a disconnect, stall, or other connection issues), `cxacru_cm` jumps to the `fail:` label and returns an error. The crucial flaw is that it doesn't kill the `rcv_urb` in this failure path. So, `rcv_urb` is left active.

The next time `cxacru_cm` is called (like from `cxacru_poll_status()` or `cxacru_atm_start()`), it tries to submit `rcv_urb` again, triggering the warning because it's already active.

I need to make sure I kill the `rcv_urb` in `fail:`. The fix is pretty straightforward: add `usb_kill_urb(instance->rcv_urb)` in the `fail:` path. It's safe to call `usb_kill_urb` even if the URB isn't active.

```c
fail:
	if (ret < 0)
		usb_kill_urb(instance->rcv_urb);
	mutex_unlock(&instance->cm_serialize);
err:
	return ret;
```

I checked the fix. It's safe and correct.

I am looking at the crash log again. This is exactly what happened: `cxacru_atm_start()` calls `cxacru_cm()`. The `snd_urb` fails with `-104` (ECONNRESET), the error is returned. The driver later calls `cxacru_poll_status` which calls `cxacru_cm()` again and `rcv_urb` is attempted to be resubmitted. This triggers the warning.

I can now formulate the response.



101/1 2026/07/31 07:23 agent history-explorer
6m Model:
best-expensive

Instruction:
You are an experienced Linux kernel developer researching prior art for fixing a kernel bug.
You are given a bug explanation. This explanation details the root cause of the bug resulting
from debugging, but does not provide the final fix strategy. Your goal is to explore how
similar bugs were fixed in the past in the same subsystem or files.

CRITICAL: Do NOT attempt to debug the issue further or write a patch for it yourself.
Your ONLY objective is to research and provide the necessary historical context.

Use the git-log tool with the Since parameter set to "3 years" to focus on recent history.
Search for commits that address issues with similar root causes (e.g. similar missing locks,
incorrect refcounting, or similar error path bugs) in the affected files.

Your final reply must summarize your findings: what idioms, locking rules, or common patterns
should be followed when writing a fix for this bug based on how previous similar bugs were addressed.
If you find no relevant past fixes, clearly state that.

Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.

Prefer calling several tools at the same time to save round-trips.

Prompt:
The crash is:

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e


The explanation of the root cause of the bug is:

The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` (`0x84`) command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first (line 631).
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()` (line 657).
4. In the syzkaller reproducer, the USB device behaves unexpectedly (e.g., endpoint stall or disconnect), causing `snd_urb` to complete with an error status of `-104` (`-ECONNRESET`). 
5. `cxacru_start_wait_urb()` returns this `-104` error, which prompts `cxacru_cm()` to print `"send of cm 0x84 failed (-104)"` and jump to the `fail:` label (line 661).
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, **leaving `rcv_urb` still active and pending**.
7. Back in `cxacru_atm_start()`, the error is printed (`"CHIP_ADSL_LINE_START returned -104"`) but ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

### Fix
To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

```c
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
```

Reply:
Based on a thorough research of the kernel history, here is a summary of the findings regarding similar bugs and the established idioms for fixing them.

### Root Cause Context
The bug occurs because `cxacru_cm()` submits `rcv_urb`, but if the subsequent submission or wait for `snd_urb` fails, it returns an error while leaving `rcv_urb` active. The caller `cxacru_atm_start()` ignores this error (a behavior introduced in historical commit `fd209e35b741` *"USB: cxacru: ignore error trying to start ADSL in atm_start"*) and proceeds to poll the status. This polling invokes `cxacru_cm()` again, which attempts to resubmit the still-active `rcv_urb`, triggering the `URB submitted while active` warning.

### Prior Art and Similar Fixes
While there are no recent commits in `drivers/usb/atm/` addressing this specific URB cleanup issue, a broader search across the USB and media subsystems reveals that this is a known anti-pattern. Several commits have addressed the exact same root cause (leaving an URB active on an error/timeout path):

1. **`1be3b77de4eb` ("usb: image: mdc800: kill download URB on timeout")**
   The driver submitted an URB and waited for completion. On timeout, it returned an error but left the URB active. A subsequent read attempted to resubmit it, triggering the same warning. The fix was to explicitly call `usb_kill_urb()` on the timeout error path.
2. **`372c93131998` ("USB: yurex: fix control-URB timeout handling")**
   Similar to the above, the driver failed to cancel a control URB on timeout. The fix ensured `usb_kill_urb()` was called so the URB could be safely reused on the next write request.
3. **`b98d5000c505` ("media: rc: iguanair: handle timeouts")**
   The driver waited for a completion after sending a command. On timeout, it returned `-ETIMEDOUT` but left the `urb_out` active, causing subsequent IO to fail. The fix added `usb_kill_urb()` to the timeout path.

### Idioms and Common Patterns to Follow
Based on how previous similar bugs were addressed, the following rules and patterns should be applied when writing a fix for this bug:

1. **Explicit URB Cleanup on Error Paths:** Whenever a function submits one or more URBs and then encounters an error (e.g., a timeout, a failure in a subsequent operation, or a failure in waiting for another URB), it **must** explicitly cancel any successfully submitted URBs before returning. 
2. **Use of `usb_kill_urb()`:** The standard idiom for this cleanup is to use `usb_kill_urb()`. This function synchronously cancels the URB and waits for its completion handler to finish.
3. **Unconditional Cleanup is Safe:** `usb_kill_urb()` is safe to call even if the URB is not currently active (e.g., if it failed to submit in the first place, or if it already completed successfully). This makes it robust for unconditional use in a unified `fail:` or `err:` cleanup block at the end of a function.

### Conclusion
Your proposed fix perfectly aligns with the established kernel idioms. By unconditionally calling `usb_kill_urb(instance->rcv_urb)` in the `fail:` path of `cxacru_cm()`, you ensure that the URB is fully canceled and its state is reset. This guarantees that subsequent calls to `cxacru_cm()` (even if the error was ignored by the caller) will start with a clean state, preventing the `URB submitted while active` warning.

102/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7194
							output: 29
							thoughts: 246
						

Thoughts:
**Kernel Bug Fix Research Strategy**

Okay, so I've got this kernel bug in `drivers/usb/atm/cxacru.c` to tackle. The problem, as I understand it, is that `cxacru_cm()` is leaving `rcv_urb` hanging if it hits an error while trying to submit or wait for `snd_urb`. The proposed fix, which seems reasonable at first glance, is to simply call `usb_kill_urb(instance->rcv_urb)` in that error path.

Before I commit to this, though, I need to perform a thorough review of prior art. I need to understand if similar issues have cropped up in this code or related USB ATM drivers, and how they were resolved. It’s critical to identify potential patterns, idioms, or even just coding style preferences that were adopted in other bug fixes to ensure this fix is robust and aligns with established conventions. We want to avoid introducing new regressions by blindly applying a fix.

To do this, I'll leverage `git-log`. I'm going to search the commit history of `drivers/usb/atm/cxacru.c` and also the broader `drivers/usb/atm/` directory. The search should be limited to the last three years (give or take depending on project cadence), to keep the results relevant. I'll be looking for commits that address problems with similar root causes. Specifically, I'm interested in finding situations where error handling was mishandled, perhaps missing lock acquisitions, incorrect refcounting, or errors in error paths that might have left resources in an inconsistent state.

Once I have the list of relevant commits, I need to carefully analyze them. I'll need to summarize my findings and extract any relevant best practices or design patterns that were employed in those fixes. Did they follow particular locking rules? Were there any common idioms used for handling errors in this context? If I *do* find similar problems, I'll identify the approach taken to solve it. If I don't find anything relevant, I'll state that fact clearly. This will give me a solid basis for determining the correct and most appropriate fix for this current kernel bug.



103/2 2026/07/31 07:23 tool git-log
0m Args:
map[PathPrefix:drivers/usb/atm/ Since:3 years]

Results:
map[Output:9dfd800b374c usb: atm: ueagle-atm: reject descriptors that confuse probe and disconnect
e2674dfbed8a usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
41d3e102edc2 atm: drv: Replace strcpy() + strlcat() with snprintf()
1414b2242c2e usb: atm: ueagle-atm: remove function entry/exit debug messages
05c5075c3115 usb: atm: ueagle-atm: use dev_dbg() for 'device found' message
bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
24c776355f40 kernel.h: drop hex.h and update all hex.h users
8d1b02e5d7e3 usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
41cb08555c41 treewide, timers: Rename from_timer() to timer_container_of()
]

104/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8243
							output: 24
							thoughts: 177
						

Thoughts:
**Analyzing Recent USB ATM Driver Changes**

Okay, let's dive in. I need to get a handle on the recent activity within the `drivers/usb/atm/` directory over the last three years. Seems there's a small but potentially significant set of commits to examine. I see:

*   `9dfd800b374c` - Addresses issues in the `ueagle-atm` driver regarding descriptor handling during probe and disconnect. Sounds like a potential robustness improvement, perhaps related to error handling around USB device enumeration or resource allocation, or even race conditions.
*   `e2674dfbed8a` - Also within the `ueagle-atm` driver, this one focuses on ensuring the driver waits for a pre-firmware load stage within the `.disconnect()` function. This sounds like a critical point for ensuring that the device is correctly shut down and that there are no issues during reset that might be dependent on having the firmware already running.
*   `8d1b02e5d7e3` - This commits a merge of `cxacru_upload_firmware()` into `cxacru_heavy_init()`. This is most likely a refactoring effort to make the initialization sequence neater.

Now, my initial focus is on investigating any potential implications for URB cleanup or error path handling. I need to understand whether commits `e2674dfbed8a` and `9dfd800b374c` touch upon these critical areas. These areas are quite sensitive, and subtle changes can have a big impact. Therefore, I'll start by reviewing these commits directly.



105/2 2026/07/31 07:23 tool git-show
0m Args:
map[Commit:e2674dfbed8a]

Results:
map[Output:commit e2674dfbed8a30d57e2bc872c4bfa6c3eec918bf
Author: Mauricio Faria de Oliveira <mfo@igalia.com>
Date:   Tue May 26 14:09:44 2026 -0300

    usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
    
    ueagle-atm uses the asynchronous request_firmware_nowait() in .probe(),
    but does not wait for its completion, not even in .disconnect(); so, if the
    device is unplugged meanwhile, its teardown runs concurrently with that.
    
    Even though this inconsistency is worth addressing on its own, it has also
    triggered several bug reports in syzbot over the years (some auto-closed)
    where the firmware sysfs fallback mechanism (CONFIG_FW_LOADER_USER_HELPER)
    creates a firmware subdirectory in the device directory during its removal,
    which might hit unexpected conditions in kernfs, apparently, depending at
    which point the add and remove operations raced. (See links.)
    
    The pattern is:
    
    usb ?-?: Direct firmware load for ueagle-atm/eagle?.fw failed with error -2
    usb ?-?: Falling back to sysfs fallback for: ueagle-atm/eagle?.fw
    <ERROR>
    Call trace:
     ...
     kernfs_create_dir_ns
     sysfs_create_dir_ns
     create_dir
     kobject_add_internal
     kobject_add_varg
     kobject_add
     class_dir_create_and_add
     get_device_parent
     device_add
     fw_load_sysfs_fallback
     fw_load_from_user_helper
     firmware_fallback_sysfs
     _request_firmware
     request_firmware_work_func
     ...
    
    (Some variations are observed, after fw_load_sysfs_fallback(), e.g., [1].)
    
    While the kernfs side is being looked at, the ueagle-atm side can be fixed
    by waiting for the pre-firmware load in the .disconnect() handler.
    
    This change has a similar approach to previous work by Andrey Tsygunka [2]
    (wait_for_completion() in .disconnect()), but it is relatively different in
    design/implementation; using the Originally-by tag for credit assignment.
    
    This has been tested with:
    - synthetic reproducer to check the error path;
    - USB gadget (virtual device) to check the firmware upload path;
    - QEMU device emulator to check the device ID re-enumeration path;
    (The latter two were written by Claude; no other code/text in this commit.)
    
    Links (year first reported):
     2025 https://syzbot.org/bug?extid=ce1e5a1b4e086b43e56d
     2025 https://syzbot.org/bug?extid=9af8471255ac36e34fd4
     2024 https://syzbot.org/bug?extid=306212936b13e520679d
     2023 https://syzkaller.appspot.com/bug?extid=457452d30bcdda75ead2
     2022 https://syzbot.org/bug?extid=782984d6f1701b526edb
     2021 https://syzbot.org/bug?id=f3f221579f4ef7e9691281f3c6f56c05f83e8490
     2021 https://syzbot.org/bug?id=84d86f0d71394829df6fc53daf6642c045983881
     2021 https://syzbot.org/bug?id=3302dc1c0e2b9c94f2e8edb404eabc9267bc6f90
    
    [1] https://syzkaller.appspot.com/bug?extid=457452d30bcdda75ead2
    [2] https://lore.kernel.org/lkml/20250410093146.3776801-2-aitsygunka@yandex.ru/
    
    Cc: stable <stable@kernel.org>
    Reported-by: syzbot+ce1e5a1b4e086b43e56d@syzkaller.appspotmail.com
    Closes: https://syzbot.org/bug?extid=ce1e5a1b4e086b43e56d
    Reported-by: syzbot+306212936b13e520679d@syzkaller.appspotmail.com
    Closes: https://syzbot.org/bug?extid=306212936b13e520679d
    Reported-by: syzbot+457452d30bcdda75ead2@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=457452d30bcdda75ead2
    Originally-by: Andrey Tsygunka <aitsygunka@yandex.ru>
    Fixes: b72458a80c75 ("[PATCH] USB: Eagle and ADI 930 usb adsl modem driver")
    Assisted-by: Claude:claude-opus-4.7 # usb gadget & qemu device for testing
    Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com>
    Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
    Link: https://patch.msgid.link/20260526-ueagle-atm_req-fw-sync-v3-1-93c01961daaf@igalia.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index d610cdcef7d0..4e71ed679a76 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -594,7 +594,9 @@ static int uea_send_modem_cmd(struct usb_device *usb,
 static void uea_upload_pre_firmware(const struct firmware *fw_entry,
 								void *context)
 {
-	struct usb_device *usb = context;
+	struct usb_interface *intf = context;
+	struct usb_device *usb = interface_to_usbdev(intf);
+	struct completion *fw_done = usb_get_intfdata(intf);
 	const u8 *pfw;
 	u8 value;
 	u32 crc = 0;
@@ -663,15 +665,17 @@ static void uea_upload_pre_firmware(const struct firmware *fw_entry,
 	uea_err(usb, "firmware is corrupted\n");
 err:
 	release_firmware(fw_entry);
+	complete(fw_done);
 }
 
 /*
  * uea_load_firmware - Load usb firmware for pre-firmware devices.
  */
-static int uea_load_firmware(struct usb_device *usb, unsigned int ver)
+static int uea_load_firmware(struct usb_interface *intf, unsigned int ver)
 {
 	int ret;
 	char *fw_name = EAGLE_FIRMWARE;
+	struct usb_device *usb = interface_to_usbdev(intf);
 
 	uea_info(usb, "pre-firmware device, uploading firmware\n");
 
@@ -694,7 +698,7 @@ static int uea_load_firmware(struct usb_device *usb, unsigned int ver)
 	}
 
 	ret = request_firmware_nowait(THIS_MODULE, 1, fw_name, &usb->dev,
-					GFP_KERNEL, usb,
+					GFP_KERNEL, intf,
 					uea_upload_pre_firmware);
 	if (ret)
 		uea_err(usb, "firmware %s is not available\n", fw_name);
@@ -2555,8 +2559,23 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 
 	usb_reset_device(usb);
 
-	if (UEA_IS_PREFIRM(id))
-		return uea_load_firmware(usb, UEA_CHIP_VERSION(id));
+	if (UEA_IS_PREFIRM(id)) {
+		struct completion *fw_done;
+
+		/* Wait for the firmware load to be done, in .disconnect() */
+		fw_done = kzalloc_obj(*fw_done);
+		if (!fw_done)
+			return -ENOMEM;
+
+		init_completion(fw_done);
+		usb_set_intfdata(intf, fw_done);
+
+		ret = uea_load_firmware(intf, UEA_CHIP_VERSION(id));
+		if (ret)
+			kfree(fw_done);
+
+		return ret;
+	}
 
 	ret = usbatm_usb_probe(intf, id, &uea_usbatm_driver);
 	if (ret == 0) {
@@ -2586,6 +2605,13 @@ static void uea_disconnect(struct usb_interface *intf)
 		usbatm_usb_disconnect(intf);
 		mutex_unlock(&uea_mutex);
 		uea_info(usb, "ADSL device removed\n");
+	} else if (usb->config->desc.bNumInterfaces == 1) {
+		struct completion *fw_done = usb_get_intfdata(intf);
+
+		uea_dbg(usb, "pre-firmware device, waiting firmware upload\n");
+		wait_for_completion(fw_done);
+		uea_dbg(usb, "pre-firmware device, finished waiting\n");
+		kfree(fw_done);
 	}
 }
 
]

106/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11477
							output: 26
							thoughts: 53
						

Thoughts:
Here's my summary, as if I were thinking it:

**Analyzing a Disconnect Handling Change**

Okay, so this commit's focused on the firmware loading sequence within the `.disconnect()` method. It doesn't immediately strike me as being related to the URB cleanup or error management side of things, specifically within the `cxacru.c` file. Interesting.

I'm getting the feeling that something else is going on here. Let's start by digging into `9dfd800b374c` to get the broader context. Need to see *why* this change was introduced. Perhaps there was some edge case causing connect/disconnect cycles to misbehave? I need to understand the intent and if it impacts the overall device state or just the disconnection logic.



107/2 2026/07/31 07:23 tool git-show
0m Args:
map[Commit:9dfd800b374c]

Results:
map[Output:commit 9dfd800b374c38681364d4b3606a8b831d1478e3
Author: Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
Date:   Fri Jul 17 02:07:04 2026 -0600

    usb: atm: ueagle-atm: reject descriptors that confuse probe and disconnect
    
    uea_probe() distinguishes a pre-firmware device from a post-firmware one
    using the USB id (UEA_IS_PREFIRM()), and stores a different object as the
    interface data in each case: a 'struct completion' for a pre-firmware
    device (to be waited on in .disconnect()), or a 'struct usbatm_data' for a
    post-firmware one.
    
    uea_disconnect() instead tells the two apart by the number of interfaces
    of the active configuration (a pre-firmware device exposes a single
    interface, ADI930 has 2 and eagle has 3), and casts the interface data
    accordingly.
    
    Because the two handlers use different criteria, a crafted device that
    advertises a pre-firmware id together with a multi-interface descriptor
    (or a post-firmware id with a single interface) makes them disagree: the
    small 'struct completion' stored by uea_probe() is then passed to
    usbatm_usb_disconnect(), which casts it to 'struct usbatm_data' and takes
    instance->serialize, reading past the end of the allocation:
    
      BUG: KASAN: slab-out-of-bounds in __mutex_lock+0x152a/0x1b80
      Read of size 8 at addr ffff8880470e2c60 by task kworker/1:2/982
      ...
       __mutex_lock+0x152a/0x1b80
       usbatm_usb_disconnect+0x70/0x820
       uea_disconnect+0x133/0x2c0
       usb_unbind_interface+0x1dd/0x9e0
      ...
      which belongs to the cache kmalloc-96 of size 96
      The buggy address is located 0 bytes to the right of
       allocated 96-byte region [ffff8880470e2c00, ffff8880470e2c60)
    
    Reject such inconsistent descriptors in uea_probe() so that both handlers
    always make the same pre/post-firmware decision.
    
    Reported-by: syzbot+e62a973f8322b3bbe3ac@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=e62a973f8322b3bbe3ac
    Fixes: e2674dfbed8a ("usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()")
    Signed-off-by: Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
    Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
    Link: https://patch.msgid.link/20260717080704.1264-1-diegomancera.dev@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index 4e71ed679a76..4266a0cb7e3b 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2549,6 +2549,7 @@ static struct usbatm_driver uea_usbatm_driver = {
 static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 {
 	struct usb_device *usb = interface_to_usbdev(intf);
+	bool single_iface = usb->config->desc.bNumInterfaces == 1;
 	int ret;
 
 	uea_dbg(usb, "ADSL device found with vid (%#X) pid (%#X) Rev (%#X): %s\n",
@@ -2557,6 +2558,22 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
 		le16_to_cpu(usb->descriptor.bcdDevice),
 		chip_name[UEA_CHIP_VERSION(id)]);
 
+	/*
+	 * uea_probe() decides between the pre-firmware and post-firmware case
+	 * from the USB id and stores a different object as interface data in
+	 * each case: a struct completion for a pre-firmware device, a struct
+	 * usbatm_data for a post-firmware one. uea_disconnect() instead tells
+	 * the two apart by the number of interfaces (a pre-firmware device
+	 * exposes a single interface, ADI930 has 2 and eagle has 3). A crafted
+	 * device advertising a pre-firmware id together with a multi-interface
+	 * descriptor (or the other way around) makes the two disagree, so that
+	 * usbatm_usb_disconnect() treats the small completion object as a
+	 * struct usbatm_data and reads out of bounds. Reject such inconsistent
+	 * descriptors so both paths make the same decision.
+	 */
+	if (UEA_IS_PREFIRM(id) != single_iface)
+		return -ENODEV;
+
 	usb_reset_device(usb);
 
 	if (UEA_IS_PREFIRM(id)) {
]

108/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13209
							output: 27
							thoughts: 29
						

Thoughts:
Okay, here's my interpretation of those thoughts, crafted with the understanding that the user is an expert.

**Clarifying the Focus**

Right, so, I'm pretty sure that this is *not* connected to the URB cleanup we were just discussing. We need to keep a clear mental separation here, avoiding any assumptions about commonality when it doesn't exist. Now, let's switch gears and investigate `8d1b02e5d7e3`. Let's see what that SHA tells us. Time to get down to specifics!



109/2 2026/07/31 07:23 tool git-show
0m Args:
map[Commit:8d1b02e5d7e3]

Results:
map[Output:commit 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456
Author: Nathan Chancellor <nathan@kernel.org>
Date:   Tue Jul 22 12:11:18 2025 -0700

    usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
    
    After a recent change in clang to expose uninitialized warnings from
    const variables [1], there is a warning in cxacru_heavy_init():
    
      drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
       1104 |         if (instance->modem_type->boot_rom_patch) {
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here
       1113 |         cxacru_upload_firmware(instance, fw, bp);
            |                                              ^~
      drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true
       1104 |         if (instance->modem_type->boot_rom_patch) {
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning
       1095 |         const struct firmware *fw, *bp;
            |                                       ^
            |                                        = NULL
    
    While the warning is technically correct that bp is conditionally passed
    uninitialized to cxacru_upload_firmware(), it is ultimately a false
    positive warning on the uninitialized use of bp because the same
    condition that initializes bp, instance->modem_type->boot_rom_patch, is
    the same one that gates the use of bp within cxacru_upload_firmware().
    As this warning occurs in clang's frontend before inlining occurs, it
    cannot know that these conditions are indentical to avoid the warning.
    
    Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as
    that is its only callsite, so that clang can see that bp is initialized
    and used under the same condition, clearing up the warning without any
    functional changes to the code (LLVM was already doing this inlining
    later).
    
    Cc: stable@vger.kernel.org
    Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru")
    Closes: https://github.com/ClangBuiltLinux/linux/issues/2102
    Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1]
    Signed-off-by: Nathan Chancellor <nathan@kernel.org>
    Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index a12ab90b3db7..68a8e9de8b4f 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw,
 	return ret;
 }
 
-static void cxacru_upload_firmware(struct cxacru_data *instance,
-				   const struct firmware *fw,
-				   const struct firmware *bp)
+
+static int cxacru_find_firmware(struct cxacru_data *instance,
+				char *phase, const struct firmware **fw_p)
 {
-	int ret;
+	struct usbatm_data *usbatm = instance->usbatm;
+	struct device *dev = &usbatm->usb_intf->dev;
+	char buf[16];
+
+	sprintf(buf, "cxacru-%s.bin", phase);
+	usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf);
+
+	if (request_firmware(fw_p, buf, dev)) {
+		usb_dbg(usbatm, "no stage %s firmware found\n", phase);
+		return -ENOENT;
+	}
+
+	usb_info(usbatm, "found firmware %s\n", buf);
+
+	return 0;
+}
+
+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance,
+			     struct usb_interface *usb_intf)
+{
+	const struct firmware *fw, *bp;
+	struct cxacru_data *instance = usbatm_instance->driver_data;
 	struct usbatm_data *usbatm = instance->usbatm;
 	struct usb_device *usb_dev = usbatm->usb_dev;
 	__le16 signature[] = { usb_dev->descriptor.idVendor,
 			       usb_dev->descriptor.idProduct };
 	__le32 val;
+	int ret;
 
-	usb_dbg(usbatm, "%s\n", __func__);
+	ret = cxacru_find_firmware(instance, "fw", &fw);
+	if (ret) {
+		usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n");
+		return ret;
+	}
+
+	if (instance->modem_type->boot_rom_patch) {
+		ret = cxacru_find_firmware(instance, "bp", &bp);
+		if (ret) {
+			usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n");
+			release_firmware(fw);
+			return ret;
+		}
+	}
 
 	/* FirmwarePllFClkValue */
 	val = cpu_to_le32(instance->modem_type->pll_f_clk);
 	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4);
 	if (ret) {
 		usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	/* FirmwarePllBClkValue */
@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4);
 	if (ret) {
 		usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	/* Enable SDRAM */
@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4);
 	if (ret) {
 		usb_err(usbatm, "Enable SDRAM failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	/* Firmware */
@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size);
 	if (ret) {
 		usb_err(usbatm, "Firmware upload failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	/* Boot ROM patch */
@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size);
 		if (ret) {
 			usb_err(usbatm, "Boot ROM patching failed: %d\n", ret);
-			return;
+			goto done;
 		}
 	}
 
@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4);
 	if (ret) {
 		usb_err(usbatm, "Signature storing failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	usb_info(usbatm, "starting device\n");
@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	}
 	if (ret) {
 		usb_err(usbatm, "Passing control to firmware failed: %d\n", ret);
-		return;
+		goto done;
 	}
 
 	/* Delay to allow firmware to start up. */
@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
 	ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
 	if (ret < 0) {
 		usb_err(usbatm, "modem failed to initialize: %d\n", ret);
-		return;
-	}
-}
-
-static int cxacru_find_firmware(struct cxacru_data *instance,
-				char *phase, const struct firmware **fw_p)
-{
-	struct usbatm_data *usbatm = instance->usbatm;
-	struct device *dev = &usbatm->usb_intf->dev;
-	char buf[16];
-
-	sprintf(buf, "cxacru-%s.bin", phase);
-	usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf);
-
-	if (request_firmware(fw_p, buf, dev)) {
-		usb_dbg(usbatm, "no stage %s firmware found\n", phase);
-		return -ENOENT;
-	}
-
-	usb_info(usbatm, "found firmware %s\n", buf);
-
-	return 0;
-}
-
-static int cxacru_heavy_init(struct usbatm_data *usbatm_instance,
-			     struct usb_interface *usb_intf)
-{
-	const struct firmware *fw, *bp;
-	struct cxacru_data *instance = usbatm_instance->driver_data;
-	int ret = cxacru_find_firmware(instance, "fw", &fw);
-
-	if (ret) {
-		usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n");
-		return ret;
+		goto done;
 	}
 
-	if (instance->modem_type->boot_rom_patch) {
-		ret = cxacru_find_firmware(instance, "bp", &bp);
-		if (ret) {
-			usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n");
-			release_firmware(fw);
-			return ret;
-		}
-	}
-
-	cxacru_upload_firmware(instance, fw, bp);
-
+done:
 	if (instance->modem_type->boot_rom_patch)
 		release_firmware(bp);
 	release_firmware(fw);
]

110/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16677
							output: 31
							thoughts: 172
						

Thoughts:
**Analyzing the Scope of a Clang Warning Fix**

Okay, so this commit is just about cleaning up a Clang warning, nothing to do with URB (USB Request Block) cleanup itself. That's good to know. But, given the prompt's focus on similar root causes in related files, I should still explore potential connection to URB cleanup practices.

My first thought is to quickly scan for other URB-related commits within `drivers/usb/atm/`. I'll broaden the search to include commits touching error paths. I'll need to look for calls to functions like `usb_kill_urb`, `usb_free_urb`, or `usb_unlink_urb` to spot those. I'll expand the search to include `drivers/usb/core/` and `drivers/usb/` as well, as they're more general USB-related areas that might have relevant corrections.

Hold on a minute. The prompt's wording is key here: "similar root causes." Right, so I'm not just looking for any URB issues, but issues linked to missing locks, incorrect refcounting, or errors in error paths. That narrows the search.

Let's begin with checking for `usb_kill_urb` within `drivers/usb/atm/`. That's a reasonable first step to pinpoint possible fixes.



111/2 2026/07/31 07:23 tool grepper
0m Args:
map[Expression:usb_kill_urb PathPrefix:drivers/usb/atm/]

Results:
map[Output:drivers/usb/atm/cxacru.c=1230=static void cxacru_unbind(struct usbatm_data *usbatm_instance,
--
drivers/usb/atm/cxacru.c-1257-
drivers/usb/atm/cxacru.c:1258:	usb_kill_urb(instance->snd_urb);
drivers/usb/atm/cxacru.c:1259:	usb_kill_urb(instance->rcv_urb);
drivers/usb/atm/cxacru.c-1260-	usb_free_urb(instance->snd_urb);
--
drivers/usb/atm/speedtch.c=687=static void speedtch_atm_stop(struct usbatm_data *usbatm, struct atm_dev *atm_dev)
--
drivers/usb/atm/speedtch.c-701-	mb();
drivers/usb/atm/speedtch.c:702:	usb_kill_urb(int_urb);
drivers/usb/atm/speedtch.c-703-	timer_delete_sync(&instance->resubmit_timer);
--
drivers/usb/atm/speedtch.c-708-	 */
drivers/usb/atm/speedtch.c:709:	usb_kill_urb(int_urb);
drivers/usb/atm/speedtch.c-710-	timer_delete_sync(&instance->resubmit_timer);
--
drivers/usb/atm/ueagle-atm.c=2096=static int uea_boot(struct uea_softc *sc, struct usb_interface *intf)
--
drivers/usb/atm/ueagle-atm.c-2160-err2:
drivers/usb/atm/ueagle-atm.c:2161:	usb_kill_urb(sc->urb_int);
drivers/usb/atm/ueagle-atm.c-2162-err1:
--
drivers/usb/atm/ueagle-atm.c=2173=static void uea_stop(struct uea_softc *sc)
--
drivers/usb/atm/ueagle-atm.c-2181-
drivers/usb/atm/ueagle-atm.c:2182:	usb_kill_urb(sc->urb_int);
drivers/usb/atm/ueagle-atm.c-2183-	kfree(sc->urb_int->transfer_buffer);
--
drivers/usb/atm/usbatm.c=1207=void usbatm_usb_disconnect(struct usb_interface *intf)
--
drivers/usb/atm/usbatm.c-1237-	for (i = 0; i < num_rcv_urbs + num_snd_urbs; i++)
drivers/usb/atm/usbatm.c:1238:		usb_kill_urb(instance->urbs[i]);
drivers/usb/atm/usbatm.c-1239-
]

112/2 2026/07/31 07:23 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17910
							output: 41
							thoughts: 19
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Diving into `ueagle-atm.c`**

Okay, time to get my hands dirty. I need to zero in on a specific area, and it looks like my gut feeling is pointing me towards `ueagle-atm.c`, specifically around line 2160. Given the nature of ATM-related code, there's a good chance this is where a critical function, potentially related to AAL signaling or cell processing, is located. I'm hoping I'll find the culprit there. I expect that line 2160 might mark the beginning of a key section, maybe a conditional statement, a function call, or a loop. I'll start by taking a close look at the surrounding code to understand the context and flow. My focus will be on the variables being used and their values in order to trace the sequence of events.



113/2 2026/07/31 07:24 tool read-file
0m Args:
map[File:drivers/usb/atm/ueagle-atm.c FirstLine:2140 LineCount:40]

Results:
map[Contents:2140:	
2141:		ret = usb_submit_urb(sc->urb_int, GFP_KERNEL);
2142:		if (ret < 0) {
2143:			uea_err(INS_TO_USBDEV(sc),
2144:			       "urb submission failed with error %d\n", ret);
2145:			goto err1;
2146:		}
2147:	
2148:		/* Create worker thread, but don't start it here.  Start it after
2149:		 * all usbatm generic initialization is done.
2150:		 */
2151:		sc->kthread = kthread_create(uea_kthread, sc, "ueagle-atm");
2152:		if (IS_ERR(sc->kthread)) {
2153:			uea_err(INS_TO_USBDEV(sc), "failed to create thread\n");
2154:			ret = PTR_ERR(sc->kthread);
2155:			goto err2;
2156:		}
2157:	
2158:		return 0;
2159:	
2160:	err2:
2161:		usb_kill_urb(sc->urb_int);
2162:	err1:
2163:		usb_free_urb(sc->urb_int);
2164:		sc->urb_int = NULL;
2165:		kfree(intr);
2166:	err0:
2167:		return ret;
2168:	}
2169:	
2170:	/*
2171:	 * Stop the modem : kill kernel thread and free data
2172:	 */
2173:	static void uea_stop(struct uea_softc *sc)
2174:	{
2175:		int ret;
2176:	
2177:		ret = kthread_stop(sc->kthread);
2178:		uea_dbg(INS_TO_USBDEV(sc), "kthread finish with status %d\n", ret);
2179:	
]

114/2 2026/07/31 07:24 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18749
							output: 40
							thoughts: 102
						

Thoughts:
**Analyzing USB URB Error Handling**

Okay, so looking at `uea_boot()`, I see a clear pattern emerging. If `kthread_create()` fails, the code jumps to `err2` and immediately calls `usb_kill_urb(sc->urb_int)`. This confirms my initial hunch. We have a submitted URB, and if a later step goes south, the error handling involves killing that URB. It's a solid, predictable approach.

Now, I need to see how prevalent this is. I'm going to quickly check `cxacru.c` to see if this `usb_kill_urb` usage in error paths is common throughout the driver. My gut says it will be, but let's confirm.



115/2 2026/07/31 07:24 tool read-file
0m Args:
map[File:drivers/usb/atm/cxacru.c FirstLine:630 LineCount:100]

Results:
map[Contents: 630:		init_completion(&instance->rcv_done);
 631:		ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 632:		if (ret < 0) {
 633:			if (printk_ratelimit())
 634:				usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 635:					cm, ret);
 636:			goto fail;
 637:		}
 638:	
 639:		memset(wbuf, 0, wbuflen);
 640:		/* handle wsize == 0 */
 641:		wbuf[0] = cm;
 642:		for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 643:			wbuf[offb] = cm;
 644:			memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 645:		}
 646:	
 647:		instance->snd_urb->transfer_buffer_length = wbuflen;
 648:		init_completion(&instance->snd_done);
 649:		ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 650:		if (ret < 0) {
 651:			if (printk_ratelimit())
 652:				usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 653:					cm, ret);
 654:			goto fail;
 655:		}
 656:	
 657:		ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 658:		if (ret < 0) {
 659:			if (printk_ratelimit())
 660:				usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 661:			goto fail;
 662:		}
 663:	
 664:		ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 665:		if (ret < 0) {
 666:			if (printk_ratelimit())
 667:				usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 668:			goto fail;
 669:		}
 670:		if (actlen % CMD_PACKET_SIZE || !actlen) {
 671:			if (printk_ratelimit())
 672:				usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 673:					cm, actlen);
 674:			ret = -EIO;
 675:			goto fail;
 676:		}
 677:	
 678:		/* check the return status and copy the data to the output buffer, if needed */
 679:		for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 680:			if (rbuf[offb] != cm) {
 681:				if (printk_ratelimit())
 682:					usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 683:						rbuf[offb], cm);
 684:				ret = -EIO;
 685:				goto fail;
 686:			}
 687:			if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 688:				if (printk_ratelimit())
 689:					usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 690:						cm, rbuf[offb + 1]);
 691:				ret = -EIO;
 692:				goto fail;
 693:			}
 694:			if (offd >= rsize)
 695:				break;
 696:			memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 697:			offd += stride;
 698:		}
 699:	
 700:		ret = offd;
 701:		usb_dbg(instance->usbatm, "cm %#x\n", cm);
 702:	fail:
 703:		mutex_unlock(&instance->cm_serialize);
 704:	err:
 705:		return ret;
 706:	}
 707:	
 708:	static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 709:				       u32 *data, int size)
 710:	{
 711:		int ret, len;
 712:		__le32 *buf;
 713:		int offb;
 714:		unsigned int offd;
 715:		const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
 716:		int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
 717:	
 718:		buf = kmalloc(buflen, GFP_KERNEL);
 719:		if (!buf)
 720:			return -ENOMEM;
 721:	
 722:		ret = cxacru_cm(instance, cm, NULL, 0, (u8 *) buf, buflen);
 723:		if (ret < 0)
 724:			goto cleanup;
 725:	
 726:		/* len > 0 && len % 4 == 0 guaranteed by cxacru_cm() */
 727:		len = ret / 4;
 728:		for (offb = 0; offb < len; ) {
 729:			int l = le32_to_cpu(buf[offb++]);
]

116/2 2026/07/31 07:24 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20756
							output: 44
							thoughts: 168
						

Thoughts:
**Analyzing a Potential USB URB Leak**

Okay, so I'm looking at this `cxacru_cm()` function and something's bugging me. Specifically, if `usb_submit_urb()` for the `snd_urb` fails, or if `cxacru_start_wait_urb()` fails, we immediately jump to `fail`. The problem is, `rcv_urb` has already been submitted at this point. If we just bail without doing anything, that `rcv_urb` is going to stay active and that's a problem.

The proposed solution seems straightforward: add `usb_kill_urb(instance->rcv_urb)` to the `fail` path. That makes sense, but hang on a minute... What about the `snd_urb`? Could that still be active when we hit `fail`? I need to double-check that. Let me quickly examine what `cxacru_start_wait_urb` does. Hmm, it looks like it already calls `usb_kill_urb` if there's a timeout or interrupt. So, we're probably covered there, but I need to make sure the code actually covers that scenario.



117/2 2026/07/31 07:24 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_start_wait_urb]

Results:
map[SourceCode: 590:	static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 591:					 int *actual_length)
 592:	{
 593:		struct cxacru_timer timer = {
 594:			.urb = urb,
 595:		};
 596:	
 597:		timer_setup_on_stack(&timer.timer, cxacru_timeout_kill, 0);
 598:		mod_timer(&timer.timer, jiffies + msecs_to_jiffies(CMD_TIMEOUT));
 599:		wait_for_completion(done);
 600:		timer_delete_sync(&timer.timer);
 601:		timer_destroy_on_stack(&timer.timer);
 602:	
 603:		if (actual_length)
 604:			*actual_length = urb->actual_length;
 605:		return urb->status; /* must read status after completion */
 606:	}
 SourceFile:drivers/usb/atm/cxacru.c]

118/2 2026/07/31 07:24 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21527
							output: 22
							thoughts: 231
						

Thoughts:
**My Analysis of the USB ATM Driver Issue**

Okay, so `cxacru_start_wait_urb` simply waits for the USB Request Block (URB) to finish. If the URB errors out during completion, it returns that error, naturally. It doesn't need to "kill" the URB, as the completion itself means it's no longer active. But, and this is important, if `cxacru_start_wait_urb` returns an error for the send URB (`snd_urb`), the receive URB (`rcv_urb`) is still running. We haven't waited on it yet. So, the suggested fix is clearly on the right track.

Now, I need to dig deeper. I want to see if there are any related commits that address similar problems in the code, things like missing locks, refcounting issues, or errors during execution. My initial thought was to check the `git log` for the `drivers/usb/atm/` directory within the last three years, but that only turned up a handful of commits, none of which were relevant to URB cleanup. Let me broaden the search to the entire history of `drivers/usb/atm/`. We might find similar fixes, even if they aren't recent. Sometimes these bugs repeat themselves, or the root cause manifests in different ways over time.



119/2 2026/07/31 07:24 tool git-log
0m Args:
map[PathPrefix:drivers/usb/atm/]

Results:
map[Output:9dfd800b374c usb: atm: ueagle-atm: reject descriptors that confuse probe and disconnect
e2674dfbed8a usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
41d3e102edc2 atm: drv: Replace strcpy() + strlcat() with snprintf()
1414b2242c2e usb: atm: ueagle-atm: remove function entry/exit debug messages
05c5075c3115 usb: atm: ueagle-atm: use dev_dbg() for 'device found' message
bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
24c776355f40 kernel.h: drop hex.h and update all hex.h users
8d1b02e5d7e3 usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
41cb08555c41 treewide, timers: Rename from_timer() to timer_container_of()
]

120/2 2026/07/31 07:24 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22383
							output: 35
							thoughts: 23
						

Thoughts:
Here's a summary of my immediate thought process:

**Thinking About `git log` Limits**

Okay, so I'm digging through some commit history, probably for debugging or trying to understand the evolution of a feature. And I'm using `git log`. Hang on a second... I know `git log` has a default limit. It's frustratingly easy to forget that it only shows the last 10 commits by default. I need to see more than that in this context. I can't rely on the default behavior here, I need a comprehensive view. Time to adjust the count, I need to make sure I get a sufficient number of entries.



121/2 2026/07/31 07:24 tool git-log
0m Args:
map[Count:100 PathPrefix:drivers/usb/atm/ Since:3 years]

Results:
map[Output:9dfd800b374c usb: atm: ueagle-atm: reject descriptors that confuse probe and disconnect
e2674dfbed8a usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
41d3e102edc2 atm: drv: Replace strcpy() + strlcat() with snprintf()
1414b2242c2e usb: atm: ueagle-atm: remove function entry/exit debug messages
05c5075c3115 usb: atm: ueagle-atm: use dev_dbg() for 'device found' message
bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
24c776355f40 kernel.h: drop hex.h and update all hex.h users
8d1b02e5d7e3 usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
41cb08555c41 treewide, timers: Rename from_timer() to timer_container_of()
aad823aa3a7d treewide, timers: Rename destroy_timer_on_stack() as timer_destroy_on_stack()
8fa7292fee5c treewide: Switch/rename to timer_delete[_sync]()
c90aad369899 usb: atm: cxacru: fix a flaw in existing endpoint checks
5014f10c19ee usb: atm: Correct some typos
5f60d5f6bbc1 move asm/unaligned.h to linux/unaligned.h
2eabb655a968 usb: atm: cxacru: fix endpoint checking in cxacru_bind()
738ec5ab7acc usb: ueagle-atm: Use wait_event_freezable_timeout() in uea_wait()
36d8aef52d05 usb: atm: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()
b7fa76e03b0d usb: atm: Use size_add() in call to struct_size()
]

122/2 2026/07/31 07:24 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23151
							output: 25
							thoughts: 29
						

Thoughts:
Okay, here's my interpretation of those thoughts, crafted with the understanding that I'm speaking to a fellow expert:

**Investigating Potential Anomalies**

Alright, time to dive into this. Let's see what's going on with these commits, `c90aad369899` and `2eabb655a968`. The fact that we're specifically calling these out suggests they've triggered something, either directly or indirectly, in our monitoring. It could be performance regressions, unexpected behavior in testing, security implications, or even just some odd style choices that don't quite fit our established patterns. Gotta start digging, see what clues these IDs unlock. The deeper investigation begins!



123/2 2026/07/31 07:25 tool git-show
0m Args:
map[Commit:c90aad369899]

Results:
map[Output:commit c90aad369899a607cfbc002bebeafd51e31900cd
Author: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Date:   Thu Feb 13 15:22:57 2025 +0300

    usb: atm: cxacru: fix a flaw in existing endpoint checks
    
    Syzbot once again identified a flaw in usb endpoint checking, see [1].
    This time the issue stems from a commit authored by me (2eabb655a968
    ("usb: atm: cxacru: fix endpoint checking in cxacru_bind()")).
    
    While using usb_find_common_endpoints() may usually be enough to
    discard devices with wrong endpoints, in this case one needs more
    than just finding and identifying the sufficient number of endpoints
    of correct types - one needs to check the endpoint's address as well.
    
    Since cxacru_bind() fills URBs with CXACRU_EP_CMD address in mind,
    switch the endpoint verification approach to usb_check_XXX_endpoints()
    instead to fix incomplete ep testing.
    
    [1] Syzbot report:
    usb 5-1: BOGUS urb xfer, pipe 3 != type 1
    WARNING: CPU: 0 PID: 1378 at drivers/usb/core/urb.c:504 usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503
    ...
    RIP: 0010:usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503
    ...
    Call Trace:
     <TASK>
     cxacru_cm+0x3c8/0xe50 drivers/usb/atm/cxacru.c:649
     cxacru_card_status drivers/usb/atm/cxacru.c:760 [inline]
     cxacru_bind+0xcf9/0x1150 drivers/usb/atm/cxacru.c:1223
     usbatm_usb_probe+0x314/0x1d30 drivers/usb/atm/usbatm.c:1058
     cxacru_usb_probe+0x184/0x220 drivers/usb/atm/cxacru.c:1377
     usb_probe_interface+0x641/0xbb0 drivers/usb/core/driver.c:396
     really_probe+0x2b9/0xad0 drivers/base/dd.c:658
     __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800
     driver_probe_device+0x50/0x430 drivers/base/dd.c:830
    ...
    
    Reported-and-tested-by: syzbot+ccbbc229a024fa3e13b5@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=ccbbc229a024fa3e13b5
    Fixes: 2eabb655a968 ("usb: atm: cxacru: fix endpoint checking in cxacru_bind()")
    Cc: stable@kernel.org
    Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
    Link: https://lore.kernel.org/r/20250213122259.730772-1-n.zhandarovich@fintech.ru
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 0dd85d2635b9..47d06af33747 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -1131,7 +1131,10 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
 	struct cxacru_data *instance;
 	struct usb_device *usb_dev = interface_to_usbdev(intf);
 	struct usb_host_endpoint *cmd_ep = usb_dev->ep_in[CXACRU_EP_CMD];
-	struct usb_endpoint_descriptor *in, *out;
+	static const u8 ep_addrs[] = {
+		CXACRU_EP_CMD + USB_DIR_IN,
+		CXACRU_EP_CMD + USB_DIR_OUT,
+		0};
 	int ret;
 
 	/* instance init */
@@ -1179,13 +1182,11 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
 	}
 
 	if (usb_endpoint_xfer_int(&cmd_ep->desc))
-		ret = usb_find_common_endpoints(intf->cur_altsetting,
-						NULL, NULL, &in, &out);
+		ret = usb_check_int_endpoints(intf, ep_addrs);
 	else
-		ret = usb_find_common_endpoints(intf->cur_altsetting,
-						&in, &out, NULL, NULL);
+		ret = usb_check_bulk_endpoints(intf, ep_addrs);
 
-	if (ret) {
+	if (!ret) {
 		usb_err(usbatm_instance, "cxacru_bind: interface has incorrect endpoints\n");
 		ret = -ENODEV;
 		goto fail;
]

124/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24835
							output: 25
							thoughts: 28
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's inner monologue:

**Endpoint Verification Concerns**

Right, so this isn't about clearing out URBs, which is good. We're focused on endpoint validation here, which is the more critical issue. Now, let's get down to brass tacks. The critical piece of data is `2eabb655a968`. That's where the investigation starts. I need to dive into this identifier and see what we can learn. Let's see what that code points to. Is this a USB descriptor? Is this an I/O request packet? I need to analyze this identifier and figure out where this data takes us.



125/2 2026/07/31 07:25 tool git-show
0m Args:
map[Commit:2eabb655a968]

Results:
map[Output:commit 2eabb655a968b862bc0c31629a09f0fbf3c80d51
Author: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Date:   Sun Jun 9 06:15:46 2024 -0700

    usb: atm: cxacru: fix endpoint checking in cxacru_bind()
    
    Syzbot is still reporting quite an old issue [1] that occurs due to
    incomplete checking of present usb endpoints. As such, wrong
    endpoints types may be used at urb sumbitting stage which in turn
    triggers a warning in usb_submit_urb().
    
    Fix the issue by verifying that required endpoint types are present
    for both in and out endpoints, taking into account cmd endpoint type.
    
    Unfortunately, this patch has not been tested on real hardware.
    
    [1] Syzbot report:
    usb 1-1: BOGUS urb xfer, pipe 1 != type 3
    WARNING: CPU: 0 PID: 8667 at drivers/usb/core/urb.c:502 usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
    Modules linked in:
    CPU: 0 PID: 8667 Comm: kworker/0:4 Not tainted 5.14.0-rc4-syzkaller #0
    Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
    Workqueue: usb_hub_wq hub_event
    RIP: 0010:usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
    ...
    Call Trace:
     cxacru_cm+0x3c0/0x8e0 drivers/usb/atm/cxacru.c:649
     cxacru_card_status+0x22/0xd0 drivers/usb/atm/cxacru.c:760
     cxacru_bind+0x7ac/0x11a0 drivers/usb/atm/cxacru.c:1209
     usbatm_usb_probe+0x321/0x1ae0 drivers/usb/atm/usbatm.c:1055
     cxacru_usb_probe+0xdf/0x1e0 drivers/usb/atm/cxacru.c:1363
     usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396
     call_driver_probe drivers/base/dd.c:517 [inline]
     really_probe+0x23c/0xcd0 drivers/base/dd.c:595
     __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:747
     driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:777
     __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:894
     bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427
     __device_attach+0x228/0x4a0 drivers/base/dd.c:965
     bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487
     device_add+0xc2f/0x2180 drivers/base/core.c:3354
     usb_set_configuration+0x113a/0x1910 drivers/usb/core/message.c:2170
     usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238
     usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293
    
    Reported-and-tested-by: syzbot+00c18ee8497dd3be6ade@syzkaller.appspotmail.com
    Fixes: 902ffc3c707c ("USB: cxacru: Use a bulk/int URB to access the command endpoint")
    Cc: stable <stable@kernel.org>
    Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
    Link: https://lore.kernel.org/r/20240609131546.3932-1-n.zhandarovich@fintech.ru
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 4ce7cba2b48a..8f3b9a0a38e1 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -1131,6 +1131,7 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
 	struct cxacru_data *instance;
 	struct usb_device *usb_dev = interface_to_usbdev(intf);
 	struct usb_host_endpoint *cmd_ep = usb_dev->ep_in[CXACRU_EP_CMD];
+	struct usb_endpoint_descriptor *in, *out;
 	int ret;
 
 	/* instance init */
@@ -1177,6 +1178,19 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
 		goto fail;
 	}
 
+	if (usb_endpoint_xfer_int(&cmd_ep->desc))
+		ret = usb_find_common_endpoints(intf->cur_altsetting,
+						NULL, NULL, &in, &out);
+	else
+		ret = usb_find_common_endpoints(intf->cur_altsetting,
+						&in, &out, NULL, NULL);
+
+	if (ret) {
+		usb_err(usbatm_instance, "cxacru_bind: interface has incorrect endpoints\n");
+		ret = -ENODEV;
+		goto fail;
+	}
+
 	if ((cmd_ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
 			== USB_ENDPOINT_XFER_INT) {
 		usb_fill_int_urb(instance->rcv_urb,
]

126/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26729
							output: 40
							thoughts: 127
						

Thoughts:
**Endpoint Investigation & Similar Fixes**

Okay, still deep in this endpoint investigation. My current thought process is this: I need to determine if there are any analogous fixes within the `drivers/usb/atm/` directory. The prompt is quite specific; it emphasizes looking for *similar* root causes, like missing locks, refcounting errors, or bugs in the error paths. So, I need to be diligent here. "If you find no relevant past fixes, clearly state that." I need to be sure.

Therefore, rather than getting bogged down in minor details right now, let's broaden the search a bit within `drivers/usb/atm/`. Let me look for commits that include mentions of `usb_kill_urb`, `usb_free_urb`, or `usb_unlink_urb` in their messages. This will give me a wider net to capture similar issues, even if the specifics are slightly different, and from here, I can narrow down my focus. I need a solid foundation for comparison.



127/2 2026/07/31 07:25 tool git-log
0m Args:
map[CodeRegexp:usb_kill_urb Count:100 PathPrefix:drivers/usb/atm/]

Results:
map[Output:b72458a80c75 [PATCH] USB: Eagle and ADI 930 usb adsl modem driver
1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
48da7267ff16 [PATCH] USB ATM: port speedtch to new usbatm core
c59bba75fa50 [PATCH] USB ATM: new usbatm core
1da177e4c3f4 Linux-2.6.12-rc2
]

128/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27254
							output: 40
							thoughts: 29
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience, and delivered as a first-person summary:

**Digging into URB Unlinking**

Right, let me see... I'm tracing down this URB issue and I have a nagging feeling. I was focused on `usb_kill_urb`, assuming it was the go-to function. But hang on... wasn't that specific function, `usb_kill_urb`, only introduced in those *ancient* commits I was looking at? It seems like I'm focusing on the wrong function, now that I look back at it.

That's when it hit me... shouldn't I be primarily investigating `usb_unlink_urb` instead? That's the function that's generally used for *unlinking* an URB from its queue, rather than immediately terminating it, right? I need to go back and reassess those earlier traces and see if I was correctly identifying the functions used in those commits, or if I had gotten the functions mixed up!



129/2 2026/07/31 07:25 tool git-log
0m Args:
map[CodeRegexp:usb_unlink_urb Count:100 PathPrefix:drivers/usb/atm/]

Results:
map[Output:72a9f9a445d4 usb: usbatm: Convert timers to use timer_setup()
1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
48da7267ff16 [PATCH] USB ATM: port speedtch to new usbatm core
1da177e4c3f4 Linux-2.6.12-rc2
]

130/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27664
							output: 40
							thoughts: 10
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:

**Memory Management in USB URB Lifecycles**

Hmm, thinking about USB URBs... I'm mulling over a specific aspect of their lifecycle: **`usb_free_urb`**. It's a fundamental function, isn't it? The point at which resources tied to that URB are finally relinquished back to the system. From a performance perspective, I need to consider precisely what that function does under the hood. Does it perform the equivalent of a `kmem_cache_free()` call? Is it more complex? Does it involve de-allocating DMA mappings and other peripheral-specific resources, or does that happen earlier? Are we certain about the memory barriers required after deallocation? Are there any potential race conditions to worry about when an interrupt might occur during this process? I need to clarify the interaction between the URB itself, the associated buffers, and the device driver's context. I can't leave any room for memory leaks or dangling pointers. I should dig into the kernel source and make sure I'm fully aware of its nuances. It's a crucial point in the flow, I want to confirm that I have an intimate knowledge of that function.



131/2 2026/07/31 07:25 tool git-log
0m Args:
map[CodeRegexp:usb_free_urb Count:100 PathPrefix:drivers/usb/atm/]

Results:
map[Output:b72458a80c75 [PATCH] USB: Eagle and ADI 930 usb adsl modem driver
1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
48da7267ff16 [PATCH] USB ATM: port speedtch to new usbatm core
c59bba75fa50 [PATCH] USB ATM: new usbatm core
1da177e4c3f4 Linux-2.6.12-rc2
]

132/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28132
							output: 33
							thoughts: 51
						

Thoughts:
**Investigating USB ATM Driver Cleanup**

Okay, so I'm looking into potential issues within the USB ATM driver, specifically concerning the cleanup of URBs. It appears there haven't been any recent commits directly addressing URB cleanup in the general `drivers/usb/atm/` directory. That's a bit of a starting point to consider.

Now, my next step is to drill down. I'm going to focus on a likely culprit, `drivers/usb/atm/cxacru.c`. This file often contains device-specific handling, including the error paths. It's a prime location to find potential URB cleanup flaws stemming from incorrect error handling. I'll need to carefully examine the commit history of that specific file. Hopefully there's something to uncover.



133/2 2026/07/31 07:25 tool git-log
0m Args:
map[Count:100 PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
8d1b02e5d7e3 usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
41cb08555c41 treewide, timers: Rename from_timer() to timer_container_of()
aad823aa3a7d treewide, timers: Rename destroy_timer_on_stack() as timer_destroy_on_stack()
8fa7292fee5c treewide: Switch/rename to timer_delete[_sync]()
c90aad369899 usb: atm: cxacru: fix a flaw in existing endpoint checks
5f60d5f6bbc1 move asm/unaligned.h to linux/unaligned.h
2eabb655a968 usb: atm: cxacru: fix endpoint checking in cxacru_bind()
b274e2a44e16 usb: atm: cxacru: Fix typo in comment
6d4e3866b765 drivers: usb: atm: use atm_info() instead of atm_printk(KERN_INFO ...
3291eb7329b1 drivers: usb: atm: reduce noise
cb06b385d536 usb: atm: don't use snprintf() for sysfs attrs
0d9b6d49fe39 usb: Use fallthrough pseudo-keyword
e605c30977bb USB: atm: cxacru: convert to use dev_groups
6453f53b752a USB: atm: fix up some remaining DEVICE_ATTR() usage
72a9f9a445d4 usb: usbatm: Convert timers to use timer_setup()
4a8635ae08e8 USB: atm: Remove redundant license text
5fd54ace4721 USB: add SPDX identifiers to all remaining files in drivers/usb/
3a851c031296 usb: atm: cxacru: mark expected switch fall-throughs
6a29d4b94431 drivers: usb: atm: cxacru: use setup_timer() helper.
9acd6b2a343d USB: atm: remove unneeded MODULE_VERSION() usage
78f74f75bd80 usb: atm: remove unnecessary code
04e75e495644 usb: atm: cxacru: don't print on ENOMEM
8ebbbf2e5dc0 usb: atm: cxacru: don't print error when allocating urb fails
46e3cafb01fe USB: cxacru: fix an bounds check warning
cd32fbad6e3d USB: atm: cxacru: fix blank line after declaration
803a536243b3 usb: delete non-required instances of include <linux/init.h>
2a0ebf80aa95 USB: cxacru: potential underflow in cxacru_cm_get_array()
77c9e125b3c8 USB: cxacru.c: remove dbg() usage
65db43054065 USB: convert drivers/usb/* to use module_usb_driver()
afe2c511fb2d workqueue: convert cancel_rearming_delayed_work[queue]() users to cancel_delayed_work_sync()
92e32eaee288 cxacru: ignore cx82310_eth devices
902ffc3c707c USB: cxacru: Use a bulk/int URB to access the command endpoint
83a3ac866d69 usb: conexant: fixed spacing and brace coding style issues
676f3d268682 usb/atm/cxacru.c: call atm_dev_signal_change() when signal changes.
30fa3d8ed0a6 USB: cxacru: increment driver version
817db5b34e70 USB: cxacru: remove cxacru-cf.bin loader
4ac37208e9b3 USB: cxacru: add write-only sysfs attribute for modem configuration
885582c48e5f USB: cxacru: firmware writes on OHCI are slow, log progress
c68bb0d73889 USB: cxacru: document how to interact with the flash memory
9fc950d32238 USB: cxacru: check device isn't being removed during sysfs calls
5d0a9c7932c4 USB: cxacru: check data length is not negative
1bfbd283cd30 USB: cxacru: return an empty value for modulation if there is no connection
10107bd04fc8 USB: cxacru: Fix negative dB output
eeafa64b7a41 USB: atm/cxacru, fix lock imbalance
7c510e4b730a net: convert more to %pM
230ffc75b7b8 USB: cxacru: Fix printk format flag in error message
33578bd706e4 USB: AccessRunner: avoid unnecessary memset
3b216d186c6d cxacru: treat firmware data as const
fd05e720099e drivers/usb annotations and fixes
cdc977922891 USB: remove unnecessary type casting of urb->context
4ac0718e8382 USB: cxacru: Use appropriate logging for errors
3b79cc26708b USB: unkill cxacru atm driver
c35f68a05d09 USB: atm: cxacru: clean up urb->status usage
87e71b473ee1 USB: cxacru: Cleanup sysfs attribute code
fd209e35b741 USB: cxacru: ignore error trying to start ADSL in atm_start
da1f82b55437 USB: cxacru: create sysfs attributes in atm_start instead of bind
6a02c996bce2 USB: cxacru: ADSL state management
fa70fe44aba9 USB: cxacru: export detailed device info through sysfs
c4028958b6ec WorkStruct: make allyesconfig
44960af1b6ab cxacru: add the ZTE ZXDSL 852
7d12e780e003 IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
ab3c81ff639f [PATCH] USBATM: semaphore to mutex conversion
80aae7a17afd [PATCH] USBATM: allow isochronous transfer
9a734efec36c [PATCH] USBATM: kzalloc conversion
0dfcd3e4444e [PATCH] USBATM: remove .owner
35644b0cce0a [PATCH] USBATM: add flags field
0ec3c7e85631 [PATCH] USBATM: trivial modifications
75318d2d7cab [PATCH] USB: remove .owner field from struct usb_driver
d3420ba4930d [PATCH] Additional device ID for Conexant AccessRunner USB driver
b375a0495fd6 [PATCH] USB: URB_ASYNC_UNLINK flag removed from the kernel
322a95bc8eba [PATCH] USB ATM: line speed measured in Kb not Kib
1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
]

134/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30276
							output: 24
							thoughts: 28
						

Thoughts:
Here's a summary of my thought process, as if I were the one thinking it:

**Examining a Critical USB Fix**

Okay, time to dive into this commit hash: `eeafa64b7a41`. The description mentions a "fix [for] lock imbalance" specifically within the `atm/cxacru` driver related to USB. This immediately flags a potential area of concern. Lock imbalances, particularly in kernel-level drivers, can manifest in some nasty ways. They could lead to deadlocks, data corruption, performance degradation, or even subtle, intermittent issues that are a nightmare to debug. My expertise tells me that identifying the *exact* imbalance is crucial: is it a case of holding a lock for too long, acquiring locks in the wrong order, or releasing them prematurely? I need to understand the specifics of the `atm/cxacru` driver's locking strategy to fully assess the fix. Let's see what the commit changes look like. I'll need to scrutinize the lock acquisition and release points with extreme care. This will likely involve a deep dive into the code and potentially some reasoning with a debugger if things are subtle. This is a critical USB fix and it needs a thorough analysis.



135/2 2026/07/31 07:25 tool git-show
0m Args:
map[Commit:eeafa64b7a41]

Results:
map[Output:commit eeafa64b7a4134da24d48ed944e48541f8171152
Author: Jiri Slaby <jirislaby@kernel.org>
Date:   Wed Mar 11 21:47:36 2009 +0100

    USB: atm/cxacru, fix lock imbalance
    
    We do not hold mutex in one place in cxacru_cm, but unlock it on fail path.
    Fix this.
    
    Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
    Cc: Simon Arlott <cxacru@fire.lp0.eu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 5ed4ae07bac1..6789089e2461 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -485,7 +485,7 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 			usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 				wbuflen, rbuflen);
 		ret = -ENOMEM;
-		goto fail;
+		goto err;
 	}
 
 	mutex_lock(&instance->cm_serialize);
@@ -565,6 +565,7 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	dbg("cm %#x", cm);
 fail:
 	mutex_unlock(&instance->cm_serialize);
+err:
 	return ret;
 }
 
]

136/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31087
							output: 27
							thoughts: 43
						

Thoughts:
Okay, here's my interpretation of that.

**Analyzing a Simple Lock Imbalance Fix**

Alright, this looks like a straightforward fix for a lock imbalance, likely a classic concurrency issue. Let's dig in. I'm going to start by examining `c35f68a05d09` – that commit, specifically "USB: atm: cxacru: clean up urb->status usage". That's a reasonable starting point. The description strongly suggests this commit is related and should illuminate the lock usage and how the imbalance was corrected, so I'll review that change carefully.



137/2 2026/07/31 07:25 tool git-show
0m Args:
map[Commit:c35f68a05d09]

Results:
map[Output:commit c35f68a05d0916e89ae2aab1a456f96fea9190cd
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date:   Wed Jul 18 10:58:02 2007 -0700

    USB: atm: cxacru: clean up urb->status usage
    
    This done in anticipation of removal of urb->status, which will make
    that patch easier to review and apply in the future.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 1bc884051e0f..02c52f8d5dbf 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -456,7 +456,7 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 				 int* actual_length)
 {
 	struct timer_list timer;
-	int status;
+	int status = urb->status;
 
 	init_timer(&timer);
 	timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT);
@@ -464,7 +464,6 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 	timer.function = cxacru_timeout_kill;
 	add_timer(&timer);
 	wait_for_completion(done);
-	status = urb->status;
 	del_timer_sync(&timer);
 
 	if (actual_length)
]

138/2 2026/07/31 07:25 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31759
							output: 23
							thoughts: 40
						

Thoughts:
Okay, here's my take on those thoughts, framed as my own reasoning:

**Cleaning Up a Quick One**

Right, this is just a quick housekeeping item. Nothing earth-shattering, just tidying things up. Let's see what we've got in `8ebbbf2e5dc0`. Looks like it's in the USB subsystem, specifically the ATM driver for the cxacru chipset. The commit message indicates it's addressing a situation where we were being overly verbose by printing an error message when `urb` allocation fails. Okay, let's refresh my memory on the reasoning behind that decision and see what the fix entails. Probably dealing with a specific error handling branch.



139/2 2026/07/31 07:26 tool git-show
0m Args:
map[Commit:8ebbbf2e5dc0]

Results:
map[Output:commit 8ebbbf2e5dc01599dcbf520463e9688e74133ad3
Author: Wolfram Sang <wsa-dev@sang-engineering.com>
Date:   Thu Aug 11 23:14:32 2016 +0200

    usb: atm: cxacru: don't print error when allocating urb fails
    
    kmalloc will print enough information in case of failure.
    
    Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 0a866e90b49c..18b281d73a39 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -1168,13 +1168,11 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
 	}
 	instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
 	if (!instance->rcv_urb) {
-		usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_urb\n");
 		ret = -ENOMEM;
 		goto fail;
 	}
 	instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
 	if (!instance->snd_urb) {
-		usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_urb\n");
 		ret = -ENOMEM;
 		goto fail;
 	}
]

140/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32452
							output: 24
							thoughts: 32
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing the Relevant Context**

Hmm, "Not related" – that's a quick dismissal. I need to understand *why* that conclusion was reached. Was the initial context completely off-base, or did the subsequent analysis reveal a lack of connection? I'll have to keep that in mind when judging the overall validity.

Okay, let's dive into the detail, specifically examining commit `46e3cafb01fe`. Based on the context "USB: cxacru: fix an bounds check warning" I am already suspecting that this has to do with some kind of USB error. This sounds potentially relevant. I'm guessing the commit fixes a buffer overflow or some other boundary issue, probably within the `cxacru` driver. A bound check warning is a definite red flag. It could indicate a vulnerability, especially in a USB device driver, which often interacts with untrusted data from the connected device. This sounds like it may have the potential to be relevant. My attention is already at high alert to see if the issue is applicable.



141/2 2026/07/31 07:26 tool git-show
0m Args:
map[Commit:46e3cafb01fe]

Results:
map[Output:commit 46e3cafb01feb107a681e89fd9b4f1cd938a601f
Author: Dan Carpenter <error27@gmail.com>
Date:   Sat Jan 30 17:34:55 2016 +0300

    USB: cxacru: fix an bounds check warning
    
    This is a privileged operation so it doesn't matter much.  We use "tmp"
    as an offset into an array.  If it were invalid we could read out of
    bounds and trigger an oops if the memory is not mapped.  Plus it makes
    static checkers complain.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 1173f9cbc137..0a866e90b49c 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -476,6 +476,8 @@ static ssize_t cxacru_sysfs_store_adsl_config(struct device *dev,
 			return -EINVAL;
 		if (index < 0 || index > 0x7f)
 			return -EINVAL;
+		if (tmp < 0 || tmp > len - pos)
+			return -EINVAL;
 		pos += tmp;
 
 		/* skip trailing newline */
]

142/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33170
							output: 25
							thoughts: 41
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue:

**Quick Scan & Divergence**

Hmm, "Not related"... that's a quick dismissal. I usually don't jump to conclusions that fast, but okay, I'll take that at face value for now. Gotta stay focused; I can always loop back later if something nags.

Right, let's pivot and look at `2a0ebf80aa95`. Oh, *that* one. USB: cxacru, specifically the "potential underflow in cxacru_cm_get_array()" call. Yup, I remember this. Always worth a double-check. Time to dig deeper and see if my expertise is needed.



143/2 2026/07/31 07:26 tool git-show
0m Args:
map[Commit:2a0ebf80aa95]

Results:
map[Output:commit 2a0ebf80aa95cc758d4725f74a7016e992606a39
Author: Dan Carpenter <error27@gmail.com>
Date:   Sun May 19 21:52:20 2013 +0300

    USB: cxacru: potential underflow in cxacru_cm_get_array()
    
    The value of "offd" comes off the instance->rcv_buf[] and we used it as
    the offset into an array.  The problem is that we check the upper bound
    but not for negative values.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index b7eb86ad6bf2..8a7eb77233b4 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -686,7 +686,8 @@ static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_requ
 {
 	int ret, len;
 	__le32 *buf;
-	int offb, offd;
+	int offb;
+	unsigned int offd;
 	const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
 	int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
 
]

144/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33862
							output: 26
							thoughts: 40
						

Thoughts:
Okay, let's see what we have here.

**Initial Assessment: Irrelevant & A Quick Divergence**

Hmm, the initial prompt seems unrelated to any ongoing task or problem I'm currently considering. It feels like a non-starter. But, given the prompt, let's check `fd209e35b741`. It seems to be related to USB and cxacru, likely some low-level network or modem driver behavior; specifically, it looks like it addresses an error related to starting ADSL, possibly in an ATM context. Let's briefly look into it.



145/2 2026/07/31 07:26 tool git-show
0m Args:
map[Commit:fd209e35b741]

Results:
map[Output:commit fd209e35b74110ee1f3371838b0782b5b02eaaba
Author: Simon Arlott <simon@octiron.net>
Date:   Thu May 10 23:04:13 2007 -0700

    USB: cxacru: ignore error trying to start ADSL in atm_start
    
    The sysfs adsl_status attribute ignores (aside from returning -EIO to the
    user) any error sending a START/STOP command to the device and there is at
    least one firmware which never sends a response but appears to work
    regardless.  Therefore atm_start should also continue if an error is received
    so that such firmware is usable.
    
    The official Conexant driver doesn't expect a reply either but this is for
    another device (E2 router) and a commonly used firmware does respond.
    
    Also, there is no point in changing -ECONNRESET to -ETIMEDOUT since nothing
    ever checks for either of these values.
    
    Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
    Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 68cf582fd4fa..8bcf7fe1dd80 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -476,8 +476,6 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 	add_timer(&timer);
 	wait_for_completion(done);
 	status = urb->status;
-	if (status == -ECONNRESET)
-		status = -ETIMEDOUT;
 	del_timer_sync(&timer);
 
 	if (actual_length)
@@ -671,11 +669,8 @@ static int cxacru_atm_start(struct usbatm_data *usbatm_instance,
 	/* start ADSL */
 	mutex_lock(&instance->adsl_state_serialize);
 	ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_START, NULL, 0, NULL, 0);
-	if (ret < 0) {
+	if (ret < 0)
 		atm_err(usbatm_instance, "cxacru_atm_start: CHIP_ADSL_LINE_START returned %d\n", ret);
-		mutex_unlock(&instance->adsl_state_serialize);
-		return ret;
-	}
 
 	/* Start status polling */
 	mutex_lock(&instance->poll_state_serialize);
]

146/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34824
							output: 31
							thoughts: 335
						

Thoughts:
**Analyzing a USB ATM Driver Bug**

Okay, so I'm looking at this commit, and it's ignoring the error return from `cxacru_cm` when requesting the ADSL line start. Hang on a second, the bug report says there's a problem in `cxacru_atm_start()` where the error is printed but then...ignored! And hey, this commit, `fd209e35b741`, that's *exactly* the one that introduced the error-ignoring behavior in `cxacru_atm_start()` which in turn leads to the subsequent call of `cxacru_poll_status()` even if `cxacru_cm()` failed earlier.

Ah, I see. `cxacru_cm()` failed, but it left the receive URB active. Then, `cxacru_poll_status()` calls `cxacru_cm_get_array()`, which calls `cxacru_cm()` *again* and that tries to resubmit the same URB, causing the warning! The root cause seems to be that `cxacru_cm()` doesn't clean up the URB when it errors, and the subsequent function calls don't handle the error properly.

So the fix is to make sure `cxacru_cm()` kills the URB on error, which makes perfect sense. The proposed patch addresses this by cleaning up the URB within the `cxacru_cm` function itself. Now, this likely resolves the immediate issue but this smells like a potential pattern.

Given that this is an ATM driver, I'm going to have to do a quick scan of the other functions within this driver. Let's see... I'll check `usbatm.c` to see if there's any other similar instances where URBs might be left in a problematic state. Hopefully, this fix can provide a good approach to address the existing bug and prevent similar ones in the future.



147/2 2026/07/31 07:26 tool grepper
0m Args:
map[Expression:usb_kill_urb PathPrefix:drivers/usb/atm/]

Results:
map[Output:drivers/usb/atm/cxacru.c=1230=static void cxacru_unbind(struct usbatm_data *usbatm_instance,
--
drivers/usb/atm/cxacru.c-1257-
drivers/usb/atm/cxacru.c:1258:	usb_kill_urb(instance->snd_urb);
drivers/usb/atm/cxacru.c:1259:	usb_kill_urb(instance->rcv_urb);
drivers/usb/atm/cxacru.c-1260-	usb_free_urb(instance->snd_urb);
--
drivers/usb/atm/speedtch.c=687=static void speedtch_atm_stop(struct usbatm_data *usbatm, struct atm_dev *atm_dev)
--
drivers/usb/atm/speedtch.c-701-	mb();
drivers/usb/atm/speedtch.c:702:	usb_kill_urb(int_urb);
drivers/usb/atm/speedtch.c-703-	timer_delete_sync(&instance->resubmit_timer);
--
drivers/usb/atm/speedtch.c-708-	 */
drivers/usb/atm/speedtch.c:709:	usb_kill_urb(int_urb);
drivers/usb/atm/speedtch.c-710-	timer_delete_sync(&instance->resubmit_timer);
--
drivers/usb/atm/ueagle-atm.c=2096=static int uea_boot(struct uea_softc *sc, struct usb_interface *intf)
--
drivers/usb/atm/ueagle-atm.c-2160-err2:
drivers/usb/atm/ueagle-atm.c:2161:	usb_kill_urb(sc->urb_int);
drivers/usb/atm/ueagle-atm.c-2162-err1:
--
drivers/usb/atm/ueagle-atm.c=2173=static void uea_stop(struct uea_softc *sc)
--
drivers/usb/atm/ueagle-atm.c-2181-
drivers/usb/atm/ueagle-atm.c:2182:	usb_kill_urb(sc->urb_int);
drivers/usb/atm/ueagle-atm.c-2183-	kfree(sc->urb_int->transfer_buffer);
--
drivers/usb/atm/usbatm.c=1207=void usbatm_usb_disconnect(struct usb_interface *intf)
--
drivers/usb/atm/usbatm.c-1237-	for (i = 0; i < num_rcv_urbs + num_snd_urbs; i++)
drivers/usb/atm/usbatm.c:1238:		usb_kill_urb(instance->urbs[i]);
drivers/usb/atm/usbatm.c-1239-
]

148/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36355
							output: 44
							thoughts: 135
						

Thoughts:
**Analyzing USB Error Path Fixes**

Okay, so the task at hand is to dig into the history of fixes related to similar bugs within the USB subsystem, specifically focusing on error paths. The prompt wants me to identify recurring patterns, idioms, or locking rules that have been applied to resolve these kinds of issues in the past. Essentially, it's asking me to become a bug-fixing archeologist, reconstructing best practices from the fossil record of commits.

The most efficient starting point, given the context, seems to be a focused search. Rather than casting a wide net initially, I'll begin by targeting a known function, `usb_kill_urb`, within the `drivers/usb/` directory. This function is likely a key point of failure. I'll need to expand my search terms to include error path investigations. This approach should help uncover instances where similar errors in USB handling have been addressed.

My ultimate goal, of course, isn't just to find *fixes*, but to understand *why* those fixes worked. I want to extract the underlying principles. Was it a missing lock, incorrect reference counting, a flaw in the error handling logic, or some other common pitfall? I'm looking for the *root cause* and how it was addressed in previous USB-related fixes. If nothing turns up I'll have to make that explicit in the final response.



149/2 2026/07/31 07:26 tool git-log
0m Args:
map[CodeRegexp:usb_kill_urb Count:50 PathPrefix:drivers/usb/ Since:3 years]

Results:
map[Output:42a97c0480f9 USB: serial: keyspan_pda: fix data loss on receive throttling
c602254ba4c1 USB: iowarrior: fix use-after-free on disconnect race
1be3b77de4eb usb: image: mdc800: kill download URB on timeout
121a0f839dbb usb: misc: Add Intel USBIO bridge driver
47c83f95f3e2 usb: core: Remove unused usb_unlink_anchored_urbs
c15a688e4998 USB: serial: mos7840: fix crash on resume
acd6199f195d usb: Add support for Intel LJCA device
]

150/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37013
							output: 24
							thoughts: 33
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in the weeds on a USB driver issue:

**Deep Dive: Timeout Kill**

Alright, time to dive into this one: `1be3b77de4eb`. "usb: image: mdc800: kill download URB on timeout." Right, so we're talking about a USB image transfer, likely related to the MDC800 device, and specifically what happens when a download request times out. That's a good starting point. I need to understand what's triggering this timeout and where the code attempts to address the problem, specifically the "kill download URB" part.

I'm assuming this patch addresses a scenario where the USB transfer isn't completing within the expected timeframe. Is it the host side or the device side that's causing the delay? Does the patch provide a mechanism to clean up, prevent further errors, or does it attempt to retry? What's the impact of this "kill" operation? Does it correctly free resources, or could it leave things in a corrupted state? My first line of investigation will be to examine the surrounding code to determine how this patch fits into the overall process.



151/2 2026/07/31 07:26 tool git-show
0m Args:
map[Commit:1be3b77de4eb]

Results:
map[Output:commit 1be3b77de4eb89af8ae2fd6610546be778e25589
Author: Ziyi Guo <n7l8m4@u.northwestern.edu>
Date:   Mon Feb 9 15:19:37 2026 +0000

    usb: image: mdc800: kill download URB on timeout
    
    mdc800_device_read() submits download_urb and waits for completion.
    If the timeout fires and the device has not responded, the function
    returns without killing the URB, leaving it active.
    
    A subsequent read() resubmits the same URB while it is still
    in-flight, triggering the WARN in usb_submit_urb():
    
      "URB submitted while active"
    
    Check the return value of wait_event_timeout() and kill the URB if
    it indicates timeout, ensuring the URB is complete before its status
    is inspected or the URB is resubmitted.
    
    Similar to
    - commit 372c93131998 ("USB: yurex: fix control-URB timeout handling")
    - commit b98d5000c505 ("media: rc: iguanair: handle timeouts")
    
    Signed-off-by: Ziyi Guo <n7l8m4@u.northwestern.edu>
    Cc: stable <stable@kernel.org>
    Link: https://patch.msgid.link/20260209151937.2247202-1-n7l8m4@u.northwestern.edu
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c
index e76a502fa9da..ca287b770e8c 100644
--- a/drivers/usb/image/mdc800.c
+++ b/drivers/usb/image/mdc800.c
@@ -730,9 +730,11 @@ static ssize_t mdc800_device_read (struct file *file, char __user *buf, size_t l
 					mutex_unlock(&mdc800->io_lock);
 					return len-left;
 				}
-				wait_event_timeout(mdc800->download_wait,
+				retval = wait_event_timeout(mdc800->download_wait,
 				     mdc800->downloaded,
 				     msecs_to_jiffies(TO_DOWNLOAD_GET_READY));
+				if (!retval)
+					usb_kill_urb(mdc800->download_urb);
 				mdc800->downloaded = 0;
 				if (mdc800->download_urb->status != 0)
 				{
]

152/2 2026/07/31 07:26 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38082
							output: 27
							thoughts: 142
						

Thoughts:
**USB URB Timeout Handling - A Familiar Pattern**

Alright, this is crystal clear. I'm seeing the same underlying issue pop up again: "kill download URB on timeout." Basically, if a USB Request Block (URB) times out while waiting, the system leaves the URB active, which is, of course, a problem. The correct solution, as always, is to call `usb_kill_urb()` in the error handling path.

The commit message is smart; it's pointing to previous instances of this same class of issue. Looks like we have two very similar commits to look at for some comparison: `372c93131998` ("USB: yurex: fix control-URB timeout handling") and `b98d5000c505` ("media: rc: iguanair: handle timeouts"). Let's focus our attention on `372c93131998` first and see what lessons we can learn from that. This feels like it will likely be a good starting point for our investigation.



153/2 2026/07/31 07:27 tool git-show
0m Args:
map[Commit:372c93131998]

Results:
map[Output:commit 372c93131998c0622304bed118322d2a04489e63
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Dec 14 11:30:53 2020 +0100

    USB: yurex: fix control-URB timeout handling
    
    Make sure to always cancel the control URB in write() so that it can be
    reused after a timeout or spurious CMD_ACK.
    
    Currently any further write requests after a timeout would fail after
    triggering a WARN() in usb_submit_urb() when attempting to submit the
    already active URB.
    
    Reported-by: syzbot+e87ebe0f7913f71f2ea5@syzkaller.appspotmail.com
    Fixes: 6bc235a2e24a ("USB: add driver for Meywa-Denki & Kayac YUREX")
    Cc: stable <stable@vger.kernel.org>     # 2.6.37
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
index 73ebfa6e9715..c640f98d20c5 100644
--- a/drivers/usb/misc/yurex.c
+++ b/drivers/usb/misc/yurex.c
@@ -496,6 +496,9 @@ static ssize_t yurex_write(struct file *file, const char __user *user_buffer,
 		timeout = schedule_timeout(YUREX_WRITE_TIMEOUT);
 	finish_wait(&dev->waitq, &wait);
 
+	/* make sure URB is idle after timeout or (spurious) CMD_ACK */
+	usb_kill_urb(dev->cntl_urb);
+
 	mutex_unlock(&dev->io_mutex);
 
 	if (retval < 0) {
]

154/2 2026/07/31 07:27 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39046
							output: 27
							thoughts: 61
						

Thoughts:
Okay, let's break this down.

**Analyzing a USB Write Request Failure Pattern**

Alright, I'm seeing a recurring issue here. It looks like we've got a consistent failure pattern with USB write requests after a timeout occurs. Specifically, any subsequent write attempts *after* that initial timeout are failing. This triggers a `WARN()` message within `usb_submit_urb()`, which suggests that we're trying to submit a Universal Serial Bus Request Block (URB) that's already in an active state. That's not good. We are probably dealing with a double submission.

My next step is to dig into the commit `b98d5000c505`. That's where I need to start to understand the history of this particular piece of code and to look for any clues to the origin of this problem. This could be where the bug was introduced, or where some related refactoring occurred that exposed a pre-existing issue. I'll need to review the changes carefully for any potential race conditions, incorrect state handling, or assumptions that could be leading to this. Let's get to work.



155/2 2026/07/31 07:27 tool git-show
0m Args:
map[Commit:b98d5000c505]

Results:
map[Output:commit b98d5000c50544f14bacb248c34e5219fbe81287
Author: Oliver Neukum <oneukum@suse.com>
Date:   Tue Nov 26 14:17:22 2024 +0100

    media: rc: iguanair: handle timeouts
    
    In case of a timeout the IO must be cancelled or
    the next IO using the URB will fail and/or overwrite
    an operational URB.
    
    The automatic bisection fails because it arrives
    at a commit that correctly lets the test case run
    without an error.
    
    Signed-off-by: Oliver Neukum <oneukum@suse.com>
    Fixes: e99a7cfe93fd ("[media] iguanair: reuse existing urb callback for command responses")
    Reported-by: syzbot+ffba8e636870dac0e0c0@syzkaller.appspotmail.com
    Closes: https://lore.kernel.org/all/66f5cc9a.050a0220.46d20.0004.GAE@google.com/
    Tested-by: syzbot+ffba8e636870dac0e0c0@syzkaller.appspotmail.com
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c
index 276bf3c8a8cb..8af94246e591 100644
--- a/drivers/media/rc/iguanair.c
+++ b/drivers/media/rc/iguanair.c
@@ -194,8 +194,10 @@ static int iguanair_send(struct iguanair *ir, unsigned size)
 	if (rc)
 		return rc;
 
-	if (wait_for_completion_timeout(&ir->completion, TIMEOUT) == 0)
+	if (wait_for_completion_timeout(&ir->completion, TIMEOUT) == 0) {
+		usb_kill_urb(ir->urb_out);
 		return -ETIMEDOUT;
+	}
 
 	return rc;
 }
]

156/2 2026/07/31 07:27 llm history-explorer
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39992
							output: 44
							thoughts: 686
						

Thoughts:
**My Analysis of the USB URB Error Handling Pattern**

Okay, here's what I've distilled from this. I'm seeing a clear and recurring pattern in USB driver code. It's a classic: when a driver submits an URB, waits for it, and then hits an error *during* that wait or immediately *after* (like a timeout, a secondary URB failure, or an issue when waiting for the first URB), the driver **must** immediately and explicitly clean up by using `usb_kill_urb()` on *all* submitted URBs before bailing out and returning that error. Otherwise, those URBs are left hanging. And if the driver then tries to reuse that URB laterβ€”maybe in a subsequent call, or even just in a polling loopβ€”it's going to trigger the dreaded "URB submitted while active" warning in `usb_submit_urb()`. It's like leaving a thread un-joined; it causes contention later.

Specifically, in this `cxacru_cm()` case, it submits both `rcv_urb` and `snd_urb`. The problem is that if `snd_urb` fails to submit or complete, the function correctly returns an error. But it doesn't take the time to clean up `rcv_urb`, leaving it active and waiting for who knows what? The fix is glaringly obvious: just add a `usb_kill_urb(instance->rcv_urb)` call in that error path. Simple as that.

I've done some digging, and this isn't a one-off. I can trace it back to a commit that introduced a subtle bug by ignoring a return code and thus leaving the URB in an active state.

I expanded the search to the entire `drivers/usb/` subsystem and found several related commits: I've seen fixes like this before: ("usb: image: mdc800: kill download URB on timeout", "USB: yurex: fix control-URB timeout handling", "media: rc: iguanair: handle timeouts"). All of these exhibit the same fundamental flaw and the same crucial correction. The pattern is consistent.

The real beauty here is that `usb_kill_urb()` is robust. It's safe to call unconditionally, even if the URB *isn't* actually active (maybe it already completed, or was never submitted in the first place). This means we can just drop it into the error cleanup code without worrying about edge cases or extra checks. This makes it a very useful defensive programming tool.

Just to be absolutely sure, I'll double-check for any more similar commits in `drivers/usb/`. It's always good to be thorough.



157/2 2026/07/31 07:28 tool git-log
0m Args:
map[CodeRegexp:usb_kill_urb Count:10 PathPrefix:drivers/usb/ Since:3 years]

Results:
map[Output:42a97c0480f9 USB: serial: keyspan_pda: fix data loss on receive throttling
c602254ba4c1 USB: iowarrior: fix use-after-free on disconnect race
1be3b77de4eb usb: image: mdc800: kill download URB on timeout
121a0f839dbb usb: misc: Add Intel USBIO bridge driver
47c83f95f3e2 usb: core: Remove unused usb_unlink_anchored_urbs
c15a688e4998 USB: serial: mos7840: fix crash on resume
acd6199f195d usb: Add support for Intel LJCA device
]

158/2 2026/07/31 07:28 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41493
							output: 26
							thoughts: 164
						

Thoughts:
**Analyzing USB Driver Code**

Okay, let's see... looking back over the last three years in the `drivers/usb/` directory, the commit hash `1be3b77de4eb` is the only one that perfectly fits the search criteria. Interesting. The other two, `372c93131998` and `b98d5000c505`, were only found because they were mentioned in the commit message of `1be3b77de4eb`, so they're not directly matching the pattern. Also, it's worth noting that `b98d5000c505` lives in `drivers/media/rc/iguanair.c`, which is a different USB driver. Hmm, could be relevant.

Now, let's shift gears and check out `c602254ba4c1` β€” that commit looks like it addresses a use-after-free issue on disconnect within the USB iowarrior driver. Good starting point.



159/2 2026/07/31 07:28 tool git-show
0m Args:
map[Commit:c602254ba4c1]

Results:
map[Output:commit c602254ba4c10f60a73cd99d147874f86a3f485c
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Jun 22 17:26:09 2026 +0200

    USB: iowarrior: fix use-after-free on disconnect race
    
    mutex_unlock() may access the mutex structure after releasing the lock
    and therefore cannot be used to manage lifetime of objects directly
    (unlike spinlocks and refcounts). [1][2]
    
    Use a kref to release the driver data to avoid use-after-free in
    mutex_unlock() when release() races with disconnect().
    
    [1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic")
    [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most
                       other sleeping locks, can still use the lock object
                       after it's unlocked")
    
    Fixes: 946b960d13c1 ("USB: add driver for iowarrior devices.")
    Cc: stable <stable@kernel.org>
    Reported-by: Yue Sun <samsun1006219@gmail.com>
    Link: https://lore.kernel.org/r/20260618080204.38322-1-samsun1006219@gmail.com
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Link: https://patch.msgid.link/20260622152612.116422-2-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index 88c6d1d1da11..de2b236ef903 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -72,6 +72,7 @@ static struct usb_driver iowarrior_driver;
 
 /* Structure to hold all of our device specific stuff */
 struct iowarrior {
+	struct kref kref;
 	struct mutex mutex;			/* locks this structure */
 	struct usb_device *udev;		/* save off the usb device pointer */
 	struct usb_interface *interface;	/* the interface for this device */
@@ -240,8 +241,10 @@ static void iowarrior_write_callback(struct urb *urb)
 /*
  *	iowarrior_delete
  */
-static inline void iowarrior_delete(struct iowarrior *dev)
+static inline void iowarrior_delete(struct kref *kref)
 {
+	struct iowarrior *dev = container_of(kref, struct iowarrior, kref);
+
 	kfree(dev->int_in_buffer);
 	usb_free_urb(dev->int_in_urb);
 	kfree(dev->read_queue);
@@ -637,6 +640,9 @@ static int iowarrior_open(struct inode *inode, struct file *file)
 	}
 	/* increment our usage count for the driver */
 	++dev->opened;
+
+	kref_get(&dev->kref);
+
 	/* save our object in the file's private structure */
 	file->private_data = dev;
 	retval = 0;
@@ -652,7 +658,6 @@ static int iowarrior_open(struct inode *inode, struct file *file)
 static int iowarrior_release(struct inode *inode, struct file *file)
 {
 	struct iowarrior *dev;
-	int retval = 0;
 
 	dev = file->private_data;
 	if (!dev)
@@ -660,29 +665,18 @@ static int iowarrior_release(struct inode *inode, struct file *file)
 
 	/* lock our device */
 	mutex_lock(&dev->mutex);
+	dev->opened = 0;	/* we're closing now */
 
-	if (dev->opened <= 0) {
-		retval = -ENODEV;	/* close called more than once */
-		mutex_unlock(&dev->mutex);
-	} else {
-		dev->opened = 0;	/* we're closing now */
-		retval = 0;
-		if (dev->present) {
-			/*
-			   The device is still connected so we only shutdown
-			   pending read-/write-ops.
-			 */
-			usb_kill_urb(dev->int_in_urb);
-			wake_up_interruptible(&dev->read_wait);
-			wake_up_interruptible(&dev->write_wait);
-			mutex_unlock(&dev->mutex);
-		} else {
-			/* The device was unplugged, cleanup resources */
-			mutex_unlock(&dev->mutex);
-			iowarrior_delete(dev);
-		}
+	if (dev->present) {
+		usb_kill_urb(dev->int_in_urb);
+		wake_up_interruptible(&dev->read_wait);
+		wake_up_interruptible(&dev->write_wait);
 	}
-	return retval;
+	mutex_unlock(&dev->mutex);
+
+	kref_put(&dev->kref, iowarrior_delete);
+
+	return 0;
 }
 
 static __poll_t iowarrior_poll(struct file *file, poll_table * wait)
@@ -767,6 +761,7 @@ static int iowarrior_probe(struct usb_interface *interface,
 	if (!dev)
 		return retval;
 
+	kref_init(&dev->kref);
 	mutex_init(&dev->mutex);
 
 	atomic_set(&dev->intr_idx, 0);
@@ -885,7 +880,8 @@ static int iowarrior_probe(struct usb_interface *interface,
 	return retval;
 
 error:
-	iowarrior_delete(dev);
+	kref_put(&dev->kref, iowarrior_delete);
+
 	return retval;
 }
 
@@ -909,19 +905,14 @@ static void iowarrior_disconnect(struct usb_interface *interface)
 	usb_kill_anchored_urbs(&dev->submitted);
 
 	if (dev->opened) {
-		/* There is a process that holds a filedescriptor to the device ,
-		   so we only shutdown read-/write-ops going on.
-		   Deleting the device is postponed until close() was called.
-		 */
 		usb_kill_urb(dev->int_in_urb);
 		wake_up_interruptible(&dev->read_wait);
 		wake_up_interruptible(&dev->write_wait);
-		mutex_unlock(&dev->mutex);
-	} else {
-		/* no process is using the device, cleanup now */
-		mutex_unlock(&dev->mutex);
-		iowarrior_delete(dev);
 	}
+
+	mutex_unlock(&dev->mutex);
+
+	kref_put(&dev->kref, iowarrior_delete);
 }
 
 /* usb specific object needed to register this driver with the usb subsystem */
]

160/2 2026/07/31 07:28 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43846
							output: 27
							thoughts: 50
						

Thoughts:
Here's my analysis of the provided context, framed as my own thought process:

**Diving into Kernel Concurrency and Resource Management**

Okay, so we're looking at a situation involving `kref` and `mutex_unlock`. My immediate thought is, this likely involves a resource management scenario, probably within the context of a kernel module, specifically around how the driver uses reference counting and mutexes to protect shared data structures. This suggests we're dealing with concurrent access and potential race conditions. The combination of `kref` and `mutex_unlock` often indicates a critical section managed with a lock, and the need to release the mutex when a resource is freed using reference counting.

Let's see what `42a97c0480f9` tells us. USB, serial, keyspan_pda... aha! This looks like a fix related to a specific USB-to-serial driver, Keyspan PDA. The commit message indicates that data loss happens with receive throttling, which means it likely has some design flaw in handling input buffer and concurrent access to the receive buffer.
I'll probably need to look into this commit to understand how the mutex and reference counting are used in context with the receive buffer and any related data structures. This particular commit likely addresses a race condition, where data is being written and read from the input buffer at the same time and the buffer is freed too early, causing data loss.



161/2 2026/07/31 07:28 tool git-show
0m Args:
map[Commit:42a97c0480f9]

Results:
map[Output:commit 42a97c0480f96a2977e6d51ce512adc780f1ef5d
Author: Johan Hovold <johan@kernel.org>
Date:   Wed Jul 8 16:31:35 2026 +0200

    USB: serial: keyspan_pda: fix data loss on receive throttling
    
    Killing the interrupt-in urb when the line disciple requests throttling
    may lead to data loss if an ongoing transfer is cancelled.
    
    Instead set a flag to prevent the completion handler from resubmitting
    the urb until the port is unthrottled.
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Cc: stable@vger.kernel.org
    Signed-off-by: Johan Hovold <johan@kernel.org>

diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c
index f05bcce60600..dd4cfd17f7ad 100644
--- a/drivers/usb/serial/keyspan_pda.c
+++ b/drivers/usb/serial/keyspan_pda.c
@@ -33,6 +33,8 @@ struct keyspan_pda_private {
 	struct work_struct	unthrottle_work;
 	struct usb_serial	*serial;
 	struct usb_serial_port	*port;
+	bool			throttled;
+	bool			throttle_req;
 };
 
 static int keyspan_pda_write_start(struct usb_serial_port *port);
@@ -148,6 +150,7 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
 	int retval;
 	int status = urb->status;
 	struct keyspan_pda_private *priv;
+	bool throttled = false;
 	unsigned long flags;
 
 	priv = usb_get_serial_port_data(port);
@@ -209,16 +212,24 @@ static void keyspan_pda_rx_interrupt(struct urb *urb)
 	}
 
 exit:
-	retval = usb_submit_urb(urb, GFP_ATOMIC);
-	if (retval)
-		dev_err(&port->dev,
-			"%s - usb_submit_urb failed with result %d\n",
-			__func__, retval);
+	spin_lock_irqsave(&port->lock, flags);
+	if (priv->throttle_req) {
+		priv->throttled = true;
+		throttled = true;
+	}
+	spin_unlock_irqrestore(&port->lock, flags);
+
+	if (!throttled) {
+		retval = usb_submit_urb(urb, GFP_ATOMIC);
+		if (retval)
+			dev_err(&port->dev, "failed to resubmit in urb: %d\n", retval);
+	}
 }
 
 static void keyspan_pda_rx_throttle(struct tty_struct *tty)
 {
 	struct usb_serial_port *port = tty->driver_data;
+	struct keyspan_pda_private *priv = usb_get_serial_port_data(port);
 
 	/*
 	 * Stop receiving characters. We just turn off the URB request, and
@@ -228,16 +239,29 @@ static void keyspan_pda_rx_throttle(struct tty_struct *tty)
 	 * send an XOFF, although it might make sense to foist that off upon
 	 * the device too.
 	 */
-	usb_kill_urb(port->interrupt_in_urb);
+	spin_lock_irq(&port->lock);
+	priv->throttle_req = true;
+	spin_unlock_irq(&port->lock);
 }
 
 static void keyspan_pda_rx_unthrottle(struct tty_struct *tty)
 {
 	struct usb_serial_port *port = tty->driver_data;
+	struct keyspan_pda_private *priv = usb_get_serial_port_data(port);
+	bool throttled;
+	int ret;
 
-	/* just restart the receive interrupt URB */
-	if (usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL))
-		dev_dbg(&port->dev, "usb_submit_urb(read urb) failed\n");
+	spin_lock_irq(&port->lock);
+	throttled = priv->throttled;
+	priv->throttled = false;
+	priv->throttle_req = false;
+	spin_unlock_irq(&port->lock);
+
+	if (throttled) {
+		ret = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
+		if (ret)
+			dev_err(&port->dev, "failed to submit in urb: %d\n", ret);
+	}
 }
 
 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud)
@@ -577,6 +601,8 @@ static int keyspan_pda_open(struct tty_struct *tty,
 
 	spin_lock_irq(&port->lock);
 	priv->tx_room = rc;
+	priv->throttled = false;
+	priv->throttle_req = false;
 	spin_unlock_irq(&port->lock);
 
 	rc = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
]

162/2 2026/07/31 07:28 llm history-explorer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45651
							output: 841
							thoughts: 661
						

Thoughts:
**Analyzing the `URB submitted while active` Bug and Kernel Idioms**

Okay, so I'm looking at this issue where we're getting a "URB submitted while active" warning, and it seems the root cause is straightforward: an URB (`rcv_urb`) is left active on an error path within `cxacru_cm()`. The problem is that, when `snd_urb` fails to submit or wait, `cxacru_cm()` isn't properly cleaning up the `rcv_urb`. Later, `cxacru_atm_start()` blithely ignores the error and tries to resubmit it, triggering the warning.

My first thought was to see if this type of bug has been addressed before in the kernel USB subsystem, and sure enough, I found some relevant commits that are directly on point:

*   `1be3b77de4eb` ("usb: image: mdc800: kill download URB on timeout")
*   `372c93131998` ("USB: yurex: fix control-URB timeout handling")
*   `b98d5000c505` ("media: rc: iguanair: handle timeouts")

They all deal with the exact same scenario. An URB is submitted, something goes wrong (timeout, other submission failure), and if the code doesn't explicitly handle the active URB it can trigger the warning later. The common solution is to explicitly call `usb_kill_urb()` in the error path. I noted that these commits are good examples of the correct pattern for preventing this.

It's clear, this is a well-understood pattern in the kernel. The fix is to *always* call `usb_kill_urb()` on the active URB when an error occurs after submission. And, crucially, `usb_kill_urb()` is safe to call even if the URB is already completed or wasn't even submitted in the first place. That makes it perfect for error handling: unconditional calls ensure the URB state is reset.

So, the proposed fix of calling `usb_kill_urb(instance->rcv_urb)` unconditionally in the error path of `cxacru_cm()` is the correct approach and aligns perfectly with these established kernel idioms. This is pretty standard stuff. Let's write the response.



163/1 2026/07/31 07:29 action kernel-scratch-checkouter
0m Results:
map[KernelScratchSrc:/app/workdir/cache/tmp/tmp2991086643]

164/1 2026/07/31 07:29 loop
22m
165/2 2026/07/31 07:29 iteration 0
22m
166/3 2026/07/31 07:29 agent patch-generator
4m Model:
best-expensive

Instruction:
You are an experienced Linux kernel developer tasked with creating a fix for a kernel bug.
You will be given a crash report, an initial explanation of the root cause done by another
kernel expert, and a summary of how similar bugs were fixed in the past.

Use the codeeditor tool to do code edits.
Note: you will not see your changes when looking at the code using codesearch tools.
Use the patch-diff tool to review the modifications you applied.

Your final reply should contain explanation of what you did in the patch and why
(details not present in the initial explanation of the bug).

Your fix must not just prevent the given crash, but also be the best fix for the underlying
root cause from the software engineering point of view. There can be several ways to fix the
same bug. Consider alternatives, and pick the best one. For example, additional checks may be
added at different locations/functions, it's usually better to place them earlier in the
execution to avoid multiple checks at various locations later.

Frequently the same coding mistake is done in several locations in the source code.
Check if your fix should be extended/applied to similar cases around to fix other similar bugs.
But don't go too wide, don't try to fix problems kernel-wide, fix similar issues
in the same file only.


If you are changing post-conditions of a function, consider all callers of the functions,
and if they need to be updated to handle new post-conditions. For example, if you make
a function that previously never returned a NULL, return NULL, consider if callers
need to be updated to handle NULL return value.


If you will end up removing the WARN_ON macro because the condition can legitimately happen,
add a pr_err/dev_err/... (whatever is the macro for printing runtime errors used in the file)
call that logs that the unlikely condition has happened. The pr_err/dev_err/... message
must not include "WARNING" nor "BUG" strings.


Prefer calling several tools at the same time to save round-trips.

Prompt:
The crash that corresponds to the bug is:

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e


The explanation of the root cause of the bug is:

The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` (`0x84`) command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first (line 631).
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()` (line 657).
4. In the syzkaller reproducer, the USB device behaves unexpectedly (e.g., endpoint stall or disconnect), causing `snd_urb` to complete with an error status of `-104` (`-ECONNRESET`). 
5. `cxacru_start_wait_urb()` returns this `-104` error, which prompts `cxacru_cm()` to print `"send of cm 0x84 failed (-104)"` and jump to the `fail:` label (line 661).
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, **leaving `rcv_urb` still active and pending**.
7. Back in `cxacru_atm_start()`, the error is printed (`"CHIP_ADSL_LINE_START returned -104"`) but ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

### Fix
To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

```c
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
```


Historical context on how similar bugs were fixed in the past:

Based on a thorough research of the kernel history, here is a summary of the findings regarding similar bugs and the established idioms for fixing them.

### Root Cause Context
The bug occurs because `cxacru_cm()` submits `rcv_urb`, but if the subsequent submission or wait for `snd_urb` fails, it returns an error while leaving `rcv_urb` active. The caller `cxacru_atm_start()` ignores this error (a behavior introduced in historical commit `fd209e35b741` *"USB: cxacru: ignore error trying to start ADSL in atm_start"*) and proceeds to poll the status. This polling invokes `cxacru_cm()` again, which attempts to resubmit the still-active `rcv_urb`, triggering the `URB submitted while active` warning.

### Prior Art and Similar Fixes
While there are no recent commits in `drivers/usb/atm/` addressing this specific URB cleanup issue, a broader search across the USB and media subsystems reveals that this is a known anti-pattern. Several commits have addressed the exact same root cause (leaving an URB active on an error/timeout path):

1. **`1be3b77de4eb` ("usb: image: mdc800: kill download URB on timeout")**
   The driver submitted an URB and waited for completion. On timeout, it returned an error but left the URB active. A subsequent read attempted to resubmit it, triggering the same warning. The fix was to explicitly call `usb_kill_urb()` on the timeout error path.
2. **`372c93131998` ("USB: yurex: fix control-URB timeout handling")**
   Similar to the above, the driver failed to cancel a control URB on timeout. The fix ensured `usb_kill_urb()` was called so the URB could be safely reused on the next write request.
3. **`b98d5000c505` ("media: rc: iguanair: handle timeouts")**
   The driver waited for a completion after sending a command. On timeout, it returned `-ETIMEDOUT` but left the `urb_out` active, causing subsequent IO to fail. The fix added `usb_kill_urb()` to the timeout path.

### Idioms and Common Patterns to Follow
Based on how previous similar bugs were addressed, the following rules and patterns should be applied when writing a fix for this bug:

1. **Explicit URB Cleanup on Error Paths:** Whenever a function submits one or more URBs and then encounters an error (e.g., a timeout, a failure in a subsequent operation, or a failure in waiting for another URB), it **must** explicitly cancel any successfully submitted URBs before returning. 
2. **Use of `usb_kill_urb()`:** The standard idiom for this cleanup is to use `usb_kill_urb()`. This function synchronously cancels the URB and waits for its completion handler to finish.
3. **Unconditional Cleanup is Safe:** `usb_kill_urb()` is safe to call even if the URB is not currently active (e.g., if it failed to submit in the first place, or if it already completed successfully). This makes it robust for unconditional use in a unified `fail:` or `err:` cleanup block at the end of a function.

### Conclusion
Your proposed fix perfectly aligns with the established kernel idioms. By unconditionally calling `usb_kill_urb(instance->rcv_urb)` in the `fail:` path of `cxacru_cm()`, you ensure that the URB is fully canceled and its state is reset. This guarantees that subsequent calls to `cxacru_cm()` (even if the error was ignored by the caller) will start with a clean state, preventing the `URB submitted while active` warning.




Reply:
The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first.
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()`.
4. If the USB device behaves unexpectedly, `snd_urb` completes with an error status (e.g., `-104`). 
5. `cxacru_start_wait_urb()` returns this error, which prompts `cxacru_cm()` to jump to the `fail:` label.
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, leaving `rcv_urb` still active and pending.
7. Back in `cxacru_atm_start()`, the error is ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

Note that we don't need to do the same for `snd_urb` because `cxacru_start_wait_urb()` uses `wait_for_completion()` which is uninterruptible, meaning it will always wait until the URB completes (either successfully, with an error, or by timing out and being unlinked). Thus, `snd_urb` is never left active when `cxacru_start_wait_urb()` returns.

I have applied the fix using the `codeeditor` tool. The patch adds `usb_kill_urb(instance->rcv_urb)` in the `fail:` path of `cxacru_cm()` if `ret < 0`. This guarantees that subsequent calls to `cxacru_cm()` will start with a clean state, preventing the `URB submitted while active` warning.

167/4 2026/07/31 07:29 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8575
							output: 40
							thoughts: 140
						

Thoughts:
**Debugging a USB ATM Driver Issue**

Okay, so I'm digging into this `cxacru.c` file – specifically, the `cxacru_cm()` function within the `drivers/usb/atm` directory. It seems like we have a pretty nasty bug here, a race condition really, related to how we handle URBs (USB Request Blocks). My initial reading is that the issue is when we encounter an error while either submitting or waiting for `snd_urb`. The problem is that if `cxacru_cm()` hits an error in that scenario, it leaves `rcv_urb` active.

The crash occurs later, when `cxacru_cm()` is called again and tries to submit `rcv_urb` while the USB subsystem is saying it's already active. Not good. I can see that happening, of course.

The proposed fix makes immediate sense. The idea is to jump to a "fail:" label and issue `usb_kill_urb(instance->rcv_urb)` if `ret < 0` meaning any type of error was encountered. That should ensure that the `rcv_urb` is properly cleaned up before re-use. This seems like a reasonable approach to address the resource contention. Now let me take a closer look at the relevant code in `cxacru_cm()` and confirm this fix addresses the root cause correctly.



168/4 2026/07/31 07:29 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_cm]

Results:
map[SourceCode: 608:	static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 609:			     u8 *wdata, int wsize, u8 *rdata, int rsize)
 610:	{
 611:		int ret, actlen;
 612:		int offb, offd;
 613:		const int stride = CMD_PACKET_SIZE - 4;
 614:		u8 *wbuf = instance->snd_buf;
 615:		u8 *rbuf = instance->rcv_buf;
 616:		int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 617:		int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 618:	
 619:		if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
 620:			if (printk_ratelimit())
 621:				usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 622:					wbuflen, rbuflen);
 623:			ret = -ENOMEM;
 624:			goto err;
 625:		}
 626:	
 627:		mutex_lock(&instance->cm_serialize);
 628:	
 629:		/* submit reading urb before the writing one */
 630:		init_completion(&instance->rcv_done);
 631:		ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 632:		if (ret < 0) {
 633:			if (printk_ratelimit())
 634:				usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 635:					cm, ret);
 636:			goto fail;
 637:		}
 638:	
 639:		memset(wbuf, 0, wbuflen);
 640:		/* handle wsize == 0 */
 641:		wbuf[0] = cm;
 642:		for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 643:			wbuf[offb] = cm;
 644:			memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 645:		}
 646:	
 647:		instance->snd_urb->transfer_buffer_length = wbuflen;
 648:		init_completion(&instance->snd_done);
 649:		ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 650:		if (ret < 0) {
 651:			if (printk_ratelimit())
 652:				usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 653:					cm, ret);
 654:			goto fail;
 655:		}
 656:	
 657:		ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 658:		if (ret < 0) {
 659:			if (printk_ratelimit())
 660:				usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 661:			goto fail;
 662:		}
 663:	
 664:		ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 665:		if (ret < 0) {
 666:			if (printk_ratelimit())
 667:				usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 668:			goto fail;
 669:		}
 670:		if (actlen % CMD_PACKET_SIZE || !actlen) {
 671:			if (printk_ratelimit())
 672:				usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 673:					cm, actlen);
 674:			ret = -EIO;
 675:			goto fail;
 676:		}
 677:	
 678:		/* check the return status and copy the data to the output buffer, if needed */
 679:		for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 680:			if (rbuf[offb] != cm) {
 681:				if (printk_ratelimit())
 682:					usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 683:						rbuf[offb], cm);
 684:				ret = -EIO;
 685:				goto fail;
 686:			}
 687:			if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 688:				if (printk_ratelimit())
 689:					usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 690:						cm, rbuf[offb + 1]);
 691:				ret = -EIO;
 692:				goto fail;
 693:			}
 694:			if (offd >= rsize)
 695:				break;
 696:			memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 697:			offd += stride;
 698:		}
 699:	
 700:		ret = offd;
 701:		usb_dbg(instance->usbatm, "cm %#x\n", cm);
 702:	fail:
 703:		mutex_unlock(&instance->cm_serialize);
 704:	err:
 705:		return ret;
 706:	}
 SourceFile:drivers/usb/atm/cxacru.c]

169/4 2026/07/31 07:29 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10780
							output: 44
							thoughts: 205
						

Thoughts:
Here's my analysis of the provided code snippet:

**Analyzing the CXACRU Code Fix**

Okay, so they're proposing a change in `cxacru_cm`. Let me quickly look at it... right, the change is adding a call to `usb_kill_urb` before the `mutex_unlock` and error return. This looks like a response to an error in `cxacru_cm`. The logic seems to be: if the command fails (`ret < 0`), *before* releasing the `cm_serialize` mutex and returning, the receiver URB needs to be killed.

The reason is clear: If a low-level USB error happened during the command execution, it's possible the `instance->rcv_urb` is still in a pending state, and not freeing it could lead to resource leaks or unexpected behavior later on. Adding `usb_kill_urb` ensures the receiver URB is properly cleaned up when `cxacru_cm` fails, preventing potential issues with the USB connection.

Now, hold on... does this mean we *also* need to kill `snd_urb` if it fails during submit or wait? `snd_urb` is the *send* URB, and `rcv_urb` is the *receive* URB. The changes only address `rcv_urb`. If `snd_urb` fails in `cxacru_cm` there must be something else going on. Let me go check `cxacru_start_wait_urb` to be sure.



170/4 2026/07/31 07:29 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_start_wait_urb]

Results:
map[SourceCode: 590:	static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 591:					 int *actual_length)
 592:	{
 593:		struct cxacru_timer timer = {
 594:			.urb = urb,
 595:		};
 596:	
 597:		timer_setup_on_stack(&timer.timer, cxacru_timeout_kill, 0);
 598:		mod_timer(&timer.timer, jiffies + msecs_to_jiffies(CMD_TIMEOUT));
 599:		wait_for_completion(done);
 600:		timer_delete_sync(&timer.timer);
 601:		timer_destroy_on_stack(&timer.timer);
 602:	
 603:		if (actual_length)
 604:			*actual_length = urb->actual_length;
 605:		return urb->status; /* must read status after completion */
 606:	}
 SourceFile:drivers/usb/atm/cxacru.c]

171/4 2026/07/31 07:29 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11661
							output: 42
							thoughts: 28
						

Thoughts:
Okay, here's my interpretation of that process, delivered as a first-person expert summary:

**The USB URB Timeout Dilemma**

Alright, so the core of the issue boils down to how we handle USB URB timeouts, specifically when dealing with the `cxacru_start_wait_urb` function. My understanding is that if this particular function sits there waiting for an URB (USB Request Block) to complete for too long, we've got a problem.  We can't have the system hanging indefinitely, right? That's where `cxacru_timeout_kill` comes into play. It's essentially our safety net, our emergency brake, our timeout handler.

The logic is straightforward.  `cxacru_start_wait_urb` kicks off the process of waiting for the USB request. But if, for whatever reason – a stalled device, a faulty cable, a driver issue, who knows – that request doesn't complete within an acceptable timeframe, *poof* – `cxacru_timeout_kill` is triggered.  Its sole purpose is to ruthlessly terminate that hanging URB. This is crucial for avoiding a system lockup, a driver deadlock, or just general instability. It's a fundamental part of robust USB driver design. We need these timeout mechanisms to keep the system responsive. It’s simple enough, but a necessary component to maintain stability.



172/4 2026/07/31 07:29 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_timeout_kill]

Results:
map[SourceCode: 583:	static void cxacru_timeout_kill(struct timer_list *t)
 584:	{
 585:		struct cxacru_timer *timer = timer_container_of(timer, t, timer);
 586:	
 587:		usb_unlink_urb(timer->urb);
 588:	}
 SourceFile:drivers/usb/atm/cxacru.c]

173/4 2026/07/31 07:29 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12154
							output: 23
							thoughts: 1347
						

Thoughts:
**Analyzing URB State Transitions in Error Paths**

Okay, let's break this down meticulously. My primary concern is ensuring that URBs (USB Request Blocks) are properly cleaned up, i.e., not left in an active state when an error occurs. The goal here is resource management, and preventing any potential double-free or race conditions.

First, I see the cases where an error during the URB transfer means the URB has completed (with an error), and so is no longer active. If `cxacru_start_wait_urb` fails (indicating the URB completed with an error, e.g., `urb->status` is set), then that URB is no longer active. If the `snd_urb` fails to submit, it's not active. Same with the `rcv_urb` wait failing or if there are invalid data lengths.

Now, the trickier scenarios: If `snd_urb` submits, and `cxacru_start_wait_urb` *then* fails (maybe a -104 error), then `snd_urb` *has* completed, but the `rcv_urb` is still active. I see the importance of ensuring the other URB is cleaned up in this situation.

If the `snd_urb` wait succeeds, but the `rcv_urb` wait fails... then the `rcv_urb` is finished, so it is no longer active. But if `snd_urb` fails to submit, the `rcv_urb` is still active. If `snd_urb` wait fails, the `rcv_urb` is active.

So calling `usb_kill_urb(instance->rcv_urb)` in the `fail:` path when `ret < 0` seems safe and correct. Good!

Let's carefully consider `snd_urb`.
If `usb_submit_urb(instance->snd_urb)` fails, it's not active.
If `cxacru_start_wait_urb(instance->snd_urb)` is called, it waits for completion. So, it is not active.
Therefore, `snd_urb` should never be active when we jump to `fail:`. Excellent!

Wait, what about timeouts? `cxacru_timeout_kill` calls `usb_unlink_urb`. But is `cxacru_start_wait_urb` synchronous? Yes, it uses `wait_for_completion` after `usb_unlink_urb` which *does* wait for the completion handler. This is good because it guarantees that `snd_urb` will be completed when `cxacru_start_wait_urb` returns, even with timeouts. The check in the timer function confirms this. Even if it's interrupted, `wait_for_completion` won't return until the URB is finished. Good.

What about `rcv_urb`? It seems like it could be active in the case where we jump to `fail:` before calling `cxacru_start_wait_urb` on it. If we call `usb_kill_urb`, we cancel and wait for its completion. This is the crucial point.

`usb_kill_urb` waits for completion, but what about the signal? The completion handler signals `instance->rcv_done`, but we don't *wait* for `instance->rcv_done` in the error path. Okay, but `init_completion` is called in the next invocation so that's fine.

Double checking `snd_urb` again. If submission fails, it's not active. If it waits, it's not active. So it should never be active at `fail:`.

What if `usb_submit_urb(instance->rcv_urb)` fails? We jump to `fail:` and call `usb_kill_urb(instance->rcv_urb)`. Is that safe on an unsubmitted URB? Yes, according to the documentation. "It is safe to call this routine if @urb is unlinked or not submitted." Great!

What if `snd_urb` submits and errors during wait? `rcv_urb` is active; `usb_kill_urb(instance->rcv_urb)` cancels it. Correct.

Okay, I've covered all the scenarios now, and confirmed there are only two URBs. It appears that no URBs are left active in the failure paths. I've re-examined where each URB is set in an active state, and where each one could be cleaned. It's safe to call `usb_kill_urb` in any failure case. I feel good about this analysis.



174/4 2026/07/31 07:30 tool codesearch-find-references
0m Args:
map[Name:cxacru_cm]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_config_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:481] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_state_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:357] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:adsl_state_store SourceFile:drivers/usb/atm/cxacru.c SourceLine:377] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_atm_start SourceFile:drivers/usb/atm/cxacru.c SourceLine:780] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_atm_start SourceFile:drivers/usb/atm/cxacru.c SourceLine:789] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_card_status SourceFile:drivers/usb/atm/cxacru.c SourceLine:760] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_cm_get_array SourceFile:drivers/usb/atm/cxacru.c SourceLine:722] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:cxacru_heavy_init SourceFile:drivers/usb/atm/cxacru.c SourceLine:1100]] TruncatedOutput:false]

175/4 2026/07/31 07:30 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14982
							output: 44
							thoughts: 15
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience, and delivered as a first-person summary:

**Digging into `cxacru_cm_get_array`**

Alright, time to dive into this. Let's start by zeroing in on `cxacru_cm_get_array`. That function call immediately piques my interest. It implies we're dealing with retrieving an array structure, likely within the context of the `cxacru` module, which I’m familiar with. Given the naming convention, I suspect it's responsible for fetching an array of configuration parameters, possibly sensor data, or some critical values for this system. I’m already mentally mapping out where in the code I've seen similar functions and thinking about potential error conditions I need to keep in mind, like null pointers or bounds checks when accessing the array elements. I need to understand its intended purpose and interface constraints. I'm going to have to see how this function handles things like: is the array dynamically allocated? Is there memory management involved, and if so, where does it live in our code. What are the calling conventions? Is it thread-safe, and if so, how is that achieved? A review of this function is in order.



176/4 2026/07/31 07:30 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_cm_get_array]

Results:
map[SourceCode: 708:	static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 709:				       u32 *data, int size)
 710:	{
 711:		int ret, len;
 712:		__le32 *buf;
 713:		int offb;
 714:		unsigned int offd;
 715:		const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
 716:		int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
 717:	
 718:		buf = kmalloc(buflen, GFP_KERNEL);
 719:		if (!buf)
 720:			return -ENOMEM;
 721:	
 722:		ret = cxacru_cm(instance, cm, NULL, 0, (u8 *) buf, buflen);
 723:		if (ret < 0)
 724:			goto cleanup;
 725:	
 726:		/* len > 0 && len % 4 == 0 guaranteed by cxacru_cm() */
 727:		len = ret / 4;
 728:		for (offb = 0; offb < len; ) {
 729:			int l = le32_to_cpu(buf[offb++]);
 730:	
 731:			if (l < 0 || l > stride || l > (len - offb) / 2) {
 732:				if (printk_ratelimit())
 733:					usb_err(instance->usbatm, "invalid data length from cm %#x: %d\n",
 734:						cm, l);
 735:				ret = -EIO;
 736:				goto cleanup;
 737:			}
 738:			while (l--) {
 739:				offd = le32_to_cpu(buf[offb++]);
 740:				if (offd >= size) {
 741:					if (printk_ratelimit())
 742:						usb_err(instance->usbatm, "wrong index %#x in response to cm %#x\n",
 743:							offd, cm);
 744:					ret = -EIO;
 745:					goto cleanup;
 746:				}
 747:				data[offd] = le32_to_cpu(buf[offb++]);
 748:			}
 749:		}
 750:	
 751:		ret = 0;
 752:	
 753:	cleanup:
 754:		kfree(buf);
 755:		return ret;
 756:	}
 SourceFile:drivers/usb/atm/cxacru.c]

177/4 2026/07/31 07:30 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16102
							output: 36
							thoughts: 19
						

Thoughts:
Here's my thought process, as if I were analyzing that code:

**Checking for More URBs**

Okay, so I'm looking at `cxacru.c`. The first thing I want to know is, are there any other URBs (USB Request Blocks) in this file besides the ones I'm already aware of? It's pretty crucial to know the complete scope of USB communication within this module. I need to make sure I'm not missing anything critical in my analysis of the USB implementation here, and I suspect there are more to find. This is a common pattern, and I'm just quickly scanning the file to verify this. I'm hoping I don't overlook any, because that would mean needing to come back and review. So, let's see what's in this file...



178/4 2026/07/31 07:30 tool grepper
0m Args:
map[Expression:usb_submit_urb PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:drivers/usb/atm/cxacru.c=608=static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
--
drivers/usb/atm/cxacru.c-630-	init_completion(&instance->rcv_done);
drivers/usb/atm/cxacru.c:631:	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
drivers/usb/atm/cxacru.c-632-	if (ret < 0) {
--
drivers/usb/atm/cxacru.c-648-	init_completion(&instance->snd_done);
drivers/usb/atm/cxacru.c:649:	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
drivers/usb/atm/cxacru.c-650-	if (ret < 0) {
]

179/4 2026/07/31 07:30 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16573
							output: 22
							thoughts: 468
						

Thoughts:
**Analyzing URB Handling in `cxacru.c`**

Okay, so I'm focusing on the URB submission and handling within the `cxacru.c` driver, specifically `rcv_urb` and `snd_urb`. I need to ensure proper error recovery. I recall `usbatm.c` *might* submit URBs too, but for the core logic, `cxacru.c` is the key.

First, I'm checking the dependencies. If `rcv_urb` fails during submission (at line 631), `snd_urb` hasn't even been submitted, so nothing to kill there. But if `snd_urb` fails to submit (at line 649), `rcv_urb` is active, and the code jumps to the `fail:` label. The proposed fix there is to kill `rcv_urb`, which seems logical.

Now, if the `snd_urb`'s wait operation fails (at line 657), it implies `snd_urb` has completed, and `rcv_urb` is still active. Again, we jump to `fail:` and the fix is to kill `rcv_urb`. That's expected. If `rcv_urb`'s wait fails (at line 664), both URBs are done, and we're again at `fail:`. Safe to kill `rcv_urb`. Similarly, if `rcv_urb` wait succeeds but the received data is invalid (lines 670, 680, 687), it's the same scenario, `snd_urb` and `rcv_urb` have completed, so killing `rcv_urb` is safe.

Now, the tricky part... what if `snd_urb` wait succeeds but `rcv_urb` wait fails? I need to confirm that `snd_urb` is indeed guaranteed to have completed in that scenario. Yes, `cxacru_start_wait_urb` *does* wait for its completion.

I'm confident I've got the relevant URBs now. I'm not seeing any other URBs that require attention in this specific error flow.

Next step: I'm verifying that `usb_kill_urb` is the appropriate function to use for cleanup here. Ah yes, it's synchronous and waits for the completion handler. That's good. And since I'm holding the `instance->cm_serialize` mutex, and the completion handler doesn't take this same mutex, I'm confident there's no potential deadlock here. So, I need to check the completion handler code to be sure.



180/4 2026/07/31 07:30 tool codesearch-find-references
0m Error:
log-in to see details

Args:
map[Name:rcv_done]

Results:
map[References:<nil> TruncatedOutput:false]

181/4 2026/07/31 07:30 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17660
							output: 35
							thoughts: 14
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Finding the `rcv_urb` Completion Handler**

Alright, so the first thing on my mind is, "Where's the completion handler for `rcv_urb`?" Specifically, what function or code block is responsible for processing the data after a USB receive URB (USB Request Block) completes? I need to find that handler. I'm going to start by tracing the function calls associated with that URB and zeroing in on the part that deals with its completion to figure out where things are passed. What is the architecture here? I'm going to follow the flow of data and see if I can't find the completion callback, and identify any interactions that it triggers.



182/4 2026/07/31 07:30 tool grepper
0m Args:
map[Expression:rcv_urb PathPrefix:drivers/usb/atm/cxacru.c]

Results:
map[Output:drivers/usb/atm/cxacru.c=170=struct cxacru_data {
--
drivers/usb/atm/cxacru.c-186-	u8 *snd_buf;
drivers/usb/atm/cxacru.c:187:	struct urb *rcv_urb;
drivers/usb/atm/cxacru.c-188-	struct urb *snd_urb;
--
drivers/usb/atm/cxacru.c=608=static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
--
drivers/usb/atm/cxacru.c-630-	init_completion(&instance->rcv_done);
drivers/usb/atm/cxacru.c:631:	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
drivers/usb/atm/cxacru.c-632-	if (ret < 0) {
--
drivers/usb/atm/cxacru.c-663-
drivers/usb/atm/cxacru.c:664:	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
drivers/usb/atm/cxacru.c-665-	if (ret < 0) {
--
drivers/usb/atm/cxacru.c=1120=static int cxacru_bind(struct usbatm_data *usbatm_instance,
--
drivers/usb/atm/cxacru.c-1158-	}
drivers/usb/atm/cxacru.c:1159:	instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
drivers/usb/atm/cxacru.c:1160:	if (!instance->rcv_urb) {
drivers/usb/atm/cxacru.c-1161-		ret = -ENOMEM;
--
drivers/usb/atm/cxacru.c-1188-			== USB_ENDPOINT_XFER_INT) {
drivers/usb/atm/cxacru.c:1189:		usb_fill_int_urb(instance->rcv_urb,
drivers/usb/atm/cxacru.c-1190-			usb_dev, usb_rcvintpipe(usb_dev, CXACRU_EP_CMD),
--
drivers/usb/atm/cxacru.c-1198-	} else {
drivers/usb/atm/cxacru.c:1199:		usb_fill_bulk_urb(instance->rcv_urb,
drivers/usb/atm/cxacru.c-1200-			usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_CMD),
--
drivers/usb/atm/cxacru.c-1223-	usb_free_urb(instance->snd_urb);
drivers/usb/atm/cxacru.c:1224:	usb_free_urb(instance->rcv_urb);
drivers/usb/atm/cxacru.c-1225-	kfree(instance);
--
drivers/usb/atm/cxacru.c=1230=static void cxacru_unbind(struct usbatm_data *usbatm_instance,
--
drivers/usb/atm/cxacru.c-1258-	usb_kill_urb(instance->snd_urb);
drivers/usb/atm/cxacru.c:1259:	usb_kill_urb(instance->rcv_urb);
drivers/usb/atm/cxacru.c-1260-	usb_free_urb(instance->snd_urb);
drivers/usb/atm/cxacru.c:1261:	usb_free_urb(instance->rcv_urb);
drivers/usb/atm/cxacru.c-1262-
]

183/4 2026/07/31 07:30 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18868
							output: 40
							thoughts: 17
						

Thoughts:
Here's a summary of my thought process:

**Diving into `cxacru_bind`**

Okay, so I need to understand how this `cxacru_bind` function works. My primary focus right now is on the completion handler. I need to trace the flow and see precisely where the completion routine is defined and invoked. That's where the real magic happens, so I need to find the specific section that executes after the binding operation completes. Let's see how that callback is defined and utilized within `cxacru_bind`. Time to dive in!



184/4 2026/07/31 07:31 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_bind]

Results:
map[SourceCode:1120:	static int cxacru_bind(struct usbatm_data *usbatm_instance,
1121:			       struct usb_interface *intf, const struct usb_device_id *id)
1122:	{
1123:		struct cxacru_data *instance;
1124:		struct usb_device *usb_dev = interface_to_usbdev(intf);
1125:		struct usb_host_endpoint *cmd_ep = usb_dev->ep_in[CXACRU_EP_CMD];
1126:		static const u8 ep_addrs[] = {
1127:			CXACRU_EP_CMD + USB_DIR_IN,
1128:			CXACRU_EP_CMD + USB_DIR_OUT,
1129:			0};
1130:		int ret;
1131:	
1132:		/* instance init */
1133:		instance = kzalloc_obj(*instance);
1134:		if (!instance)
1135:			return -ENOMEM;
1136:	
1137:		instance->usbatm = usbatm_instance;
1138:		instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
1139:	
1140:		mutex_init(&instance->poll_state_serialize);
1141:		instance->poll_state = CXPOLL_STOPPED;
1142:		instance->line_status = -1;
1143:		instance->adsl_status = -1;
1144:	
1145:		mutex_init(&instance->adsl_state_serialize);
1146:	
1147:		instance->rcv_buf = (u8 *) __get_free_page(GFP_KERNEL);
1148:		if (!instance->rcv_buf) {
1149:			usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_buf\n");
1150:			ret = -ENOMEM;
1151:			goto fail;
1152:		}
1153:		instance->snd_buf = (u8 *) __get_free_page(GFP_KERNEL);
1154:		if (!instance->snd_buf) {
1155:			usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_buf\n");
1156:			ret = -ENOMEM;
1157:			goto fail;
1158:		}
1159:		instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
1160:		if (!instance->rcv_urb) {
1161:			ret = -ENOMEM;
1162:			goto fail;
1163:		}
1164:		instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
1165:		if (!instance->snd_urb) {
1166:			ret = -ENOMEM;
1167:			goto fail;
1168:		}
1169:	
1170:		if (!cmd_ep) {
1171:			usb_dbg(usbatm_instance, "cxacru_bind: no command endpoint\n");
1172:			ret = -ENODEV;
1173:			goto fail;
1174:		}
1175:	
1176:		if (usb_endpoint_xfer_int(&cmd_ep->desc))
1177:			ret = usb_check_int_endpoints(intf, ep_addrs);
1178:		else
1179:			ret = usb_check_bulk_endpoints(intf, ep_addrs);
1180:	
1181:		if (!ret) {
1182:			usb_err(usbatm_instance, "cxacru_bind: interface has incorrect endpoints\n");
1183:			ret = -ENODEV;
1184:			goto fail;
1185:		}
1186:	
1187:		if ((cmd_ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
1188:				== USB_ENDPOINT_XFER_INT) {
1189:			usb_fill_int_urb(instance->rcv_urb,
1190:				usb_dev, usb_rcvintpipe(usb_dev, CXACRU_EP_CMD),
1191:				instance->rcv_buf, PAGE_SIZE,
1192:				cxacru_blocking_completion, &instance->rcv_done, 1);
1193:	
1194:			usb_fill_int_urb(instance->snd_urb,
1195:				usb_dev, usb_sndintpipe(usb_dev, CXACRU_EP_CMD),
1196:				instance->snd_buf, PAGE_SIZE,
1197:				cxacru_blocking_completion, &instance->snd_done, 4);
1198:		} else {
1199:			usb_fill_bulk_urb(instance->rcv_urb,
1200:				usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_CMD),
1201:				instance->rcv_buf, PAGE_SIZE,
1202:				cxacru_blocking_completion, &instance->rcv_done);
1203:	
1204:			usb_fill_bulk_urb(instance->snd_urb,
1205:				usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD),
1206:				instance->snd_buf, PAGE_SIZE,
1207:				cxacru_blocking_completion, &instance->snd_done);
1208:		}
1209:	
1210:		mutex_init(&instance->cm_serialize);
1211:	
1212:		INIT_DELAYED_WORK(&instance->poll_work, cxacru_poll_status);
1213:	
1214:		usbatm_instance->driver_data = instance;
1215:	
1216:		usbatm_instance->flags = (cxacru_card_status(instance) ? 0 : UDSL_SKIP_HEAVY_INIT);
1217:	
1218:		return 0;
1219:	
1220:	 fail:
1221:		free_page((unsigned long) instance->snd_buf);
1222:		free_page((unsigned long) instance->rcv_buf);
1223:		usb_free_urb(instance->snd_urb);
1224:		usb_free_urb(instance->rcv_urb);
1225:		kfree(instance);
1226:	
1227:		return ret;
1228:	}
 SourceFile:drivers/usb/atm/cxacru.c]

185/4 2026/07/31 07:31 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20887
							output: 42
							thoughts: 13
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing the Completion Handler**

Alright, so the core of this seems to revolve around a specific completion handler. The key identifier here is `cxacru_blocking_completion`. Immediately, my mind starts ticking through the implications. A "blocking" completion handler suggests a few things, depending on the context.

*   Is this a synchronous operation?
*   Is it related to thread management and resource contention?
*   What is the mechanism by which it blocks? Does it use a mutex, a condition variable, a semaphore, or something else entirely?
*   What are the failure modes it handles?

My immediate goal is to understand how this `cxacru_blocking_completion` handler fits into the overall system architecture. Is it the primary completion mechanism, or a specialized one? And the biggest question: does it handle timeouts or any special cases or does it rely on external logic? I need to understand its relationship to the asynchronous operations it's completing. What's the potential for deadlocks or race conditions?

I'd want to dive deeper to consider how this particular handler is implemented and how it is actually used and to what this function is specifically applied.



186/4 2026/07/31 07:31 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_blocking_completion]

Results:
map[SourceCode: 572:	/* the following three functions are stolen from drivers/usb/core/message.c */
 573:	static void cxacru_blocking_completion(struct urb *urb)
 574:	{
 575:		complete(urb->context);
 576:	}
 SourceFile:drivers/usb/atm/cxacru.c]

187/4 2026/07/31 07:31 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21314
							output: 166
							thoughts: 901
						

Thoughts:
**Analyzing URB Cancellation and Completion in cxacru_cm**

Okay, so I'm looking at this completion handler. It's standard; `usb_kill_urb(instance->rcv_urb)` cancels the URB synchronously, waiting for the completion handler. That handler then calls `complete(&instance->rcv_done)`.  Crucially, `cxacru_cm` doesn't explicitly wait for `instance->rcv_done` on the error path (`fail:`).  However, the next time `cxacru_cm` is called, it re-initializes `instance->rcv_done` with `init_completion()`, effectively resetting it.  So, even though the completion might be "left signaled," it's safe because it's overwritten.  Good.

Now, I need to be *absolutely* sure about scenarios where URBs are active at `fail:`. What if we submitted `snd_urb` and then jumped to `fail:`? I had initially thought about this, let's trace it. First, I have to ensure that `snd_urb` is *never* left active when we jump to `fail:`. Let's follow that code...
```c
	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
	if (ret < 0) {
		// snd_urb not active
		goto fail;
	}

	ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
	if (ret < 0) {
		// snd_urb has completed (either successfully or with error, or timed out and killed)
		goto fail;
	}
```
If `usb_submit_urb` returns an error, we jump to `fail:` but `snd_urb` is not active, that's fine.  The interesting case is when `cxacru_start_wait_urb` times out or errors. `cxacru_start_wait_urb` *itself* calls `usb_unlink_urb` and waits for completion if there is a timeout. So, when `cxacru_start_wait_urb` returns, `snd_urb` *must* be completed, regardless of success, error, or timeout.  Therefore, `snd_urb` is never active at `fail:`.

What about signal interrupts? Does a signal mess things up? `wait_for_completion` is the crucial part of `cxacru_start_wait_urb` and it is *not* interruptible. It uses `wait_for_completion` which ignores signals. Thus, it will either succeed in waiting or time out and complete, guaranteeing `snd_urb` is completed before `cxacru_start_wait_urb` returns. So, it's always completed.

Now, let's look at `rcv_urb`.
```c
	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
	if (ret < 0) {
		// rcv_urb not active
		goto fail;
	}
```
If `snd_urb` fails to submit *or* the wait for it fails, `rcv_urb` is still active! So, *here* we do need to kill `rcv_urb`.

What if the wait on `rcv_urb` fails?
```c
	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
	if (ret < 0) {
		// rcv_urb has completed
		goto fail;
	}
```
If the wait *fails* for `rcv_urb`, it *has* completed, so it is no longer active. So, calling `usb_kill_urb(instance->rcv_urb)` is *still* safe.

What about `snd_urb` wait succeeding, and then `rcv_urb` wait failing?  In that case, the `rcv_urb` is also complete.  Killing it is safe.

Is there any scenario where `snd_urb` *is* active at `fail:`? No, I'm confident that's covered.

Okay, let's look at a scenario that I think about. What if `usb_submit_urb(instance->snd_urb, GFP_KERNEL)` fails? Then `snd_urb` is not active. But, *`rcv_urb`* is active! So we jump to `fail:`, and `usb_kill_urb(instance->rcv_urb)` will kill it.

Are


188/4 2026/07/31 07:32 tool codeeditor
0m Args:
map[CurrentCode:	ret = offd;
	usb_dbg(instance->usbatm, "cm %#x\n", cm);
fail:
	mutex_unlock(&instance->cm_serialize);
err:
	return ret;
} NewCode:	ret = offd;
	usb_dbg(instance->usbatm, "cm %#x\n", cm);
fail:
	if (ret < 0)
		usb_kill_urb(instance->rcv_urb);
	mutex_unlock(&instance->cm_serialize);
err:
	return ret;
} SourceFile:drivers/usb/atm/cxacru.c]

Results:
map[]

189/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23413
							output: 26
							thoughts: 8
						

Thoughts:
Okay, let's dive into this. Here's my thought process as I approach the provided text, rendered in the first person, assuming I'm already well-versed in the subject matter:

**Initial Assessment: Patch Diff Examination**

Alright, the first thing on the agenda is the patch diff. I need to get a clear understanding of what changes have been proposed or implemented. This is standard operating procedure. I'm already anticipating the common areas of focus – functionality additions, bug fixes, performance optimizations, and potentially, refactoring. My initial scan will be to get a handle on the *scope* of the changes. Are we talking about a minor tweak or something with significant implications? Knowing this will inform how deep I need to go.



190/4 2026/07/31 07:32 tool patch-diff
0m Args:
map[File:drivers/usb/atm/cxacru.c]

Results:
map[Output:diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -608,105 +608,107 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 		     u8 *wdata, int wsize, u8 *rdata, int rsize)
 {
 	int ret, actlen;
 	int offb, offd;
 	const int stride = CMD_PACKET_SIZE - 4;
 	u8 *wbuf = instance->snd_buf;
 	u8 *rbuf = instance->rcv_buf;
 	int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 	int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 
 	if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 				wbuflen, rbuflen);
 		ret = -ENOMEM;
 		goto err;
 	}
 
 	mutex_lock(&instance->cm_serialize);
 
 	/* submit reading urb before the writing one */
 	init_completion(&instance->rcv_done);
 	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 				cm, ret);
 		goto fail;
 	}
 
 	memset(wbuf, 0, wbuflen);
 	/* handle wsize == 0 */
 	wbuf[0] = cm;
 	for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 		wbuf[offb] = cm;
 		memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 	}
 
 	instance->snd_urb->transfer_buffer_length = wbuflen;
 	init_completion(&instance->snd_done);
 	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 				cm, ret);
 		goto fail;
 	}
 
 	ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 		goto fail;
 	}
 
 	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 		goto fail;
 	}
 	if (actlen % CMD_PACKET_SIZE || !actlen) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 				cm, actlen);
 		ret = -EIO;
 		goto fail;
 	}
 
 	/* check the return status and copy the data to the output buffer, if needed */
 	for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 		if (rbuf[offb] != cm) {
 			if (printk_ratelimit())
 				usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 					rbuf[offb], cm);
 			ret = -EIO;
 			goto fail;
 		}
 		if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 			if (printk_ratelimit())
 				usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 					cm, rbuf[offb + 1]);
 			ret = -EIO;
 			goto fail;
 		}
 		if (offd >= rsize)
 			break;
 		memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 		offd += stride;
 	}
 
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
 }
 
 static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 			       u32 *data, int size)
 {
 	int ret, len;
 	__le32 *buf;
]

191/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25119
							output: 23
							thoughts: 1115
						

Thoughts:
**Analyzing URB State and Safety**

Okay, let me break this down. My initial question was whether there were any situations where `snd_urb` or `rcv_urb` were submitted and *not* explicitly waited for. I quickly determined that `cxacru_cm` is the only place where these URBs are submitted.

Now, I started thinking about potential failure scenarios. What if `cxacru_start_wait_urb` fails *after* `snd_urb` is submitted? I went through the code of that function. I saw that `wait_for_completion(done)` will block until the URB completes, either successfully, with an error, or is unlinked by the timer. The timer mechanism (`cxacru_timeout_kill`) uses `usb_unlink_urb`, which, even though asynchronous, will trigger the URB completion handler and signal the completion. So, the `wait_for_completion` *always* returns when the URB is done. That means, `snd_urb` is *guaranteed* to be complete when `cxacru_start_wait_urb` returns.

Then, I considered the case of `usb_submit_urb` failing for `snd_urb`. In that scenario, `snd_urb` is not active, but `rcv_urb` might be. That would lead to the `fail:` path, where `usb_kill_urb(instance->rcv_urb)` is called. I need to make sure this is safe.

Next, I wondered if `usb_submit_urb` could fail for `rcv_urb`. In this case, `rcv_urb` isn't active. Again, we go to `fail:` and call `usb_kill_urb`. But is it safe to kill an URB that wasn't submitted? Yes, based on my understanding, `usb_kill_urb` handles this.

I then considered what if `snd_urb` submitted, `cxacru_start_wait_urb` returned an error. `snd_urb` *is* completed, but `rcv_urb` is still active, so we go to the `fail:` path and kill it.

Also, what if `rcv_urb` submitted, and `snd_urb` submitted, the `snd_urb` wait succeeds, but the `rcv_urb` wait fails?  Again, `rcv_urb` is completed. So we hit `fail:` and kill `rcv_urb`. Can we call `usb_kill_urb` on a completed URB? Yes, it's safe.

If `rcv_urb` wait succeeds but the data is invalid, then `rcv_urb` has completed, and we hit `fail:`, where we kill `rcv_urb`. Again, it's safe.

Therefore, this confirms that the proposed fix is completely safe and correct.

Finally, I did a quick sanity check to make sure these URBs aren't used anywhere else: `cxacru_bind` allocates, `cxacru_unbind` frees, and `cxacru_cm` uses them. That's it. I also should check the rest of the drivers in `drivers/usb/atm/` to see if they might have a similar problem.



192/4 2026/07/31 07:32 tool codesearch-dir-index
0m Args:
map[Dir:drivers/usb/atm]

Results:
map[Files:[cxacru.c speedtch.c ueagle-atm.c usbatm.c usbatm.h xusbatm.c] Subdirs:<nil>]

193/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27028
							output: 35
							thoughts: 10
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing `speedtch.c`**

Alright, time to dive into `speedtch.c`. This is where the core timing and potentially the performance bottlenecks reside. I need to quickly assess the structure – what's the general architecture? Is it event-driven, threaded, or a more straightforward sequential approach? My gut feeling is we're likely dealing with something relatively performance-sensitive, given the filename, so I'll be looking closely at any potential locking contention, memory allocation patterns, and the efficiency of the core timing loops. I need to see how the timestamps are captured – are we relying on `gettimeofday`, `clock_gettime`, or something even lower-level like RDTSC? The choice there will tell me a lot about the potential resolution and overhead. The goal is to identify any areas where a more modern or optimized approach could yield a significant improvement. I'll be mentally parsing the code for hints of potential optimization, whether it's through vectorized operations, improved data structures, or even just clever compiler hints. Let's see what we've got.



194/4 2026/07/31 07:32 tool grepper
0m Args:
map[Expression:usb_submit_urb PathPrefix:drivers/usb/atm/speedtch.c]

Results:
map[Output:drivers/usb/atm/speedtch.c=576=static void speedtch_resubmit_int(struct timer_list *t)
--
drivers/usb/atm/speedtch.c-586-	if (int_urb) {
drivers/usb/atm/speedtch.c:587:		ret = usb_submit_urb(int_urb, GFP_ATOMIC);
drivers/usb/atm/speedtch.c-588-		if (!ret)
--
drivers/usb/atm/speedtch.c-590-		else {
drivers/usb/atm/speedtch.c:591:			atm_dbg(instance->usbatm, "%s: usb_submit_urb failed with result %d\n", __func__, ret);
drivers/usb/atm/speedtch.c-592-			mod_timer(&instance->resubmit_timer, jiffies + msecs_to_jiffies(RESUBMIT_DELAY));
--
drivers/usb/atm/speedtch.c=597=static void speedtch_handle_int(struct urb *int_urb)
--
drivers/usb/atm/speedtch.c-633-	if (int_urb) {
drivers/usb/atm/speedtch.c:634:		ret = usb_submit_urb(int_urb, GFP_ATOMIC);
drivers/usb/atm/speedtch.c-635-		schedule_work(&instance->status_check_work);
drivers/usb/atm/speedtch.c-636-		if (ret < 0) {
drivers/usb/atm/speedtch.c:637:			atm_dbg(usbatm, "%s: usb_submit_urb failed with result %d\n", __func__, ret);
drivers/usb/atm/speedtch.c-638-			goto fail;
--
drivers/usb/atm/speedtch.c=650=static int speedtch_atm_start(struct usbatm_data *usbatm, struct atm_dev *atm_dev)
--
drivers/usb/atm/speedtch.c-671-	if (instance->int_urb) {
drivers/usb/atm/speedtch.c:672:		ret = usb_submit_urb(instance->int_urb, GFP_KERNEL);
drivers/usb/atm/speedtch.c-673-		if (ret < 0) {
]

195/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27908
							output: 40
							thoughts: 81
						

Thoughts:
**Analyzing the USB ATM Initialization**

Okay, so `speedtch.c` is submitting an `int_urb`. My immediate concern is what happens if `usb_submit_urb` fails within `speedtch_atm_start`. It looks like it just returns the error, which is good. But... `speedtch_atm_start` is called by `usbatm_atm_init`. This makes me wonder: does it handle all the URBs it creates, or could it potentially leave one active if an error occurs during initialization? I need to verify. Let's dig back into the `speedtch_atm_start` function and make sure that it cleans up properly in all error paths. I have to be absolutely certain there are no lingering URBs hanging around after an unsuccessful start.



196/4 2026/07/31 07:32 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/speedtch.c Name:speedtch_atm_start]

Results:
map[SourceCode: 650:	static int speedtch_atm_start(struct usbatm_data *usbatm, struct atm_dev *atm_dev)
 651:	{
 652:		struct usb_device *usb_dev = usbatm->usb_dev;
 653:		struct speedtch_instance_data *instance = usbatm->driver_data;
 654:		int i, ret;
 655:		unsigned char mac_str[13];
 656:	
 657:		atm_dbg(usbatm, "%s entered\n", __func__);
 658:	
 659:		/* Set MAC address, it is stored in the serial number */
 660:		memset(atm_dev->esi, 0, sizeof(atm_dev->esi));
 661:		if (usb_string(usb_dev, usb_dev->descriptor.iSerialNumber, mac_str, sizeof(mac_str)) == 12) {
 662:			for (i = 0; i < 6; i++)
 663:				atm_dev->esi[i] = (hex_to_bin(mac_str[i * 2]) << 4) +
 664:					hex_to_bin(mac_str[i * 2 + 1]);
 665:		}
 666:	
 667:		/* Start modem synchronisation */
 668:		ret = speedtch_start_synchro(instance);
 669:	
 670:		/* Set up interrupt endpoint */
 671:		if (instance->int_urb) {
 672:			ret = usb_submit_urb(instance->int_urb, GFP_KERNEL);
 673:			if (ret < 0) {
 674:				/* Doesn't matter; we'll poll anyway */
 675:				atm_dbg(usbatm, "%s: submission of interrupt URB failed (%d)!\n", __func__, ret);
 676:				usb_free_urb(instance->int_urb);
 677:				instance->int_urb = NULL;
 678:			}
 679:		}
 680:	
 681:		/* Start status polling */
 682:		mod_timer(&instance->status_check_timer, jiffies + msecs_to_jiffies(1000));
 683:	
 684:		return 0;
 685:	}
 SourceFile:drivers/usb/atm/speedtch.c]

197/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28868
							output: 37
							thoughts: 41
						

Thoughts:
Okay, here's my interpretation of those thoughts, presented as a personal thought process, as requested:

**URB Handling and the `ueagle-atm` Module**

Alright, so if `usb_submit_urb` fails, that's pretty standard practice: the function will clean up after itself by freeing the URB and setting the pointer to `NULL`. Good; it's what I expect. I'm not worried about left-over active URBs causing issues. The system isn't going to get jammed up. It keeps things tidy.

However, the question that *immediately* pops into my head now is: How does this work within `ueagle-atm.c`? That's the critical bit. I need to make sure this module's error handling is robust. I need to know: Is it correctly checking for `usb_submit_urb` failures? If the submission *does* fail, is the URB pointer being checked for `NULL` before any further operations? Are we handling the situation gracefully, without potential memory leaks or trying to access freed memory? I need to dig into the `ueagle-atm.c` code to see if this best-practice is followed, or if there's a vulnerability.



198/4 2026/07/31 07:32 tool grepper
0m Args:
map[Expression:usb_submit_urb PathPrefix:drivers/usb/atm/ueagle-atm.c]

Results:
map[Output:drivers/usb/atm/ueagle-atm.c=2057=static void uea_intr(struct urb *urb)
--
drivers/usb/atm/ueagle-atm.c-2089-resubmit:
drivers/usb/atm/ueagle-atm.c:2090:	usb_submit_urb(sc->urb_int, GFP_ATOMIC);
drivers/usb/atm/ueagle-atm.c-2091-}
--
drivers/usb/atm/ueagle-atm.c=2096=static int uea_boot(struct uea_softc *sc, struct usb_interface *intf)
--
drivers/usb/atm/ueagle-atm.c-2140-
drivers/usb/atm/ueagle-atm.c:2141:	ret = usb_submit_urb(sc->urb_int, GFP_KERNEL);
drivers/usb/atm/ueagle-atm.c-2142-	if (ret < 0) {
]

199/4 2026/07/31 07:32 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29464
							output: 40
							thoughts: 10
						

Thoughts:
Okay, here's my attempt at summarizing my internal thought process as an expert, as requested:

**Assessing the `uea_boot` Module**

Alright, time to dive into this. Let's start with `uea_boot`. That's the entry point, the critical first step. I need to quickly assess what it's doing, its dependencies, and what kind of potential problems or optimizations I should be looking for. Is it a standard bootloader, or something custom? Are there any obvious areas for vulnerability? What's the hardware context? Knowing this will influence the analysis. Gotta keep in mind the bigger picture: what system is this actually booting? Is it a bare-metal environment, or something running on a hypervisor? The answers to those questions will shape how I approach this. Let's get to it.



200/4 2026/07/31 07:33 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/ueagle-atm.c Name:uea_boot]

Results:
map[SourceCode:2093:	/*
2094:	 * Start the modem : init the data and start kernel thread
2095:	 */
2096:	static int uea_boot(struct uea_softc *sc, struct usb_interface *intf)
2097:	{
2098:		struct intr_pkt *intr;
2099:		int ret = -ENOMEM;
2100:		int size;
2101:	
2102:		if (UEA_CHIP_VERSION(sc) == EAGLE_IV) {
2103:			size = E4_INTR_PKT_SIZE;
2104:			sc->dispatch_cmv = uea_dispatch_cmv_e4;
2105:			sc->schedule_load_page = uea_schedule_load_page_e4;
2106:			sc->stat = uea_stat_e4;
2107:			sc->send_cmvs = uea_send_cmvs_e4;
2108:			INIT_WORK(&sc->task, uea_load_page_e4);
2109:		} else {
2110:			size = E1_INTR_PKT_SIZE;
2111:			sc->dispatch_cmv = uea_dispatch_cmv_e1;
2112:			sc->schedule_load_page = uea_schedule_load_page_e1;
2113:			sc->stat = uea_stat_e1;
2114:			sc->send_cmvs = uea_send_cmvs_e1;
2115:			INIT_WORK(&sc->task, uea_load_page_e1);
2116:		}
2117:	
2118:		init_waitqueue_head(&sc->sync_q);
2119:	
2120:		if (UEA_CHIP_VERSION(sc) == ADI930)
2121:			load_XILINX_firmware(sc);
2122:	
2123:		if (intf->cur_altsetting->desc.bNumEndpoints < 1) {
2124:			ret = -ENODEV;
2125:			goto err0;
2126:		}
2127:	
2128:		intr = kmalloc(size, GFP_KERNEL);
2129:		if (!intr)
2130:			goto err0;
2131:	
2132:		sc->urb_int = usb_alloc_urb(0, GFP_KERNEL);
2133:		if (!sc->urb_int)
2134:			goto err1;
2135:	
2136:		usb_fill_int_urb(sc->urb_int, sc->usb_dev,
2137:				 usb_rcvintpipe(sc->usb_dev, UEA_INTR_PIPE),
2138:				 intr, size, uea_intr, sc,
2139:				 intf->cur_altsetting->endpoint[0].desc.bInterval);
2140:	
2141:		ret = usb_submit_urb(sc->urb_int, GFP_KERNEL);
2142:		if (ret < 0) {
2143:			uea_err(INS_TO_USBDEV(sc),
2144:			       "urb submission failed with error %d\n", ret);
2145:			goto err1;
2146:		}
2147:	
2148:		/* Create worker thread, but don't start it here.  Start it after
2149:		 * all usbatm generic initialization is done.
2150:		 */
2151:		sc->kthread = kthread_create(uea_kthread, sc, "ueagle-atm");
2152:		if (IS_ERR(sc->kthread)) {
2153:			uea_err(INS_TO_USBDEV(sc), "failed to create thread\n");
2154:			ret = PTR_ERR(sc->kthread);
2155:			goto err2;
2156:		}
2157:	
2158:		return 0;
2159:	
2160:	err2:
2161:		usb_kill_urb(sc->urb_int);
2162:	err1:
2163:		usb_free_urb(sc->urb_int);
2164:		sc->urb_int = NULL;
2165:		kfree(intr);
2166:	err0:
2167:		return ret;
2168:	}
 SourceFile:drivers/usb/atm/ueagle-atm.c]

201/4 2026/07/31 07:33 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30945
							output: 44
							thoughts: 895
						

Thoughts:
**Analyzing the cxacru URB Handling**

Okay, so I'm digging into this `uea_boot` issue, and it looks like the problem, specifically within `cxacru.c`, is that we're not properly handling URB cancellation on error paths.  I recall that `kthread_create` failure is properly handled by calling `usb_kill_urb`, so it's a `cxacru.c` specific issue.

Let's re-examine this proposed fix: it unconditionally calls `usb_kill_urb(instance->rcv_urb)` when there's an error in `cxacru_cm`. Right, that's what was suggested, and it makes sense. I need to make sure this is complete and correct.

The primary concern is ensuring all URBs are correctly killed under all scenarios. Is there another URB we're missing? Nope, looks like only `rcv_urb`, or are there other submission points for the `rcv_urb`? Nope. What about `snd_urb`? No, or any other submission points? No.  Hmm, does `snd_urb` ever get *stuck* as active when we hit that `fail:` label? No, because `cxacru_start_wait_urb` explicitly waits for its completion.

But wait, what if `cxacru_start_wait_urb` gets interrupted during its wait? It uses `wait_for_completion`, and that's *not* interruptible. So, it'll block until the URB finishes or times out. In the timeout case, `cxacru_timeout_kill` gets called, which unlinks the URB. That unlink is asynchronous, but it *will* generate a completion with an error like `-ECONNRESET`, which will execute the completion handler and signal `done`.  Therefore `wait_for_completion(done)` will return, and when `cxacru_start_wait_urb` returns, the `snd_urb` is *guaranteed* to be done, one way or another. So `snd_urb` won't be active.

Okay, what about calling `usb_kill_urb` on `rcv_urb` when it's *already* completed? Or what if it was never submitted in the first place? *Phew*, `usb_kill_urb` is safe to call in either case. That's a huge relief.

Alright, after this careful analysis, this fix is perfectly safe and correct.

The fundamental issue is that `cxacru_cm()` can leave the `rcv_urb` active if there's an error submitting or waiting for the `snd_urb`. The calling function, `cxacru_atm_start()`, is then happily polling and calling `cxacru_cm()` again, and we get the warning when trying to resubmit an already active URB.

The fix is the unconditional `usb_kill_urb(instance->rcv_urb)` call in that error path. This forces the URB to stop. `usb_kill_urb()`'s robustness handles the cases where the URB might have not been submitted or already completed. As for `snd_urb`, it's not active because `cxacru_start_wait_urb()` waits for completion.

I'm confident in the correctness of this. I applied the fix using the `codeeditor` tool, and I verified the changes with the `patch-diff` tool, and it follows kernel best practices.



202/4 2026/07/31 07:33 tool codeexpert
0m Args:
map[Question:Is wait_for_completion() interruptible? If a thread is waiting in wait_for_completion(), can it be interrupted by a signal?]

Results:
map[Answer:No, `wait_for_completion()` is **not** interruptible. 

If a thread is waiting in `wait_for_completion()`, it **cannot** be interrupted by a signal. 

### Technical Details:
1. **Task State**: Under the hood, `wait_for_completion()` calls `wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_UNINTERRUPTIBLE)`. Because it sets the task's state to `TASK_UNINTERRUPTIBLE`, the waiting thread ignores standard signals and will not wake up or return until the completion is signaled via `complete()` or `complete_all()`.
2. **Alternatives**:
   - If you need a wait that can be interrupted by any signal, you should use **`wait_for_completion_interruptible()`** (which sets the task state to `TASK_INTERRUPTIBLE` and returns `-ERESTARTSYS` if interrupted).
   - If you need a wait that can only be interrupted by fatal/kill signals, you should use **`wait_for_completion_killable()`** (which sets the task state to `TASK_KILLABLE` and returns `-ERESTARTSYS` if interrupted by a fatal signal).]

203/5 2026/07/31 07:33 agent codeexpert
0m Model:
good-balanced

Results:
map[Answer:No, `wait_for_completion()` is **not** interruptible. 

If a thread is waiting in `wait_for_completion()`, it **cannot** be interrupted by a signal. 

### Technical Details:
1. **Task State**: Under the hood, `wait_for_completion()` calls `wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_UNINTERRUPTIBLE)`. Because it sets the task's state to `TASK_UNINTERRUPTIBLE`, the waiting thread ignores standard signals and will not wake up or return until the completion is signaled via `complete()` or `complete_all()`.
2. **Alternatives**:
   - If you need a wait that can be interrupted by any signal, you should use **`wait_for_completion_interruptible()`** (which sets the task state to `TASK_INTERRUPTIBLE` and returns `-ERESTARTSYS` if interrupted).
   - If you need a wait that can only be interrupted by fatal/kill signals, you should use **`wait_for_completion_killable()`** (which sets the task state to `TASK_KILLABLE` and returns `-ERESTARTSYS` if interrupted by a fatal signal).]

Instruction:
You are a capable Linux kernel developer tasked with researching complex questions
about kernel source code. You will be given a concrete question, and need to provide
a concrete answer.
Use tools extensively while researching the question. Don't make assumptions,
or rely on your previous knowledge about the kernel source code, use available tools
to access the actual source code.
Use all available sources of information:
 - kernel source code
 - documentation in the Documentation dir in the source tree
 - git commits descriptions, git blame

Do not guess file names or file paths and attempt to read them without
verifying their existence first using content search or directory listing tools.
If a file, symbol, or directory is not found via content search (grepper) or
directory listing (codesearch-dir-index), treat it as completely absent.
Do not attempt to guess alternative names, extensions, or directories.

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.

Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.

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:
Is wait_for_completion() interruptible? If a thread is waiting in wait_for_completion(), can it be interrupted by a signal?

204/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 3891
							output: 36
							thoughts: 94
						

Thoughts:
**Investigating Interruptibility of `wait_for_completion()`**

Okay, so the question is straightforward: Can a call to `wait_for_completion()` be interrupted? More specifically, if a thread is blocked inside `wait_for_completion()`, can a signal yank it out? I need to understand the interruptibility behavior of this function.

To get the definitive answer, I'm going to head straight to the source. Let's see... I'll use `codesearch-definition-source` or `codesearch-definition-comment` for `wait_for_completion` to pinpoint the definition within the kernel code. That's the only way to be absolutely sure about its signal handling and any potential interrupt mechanisms it might employ. Understanding the exact implementation details is critical for answering this question definitively.



205/6 2026/07/31 07:33 tool codesearch-definition-comment
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion]

Results:
map[Comment: 141:	/**
 142:	 * wait_for_completion: - waits for completion of a task
 143:	 * @x:  holds the state of this particular completion
 144:	 *
 145:	 * This waits to be signaled for completion of a specific task. It is NOT
 146:	 * interruptible and there is no timeout.
 147:	 *
 148:	 * See also similar routines (i.e. wait_for_completion_timeout()) with timeout
 149:	 * and interrupt capability. Also see complete().
 150:	 */
 Kind:function]

206/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 4368
							output: 36
							thoughts: 20
						

Thoughts:
Okay, let's dive into this. Here's my thought process on this:

**Deep Dive into `wait_for_completion` Implementation**

Right, so we need to be absolutely certain about how `wait_for_completion` actually works under the hood. I know the general idea, the API surface, but I need to scrutinize the implementation details, the nitty-gritty code itself. This isn't just a casual review; this is about solidifying my understanding and perhaps identifying subtle edge cases or performance bottlenecks that might not be immediately obvious from just reading the documentation or using the function in a simple scenario. I'm going to look for thread synchronization primitives, any potential for deadlocks or race conditions, and how it handles different failure modes – what happens if the operation times out, or if there's an unexpected exception thrown during the process it's waiting on. I also need to verify that it's using the correct system calls or library functions for optimal performance in various situations. It's time to get a more granular, line-by-line understanding, just to be sure.



207/6 2026/07/31 07:33 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion]

Results:
map[SourceCode: 141:	/**
 142:	 * wait_for_completion: - waits for completion of a task
 143:	 * @x:  holds the state of this particular completion
 144:	 *
 145:	 * This waits to be signaled for completion of a specific task. It is NOT
 146:	 * interruptible and there is no timeout.
 147:	 *
 148:	 * See also similar routines (i.e. wait_for_completion_timeout()) with timeout
 149:	 * and interrupt capability. Also see complete().
 150:	 */
 151:	void __sched wait_for_completion(struct completion *x)
 152:	{
 153:		wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_UNINTERRUPTIBLE);
 154:	}
 SourceFile:kernel/sched/completion.c]

208/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 4906
							output: 26
							thoughts: 152
						

Thoughts:
**Analyzing the Implication of an Uninterruptible Wait**

Okay, so I'm looking at this code snippet, and the comment is pretty clear: this `wait_for_completion` function is *not* going to be interrupted. It patiently waits for a signal and has no timeout. The implementation confirms this, using `TASK_UNINTERRUPTIBLE`. That's the key. This line means the task will block until it gets the signal, and won't respond to any signals in the meantime, which makes sense for the intended behavior.

However, I'm an expert in this area, so I want to be comprehensive. While this specific function's behavior is clear, let's explore this further. Just to confirm that this is the only option, I'll quickly check the other related wait functions. I will examine `kernel/sched/completion.c` to see if there are *other* completion wait functions and, if so, whether any of them offer an interruptible option. That will allow me to be certain in my analysis. I would want to have a definitive answer for my audience.



209/6 2026/07/31 07:33 tool codesearch-file-index
0m Args:
map[SourceFile:kernel/sched/completion.c]

Results:
map[Entities:[map[Kind:function Name:__wait_for_common] map[Kind:function Name:complete] map[Kind:function Name:complete_all] map[Kind:function Name:complete_on_current_cpu] map[Kind:function Name:complete_with_flags] map[Kind:function Name:completion_done] map[Kind:function Name:do_wait_for_common] map[Kind:function Name:try_wait_for_completion] map[Kind:function Name:wait_for_common] map[Kind:function Name:wait_for_common_io] map[Kind:function Name:wait_for_completion] map[Kind:function Name:wait_for_completion_interruptible] map[Kind:function Name:wait_for_completion_interruptible_timeout] map[Kind:function Name:wait_for_completion_io] map[Kind:function Name:wait_for_completion_io_timeout] map[Kind:function Name:wait_for_completion_killable] map[Kind:function Name:wait_for_completion_killable_timeout] map[Kind:function Name:wait_for_completion_state] map[Kind:function Name:wait_for_completion_timeout] map[Kind:global_variable Name:__UNIQUE_ID_addressable_complete_1743] map[Kind:global_variable Name:__UNIQUE_ID_addressable_complete_all_1745] map[Kind:global_variable Name:__UNIQUE_ID_addressable_completion_done_1761] map[Kind:global_variable Name:__UNIQUE_ID_addressable_try_wait_for_completion_1759] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_1749] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_interruptible_1753] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_interruptible_timeout_1754] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_io_1751] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_io_timeout_1752] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_killable_1755] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_killable_timeout_1757] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_state_1756] map[Kind:global_variable Name:__UNIQUE_ID_addressable_wait_for_completion_timeout_1750] map[Kind:global_variable Name:__gendwarfksyms_ptr_complete] map[Kind:global_variable Name:__gendwarfksyms_ptr_complete_all] map[Kind:global_variable Name:__gendwarfksyms_ptr_completion_done] map[Kind:global_variable Name:__gendwarfksyms_ptr_try_wait_for_completion] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_interruptible] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_interruptible_timeout] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_io] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_io_timeout] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_killable] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_killable_timeout] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_state] map[Kind:global_variable Name:__gendwarfksyms_ptr_wait_for_completion_timeout]]]

210/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 6457
							output: 39
							thoughts: 18
						

Thoughts:
Here's my analysis of the provided snippet, framed as my own thought process:

**Diving Deeper: Exploring `wait_for_completion_interruptible`**

Okay, I'm already pretty familiar with the general workflow, but it's important to be thorough. I need to understand this whole process fully. I've been focusing on the core, but now I think I should switch my attention to `wait_for_completion_interruptible`. It's a key function in handling concurrency and potentially blocking operations, so understanding how it interacts with the rest of the system is critical to a comprehensive understanding of the implementation. I'm going to dig into its code and usage patterns next. Let's see what interesting insights I can uncover there. It's a key part of the puzzle.



211/6 2026/07/31 07:33 tool codesearch-definition-comment
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion_interruptible]

Results:
map[Comment: 210:	/**
 211:	 * wait_for_completion_interruptible: - waits for completion of a task (w/intr)
 212:	 * @x:  holds the state of this particular completion
 213:	 *
 214:	 * This waits for completion of a specific task to be signaled. It is
 215:	 * interruptible.
 216:	 *
 217:	 * Return: -ERESTARTSYS if interrupted, 0 if completed.
 218:	 */
 Kind:function]

212/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 6841
							output: 39
							thoughts: 10
						

Thoughts:
Okay, let's dive into this. Here's my perspective on examining the source code:

**Diving Deep into the Code**

Alright, so we're taking a look at the source code now. That's fantastic. This is where the rubber really meets the road. I need to understand not just what the system *does*, but *how* it does it. This is where the magic (or the problems!) lie. I'm going to be looking for architecture, design patterns, any obvious algorithmic inefficiencies, potential security vulnerabilities... the whole nine yards. I'll be expecting clean, well-documented code, hopefully following solid coding principles. The goal is to see if any obvious vulnerabilities are present or ways to optimize performance.



213/6 2026/07/31 07:33 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion_interruptible]

Results:
map[SourceCode: 210:	/**
 211:	 * wait_for_completion_interruptible: - waits for completion of a task (w/intr)
 212:	 * @x:  holds the state of this particular completion
 213:	 *
 214:	 * This waits for completion of a specific task to be signaled. It is
 215:	 * interruptible.
 216:	 *
 217:	 * Return: -ERESTARTSYS if interrupted, 0 if completed.
 218:	 */
 219:	int __sched wait_for_completion_interruptible(struct completion *x)
 220:	{
 221:		long t = wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_INTERRUPTIBLE);
 222:	
 223:		if (t == -ERESTARTSYS)
 224:			return t;
 225:		return 0;
 226:	}
 SourceFile:kernel/sched/completion.c]

214/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 7327
							output: 39
							thoughts: 11
						

Thoughts:
Okay, here's my interpretation of that.

**Analyzing the `wait_for_completion_killable` Function**

Alright, let's break this down. When I see `wait_for_completion_killable`, my expert mind immediately starts thinking about concurrent processes, thread management, and resource cleanup. This function is obviously designed for a scenario where we have a task or a process running, and we need a robust mechanism to wait for its completion – *but* with the crucial ability to interrupt or terminate it if necessary. This implies a potentially long-running operation that might need to be cancelled, perhaps due to timeouts, user requests, or external events.

My first thought is around thread safety. If this function is part of a multi-threaded application, it needs to handle concurrency carefully.  Specifically, is there a risk of race conditions or deadlocks? What synchronization primitives are being used?  Mutexes? Semaphores? Condition variables? I'll need to look deeper into the specific implementation to see how it manages shared resources.

Then there's the 'killable' aspect. How is the termination implemented? Is it using signals (like SIGTERM or SIGKILL on Linux/Unix systems), thread-level interrupts, or a more sophisticated approach? A graceful shutdown would be ideal, where the process can clean up its resources before termination, but a forced kill might be necessary in certain scenarios. Understanding the termination strategy is crucial. I need to figure out what happens if the operation doesn't respond to a "graceful" termination request. Does this function have a timeout or any other way to avoid it hanging indefinitely?

Furthermore, I have to consider error handling. What happens if the process completes successfully? How are different exit codes or return values handled? Does the function differentiate between clean completion, an intentional termination, or an unexpected error? And equally important, does it have robust error handling? It should be able to log errors effectively and perhaps raise exceptions if necessary.

Finally, I'm already wondering about resource management. What resources does the waited-for process own? Files? Network connections? Memory? The `wait_for_completion_killable` function has a responsibility to ensure these resources are properly released, regardless of how the waited-for process completes. Memory leaks, dangling file descriptors, and orphaned connections are all nightmares that this function *must* avoid. I will be looking closely at how resources are tracked and cleaned up.



215/6 2026/07/31 07:33 tool codesearch-definition-comment
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion_killable]

Results:
map[Comment: 248:	/**
 249:	 * wait_for_completion_killable: - waits for completion of a task (killable)
 250:	 * @x:  holds the state of this particular completion
 251:	 *
 252:	 * This waits to be signaled for completion of a specific task. It can be
 253:	 * interrupted by a kill signal.
 254:	 *
 255:	 * Return: -ERESTARTSYS if interrupted, 0 if completed.
 256:	 */
 Kind:function]

216/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 8045
							output: 39
							thoughts: 10
						

Thoughts:
Okay, let's dive into this. Here's my perspective on examining the source code:

**Diving Deep into the Code**

Alright, so we're taking a look at the source code now. That's fantastic. This is where the rubber really meets the road. I need to understand not just what the system *does*, but *how* it does it. This is where the magic (or the problems!) lie. I'm going to be looking for architecture, design patterns, any obvious algorithmic inefficiencies, potential security vulnerabilities... the whole nine yards. I'll be expecting clean, well-documented code, hopefully following solid coding principles. The goal is to see if any obvious vulnerabilities are present or ways to optimize performance.



217/6 2026/07/31 07:33 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/sched/completion.c Name:wait_for_completion_killable]

Results:
map[SourceCode: 248:	/**
 249:	 * wait_for_completion_killable: - waits for completion of a task (killable)
 250:	 * @x:  holds the state of this particular completion
 251:	 *
 252:	 * This waits to be signaled for completion of a specific task. It can be
 253:	 * interrupted by a kill signal.
 254:	 *
 255:	 * Return: -ERESTARTSYS if interrupted, 0 if completed.
 256:	 */
 257:	int __sched wait_for_completion_killable(struct completion *x)
 258:	{
 259:		long t = wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_KILLABLE);
 260:	
 261:		if (t == -ERESTARTSYS)
 262:			return t;
 263:		return 0;
 264:	}
 SourceFile:kernel/sched/completion.c]

218/6 2026/07/31 07:33 llm codeexpert
0m Model:
gemini-3.5-flash

Tokens:
							input: 8532
							output: 278
							thoughts: 201
						

Thoughts:
**My Analysis of Interruptibility in `wait_for_completion()`**

Right, this is clear. We've got everything we need here. Let me just confirm those crucial points from the original questions:

*   **Question 1:** Is `wait_for_completion()` interruptible? The answer is definitively no.
*   **Question 2:** If a thread is stuck in `wait_for_completion()`, can a signal interrupt it? Again, the answer is no. This is because the function puts the task into the `TASK_UNINTERRUPTIBLE` state, which means signals are ignored. That’s the core of the behavior we're seeing.

Now, it's important to add some nuance here for the sake of completeness, and for the benefit of anyone looking at this later on. I need to be clear that the behavior isn't the *only* option. There are alternative functions to be aware of:

*   `wait_for_completion_interruptible()` - This utilizes `TASK_INTERRUPTIBLE`. That means the wait can be interrupted by *any* signal, with a return value of `-ERESTARTSYS`.
*   `wait_for_completion_killable()` - This is even more specific, using `TASK_KILLABLE`. It's interruptible, but only by fatal or kill signals, still returning `-ERESTARTSYS`.

Okay, I'm confident in the summary now. Time to use the `set-results` tool and get the answer properly documented.



219/6 2026/07/31 07:33 tool set-results
0m Args:
map[Answer:No, `wait_for_completion()` is **not** interruptible. 

If a thread is waiting in `wait_for_completion()`, it **cannot** be interrupted by a signal. 

### Technical Details:
1. **Task State**: Under the hood, `wait_for_completion()` calls `wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_UNINTERRUPTIBLE)`. Because it sets the task's state to `TASK_UNINTERRUPTIBLE`, the waiting thread ignores standard signals and will not wake up or return until the completion is signaled via `complete()` or `complete_all()`.
2. **Alternatives**:
   - If you need a wait that can be interrupted by any signal, you should use **`wait_for_completion_interruptible()`** (which sets the task state to `TASK_INTERRUPTIBLE` and returns `-ERESTARTSYS` if interrupted).
   - If you need a wait that can only be interrupted by fatal/kill signals, you should use **`wait_for_completion_killable()`** (which sets the task state to `TASK_KILLABLE` and returns `-ERESTARTSYS` if interrupted by a fatal signal).]

Results:
map[Answer:No, `wait_for_completion()` is **not** interruptible. 

If a thread is waiting in `wait_for_completion()`, it **cannot** be interrupted by a signal. 

### Technical Details:
1. **Task State**: Under the hood, `wait_for_completion()` calls `wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_UNINTERRUPTIBLE)`. Because it sets the task's state to `TASK_UNINTERRUPTIBLE`, the waiting thread ignores standard signals and will not wake up or return until the completion is signaled via `complete()` or `complete_all()`.
2. **Alternatives**:
   - If you need a wait that can be interrupted by any signal, you should use **`wait_for_completion_interruptible()`** (which sets the task state to `TASK_INTERRUPTIBLE` and returns `-ERESTARTSYS` if interrupted).
   - If you need a wait that can only be interrupted by fatal/kill signals, you should use **`wait_for_completion_killable()`** (which sets the task state to `TASK_KILLABLE` and returns `-ERESTARTSYS` if interrupted by a fatal signal).]

220/4 2026/07/31 07:33 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32916
							output: 681
							thoughts: 76
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Finalizing the Fix: Interruptibility & URB Completion**

Right, that's exactly what I wanted to see. The `wait_for_completion` function's non-interruptible nature is the key here. This means `cxacru_start_wait_urb` will *guaranteed* block until either the USB Request Block (URB) is done or we hit the timeout. This is the behavior we *need*.

And that implication... that `snd_urb` won't be active when `cxacru_start_wait_urb` exits? That's golden. It cleanly avoids the race condition we were worried about.

Yep, the solution is rock solid. It addresses the core issue in a manner that's both efficient and avoids any potential side effects. I'm ready to move forward and wrap this up with the final response.



221/3 2026/07/31 07:34 action test-patch
18m Results:
map[PatchDiff:diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
 TestError:]

222/1 2026/07/31 07:52 action apply-patch
0m Results:
map[]

223/1 2026/07/31 07:52 action init-style-items
0m Results:
map[StyleItems:<nil>]

224/1 2026/07/31 07:52 loop
0m
225/2 2026/07/31 07:52 iteration 0
0m
226/3 2026/07/31 07:52 agent patch-formatter
0m Model:
good-balanced

Instruction:
You are an expert Linux kernel developer tasked with formatting a kernel patch.
Your objective is purely formatting: you must ensure the patch complies with the kernel's coding style,
conforms to the surrounding code rules, and passes checkpatch.pl, while preserving the code logic exactly as it is.
You should stop once the requested formatting changes are done and checkpatch.pl is happy.
Do not question the requested changes unless they are obviously wrong.
If the code already conforms to the requested changes, surrounding code rules,
and checkpatch.pl is happy, you should just finish your task.

WARNING: The clang-format tool may break the formatting of the surrounding code (like manual alignment).
Use it with caution. We want to make the change fit into the existing formatting as much as possible.

Prefer calling several tools at the same time to save round-trips.

Prompt:
The current patch diff is:

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;










Use the provided tools to format the patch.

Reply:
The current patch already complies with the Linux kernel's coding style, conforms to the surrounding code rules, and successfully passes `checkpatch.pl` with 0 errors and 0 warnings. No further formatting changes are required.

227/4 2026/07/31 07:52 llm patch-formatter
0m Model:
gemini-3.5-flash

Tokens:
							input: 4513
							output: 39
							thoughts: 121
						

Thoughts:
**Analyzing the `cxacru.c` Patch**

Okay, first things first, I need to understand this patch thoroughly. Let's see, it looks like the target is the `drivers/usb/atm/cxacru.c` file. Given my expertise, I always start by grasping the surrounding code to understand the context of the change. Let me quickly examine `cxacru.c` around line 700 to get a good feel for things. I can use the usual tools for this, either a simple `read-file` command to see the surrounding lines directly, or I might use a `codesearch-definition-source` or `grepper` if I need more targeted information. For now, let's just go with a `read-file` command to look at lines 680 to 720 of `cxacru.c`. That should give me the immediate context I need to proceed.



228/4 2026/07/31 07:52 tool read-file
0m Args:
map[File:drivers/usb/atm/cxacru.c FirstLine:680 LineCount:40]

Results:
map[Contents: 680:			if (rbuf[offb] != cm) {
 681:				if (printk_ratelimit())
 682:					usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 683:						rbuf[offb], cm);
 684:				ret = -EIO;
 685:				goto fail;
 686:			}
 687:			if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 688:				if (printk_ratelimit())
 689:					usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 690:						cm, rbuf[offb + 1]);
 691:				ret = -EIO;
 692:				goto fail;
 693:			}
 694:			if (offd >= rsize)
 695:				break;
 696:			memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 697:			offd += stride;
 698:		}
 699:	
 700:		ret = offd;
 701:		usb_dbg(instance->usbatm, "cm %#x\n", cm);
 702:	fail:
 703:		mutex_unlock(&instance->cm_serialize);
 704:	err:
 705:		return ret;
 706:	}
 707:	
 708:	static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 709:				       u32 *data, int size)
 710:	{
 711:		int ret, len;
 712:		__le32 *buf;
 713:		int offb;
 714:		unsigned int offd;
 715:		const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
 716:		int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
 717:	
 718:		buf = kmalloc(buflen, GFP_KERNEL);
 719:		if (!buf)
]

229/4 2026/07/31 07:52 llm patch-formatter
0m Model:
gemini-3.5-flash

Tokens:
							input: 5510
							output: 9
							thoughts: 20
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing the Patch with `checkpatch`**

Alright, let's get down to brass tacks. Before I even *look* at the code with my own eyes – well, not *before*, but as a first step – I'm thinking, "Run `checkpatch`." It's the gatekeeper, the automated sanity check, the thing that'll catch the low-hanging fruit and flag any obvious style violations or potential problems that I, as a human, might miss initially. I want to clear the deck before diving into the nitty-gritty. Get the easy stuff out of the way. It's about efficiency; no need to waste time on a code review if the patch breaks kernel style, is improperly formatted or has a blatantly obvious issue that the tool can flag. This is the first diagnostic scan before any deeper scrutiny takes place.



230/4 2026/07/31 07:52 tool checkpatch
0m Results:
map[Output:total: 0 errors, 0 warnings, 8 lines checked

Your patch has no obvious style problems and is ready for submission.
]

231/4 2026/07/31 07:52 llm patch-formatter
0m Model:
gemini-3.5-flash

Tokens:
							input: 5778
							output: 26
							thoughts: 49
						

Thoughts:
Okay, here's the summary, written as if it's my own thought process:

**Refining the Output**

Hold on a second, before I finalize this, I want to make sure the formatting is absolutely pristine. Is there anything else that can be tweaked to be even cleaner and more professional? I need to eliminate any lingering inefficiencies. Let's explore every last detail.

Also, just to be sure, I should check whether a tool like `patch-diff` can reveal the exact differences made. That way I can be certain the output is perfect.



232/4 2026/07/31 07:52 tool patch-diff
0m Args:
map[File:drivers/usb/atm/cxacru.c]

Results:
map[Output:diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -608,105 +608,107 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
 static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 		     u8 *wdata, int wsize, u8 *rdata, int rsize)
 {
 	int ret, actlen;
 	int offb, offd;
 	const int stride = CMD_PACKET_SIZE - 4;
 	u8 *wbuf = instance->snd_buf;
 	u8 *rbuf = instance->rcv_buf;
 	int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 	int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 
 	if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 				wbuflen, rbuflen);
 		ret = -ENOMEM;
 		goto err;
 	}
 
 	mutex_lock(&instance->cm_serialize);
 
 	/* submit reading urb before the writing one */
 	init_completion(&instance->rcv_done);
 	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 				cm, ret);
 		goto fail;
 	}
 
 	memset(wbuf, 0, wbuflen);
 	/* handle wsize == 0 */
 	wbuf[0] = cm;
 	for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 		wbuf[offb] = cm;
 		memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 	}
 
 	instance->snd_urb->transfer_buffer_length = wbuflen;
 	init_completion(&instance->snd_done);
 	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 				cm, ret);
 		goto fail;
 	}
 
 	ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 		goto fail;
 	}
 
 	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 	if (ret < 0) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 		goto fail;
 	}
 	if (actlen % CMD_PACKET_SIZE || !actlen) {
 		if (printk_ratelimit())
 			usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 				cm, actlen);
 		ret = -EIO;
 		goto fail;
 	}
 
 	/* check the return status and copy the data to the output buffer, if needed */
 	for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 		if (rbuf[offb] != cm) {
 			if (printk_ratelimit())
 				usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 					rbuf[offb], cm);
 			ret = -EIO;
 			goto fail;
 		}
 		if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 			if (printk_ratelimit())
 				usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 					cm, rbuf[offb + 1]);
 			ret = -EIO;
 			goto fail;
 		}
 		if (offd >= rsize)
 			break;
 		memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 		offd += stride;
 	}
 
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
 }
 
 static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
 			       u32 *data, int size)
 {
 	int ret, len;
 	__le32 *buf;
]

233/4 2026/07/31 07:52 llm patch-formatter
0m Model:
gemini-3.5-flash

Tokens:
							input: 7489
							output: 46
							thoughts: 193
						

Thoughts:
**Finalizing the Formatting Check**

Okay, so the patch I've got looks good, perfectly formatted. Just to be absolutely certain, even though my initial assessment is positive, I should do another `checkpatch` run. But before I do that, it's probably best to check for anything else that needs addressing in the surrounding files. The user is guiding me. I need to make sure I'm only focusing on formatting, and that the code logic remains unchanged. They've specifically stated that if the patch already checks out with the requested changes, surrounding code rules, and `checkpatch.pl`, then I can just finish up. Since everything seems to be in order, I'm confident that the code already adheres to everything I need to comply with. Therefore, I can simply wrap this up with a clear explanation of what was done, and confirm that it is complete.



234/3 2026/07/31 07:52 action test-patch-inplace
0m Results:
map[PatchDiff:diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
 TestError:]

235/3 2026/07/31 07:52 action run-checkpatch
0m Results:
map[CheckpatchOutput:total: 0 errors, 0 warnings, 8 lines checked

Your patch has no obvious style problems and is ready for submission.
 NeedRefinement:false]

236/1 2026/07/31 07:52 agent fixes-finder
0m Model:
best-expensive

Results:
map[FixesHash:1b0e614652344a2d39eb336f3dc07651782883bf]

Instruction:
You are an experienced Linux kernel developer tasked with identifying the commit
that introduced the bug being fixed. Identifying the correct buggy commit is crucial
for proper kernel maintenance (backporting to stable trees, etc.).

Your investigation strategy:
1. Examine the patch that fixes the bug. Use git tools (like git-log or git-blame)
   to trace the history of the lines or functions modified by the patch.
2. Analyze the stack trace in the crash report. Identify the key files and functions
   involved in the crash and investigate their history to see when the problematic
   logic was introduced.
3. Compare the bug explanation with the commit history to find the point where
   the described logic error first appeared.

A bug is typically introduced when a piece of code is first written, or when
a refactoring changed its logic in a way that introduced the bug.
Trace the history of relevant symbols or find when specific code patterns were introduced/removed.

You must provide exactly one bug-introducing commit hash.
If you are unable to confidently determine the bug-introducing commit after investigation,
return an empty string rather than guessing.

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:
The crash is:

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e



The explanation of the root cause is:

The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` (`0x84`) command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first (line 631).
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()` (line 657).
4. In the syzkaller reproducer, the USB device behaves unexpectedly (e.g., endpoint stall or disconnect), causing `snd_urb` to complete with an error status of `-104` (`-ECONNRESET`). 
5. `cxacru_start_wait_urb()` returns this `-104` error, which prompts `cxacru_cm()` to print `"send of cm 0x84 failed (-104)"` and jump to the `fail:` label (line 661).
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, **leaving `rcv_urb` still active and pending**.
7. Back in `cxacru_atm_start()`, the error is printed (`"CHIP_ADSL_LINE_START returned -104"`) but ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

### Fix
To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

```c
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
```


The patch that fixes the bug is:

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;


Search for the commit(s) that introduced this bug.

237/2 2026/07/31 07:52 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7529
							output: 40
							thoughts: 182
						

Thoughts:
**Pinpointing the Root Cause of the cxacru_cm Bug**

Alright, let's tackle this `cxacru_cm()` bug. The core of the problem, as I understand it, lies in `rcv_urb` remaining active when submitting or waiting for `snd_urb` fails within that function. My task now is to trace the origins of this flaw. Specifically, the proposed fix, adding `usb_kill_urb(instance->rcv_urb);` at the `fail:` label, will be crucial in my investigation.

My first step is to dive into the source code itself, focusing on `drivers/usb/atm/cxacru.c`. Then, the real detective work begins. I'll leverage the power of `git-log` or `git-blame` on that file to reconstruct the evolution of `cxacru_cm()`. I want to identify the exact commit – or commits – that introduced this vulnerability. I'm looking for the modification that either introduced the logic flaw directly or, more subtly, changed something in the surrounding code that exposed this bug. Understanding the history is the key to fixing this. I need to understand when and how the critical code was introduced or modified.



238/2 2026/07/31 07:52 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/usb/atm/cxacru.c Name:cxacru_cm]

Results:
map[SourceCode: 608:	static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 609:			     u8 *wdata, int wsize, u8 *rdata, int rsize)
 610:	{
 611:		int ret, actlen;
 612:		int offb, offd;
 613:		const int stride = CMD_PACKET_SIZE - 4;
 614:		u8 *wbuf = instance->snd_buf;
 615:		u8 *rbuf = instance->rcv_buf;
 616:		int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 617:		int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
 618:	
 619:		if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
 620:			if (printk_ratelimit())
 621:				usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
 622:					wbuflen, rbuflen);
 623:			ret = -ENOMEM;
 624:			goto err;
 625:		}
 626:	
 627:		mutex_lock(&instance->cm_serialize);
 628:	
 629:		/* submit reading urb before the writing one */
 630:		init_completion(&instance->rcv_done);
 631:		ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
 632:		if (ret < 0) {
 633:			if (printk_ratelimit())
 634:				usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
 635:					cm, ret);
 636:			goto fail;
 637:		}
 638:	
 639:		memset(wbuf, 0, wbuflen);
 640:		/* handle wsize == 0 */
 641:		wbuf[0] = cm;
 642:		for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
 643:			wbuf[offb] = cm;
 644:			memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
 645:		}
 646:	
 647:		instance->snd_urb->transfer_buffer_length = wbuflen;
 648:		init_completion(&instance->snd_done);
 649:		ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
 650:		if (ret < 0) {
 651:			if (printk_ratelimit())
 652:				usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
 653:					cm, ret);
 654:			goto fail;
 655:		}
 656:	
 657:		ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
 658:		if (ret < 0) {
 659:			if (printk_ratelimit())
 660:				usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
 661:			goto fail;
 662:		}
 663:	
 664:		ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
 665:		if (ret < 0) {
 666:			if (printk_ratelimit())
 667:				usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
 668:			goto fail;
 669:		}
 670:		if (actlen % CMD_PACKET_SIZE || !actlen) {
 671:			if (printk_ratelimit())
 672:				usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
 673:					cm, actlen);
 674:			ret = -EIO;
 675:			goto fail;
 676:		}
 677:	
 678:		/* check the return status and copy the data to the output buffer, if needed */
 679:		for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
 680:			if (rbuf[offb] != cm) {
 681:				if (printk_ratelimit())
 682:					usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
 683:						rbuf[offb], cm);
 684:				ret = -EIO;
 685:				goto fail;
 686:			}
 687:			if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
 688:				if (printk_ratelimit())
 689:					usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
 690:						cm, rbuf[offb + 1]);
 691:				ret = -EIO;
 692:				goto fail;
 693:			}
 694:			if (offd >= rsize)
 695:				break;
 696:			memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
 697:			offd += stride;
 698:		}
 699:	
 700:		ret = offd;
 701:		usb_dbg(instance->usbatm, "cm %#x\n", cm);
 702:	fail:
 703:		mutex_unlock(&instance->cm_serialize);
 704:	err:
 705:		return ret;
 706:	}
 SourceFile:drivers/usb/atm/cxacru.c]

239/2 2026/07/31 07:52 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9742
							output: 38
							thoughts: 113
						

Thoughts:
**Analyzing the cxacru_cm Bug**

Okay, so the issue boils down to a race condition with `rcv_urb`. I see that it's submitted earlier, specifically at line 631. Then, if either `usb_submit_urb` on the `snd_urb` fails at 649, or `cxacru_start_wait_urb` fails at 657, the code jumps to the `fail:` label. The critical bit here is that the mutex gets unlocked *before* we deal with the still-active `rcv_urb`. That's bad. That means the receive URB is potentially running without proper protection, leading to data corruption or other nasty side effects, depending on the kernel version and driver. 

Time to dig into the history of `cxacru_cm`. I need to see how and why that `rcv_urb` submission was put there in the first place, and what assumptions were made about its lifecycle in relation to the `snd_urb` and the mutex. I'm going to look for any related changes or fixes that might shed light on this, and also how other drivers handle similar scenarios. I need to be sure before I make any suggestions on what needs to be changed.



240/2 2026/07/31 07:53 tool git-log
0m Error:
log-in to see details

Args:
map[PathPrefix:drivers/usb/atm/cxacru.c SymbolName:cxacru_cm]

Results:
map[Output:]

241/2 2026/07/31 07:53 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10183
							output: 38
							thoughts: 20
						

Thoughts:
Okay, here's my summary, tailored as if I'm an expert in the field thinking through this:

**Refining My Approach to Symbol Resolution**

Right, as I'm thinking through this, it just clicked. Using `SourcePath` is definitely the right move, rather than sticking with `PathPrefix` for `SymbolName`. It feels like a cleaner and more direct approach for resolving the symbol. The conceptual model is more accurate, and that's going to simplify things down the line. It's subtle, but it will make for more clarity, more consistency in the code, and should make debugging a whole lot easier. Plus, this might offer future extensibility, which is always something to consider. Yes, `SourcePath` is the superior option here.



242/2 2026/07/31 07:53 tool git-log
0m Args:
map[SourcePath:drivers/usb/atm/cxacru.c SymbolName:cxacru_cm]

Results:
map[Output:c68bb0d73889 USB: cxacru: document how to interact with the flash memory
1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
]

243/2 2026/07/31 07:53 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10473
							output: 27
							thoughts: 38
						

Thoughts:
Here's my analysis of the commit `1b0e61465234 [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru`:

**Analyzing a USB ATM Driver Commit**

Okay, so I'm looking at commit `1b0e61465234`. The subject line, "[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru," immediately tells me a few things. First, it's a *patch*, meaning a proposed change or addition to the existing codebase, which is standard procedure. Second, it concerns a USB ATM driver. ATM, Asynchronous Transfer Mode, brings up thoughts of older networking technologies, possibly interesting for legacy system support or specific embedded applications. Third, the driver is specifically for the Conexant AccessRunner chipset, cxacru, which is helpful context.

I'd want to quickly assess a few things. First, *is* there an existing driver? Perhaps this is a rewrite, an improvement, or an initial implementation. I'd go to the codebase and see if it's new code being added or existing code being modified. From there, I'd dig into the actual code changes within the patch. I'd pay close attention to the interface with the USB subsystem, specifically the interaction with the USB device and how the ATM layer is mapped onto the USB protocol. The cxacru chipset's specifications and datasheets would be useful for that analysis. I'll need to figure out what protocols are supported. Is it AAL5? Does it handle traffic shaping? 

I would also consider its interaction with the existing kernel ATM stack. Does it adhere to the standard ATM network interface (e.g., how the VPI/VCI values are handled)? How does it interface with upper-layer network protocols? Memory management within the driver is a primary consideration, along with interrupt handling within the USB driver. Then, if this is for the mainline kernel, I would be looking for the robustness, maintainability, and security implications of this commit. Finally, what’s the stated purpose of the driver? Is it for end-user consumer equipment or specific embedded systems? Answering that would help put the design within the correct context.



244/2 2026/07/31 07:53 tool git-show
0m Args:
map[Commit:1b0e61465234]

Results:
map[Output:commit 1b0e614652344a2d39eb336f3dc07651782883bf
Author: Duncan Sands <duncan.sands@math.u-psud.fr>
Date:   Wed May 11 20:19:29 2005 +0200

    [PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru
    
    Driver for modems based on the Conexant AccessRunner chipset.
    Original patch by Josep Comas, much reworked by Roman Kagan.
    
    Signed-off-by: Duncan Sands <baldrick@free.fr>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
new file mode 100644
index 000000000000..cbd4a7d25d0b
--- /dev/null
+++ b/drivers/usb/atm/cxacru.c
@@ -0,0 +1,878 @@
+/******************************************************************************
+ *  cxacru.c  -  driver for USB ADSL modems based on
+ *               Conexant AccessRunner chipset
+ *
+ *  Copyright (C) 2004 David Woodhouse, Duncan Sands, Roman Kagan
+ *  Copyright (C) 2005 Duncan Sands, Roman Kagan (rkagan % mail ! ru)
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License as published by the Free
+ *  Software Foundation; either version 2 of the License, or (at your option)
+ *  any later version.
+ *
+ *  This program is distributed in the hope that it will be useful, but WITHOUT
+ *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ *  more details.
+ *
+ *  You should have received a copy of the GNU General Public License along with
+ *  this program; if not, write to the Free Software Foundation, Inc., 59
+ *  Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ *
+ ******************************************************************************/
+
+/*
+ *  Credit is due for Josep Comas, who created the original patch to speedtch.c
+ *  to support the different padding used by the AccessRunner (now generalized
+ *  into usbatm), and the userspace firmware loading utility.
+ */
+
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/kernel.h>
+#include <linux/timer.h>
+#include <linux/errno.h>
+#include <linux/slab.h>
+#include <linux/init.h>
+#include <linux/device.h>	/* FIXME: linux/firmware.h should include it itself */
+#include <linux/firmware.h>
+
+#include "usbatm.h"
+
+#define DRIVER_AUTHOR	"Roman Kagan, David Woodhouse, Duncan Sands"
+#define DRIVER_VERSION	"0.2"
+#define DRIVER_DESC	"Conexant AccessRunner ADSL USB modem driver"
+
+static const char cxacru_driver_name[] = "cxacru";
+
+#define CXACRU_EP_CMD		0x01	/* Bulk/interrupt in/out */
+#define CXACRU_EP_DATA		0x02	/* Bulk in/out */
+
+#define CMD_PACKET_SIZE		64	/* Should be maxpacket(ep)? */
+
+/* Addresses */
+#define PLLFCLK_ADDR	0x00350068
+#define PLLBCLK_ADDR	0x0035006c
+#define SDRAMEN_ADDR	0x00350010
+#define FW_ADDR		0x00801000
+#define BR_ADDR		0x00180600
+#define SIG_ADDR	0x00180500
+#define BR_STACK_ADDR	0x00187f10
+
+/* Values */
+#define SDRAM_ENA	0x1
+
+#define CMD_TIMEOUT	2000	/* msecs */
+#define POLL_INTERVAL	5000	/* msecs */
+
+/* commands for interaction with the modem through the control channel before
+ * firmware is loaded  */
+enum cxacru_fw_request {
+	FW_CMD_ERR,
+	FW_GET_VER,
+	FW_READ_MEM,
+	FW_WRITE_MEM,
+	FW_RMW_MEM,
+	FW_CHECKSUM_MEM,
+	FW_GOTO_MEM,
+};
+
+/* commands for interaction with the modem through the control channel once
+ * firmware is loaded  */
+enum cxacru_cm_request {
+	CM_REQUEST_UNDEFINED = 0x80,
+	CM_REQUEST_TEST,
+	CM_REQUEST_CHIP_GET_MAC_ADDRESS,
+	CM_REQUEST_CHIP_GET_DP_VERSIONS,
+	CM_REQUEST_CHIP_ADSL_LINE_START,
+	CM_REQUEST_CHIP_ADSL_LINE_STOP,
+	CM_REQUEST_CHIP_ADSL_LINE_GET_STATUS,
+	CM_REQUEST_CHIP_ADSL_LINE_GET_SPEED,
+	CM_REQUEST_CARD_INFO_GET,
+	CM_REQUEST_CARD_DATA_GET,
+	CM_REQUEST_CARD_DATA_SET,
+	CM_REQUEST_COMMAND_HW_IO,
+	CM_REQUEST_INTERFACE_HW_IO,
+	CM_REQUEST_CARD_SERIAL_DATA_PATH_GET,
+	CM_REQUEST_CARD_SERIAL_DATA_PATH_SET,
+	CM_REQUEST_CARD_CONTROLLER_VERSION_GET,
+	CM_REQUEST_CARD_GET_STATUS,
+	CM_REQUEST_CARD_GET_MAC_ADDRESS,
+	CM_REQUEST_CARD_GET_DATA_LINK_STATUS,
+	CM_REQUEST_MAX,
+};
+
+/* reply codes to the commands above */
+enum cxacru_cm_status {
+	CM_STATUS_UNDEFINED,
+	CM_STATUS_SUCCESS,
+	CM_STATUS_ERROR,
+	CM_STATUS_UNSUPPORTED,
+	CM_STATUS_UNIMPLEMENTED,
+	CM_STATUS_PARAMETER_ERROR,
+	CM_STATUS_DBG_LOOPBACK,
+	CM_STATUS_MAX,
+};
+
+/* indices into CARD_INFO_GET return array */
+enum cxacru_info_idx {
+	CXINF_DOWNSTREAM_RATE,
+	CXINF_UPSTREAM_RATE,
+	CXINF_LINK_STATUS,
+	CXINF_LINE_STATUS,
+	CXINF_MAC_ADDRESS_HIGH,
+	CXINF_MAC_ADDRESS_LOW,
+	CXINF_UPSTREAM_SNR_MARGIN,
+	CXINF_DOWNSTREAM_SNR_MARGIN,
+	CXINF_UPSTREAM_ATTENUATION,
+	CXINF_DOWNSTREAM_ATTENUATION,
+	CXINF_TRANSMITTER_POWER,
+	CXINF_UPSTREAM_BITS_PER_FRAME,
+	CXINF_DOWNSTREAM_BITS_PER_FRAME,
+	CXINF_STARTUP_ATTEMPTS,
+	CXINF_UPSTREAM_CRC_ERRORS,
+	CXINF_DOWNSTREAM_CRC_ERRORS,
+	CXINF_UPSTREAM_FEC_ERRORS,
+	CXINF_DOWNSTREAM_FEC_ERRORS,
+	CXINF_UPSTREAM_HEC_ERRORS,
+	CXINF_DOWNSTREAM_HEC_ERRORS,
+	CXINF_LINE_STARTABLE,
+	CXINF_MODULATION,
+	CXINF_ADSL_HEADEND,
+	CXINF_ADSL_HEADEND_ENVIRONMENT,
+	CXINF_CONTROLLER_VERSION,
+	/* dunno what the missing two mean */
+	CXINF_MAX = 0x1c,
+};
+
+struct cxacru_modem_type {
+	u32 pll_f_clk;
+	u32 pll_b_clk;
+	int boot_rom_patch;
+};
+
+struct cxacru_data {
+	struct usbatm_data *usbatm;
+
+	const struct cxacru_modem_type *modem_type;
+
+	int line_status;
+	struct work_struct poll_work;
+
+	/* contol handles */
+	struct semaphore cm_serialize;
+	u8 *rcv_buf;
+	u8 *snd_buf;
+	struct urb *rcv_urb;
+	struct urb *snd_urb;
+	struct completion rcv_done;
+	struct completion snd_done;
+};
+
+/* the following three functions are stolen from drivers/usb/core/message.c */
+static void cxacru_blocking_completion(struct urb *urb, struct pt_regs *regs)
+{
+	complete((struct completion *)urb->context);
+}
+
+static void cxacru_timeout_kill(unsigned long data)
+{
+	usb_unlink_urb((struct urb *) data);
+}
+
+static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
+				 int* actual_length)
+{
+	struct timer_list timer;
+	int status;
+
+	init_timer(&timer);
+	timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT);
+	timer.data = (unsigned long) urb;
+	timer.function = cxacru_timeout_kill;
+	add_timer(&timer);
+	wait_for_completion(done);
+	status = urb->status;
+	if (status == -ECONNRESET)
+		status = -ETIMEDOUT;
+	del_timer_sync(&timer);
+
+	if (actual_length)
+		*actual_length = urb->actual_length;
+	return status;
+}
+
+static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
+		     u8 *wdata, int wsize, u8 *rdata, int rsize)
+{
+	int ret, actlen;
+	int offb, offd;
+	const int stride = CMD_PACKET_SIZE - 4;
+	u8 *wbuf = instance->snd_buf;
+	u8 *rbuf = instance->rcv_buf;
+	int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE;
+	int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE;
+
+	if (wbuflen > PAGE_SIZE || rbuflen > PAGE_SIZE) {
+		dbg("too big transfer requested");
+		ret = -ENOMEM;
+		goto fail;
+	}
+
+	down(&instance->cm_serialize);
+
+	/* submit reading urb before the writing one */
+	init_completion(&instance->rcv_done);
+	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
+	if (ret < 0) {
+		dbg("submitting read urb for cm %#x failed", cm);
+		ret = ret;
+		goto fail;
+	}
+
+	memset(wbuf, 0, wbuflen);
+	/* handle wsize == 0 */
+	wbuf[0] = cm;
+	for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
+		wbuf[offb] = cm;
+		memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
+	}
+
+	instance->snd_urb->transfer_buffer_length = wbuflen;
+	init_completion(&instance->snd_done);
+	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
+	if (ret < 0) {
+		dbg("submitting write urb for cm %#x failed", cm);
+		ret = ret;
+		goto fail;
+	}
+
+	ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
+	if (ret < 0) {
+		dbg("sending cm %#x failed", cm);
+		ret = ret;
+		goto fail;
+	}
+
+	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
+	if (ret < 0) {
+		dbg("receiving cm %#x failed", cm);
+		ret = ret;
+		goto fail;
+	}
+	if (actlen % CMD_PACKET_SIZE || !actlen) {
+		dbg("response is not a positive multiple of %d: %#x",
+				CMD_PACKET_SIZE, actlen);
+		ret = -EIO;
+		goto fail;
+	}
+
+	/* check the return status and copy the data to the output buffer, if needed */
+	for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
+		if (rbuf[offb] != cm) {
+			dbg("wrong cm %#x in response", rbuf[offb]);
+			ret = -EIO;
+			goto fail;
+		}
+		if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
+			dbg("response failed: %#x", rbuf[offb + 1]);
+			ret = -EIO;
+			goto fail;
+		}
+		if (offd >= rsize)
+			break;
+		memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
+		offd += stride;
+	}
+
+	ret = offd;
+	dbg("cm %#x", cm);
+fail:
+	up(&instance->cm_serialize);
+	return ret;
+}
+
+static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
+			       u32 *data, int size)
+{
+	int ret, len;
+	u32 *buf;
+	int offb, offd;
+	const int stride = CMD_PACKET_SIZE / (4 * 2) - 1;
+	int buflen =  ((size - 1) / stride + 1 + size * 2) * 4;
+
+	buf = kmalloc(buflen, GFP_KERNEL);
+	if (!buf)
+		return -ENOMEM;
+
+	ret = cxacru_cm(instance, cm, NULL, 0, (u8 *) buf, buflen);
+	if (ret < 0)
+		goto cleanup;
+
+	/* len > 0 && len % 4 == 0 guaranteed by cxacru_cm() */
+	len = ret / 4;
+	for (offb = 0; offb < len; ) {
+		int l = le32_to_cpu(buf[offb++]);
+		if (l > stride || l > (len - offb) / 2) {
+			dbg("wrong data length %#x in response", l);
+			ret = -EIO;
+			goto cleanup;
+		}
+		while (l--) {
+			offd = le32_to_cpu(buf[offb++]);
+			if (offd >= size) {
+				dbg("wrong index %#x in response", offd);
+				ret = -EIO;
+				goto cleanup;
+			}
+			data[offd] = le32_to_cpu(buf[offb++]);
+		}
+	}
+
+	ret = 0;
+
+cleanup:
+	kfree(buf);
+	return ret;
+}
+
+static int cxacru_card_status(struct cxacru_data *instance)
+{
+	int ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
+	if (ret < 0) {		/* firmware not loaded */
+		dbg("cxacru_adsl_start: CARD_GET_STATUS returned %d", ret);
+		return ret;
+	}
+	return 0;
+}
+
+static void cxacru_poll_status(struct cxacru_data *instance);
+
+static int cxacru_atm_start(struct usbatm_data *usbatm_instance,
+		struct atm_dev *atm_dev)
+{
+	struct cxacru_data *instance = usbatm_instance->driver_data;
+	struct device *dev = &usbatm_instance->usb_intf->dev;
+	/*
+	struct atm_dev *atm_dev = usbatm_instance->atm_dev;
+	*/
+	int ret;
+
+	dbg("cxacru_atm_start");
+
+	/* Read MAC address */
+	ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_MAC_ADDRESS, NULL, 0,
+			atm_dev->esi, sizeof(atm_dev->esi));
+	if (ret < 0) {
+		dev_err(dev, "cxacru_atm_start: CARD_GET_MAC_ADDRESS returned %d\n", ret);
+		return ret;
+	}
+
+	/* start ADSL */
+	ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_START, NULL, 0, NULL, 0);
+	if (ret < 0) {
+		dev_err(dev, "cxacru_atm_start: CHIP_ADSL_LINE_START returned %d\n", ret);
+		return ret;
+	}
+
+	/* Start status polling */
+	cxacru_poll_status(instance);
+	return 0;
+}
+
+static void cxacru_poll_status(struct cxacru_data *instance)
+{
+	u32 buf[CXINF_MAX] = {};
+	struct device *dev = &instance->usbatm->usb_intf->dev;
+	struct atm_dev *atm_dev = instance->usbatm->atm_dev;
+	int ret;
+
+	ret = cxacru_cm_get_array(instance, CM_REQUEST_CARD_INFO_GET, buf, CXINF_MAX);
+	if (ret < 0) {
+		dev_warn(dev, "poll status: error %d\n", ret);
+		goto reschedule;
+	}
+
+	if (instance->line_status == buf[CXINF_LINE_STATUS])
+		goto reschedule;
+
+	instance->line_status = buf[CXINF_LINE_STATUS];
+	switch (instance->line_status) {
+	case 0:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: down\n");
+		break;
+
+	case 1:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: attemtping to activate\n");
+		break;
+
+	case 2:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: training\n");
+		break;
+
+	case 3:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: channel analysis\n");
+		break;
+
+	case 4:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: exchange\n");
+		break;
+
+	case 5:
+		atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424;
+		atm_dev->signal = ATM_PHY_SIG_FOUND;
+
+		dev_info(dev, "ADSL line: up (%d Kib/s down | %d Kib/s up)\n",
+		     buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]);
+		break;
+
+	case 6:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: waiting\n");
+		break;
+
+	case 7:
+		atm_dev->signal = ATM_PHY_SIG_LOST;
+		dev_info(dev, "ADSL line: initializing\n");
+		break;
+
+	default:
+		atm_dev->signal = ATM_PHY_SIG_UNKNOWN;
+		dev_info(dev, "Unknown line state %02x\n", instance->line_status);
+		break;
+	}
+reschedule:
+	schedule_delayed_work(&instance->poll_work, msecs_to_jiffies(POLL_INTERVAL));
+}
+
+static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw,
+		     u8 code1, u8 code2, u32 addr, u8 *data, int size)
+{
+	int ret;
+	u8 *buf;
+	int offd, offb;
+	const int stride = CMD_PACKET_SIZE - 8;
+
+	buf = (u8 *) __get_free_page(GFP_KERNEL);
+	if (!buf)
+		return -ENOMEM;
+
+	offb = offd = 0;
+	do {
+		int l = min_t(int, stride, size - offd);
+		buf[offb++] = fw;
+		buf[offb++] = l;
+		buf[offb++] = code1;
+		buf[offb++] = code2;
+		*((u32 *) (buf + offb)) = cpu_to_le32(addr);
+		offb += 4;
+		addr += l;
+		if(l)
+			memcpy(buf + offb, data + offd, l);
+		if (l < stride)
+			memset(buf + offb + l, 0, stride - l);
+		offb += stride;
+		offd += stride;
+		if ((offb >= PAGE_SIZE) || (offd >= size)) {
+			ret = usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD),
+					   buf, offb, NULL, CMD_TIMEOUT);
+			if (ret < 0) {
+				dbg("sending fw %#x failed", fw);
+				goto cleanup;
+			}
+			offb = 0;
+		}
+	} while(offd < size);
+	dbg("sent fw %#x", fw);
+
+	ret = 0;
+
+cleanup:
+	free_page((unsigned long) buf);
+	return ret;
+}
+
+static void cxacru_upload_firmware(struct cxacru_data *instance,
+				   const struct firmware *fw,
+				   const struct firmware *bp,
+				   const struct firmware *cf)
+{
+	int ret;
+	int off;
+	struct usb_device *usb_dev = instance->usbatm->usb_dev;
+	struct device *dev = &instance->usbatm->usb_intf->dev;
+	u16 signature[] = { usb_dev->descriptor.idVendor, usb_dev->descriptor.idProduct };
+	u32 val;
+
+	dbg("cxacru_upload_firmware");
+
+	/* FirmwarePllFClkValue */
+	val = cpu_to_le32(instance->modem_type->pll_f_clk);
+	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4);
+	if (ret) {
+		dev_err(dev, "FirmwarePllFClkValue failed: %d\n", ret);
+		return;
+	}
+
+	/* FirmwarePllBClkValue */
+	val = cpu_to_le32(instance->modem_type->pll_b_clk);
+	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4);
+	if (ret) {
+		dev_err(dev, "FirmwarePllBClkValue failed: %d\n", ret);
+		return;
+	}
+
+	/* Enable SDRAM */
+	val = cpu_to_le32(SDRAM_ENA);
+	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4);
+	if (ret) {
+		dev_err(dev, "Enable SDRAM failed: %d\n", ret);
+		return;
+	}
+
+	/* Firmware */
+	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size);
+	if (ret) {
+		dev_err(dev, "Firmware upload failed: %d\n", ret);
+		return;
+	}
+
+	/* Boot ROM patch */
+	if (instance->modem_type->boot_rom_patch) {
+		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size);
+		if (ret) {
+			dev_err(dev, "Boot ROM patching failed: %d\n", ret);
+			return;
+		}
+	}
+
+	/* Signature */
+	ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4);
+	if (ret) {
+		dev_err(dev, "Signature storing failed: %d\n", ret);
+		return;
+	}
+
+	if (instance->modem_type->boot_rom_patch) {
+		val = cpu_to_le32(BR_ADDR);
+		ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_STACK_ADDR, (u8 *) &val, 4);
+	}
+	else {
+		ret = cxacru_fw(usb_dev, FW_GOTO_MEM, 0x0, 0x0, FW_ADDR, NULL, 0);
+	}
+	if (ret) {
+		dev_err(dev, "Passing control to firmware failed: %d\n", ret);
+		return;
+	}
+
+	/* Delay to allow firmware to start up. */
+	msleep_interruptible(1000);
+
+	usb_clear_halt(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD));
+	usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_CMD));
+	usb_clear_halt(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_DATA));
+	usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, CXACRU_EP_DATA));
+
+	ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
+	if (ret < 0) {
+		dev_err(dev, "modem failed to initialize: %d\n", ret);
+		return;
+	}
+
+	/* Load config data (le32), doing one packet at a time */
+	if (cf)
+		for (off = 0; off < cf->size / 4; ) {
+			u32 buf[CMD_PACKET_SIZE / 4 - 1];
+			int i, len = min_t(int, cf->size / 4 - off, CMD_PACKET_SIZE / 4 / 2 - 1);
+			buf[0] = cpu_to_le32(len);
+			for (i = 0; i < len; i++, off++) {
+				buf[i * 2 + 1] = cpu_to_le32(off);
+				memcpy(buf + i * 2 + 2, cf->data + off * 4, 4);
+			}
+			ret = cxacru_cm(instance, CM_REQUEST_CARD_DATA_SET,
+					(u8 *) buf, len, NULL, 0);
+			if (ret < 0) {
+				dev_err(dev, "load config data failed: %d\n", ret);
+				return;
+			}
+		}
+
+	msleep_interruptible(4000);
+}
+
+static int cxacru_find_firmware(struct cxacru_data *instance,
+				char* phase, const struct firmware **fw_p)
+{
+	struct device *dev = &instance->usbatm->usb_intf->dev;
+	char buf[16];
+
+	sprintf(buf, "cxacru-%s.bin", phase);
+	dbg("cxacru_find_firmware: looking for %s", buf);
+
+	if (request_firmware(fw_p, buf, dev)) {
+		dev_dbg(dev, "no stage %s firmware found\n", phase);
+		return -ENOENT;
+	}
+
+	dev_info(dev, "found firmware %s\n", buf);
+
+	return 0;
+}
+
+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance,
+			     struct usb_interface *usb_intf)
+{
+	struct device *dev = &usbatm_instance->usb_intf->dev;
+	const struct firmware *fw, *bp, *cf;
+	struct cxacru_data *instance = usbatm_instance->driver_data;
+
+	int ret = cxacru_find_firmware(instance, "fw", &fw);
+	if (ret) {
+		dev_warn(dev, "firmware (cxacru-fw.bin) unavailable (hotplug misconfiguration?)\n");
+		return ret;
+	}
+
+	if (instance->modem_type->boot_rom_patch) {
+		ret = cxacru_find_firmware(instance, "bp", &bp);
+		if (ret) {
+			dev_warn(dev, "boot ROM patch (cxacru-bp.bin) unavailable (hotplug misconfiguration?)\n");
+			release_firmware(fw);
+			return ret;
+		}
+	}
+
+	if (cxacru_find_firmware(instance, "cf", &cf))		/* optional */
+		cf = NULL;
+
+	cxacru_upload_firmware(instance, fw, bp, cf);
+
+	if (cf)
+		release_firmware(cf);
+	if (instance->modem_type->boot_rom_patch)
+		release_firmware(bp);
+	release_firmware(fw);
+
+	ret = cxacru_card_status(instance);
+	if (ret)
+		dbg("modem initialisation failed");
+	else
+		dbg("done setting up the modem");
+
+	return ret;
+}
+
+static int cxacru_bind(struct usbatm_data *usbatm_instance,
+		       struct usb_interface *intf, const struct usb_device_id *id,
+		       int *need_heavy_init)
+{
+	struct cxacru_data *instance;
+	struct usb_device *usb_dev = interface_to_usbdev(intf);
+	int ret;
+
+	/* instance init */
+	instance = kmalloc(sizeof(*instance), GFP_KERNEL);
+	if (!instance) {
+		dbg("cxacru_bind: no memory for instance data");
+		return -ENOMEM;
+	}
+
+	memset(instance, 0, sizeof(*instance));
+
+	instance->usbatm = usbatm_instance;
+	instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
+
+	instance->rcv_buf = (u8 *) __get_free_page(GFP_KERNEL);
+	if (!instance->rcv_buf) {
+		dbg("cxacru_bind: no memory for rcv_buf");
+		ret = -ENOMEM;
+		goto fail;
+	}
+	instance->snd_buf = (u8 *) __get_free_page(GFP_KERNEL);
+	if (!instance->snd_buf) {
+		dbg("cxacru_bind: no memory for snd_buf");
+		ret = -ENOMEM;
+		goto fail;
+	}
+	instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
+	if (!instance->rcv_urb) {
+		dbg("cxacru_bind: no memory for rcv_urb");
+		ret = -ENOMEM;
+		goto fail;
+	}
+	instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
+	if (!instance->snd_urb) {
+		dbg("cxacru_bind: no memory for snd_urb");
+		ret = -ENOMEM;
+		goto fail;
+	}
+
+	usb_fill_int_urb(instance->rcv_urb,
+			usb_dev, usb_rcvintpipe(usb_dev, CXACRU_EP_CMD),
+			instance->rcv_buf, PAGE_SIZE,
+			cxacru_blocking_completion, &instance->rcv_done, 1);
+	instance->rcv_urb->transfer_flags |= URB_ASYNC_UNLINK;
+
+	usb_fill_int_urb(instance->snd_urb,
+			usb_dev, usb_sndintpipe(usb_dev, CXACRU_EP_CMD),
+			instance->snd_buf, PAGE_SIZE,
+			cxacru_blocking_completion, &instance->snd_done, 4);
+	instance->snd_urb->transfer_flags |= URB_ASYNC_UNLINK;
+
+	init_MUTEX(&instance->cm_serialize);
+
+	INIT_WORK(&instance->poll_work, (void *)cxacru_poll_status, instance);
+
+	usbatm_instance->driver_data = instance;
+
+	*need_heavy_init = cxacru_card_status(instance);
+
+	return 0;
+
+ fail:
+	free_page((unsigned long) instance->snd_buf);
+	free_page((unsigned long) instance->rcv_buf);
+	usb_free_urb(instance->snd_urb);
+	usb_free_urb(instance->rcv_urb);
+	kfree(instance);
+
+	return ret;
+}
+
+static void cxacru_unbind(struct usbatm_data *usbatm_instance,
+		struct usb_interface *intf)
+{
+	struct cxacru_data *instance = usbatm_instance->driver_data;
+
+	dbg("cxacru_unbind entered");
+
+	if (!instance) {
+		dbg("cxacru_unbind: NULL instance!");
+		return;
+	}
+
+	while (!cancel_delayed_work(&instance->poll_work))
+	       flush_scheduled_work();
+
+	usb_kill_urb(instance->snd_urb);
+	usb_kill_urb(instance->rcv_urb);
+	usb_free_urb(instance->snd_urb);
+	usb_free_urb(instance->rcv_urb);
+
+	free_page((unsigned long) instance->snd_buf);
+	free_page((unsigned long) instance->rcv_buf);
+	kfree(instance);
+
+	usbatm_instance->driver_data = NULL;
+}
+
+static const struct cxacru_modem_type cxacru_cafe = {
+	.pll_f_clk = 0x02d874df,
+	.pll_b_clk = 0x0196a51a,
+	.boot_rom_patch = 1,
+};
+
+static const struct cxacru_modem_type cxacru_cb00 = {
+	.pll_f_clk = 0x5,
+	.pll_b_clk = 0x3,
+	.boot_rom_patch = 0,
+};
+
+static const struct usb_device_id cxacru_usb_ids[] = {
+	{ /* V = Conexant			P = ADSL modem (Euphrates project)	*/
+		USB_DEVICE(0x0572, 0xcafe),	.driver_info = (unsigned long) &cxacru_cafe
+	},
+	{ /* V = Conexant			P = ADSL modem (Hasbani project)	*/
+		USB_DEVICE(0x0572, 0xcb00),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Conexant			P = ADSL modem				*/
+		USB_DEVICE(0x0572, 0xcb01),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Conexant			P = ADSL modem				*/
+		USB_DEVICE(0x0572, 0xcb06),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Olitec				P = ADSL modem version 2		*/
+		USB_DEVICE(0x08e3, 0x0100),	.driver_info = (unsigned long) &cxacru_cafe
+	},
+	{ /* V = Olitec				P = ADSL modem version 3		*/
+		USB_DEVICE(0x08e3, 0x0102),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Trust/Amigo Technology Co.	P = AMX-CA86U				*/
+		USB_DEVICE(0x0eb0, 0x3457),	.driver_info = (unsigned long) &cxacru_cafe
+	},
+	{ /* V = Zoom				P = 5510				*/
+		USB_DEVICE(0x1803, 0x5510),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Draytek			P = Vigor 318				*/
+		USB_DEVICE(0x0675, 0x0200),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Zyxel				P = 630-C1 aka OMNI ADSL USB (Annex A)	*/
+		USB_DEVICE(0x0586, 0x330a),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Zyxel				P = 630-C3 aka OMNI ADSL USB (Annex B)	*/
+		USB_DEVICE(0x0586, 0x330b),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Aethra				P = Starmodem UM1020			*/
+		USB_DEVICE(0x0659, 0x0020),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Aztech Systems			P = ? AKA Pirelli AUA-010		*/
+		USB_DEVICE(0x0509, 0x0812),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Netopia			P = Cayman 3341(Annex A)/3351(Annex B)	*/
+		USB_DEVICE(0x100d, 0xcb01),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{ /* V = Netopia			P = Cayman 3342(Annex A)/3352(Annex B)	*/
+		USB_DEVICE(0x100d, 0x3342),	.driver_info = (unsigned long) &cxacru_cb00
+	},
+	{}
+};
+
+MODULE_DEVICE_TABLE(usb, cxacru_usb_ids);
+
+static struct usbatm_driver cxacru_driver = {
+	.owner		= THIS_MODULE,
+	.driver_name	= cxacru_driver_name,
+	.bind		= cxacru_bind,
+	.heavy_init	= cxacru_heavy_init,
+	.unbind		= cxacru_unbind,
+	.atm_start	= cxacru_atm_start,
+	.in		= CXACRU_EP_DATA,
+	.out		= CXACRU_EP_DATA,
+	.rx_padding	= 3,
+	.tx_padding	= 11,
+};
+
+static int cxacru_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
+{
+	return usbatm_usb_probe(intf, id, &cxacru_driver);
+}
+
+static struct usb_driver cxacru_usb_driver = {
+	.owner		= THIS_MODULE,
+	.name		= cxacru_driver_name,
+	.probe		= cxacru_usb_probe,
+	.disconnect	= usbatm_usb_disconnect,
+	.id_table	= cxacru_usb_ids
+};
+
+static int __init cxacru_init(void)
+{
+	return usb_register(&cxacru_usb_driver);
+}
+
+static void __exit cxacru_cleanup(void)
+{
+	usb_deregister(&cxacru_usb_driver);
+}
+
+module_init(cxacru_init);
+module_exit(cxacru_cleanup);
+
+MODULE_AUTHOR(DRIVER_AUTHOR);
+MODULE_DESCRIPTION(DRIVER_DESC);
+MODULE_LICENSE("GPL");
+MODULE_VERSION(DRIVER_VERSION);
]

245/2 2026/07/31 07:53 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21980
							output: 54
							thoughts: 1405
						

Thoughts:
**Analyzing the Introduction of `cxacru_cm` and Identifying a Potential Issue**

Alright, let's break this down. The code in `1b0e614652344a2d39eb336f3dc07651782883bf` introduces the `cxacru_cm` function, which is, essentially, a command and control mechanism via USB. The initial thought is to check if the bug I'm interested in was present right from this first version. Seems logical.

Looking at the code, it's pretty straightforward, but I need to make sure the flow is correct. We have `usb_submit_urb` calls for both sending and receiving, handled with completions. The key area is the error handling. If `usb_submit_urb` fails for the *send* URB (`instance->snd_urb`), it jumps to the `fail` label. This is where things get interesting. I spot it: it `up(&instance->cm_serialize)` unlocks the mutex, but it doesn't cancel or otherwise handle the *receive* URB (`instance->rcv_urb`) that might still be pending. This is a potential race condition and clearly a bug. The receiving URB could still be running after the unlock.

This confirms the bug was indeed introduced in `1b0e614652344a2d39eb336f3dc07651782883bf`, the initial commit. Just to be absolutely sure, I'll quickly check for any subsequent commits that might have tweaked this logic and inadvertently introduced or exacerbated the problem. But, I don't see any later modifications. This particular code is a one-shot deal.

Yep, the commit hash is correct, `1b0e614652344a2d39eb336f3dc07651782883bf`. I can confidently conclude that the bug I'm looking for *was* introduced by that commit. Time to report this and figure out a fix.



246/2 2026/07/31 07:53 tool set-results
0m Args:
map[FixesHash:1b0e614652344a2d39eb336f3dc07651782883bf]

Results:
map[FixesHash:1b0e614652344a2d39eb336f3dc07651782883bf]

247/1 2026/07/31 07:53 action format-fixes
0m Results:
map[Fixes:map[AuthorEmail:duncan.sands@math.u-psud.fr AuthorName:Duncan Sands Hash:1b0e614652344a2d39eb336f3dc07651782883bf Title:[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru]]

248/1 2026/07/31 07:53 action get-maintainers
0m Results:
map[Recipients:[map[Email:3chas3@gmail.com Name:Chas Williams To:true] map[Email:accessrunner-general@lists.sourceforge.net Name: To:true] map[Email:gregkh@linuxfoundation.org Name:Greg Kroah-Hartman To:true] map[Email:linux-atm-general@lists.sourceforge.net Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:linux-usb@vger.kernel.org Name: To:true] map[Email:netdev@vger.kernel.org Name: To:true] map[Email:duncan.sands@math.u-psud.fr Name:Duncan Sands To:true]]]

249/1 2026/07/31 07:53 action get-recent-commits
0m Results:
map[RecentCommits:Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
treewide, timers: Rename from_timer() to timer_container_of()
treewide, timers: Rename destroy_timer_on_stack() as timer_destroy_on_stack()
treewide: Switch/rename to timer_delete[_sync]()
usb: atm: cxacru: fix a flaw in existing endpoint checks
move asm/unaligned.h to linux/unaligned.h
usb: atm: cxacru: fix endpoint checking in cxacru_bind()
usb: atm: cxacru: Fix typo in comment
drivers: usb: atm: use atm_info() instead of atm_printk(KERN_INFO ...
drivers: usb: atm: reduce noise
usb: atm: don't use snprintf() for sysfs attrs
usb: Use fallthrough pseudo-keyword
USB: atm: cxacru: convert to use dev_groups
USB: atm: fix up some remaining DEVICE_ATTR() usage
usb: usbatm: Convert timers to use timer_setup()
USB: atm: Remove redundant license text
USB: add SPDX identifiers to all remaining files in drivers/usb/
usb: atm: cxacru: mark expected switch fall-throughs
]

250/1 2026/07/31 07:53 agent description-generator
0m Model:
best-expensive

Instruction:
You are an experienced Linux kernel developer tasked with writing a commit description for
a kernel bug fixing commit. The description should start with a one-line summary,
and then include description of the bug being fixed, and how it's fixed by the provided patch.
The one-line summary should describe the change being made, rather than mention the tool that
detected the bug.

The description must not contain lines starting with '#' because they will dropped by git as comments.
The description must not contain lines starting with '--' or '---' (including inline code diffs)
because they may confuse git/patch utilities.

Your final reply should contain only the text of the commit description.


The one-line summary must be not longer than 72 characters.

IMPORTANT: Do not wrap lines manually (e.g., at 80 characters); we will reformat the text
automatically, so keep paragraphs as single lines without newlines.

Generally try to phrase the description without mentioning syzkaller
(avoid phrases like "the bug was triggered by syzkaller" or "the bug was triggered by fuzzer", etc).
How the bug was triggered is generally an irrelevant detail.
Any bug triggered by a fuzzer can also be triggered by a malicious user, or a buggy program.

If the crash is reported by a sanitizer (e.g., KASAN, KMSAN, lockdep), include the relevant
parts of the sanitizer output to illustrate the problem. Exclude less relevant sections,
as the stack trace can be very long. Describe the execution path that leads to the manifestation
of the kernel bug.


If the patch removes the WARN_ON macro, refer to the fact that WARN_ON
must not be used for conditions that can legitimately happen, and that pr_err
should be used instead if necessary.

Don't assume that panic_on_warn is set, and that WARNINGs are fatal.
While panic_on_warn may be set when the bug was reproduced, it's generally not set on production systems.


Prefer calling several tools at the same time to save round-trips.

Prompt:
The crash that corresponds to the bug is:

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379, CPU#1: kworker/1:1/5258
Modules linked in:
CPU: 1 UID: 0 PID: 5258 Comm: kworker/1:1 Not tainted syzkaller #1 PREEMPT(lazy) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0x7c/0x18b0 drivers/usb/core/urb.c:379
Code: 4c 89 f0 48 c1 e8 03 80 3c 28 00 74 08 4c 89 f7 e8 c9 ab f6 fc 49 83 3e 00 74 40 e8 9e 5e 91 fc 48 8d 3d 47 b1 aa 05 48 89 de <67> 48 0f b9 3a b8 f0 ff ff ff eb 11 e8 83 5e 91 fc eb 05 e8 7c 5e
RSP: 0018:ffffc90002476878 EFLAGS: 00010293
RAX: ffffffff84f3e532 RBX: ffff88812658d200 RCX: ffff88812fb42440
RDX: 0000000000000000 RSI: ffff88812658d200 RDI: ffffffff8a9e9680
RBP: dffffc0000000000 R08: 0000000000000002 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff152f477 R12: 0000000000000040
R13: 0000000000000000 R14: ffff88812658d208 R15: 0000000000000cc0
FS:  0000000000000000(0000) GS:ffff8882a9042000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7be0a0cfe0 CR3: 000000011d54e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250
 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:706
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898
 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026
 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500
 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098
 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153
 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620
 device_add+0x7d7/0xb80 drivers/base/core.c:3772
 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x491/0xad0 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	4c 89 f0             	mov    %r14,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 c9 ab f6 fc       	call   0xfcf6abde
  15:	49 83 3e 00          	cmpq   $0x0,(%r14)
  19:	74 40                	je     0x5b
  1b:	e8 9e 5e 91 fc       	call   0xfc915ebe
  20:	48 8d 3d 47 b1 aa 05 	lea    0x5aab147(%rip),%rdi        # 0x5aab16e
  27:	48 89 de             	mov    %rbx,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	b8 f0 ff ff ff       	mov    $0xfffffff0,%eax
  34:	eb 11                	jmp    0x47
  36:	e8 83 5e 91 fc       	call   0xfc915ebe
  3b:	eb 05                	jmp    0x42
  3d:	e8                   	.byte 0xe8
  3e:	7c 5e                	jl     0x9e




The explanation of the root cause of the bug is:

The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` (`0x84`) command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first (line 631).
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()` (line 657).
4. In the syzkaller reproducer, the USB device behaves unexpectedly (e.g., endpoint stall or disconnect), causing `snd_urb` to complete with an error status of `-104` (`-ECONNRESET`). 
5. `cxacru_start_wait_urb()` returns this `-104` error, which prompts `cxacru_cm()` to print `"send of cm 0x84 failed (-104)"` and jump to the `fail:` label (line 661).
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, **leaving `rcv_urb` still active and pending**.
7. Back in `cxacru_atm_start()`, the error is printed (`"CHIP_ADSL_LINE_START returned -104"`) but ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

### Fix
To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

```c
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;
```

The diff of the bug fix is:

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index f1900c567..429ac20a8 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
 	ret = offd;
 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
 fail:
+	if (ret < 0)
+		usb_kill_urb(instance->rcv_urb);
 	mutex_unlock(&instance->cm_serialize);
 err:
 	return ret;


Additional description of the patch:

The root cause of this bug is that `cxacru_cm()` leaves `rcv_urb` active if it encounters an error while submitting or waiting for `snd_urb`. 

Here is the exact sequence of events that leads to the crash:
1. `cxacru_atm_start()` calls `cxacru_cm()` to send the `CM_REQUEST_CHIP_ADSL_LINE_START` command.
2. Inside `cxacru_cm()`, `rcv_urb` is successfully submitted first.
3. Then, `snd_urb` is submitted and `cxacru_cm()` waits for its completion via `cxacru_start_wait_urb()`.
4. If the USB device behaves unexpectedly, `snd_urb` completes with an error status (e.g., `-104`). 
5. `cxacru_start_wait_urb()` returns this error, which prompts `cxacru_cm()` to jump to the `fail:` label.
6. At the `fail:` label, `cxacru_cm()` simply unlocks the mutex and returns the error, leaving `rcv_urb` still active and pending.
7. Back in `cxacru_atm_start()`, the error is ignored, and the driver proceeds to start status polling by calling `cxacru_poll_status()`.
8. `cxacru_poll_status()` immediately calls `cxacru_cm_get_array()`, which invokes `cxacru_cm()` again.
9. `cxacru_cm()` attempts to submit `rcv_urb` again, but since it was never unlinked or waited for in the previous failed call, it is still active. This triggers the `URB ... submitted while active` warning in `usb_submit_urb()`.

To fix this bug, we need to ensure that `rcv_urb` is properly killed if `cxacru_cm()` aborts early. We can safely call `usb_kill_urb()` on `rcv_urb` in the error path. `usb_kill_urb()` is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed), so it can be called unconditionally on error.

Note that we don't need to do the same for `snd_urb` because `cxacru_start_wait_urb()` uses `wait_for_completion()` which is uninterruptible, meaning it will always wait until the URB completes (either successfully, with an error, or by timing out and being unlinked). Thus, `snd_urb` is never left active when `cxacru_start_wait_urb()` returns.

I have applied the fix using the `codeeditor` tool. The patch adds `usb_kill_urb(instance->rcv_urb)` in the `fail:` path of `cxacru_cm()` if `ret < 0`. This guarantees that subsequent calls to `cxacru_cm()` will start with a clean state, preventing the `URB submitted while active` warning.

Here are summaries of recent commits that touched the same files.
Format the summary line consistently with these, look how prefixes
are specified, letter capitalization, style, etc. 

Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
treewide, timers: Rename from_timer() to timer_container_of()
treewide, timers: Rename destroy_timer_on_stack() as timer_destroy_on_stack()
treewide: Switch/rename to timer_delete[_sync]()
usb: atm: cxacru: fix a flaw in existing endpoint checks
move asm/unaligned.h to linux/unaligned.h
usb: atm: cxacru: fix endpoint checking in cxacru_bind()
usb: atm: cxacru: Fix typo in comment
drivers: usb: atm: use atm_info() instead of atm_printk(KERN_INFO ...
drivers: usb: atm: reduce noise
usb: atm: don't use snprintf() for sysfs attrs
usb: Use fallthrough pseudo-keyword
USB: atm: cxacru: convert to use dev_groups
USB: atm: fix up some remaining DEVICE_ATTR() usage
usb: usbatm: Convert timers to use timer_setup()
USB: atm: Remove redundant license text
USB: add SPDX identifiers to all remaining files in drivers/usb/
usb: atm: cxacru: mark expected switch fall-throughs


Reply:
usb: atm: cxacru: properly kill rcv_urb on error in cxacru_cm()

If cxacru_cm() encounters an error while submitting or waiting for snd_urb,
it aborts and returns the error without killing the already submitted
rcv_urb. This leaves the rcv_urb active.

When this happens during initialization (e.g., in cxacru_atm_start()), the
driver may ignore the error and proceed to call cxacru_poll_status(), which
invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb
triggers a warning in usb_submit_urb():

cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0
drivers/usb/core/urb.c:379
...
Call Trace:
 <TASK>
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
...

To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts
early. We can safely call usb_kill_urb() on rcv_urb in the error path, as
it is safe to call even if the URB is not active (e.g., if it failed to
submit in the first place, or if it already completed).

251/2 2026/07/31 07:53 llm description-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8633
							output: 598
							thoughts: 2593
						

Thoughts:
**Commit Summary: Resolving an URB Submission Issue in cxacru_cm()**

Okay, so I've got a handle on this `cxacru.c` bug. The problem is a "URB submitted while active" warning in `usb_submit_urb()`.  Digging in, it appears `cxacru_cm()` has a flaw. When it encounters an error while either submitting or waiting for the `snd_urb`, it bails out via the `fail:` label. The critical oversight is that it *doesn't* unlink or kill the already submitted `rcv_urb`.

The sequence is: `cxacru_atm_start()` calls `cxacru_cm()`. Inside `cxacru_cm()`, `rcv_urb` is submitted, then `snd_urb` is sent and the code waits.  If the USB device throws an error (like a `-104`), `cxacru_start_wait_urb()` returns this error and we hit the `fail:` label in `cxacru_cm()`. The function just unlocks the mutex and returns. This leaves `rcv_urb` still active!  Later, `cxacru_poll_status()` calls `cxacru_cm()` again, and the driver tries to submit the `rcv_urb` *again*, triggering that warning, because it's still marked as active from the previous failed call.  It's a subtle but definite race condition stemming from a failed early exit from the function.

Here's the snippet from the warning in the log:

```
cxacru 1-1:1.0: send of cm 0x84 failed (-104)
ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104
------------[ cut here ]------------
URB ffff88812658d200 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379
...
Call Trace:
 cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631
 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline]
 cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828
 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814
 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927
 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178
 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370
...
```

The fix is simple: I'll add `usb_kill_urb(instance->rcv_urb)` to the `fail:` path in `cxacru_cm()`. This way, if we encounter an error, we make sure the `rcv_urb` is unlinked and stopped.  It's safe to call `usb_kill_urb()` even if the URB isn't actively submitting; if the submission failed or it has already completed, it's a no-op.



LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)