ID Workflow Result Correct Bug Created Started Finished Revision
bbcd9aa1 assessment-security DenialOfService: βœ… Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: βœ… UserNamespace: βœ… VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ memory leak in io_submit_sqes (6) 2026/08/09 11:25 2026/08/09 11:25 2026/08/09 12:25 5d63f80b
Agent: prod-syz-agent-4
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle memory leak in io_submit_sqes
CrashLogID 4939080091041792
CrashReportID 5165782541008896
KernelCommit 06cf61899d6498b33e4b7c87d99d5bd471ccc375
KernelConfig
Show (278293 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_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=y
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_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_POSIX_AUX_CLOCKS=y
# 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=y
CONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
CONFIG_BPF_PRELOAD=y
CONFIG_BPF_PRELOAD_UMD=y
CONFIG_BPF_LSM=y
# end of BPF subsystem

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

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_SCHED_AVG_IRQ=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED 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=y
CONFIG_IKCONFIG_PROC=y
# 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=y
CONFIG_SCHED_CACHE=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=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_GROUP_SCHED_BANDWIDTH=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
# 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=y
# 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=y
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=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
CONFIG_RSEQ_SLICE_EXTENSION=y
# 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
CONFIG_GUEST_PERF_EVENTS=y
CONFIG_PERF_GUEST_MEDIATED_PMU=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_RUST is not set
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_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_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=y
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_BOOT_VESA_SUPPORT=y
# 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_MEMORY_PROBE is not set
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_PMEM_LEGACY is not set
CONFIG_X86_CHECK_BIOS_CORRUPTION=y
CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y
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=y
CONFIG_X86_USER_SHADOW_STACK=y
# CONFIG_INTEL_TDX_HOST 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 comedi.comedi_num_legacy_minors=4"
# 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_MITIGATION_VMSCAPE is not set
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_DPM_WATCHDOG is not set
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_MEMORY is not set
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=y
# CONFIG_NFIT_SECURITY_DEBUG 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=y
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_KVM_COMMON=y
CONFIG_HAVE_KVM_PFNCACHE=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_DIRTY_RING=y
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_READONLY_MEM=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_GENERIC_PRE_FAULT_MEMORY=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_VIRT_XFER_TO_GUEST_WORK=y
CONFIG_HAVE_KVM_PM_NOTIFIER=y
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
CONFIG_KVM_ELIDE_TLB_FLUSH_IF_YOUNG=y
CONFIG_KVM_MMU_LOCKLESS_AGING=y
CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES=y
CONFIG_KVM_GUEST_MEMFD=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM_X86=y
CONFIG_KVM=y
# CONFIG_KVM_WERROR is not set
CONFIG_KVM_SW_PROTECTED_VM=y
CONFIG_KVM_INTEL=y
# CONFIG_KVM_INTEL_PROVE_VE is not set
CONFIG_X86_SGX_KVM=y
CONFIG_KVM_AMD=y
CONFIG_KVM_IOAPIC=y
CONFIG_KVM_SMM=y
CONFIG_KVM_HYPERV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_PROVE_MMU=y
CONFIG_KVM_MAX_NR_VCPUS=1024
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_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_XENPV=y
CONFIG_X86_DISABLED_FEATURE_TDX_GUEST=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_USER_RETURN_NOTIFIER=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_ARCH_WANT_PMD_MKWRITE=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_HAVE_ARCH_NODE_DEV_GROUP=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_MODULE_SIG_FORMAT=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=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
# CONFIG_MODULE_SIG_ALL is not set
CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set
# CONFIG_MODULE_SIG_SHA3_256 is not set
# CONFIG_MODULE_SIG_SHA3_384 is not set
# CONFIG_MODULE_SIG_SHA3_512 is not set
CONFIG_MODULE_SIG_HASH="sha256"
# 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_CGROUP_RWSTAT=y
CONFIG_BLK_CGROUP_PUNT_BIO=y
CONFIG_BLK_DEV_BSG_COMMON=y
CONFIG_BLK_ICQ=y
CONFIG_BLK_DEV_BSGLIB=y
CONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_WRITE_MOUNTED is not set
CONFIG_BLK_DEV_ZONED=y
CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BLK_WBT=y
CONFIG_BLK_WBT_MQ=y
CONFIG_BLK_CGROUP_IOLATENCY=y
# CONFIG_BLK_CGROUP_FC_APPID is not set
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=y
CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
CONFIG_ACORN_PARTITION=y
CONFIG_ACORN_PARTITION_CUMANA=y
CONFIG_ACORN_PARTITION_EESOX=y
CONFIG_ACORN_PARTITION_ICS=y
CONFIG_ACORN_PARTITION_ADFS=y
CONFIG_ACORN_PARTITION_POWERTEC=y
CONFIG_ACORN_PARTITION_RISCIX=y
CONFIG_AIX_PARTITION=y
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
CONFIG_ATARI_PARTITION=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
CONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not set
CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_SYSV68_PARTITION=y
CONFIG_CMDLINE_PARTITION=y
# CONFIG_OF_PARTITION is not set
# 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=y
CONFIG_BFQ_GROUP_IOSCHED=y
CONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers

CONFIG_PREEMPT_NOTIFIERS=y
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=y
CONFIG_ZSWAP_DEFAULT_ON=y
CONFIG_ZSWAP_SHRINKER_DEFAULT_ON=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT="842"
CONFIG_ZSMALLOC=y

#
# Zsmalloc allocator options
#

#
# Zsmalloc is a common backend allocator for zswap & zram
#
# CONFIG_ZSMALLOC_STAT is not set
CONFIG_ZSMALLOC_CHAIN_SIZE=8
# end of Zsmalloc allocator options

#
# 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_NUMA_KEEP_MEMINFO=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_HAVE_BOOTMEM_INFO_NODE=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE is not set
CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL is not set
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE is not set
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_MHP_MEMMAP_ON_MEMORY=y
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_BALLOON=y
# CONFIG_BALLOON_MIGRATION is not set
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
CONFIG_PAGE_REPORTING=y
CONFIG_NUMA_MIGRATION=y
CONFIG_MIGRATION=y
CONFIG_DEVICE_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_ARCH_ENABLE_THP_MIGRATION=y
CONFIG_CONTIG_ALLOC=y
CONFIG_PCP_BATCH_SCALE_MAX=5
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_MMU_NOTIFIER=y
CONFIG_KSM=y
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_PERSISTENT_HUGE_ZERO_FOLIO is not set
CONFIG_MM_ID=y
CONFIG_TRANSPARENT_HUGEPAGE=y
# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ADVISE=y
CONFIG_THP_SWAP=y
# CONFIG_NO_PAGE_MAPCOUNT 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_ARCH_SUPPORTS_HUGE_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PMD_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PUD_PFNMAP=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=y
# CONFIG_CMA_DEBUGFS is not set
# CONFIG_CMA_SYSFS is not set
CONFIG_CMA_AREAS=20
CONFIG_PAGE_BLOCK_MAX_ORDER=10
CONFIG_MEM_SOFT_DIRTY=y
CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
CONFIG_PAGE_IDLE_FLAG=y
# 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_ZONE_DEVICE=y
CONFIG_HMM_MIRROR=y
CONFIG_GET_FREE_REGION=y
CONFIG_DEVICE_PRIVATE=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=y
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_MEMFD_CREATE=y
CONFIG_SECRETMEM=y
CONFIG_ANON_VMA_NAME=y
CONFIG_HAVE_ARCH_USERFAULTFD_WP=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_USERFAULTFD=y
# CONFIG_PTE_MARKER_UFFD_WP 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=y
CONFIG_ARCH_HAS_USER_SHADOW_STACK=y
CONFIG_PT_RECLAIM=y

#
# Data Access Monitoring
#
CONFIG_DAMON=y
# CONFIG_DAMON_DEBUG_SANITY is not set
CONFIG_DAMON_VADDR=y
CONFIG_DAMON_PADDR=y
# CONFIG_DAMON_SYSFS is not set
CONFIG_DAMON_RECLAIM=y
# CONFIG_DAMON_LRU_SORT is not set
# CONFIG_DAMON_STAT is not set
# end of Data Access Monitoring
# end of Memory Management options

CONFIG_NET=y
CONFIG_WANT_COMPAT_NETLINK_MESSAGES=y
CONFIG_COMPAT_NETLINK_MESSAGES=y
CONFIG_NET_INGRESS=y
CONFIG_NET_EGRESS=y
CONFIG_NET_XGRESS=y
CONFIG_NET_REDIRECT=y
CONFIG_SKB_DECRYPTED=y
CONFIG_SKB_EXTENSIONS=y
CONFIG_NET_DEVMEM=y
CONFIG_NET_SHAPER=y
CONFIG_NET_CRC32C=y

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_DIAG=y
CONFIG_INET_PSP=y
CONFIG_UNIX=y
CONFIG_AF_UNIX_OOB=y
CONFIG_UNIX_DIAG=y
CONFIG_TLS=y
CONFIG_TLS_DEVICE=y
CONFIG_XFRM=y
CONFIG_XFRM_OFFLOAD=y
CONFIG_XFRM_ALGO=y
CONFIG_XFRM_USER=y
CONFIG_XFRM_USER_COMPAT=y
CONFIG_XFRM_INTERFACE=y
CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_MIGRATE=y
CONFIG_XFRM_STATISTICS=y
CONFIG_XFRM_AH=y
CONFIG_XFRM_ESP=y
CONFIG_XFRM_IPCOMP=y
CONFIG_NET_KEY=y
CONFIG_NET_KEY_MIGRATE=y
# CONFIG_XFRM_IPTFS is not set
CONFIG_XFRM_ESPINTCP=y
CONFIG_SMC=y
CONFIG_SMC_DIAG=y
# CONFIG_SMC_HS_CTRL_BPF is not set
CONFIG_DIBS=y
CONFIG_DIBS_LO=y
CONFIG_XDP_SOCKETS=y
CONFIG_XDP_SOCKETS_DIAG=y
CONFIG_NET_HANDSHAKE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_CLASSID=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
CONFIG_NET_IPIP=y
CONFIG_NET_IPGRE_DEMUX=y
CONFIG_NET_IP_TUNNEL=y
CONFIG_NET_IPGRE=y
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE_COMMON=y
CONFIG_IP_MROUTE=y
CONFIG_IP_MROUTE_MULTIPLE_TABLES=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_NET_IPVTI=y
CONFIG_NET_UDP_TUNNEL=y
CONFIG_NET_FOU=y
CONFIG_NET_FOU_IP_TUNNELS=y
CONFIG_INET_AH=y
CONFIG_INET_ESP=y
CONFIG_INET_ESP_OFFLOAD=y
CONFIG_INET_ESPINTCP=y
CONFIG_INET_IPCOMP=y
CONFIG_INET_TABLE_PERTURB_ORDER=16
CONFIG_INET_XFRM_TUNNEL=y
CONFIG_INET_TUNNEL=y
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
CONFIG_INET_UDP_DIAG=y
CONFIG_INET_RAW_DIAG=y
CONFIG_INET_DIAG_DESTROY=y
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_CONG_BIC=y
CONFIG_TCP_CONG_CUBIC=y
CONFIG_TCP_CONG_WESTWOOD=y
CONFIG_TCP_CONG_HTCP=y
CONFIG_TCP_CONG_HSTCP=y
CONFIG_TCP_CONG_HYBLA=y
CONFIG_TCP_CONG_VEGAS=y
CONFIG_TCP_CONG_NV=y
CONFIG_TCP_CONG_SCALABLE=y
CONFIG_TCP_CONG_LP=y
CONFIG_TCP_CONG_VENO=y
CONFIG_TCP_CONG_YEAH=y
CONFIG_TCP_CONG_ILLINOIS=y
CONFIG_TCP_CONG_DCTCP=y
CONFIG_TCP_CONG_CDG=y
CONFIG_TCP_CONG_BBR=y
# CONFIG_DEFAULT_BIC is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_HYBLA is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_VENO is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_DCTCP is not set
# CONFIG_DEFAULT_CDG is not set
# CONFIG_DEFAULT_BBR is not set
# 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=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_INET6_AH=y
CONFIG_INET6_ESP=y
CONFIG_INET6_ESP_OFFLOAD=y
CONFIG_INET6_ESPINTCP=y
CONFIG_INET6_IPCOMP=y
CONFIG_IPV6_MIP6=y
CONFIG_IPV6_ILA=y
CONFIG_INET6_XFRM_TUNNEL=y
CONFIG_INET6_TUNNEL=y
CONFIG_IPV6_VTI=y
CONFIG_IPV6_SIT=y
CONFIG_IPV6_SIT_6RD=y
CONFIG_IPV6_NDISC_NODETYPE=y
CONFIG_IPV6_TUNNEL=y
CONFIG_IPV6_GRE=y
CONFIG_IPV6_FOU=y
CONFIG_IPV6_FOU_TUNNEL=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y
CONFIG_IPV6_PIMSM_V2=y
CONFIG_IPV6_SEG6_LWTUNNEL=y
CONFIG_IPV6_SEG6_HMAC=y
CONFIG_IPV6_SEG6_BPF=y
CONFIG_IPV6_RPL_LWTUNNEL=y
# CONFIG_IPV6_IOAM6_LWTUNNEL is not set
CONFIG_NETLABEL=y
CONFIG_MPTCP=y
CONFIG_INET_MPTCP_DIAG=y
CONFIG_MPTCP_IPV6=y
CONFIG_NETWORK_SECMARK=y
CONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_BRIDGE_NETFILTER=y

#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_INGRESS=y
CONFIG_NETFILTER_EGRESS=y
CONFIG_NETFILTER_SKIP_EGRESS=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_FAMILY_BRIDGE=y
CONFIG_NETFILTER_FAMILY_ARP=y
CONFIG_NETFILTER_BPF_LINK=y
# CONFIG_NETFILTER_NETLINK_HOOK is not set
CONFIG_NETFILTER_NETLINK_ACCT=y
CONFIG_NETFILTER_NETLINK_QUEUE=y
CONFIG_NETFILTER_NETLINK_LOG=y
CONFIG_NETFILTER_NETLINK_OSF=y
CONFIG_NF_CONNTRACK=y
CONFIG_NF_LOG_SYSLOG=y
CONFIG_NETFILTER_CONNCOUNT=y
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
CONFIG_NF_CONNTRACK_ZONES=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CONNTRACK_TIMEOUT=y
CONFIG_NF_CONNTRACK_TIMESTAMP=y
CONFIG_NF_CONNTRACK_LABELS=y
CONFIG_NF_CONNTRACK_OVS=y
CONFIG_NF_CT_PROTO_GRE=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CONNTRACK_AMANDA=y
CONFIG_NF_CONNTRACK_FTP=y
CONFIG_NF_CONNTRACK_H323=y
CONFIG_NF_CONNTRACK_IRC=y
CONFIG_NF_CONNTRACK_BROADCAST=y
CONFIG_NF_CONNTRACK_NETBIOS_NS=y
CONFIG_NF_CONNTRACK_SNMP=y
CONFIG_NF_CONNTRACK_PPTP=y
CONFIG_NF_CONNTRACK_SANE=y
CONFIG_NF_CONNTRACK_SIP=y
CONFIG_NF_CONNTRACK_TFTP=y
CONFIG_NF_CT_NETLINK=y
CONFIG_NF_CT_NETLINK_TIMEOUT=y
CONFIG_NF_CT_NETLINK_HELPER=y
CONFIG_NETFILTER_NETLINK_GLUE_CT=y
CONFIG_NF_NAT=y
CONFIG_NF_NAT_AMANDA=y
CONFIG_NF_NAT_FTP=y
CONFIG_NF_NAT_IRC=y
CONFIG_NF_NAT_SIP=y
CONFIG_NF_NAT_TFTP=y
CONFIG_NF_NAT_REDIRECT=y
CONFIG_NF_NAT_MASQUERADE=y
CONFIG_NF_NAT_OVS=y
CONFIG_NETFILTER_SYNPROXY=y
CONFIG_NF_TABLES=y
CONFIG_NF_TABLES_INET=y
CONFIG_NF_TABLES_NETDEV=y
CONFIG_NFT_NUMGEN=y
CONFIG_NFT_CT=y
CONFIG_NFT_EXTHDR_DCCP=y
CONFIG_NFT_FLOW_OFFLOAD=y
CONFIG_NFT_CONNLIMIT=y
CONFIG_NFT_LOG=y
CONFIG_NFT_LIMIT=y
CONFIG_NFT_MASQ=y
CONFIG_NFT_REDIR=y
CONFIG_NFT_NAT=y
CONFIG_NFT_TUNNEL=y
CONFIG_NFT_QUEUE=y
CONFIG_NFT_QUOTA=y
CONFIG_NFT_REJECT=y
CONFIG_NFT_REJECT_INET=y
CONFIG_NFT_COMPAT=y
CONFIG_NFT_HASH=y
CONFIG_NFT_FIB=y
CONFIG_NFT_FIB_INET=y
CONFIG_NFT_XFRM=y
CONFIG_NFT_SOCKET=y
CONFIG_NFT_OSF=y
CONFIG_NFT_TPROXY=y
CONFIG_NFT_SYNPROXY=y
CONFIG_NF_DUP_NETDEV=y
CONFIG_NFT_DUP_NETDEV=y
CONFIG_NFT_FWD_NETDEV=y
CONFIG_NFT_FIB_NETDEV=y
CONFIG_NFT_REJECT_NETDEV=y
CONFIG_NF_FLOW_TABLE_INET=y
CONFIG_NF_FLOW_TABLE=y
# CONFIG_NF_FLOW_TABLE_PROCFS is not set
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XTABLES_COMPAT=y
CONFIG_NETFILTER_XTABLES_LEGACY=y

#
# Xtables combined modules
#
CONFIG_NETFILTER_XT_MARK=y
CONFIG_NETFILTER_XT_CONNMARK=y
CONFIG_NETFILTER_XT_SET=y

#
# Xtables targets
#
CONFIG_NETFILTER_XT_TARGET_AUDIT=y
CONFIG_NETFILTER_XT_TARGET_CHECKSUM=y
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=y
CONFIG_NETFILTER_XT_TARGET_CONNMARK=y
CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y
CONFIG_NETFILTER_XT_TARGET_CT=y
CONFIG_NETFILTER_XT_TARGET_DSCP=y
CONFIG_NETFILTER_XT_TARGET_HL=y
CONFIG_NETFILTER_XT_TARGET_HMARK=y
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
CONFIG_NETFILTER_XT_TARGET_LED=y
CONFIG_NETFILTER_XT_TARGET_LOG=y
CONFIG_NETFILTER_XT_TARGET_MARK=y
CONFIG_NETFILTER_XT_NAT=y
CONFIG_NETFILTER_XT_TARGET_NETMAP=y
CONFIG_NETFILTER_XT_TARGET_NFLOG=y
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=y
CONFIG_NETFILTER_XT_TARGET_NOTRACK=y
CONFIG_NETFILTER_XT_TARGET_RATEEST=y
CONFIG_NETFILTER_XT_TARGET_REDIRECT=y
CONFIG_NETFILTER_XT_TARGET_MASQUERADE=y
CONFIG_NETFILTER_XT_TARGET_TEE=y
CONFIG_NETFILTER_XT_TARGET_TPROXY=y
CONFIG_NETFILTER_XT_TARGET_TRACE=y
CONFIG_NETFILTER_XT_TARGET_SECMARK=y
CONFIG_NETFILTER_XT_TARGET_TCPMSS=y
CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y

#
# Xtables matches
#
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
CONFIG_NETFILTER_XT_MATCH_BPF=y
CONFIG_NETFILTER_XT_MATCH_CGROUP=y
CONFIG_NETFILTER_XT_MATCH_CLUSTER=y
CONFIG_NETFILTER_XT_MATCH_COMMENT=y
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=y
CONFIG_NETFILTER_XT_MATCH_CONNLABEL=y
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=y
CONFIG_NETFILTER_XT_MATCH_CONNMARK=y
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
CONFIG_NETFILTER_XT_MATCH_CPU=y
CONFIG_NETFILTER_XT_MATCH_DCCP=y
CONFIG_NETFILTER_XT_MATCH_DEVGROUP=y
CONFIG_NETFILTER_XT_MATCH_DSCP=y
CONFIG_NETFILTER_XT_MATCH_ECN=y
CONFIG_NETFILTER_XT_MATCH_ESP=y
CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=y
CONFIG_NETFILTER_XT_MATCH_HELPER=y
CONFIG_NETFILTER_XT_MATCH_HL=y
CONFIG_NETFILTER_XT_MATCH_IPCOMP=y
CONFIG_NETFILTER_XT_MATCH_IPRANGE=y
CONFIG_NETFILTER_XT_MATCH_IPVS=y
CONFIG_NETFILTER_XT_MATCH_L2TP=y
CONFIG_NETFILTER_XT_MATCH_LENGTH=y
CONFIG_NETFILTER_XT_MATCH_LIMIT=y
CONFIG_NETFILTER_XT_MATCH_MAC=y
CONFIG_NETFILTER_XT_MATCH_MARK=y
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
CONFIG_NETFILTER_XT_MATCH_NFACCT=y
CONFIG_NETFILTER_XT_MATCH_OSF=y
CONFIG_NETFILTER_XT_MATCH_OWNER=y
CONFIG_NETFILTER_XT_MATCH_POLICY=y
CONFIG_NETFILTER_XT_MATCH_PHYSDEV=y
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=y
CONFIG_NETFILTER_XT_MATCH_QUOTA=y
CONFIG_NETFILTER_XT_MATCH_RATEEST=y
CONFIG_NETFILTER_XT_MATCH_REALM=y
CONFIG_NETFILTER_XT_MATCH_RECENT=y
CONFIG_NETFILTER_XT_MATCH_SCTP=y
CONFIG_NETFILTER_XT_MATCH_SOCKET=y
CONFIG_NETFILTER_XT_MATCH_STATE=y
CONFIG_NETFILTER_XT_MATCH_STATISTIC=y
CONFIG_NETFILTER_XT_MATCH_STRING=y
CONFIG_NETFILTER_XT_MATCH_TCPMSS=y
CONFIG_NETFILTER_XT_MATCH_TIME=y
CONFIG_NETFILTER_XT_MATCH_U32=y
# end of Core Netfilter Configuration

CONFIG_IP_SET=y
CONFIG_IP_SET_MAX=256
CONFIG_IP_SET_BITMAP_IP=y
CONFIG_IP_SET_BITMAP_IPMAC=y
CONFIG_IP_SET_BITMAP_PORT=y
CONFIG_IP_SET_HASH_IP=y
CONFIG_IP_SET_HASH_IPMARK=y
CONFIG_IP_SET_HASH_IPPORT=y
CONFIG_IP_SET_HASH_IPPORTIP=y
CONFIG_IP_SET_HASH_IPPORTNET=y
CONFIG_IP_SET_HASH_IPMAC=y
CONFIG_IP_SET_HASH_MAC=y
CONFIG_IP_SET_HASH_NETPORTNET=y
CONFIG_IP_SET_HASH_NET=y
CONFIG_IP_SET_HASH_NETNET=y
CONFIG_IP_SET_HASH_NETPORT=y
CONFIG_IP_SET_HASH_NETIFACE=y
CONFIG_IP_SET_LIST_SET=y
CONFIG_IP_VS=y
CONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not set
CONFIG_IP_VS_TAB_BITS=12

#
# IPVS transport protocol load balancing support
#
CONFIG_IP_VS_PROTO_TCP=y
CONFIG_IP_VS_PROTO_UDP=y
CONFIG_IP_VS_PROTO_AH_ESP=y
CONFIG_IP_VS_PROTO_ESP=y
CONFIG_IP_VS_PROTO_AH=y
CONFIG_IP_VS_PROTO_SCTP=y

#
# IPVS scheduler
#
CONFIG_IP_VS_RR=y
CONFIG_IP_VS_WRR=y
CONFIG_IP_VS_LC=y
CONFIG_IP_VS_WLC=y
CONFIG_IP_VS_FO=y
CONFIG_IP_VS_OVF=y
CONFIG_IP_VS_LBLC=y
CONFIG_IP_VS_LBLCR=y
CONFIG_IP_VS_DH=y
CONFIG_IP_VS_SH=y
CONFIG_IP_VS_MH=y
CONFIG_IP_VS_SED=y
CONFIG_IP_VS_NQ=y
CONFIG_IP_VS_TWOS=y

#
# IPVS SH scheduler
#
CONFIG_IP_VS_SH_TAB_BITS=8

#
# IPVS MH scheduler
#
CONFIG_IP_VS_MH_TAB_INDEX=12

#
# IPVS application helper
#
CONFIG_IP_VS_FTP=y
CONFIG_IP_VS_NFCT=y
CONFIG_IP_VS_PE_SIP=y

#
# IP: Netfilter Configuration
#
CONFIG_NF_DEFRAG_IPV4=y
CONFIG_IP_NF_IPTABLES_LEGACY=y
CONFIG_NF_SOCKET_IPV4=y
CONFIG_NF_TPROXY_IPV4=y
CONFIG_NF_TABLES_IPV4=y
CONFIG_NFT_REJECT_IPV4=y
CONFIG_NFT_DUP_IPV4=y
CONFIG_NFT_FIB_IPV4=y
CONFIG_NF_TABLES_ARP=y
CONFIG_NF_DUP_IPV4=y
CONFIG_NF_LOG_ARP=y
CONFIG_NF_LOG_IPV4=y
CONFIG_NF_REJECT_IPV4=y
CONFIG_NF_NAT_SNMP_BASIC=y
CONFIG_NF_NAT_PPTP=y
CONFIG_NF_NAT_H323=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_AH=y
CONFIG_IP_NF_MATCH_ECN=y
CONFIG_IP_NF_MATCH_RPFILTER=y
CONFIG_IP_NF_MATCH_TTL=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_SYNPROXY=y
CONFIG_IP_NF_NAT=y
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_IP_NF_TARGET_NETMAP=y
CONFIG_IP_NF_TARGET_REDIRECT=y
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_IP_NF_TARGET_TTL=y
CONFIG_IP_NF_RAW=y
CONFIG_IP_NF_SECURITY=y
CONFIG_IP_NF_ARPTABLES=y
CONFIG_NFT_COMPAT_ARP=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_IP_NF_ARP_MANGLE=y
# end of IP: Netfilter Configuration

#
# IPv6: Netfilter Configuration
#
CONFIG_IP6_NF_IPTABLES_LEGACY=y
CONFIG_NF_SOCKET_IPV6=y
CONFIG_NF_TPROXY_IPV6=y
CONFIG_NF_TABLES_IPV6=y
CONFIG_NFT_REJECT_IPV6=y
CONFIG_NFT_DUP_IPV6=y
CONFIG_NFT_FIB_IPV6=y
CONFIG_NF_DUP_IPV6=y
CONFIG_NF_REJECT_IPV6=y
CONFIG_NF_LOG_IPV6=y
CONFIG_IP6_NF_IPTABLES=y
CONFIG_IP6_NF_MATCH_AH=y
CONFIG_IP6_NF_MATCH_EUI64=y
CONFIG_IP6_NF_MATCH_FRAG=y
CONFIG_IP6_NF_MATCH_OPTS=y
CONFIG_IP6_NF_MATCH_HL=y
CONFIG_IP6_NF_MATCH_IPV6HEADER=y
CONFIG_IP6_NF_MATCH_MH=y
CONFIG_IP6_NF_MATCH_RPFILTER=y
CONFIG_IP6_NF_MATCH_RT=y
CONFIG_IP6_NF_MATCH_SRH=y
CONFIG_IP6_NF_TARGET_HL=y
CONFIG_IP6_NF_FILTER=y
CONFIG_IP6_NF_TARGET_REJECT=y
CONFIG_IP6_NF_TARGET_SYNPROXY=y
CONFIG_IP6_NF_MANGLE=y
CONFIG_IP6_NF_RAW=y
CONFIG_IP6_NF_SECURITY=y
CONFIG_IP6_NF_NAT=y
CONFIG_IP6_NF_TARGET_MASQUERADE=y
CONFIG_IP6_NF_TARGET_NPT=y
# end of IPv6: Netfilter Configuration

CONFIG_NF_DEFRAG_IPV6=y
CONFIG_NF_TABLES_BRIDGE=y
CONFIG_NFT_BRIDGE_META=y
CONFIG_NFT_BRIDGE_REJECT=y
CONFIG_NF_CONNTRACK_BRIDGE=y
CONFIG_BRIDGE_NF_EBTABLES_LEGACY=y
CONFIG_BRIDGE_NF_EBTABLES=y
CONFIG_BRIDGE_EBT_BROUTE=y
CONFIG_BRIDGE_EBT_T_FILTER=y
CONFIG_BRIDGE_EBT_T_NAT=y
CONFIG_BRIDGE_EBT_802_3=y
CONFIG_BRIDGE_EBT_AMONG=y
CONFIG_BRIDGE_EBT_ARP=y
CONFIG_BRIDGE_EBT_IP=y
CONFIG_BRIDGE_EBT_IP6=y
CONFIG_BRIDGE_EBT_LIMIT=y
CONFIG_BRIDGE_EBT_MARK=y
CONFIG_BRIDGE_EBT_PKTTYPE=y
CONFIG_BRIDGE_EBT_STP=y
CONFIG_BRIDGE_EBT_VLAN=y
CONFIG_BRIDGE_EBT_ARPREPLY=y
CONFIG_BRIDGE_EBT_DNAT=y
CONFIG_BRIDGE_EBT_MARK_T=y
CONFIG_BRIDGE_EBT_REDIRECT=y
CONFIG_BRIDGE_EBT_SNAT=y
CONFIG_BRIDGE_EBT_LOG=y
CONFIG_BRIDGE_EBT_NFLOG=y
CONFIG_IP_SCTP=y
# CONFIG_SCTP_DBG_OBJCNT is not set
CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA256=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set
CONFIG_INET_SCTP_DIAG=y
CONFIG_RDS=y
CONFIG_RDS_RDMA=y
CONFIG_RDS_TCP=y
# CONFIG_RDS_DEBUG is not set
CONFIG_TIPC=y
CONFIG_TIPC_MEDIA_IB=y
CONFIG_TIPC_MEDIA_UDP=y
CONFIG_TIPC_CRYPTO=y
CONFIG_TIPC_DIAG=y
CONFIG_ATM=y
CONFIG_ATM_BR2684=y
# CONFIG_ATM_BR2684_IPFILTER is not set
CONFIG_L2TP=y
# CONFIG_L2TP_DEBUGFS is not set
CONFIG_L2TP_V3=y
CONFIG_L2TP_IP=y
CONFIG_L2TP_ETH=y
CONFIG_STP=y
CONFIG_GARP=y
CONFIG_MRP=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_IGMP_SNOOPING=y
CONFIG_BRIDGE_VLAN_FILTERING=y
CONFIG_BRIDGE_MRP=y
CONFIG_BRIDGE_CFM=y
CONFIG_NET_DSA=y
# CONFIG_NET_DSA_TAG_NONE is not set
# CONFIG_NET_DSA_TAG_AR9331 is not set
CONFIG_NET_DSA_TAG_BRCM_COMMON=y
CONFIG_NET_DSA_TAG_BRCM=y
# CONFIG_NET_DSA_TAG_BRCM_LEGACY is not set
# CONFIG_NET_DSA_TAG_BRCM_LEGACY_FCS is not set
CONFIG_NET_DSA_TAG_BRCM_PREPEND=y
# CONFIG_NET_DSA_TAG_HELLCREEK is not set
# CONFIG_NET_DSA_TAG_GSWIP is not set
# CONFIG_NET_DSA_TAG_DSA is not set
# CONFIG_NET_DSA_TAG_EDSA is not set
CONFIG_NET_DSA_TAG_MTK=y
# CONFIG_NET_DSA_TAG_MXL_862XX is not set
# CONFIG_NET_DSA_TAG_MXL_GSW1XX is not set
# CONFIG_NET_DSA_TAG_KSZ is not set
# CONFIG_NET_DSA_TAG_NETC is not set
# CONFIG_NET_DSA_TAG_OCELOT is not set
# CONFIG_NET_DSA_TAG_OCELOT_8021Q is not set
CONFIG_NET_DSA_TAG_QCA=y
CONFIG_NET_DSA_TAG_RTL4_A=y
# CONFIG_NET_DSA_TAG_RTL8_4 is not set
# CONFIG_NET_DSA_TAG_RZN1_A5PSW is not set
# CONFIG_NET_DSA_TAG_LAN9303 is not set
# CONFIG_NET_DSA_TAG_SJA1105 is not set
# CONFIG_NET_DSA_TAG_TRAILER is not set
# CONFIG_NET_DSA_TAG_VSC73XX_8021Q is not set
# CONFIG_NET_DSA_TAG_XRS700X is not set
# CONFIG_NET_DSA_TAG_YT921X is not set
CONFIG_VLAN_8021Q=y
CONFIG_VLAN_8021Q_GVRP=y
CONFIG_VLAN_8021Q_MVRP=y
CONFIG_LLC=y
CONFIG_LLC2=y
CONFIG_X25=y
CONFIG_LAPB=y
CONFIG_PHONET=y
CONFIG_6LOWPAN=y
# CONFIG_6LOWPAN_DEBUGFS is not set
CONFIG_6LOWPAN_NHC=y
CONFIG_6LOWPAN_NHC_DEST=y
CONFIG_6LOWPAN_NHC_FRAGMENT=y
CONFIG_6LOWPAN_NHC_HOP=y
CONFIG_6LOWPAN_NHC_IPV6=y
CONFIG_6LOWPAN_NHC_MOBILITY=y
CONFIG_6LOWPAN_NHC_ROUTING=y
CONFIG_6LOWPAN_NHC_UDP=y
CONFIG_6LOWPAN_GHC_EXT_HDR_HOP=y
CONFIG_6LOWPAN_GHC_UDP=y
CONFIG_6LOWPAN_GHC_ICMPV6=y
CONFIG_6LOWPAN_GHC_EXT_HDR_DEST=y
CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=y
CONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=y
CONFIG_IEEE802154=y
CONFIG_IEEE802154_NL802154_EXPERIMENTAL=y
CONFIG_IEEE802154_SOCKET=y
CONFIG_IEEE802154_6LOWPAN=y
CONFIG_MAC802154=y
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_MULTIQ=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFB=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_CBS=y
CONFIG_NET_SCH_ETF=y
CONFIG_NET_SCH_MQPRIO_LIB=y
CONFIG_NET_SCH_TAPRIO=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_NETEM=y
CONFIG_NET_SCH_DRR=y
CONFIG_NET_SCH_MQPRIO=y
CONFIG_NET_SCH_SKBPRIO=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_SCH_CAKE=y
CONFIG_NET_SCH_FQ=y
CONFIG_NET_SCH_HHF=y
CONFIG_NET_SCH_PIE=y
CONFIG_NET_SCH_FQ_PIE=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_PLUG=y
CONFIG_NET_SCH_ETS=y
# CONFIG_NET_SCH_DUALPI2 is not set
CONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
CONFIG_DEFAULT_CODEL=y
# CONFIG_DEFAULT_FQ_CODEL is not set
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not set
CONFIG_DEFAULT_NET_SCH="pfifo_fast"

#
# Classification
#
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_FW=y
CONFIG_NET_CLS_U32=y
CONFIG_CLS_U32_PERF=y
CONFIG_CLS_U32_MARK=y
CONFIG_NET_CLS_FLOW=y
CONFIG_NET_CLS_CGROUP=y
CONFIG_NET_CLS_BPF=y
CONFIG_NET_CLS_FLOWER=y
CONFIG_NET_CLS_MATCHALL=y
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
CONFIG_NET_EMATCH_CMP=y
CONFIG_NET_EMATCH_NBYTE=y
CONFIG_NET_EMATCH_U32=y
CONFIG_NET_EMATCH_META=y
CONFIG_NET_EMATCH_TEXT=y
CONFIG_NET_EMATCH_CANID=y
CONFIG_NET_EMATCH_IPSET=y
CONFIG_NET_EMATCH_IPT=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_POLICE=y
CONFIG_NET_ACT_GACT=y
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=y
CONFIG_NET_ACT_SAMPLE=y
CONFIG_NET_ACT_NAT=y
CONFIG_NET_ACT_PEDIT=y
CONFIG_NET_ACT_SIMP=y
CONFIG_NET_ACT_SKBEDIT=y
CONFIG_NET_ACT_CSUM=y
CONFIG_NET_ACT_MPLS=y
CONFIG_NET_ACT_VLAN=y
CONFIG_NET_ACT_BPF=y
CONFIG_NET_ACT_CONNMARK=y
CONFIG_NET_ACT_CTINFO=y
CONFIG_NET_ACT_SKBMOD=y
CONFIG_NET_ACT_IFE=y
CONFIG_NET_ACT_TUNNEL_KEY=y
CONFIG_NET_ACT_CT=y
CONFIG_NET_ACT_GATE=y
CONFIG_NET_IFE_SKBMARK=y
CONFIG_NET_IFE_SKBPRIO=y
CONFIG_NET_IFE_SKBTCINDEX=y
CONFIG_NET_TC_SKB_EXT=y
CONFIG_NET_SCH_FIFO=y
CONFIG_DCB=y
CONFIG_DNS_RESOLVER=y
CONFIG_BATMAN_ADV=y
CONFIG_BATMAN_ADV_BATMAN_V=y
CONFIG_BATMAN_ADV_BLA=y
CONFIG_BATMAN_ADV_DAT=y
CONFIG_BATMAN_ADV_MCAST=y
# CONFIG_BATMAN_ADV_DEBUG is not set
# CONFIG_BATMAN_ADV_TRACING is not set
CONFIG_OPENVSWITCH=y
CONFIG_OPENVSWITCH_GRE=y
CONFIG_OPENVSWITCH_VXLAN=y
CONFIG_OPENVSWITCH_GENEVE=y
CONFIG_VSOCKETS=y
CONFIG_VSOCKETS_DIAG=y
CONFIG_VSOCKETS_LOOPBACK=y
# CONFIG_VMWARE_VMCI_VSOCKETS is not set
CONFIG_VIRTIO_VSOCKETS=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
CONFIG_NETLINK_DIAG=y
CONFIG_MPLS=y
CONFIG_NET_MPLS_GSO=y
CONFIG_MPLS_ROUTING=y
CONFIG_MPLS_IPTUNNEL=y
CONFIG_NET_NSH=y
CONFIG_HSR=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_QRTR=y
CONFIG_QRTR_TUN=y
# CONFIG_QRTR_MHI is not set
CONFIG_NET_NCSI=y
# CONFIG_NCSI_OEM_CMD_GET_MAC is not set
# CONFIG_NCSI_OEM_CMD_KEEP_PHY 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=y
# end of Network testing
# end of Networking options

CONFIG_CAN=y
CONFIG_CAN_RAW=y
CONFIG_CAN_BCM=y
CONFIG_CAN_GW=y
CONFIG_CAN_J1939=y
CONFIG_CAN_ISOTP=y
CONFIG_BT=y
CONFIG_BT_BREDR=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=y
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=y
CONFIG_BT_LE=y
CONFIG_BT_LE_L2CAP_ECRED=y
CONFIG_BT_6LOWPAN=y
CONFIG_BT_LEDS=y
CONFIG_BT_MSFTEXT=y
# CONFIG_BT_AOSPEXT is not set
# CONFIG_BT_DEBUGFS is not set
# CONFIG_BT_SELFTEST is not set
# CONFIG_BT_FEATURE_DEBUG is not set

#
# Bluetooth device drivers
#
CONFIG_BT_INTEL=y
CONFIG_BT_BCM=y
CONFIG_BT_RTL=y
CONFIG_BT_QCA=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=y
# CONFIG_BT_HCIUART_ATH3K is not set
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_BCM is not set
# CONFIG_BT_HCIUART_RTL is not set
CONFIG_BT_HCIUART_QCA=y
CONFIG_BT_HCIUART_AG6XX=y
CONFIG_BT_HCIUART_MRVL=y
# 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=y
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=y
CONFIG_AF_RXRPC_IPV6=y
# CONFIG_AF_RXRPC_INJECT_LOSS is not set
# CONFIG_AF_RXRPC_INJECT_RX_DELAY is not set
# CONFIG_AF_RXRPC_DEBUG is not set
CONFIG_RXKAD=y
# CONFIG_RXGK is not set
# CONFIG_RXPERF is not set
CONFIG_AF_KCM=y
CONFIG_STREAM_PARSER=y
CONFIG_MCTP=y
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=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=y
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=y
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_RDMA=y
# CONFIG_NET_9P_DEBUG is not set
CONFIG_CEPH_LIB=y
# CONFIG_CEPH_LIB_PRETTYDEBUG is not set
CONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
CONFIG_NFC=y
CONFIG_NFC_DIGITAL=y
CONFIG_NFC_NCI=y
# CONFIG_NFC_NCI_SPI is not set
CONFIG_NFC_NCI_UART=y
CONFIG_NFC_HCI=y
CONFIG_NFC_SHDLC=y

#
# Near Field Communication (NFC) devices
#
# CONFIG_NFC_TRF7970A is not set
# CONFIG_NFC_MEI_PHY is not set
CONFIG_NFC_SIM=y
CONFIG_NFC_PORT100=y
CONFIG_NFC_VIRTUAL_NCI=y
CONFIG_NFC_FDP=y
# CONFIG_NFC_FDP_I2C is not set
# CONFIG_NFC_PN544_I2C 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_MICROREAD_I2C is not set
CONFIG_NFC_MRVL=y
CONFIG_NFC_MRVL_USB=y
# CONFIG_NFC_MRVL_UART is not set
# CONFIG_NFC_MRVL_I2C is not set
# CONFIG_NFC_ST21NFCA_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=y
CONFIG_NET_IFE=y
CONFIG_LWTUNNEL=y
CONFIG_LWTUNNEL_BPF=y
CONFIG_DST_CACHE=y
CONFIG_GRO_CELLS=y
CONFIG_SOCK_VALIDATE_XMIT=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=y
CONFIG_PCIEAER=y
# CONFIG_PCIEAER_INJECT is not set
# CONFIG_PCIE_ECRC 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_DPC is not set
# CONFIG_PCIE_PTM is not set
CONFIG_PCI_MSI=y
CONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_PF_STUB is not set
CONFIG_PCI_ATS=y
# CONFIG_PCI_TSM is not set
# CONFIG_PCI_DOE is not set
CONFIG_PCI_ECAM=y
CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_IOV=y
# CONFIG_PCI_NPEM is not set
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
# CONFIG_PCIE_TPH is not set
# CONFIG_PCI_P2PDMA 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
# CONFIG_PCIE_CADENCE_PLAT_EP 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
# CONFIG_PCIE_DW_PLAT_EP 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=y
# CONFIG_PCI_ENDPOINT_CONFIGFS is not set
# CONFIG_PCI_ENDPOINT_MSI_DOORBELL is not set
# CONFIG_PCI_EPF_TEST is not set
# CONFIG_PCI_EPF_NTB 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_PAGED_BUF=y
CONFIG_FW_LOADER_SYSFS=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
CONFIG_FW_LOADER_COMPRESS=y
# CONFIG_FW_LOADER_COMPRESS_XZ is not set
# CONFIG_FW_LOADER_COMPRESS_ZSTD 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=y
# CONFIG_MHI_BUS_DEBUG is not set
# CONFIG_MHI_BUS_PCI_GENERIC 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=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_GOOGLE_FIRMWARE=y
# CONFIG_GOOGLE_SMI is not set
# CONFIG_GOOGLE_CBMEM is not set
CONFIG_GOOGLE_COREBOOT_TABLE=y
CONFIG_GOOGLE_MEMCONSOLE=y
# CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set
# CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT is not set
CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=y
CONFIG_GOOGLE_VPD=y

#
# 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=y
# CONFIG_MTD_TESTS is not set

#
# Partition parsers
#
# CONFIG_MTD_CMDLINE_PARTS is not set
# CONFIG_MTD_OF_PARTS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# end of Partition parsers

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y

#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK.
#
CONFIG_FTL=y
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set
# CONFIG_MTD_PARTITIONED_MASTER is not set

#
# RAM/ROM/Flash chip drivers
#
# CONFIG_MTD_CFI is not set
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# end of RAM/ROM/Flash chip drivers

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PLATRAM is not set
# end of Mapping drivers for chip access

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_DATAFLASH is not set
# CONFIG_MTD_MCHP23K256 is not set
# CONFIG_MTD_MCHP48L640 is not set
# CONFIG_MTD_SST25L is not set
CONFIG_MTD_SLRAM=y
CONFIG_MTD_PHRAM=y
CONFIG_MTD_MTDRAM=y
CONFIG_MTDRAM_TOTAL_SIZE=128
CONFIG_MTDRAM_ERASE_SIZE=4
CONFIG_MTD_BLOCK2MTD=y
# CONFIG_MTD_INTEL_DG is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
# end of Self-contained MTD device drivers

#
# NAND
#
# CONFIG_MTD_ONENAND is not set
# CONFIG_MTD_RAW_NAND is not set
# CONFIG_MTD_SPI_NAND is not set

#
# ECC engine support
#
# CONFIG_MTD_NAND_ECC_SW_HAMMING is not set
# CONFIG_MTD_NAND_ECC_SW_BCH is not set
# CONFIG_MTD_NAND_ECC_MXIC is not set
# end of ECC engine support
# end of NAND

#
# LPDDR & LPDDR2 PCM memory drivers
#
# CONFIG_MTD_LPDDR is not set
# end of LPDDR & LPDDR2 PCM memory drivers

# CONFIG_MTD_SPI_NOR is not set
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
# CONFIG_MTD_UBI_BLOCK is not set
# CONFIG_MTD_UBI_FAULT_INJECTION is not set
# CONFIG_MTD_UBI_NVMEM is not set
# CONFIG_MTD_HYPERBUS 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=y
CONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=y
# CONFIG_BLK_DEV_FD is not set
CONFIG_CDROM=y
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
CONFIG_ZRAM=y
# CONFIG_ZRAM_BACKEND_LZ4 is not set
# CONFIG_ZRAM_BACKEND_LZ4HC is not set
# CONFIG_ZRAM_BACKEND_ZSTD is not set
# CONFIG_ZRAM_BACKEND_DEFLATE is not set
# CONFIG_ZRAM_BACKEND_842 is not set
CONFIG_ZRAM_BACKEND_FORCE_LZO=y
CONFIG_ZRAM_BACKEND_LZO=y
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
CONFIG_ZRAM_DEF_COMP_LZO=y
CONFIG_ZRAM_DEF_COMP="lzo"
# CONFIG_ZRAM_WRITEBACK is not set
# CONFIG_ZRAM_TRACK_ENTRY_ACTIME is not set
# CONFIG_ZRAM_MEMORY_TRACKING is not set
# CONFIG_ZRAM_MULTI_COMP is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_ATA_OVER_ETH=y
CONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_RBD is not set
CONFIG_BLK_DEV_UBLK=y
CONFIG_BLKDEV_UBLK_LEGACY_OPCODES=y
CONFIG_BLK_DEV_RNBD=y
CONFIG_BLK_DEV_RNBD_CLIENT=y
# CONFIG_BLK_DEV_ZONED_LOOP is not set

#
# NVME Support
#
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=y
CONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
CONFIG_NVME_FABRICS=y
CONFIG_NVME_RDMA=y
CONFIG_NVME_FC=y
CONFIG_NVME_TCP=y
# CONFIG_NVME_TCP_TLS is not set
# CONFIG_NVME_HOST_AUTH is not set
CONFIG_NVME_TARGET=y
# CONFIG_NVME_TARGET_DEBUGFS is not set
# CONFIG_NVME_TARGET_PASSTHRU is not set
CONFIG_NVME_TARGET_LOOP=y
CONFIG_NVME_TARGET_RDMA=y
CONFIG_NVME_TARGET_FC=y
CONFIG_NVME_TARGET_FCLOOP=y
CONFIG_NVME_TARGET_TCP=y
# CONFIG_NVME_TARGET_TCP_TLS is not set
# CONFIG_NVME_TARGET_AUTH is not set
# CONFIG_NVME_TARGET_PCI_EPF 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_VMWARE_BALLOON 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=y
# 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=y
CONFIG_SCSI_COMMON=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
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=y
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_ISCSI_ATTRS=y
CONFIG_SCSI_SAS_ATTRS=y
CONFIG_SCSI_SAS_LIBSAS=y
CONFIG_SCSI_SAS_ATA=y
# CONFIG_SCSI_SAS_HOST_SMP is not set
CONFIG_SCSI_SRP_ATTRS=y
# 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=y
# 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_LIBFC 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_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_EFCT 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_BFA_FC is not set
CONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_CHELSIO_FCOE is not set
# 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=y
# 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=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
# CONFIG_MD_CLUSTER is not set
CONFIG_BCACHE=y
# CONFIG_BCACHE_DEBUG is not set
# CONFIG_BCACHE_ASYNC_REGISTRATION is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
CONFIG_DM_BUFIO=y
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
CONFIG_DM_BIO_PRISON=y
CONFIG_DM_PERSISTENT_DATA=y
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=y
# CONFIG_DM_INLINECRYPT is not set
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_THIN_PROVISIONING=y
CONFIG_DM_CACHE=y
CONFIG_DM_CACHE_SMQ=y
CONFIG_DM_WRITECACHE=y
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
CONFIG_DM_CLONE=y
CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
CONFIG_DM_RAID=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=y
CONFIG_DM_MULTIPATH_QL=y
CONFIG_DM_MULTIPATH_ST=y
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
CONFIG_DM_UEVENT=y
CONFIG_DM_FLAKEY=y
CONFIG_DM_VERITY=y
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
CONFIG_DM_VERITY_FEC=y
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
CONFIG_DM_INTEGRITY=y
CONFIG_DM_ZONED=y
CONFIG_DM_AUDIT=y
# CONFIG_DM_VDO is not set
# CONFIG_DM_PCACHE 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_SBP_TARGET is not set
# CONFIG_REMOTE_TARGET is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
CONFIG_FIREWIRE=y
CONFIG_FIREWIRE_OHCI=y
CONFIG_FIREWIRE_SBP2=y
CONFIG_FIREWIRE_NET=y
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support

# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
CONFIG_BONDING=y
CONFIG_DUMMY=y
CONFIG_WIREGUARD=y
# CONFIG_WIREGUARD_DEBUG is not set
# CONFIG_OVPN is not set
CONFIG_EQUALIZER=y
CONFIG_NET_FC=y
CONFIG_IFB=y
CONFIG_NET_TEAM=y
CONFIG_NET_TEAM_MODE_BROADCAST=y
CONFIG_NET_TEAM_MODE_ROUNDROBIN=y
CONFIG_NET_TEAM_MODE_RANDOM=y
CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=y
CONFIG_NET_TEAM_MODE_LOADBALANCE=y
CONFIG_MACVLAN=y
CONFIG_MACVTAP=y
CONFIG_IPVLAN_L3S=y
CONFIG_IPVLAN=y
CONFIG_IPVTAP=y
CONFIG_VXLAN=y
CONFIG_GENEVE=y
CONFIG_BAREUDP=y
CONFIG_GTP=y
# CONFIG_PFCP is not set
# CONFIG_AMT is not set
CONFIG_MACSEC=y
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=y
CONFIG_TAP=y
CONFIG_TUN_VNET_CROSS_LE=y
CONFIG_VETH=y
CONFIG_VIRTIO_NET=y
CONFIG_NLMON=y
# CONFIG_NETKIT is not set
CONFIG_NET_VRF=y
CONFIG_VSOCKMON=y
# CONFIG_MHI_NET is not set
# CONFIG_ARCNET is not set
CONFIG_ATM_DRIVERS=y
# CONFIG_ATM_SOLOS is not set

#
# Distributed Switch Architecture drivers
#
# CONFIG_B53 is not set
# CONFIG_NET_DSA_BCM_SF2 is not set
# CONFIG_NET_DSA_LOOP is not set
# CONFIG_NET_DSA_HIRSCHMANN_HELLCREEK is not set
# CONFIG_NET_DSA_LANTIQ_GSWIP is not set
# CONFIG_NET_DSA_MXL_GSW1XX is not set
# CONFIG_NET_DSA_MT7530 is not set
# CONFIG_NET_DSA_MV88E6060 is not set
# CONFIG_NET_DSA_MICROCHIP_KSZ_COMMON is not set
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MXL862 is not set
# CONFIG_NET_DSA_AR9331 is not set
# CONFIG_NET_DSA_QCA8K is not set
# CONFIG_NET_DSA_SJA1105 is not set
# CONFIG_NET_DSA_XRS700X_I2C is not set
# CONFIG_NET_DSA_XRS700X_MDIO is not set
# CONFIG_NET_DSA_REALTEK is not set
# CONFIG_NET_DSA_KS8995 is not set
# CONFIG_NET_DSA_SMSC_LAN9303_I2C is not set
# CONFIG_NET_DSA_SMSC_LAN9303_MDIO is not set
# CONFIG_NET_DSA_VITESSE_VSC73XX_SPI is not set
# CONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM is not set
# CONFIG_NET_DSA_YT921X is not set
# end of Distributed Switch Architecture drivers

CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH 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 is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
CONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_CX_ECAT is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_NET_VENDOR_CORTINA is not set
CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
# CONFIG_NET_VENDOR_EZCHIP 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 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 is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
CONFIG_MLX4_CORE=y
# CONFIG_MLX4_DEBUG is not set
# CONFIG_MLX4_CORE_GEN2 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 is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
CONFIG_NET_VENDOR_MICROSOFT=y
CONFIG_NET_VENDOR_MUCSE=y
# CONFIG_MGBE is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
CONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not set
# CONFIG_NET_VENDOR_VIA 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 is not set
# CONFIG_NET_VENDOR_XILINX is not set
# CONFIG_NET_VENDOR_XIRCOM is not set
CONFIG_FDDI=y
# CONFIG_DEFXX is not set
# CONFIG_SKFP 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=y
CONFIG_CAN_VXCAN=y
CONFIG_CAN_NETLINK=y
CONFIG_CAN_CALC_BITTIMING=y
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=y
# 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=y
# 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_I2C 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=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_MPPE=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPPOATM=y
CONFIG_PPPOX=y
CONFIG_PPPOE=y
CONFIG_PPPOE_HASH_BITS_1=y
# CONFIG_PPPOE_HASH_BITS_2 is not set
# CONFIG_PPPOE_HASH_BITS_4 is not set
# CONFIG_PPPOE_HASH_BITS_8 is not set
CONFIG_PPPOE_HASH_BITS=1
CONFIG_PPTP=y
CONFIG_PPPOL2TP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_SLIP=y
CONFIG_SLHC=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
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=y
CONFIG_ATH9K_AHB=y
CONFIG_ATH9K_DEBUGFS=y
# CONFIG_ATH9K_STATION_STATISTICS is not set
CONFIG_ATH9K_DYNACK=y
# CONFIG_ATH9K_WOW is not set
CONFIG_ATH9K_RFKILL=y
CONFIG_ATH9K_CHANNEL_CONTEXT=y
CONFIG_ATH9K_PCOEM=y
# CONFIG_ATH9K_PCI_NO_EEPROM 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=y
# CONFIG_ATH10K_AHB 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=y
# CONFIG_ATH11K_PCI is not set
# CONFIG_ATH11K_DEBUG is not set
# CONFIG_ATH11K_DEBUGFS is not set
# CONFIG_ATH11K_TRACING is not set
# CONFIG_ATH12K is not set
# CONFIG_WLAN_VENDOR_ATMEL is not set
# CONFIG_WLAN_VENDOR_BROADCOM is not set
# CONFIG_WLAN_VENDOR_INTEL is not set
# CONFIG_WLAN_VENDOR_INTERSIL is not set
# CONFIG_WLAN_VENDOR_MARVELL is not set
# CONFIG_WLAN_VENDOR_MEDIATEK is not set
# CONFIG_WLAN_VENDOR_MICROCHIP is not set
CONFIG_WLAN_VENDOR_PURELIFI=y
CONFIG_PLFXLC=y
# CONFIG_WLAN_VENDOR_RALINK is not set
# CONFIG_WLAN_VENDOR_REALTEK is not set
# CONFIG_WLAN_VENDOR_RSI is not set
CONFIG_WLAN_VENDOR_SILABS=y
# CONFIG_WFX is not set
# CONFIG_WLAN_VENDOR_ST is not set
# CONFIG_WLAN_VENDOR_TI is not set
# CONFIG_WLAN_VENDOR_ZYDAS is not set
# CONFIG_WLAN_VENDOR_QUANTENNA is not set
CONFIG_MAC80211_HWSIM=y
CONFIG_VIRT_WIFI=y
CONFIG_WAN=y
CONFIG_HDLC=y
CONFIG_HDLC_RAW=y
CONFIG_HDLC_RAW_ETH=y
CONFIG_HDLC_CISCO=y
CONFIG_HDLC_FR=y
CONFIG_HDLC_PPP=y
CONFIG_HDLC_X25=y
# CONFIG_FRAMER is not set
# CONFIG_PCI200SYN is not set
# CONFIG_WANXL is not set
# CONFIG_PC300TOO is not set
# CONFIG_FARSYNC is not set
CONFIG_LAPBETHER=y
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=y

#
# Wireless WAN
#
CONFIG_WWAN=y
# CONFIG_WWAN_DEBUGFS is not set
# CONFIG_WWAN_HWSIM is not set
CONFIG_MHI_WWAN_CTRL=y
# CONFIG_MHI_WWAN_MBIM is not set
# CONFIG_IOSM is not set
# CONFIG_MTK_T7XX is not set
# end of Wireless WAN

CONFIG_VMXNET3=y
# CONFIG_FUJITSU_ES is not set
CONFIG_USB4_NET=y
CONFIG_NETDEVSIM=y
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=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
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_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=y
# 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_IBM_PANEL 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=y
# 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=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
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 is not set
# 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=y
# CONFIG_IPWIRELESS is not set
CONFIG_N_GSM=y
CONFIG_NOZOMI=y
CONFIG_NULL_TTY=y
CONFIG_HVC_DRIVER=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
CONFIG_TTY_PRINTK=y
CONFIG_TTY_PRINTK_LEVEL=6
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
# CONFIG_SSIF_IPMI_BMC is not set
# CONFIG_IPMB_DEVICE_INTERFACE 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=y
CONFIG_HPET_MMAP_DEFAULT=y
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
# CONFIG_TCG_TPM2_HMAC is not set
# CONFIG_HW_RANDOM_TPM is not set
CONFIG_TCG_TIS_CORE=y
CONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C is not set
# CONFIG_TCG_TIS_I2C_CR50 is not set
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
# CONFIG_TCG_NSC is not set
# CONFIG_TCG_ATMEL is not set
# CONFIG_TCG_INFINEON is not set
CONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI 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=y
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=y
# 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_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_VIRTIO is not set
# end of I2C Hardware Bus support

# CONFIG_I2C_STUB is not set
CONFIG_I2C_SLAVE=y
CONFIG_I2C_SLAVE_EEPROM=y
# CONFIG_I2C_SLAVE_TESTUNIT 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_1588_CLOCK_OCP 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_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_ICH 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_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 is not set
# 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_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_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_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_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_X86_PKG_TEMP_THERMAL is not set
# 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_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_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=y
# 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_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_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=y
# 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

CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_DVB_CORE=y

#
# Video4Linux options
#
CONFIG_VIDEO_V4L2_I2C=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
CONFIG_VIDEO_TUNER=y
CONFIG_V4L2_MEM2MEM_DEV=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
#

#
# Drivers filtered as selected at 'Filter 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 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=y
CONFIG_VIDEO_VIM2M=y
CONFIG_VIDEO_VICODEC=y
CONFIG_VIDEO_VIMC=y
CONFIG_VIDEO_VIVID=y
CONFIG_VIDEO_VIVID_CEC=y
# CONFIG_VIDEO_VIVID_OSD is not set
CONFIG_VIDEO_VIVID_MAX_DEVS=64
# CONFIG_VIDEO_VISL is not set
CONFIG_DVB_TEST_DRIVERS=y
CONFIG_DVB_VIDTV=y

#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV 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_VIDEO_V4L2_TPG=y
CONFIG_VIDEOBUF2_CORE=y
CONFIG_VIDEOBUF2_V4L2=y
CONFIG_VIDEOBUF2_MEMOPS=y
CONFIG_VIDEOBUF2_DMA_CONTIG=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=y
# 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=y
CONFIG_DRM_CLIENT_LIB=y
CONFIG_DRM_CLIENT_SELECTION=y
CONFIG_DRM_CLIENT_SETUP=y

#
# Supported DRM clients
#
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_CLIENT_LOG is not set
CONFIG_DRM_CLIENT_DEFAULT_FBDEV=y
CONFIG_DRM_CLIENT_DEFAULT="fbdev"
# end of Supported DRM clients

# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_DISPLAY_DP_AUX_BUS=y
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_TTM_HELPER=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
# CONFIG_DRM_I915_GVT_KVMGT is not set
# CONFIG_DRM_I915_DP_TUNNEL is not set

#
# 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=y
# 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_SYSFB_HELPER=y
CONFIG_DRM_SIMPLEDRM=y
# 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=y
CONFIG_DRM_CIRRUS_QEMU=y
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=y
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VIRTIO_GPU_KMS=y
CONFIG_DRM_VKMS=y
CONFIG_DRM_VMWGFX=y
# CONFIG_DRM_VMWGFX_MKSSTATS 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=y
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
# 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_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 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_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
CONFIG_FB_VIRTUAL=y
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX 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_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=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_IOMEM_FOPS=y
CONFIG_FB_IOMEM_HELPERS=y
CONFIG_FB_SYSMEM_HELPERS=y
CONFIG_FB_SYSMEM_HELPERS_DEFERRED=y
CONFIG_FB_TILEBLITTING=y
# 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_VGASTATE=y
CONFIG_VIDEOMODE_HELPERS=y
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=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support

CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_MONO_FILE="drivers/video/logo/logo_linux_mono.pbm"
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_VGA16_FILE="drivers/video/logo/logo_linux_vga16.ppm"
# CONFIG_LOGO_LINUX_CLUT224 is not set
# CONFIG_TRACE_GPU_MEM is not set
# end of Graphics support

# CONFIG_DRM_ACCEL is not set
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=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=y
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
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_CTL_LED=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=y
CONFIG_SND_SEQ_MIDI=y
CONFIG_SND_SEQ_VIRMIDI=y
# CONFIG_SND_SEQ_UMP is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_PCSP is not set
CONFIG_SND_DUMMY=y
CONFIG_SND_ALOOP=y
# CONFIG_SND_PCMTEST is not set
CONFIG_SND_VIRMIDI=y
# 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=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_PATCH_LOADER=y
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_GENERIC_LEDS=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
# CONFIG_SND_HDA_CODEC_SENARYTECH is not set
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
# CONFIG_SND_HDA_CODEC_CA0132_DSP is not set
CONFIG_SND_HDA_CODEC_CMEDIA=y
# CONFIG_SND_HDA_CODEC_CM9825 is not set
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_CODEC_REALTEK=y
# CONFIG_SND_HDA_CODEC_ALC260 is not set
# CONFIG_SND_HDA_CODEC_ALC262 is not set
# CONFIG_SND_HDA_CODEC_ALC268 is not set
# CONFIG_SND_HDA_CODEC_ALC269 is not set
# CONFIG_SND_HDA_CODEC_ALC662 is not set
# CONFIG_SND_HDA_CODEC_ALC680 is not set
# CONFIG_SND_HDA_CODEC_ALC861 is not set
# CONFIG_SND_HDA_CODEC_ALC861VD is not set
# CONFIG_SND_HDA_CODEC_ALC880 is not set
# CONFIG_SND_HDA_CODEC_ALC882 is not set
CONFIG_SND_HDA_CODEC_CIRRUS=y
# CONFIG_SND_HDA_CODEC_CS420X is not set
# CONFIG_SND_HDA_CODEC_CS421X is not set
# CONFIG_SND_HDA_CODEC_CS8409 is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_HDMI_GENERIC is not set
# CONFIG_SND_HDA_CODEC_HDMI_SIMPLE is not set
# CONFIG_SND_HDA_CODEC_HDMI_INTEL is not set
# CONFIG_SND_HDA_CODEC_HDMI_ATI is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA_MCP is not set
# CONFIG_SND_HDA_CODEC_HDMI_TEGRA 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_FIREWIRE is not set
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_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_RT5645 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=y
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=y

#
# 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_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=y
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=16
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=y
# CONFIG_USB_DWC3_DUAL_ROLE is not set

#
# 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=y
# 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
CONFIG_U_SERIAL_CONSOLE=y

#
# 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_LIBCOMPOSITE=y
CONFIG_USB_F_ACM=y
CONFIG_USB_F_SS_LB=y
CONFIG_USB_U_SERIAL=y
CONFIG_USB_U_ETHER=y
CONFIG_USB_U_AUDIO=y
CONFIG_USB_F_SERIAL=y
CONFIG_USB_F_OBEX=y
CONFIG_USB_F_NCM=y
CONFIG_USB_F_ECM=y
CONFIG_USB_F_PHONET=y
CONFIG_USB_F_EEM=y
CONFIG_USB_F_SUBSET=y
CONFIG_USB_F_RNDIS=y
CONFIG_USB_F_MASS_STORAGE=y
CONFIG_USB_F_FS=y
CONFIG_USB_F_UAC1=y
CONFIG_USB_F_UAC1_LEGACY=y
CONFIG_USB_F_UAC2=y
CONFIG_USB_F_UVC=y
CONFIG_USB_F_MIDI=y
CONFIG_USB_F_MIDI2=y
CONFIG_USB_F_HID=y
CONFIG_USB_F_PRINTER=y
CONFIG_USB_F_TCM=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_OBEX=y
CONFIG_USB_CONFIGFS_NCM=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_EEM=y
CONFIG_USB_CONFIGFS_PHONET=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_LB_SS=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_UAC1=y
CONFIG_USB_CONFIGFS_F_UAC1_LEGACY=y
CONFIG_USB_CONFIGFS_F_UAC2=y
CONFIG_USB_CONFIGFS_F_MIDI=y
CONFIG_USB_CONFIGFS_F_MIDI2=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_UVC=y
CONFIG_USB_CONFIGFS_F_PRINTER=y
CONFIG_USB_CONFIGFS_F_TCM=y

#
# 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=y
# 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_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
# CONFIG_MMC_CRYPTO 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_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_MTD 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=y
CONFIG_INFINIBAND_USER_MAD=y
CONFIG_INFINIBAND_USER_ACCESS=y
CONFIG_INFINIBAND_USER_ACCESS_CORE=y
CONFIG_INFINIBAND_USER_MEM=y
CONFIG_INFINIBAND_ON_DEMAND_PAGING=y
CONFIG_INFINIBAND_ADDR_TRANS=y
CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y
CONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_EFA is not set
# CONFIG_INFINIBAND_ERDMA is not set
CONFIG_MLX4_INFINIBAND=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_VMWARE_PVRDMA is not set
# CONFIG_INFINIBAND_RDMAVT is not set
CONFIG_RDMA_RXE=y
CONFIG_RDMA_SIW=y
CONFIG_INFINIBAND_IPOIB=y
CONFIG_INFINIBAND_IPOIB_CM=y
CONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
CONFIG_INFINIBAND_SRP=y
# CONFIG_INFINIBAND_SRPT is not set
CONFIG_INFINIBAND_ISER=y
CONFIG_INFINIBAND_RTRS=y
CONFIG_INFINIBAND_RTRS_CLIENT=y
# CONFIG_INFINIBAND_RTRS_SERVER 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 is not set

#
# 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

#
# 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=y
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not set
CONFIG_INTEL_IOATDMA=y
# 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=y
# CONFIG_DMATEST is not set
CONFIG_DMA_ENGINE_RAID=y

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

CONFIG_DCA=y
# CONFIG_UIO is not set
CONFIG_VFIO=y
CONFIG_VFIO_DEVICE_CDEV=y
# CONFIG_VFIO_GROUP is not set
CONFIG_VFIO_VIRQFD=y
# CONFIG_VFIO_DEBUGFS is not set

#
# VFIO support for PCI devices
#
CONFIG_VFIO_PCI_CORE=y
CONFIG_VFIO_PCI_INTX=y
CONFIG_VFIO_PCI=y
# CONFIG_VFIO_PCI_VGA is not set
# CONFIG_VFIO_PCI_IGD is not set
# CONFIG_VIRTIO_VFIO_PCI is not set
# end of VFIO support for PCI devices

CONFIG_IRQ_BYPASS_MANAGER=y
# CONFIG_VIRT_DRIVERS is not set
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_VDPA=y
CONFIG_VIRTIO_PMEM=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_MEM=y
CONFIG_VIRTIO_INPUT=y
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
CONFIG_VIRTIO_DMA_SHARED_BUFFER=y
# CONFIG_VIRTIO_DEBUG is not set
# CONFIG_VIRTIO_RTC is not set
CONFIG_VDPA=y
CONFIG_VDPA_SIM=y
CONFIG_VDPA_SIM_NET=y
CONFIG_VDPA_SIM_BLOCK=y
# CONFIG_VDPA_USER is not set
# CONFIG_IFCVF is not set
# CONFIG_MLX5_VDPA_STEERING_DEBUG is not set
CONFIG_VP_VDPA=y
# CONFIG_ALIBABA_ENI_VDPA is not set
# CONFIG_SNET_VDPA is not set
# CONFIG_OCTEONEP_VDPA is not set
CONFIG_VHOST_IOTLB=y
CONFIG_VHOST_RING=y
CONFIG_VHOST_TASK=y
CONFIG_VHOST=y
CONFIG_VHOST_MENU=y
CONFIG_VHOST_NET=y
# CONFIG_VHOST_SCSI is not set
CONFIG_VHOST_VSOCK=y
CONFIG_VHOST_VDPA=y
CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
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=y
CONFIG_COMEDI_BOND=y
CONFIG_COMEDI_TEST=y
CONFIG_COMEDI_PARPORT=y
CONFIG_COMEDI_ISA_DRIVERS=y
CONFIG_COMEDI_PCL711=y
CONFIG_COMEDI_PCL724=y
CONFIG_COMEDI_PCL726=y
CONFIG_COMEDI_PCL730=y
CONFIG_COMEDI_PCL812=y
CONFIG_COMEDI_PCL816=y
CONFIG_COMEDI_PCL818=y
CONFIG_COMEDI_PCM3724=y
CONFIG_COMEDI_AMPLC_DIO200_ISA=y
CONFIG_COMEDI_AMPLC_PC236_ISA=y
CONFIG_COMEDI_AMPLC_PC263_ISA=y
CONFIG_COMEDI_RTI800=y
CONFIG_COMEDI_RTI802=y
CONFIG_COMEDI_DAC02=y
CONFIG_COMEDI_DAS16M1=y
CONFIG_COMEDI_DAS08_ISA=y
# CONFIG_COMEDI_DAS16 is not set
CONFIG_COMEDI_DAS800=y
CONFIG_COMEDI_DAS1800=y
CONFIG_COMEDI_DAS6402=y
CONFIG_COMEDI_DT2801=y
CONFIG_COMEDI_DT2811=y
CONFIG_COMEDI_DT2814=y
CONFIG_COMEDI_DT2815=y
CONFIG_COMEDI_DT2817=y
CONFIG_COMEDI_DT282X=y
CONFIG_COMEDI_DMM32AT=y
CONFIG_COMEDI_FL512=y
CONFIG_COMEDI_AIO_AIO12_8=y
CONFIG_COMEDI_AIO_IIRO_16=y
# CONFIG_COMEDI_II_PCI20KC is not set
CONFIG_COMEDI_C6XDIGIO=y
CONFIG_COMEDI_MPC624=y
CONFIG_COMEDI_ADQ12B=y
CONFIG_COMEDI_NI_AT_A2150=y
CONFIG_COMEDI_NI_AT_AO=y
# CONFIG_COMEDI_NI_ATMIO is not set
CONFIG_COMEDI_NI_ATMIO16D=y
CONFIG_COMEDI_NI_LABPC_ISA=y
CONFIG_COMEDI_PCMAD=y
CONFIG_COMEDI_PCMDA12=y
CONFIG_COMEDI_PCMMIO=y
CONFIG_COMEDI_PCMUIO=y
CONFIG_COMEDI_MULTIQ3=y
CONFIG_COMEDI_S526=y
CONFIG_COMEDI_PCI_DRIVERS=y
CONFIG_COMEDI_8255_PCI=y
# CONFIG_COMEDI_ADDI_APCI_1032 is not set
# CONFIG_COMEDI_ADDI_APCI_1500 is not set
# CONFIG_COMEDI_ADDI_APCI_1516 is not set
# CONFIG_COMEDI_ADDI_APCI_1564 is not set
# CONFIG_COMEDI_ADDI_APCI_16XX is not set
# CONFIG_COMEDI_ADDI_APCI_2032 is not set
# CONFIG_COMEDI_ADDI_APCI_2200 is not set
# CONFIG_COMEDI_ADDI_APCI_3120 is not set
# CONFIG_COMEDI_ADDI_APCI_3501 is not set
# CONFIG_COMEDI_ADDI_APCI_3XXX is not set
# CONFIG_COMEDI_ADL_PCI6208 is not set
# CONFIG_COMEDI_ADL_PCI7250 is not set
# CONFIG_COMEDI_ADL_PCI7X3X is not set
# CONFIG_COMEDI_ADL_PCI8164 is not set
# CONFIG_COMEDI_ADL_PCI9111 is not set
CONFIG_COMEDI_ADL_PCI9118=y
# CONFIG_COMEDI_ADV_PCI1710 is not set
# CONFIG_COMEDI_ADV_PCI1720 is not set
# CONFIG_COMEDI_ADV_PCI1723 is not set
# CONFIG_COMEDI_ADV_PCI1724 is not set
# CONFIG_COMEDI_ADV_PCI1760 is not set
# CONFIG_COMEDI_ADV_PCI_DIO is not set
# CONFIG_COMEDI_AMPLC_DIO200_PCI is not set
# CONFIG_COMEDI_AMPLC_PC236_PCI is not set
# CONFIG_COMEDI_AMPLC_PC263_PCI is not set
# CONFIG_COMEDI_AMPLC_PCI224 is not set
# CONFIG_COMEDI_AMPLC_PCI230 is not set
# CONFIG_COMEDI_CONTEC_PCI_DIO is not set
# CONFIG_COMEDI_DAS08_PCI is not set
# CONFIG_COMEDI_DT3000 is not set
# CONFIG_COMEDI_DYNA_PCI10XX is not set
# CONFIG_COMEDI_GSC_HPDI is not set
# CONFIG_COMEDI_MF6X4 is not set
# CONFIG_COMEDI_ICP_MULTI is not set
# CONFIG_COMEDI_DAQBOARD2000 is not set
# CONFIG_COMEDI_JR3_PCI is not set
# CONFIG_COMEDI_KE_COUNTER is not set
# CONFIG_COMEDI_CB_PCIDAS64 is not set
# CONFIG_COMEDI_CB_PCIDAS is not set
# CONFIG_COMEDI_CB_PCIDDA is not set
# CONFIG_COMEDI_CB_PCIMDAS is not set
# CONFIG_COMEDI_CB_PCIMDDA is not set
# CONFIG_COMEDI_ME4000 is not set
# CONFIG_COMEDI_ME_DAQ is not set
# CONFIG_COMEDI_NI_6527 is not set
# CONFIG_COMEDI_NI_65XX is not set
# CONFIG_COMEDI_NI_660X is not set
# CONFIG_COMEDI_NI_670X is not set
CONFIG_COMEDI_NI_LABPC_PCI=y
# CONFIG_COMEDI_NI_PCIDIO is not set
# CONFIG_COMEDI_NI_PCIMIO is not set
# CONFIG_COMEDI_RTD520 is not set
# CONFIG_COMEDI_S626 is not set
CONFIG_COMEDI_PCMCIA_DRIVERS=y
# CONFIG_COMEDI_CB_DAS16_CS is not set
# CONFIG_COMEDI_DAS08_CS is not set
CONFIG_COMEDI_NI_DAQ_700_CS=y
# CONFIG_COMEDI_NI_DAQ_DIO24_CS is not set
CONFIG_COMEDI_NI_LABPC_CS=y
# CONFIG_COMEDI_NI_MIO_CS is not set
# CONFIG_COMEDI_QUATECH_DAQP_CS 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_8254=y
CONFIG_COMEDI_8255=y
CONFIG_COMEDI_8255_SA=y
CONFIG_COMEDI_KCOMEDILIB=y
CONFIG_COMEDI_AMPLC_DIO200=y
CONFIG_COMEDI_AMPLC_PC236=y
CONFIG_COMEDI_DAS08=y
CONFIG_COMEDI_ISADMA=y
CONFIG_COMEDI_NI_LABPC=y
CONFIG_COMEDI_NI_LABPC_ISADMA=y
# 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 is not set
# 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_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_IOMMUFD_DRIVER=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_AMD_IOMMU_IOMMUFD is not set
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_SVM=y
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_PERF_EVENTS=y
CONFIG_IOMMUFD_DRIVER_CORE=y
CONFIG_IOMMUFD=y
CONFIG_IOMMUFD_TEST=y
CONFIG_IRQ_REMAP=y
# CONFIG_VIRTIO_IOMMU is not set
CONFIG_GENERIC_PT=y
# CONFIG_DEBUG_GENERIC_PT is not set
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
#
CONFIG_QCOM_QMI_HELPERS=y
# 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_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_CIO_DAC 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_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=y
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=y
CONFIG_USB4_CONFIGFS=y
# CONFIG_USB4_DEBUGFS_WRITE is not set
# CONFIG_USB4_DMA_TEST is not set
# CONFIG_USB4_STREAM is not set

#
# Android
#
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder0,binder1"
# end of Android

CONFIG_LIBNVDIMM=y
CONFIG_BLK_DEV_PMEM=y
CONFIG_ND_CLAIM=y
CONFIG_ND_BTT=y
CONFIG_BTT=y
CONFIG_ND_PFN=y
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
CONFIG_OF_PMEM=y
# CONFIG_RAMDAX is not set
CONFIG_NVDIMM_KEYS=y
# CONFIG_NVDIMM_SECURITY_TEST is not set
CONFIG_DAX=y
CONFIG_DEV_DAX=y
# CONFIG_DEV_DAX_PMEM is not set
CONFIG_DEV_DAX_FSDEV=y
# CONFIG_DEV_DAX_KMEM 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
# CONFIG_NVMEM_U_BOOT_ENV 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_TEE_DMABUF_HEAPS=y
CONFIG_OPTEE_STATIC_PROTMEM_POOL=y
# CONFIG_MUX_CORE is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
CONFIG_COUNTER=y
# CONFIG_INTEL_QEP is not set
# CONFIG_INTERRUPT_CNT 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=y
CONFIG_FS_IOMAP=y
CONFIG_FS_STACK=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=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_SUPPORT_V4 is not set
# CONFIG_XFS_SUPPORT_ASCII_CI is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DRAIN_INTENTS=y
CONFIG_XFS_LIVE_HOOKS=y
CONFIG_XFS_MEMORY_BUFS=y
CONFIG_XFS_BTREE_IN_MEM=y
CONFIG_XFS_ONLINE_SCRUB=y
# CONFIG_XFS_ONLINE_SCRUB_STATS is not set
CONFIG_XFS_ONLINE_REPAIR=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_NILFS2_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
CONFIG_F2FS_FAULT_INJECTION=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not set
# CONFIG_F2FS_UNFAIR_RWSEM is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_ENCRYPTION_INLINE_CRYPT is not set
CONFIG_FS_VERITY=y
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
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=y
CONFIG_CUSE=y
CONFIG_VIRTIO_FS=y
CONFIG_FUSE_DAX=y
# CONFIG_FUSE_PASSTHROUGH is not set
# CONFIG_FUSE_IO_URING is not set
CONFIG_OVERLAY_FS=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
CONFIG_OVERLAY_FS_INDEX=y
# CONFIG_OVERLAY_FS_NFS_EXPORT is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
CONFIG_OVERLAY_FS_DEBUG=y

#
# Caches
#
CONFIG_NETFS_SUPPORT=y
# CONFIG_NETFS_STATS is not set
# CONFIG_NETFS_DEBUG is not set
CONFIG_FSCACHE=y
# CONFIG_FSCACHE_STATS is not set
CONFIG_CACHEFILES=y
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_ERROR_INJECTION is not set
# CONFIG_CACHEFILES_ONDEMAND is not set
# end of Caches

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_UDF_FS=y
# 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=y
CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
# CONFIG_NTFS_FS is not set
CONFIG_NTFS3_FS=y
# CONFIG_NTFS3_64BIT_CLUSTER is not set
CONFIG_NTFS3_LZX_XPRESS=y
CONFIG_NTFS3_FS_POSIX_ACL=y
# 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=y
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=y
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=y
CONFIG_ADFS_FS=y
# CONFIG_ADFS_FS_RW is not set
CONFIG_AFFS_FS=y
CONFIG_ECRYPT_FS=y
CONFIG_ECRYPT_FS_MESSAGING=y
CONFIG_HFS_FS=y
CONFIG_HFSPLUS_FS=y
CONFIG_BEFS_FS=y
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=y
CONFIG_EFS_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_FS_XATTR=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_RUBIN=y
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UBIFS_ATIME_SUPPORT=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y
# CONFIG_UBIFS_FS_AUTHENTICATION is not set
CONFIG_CRAMFS=y
CONFIG_CRAMFS_BLOCKDEV=y
CONFIG_CRAMFS_MTD=y
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_MULTI=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set
# CONFIG_SQUASHFS_COMPILE_DECOMP_SINGLE is not set
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI=y
# CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU is not set
# CONFIG_SQUASHFS_MOUNT_DECOMP_THREADS is not set
CONFIG_SQUASHFS_XATTR=y
# CONFIG_SQUASHFS_COMP_CACHE_FULL is not set
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_VXFS_FS=y
CONFIG_MINIX_FS=y
CONFIG_OMFS_FS=y
CONFIG_HPFS_FS=y
CONFIG_QNX4FS_FS=y
CONFIG_QNX6FS_FS=y
# CONFIG_QNX6FS_DEBUG is not set
CONFIG_ROMFS_FS=y
# CONFIG_ROMFS_BACKED_BY_BLOCK is not set
# CONFIG_ROMFS_BACKED_BY_MTD is not set
CONFIG_ROMFS_BACKED_BY_BOTH=y
CONFIG_ROMFS_ON_BLOCK=y
CONFIG_ROMFS_ON_MTD=y
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_PSTORE_BLK is not set
CONFIG_UFS_FS=y
CONFIG_UFS_FS_WRITE=y
# CONFIG_UFS_DEBUG is not set
CONFIG_EROFS_FS=y
# CONFIG_EROFS_FS_DEBUG is not set
CONFIG_EROFS_FS_XATTR=y
CONFIG_EROFS_FS_POSIX_ACL=y
CONFIG_EROFS_FS_SECURITY=y
# CONFIG_EROFS_FS_BACKED_BY_FILE is not set
CONFIG_EROFS_FS_ZIP=y
# CONFIG_EROFS_FS_ZIP_LZMA is not set
# CONFIG_EROFS_FS_ZIP_DEFLATE is not set
# CONFIG_EROFS_FS_ZIP_ZSTD is not set
# CONFIG_EROFS_FS_ZIP_ACCEL is not set
# CONFIG_EROFS_FS_PCPU_KTHREAD is not set
# CONFIG_EROFS_FS_PAGE_CACHE_SHARE 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=y
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_NFS_V4_SECURITY_LABEL=y
CONFIG_ROOT_NFS=y
CONFIG_NFS_FSCACHE=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFS_DISABLE_UDP_SUPPORT is not set
CONFIG_NFS_V4_2_READ_PLUS=y
CONFIG_NFSD=y
# CONFIG_NFSD_V2 is not set
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_PNFS=y
CONFIG_NFSD_BLOCKLAYOUT=y
CONFIG_NFSD_SCSILAYOUT=y
CONFIG_NFSD_FLEXFILELAYOUT=y
CONFIG_NFSD_V4_2_INTER_SSC=y
CONFIG_NFSD_V4_SECURITY_LABEL=y
# CONFIG_NFSD_LEGACY_CLIENT_TRACKING is not set
# CONFIG_NFSD_V4_POSIX_ACLS is not set
CONFIG_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
# CONFIG_NFS_LOCALIO is not set
CONFIG_NFS_V4_2_SSC_HELPER=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_SUNRPC_BACKCHANNEL=y
CONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_SUNRPC_XPRT_RDMA is not set
CONFIG_CEPH_FS=y
CONFIG_CEPH_FSCACHE=y
CONFIG_CEPH_FS_POSIX_ACL=y
# CONFIG_CEPH_FS_SECURITY_LABEL is not set
CONFIG_CIFS=y
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
CONFIG_CIFS_DFS_UPCALL=y
CONFIG_CIFS_SWN_UPCALL=y
CONFIG_CIFS_SMB_DIRECT=y
CONFIG_CIFS_FSCACHE=y
# CONFIG_CIFS_ROOT is not set
# CONFIG_CIFS_COMPRESSION is not set
CONFIG_SMB_SERVER=y
# CONFIG_SMB_SERVER_SMBDIRECT is not set
# CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN is not set
# CONFIG_SMB_SERVER_KERBEROS5 is not set
CONFIG_SMBDIRECT=y
CONFIG_SMBFS=y
# CONFIG_CODA_FS is not set
CONFIG_AFS_FS=y
# CONFIG_AFS_DEBUG is not set
CONFIG_AFS_FSCACHE=y
# CONFIG_AFS_DEBUG_CURSOR is not set
CONFIG_9P_FS=y
CONFIG_9P_FSCACHE=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_737=y
CONFIG_NLS_CODEPAGE_775=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
CONFIG_NLS_CODEPAGE_855=y
CONFIG_NLS_CODEPAGE_857=y
CONFIG_NLS_CODEPAGE_860=y
CONFIG_NLS_CODEPAGE_861=y
CONFIG_NLS_CODEPAGE_862=y
CONFIG_NLS_CODEPAGE_863=y
CONFIG_NLS_CODEPAGE_864=y
CONFIG_NLS_CODEPAGE_865=y
CONFIG_NLS_CODEPAGE_866=y
CONFIG_NLS_CODEPAGE_869=y
CONFIG_NLS_CODEPAGE_936=y
CONFIG_NLS_CODEPAGE_950=y
CONFIG_NLS_CODEPAGE_932=y
CONFIG_NLS_CODEPAGE_949=y
CONFIG_NLS_CODEPAGE_874=y
CONFIG_NLS_ISO8859_8=y
CONFIG_NLS_CODEPAGE_1250=y
CONFIG_NLS_CODEPAGE_1251=y
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
CONFIG_NLS_ISO8859_3=y
CONFIG_NLS_ISO8859_4=y
CONFIG_NLS_ISO8859_5=y
CONFIG_NLS_ISO8859_6=y
CONFIG_NLS_ISO8859_7=y
CONFIG_NLS_ISO8859_9=y
CONFIG_NLS_ISO8859_13=y
CONFIG_NLS_ISO8859_14=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_KOI8_R=y
CONFIG_NLS_KOI8_U=y
CONFIG_NLS_MAC_ROMAN=y
CONFIG_NLS_MAC_CELTIC=y
CONFIG_NLS_MAC_CENTEURO=y
CONFIG_NLS_MAC_CROATIAN=y
CONFIG_NLS_MAC_CYRILLIC=y
CONFIG_NLS_MAC_GAELIC=y
CONFIG_NLS_MAC_GREEK=y
CONFIG_NLS_MAC_ICELAND=y
CONFIG_NLS_MAC_INUIT=y
CONFIG_NLS_MAC_ROMANIAN=y
CONFIG_NLS_MAC_TURKISH=y
CONFIG_NLS_UTF8=y
CONFIG_NLS_UCS2_UTILS=y
CONFIG_DLM=y
# CONFIG_DLM_DEBUG is not set
CONFIG_UNICODE=y
CONFIG_IO_WQ=y
# end of File systems

#
# Security options
#
CONFIG_KEYS=y
CONFIG_KEYS_REQUEST_CACHE=y
CONFIG_PERSISTENT_KEYRINGS=y
CONFIG_BIG_KEYS=y
CONFIG_TRUSTED_KEYS=y
# CONFIG_TRUSTED_KEYS_TPM is not set
# CONFIG_TRUSTED_KEYS_TEE is not set

#
# No trust source selected!
#
CONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
CONFIG_KEY_DH_OPERATIONS=y
CONFIG_KEY_NOTIFICATIONS=y
# 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_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SELINUX is not set
# CONFIG_SECURITY_SMACK is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=64
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=32
CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER=y
CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y
CONFIG_SECURITY_APPARMOR=y
CONFIG_SECURITY_APPARMOR_DEBUG=y
CONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS=y
# CONFIG_SECURITY_APPARMOR_DEBUG_MESSAGES is not set
CONFIG_SECURITY_APPARMOR_INTROSPECT_POLICY=y
CONFIG_SECURITY_APPARMOR_HASH=y
CONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
# CONFIG_SECURITY_APPARMOR_EXPORT_BINARY is not set
# CONFIG_SECURITY_APPARMOR_PARANOID_LOAD is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
# CONFIG_IMA_STAGING is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_ADD_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
CONFIG_DEFAULT_SECURITY_APPARMOR=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,apparmor,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_ASYNC_CORE=y
CONFIG_ASYNC_MEMCPY=y
CONFIG_ASYNC_XOR=y
CONFIG_ASYNC_PQ=y
CONFIG_ASYNC_RAID6_RECOV=y
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_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_KPP=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_ACOMP=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
CONFIG_CRYPTO_USER=y
# CONFIG_CRYPTO_SELFTESTS is not set
# CONFIG_CRYPTO_NULL is not set
CONFIG_CRYPTO_PCRYPT=y
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=y
CONFIG_CRYPTO_KRB5ENC=y
# CONFIG_CRYPTO_BENCHMARK is not set
CONFIG_CRYPTO_ENGINE=y
# end of Crypto core or helper

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

#
# Block ciphers
#
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ANUBIS=y
CONFIG_CRYPTO_ARIA=y
CONFIG_CRYPTO_BLOWFISH=y
CONFIG_CRYPTO_BLOWFISH_COMMON=y
CONFIG_CRYPTO_CAMELLIA=y
CONFIG_CRYPTO_CAST_COMMON=y
CONFIG_CRYPTO_CAST5=y
CONFIG_CRYPTO_CAST6=y
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_KHAZAD=y
CONFIG_CRYPTO_SEED=y
CONFIG_CRYPTO_SERPENT=y
CONFIG_CRYPTO_SM4=y
CONFIG_CRYPTO_SM4_GENERIC=y
CONFIG_CRYPTO_TEA=y
CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_TWOFISH_COMMON=y
# end of Block ciphers

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

#
# AEAD (authenticated encryption with associated data) ciphers
#
CONFIG_CRYPTO_AEGIS128=y
CONFIG_CRYPTO_CHACHA20POLY1305=y
CONFIG_CRYPTO_CCM=y
CONFIG_CRYPTO_GCM=y
CONFIG_CRYPTO_GENIV=y
CONFIG_CRYPTO_SEQIV=y
CONFIG_CRYPTO_ECHAINIV=y
CONFIG_CRYPTO_ESSIV=y
# 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=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3 is not set
CONFIG_CRYPTO_STREEBOG=y
CONFIG_CRYPTO_WP512=y
CONFIG_CRYPTO_XCBC=y
# 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=y
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_842=y
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=y
CONFIG_CRYPTO_ZSTD=y
# end of Compression

#
# Random number generation
#
# CONFIG_CRYPTO_DRBG is not set
# CONFIG_CRYPTO_JITTERENTROPY is not set
CONFIG_CRYPTO_KDF800108_CTR=y
# end of Random number generation

#
# Userspace interface (deprecated)
#
CONFIG_CRYPTO_USER_API=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
CONFIG_CRYPTO_USER_API_RNG=y
CONFIG_CRYPTO_USER_API_AEAD=y
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
# end of Userspace interface (deprecated)

#
# Accelerated Cryptographic Algorithms for CPU (x86)
#
CONFIG_CRYPTO_AES_NI_INTEL=y
CONFIG_CRYPTO_BLOWFISH_X86_64=y
CONFIG_CRYPTO_CAMELLIA_X86_64=y
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=y
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=y
CONFIG_CRYPTO_CAST5_AVX_X86_64=y
CONFIG_CRYPTO_CAST6_AVX_X86_64=y
CONFIG_CRYPTO_SERPENT_SSE2_X86_64=y
CONFIG_CRYPTO_SERPENT_AVX_X86_64=y
CONFIG_CRYPTO_SERPENT_AVX2_X86_64=y
CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64=y
CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64=y
CONFIG_CRYPTO_TWOFISH_X86_64=y
CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=y
CONFIG_CRYPTO_TWOFISH_AVX_X86_64=y
CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64=y
# 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=y
# end of Accelerated Cryptographic Algorithms for CPU (x86)

CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_DEV_PADLOCK=y
CONFIG_CRYPTO_DEV_PADLOCK_AES=y
CONFIG_CRYPTO_DEV_PADLOCK_SHA=y
# 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 is not set
# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set
CONFIG_CRYPTO_DEV_QAT=y
CONFIG_CRYPTO_DEV_QAT_DH895xCC=y
CONFIG_CRYPTO_DEV_QAT_C3XXX=y
CONFIG_CRYPTO_DEV_QAT_C62X=y
# 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=y
CONFIG_CRYPTO_DEV_QAT_C3XXXVF=y
CONFIG_CRYPTO_DEV_QAT_C62XVF=y
# CONFIG_CRYPTO_DEV_QAT_ERROR_INJECTION is not set
CONFIG_CRYPTO_DEV_VIRTIO=y
# 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=y
CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_WAIVE_AUTHATTRS_REJECTION_FOR_MLDSA is not set
CONFIG_PKCS7_TEST_KEY=y
CONFIG_SIGNED_PE_FILE_VERIFICATION=y
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set

#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
# CONFIG_MODULE_SIG_KEY_TYPE_RSA is not set
CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_44=y
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_65 is not set
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_87 is not set
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
CONFIG_SECONDARY_TRUSTED_KEYRING=y
# CONFIG_SECONDARY_TRUSTED_KEYRING_SIGNED_BY_BUILTIN 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_CRC64=y
CONFIG_CRC64_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_GF128MUL=y
CONFIG_CRYPTO_LIB_BLAKE2B=y
CONFIG_CRYPTO_LIB_BLAKE2S_ARCH=y
CONFIG_CRYPTO_LIB_CHACHA=y
CONFIG_CRYPTO_LIB_CHACHA_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_CURVE25519_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_LIB_GF128HASH=y
CONFIG_CRYPTO_LIB_GF128HASH_ARCH=y
CONFIG_CRYPTO_LIB_MD5=y
CONFIG_CRYPTO_LIB_MLDSA=y
CONFIG_CRYPTO_LIB_NH=y
CONFIG_CRYPTO_LIB_NH_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305=y
CONFIG_CRYPTO_LIB_POLY1305_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
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_CRYPTO_LIB_SHA3=y
CONFIG_XOR_BLOCKS=y
CONFIG_XOR_BLOCKS_ARCH=y
CONFIG_RAID6_PQ=y
CONFIG_RAID6_PQ_ARCH=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_COMPRESS=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_REED_SOLOMON=y
CONFIG_REED_SOLOMON_DEC8=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=y
CONFIG_TEXTSEARCH_BM=y
CONFIG_TEXTSEARCH_FSM=y
CONFIG_INTERVAL_TREE=y
CONFIG_INTERVAL_TREE_SPAN_ITER=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_CLOSURES=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_CMA=y
# CONFIG_DMA_NUMA_CMA is not set

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=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_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_MEMREGION=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 is not set
# CONFIG_DYNAMIC_DEBUG_CORE is not set
CONFIG_SYMBOLIC_ERRNAME=y
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_BUGVERBOSE_DETAILED is not set
# 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 is not set
CONFIG_HAVE_ARCH_KCSAN=y
CONFIG_HAVE_KCSAN_COMPILER=y
# CONFIG_KCSAN is not set
# 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 is not set
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_PAGE_OWNER is not set
# CONFIG_PAGE_TABLE_CHECK is not set
# CONFIG_PAGE_POISONING is not set
# 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 is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=16000
# CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF is not set
# CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN is not set
# CONFIG_PER_VMA_LOCK_STATS is not set
# CONFIG_DEBUG_OBJECTS is not set
# 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 is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_VM_PGTABLE is not set
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_VIRTUAL is not set
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_PER_CPU_MAPS is not set
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
# CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP is not set
# 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 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_SOFTLOCKUP_DETECTOR is not set
CONFIG_HAVE_HARDLOCKUP_DETECTOR_BUDDY=y
# CONFIG_HARDLOCKUP_DETECTOR is not set
CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_WQ_WATCHDOG is not set
# 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 is not set
# CONFIG_DEBUG_ATOMIC is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
CONFIG_LOCK_DEBUGGING_SUPPORT=y
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_RWSEMS is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# 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 is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)

CONFIG_NMI_CHECK_CPU=y
# CONFIG_DEBUG_IRQFLAGS is not set
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set

#
# Debug kernel data structures
#
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_PLIST=y
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CLOSURES is not set
# CONFIG_DEBUG_MAPLE_TREE is not set
# end of Debug kernel data structures

#
# RCU Debugging
#
# 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 is not set
# 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_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 is not set
# 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_ASYNC_RAID6_TEST 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_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_HMM 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 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 6108335662694400
ReproOpts
Show (117 bytes)
{"repeat":true,"procs":1,"slowdown":1,"sandbox":"","sandbox_arg":0,"leak":true,"close_fds":false,"callcomments":true}
ReproSyzID 5220892340125696
SyzkallerCommit 5d63f80b763910b40ae04a96c13dc75d621bea67
TargetArch amd64
TargetOS linux

Outputs:
DenialOfService βœ…
Exploitable ❌
FilesystemTrigger ❌
NetworkTrigger ❌
PeripheralTrigger ❌
RemoteTrigger ❌
Unprivileged βœ…
UserNamespace βœ…
VMGuestTrigger ❌
VMHostTrigger ❌
Explanation
Based on the analysis of the provided bug report and kernel source code, here is
the assessment of the vulnerability:

### Bug Mechanism
The bug is a memory leak and kworker hang in `io_uring` caused by improper
handling of the `IORING_URING_CMD_MULTISHOT` flag.

When a user submits an `IORING_OP_URING_CMD` request with the
`IORING_URING_CMD_MULTISHOT` flag set (and `IOSQE_BUFFER_SELECT` to pass initial
validation in `io_uring_cmd_prep`), `io_uring_cmd()` invokes the target file's
`uring_cmd` callback.
If the callback returns `>= 0` (e.g., `0` for success), `io_uring_cmd()` assumes
that the driver supports multishot and will asynchronously complete the request
multiple times. Consequently, it returns `IOU_ISSUE_SKIP_COMPLETE` to the core
`io_uring` issue path, which skips completing or freeing the request.

However, if the target driver does **not** support multishot (such as
`ublk_ctrl_uring_cmd` or even `uring_cmd_null` for `/dev/null`), it simply
returns `0` upon successful execution of the command and never calls
`io_uring_cmd_done()`. As a result, the `io_kiocb` request and its associated
`async_data` are completely orphaned and leaked.

Furthermore, because the leaked request holds a reference to the `io_ring_ctx`
(`ctx->refs`), the ring context can never be fully destroyed. When the
`io_uring` instance is closed, the cleanup work `io_ring_exit_work` is queued to
a system kworker. This work loops indefinitely waiting for `ctx->refs` to drop
to 0, permanently hanging the kworker thread and leaking the entire
`io_ring_ctx`.

### Security Impact

* **Exploitable: False**
  The bug is a pure memory leak and thread hang. The orphaned requests are
  removed from all lists and are never accessed again by the kernel, meaning
  there is no use-after-free, memory corruption, or information leak primitive.
  It cannot be used for privilege escalation or arbitrary code execution.

* **Denial of Service: True**
  An attacker can repeatedly trigger this bug to leak kernel memory (leading to
  Out-Of-Memory conditions). More critically, by creating multiple `io_uring`
  instances and triggering the leak in each before closing them, the attacker
  can exhaust the `iou_wq` unbound workqueue (which has a max active limit,
  typically 64). This permanently hangs the kworkers, preventing any other
  `io_uring` instances on the system from being cleaned up, resulting in a
  severe system-wide Denial of Service.

* **Accessible From Unprivileged Processes: True**
  The vulnerability can be triggered by any unprivileged user. While the
  syzkaller reproducer uses `ublk` (which has unprivileged commands like
  `UBLK_U_CMD_GET_FEATURES`), the bug is fundamentally in `io_uring`. An
  unprivileged user can simply open `/dev/null` (which uses `uring_cmd_null`
  that always returns `0`) and submit a multishot `uring_cmd` against it to
  trigger the exact same leak and kworker hang.

* **Accessible From User Namespaces: True**
  Since it is accessible to completely unprivileged processes in the initial
  namespace, it is also accessible within user namespaces.

* **Other Triggers (Network, Remote, Peripheral, Filesystem, VM): False**
  The bug is triggered via local syscalls (`io_uring_enter`) and does not
  require any specific external input, network traffic, malicious filesystems,
  or peripheral devices.

Crash report:
BUG: memory leak
unreferenced object 0xffff888112726000 (size 248):
  comm "syz.0.17", pid 5956, jiffies 4294942148
  hex dump (first 32 bytes):
    80 5d 3a 0e 81 88 ff ff d0 03 59 15 81 88 ff ff  .]:.......Y.....
    04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00  .u .............
  backtrace (crc e2966ca0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    kmem_cache_alloc_bulk_noprof+0x272/0x3f0 mm/slub.c:7435
    __io_alloc_req_refill+0x4a/0x150 io_uring/io_uring.c:988
    io_alloc_req io_uring/io_uring.h:536 [inline]
    io_submit_sqes.cold+0x16e/0x20b io_uring/io_uring.c:2046
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff8881155903c0 (size 192):
  comm "syz.0.17", pid 5956, jiffies 4294942148
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    2e 20 00 00 03 00 00 00 04 75 20 c0 00 00 00 00  . .......u .....
  backtrace (crc db88fe21):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __do_kmalloc_node mm/slub.c:5333 [inline]
    __kmalloc_noprof+0x3bf/0x550 mm/slub.c:5359
    _kmalloc_noprof include/linux/slab.h:992 [inline]
    io_cache_alloc_new+0x20/0x80 io_uring/alloc_cache.c:40
    io_cache_alloc io_uring/alloc_cache.h:61 [inline]
    io_uring_alloc_async_data io_uring/io_uring.h:355 [inline]
    io_uring_cmd_prep+0x157/0x1f0 io_uring/uring_cmd.c:208
    io_init_req io_uring/io_uring.c:1842 [inline]
    io_submit_sqe io_uring/io_uring.c:1889 [inline]
    io_submit_sqes+0x446/0xd00 io_uring/io_uring.c:2057
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888112726100 (size 248):
  comm "syz.0.18", pid 5972, jiffies 4294942449
  hex dump (first 32 bytes):
    80 d7 55 02 81 88 ff ff d0 a0 50 15 81 88 ff ff  ..U.......P.....
    04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00  .u .............
  backtrace (crc dcaddc4c):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    kmem_cache_alloc_bulk_noprof+0x272/0x3f0 mm/slub.c:7435
    __io_alloc_req_refill+0x4a/0x150 io_uring/io_uring.c:988
    io_alloc_req io_uring/io_uring.h:536 [inline]
    io_submit_sqes.cold+0x16e/0x20b io_uring/io_uring.c:2046
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/08/09 11:25 flow assessment-security
59m Results:
map[DenialOfService:true Explanation:Based on the analysis of the provided bug report and kernel source code, here is
the assessment of the vulnerability:

### Bug Mechanism
The bug is a memory leak and kworker hang in `io_uring` caused by improper
handling of the `IORING_URING_CMD_MULTISHOT` flag.

When a user submits an `IORING_OP_URING_CMD` request with the
`IORING_URING_CMD_MULTISHOT` flag set (and `IOSQE_BUFFER_SELECT` to pass initial
validation in `io_uring_cmd_prep`), `io_uring_cmd()` invokes the target file's
`uring_cmd` callback.
If the callback returns `>= 0` (e.g., `0` for success), `io_uring_cmd()` assumes
that the driver supports multishot and will asynchronously complete the request
multiple times. Consequently, it returns `IOU_ISSUE_SKIP_COMPLETE` to the core
`io_uring` issue path, which skips completing or freeing the request.

However, if the target driver does **not** support multishot (such as
`ublk_ctrl_uring_cmd` or even `uring_cmd_null` for `/dev/null`), it simply
returns `0` upon successful execution of the command and never calls
`io_uring_cmd_done()`. As a result, the `io_kiocb` request and its associated
`async_data` are completely orphaned and leaked.

Furthermore, because the leaked request holds a reference to the `io_ring_ctx`
(`ctx->refs`), the ring context can never be fully destroyed. When the
`io_uring` instance is closed, the cleanup work `io_ring_exit_work` is queued to
a system kworker. This work loops indefinitely waiting for `ctx->refs` to drop
to 0, permanently hanging the kworker thread and leaking the entire
`io_ring_ctx`.

### Security Impact

* **Exploitable: False**
  The bug is a pure memory leak and thread hang. The orphaned requests are
  removed from all lists and are never accessed again by the kernel, meaning
  there is no use-after-free, memory corruption, or information leak primitive.
  It cannot be used for privilege escalation or arbitrary code execution.

* **Denial of Service: True**
  An attacker can repeatedly trigger this bug to leak kernel memory (leading to
  Out-Of-Memory conditions). More critically, by creating multiple `io_uring`
  instances and triggering the leak in each before closing them, the attacker
  can exhaust the `iou_wq` unbound workqueue (which has a max active limit,
  typically 64). This permanently hangs the kworkers, preventing any other
  `io_uring` instances on the system from being cleaned up, resulting in a
  severe system-wide Denial of Service.

* **Accessible From Unprivileged Processes: True**
  The vulnerability can be triggered by any unprivileged user. While the
  syzkaller reproducer uses `ublk` (which has unprivileged commands like
  `UBLK_U_CMD_GET_FEATURES`), the bug is fundamentally in `io_uring`. An
  unprivileged user can simply open `/dev/null` (which uses `uring_cmd_null`
  that always returns `0`) and submit a multishot `uring_cmd` against it to
  trigger the exact same leak and kworker hang.

* **Accessible From User Namespaces: True**
  Since it is accessible to completely unprivileged processes in the initial
  namespace, it is also accessible within user namespaces.

* **Other Triggers (Network, Remote, Peripheral, Filesystem, VM): False**
  The bug is triggered via local syscalls (`io_uring_enter`) and does not
  require any specific external input, network traffic, malicious filesystems,
  or peripheral devices. Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]

1/1 2026/08/09 11:25 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 <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/fs.h>
#include <linux/types.h>

#define SIZEOF_IO_URING_SQE 64
#define SIZEOF_IO_URING_CQE 16

#define IORING_SETUP_SQE128 (1U << 10)
#define IORING_SETUP_CQE32 (1U << 11)

struct io_sqring_offsets {
	uint32_t head;
	uint32_t tail;
	uint32_t ring_mask;
	uint32_t ring_entries;
	uint32_t flags;
	uint32_t dropped;
	uint32_t array;
	uint32_t resv1;
	uint64_t user_addr;
};

struct io_cqring_offsets {
	uint32_t head;
	uint32_t tail;
	uint32_t ring_mask;
	uint32_t ring_entries;
	uint32_t overflow;
	uint32_t cqes;
	uint32_t flags;
	uint32_t resv1;
	uint64_t user_addr;
};

struct io_uring_params {
	uint32_t sq_entries;
	uint32_t cq_entries;
	uint32_t flags;
	uint32_t sq_thread_cpu;
	uint32_t sq_thread_idle;
	uint32_t features;
	uint32_t resv[4];
	struct io_sqring_offsets sq_off;
	struct io_cqring_offsets cq_off;
};

static long io_uring_sqe_size(struct io_uring_params* params)
{
	return SIZEOF_IO_URING_SQE << !!(params->flags & IORING_SETUP_SQE128);
}

static long io_uring_cqe_size(struct io_uring_params* params)
{
	return SIZEOF_IO_URING_CQE << !!(params->flags & IORING_SETUP_CQE32);
}

#define IORING_OFF_SQ_RING 0ULL
#define IORING_OFF_SQES 0x10000000ULL
static long syz_io_uring_setup(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4)
{
	uint32_t entries = (uint32_t)a0;
	struct io_uring_params* setup_params = (struct io_uring_params*)a1;
	void** ring_params_ptr_out = (void**)a2;
	void** ring_ptr_out = (void**)a3;
	void** sqes_ptr_out = (void**)a4;
	uint32_t fd_io_uring = syscall(__NR_io_uring_setup, entries, setup_params);
	*ring_params_ptr_out = (void*)setup_params;
	uint32_t sq_ring_sz = setup_params->sq_off.array + setup_params->sq_entries * sizeof(uint32_t);
	uint32_t cq_ring_sz = setup_params->cq_off.cqes + setup_params->cq_entries * io_uring_cqe_size(setup_params);
	uint32_t ring_sz = sq_ring_sz > cq_ring_sz ? sq_ring_sz : cq_ring_sz;
	*ring_ptr_out = mmap(0, ring_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd_io_uring, IORING_OFF_SQ_RING);
	uint32_t sqes_sz = setup_params->sq_entries * io_uring_sqe_size(setup_params);
	*sqes_ptr_out = mmap(0, sqes_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd_io_uring, IORING_OFF_SQES);
	uint32_t* array = (uint32_t*)((uintptr_t)*ring_ptr_out + setup_params->sq_off.array);
	for (uint32_t index = 0; index < setup_params->sq_entries; index++)
		array[index] = index;
	return fd_io_uring;
}

static long syz_io_uring_submit(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	struct io_uring_params* params = (struct io_uring_params*)a0;
	char* ring_ptr = (char*)a1;
	char* sqes_ptr = (char*)a2;
	char* sqe = (char*)a3;
	uint32_t sq_ring_mask = *(uint32_t*)(ring_ptr + params->sq_off.ring_mask);
	uint32_t* sq_tail_ptr = (uint32_t*)(ring_ptr + params->sq_off.tail);
	uint32_t sq_tail = *sq_tail_ptr & sq_ring_mask;
	uint32_t sqe_size = io_uring_sqe_size(params);
	char* sqe_dest = sqes_ptr + sq_tail * sqe_size;
	memcpy(sqe_dest, sqe, sqe_size);
	uint32_t sq_tail_next = *sq_tail_ptr + 1;
	__atomic_store_n(sq_tail_ptr, sq_tail_next, __ATOMIC_RELEASE);
	return 0;
}

static long syz_ublk_setup_io_uring(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4)
{
	struct io_uring_params* params = (struct io_uring_params*)a1;
	params->flags |= IORING_SETUP_SQE128 | IORING_SETUP_CQE32;
	return syz_io_uring_setup(a0, (long)params, a2, a3, a4);
}

#define UBLK_F_USER_COPY (1UL << 7)

#define UBLK_IO_RES_OK 0
#define UBLK_IO_RES_NEED_GET_DATA 1

#define UBLK_IO_COMMIT_AND_FETCH_REQ 0x21
#define UBLK_IO_NEED_GET_DATA 0x22

#define UBLK_U_IO_COMMIT_AND_FETCH_REQ _IOWR('u', UBLK_IO_COMMIT_AND_FETCH_REQ, struct ublksrv_io_cmd)
#define UBLK_U_IO_NEED_GET_DATA _IOWR('u', UBLK_IO_NEED_GET_DATA, struct ublksrv_io_cmd)

struct ublksrv_ctrl_cmd {
	__u32 dev_id;
	__u16 queue_id;
	__u16 len;
	__u64 addr;
	__u64 data[1];
	__u16 dev_path_len;
	__u16 pad;
	__u32 reserved;
};

struct ublksrv_ctrl_dev_info {
	__u16 nr_hw_queues;
	__u16 queue_depth;
	__u16 state;
	__u16 pad0;
	__u32 max_io_buf_bytes;
	__u32 dev_id;
	__s32 ublksrv_pid;
	__u32 pad1;
	__u64 flags;
	__u64 ublksrv_flags;
	__u32 owner_uid;
	__u32 owner_gid;
	__u64 reserved1;
	__u64 reserved2;
};

struct ublksrv_io_desc {
	__u32 op_flags;
	union {
		__u32 nr_sectors;
		__u32 nr_zones;
	};
	__u64 start_sector;
	__u64 addr;
};

struct ublksrv_io_cmd {
	__u16 q_id;
	__u16 tag;
	__s32 result;
	union {
		__u64 addr;
		__u64 zone_append_lba;
	};
};

struct io_uring_sqe {
	__u8 opcode;
	__u8 flags;
	__u16 ioprio;
	__s32 fd;
	union {
		__u64 off;
		__u64 addr2;
		struct {
			__u32 cmd_op;
			__u32 __pad1;
		};
	};
	union {
		__u64 addr;
		__u64 splice_off_in;
		struct {
			__u32 level;
			__u32 optname;
		};
	};
	__u32 len;
	union {
		__kernel_rwf_t rw_flags;
		__u32 fsync_flags;
		__u16 poll_events;
		__u32 poll32_events;
		__u32 sync_range_flags;
		__u32 msg_flags;
		__u32 timeout_flags;
		__u32 accept_flags;
		__u32 cancel_flags;
		__u32 open_flags;
		__u32 statx_flags;
		__u32 fadvise_advice;
		__u32 splice_flags;
		__u32 rename_flags;
		__u32 unlink_flags;
		__u32 hardlink_flags;
		__u32 xattr_flags;
		__u32 msg_ring_flags;
		__u32 uring_cmd_flags;
		__u32 waitid_flags;
		__u32 futex_flags;
		__u32 install_fd_flags;
		__u32 nop_flags;
		__u32 pipe_flags;
	};
	__u64 user_data;
	union {
		__u16 buf_index;
		__u16 buf_group;
	} __attribute__((packed));
	__u16 personality;
	union {
		__s32 splice_fd_in;
		__u32 file_index;
		__u32 zcrx_ifq_idx;
		__u32 optlen;
		struct {
			__u16 addr_len;
			__u16 __pad3[1];
		};
	};
	union {
		struct {
			__u64 addr3;
			__u64 __pad2[1];
		};
		struct {
			__u64 attr_ptr;
			__u64 attr_type_mask;
		};
		__u64 optval;
		__u8 cmd[0];
	};
};

static long syz_ublk_add_dev(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5)
{
	__u32 ring_fd = (__u32)a0;
	struct io_uring_params* params = (struct io_uring_params*)a1;
	char* ring_ptr = (char*)a2;
	char* sqes_ptr = (char*)a3;
	struct io_uring_sqe* sqe = (struct io_uring_sqe*)a4;
	void** dev_info_ptr_out = (void**)a5;
	struct ublksrv_ctrl_cmd* cmd = (struct ublksrv_ctrl_cmd*)(sqe->cmd);
	struct ublksrv_ctrl_dev_info* dev_info = (struct ublksrv_ctrl_dev_info*)(unsigned long)(cmd->addr);
	dev_info->flags |= UBLK_F_USER_COPY;
	int ret = syz_io_uring_submit((long)params, (long)ring_ptr, (long)sqes_ptr, (long)sqe);
	if (ret < 0)
		return (long)ret;
	syscall(__NR_io_uring_enter, ring_fd, 1, 1, 1, NULL, _NSIG / 8);
	*dev_info_ptr_out = (void*)dev_info;
	return dev_info->dev_id;
}

uint64_t r[5] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0, 0x0};

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)) {}
//  openat$ublk_ctrl arguments: [
//    fd: const = 0xffffffffffffff9c (8 bytes)
//    file: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 75 62 6c 6b 2d 63 6f 6e 74 72 6f 6c 00} (length 0x12)
//    }
//    flags: const = 0x2 (4 bytes)
//    mode: const = 0x0 (2 bytes)
//  ]
//  returns fd_ublk_ctrl
memcpy((void*)0x200000000000, "/dev/ublk-control\000", 18);
	res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000000ul, /*flags=*/2, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  syz_ublk_setup_io_uring arguments: [
//    entries: int32 = 0x1d (4 bytes)
//    params: ptr[inout, io_uring_params] {
//      io_uring_params {
//        sq_entries: int32 = 0x0 (4 bytes)
//        cq_entries: int32 = 0x0 (4 bytes)
//        flags: io_uring_setup_flags = 0x0 (4 bytes)
//        sq_thread_cpu: int32 = 0x0 (4 bytes)
//        sq_thread_idle: int32 = 0x0 (4 bytes)
//        features: int32 = 0x0 (4 bytes)
//        wq_fd: fd_io_uring (resource)
//        resv: buffer: {00 00 00 00 00 00 00 00 00 00 00 00} (length 0xc)
//        sq_off: io_sqring_offsets {
//          head: int32 = 0x0 (4 bytes)
//          tail: int32 = 0x0 (4 bytes)
//          ring_mask: int32 = 0x0 (4 bytes)
//          ring_entries: int32 = 0x0 (4 bytes)
//          flags: int32 = 0x0 (4 bytes)
//          dropped: int32 = 0x0 (4 bytes)
//          array: int32 = 0x0 (4 bytes)
//          resv1: int32 = 0x0 (4 bytes)
//          user_addr: int64 = 0x0 (8 bytes)
//        }
//        cq_off: io_cqring_offsets {
//          head: int32 = 0x0 (4 bytes)
//          tail: int32 = 0x0 (4 bytes)
//          ring_mask: int32 = 0x0 (4 bytes)
//          ring_entries: int32 = 0x0 (4 bytes)
//          overflow: int32 = 0x0 (4 bytes)
//          cqes: int32 = 0x0 (4 bytes)
//          flags: int32 = 0x0 (4 bytes)
//          resv1: int32 = 0x0 (4 bytes)
//          user_addr: int64 = 0x0 (8 bytes)
//        }
//      }
//    }
//    ring_params_ptr: ptr[out, ring_params_ptr] {
//      ring_params_ptr (resource)
//    }
//    ring_ptr: ptr[out, ring_ptr] {
//      ring_ptr (resource)
//    }
//    sqes_ptr: ptr[out, sqes_ptr] {
//      sqes_ptr (resource)
//    }
//  ]
//  returns fd_io_uring
*(uint32_t*)0x200000000044 = 0;
*(uint32_t*)0x200000000048 = 0;
*(uint32_t*)0x20000000004c = 0;
*(uint32_t*)0x200000000050 = 0;
*(uint32_t*)0x200000000058 = -1;
memset((void*)0x20000000005c, 0, 12);
	res = -1;
res = syz_ublk_setup_io_uring(/*entries=*/0x1d, /*params=*/0x200000000040, /*ring_params_ptr=*/0x2000000000c0, /*ring_ptr=*/0x200000000100, /*sqes_ptr=*/0x200000000140);
	if (res != -1) {
		r[1] = res;
r[2] = *(uint64_t*)0x2000000000c0;
r[3] = *(uint64_t*)0x200000000100;
r[4] = *(uint64_t*)0x200000000140;
	}
//  syz_ublk_add_dev arguments: [
//    fd_io_uring: fd_io_uring (resource)
//    ring_params_ptr: ring_params_ptr (resource)
//    ring_ptr: ring_ptr (resource)
//    sqes_ptr: sqes_ptr (resource)
//    sqe: ptr[inout, io_uring_sqe_uring[fd_ublk_ctrl, const[UBLK_U_CMD_ADD_DEV, int32], ublk_ctrl_cmd$add_dev, int64]] {
//      io_uring_sqe_uring[fd_ublk_ctrl, const[UBLK_U_CMD_ADD_DEV, int32], ublk_ctrl_cmd$add_dev, int64] {
//        opcode: const = 0x2e (1 bytes)
//        flags: iosqe_flags = 0x20 (1 bytes)
//        ioprio: const = 0x0 (2 bytes)
//        fd: fd_ublk_ctrl (resource)
//        cmd_op: const = 0xc0207504 (4 bytes)
//        pad1: const = 0x0 (4 bytes)
//        addr: const = 0x0 (8 bytes)
//        len: const = 0x0 (4 bytes)
//        uring_flags: uring_cmd_flags = 0x2 (4 bytes)
//        user_data: int64 = 0x3 (8 bytes)
//        buf_index_unused: const = 0x0 (2 bytes)
//        ioring_personality_id: ioring_personality_id (resource)
//        pad_unused: buffer: {00 00 00 00} (length 0x4)
//        cmd: ublk_ctrl_cmd[const[-1, int32], len[addr, int16], ptr64[in, ublk_ctrl_dev_info_new], const[0, int64]] {
//          dev_id: const = 0xffffffff (4 bytes)
//          queue_id: const = 0xffff (2 bytes)
//          len: len = 0x40 (2 bytes)
//          addr: ptr[in, ublk_ctrl_dev_info_new] {
//            union ublk_ctrl_dev_info_new {
//              new_dev: ublk_ctrl_dev_info[const[-1, int32]] {
//                nr_hw_queues: int16 = 0x2 (2 bytes)
//                queue_depth: int16 = 0xf4 (2 bytes)
//                state: const = 0x0 (2 bytes)
//                pad0: const = 0x0 (2 bytes)
//                max_io_buf_bytes: const = 0x1000 (4 bytes)
//                dev_id: const = 0xffffffff (4 bytes)
//                ublk_pid: pid (resource)
//                pad1: const = 0x0 (4 bytes)
//                flags: ublk_f_flags = 0x2 (8 bytes)
//                ublk_flags: const = 0x0 (8 bytes)
//                owner_uid: const = 0x0 (4 bytes)
//                owner_gid: const = 0x0 (4 bytes)
//                reserved1: const = 0x0 (8 bytes)
//                reserved2: const = 0x0 (8 bytes)
//              }
//            }
//          }
//          data: const = 0x0 (8 bytes)
//          dev_path_len: const = 0x0 (2 bytes)
//          pad: const = 0x0 (2 bytes)
//          reserved: const = 0x0 (4 bytes)
//          pad2_unused: buffer: {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 0x30)
//        }
//      }
//    }
//    dev_info_ptr: nil
//  ]
//  returns ublk_dev_id
*(uint8_t*)0x200000001ec0 = 0x2e;
*(uint8_t*)0x200000001ec1 = 0x20;
*(uint16_t*)0x200000001ec2 = 0;
*(uint32_t*)0x200000001ec4 = r[0];
*(uint32_t*)0x200000001ec8 = 0xc0207504;
*(uint32_t*)0x200000001ecc = 0;
*(uint64_t*)0x200000001ed0 = 0;
*(uint32_t*)0x200000001ed8 = 0;
*(uint32_t*)0x200000001edc = 2;
*(uint64_t*)0x200000001ee0 = 3;
*(uint16_t*)0x200000001ee8 = 0;
*(uint16_t*)0x200000001eea = 0;
memset((void*)0x200000001eec, 0, 4);
*(uint32_t*)0x200000001ef0 = -1;
*(uint16_t*)0x200000001ef4 = -1;
*(uint16_t*)0x200000001ef6 = 0x40;
*(uint64_t*)0x200000001ef8 = 0x200000001e80;
*(uint16_t*)0x200000001e80 = 2;
*(uint16_t*)0x200000001e82 = 0xf4;
*(uint16_t*)0x200000001e84 = 0;
*(uint16_t*)0x200000001e86 = 0;
*(uint32_t*)0x200000001e88 = 0x1000;
*(uint32_t*)0x200000001e8c = -1;
*(uint32_t*)0x200000001e90 = 0;
*(uint32_t*)0x200000001e94 = 0;
*(uint64_t*)0x200000001e98 = 2;
*(uint64_t*)0x200000001ea0 = 0;
*(uint32_t*)0x200000001ea8 = 0;
*(uint32_t*)0x200000001eac = 0;
*(uint64_t*)0x200000001eb0 = 0;
*(uint64_t*)0x200000001eb8 = 0;
*(uint64_t*)0x200000001f00 = 0;
*(uint16_t*)0x200000001f08 = 0;
*(uint16_t*)0x200000001f0a = 0;
*(uint32_t*)0x200000001f0c = 0;
memset((void*)0x200000001f10, 0, 48);
syz_ublk_add_dev(/*fd_io_uring=*/r[1], /*ring_params_ptr=*/r[2], /*ring_ptr=*/r[3], /*sqes_ptr=*/r[4], /*sqe=*/0x200000001ec0, /*dev_info_ptr=*/0);
	return 0;
}
]

2/1 2026/08/09 11:25 action kernel-checkouter
0m Results:
map[KernelSrc:/app/workdir/cache/src/528d11b966b9f096fd48ddcf91b95d5d98ebf2fb]

3/1 2026/08/09 11:25 action kernel-builder
20m Results:
map[KernelObj:/app/workdir/cache/build/429d2542f6fb298afb58c3a925fec565339e56d6]

4/1 2026/08/09 11:46 action codesearch-prepare
15m Results:
map[Index:codesearch-index]

5/1 2026/08/09 12:01 agent expert
23m Model:
best-expensive

Results:
map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]

Instruction:
You are an experienced Linux kernel security engineer. Your task is to analyze given kernel bug report
and determine its security impact based on the following dimensions.

Use the provided tools to examine the source code, check for capability checks (e.g., capable(), ns_capable()),
and understand the nature of the bug. Analyze the given kernel build and configuration.
You can check the kernel config by grepping ".config" file; you can check kernel cmdline by grepping
".config" file for "CONFIG_CMDLINE=". Assume sysctl parameters have default values.
But analyze for the corresponding production build w/o debugging tools enabled (like KASAN, KMSAN, UBSAN).

Try different strategies when analyzing the bug:
 - think of ways in which the vulnerable code is unreachable
 - or the other way around: try to come up with different ideas of how an unprivileged user can reach the bug
If still unsure err on the side of the bug being non-exploitable/not-accessible.
In the final reply, provide a reasoning for your assessment.

Analysis dimensions:

* Exploitable:
Determine if the bug can result in memory corruption, elevated privileges, or an information leak.
Memory safety issues are almost always exploitable (KASAN or UBSAN reports for use-after-free, out-of-bounds;
refcounting issues, corrupted lists, etc). When kernel is crashing on a completely wild pointer access
(e.g. user-space address, or non-canonical address, but not on NULL or address corresponding to KASAN shadow
for NULL address), including both data accesses and control transfers, that also usually implies possibility
of exploitation. Such reports usually say "unable to handle kernel paging request".
Uses of uninitialized values detected by KMSAN may be exploitable b/c attacker frequently can affect uninit
values with spraying techniques. However, for these exploitability depends on how exactly the uninit value
is used in the code, and what it affects.
Information leaks are exploitable on their own and should be classified as such. A bug that copies kernel
memory contents to userspace (e.g. an out-of-bounds read whose result is returned to the caller, or
uninitialized stack/heap bytes written to a user buffer) is exploitable: it can reveal kernel pointer
values and defeat KASLR, expose sensitive data such as cryptographic keys or other processes' memory, and
serves as a necessary building block in most modern kernel privilege-escalation exploit chains. Do not classify
an information leak as non-exploitable solely because it does not directly cause a memory write or control-flow
hijack; the leak itself is the exploit primitive.

Think of what happens after the bug is triggered. Some bugs cause kernel panic and halt execution,
they are harder to exploit. For example, BUG reports halts the kernel. However, WARNING reports don't halt
execution in production builds. Debug bug detection tools (like KASAN, KMSAN, KCSAN, UBSAN) are also not enabled
in production builds, so attacker can freely exploit these bugs w/o being detected by these tools.
If you see an integer overflow, think how the overflowed value used later (if it's used as allocation size,
or an array index). If you see an out-of-bounds read, think if it's followed by an out-of-bounds write as well.
Some KCSAN data-races may be exploitable by skilled attackers as well. Think what data structures got corrupted
as the result of data races and how. However, note that kernel has lots of "benign" data races that don't lead
to any runtime misbehavior at all.

* Denial Of Service:
Determine if the bug can result in denial-of-service. Most bugs can, since they cause system crash,
hangs, deadlocks, or resource leaks. This is mostly applicable to WARNING bugs that won't cause system crash
in production. For these think what will be consequences of the violation of the kernel assumptions flagged
by the WARNING. In some cases the unexpected condition is also properly handled by the normal control flow
(e.g. with "if (WARN_ON(...))"), these won't cause denial-of-service. If the condition is not handled,
then it may or may not cause denial-of-service.

* Accessible From Unprivileged Processes:
Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities
(like CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON) or access to device nodes restricted to root.
Assume that unprivileged_bpf_disabled=1, that is eBPF loading is not accessible. However, cBPF (classical BPF)
is still accessible to non-root processes.
Assume that user namespaces are not accessible, that is, the process cannot get the mentioned capabilities even
within a new user namespace (checked by ns_capable() function in the kernel sources).

* Accessible From User Namespaces:
Determine if the bug can be reached within a user-namespace where the process has all capabilities
(including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON). Such capabilities are checked with ns_capable()
function in the kernel sources.

* VM Guest Trigger:
Determine if the bug can be triggered from the context of a typical KVM guest (e.g., set up by a QEMU VMM).
Consider accesses to standard Linux host paravirtualized features (virtio-blk, virtio-net, etc.),
and handling of VM exits in the KVM code.

* VM Host Trigger in The Confidential Computing Context:
Determine if the bug can be triggered in a confidential computing guest kernel from the context of a KVM host.
Consider access to standard Linux guest paravirtualized features (virtio-blk, virtio-net, etc.).

* Ethernet Network Trigger:
Determine if the bug can be triggered by processing ingress network Ethernet traffic, either directly (network stack)
or via drivers exposed to network data.

* Other Remote Trigger:
Determine if the bug can be triggered by processing remote traffic other than Ethernet (Wifi, Bluetooth, NFC, etc).

* Peripheral Trigger:
Determine if the bug can be triggered via an untrusted peripheral device that can be physically plugged
into a system, such as a USB device or a niche hardware driver handling external hardware inputs.
This is particularly important for mobile and desktop environments where users can plug in unknown devices.

* Malicious Filesystem Trigger:
Determine if the bug can be triggered by the kernel mounting and parsing a malicious filesystem image.
This is highly critical for Desktop and Mobile environments where external media or downloaded images
might be auto-mounted.

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.


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 kernel bug report is:

BUG: memory leak
unreferenced object 0xffff888112726000 (size 248):
  comm "syz.0.17", pid 5956, jiffies 4294942148
  hex dump (first 32 bytes):
    80 5d 3a 0e 81 88 ff ff d0 03 59 15 81 88 ff ff  .]:.......Y.....
    04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00  .u .............
  backtrace (crc e2966ca0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    kmem_cache_alloc_bulk_noprof+0x272/0x3f0 mm/slub.c:7435
    __io_alloc_req_refill+0x4a/0x150 io_uring/io_uring.c:988
    io_alloc_req io_uring/io_uring.h:536 [inline]
    io_submit_sqes.cold+0x16e/0x20b io_uring/io_uring.c:2046
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff8881155903c0 (size 192):
  comm "syz.0.17", pid 5956, jiffies 4294942148
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    2e 20 00 00 03 00 00 00 04 75 20 c0 00 00 00 00  . .......u .....
  backtrace (crc db88fe21):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __do_kmalloc_node mm/slub.c:5333 [inline]
    __kmalloc_noprof+0x3bf/0x550 mm/slub.c:5359
    _kmalloc_noprof include/linux/slab.h:992 [inline]
    io_cache_alloc_new+0x20/0x80 io_uring/alloc_cache.c:40
    io_cache_alloc io_uring/alloc_cache.h:61 [inline]
    io_uring_alloc_async_data io_uring/io_uring.h:355 [inline]
    io_uring_cmd_prep+0x157/0x1f0 io_uring/uring_cmd.c:208
    io_init_req io_uring/io_uring.c:1842 [inline]
    io_submit_sqe io_uring/io_uring.c:1889 [inline]
    io_submit_sqes+0x446/0xd00 io_uring/io_uring.c:2057
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888112726100 (size 248):
  comm "syz.0.18", pid 5972, jiffies 4294942449
  hex dump (first 32 bytes):
    80 d7 55 02 81 88 ff ff d0 a0 50 15 81 88 ff ff  ..U.......P.....
    04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00  .u .............
  backtrace (crc dcaddc4c):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    kmem_cache_alloc_bulk_noprof+0x272/0x3f0 mm/slub.c:7435
    __io_alloc_req_refill+0x4a/0x150 io_uring/io_uring.c:988
    io_alloc_req io_uring/io_uring.h:536 [inline]
    io_submit_sqes.cold+0x16e/0x20b io_uring/io_uring.c:2046
    __do_sys_io_uring_enter+0x56d/0xd60 io_uring/io_uring.c:2646
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF




It is reproducible with the followint program.
Keep in mind that it may lack the precise threading, sandboxing, and some arguments of a working reproducer.
But it should give an idea of the involved syscalls.

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

#define _GNU_SOURCE 

#include <endian.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/fs.h>
#include <linux/types.h>

#define SIZEOF_IO_URING_SQE 64
#define SIZEOF_IO_URING_CQE 16

#define IORING_SETUP_SQE128 (1U << 10)
#define IORING_SETUP_CQE32 (1U << 11)

struct io_sqring_offsets {
	uint32_t head;
	uint32_t tail;
	uint32_t ring_mask;
	uint32_t ring_entries;
	uint32_t flags;
	uint32_t dropped;
	uint32_t array;
	uint32_t resv1;
	uint64_t user_addr;
};

struct io_cqring_offsets {
	uint32_t head;
	uint32_t tail;
	uint32_t ring_mask;
	uint32_t ring_entries;
	uint32_t overflow;
	uint32_t cqes;
	uint32_t flags;
	uint32_t resv1;
	uint64_t user_addr;
};

struct io_uring_params {
	uint32_t sq_entries;
	uint32_t cq_entries;
	uint32_t flags;
	uint32_t sq_thread_cpu;
	uint32_t sq_thread_idle;
	uint32_t features;
	uint32_t resv[4];
	struct io_sqring_offsets sq_off;
	struct io_cqring_offsets cq_off;
};

static long io_uring_sqe_size(struct io_uring_params* params)
{
	return SIZEOF_IO_URING_SQE << !!(params->flags & IORING_SETUP_SQE128);
}

static long io_uring_cqe_size(struct io_uring_params* params)
{
	return SIZEOF_IO_URING_CQE << !!(params->flags & IORING_SETUP_CQE32);
}

#define IORING_OFF_SQ_RING 0ULL
#define IORING_OFF_SQES 0x10000000ULL
static long syz_io_uring_setup(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4)
{
	uint32_t entries = (uint32_t)a0;
	struct io_uring_params* setup_params = (struct io_uring_params*)a1;
	void** ring_params_ptr_out = (void**)a2;
	void** ring_ptr_out = (void**)a3;
	void** sqes_ptr_out = (void**)a4;
	uint32_t fd_io_uring = syscall(__NR_io_uring_setup, entries, setup_params);
	*ring_params_ptr_out = (void*)setup_params;
	uint32_t sq_ring_sz = setup_params->sq_off.array + setup_params->sq_entries * sizeof(uint32_t);
	uint32_t cq_ring_sz = setup_params->cq_off.cqes + setup_params->cq_entries * io_uring_cqe_size(setup_params);
	uint32_t ring_sz = sq_ring_sz > cq_ring_sz ? sq_ring_sz : cq_ring_sz;
	*ring_ptr_out = mmap(0, ring_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd_io_uring, IORING_OFF_SQ_RING);
	uint32_t sqes_sz = setup_params->sq_entries * io_uring_sqe_size(setup_params);
	*sqes_ptr_out = mmap(0, sqes_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd_io_uring, IORING_OFF_SQES);
	uint32_t* array = (uint32_t*)((uintptr_t)*ring_ptr_out + setup_params->sq_off.array);
	for (uint32_t index = 0; index < setup_params->sq_entries; index++)
		array[index] = index;
	return fd_io_uring;
}

static long syz_io_uring_submit(volatile long a0, volatile long a1, volatile long a2, volatile long a3)
{
	struct io_uring_params* params = (struct io_uring_params*)a0;
	char* ring_ptr = (char*)a1;
	char* sqes_ptr = (char*)a2;
	char* sqe = (char*)a3;
	uint32_t sq_ring_mask = *(uint32_t*)(ring_ptr + params->sq_off.ring_mask);
	uint32_t* sq_tail_ptr = (uint32_t*)(ring_ptr + params->sq_off.tail);
	uint32_t sq_tail = *sq_tail_ptr & sq_ring_mask;
	uint32_t sqe_size = io_uring_sqe_size(params);
	char* sqe_dest = sqes_ptr + sq_tail * sqe_size;
	memcpy(sqe_dest, sqe, sqe_size);
	uint32_t sq_tail_next = *sq_tail_ptr + 1;
	__atomic_store_n(sq_tail_ptr, sq_tail_next, __ATOMIC_RELEASE);
	return 0;
}

static long syz_ublk_setup_io_uring(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4)
{
	struct io_uring_params* params = (struct io_uring_params*)a1;
	params->flags |= IORING_SETUP_SQE128 | IORING_SETUP_CQE32;
	return syz_io_uring_setup(a0, (long)params, a2, a3, a4);
}

#define UBLK_F_USER_COPY (1UL << 7)

#define UBLK_IO_RES_OK 0
#define UBLK_IO_RES_NEED_GET_DATA 1

#define UBLK_IO_COMMIT_AND_FETCH_REQ 0x21
#define UBLK_IO_NEED_GET_DATA 0x22

#define UBLK_U_IO_COMMIT_AND_FETCH_REQ _IOWR('u', UBLK_IO_COMMIT_AND_FETCH_REQ, struct ublksrv_io_cmd)
#define UBLK_U_IO_NEED_GET_DATA _IOWR('u', UBLK_IO_NEED_GET_DATA, struct ublksrv_io_cmd)

struct ublksrv_ctrl_cmd {
	__u32 dev_id;
	__u16 queue_id;
	__u16 len;
	__u64 addr;
	__u64 data[1];
	__u16 dev_path_len;
	__u16 pad;
	__u32 reserved;
};

struct ublksrv_ctrl_dev_info {
	__u16 nr_hw_queues;
	__u16 queue_depth;
	__u16 state;
	__u16 pad0;
	__u32 max_io_buf_bytes;
	__u32 dev_id;
	__s32 ublksrv_pid;
	__u32 pad1;
	__u64 flags;
	__u64 ublksrv_flags;
	__u32 owner_uid;
	__u32 owner_gid;
	__u64 reserved1;
	__u64 reserved2;
};

struct ublksrv_io_desc {
	__u32 op_flags;
	union {
		__u32 nr_sectors;
		__u32 nr_zones;
	};
	__u64 start_sector;
	__u64 addr;
};

struct ublksrv_io_cmd {
	__u16 q_id;
	__u16 tag;
	__s32 result;
	union {
		__u64 addr;
		__u64 zone_append_lba;
	};
};

struct io_uring_sqe {
	__u8 opcode;
	__u8 flags;
	__u16 ioprio;
	__s32 fd;
	union {
		__u64 off;
		__u64 addr2;
		struct {
			__u32 cmd_op;
			__u32 __pad1;
		};
	};
	union {
		__u64 addr;
		__u64 splice_off_in;
		struct {
			__u32 level;
			__u32 optname;
		};
	};
	__u32 len;
	union {
		__kernel_rwf_t rw_flags;
		__u32 fsync_flags;
		__u16 poll_events;
		__u32 poll32_events;
		__u32 sync_range_flags;
		__u32 msg_flags;
		__u32 timeout_flags;
		__u32 accept_flags;
		__u32 cancel_flags;
		__u32 open_flags;
		__u32 statx_flags;
		__u32 fadvise_advice;
		__u32 splice_flags;
		__u32 rename_flags;
		__u32 unlink_flags;
		__u32 hardlink_flags;
		__u32 xattr_flags;
		__u32 msg_ring_flags;
		__u32 uring_cmd_flags;
		__u32 waitid_flags;
		__u32 futex_flags;
		__u32 install_fd_flags;
		__u32 nop_flags;
		__u32 pipe_flags;
	};
	__u64 user_data;
	union {
		__u16 buf_index;
		__u16 buf_group;
	} __attribute__((packed));
	__u16 personality;
	union {
		__s32 splice_fd_in;
		__u32 file_index;
		__u32 zcrx_ifq_idx;
		__u32 optlen;
		struct {
			__u16 addr_len;
			__u16 __pad3[1];
		};
	};
	union {
		struct {
			__u64 addr3;
			__u64 __pad2[1];
		};
		struct {
			__u64 attr_ptr;
			__u64 attr_type_mask;
		};
		__u64 optval;
		__u8 cmd[0];
	};
};

static long syz_ublk_add_dev(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5)
{
	__u32 ring_fd = (__u32)a0;
	struct io_uring_params* params = (struct io_uring_params*)a1;
	char* ring_ptr = (char*)a2;
	char* sqes_ptr = (char*)a3;
	struct io_uring_sqe* sqe = (struct io_uring_sqe*)a4;
	void** dev_info_ptr_out = (void**)a5;
	struct ublksrv_ctrl_cmd* cmd = (struct ublksrv_ctrl_cmd*)(sqe->cmd);
	struct ublksrv_ctrl_dev_info* dev_info = (struct ublksrv_ctrl_dev_info*)(unsigned long)(cmd->addr);
	dev_info->flags |= UBLK_F_USER_COPY;
	int ret = syz_io_uring_submit((long)params, (long)ring_ptr, (long)sqes_ptr, (long)sqe);
	if (ret < 0)
		return (long)ret;
	syscall(__NR_io_uring_enter, ring_fd, 1, 1, 1, NULL, _NSIG / 8);
	*dev_info_ptr_out = (void*)dev_info;
	return dev_info->dev_id;
}

uint64_t r[5] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0, 0x0};

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)) {}
//  openat$ublk_ctrl arguments: [
//    fd: const = 0xffffffffffffff9c (8 bytes)
//    file: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 75 62 6c 6b 2d 63 6f 6e 74 72 6f 6c 00} (length 0x12)
//    }
//    flags: const = 0x2 (4 bytes)
//    mode: const = 0x0 (2 bytes)
//  ]
//  returns fd_ublk_ctrl
memcpy((void*)0x200000000000, "/dev/ublk-control\000", 18);
	res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000000ul, /*flags=*/2, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  syz_ublk_setup_io_uring arguments: [
//    entries: int32 = 0x1d (4 bytes)
//    params: ptr[inout, io_uring_params] {
//      io_uring_params {
//        sq_entries: int32 = 0x0 (4 bytes)
//        cq_entries: int32 = 0x0 (4 bytes)
//        flags: io_uring_setup_flags = 0x0 (4 bytes)
//        sq_thread_cpu: int32 = 0x0 (4 bytes)
//        sq_thread_idle: int32 = 0x0 (4 bytes)
//        features: int32 = 0x0 (4 bytes)
//        wq_fd: fd_io_uring (resource)
//        resv: buffer: {00 00 00 00 00 00 00 00 00 00 00 00} (length 0xc)
//        sq_off: io_sqring_offsets {
//          head: int32 = 0x0 (4 bytes)
//          tail: int32 = 0x0 (4 bytes)
//          ring_mask: int32 = 0x0 (4 bytes)
//          ring_entries: int32 = 0x0 (4 bytes)
//          flags: int32 = 0x0 (4 bytes)
//          dropped: int32 = 0x0 (4 bytes)
//          array: int32 = 0x0 (4 bytes)
//          resv1: int32 = 0x0 (4 bytes)
//          user_addr: int64 = 0x0 (8 bytes)
//        }
//        cq_off: io_cqring_offsets {
//          head: int32 = 0x0 (4 bytes)
//          tail: int32 = 0x0 (4 bytes)
//          ring_mask: int32 = 0x0 (4 bytes)
//          ring_entries: int32 = 0x0 (4 bytes)
//          overflow: int32 = 0x0 (4 bytes)
//          cqes: int32 = 0x0 (4 bytes)
//          flags: int32 = 0x0 (4 bytes)
//          resv1: int32 = 0x0 (4 bytes)
//          user_addr: int64 = 0x0 (8 bytes)
//        }
//      }
//    }
//    ring_params_ptr: ptr[out, ring_params_ptr] {
//      ring_params_ptr (resource)
//    }
//    ring_ptr: ptr[out, ring_ptr] {
//      ring_ptr (resource)
//    }
//    sqes_ptr: ptr[out, sqes_ptr] {
//      sqes_ptr (resource)
//    }
//  ]
//  returns fd_io_uring
*(uint32_t*)0x200000000044 = 0;
*(uint32_t*)0x200000000048 = 0;
*(uint32_t*)0x20000000004c = 0;
*(uint32_t*)0x200000000050 = 0;
*(uint32_t*)0x200000000058 = -1;
memset((void*)0x20000000005c, 0, 12);
	res = -1;
res = syz_ublk_setup_io_uring(/*entries=*/0x1d, /*params=*/0x200000000040, /*ring_params_ptr=*/0x2000000000c0, /*ring_ptr=*/0x200000000100, /*sqes_ptr=*/0x200000000140);
	if (res != -1) {
		r[1] = res;
r[2] = *(uint64_t*)0x2000000000c0;
r[3] = *(uint64_t*)0x200000000100;
r[4] = *(uint64_t*)0x200000000140;
	}
//  syz_ublk_add_dev arguments: [
//    fd_io_uring: fd_io_uring (resource)
//    ring_params_ptr: ring_params_ptr (resource)
//    ring_ptr: ring_ptr (resource)
//    sqes_ptr: sqes_ptr (resource)
//    sqe: ptr[inout, io_uring_sqe_uring[fd_ublk_ctrl, const[UBLK_U_CMD_ADD_DEV, int32], ublk_ctrl_cmd$add_dev, int64]] {
//      io_uring_sqe_uring[fd_ublk_ctrl, const[UBLK_U_CMD_ADD_DEV, int32], ublk_ctrl_cmd$add_dev, int64] {
//        opcode: const = 0x2e (1 bytes)
//        flags: iosqe_flags = 0x20 (1 bytes)
//        ioprio: const = 0x0 (2 bytes)
//        fd: fd_ublk_ctrl (resource)
//        cmd_op: const = 0xc0207504 (4 bytes)
//        pad1: const = 0x0 (4 bytes)
//        addr: const = 0x0 (8 bytes)
//        len: const = 0x0 (4 bytes)
//        uring_flags: uring_cmd_flags = 0x2 (4 bytes)
//        user_data: int64 = 0x3 (8 bytes)
//        buf_index_unused: const = 0x0 (2 bytes)
//        ioring_personality_id: ioring_personality_id (resource)
//        pad_unused: buffer: {00 00 00 00} (length 0x4)
//        cmd: ublk_ctrl_cmd[const[-1, int32], len[addr, int16], ptr64[in, ublk_ctrl_dev_info_new], const[0, int64]] {
//          dev_id: const = 0xffffffff (4 bytes)
//          queue_id: const = 0xffff (2 bytes)
//          len: len = 0x40 (2 bytes)
//          addr: ptr[in, ublk_ctrl_dev_info_new] {
//            union ublk_ctrl_dev_info_new {
//              new_dev: ublk_ctrl_dev_info[const[-1, int32]] {
//                nr_hw_queues: int16 = 0x2 (2 bytes)
//                queue_depth: int16 = 0xf4 (2 bytes)
//                state: const = 0x0 (2 bytes)
//                pad0: const = 0x0 (2 bytes)
//                max_io_buf_bytes: const = 0x1000 (4 bytes)
//                dev_id: const = 0xffffffff (4 bytes)
//                ublk_pid: pid (resource)
//                pad1: const = 0x0 (4 bytes)
//                flags: ublk_f_flags = 0x2 (8 bytes)
//                ublk_flags: const = 0x0 (8 bytes)
//                owner_uid: const = 0x0 (4 bytes)
//                owner_gid: const = 0x0 (4 bytes)
//                reserved1: const = 0x0 (8 bytes)
//                reserved2: const = 0x0 (8 bytes)
//              }
//            }
//          }
//          data: const = 0x0 (8 bytes)
//          dev_path_len: const = 0x0 (2 bytes)
//          pad: const = 0x0 (2 bytes)
//          reserved: const = 0x0 (4 bytes)
//          pad2_unused: buffer: {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 0x30)
//        }
//      }
//    }
//    dev_info_ptr: nil
//  ]
//  returns ublk_dev_id
*(uint8_t*)0x200000001ec0 = 0x2e;
*(uint8_t*)0x200000001ec1 = 0x20;
*(uint16_t*)0x200000001ec2 = 0;
*(uint32_t*)0x200000001ec4 = r[0];
*(uint32_t*)0x200000001ec8 = 0xc0207504;
*(uint32_t*)0x200000001ecc = 0;
*(uint64_t*)0x200000001ed0 = 0;
*(uint32_t*)0x200000001ed8 = 0;
*(uint32_t*)0x200000001edc = 2;
*(uint64_t*)0x200000001ee0 = 3;
*(uint16_t*)0x200000001ee8 = 0;
*(uint16_t*)0x200000001eea = 0;
memset((void*)0x200000001eec, 0, 4);
*(uint32_t*)0x200000001ef0 = -1;
*(uint16_t*)0x200000001ef4 = -1;
*(uint16_t*)0x200000001ef6 = 0x40;
*(uint64_t*)0x200000001ef8 = 0x200000001e80;
*(uint16_t*)0x200000001e80 = 2;
*(uint16_t*)0x200000001e82 = 0xf4;
*(uint16_t*)0x200000001e84 = 0;
*(uint16_t*)0x200000001e86 = 0;
*(uint32_t*)0x200000001e88 = 0x1000;
*(uint32_t*)0x200000001e8c = -1;
*(uint32_t*)0x200000001e90 = 0;
*(uint32_t*)0x200000001e94 = 0;
*(uint64_t*)0x200000001e98 = 2;
*(uint64_t*)0x200000001ea0 = 0;
*(uint32_t*)0x200000001ea8 = 0;
*(uint32_t*)0x200000001eac = 0;
*(uint64_t*)0x200000001eb0 = 0;
*(uint64_t*)0x200000001eb8 = 0;
*(uint64_t*)0x200000001f00 = 0;
*(uint16_t*)0x200000001f08 = 0;
*(uint16_t*)0x200000001f0a = 0;
*(uint32_t*)0x200000001f0c = 0;
memset((void*)0x200000001f10, 0, 48);
syz_ublk_add_dev(/*fd_io_uring=*/r[1], /*ring_params_ptr=*/r[2], /*ring_ptr=*/r[3], /*sqes_ptr=*/r[4], /*sqe=*/0x200000001ec0, /*dev_info_ptr=*/0);
	return 0;
}



Reply:
Based on the analysis of the provided bug report and kernel source code, here is the assessment of the vulnerability:

### Bug Mechanism
The bug is a memory leak and kworker hang in `io_uring` caused by improper handling of the `IORING_URING_CMD_MULTISHOT` flag. 

When a user submits an `IORING_OP_URING_CMD` request with the `IORING_URING_CMD_MULTISHOT` flag set (and `IOSQE_BUFFER_SELECT` to pass initial validation in `io_uring_cmd_prep`), `io_uring_cmd()` invokes the target file's `uring_cmd` callback. 
If the callback returns `>= 0` (e.g., `0` for success), `io_uring_cmd()` assumes that the driver supports multishot and will asynchronously complete the request multiple times. Consequently, it returns `IOU_ISSUE_SKIP_COMPLETE` to the core `io_uring` issue path, which skips completing or freeing the request.

However, if the target driver does **not** support multishot (such as `ublk_ctrl_uring_cmd` or even `uring_cmd_null` for `/dev/null`), it simply returns `0` upon successful execution of the command and never calls `io_uring_cmd_done()`. As a result, the `io_kiocb` request and its associated `async_data` are completely orphaned and leaked.

Furthermore, because the leaked request holds a reference to the `io_ring_ctx` (`ctx->refs`), the ring context can never be fully destroyed. When the `io_uring` instance is closed, the cleanup work `io_ring_exit_work` is queued to a system kworker. This work loops indefinitely waiting for `ctx->refs` to drop to 0, permanently hanging the kworker thread and leaking the entire `io_ring_ctx`.

### Security Impact

* **Exploitable: False**
  The bug is a pure memory leak and thread hang. The orphaned requests are removed from all lists and are never accessed again by the kernel, meaning there is no use-after-free, memory corruption, or information leak primitive. It cannot be used for privilege escalation or arbitrary code execution.

* **Denial of Service: True**
  An attacker can repeatedly trigger this bug to leak kernel memory (leading to Out-Of-Memory conditions). More critically, by creating multiple `io_uring` instances and triggering the leak in each before closing them, the attacker can exhaust the `iou_wq` unbound workqueue (which has a max active limit, typically 64). This permanently hangs the kworkers, preventing any other `io_uring` instances on the system from being cleaned up, resulting in a severe system-wide Denial of Service.

* **Accessible From Unprivileged Processes: True**
  The vulnerability can be triggered by any unprivileged user. While the syzkaller reproducer uses `ublk` (which has unprivileged commands like `UBLK_U_CMD_GET_FEATURES`), the bug is fundamentally in `io_uring`. An unprivileged user can simply open `/dev/null` (which uses `uring_cmd_null` that always returns `0`) and submit a multishot `uring_cmd` against it to trigger the exact same leak and kworker hang.

* **Accessible From User Namespaces: True**
  Since it is accessible to completely unprivileged processes in the initial namespace, it is also accessible within user namespaces.

* **Other Triggers (Network, Remote, Peripheral, Filesystem, VM): False**
  The bug is triggered via local syscalls (`io_uring_enter`) and does not require any specific external input, network traffic, malicious filesystems, or peripheral devices.

6/2 2026/08/09 12:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14554
							output: 40
							thoughts: 786
						

Thoughts:
**Analyzing a Memory Leak in io_uring**

Okay, so I've got a memory leak report specifically targeting `io_uring`. From the provided information, it looks like the issue is originating in `io_alloc_req` and `io_cache_alloc_new`. I can see the backtraces, which tell me where to start digging. The first one shows a path through `kmemleak_alloc_recursive`, `slab_post_alloc_hook`, and then into `__io_alloc_req_refill` within `io_uring.c`. The second path is similar, going through the slab allocator, and ends in `io_cache_alloc_new`, and the key point is that both calls end up eventually calling the slab allocator.

Aha, wait a minute, the second backtrace includes `io_uring_cmd_prep`. That's interesting, because I know that function is responsible for allocating async data. Let me see... the reproducer is using `UBLK_U_CMD_ADD_DEV` via `io_uring`. Opcode `0x2e` corresponds to `IORING_OP_URING_CMD`, and the `cmd_op` is `0xc0207504`, which is indeed `UBLK_U_CMD_ADD_DEV`. The `flags` are set to `0x20`, which translates to `IOSQE_ASYNC`. *That's* the likely culprit. `IOSQE_ASYNC` forces async execution. So, I need to focus on how `io_uring_cmd_prep` is handling `IOSQE_ASYNC` requests. Time to dive into that function and trace the data paths.



7/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_prep]

Results:
map[SourceCode: 184:	int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 185:	{
 186:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 187:		struct io_async_cmd *ac;
 188:	
 189:		if (sqe->__pad1)
 190:			return -EINVAL;
 191:	
 192:		ioucmd->flags = READ_ONCE(sqe->uring_cmd_flags);
 193:		if (ioucmd->flags & ~IORING_URING_CMD_MASK)
 194:			return -EINVAL;
 195:	
 196:		if (ioucmd->flags & IORING_URING_CMD_FIXED) {
 197:			if (ioucmd->flags & IORING_URING_CMD_MULTISHOT)
 198:				return -EINVAL;
 199:			req->buf_index = READ_ONCE(sqe->buf_index);
 200:		}
 201:	
 202:		if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
 203:		    !!(req->flags & REQ_F_BUFFER_SELECT))
 204:			return -EINVAL;
 205:	
 206:		ioucmd->cmd_op = READ_ONCE(sqe->cmd_op);
 207:	
 208:		ac = io_uring_alloc_async_data(&req->ctx->cmd_cache, req);
 209:		if (!ac)
 210:			return -ENOMEM;
 211:		ioucmd->sqe = sqe;
 212:		return 0;
 213:	}
 SourceFile:io_uring/uring_cmd.c]

8/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16280
							output: 42
							thoughts: 15
						

Thoughts:
Okay, let's dive into this. Here's my thought process on this:

**Analyzing `io_uring_alloc_async_data`**

Alright, time to get to it. Let's start with `io_uring_alloc_async_data`. I need to understand what's happening internally here. My immediate focus is on how asynchronous data is managed. Is it memory allocation? Deallocation? Synchronization? How does it fit into the broader `io_uring` context? I'm already anticipating I'll need to consider this function's interaction with the submission and completion queues. Are there any potential race conditions I should look out for, or perhaps memory leaks? Any interaction with other system components, or specific hardware? I'll be tracing the allocations and deallocations carefully to make sure there's no drift or resource mismanagement. This is probably going to touch on DMA, and how we're dealing with pinned memory. Gotta make sure we're doing that part right. Let's see if this function reveals how the system optimizes for performance or handles any potential resource constraints. Ultimately, my goal is to assess its robustness and efficiency.



9/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:io_uring_alloc_async_data]

Results:
map[SourceCode: 351:	static inline void *io_uring_alloc_async_data(struct io_alloc_cache *cache,
 352:						      struct io_kiocb *req)
 353:	{
 354:		if (cache) {
 355:			req->async_data = io_cache_alloc(cache, GFP_KERNEL);
 356:		} else {
 357:			const struct io_issue_def *def = &io_issue_defs[req->opcode];
 358:	
 359:			WARN_ON_ONCE(!def->async_size);
 360:			req->async_data = kmalloc(def->async_size, GFP_KERNEL);
 361:		}
 362:		if (req->async_data)
 363:			req->flags |= REQ_F_ASYNC_DATA;
 364:		return req->async_data;
 365:	}
 SourceFile:io_uring/io_uring.h]

10/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16861
							output: 40
							thoughts: 58
						

Thoughts:
Here's my summary, as though I'm thinking through this myself:

**io_uring Memory Management - A Potential Leak?**

Okay, wait a minute. Something's nagging at me regarding `io_uring_cmd_prep`. I *think* I recall that this function is responsible for allocating the `async_data` structure. But the question is: what happens if the command preparation fails *after* this allocation, or, worse, if a command gets cancelled later down the line? Does the framework *guarantee* that the allocated `async_data` is freed in all error paths and cancellation scenarios?

This feels like a potentially delicate spot for a memory leak. I need to be absolutely sure that no `async_data` gets orphaned. I should double check `io_uring_cmd_prep`'s logic for allocation and error handling, along with `io_uring_cmd_free`, and look for all the places where `async_data` is dealt with. Let's dig into those functions and trace the allocation and deallocation paths to verify.



11/2 2026/08/09 12:02 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_free]

Results:
map[SourceCode: SourceFile:]

12/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17207
							output: 20
							thoughts: 11
						

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

**Concern Over Generic Data Deallocation**

Right, so I'm thinking about this `async_data` structure. The wording here implies it's being freed, and my immediate concern is *how* it's being freed. The term "generically" is what jumps out. Generic deallocation, in my experience, often leads to problems if we're not meticulously careful about the structure's contents and their lifetimes. It makes me question the design. Are we potentially introducing subtle memory leaks or double-frees, especially if this `async_data` might contain pointers to dynamically allocated resources? If different parts of the system are responsible for different aspects of the data, the 'generic' approach sounds ripe for errors. Have we thoroughly considered the ownership semantics here? Is there a clearly defined and documented strategy for releasing any internal pointers or other owned resources before that generic free occurs? The devil, as always, is in the details, and "generic" often hides a multitude of sins when dealing with memory management in asynchronous contexts. I need to dig deeper.



13/2 2026/08/09 12:02 tool grepper
0m Args:
map[Expression:kfree.*async_data]

Results:
map[Output:io_uring/io_uring.c=310=static void io_clean_op(struct io_kiocb *req)
--
io_uring/io_uring.c-325-	if (req->flags & REQ_F_ASYNC_DATA) {
io_uring/io_uring.c:326:		kfree(req->async_data);
io_uring/io_uring.c-327-		req->async_data = NULL;
--
io_uring/io_uring.h=379=static inline void io_req_async_data_free(struct io_kiocb *req)
io_uring/io_uring.h-380-{
io_uring/io_uring.h:381:	kfree(req->async_data);
io_uring/io_uring.h-382-	io_req_async_data_clear(req, 0);
]

14/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17720
							output: 38
							thoughts: 11
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Investigating `io_clean_op`**

Alright, time to dive in. My mind immediately goes to `io_clean_op`. Let's assume it's a critical component in our current task. We need to assess it quickly. I'm thinking: is this related to performance, to security, or perhaps to data integrity? Knowing this will help focus my investigation. I need to understand its role within the larger system context before I can make any judgment about its behavior.



15/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_clean_op]

Results:
map[SourceCode: 310:	static void io_clean_op(struct io_kiocb *req)
 311:	{
 312:		if (unlikely(req->flags & REQ_F_BUFFER_SELECTED))
 313:			io_kbuf_drop_legacy(req);
 314:	
 315:		if (req->flags & REQ_F_NEED_CLEANUP) {
 316:			const struct io_cold_def *def = &io_cold_defs[req->opcode];
 317:	
 318:			if (def->cleanup)
 319:				def->cleanup(req);
 320:		}
 321:		if (req->flags & REQ_F_INFLIGHT)
 322:			atomic_dec(&req->tctx->inflight_tracked);
 323:		if (req->flags & REQ_F_CREDS)
 324:			put_cred(req->creds);
 325:		if (req->flags & REQ_F_ASYNC_DATA) {
 326:			kfree(req->async_data);
 327:			req->async_data = NULL;
 328:		}
 329:		req->flags &= ~IO_REQ_CLEAN_FLAGS;
 330:	}
 SourceFile:io_uring/io_uring.c]

16/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18278
							output: 38
							thoughts: 119
						

Thoughts:
**Analyzing io_uring Memory Allocation**

Okay, hold on a minute. I'm seeing that `io_uring_cmd_prep` is calling `io_cache_alloc`! That's interesting. And I'm pretty sure `io_uring_alloc_async_data` also utilizes `io_cache_alloc(cache, GFP_KERNEL)` when a `cache` is provided. So, if it's using the cache, it's allocating memory from that specific cache, that makes sense. But then I have another observation here with `io_clean_op` which calls `kfree(req->async_data)`. Wait a second! I'm pretty sure `io_cache_alloc` under the hood is actually leveraging `kmalloc`. I need to confirm that. Let me quickly double-check the implementation of `io_cache_alloc`.



17/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/alloc_cache.h Name:io_cache_alloc]

Results:
map[SourceCode:  54:	static inline void *io_cache_alloc(struct io_alloc_cache *cache, gfp_t gfp)
  55:	{
  56:		void *obj;
  57:	
  58:		obj = io_alloc_cache_get(cache);
  59:		if (obj)
  60:			return obj;
  61:		return io_cache_alloc_new(cache, gfp);
  62:	}
 SourceFile:io_uring/alloc_cache.h]

18/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18772
							output: 40
							thoughts: 13
						

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

**Analyzing `io_cache_alloc_new`**

Right, let's focus on `io_cache_alloc_new`. My initial thought is to mentally walk through the code and figure out what it does, what its purpose is. I'm going to quickly recall from memory its intended role within the overall system architecture. Now, let's consider the possible implementation details. What are its potential dependencies? Any complex memory management involved? Could any of the typical "gotchas" be present? I'll probably start by looking for any obvious issues that could lead to memory leaks or inefficiencies. I'll need to scrutinize how it handles allocation failures, and how it integrates with the rest of the caching infrastructure. Any synchronization primitives used? What about thread safety? My expertise in this area tells me where to focus my attention based on common problem areas. Let's see if this function is written in a clear and maintainable way. I'll mentally evaluate the design, considering how it could impact future changes and debugging efforts. The goal here is a quick, comprehensive understanding of how it fits into the broader picture.



19/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/alloc_cache.c Name:io_cache_alloc_new]

Results:
map[SourceCode:  36:	void *io_cache_alloc_new(struct io_alloc_cache *cache, gfp_t gfp)
  37:	{
  38:		void *obj;
  39:	
  40:		obj = kmalloc(cache->elem_size, gfp);
  41:		if (obj && cache->init_clear)
  42:			memset(obj, 0, cache->init_clear);
  43:		return obj;
  44:	}
 SourceFile:io_uring/alloc_cache.c]

20/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19242
							output: 55
							thoughts: 131
						

Thoughts:
**Analyzing the `io_cache_alloc_new` Function**

Okay, so I'm looking at `io_cache_alloc_new` and seeing that it's using `kmalloc`. That's a bit of a head-scratcher. If we're allocating from a cache, shouldn't `kfree` return the memory to the slab, not directly to the cache? On further reflection, `kfree` itself is perfectly valid for deallocating `kmalloc` objects; however, using `kfree` here essentially bypasses the purpose of the cache entirely, right? It defeats the optimization of reusing those allocations. Hmmm...

Hold on a second. I'm recalling `io_clean_op` doing a `kfree(req->async_data)`. That's a red flag. Isn't there supposed to be an `io_req_async_data_free` function somewhere? I need to track this down and confirm that `async_data` is freed correctly. Let me take a look at the code for `io_req_async_data_free` and see what's going on... gotta make sure we're not leaking memory or mismanaging the cache.



21/2 2026/08/09 12:02 tool codesearch-find-references
0m Args:
map[ContextFile:io_uring/io_uring.h IncludeSnippetLines:0 Name:io_req_async_data_free SourceTreePrefix:]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_futex_wait SourceFile:io_uring/futex.c SourceLine:317] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_futexv_complete SourceFile:io_uring/futex.c SourceLine:81] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_futexv_wait SourceFile:io_uring/futex.c SourceLine:241] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_waitid_free SourceFile:io_uring/waitid.c SourceLine:40]] TruncatedOutput:false]

22/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19911
							output: 38
							thoughts: 90
						

Thoughts:
Okay, let me think this through.

**Analyzing io_clean_op and Memory Management in io_uring**

Alright, I need to trace the memory management for these asynchronous data structures. The current code has me a bit concerned. Let's see: `io_clean_op` handles the cleanup process, and it looks like it's calling `kfree(req->async_data)`. Now, that's not necessarily wrong, but it's making me pause. If `async_data` was originally allocated from that `io_alloc_cache`, then logically, it *shouldn't* be a direct `kfree` operation. We'd want it returned to the cache for efficient reuse, right?

The pattern I'm expecting would be `io_cache_free` to handle deallocating this cached memory. So that's what has me wondering.

To confirm my suspicion, I should dive into the `io_uring_cmd` implementation. I'll need to see how the async data is initialized and allocated within `io_uring/uring_cmd.c` to fully understand the intended memory lifecycle. I expect there to be a discrepancy in this case.



23/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd]

Results:
map[SourceCode: 239:	int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags)
 240:	{
 241:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 242:		struct io_ring_ctx *ctx = req->ctx;
 243:		struct file *file = req->file;
 244:		int ret;
 245:	
 246:		if (!file->f_op->uring_cmd)
 247:			return -EOPNOTSUPP;
 248:	
 249:		ret = security_uring_cmd(ioucmd);
 250:		if (ret)
 251:			return ret;
 252:	
 253:		if (ctx->flags & IORING_SETUP_SQE128 ||
 254:		    req->opcode == IORING_OP_URING_CMD128)
 255:			issue_flags |= IO_URING_F_SQE128;
 256:		if (ctx->flags & (IORING_SETUP_CQE32 | IORING_SETUP_CQE_MIXED))
 257:			issue_flags |= IO_URING_F_CQE32;
 258:		if (io_is_compat(ctx))
 259:			issue_flags |= IO_URING_F_COMPAT;
 260:		if (ctx->flags & IORING_SETUP_IOPOLL && file->f_op->uring_cmd_iopoll) {
 261:			req->flags |= REQ_F_IOPOLL;
 262:			issue_flags |= IO_URING_F_IOPOLL;
 263:			req->iopoll_completed = 0;
 264:			if (ctx->flags & IORING_SETUP_HYBRID_IOPOLL) {
 265:				/* make sure every req only blocks once */
 266:				req->flags &= ~REQ_F_IOPOLL_STATE;
 267:				req->iopoll_start = ktime_get_ns();
 268:			}
 269:		}
 270:	
 271:		ret = file->f_op->uring_cmd(ioucmd, issue_flags);
 272:		if (ioucmd->flags & IORING_URING_CMD_MULTISHOT) {
 273:			if (ret >= 0)
 274:				return IOU_ISSUE_SKIP_COMPLETE;
 275:		}
 276:		if (ret == -EAGAIN) {
 277:			ioucmd->flags |= IORING_URING_CMD_REISSUE;
 278:			return ret;
 279:		}
 280:		if (ret == -EIOCBQUEUED)
 281:			return ret;
 282:		if (ret < 0)
 283:			req_set_fail(req);
 284:		io_req_uring_cleanup(req, issue_flags);
 285:		io_req_set_res(req, ret, 0);
 286:		return IOU_COMPLETE;
 287:	}
 SourceFile:io_uring/uring_cmd.c]

24/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21183
							output: 40
							thoughts: 20
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:

**Investigating `io_req_uring_cleanup`**

Okay, hold on. I see `io_req_uring_cleanup` being invoked. That's interesting. I need to take a closer look at what's happening within this function. It's crucial, obviously, within the I/O uring lifecycle, and it seems like something significant is happening here. I need to delve into its implementation and understand its purpose within the broader context of the request handling and resource management. Let's see what's going on...



25/2 2026/08/09 12:02 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_req_uring_cleanup]

Results:
map[SourceCode:  26:	static void io_req_uring_cleanup(struct io_kiocb *req, unsigned int issue_flags)
  27:	{
  28:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
  29:		struct io_async_cmd *ac = req->async_data;
  30:	
  31:		if (issue_flags & IO_URING_F_UNLOCKED)
  32:			return;
  33:	
  34:		io_alloc_cache_vec_kasan(&ac->vec);
  35:		if (ac->vec.nr > IO_VEC_CACHE_SOFT_CAP)
  36:			io_vec_free(&ac->vec);
  37:	
  38:		if (io_alloc_cache_put(&req->ctx->cmd_cache, ac)) {
  39:			ioucmd->sqe = NULL;
  40:			io_req_async_data_clear(req, REQ_F_NEED_CLEANUP);
  41:		}
  42:	}
 SourceFile:io_uring/uring_cmd.c]

26/2 2026/08/09 12:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21701
							output: 42
							thoughts: 77
						

Thoughts:
Okay, here's my interpretation of those thoughts, considering my expertise:

**Dissecting the `io_req_uring_cleanup` Function**

Right, so I'm seeing that `io_req_uring_cleanup` is responsible for a crucial cleanup operation. Specifically, it's taking the `ac` (likely an `io_completion_data` or a related context) and placing it into `req->ctx->cmd_cache`. This indicates a caching strategy, likely aimed at reusing these structures and avoiding costly allocations/deallocations, which is a common performance optimization in asynchronous I/O systems like io_uring. This makes perfect sense; minimizing memory overhead is always key for performance, especially under load.

Now, the next part piques my interest. It looks like `io_req_uring_cleanup` is *also* calling `io_req_async_data_clear`. The comment mentions it clears `REQ_F_ASYNC_DATA`... wait a minute, is `io_req_async_data_clear` actually the one doing the `REQ_F_ASYNC_DATA` clear? This is a bit redundant if so. I need to understand the relationship between these two functions better. Is the clearing operation duplicated, or is there a different role within this cleanup function? I'll need to double-check the code's control flow to confirm whether `io_req_async_data_clear` directly handles the flag, or if another mechanism is also used. It's possible the names are slightly misleading, and there's a more nuanced relationship. My concern is whether this is an area that could benefit from refactoring to be more explicit.



27/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:io_req_async_data_clear]

Results:
map[SourceCode: 372:	static inline void io_req_async_data_clear(struct io_kiocb *req,
 373:						   io_req_flags_t extra_flags)
 374:	{
 375:		req->flags &= ~(REQ_F_ASYNC_DATA|extra_flags);
 376:		req->async_data = NULL;
 377:	}
 SourceFile:io_uring/io_uring.h]

28/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22313
							output: 39
							thoughts: 550
						

Thoughts:
**Analyzing a Potential Memory Leak in the io_uring Subsystem**

Okay, let's break this down. My initial thought is: if `io_alloc_cache_put` returns `true`, then `REQ_F_ASYNC_DATA` gets cleared. But what if it returns `false`? Ah, right, that means the cache is full. In that scenario, `ac` (presumably the async control structure) *doesn't* get cached, and `REQ_F_ASYNC_DATA` *isn't* cleared.  Then `io_clean_op` *should* be called, and it's supposed to call `kfree(req->async_data)`. Wait... I just confirmed that `io_clean_op` *does* call `kfree(req->async_data)`.

Now, the bug report... the report says: "BUG: memory leak," and then gives details that show an unreferenced object. The interesting thing is that the backtrace from the report shows the `kmemleak_alloc_recursive`, then `slab_post_alloc_hook` and then `kmem_cache_alloc_bulk_noprof` and then `__io_alloc_req_refill` and finally `io_alloc_req` which points to `struct io_kiocb` allocation. And then it shows `io_cache_alloc_new` which points to the `async_data` allocation.

So there are two leaks: `io_alloc_req`, which allocates the `struct io_kiocb`, and `io_cache_alloc_new`, which allocates `async_data`. Why are these things leaking? It looks like `io_kiocb` is leaking, so then `io_clean_op` is never called!  I need to check how `io_kiocb` can avoid the `io_clean_op` function.  I need to look at `io_submit_sqes` and the call stack.



29/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_sqes]

Results:
map[SourceCode:2022:	int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
2023:		__must_hold(&ctx->uring_lock)
2024:	{
2025:		unsigned int entries;
2026:		unsigned int left;
2027:		int ret;
2028:	
2029:		if (ctx->flags & IORING_SETUP_SQ_REWIND)
2030:			entries = ctx->sq_entries;
2031:		else
2032:			entries = __io_sqring_entries(ctx);
2033:	
2034:		entries = min(nr, entries);
2035:		if (unlikely(!entries))
2036:			return 0;
2037:	
2038:		ret = left = entries;
2039:		io_get_task_refs(left);
2040:		io_submit_state_start(&ctx->submit_state, left);
2041:	
2042:		do {
2043:			const struct io_uring_sqe *sqe;
2044:			struct io_kiocb *req;
2045:	
2046:			if (unlikely(!io_alloc_req(ctx, &req)))
2047:				break;
2048:			if (unlikely(!io_get_sqe(ctx, &sqe))) {
2049:				io_req_add_to_cache(req, ctx);
2050:				break;
2051:			}
2052:	
2053:			/*
2054:			 * Continue submitting even for sqe failure if the
2055:			 * ring was setup with IORING_SETUP_SUBMIT_ALL
2056:			 */
2057:			if (unlikely(io_submit_sqe(ctx, req, sqe, &left)) &&
2058:			    !(ctx->flags & IORING_SETUP_SUBMIT_ALL)) {
2059:				left--;
2060:				break;
2061:			}
2062:		} while (--left);
2063:	
2064:		if (unlikely(left)) {
2065:			ret -= left;
2066:			/* try again if it submitted nothing and can't allocate a req */
2067:			if (!ret && io_req_cache_empty(ctx))
2068:				ret = -EAGAIN;
2069:			current->io_uring->cached_refs += left;
2070:		}
2071:	
2072:		io_submit_state_end(ctx);
2073:		 /* Commit SQ ring head once we've consumed and submitted all SQEs */
2074:		io_commit_sqring(ctx);
2075:		return ret;
2076:	}
 SourceFile:io_uring/io_uring.c]

30/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24139
							output: 39
							thoughts: 27
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in the weeds with I/O and familiar with the specifics of the subject:

**IO Submission Hiccup**

Hmm, `io_submit_sqe` returning an error? That's not what I expected. Let's see... I need to immediately pinpoint what's going wrong here. I'll need to go back and carefully scrutinize the call to `io_submit_sqe`. I have to dig into its documentation and potentially review my setup and parameters. Time to verify every single detail, from the completion queue to the individual submission queue entry. This could be anything from a simple misconfiguration to a more serious hardware issue, so let's start with the basics first.



31/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_sqe]

Results:
map[SourceCode:1882:	static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
1883:				 const struct io_uring_sqe *sqe, unsigned int *left)
1884:		__must_hold(&ctx->uring_lock)
1885:	{
1886:		struct io_submit_link *link = &ctx->submit_state.link;
1887:		int ret;
1888:	
1889:		ret = io_init_req(ctx, req, sqe, left);
1890:		if (unlikely(ret))
1891:			return io_submit_fail_init(sqe, req, ret);
1892:	
1893:		if (unlikely(ctx->bpf_filters)) {
1894:			ret = io_uring_run_bpf_filters(ctx->bpf_filters, req);
1895:			if (ret)
1896:				return io_submit_fail_init(sqe, req, ret);
1897:		}
1898:	
1899:		trace_io_uring_submit_req(req);
1900:	
1901:		/*
1902:		 * If we already have a head request, queue this one for async
1903:		 * submittal once the head completes. If we don't have a head but
1904:		 * IOSQE_IO_LINK is set in the sqe, start a new head. This one will be
1905:		 * submitted sync once the chain is complete. If none of those
1906:		 * conditions are true (normal request), then just queue it.
1907:		 */
1908:		if (unlikely(link->head)) {
1909:			trace_io_uring_link(req, link->last);
1910:			io_req_sqe_copy(req, IO_URING_F_INLINE);
1911:			link->last->link = req;
1912:			link->last = req;
1913:	
1914:			if (req->flags & IO_REQ_LINK_FLAGS)
1915:				return 0;
1916:			/* last request of the link, flush it */
1917:			req = link->head;
1918:			link->head = NULL;
1919:			if (req->flags & (REQ_F_FORCE_ASYNC | REQ_F_FAIL))
1920:				goto fallback;
1921:	
1922:		} else if (unlikely(req->flags & (IO_REQ_LINK_FLAGS |
1923:						  REQ_F_FORCE_ASYNC | REQ_F_FAIL))) {
1924:			if (req->flags & IO_REQ_LINK_FLAGS) {
1925:				link->head = req;
1926:				link->last = req;
1927:			} else {
1928:	fallback:
1929:				io_queue_sqe_fallback(req);
1930:			}
1931:			return 0;
1932:		}
1933:	
1934:		io_queue_sqe(req, IO_URING_F_INLINE);
1935:		return 0;
1936:	}
 SourceFile:io_uring/io_uring.c]

32/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25286
							output: 38
							thoughts: 31
						

Thoughts:
Here's my thought process, summarized as you requested:

**Deconstructing the I/O Initialization Flow**

Okay, so I'm trying to trace through this I/O initialization process. My initial thought is: hang on, it seems like the `io_init_req` function is the one that actually calls `io_uring_cmd_prep`. That's interesting, because `io_uring_cmd_prep` is the more fundamental function for setting up the command itself. So, to really understand what's going on, I need to dig into `io_init_req` first. Let's start there.



33/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_init_req]

Results:
map[SourceCode:1730:	static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req,
1731:			       const struct io_uring_sqe *sqe, unsigned int *left)
1732:		__must_hold(&ctx->uring_lock)
1733:	{
1734:		const struct io_issue_def *def;
1735:		unsigned int sqe_flags;
1736:		int personality;
1737:	
1738:		req->ctx = ctx;
1739:		req->opcode = READ_ONCE(sqe->opcode);
1740:		/* same numerical values with corresponding REQ_F_*, safe to copy */
1741:		sqe_flags = READ_ONCE(sqe->flags);
1742:		req->flags = (__force io_req_flags_t) sqe_flags;
1743:		req->cqe.user_data = READ_ONCE(sqe->user_data);
1744:		req->file = NULL;
1745:		req->tctx = current->io_uring;
1746:		req->cancel_seq_set = false;
1747:		req->async_data = NULL;
1748:	
1749:		if (unlikely(req->opcode >= IORING_OP_LAST)) {
1750:			req->opcode = 0;
1751:			return io_init_fail_req(req, -EINVAL);
1752:		}
1753:		req->opcode = array_index_nospec(req->opcode, IORING_OP_LAST);
1754:	
1755:		def = &io_issue_defs[req->opcode];
1756:		if (def->is_128 && !(ctx->flags & IORING_SETUP_SQE128)) {
1757:			/*
1758:			 * A 128b op on a non-128b SQ requires mixed SQE support as
1759:			 * well as 2 contiguous entries.
1760:			 */
1761:			if (!(ctx->flags & IORING_SETUP_SQE_MIXED) || *left < 2 ||
1762:			    (unsigned)(sqe - ctx->sq_sqes) >= ctx->sq_entries - 1)
1763:				return io_init_fail_req(req, -EINVAL);
1764:			/*
1765:			 * A 128b operation on a mixed SQ uses two entries, so we have
1766:			 * to increment the head and cached refs, and decrement what's
1767:			 * left.
1768:			 */
1769:			current->io_uring->cached_refs++;
1770:			ctx->cached_sq_head++;
1771:			(*left)--;
1772:		}
1773:	
1774:		if (unlikely(sqe_flags & ~SQE_COMMON_FLAGS)) {
1775:			/* enforce forwards compatibility on users */
1776:			if (sqe_flags & ~SQE_VALID_FLAGS)
1777:				return io_init_fail_req(req, -EINVAL);
1778:			if (sqe_flags & IOSQE_BUFFER_SELECT) {
1779:				if (!def->buffer_select)
1780:					return io_init_fail_req(req, -EOPNOTSUPP);
1781:				req->buf_index = READ_ONCE(sqe->buf_group);
1782:			}
1783:			if (sqe_flags & IOSQE_CQE_SKIP_SUCCESS)
1784:				ctx->int_flags |= IO_RING_F_DRAIN_DISABLED;
1785:			if (sqe_flags & IOSQE_IO_DRAIN) {
1786:				if (ctx->int_flags & IO_RING_F_DRAIN_DISABLED)
1787:					return io_init_fail_req(req, -EOPNOTSUPP);
1788:				io_init_drain(ctx);
1789:			}
1790:		}
1791:		if (unlikely(ctx->int_flags & (IO_RING_F_OP_RESTRICTED | IO_RING_F_DRAIN_ACTIVE | IO_RING_F_DRAIN_NEXT))) {
1792:			if (!io_check_restriction(ctx, req, sqe_flags))
1793:				return io_init_fail_req(req, -EACCES);
1794:			/* knock it to the slow queue path, will be drained there */
1795:			if (ctx->int_flags & IO_RING_F_DRAIN_ACTIVE)
1796:				req->flags |= REQ_F_FORCE_ASYNC;
1797:			/* if there is no link, we're at "next" request and need to drain */
1798:			if (unlikely(ctx->int_flags & IO_RING_F_DRAIN_NEXT) && !ctx->submit_state.link.head) {
1799:				ctx->int_flags &= ~IO_RING_F_DRAIN_NEXT;
1800:				ctx->int_flags |= IO_RING_F_DRAIN_ACTIVE;
1801:				req->flags |= REQ_F_IO_DRAIN | REQ_F_FORCE_ASYNC;
1802:			}
1803:		}
1804:	
1805:		if (!def->ioprio && sqe->ioprio)
1806:			return io_init_fail_req(req, -EINVAL);
1807:		if (!def->iopoll && (ctx->flags & IORING_SETUP_IOPOLL))
1808:			return io_init_fail_req(req, -EINVAL);
1809:	
1810:		if (def->needs_file) {
1811:			struct io_submit_state *state = &ctx->submit_state;
1812:	
1813:			req->cqe.fd = READ_ONCE(sqe->fd);
1814:	
1815:			/*
1816:			 * Plug now if we have more than 2 IO left after this, and the
1817:			 * target is potentially a read/write to block based storage.
1818:			 */
1819:			if (state->need_plug && def->plug) {
1820:				state->plug_started = true;
1821:				state->need_plug = false;
1822:				blk_start_plug_nr_ios(&state->plug, state->submit_nr);
1823:			}
1824:		}
1825:	
1826:		personality = READ_ONCE(sqe->personality);
1827:		if (personality) {
1828:			int ret;
1829:	
1830:			req->creds = xa_load(&ctx->personalities, personality);
1831:			if (!req->creds)
1832:				return io_init_fail_req(req, -EINVAL);
1833:			get_cred(req->creds);
1834:			ret = security_uring_override_creds(req->creds);
1835:			if (ret) {
1836:				put_cred(req->creds);
1837:				return io_init_fail_req(req, ret);
1838:			}
1839:			req->flags |= REQ_F_CREDS;
1840:		}
1841:	
1842:		return def->prep(req, sqe);
1843:	}
 SourceFile:io_uring/io_uring.c]

34/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27566
							output: 40
							thoughts: 136
						

Thoughts:
**Analyzing the I/O Submission Process**

Okay, let me break this down. So, `io_init_req` is the key function here, and it’s calling `def->prep(req, sqe)`. Right, and for `IORING_OP_URING_CMD`, that `def->prep` function turns out to be `io_uring_cmd_prep`. Now, if `io_uring_cmd_prep` throws an error, `io_init_req` just passes that error right back. Makes sense. But wait, `io_uring_cmd_prep` returns a zero on success, which is a bit unusual, but I can work with that. Got it. So, if `io_init_req` itself fails and returns an error, then `io_submit_sqe` calls `io_submit_fail_init`. Okay, let's drill down into `io_submit_fail_init` and understand what's happening there.



35/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_fail_init]

Results:
map[SourceCode:1845:	static __cold int io_submit_fail_init(const struct io_uring_sqe *sqe,
1846:					      struct io_kiocb *req, int ret)
1847:	{
1848:		struct io_ring_ctx *ctx = req->ctx;
1849:		struct io_submit_link *link = &ctx->submit_state.link;
1850:		struct io_kiocb *head = link->head;
1851:	
1852:		trace_io_uring_req_failed(sqe, req, ret);
1853:	
1854:		/*
1855:		 * Avoid breaking links in the middle as it renders links with SQPOLL
1856:		 * unusable. Instead of failing eagerly, continue assembling the link if
1857:		 * applicable and mark the head with REQ_F_FAIL. The link flushing code
1858:		 * should find the flag and handle the rest.
1859:		 */
1860:		req_fail_link_node(req, ret);
1861:		if (head && !(head->flags & REQ_F_FAIL))
1862:			req_fail_link_node(head, -ECANCELED);
1863:	
1864:		if (!(req->flags & IO_REQ_LINK_FLAGS)) {
1865:			if (head) {
1866:				link->last->link = req;
1867:				link->head = NULL;
1868:				req = head;
1869:			}
1870:			io_queue_sqe_fallback(req);
1871:			return ret;
1872:		}
1873:	
1874:		if (head)
1875:			link->last->link = req;
1876:		else
1877:			link->head = req;
1878:		link->last = req;
1879:		return 0;
1880:	}
 SourceFile:io_uring/io_uring.c]

36/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28522
							output: 39
							thoughts: 65
						

Thoughts:
Okay, let's break this down.

**Diving into the io_uring submission process**

Hmm, so `io_submit_sqe` isn't going to return an error if `io_init_req` worked out. That's good, but it means I need to look deeper at the subsequent steps. If `io_init_req` is successful, it's clear `io_submit_sqe` is going to move on and call `io_queue_sqe`. Makes sense. So, my next logical step is to analyze `io_queue_sqe`. I need to figure out what's happening there to understand how the submission process really works. Let's get to it.



37/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_sqe]

Results:
map[SourceCode:1642:	static inline void io_queue_sqe(struct io_kiocb *req, unsigned int extra_flags)
1643:		__must_hold(&req->ctx->uring_lock)
1644:	{
1645:		unsigned int issue_flags = IO_URING_F_NONBLOCK |
1646:					   IO_URING_F_COMPLETE_DEFER | extra_flags;
1647:		int ret;
1648:	
1649:		ret = io_issue_sqe(req, issue_flags);
1650:	
1651:		/*
1652:		 * We async punt it if the file wasn't marked NOWAIT, or if the file
1653:		 * doesn't support non-blocking read/write attempts
1654:		 */
1655:		if (unlikely(ret))
1656:			io_queue_async(req, issue_flags, ret);
1657:	}
 SourceFile:io_uring/io_uring.c]

38/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29069
							output: 39
							thoughts: 12
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Investigating `io_issue_sqe`**

Alright, time to dive in. `io_issue_sqe`... that rings a bell. Let's see, I need to jog my memory, what was I working on? Ah yes, that performance bottleneck. Right, `io_issue_sqe` is where a significant chunk of the IO processing time could be. Gotta pinpoint exactly what's going on within that function. I need to refresh my knowledge of the kernel calls involved, and understand the logic to be certain if there's an optimization opportunity here. Let me check the documentation on this. Time to get some answers.



39/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_issue_sqe]

Results:
map[SourceCode:1410:	static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_flags)
1411:	{
1412:		const struct io_issue_def *def = &io_issue_defs[req->opcode];
1413:		int ret;
1414:	
1415:		if (unlikely(!io_assign_file(req, def, issue_flags)))
1416:			return -EBADF;
1417:	
1418:		ret = __io_issue_sqe(req, issue_flags, def);
1419:	
1420:		if (ret == IOU_COMPLETE) {
1421:			if (issue_flags & IO_URING_F_COMPLETE_DEFER)
1422:				io_req_complete_defer(req);
1423:			else
1424:				io_req_complete_post(req, issue_flags);
1425:	
1426:			return 0;
1427:		}
1428:	
1429:		if (ret == IOU_ISSUE_SKIP_COMPLETE) {
1430:			ret = 0;
1431:	
1432:			if (req->flags & REQ_F_IOPOLL)
1433:				io_iopoll_req_issued(req, issue_flags);
1434:		}
1435:		return ret;
1436:	}
 SourceFile:io_uring/io_uring.c]

40/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29708
							output: 38
							thoughts: 88
						

Thoughts:
Okay, let's break this down.

**Potential IO Failure Analysis**

Hmm, so `io_assign_file` *can* fail. I hadn't explicitly considered that, but it makes sense – file handles are always a source of potential issues. If `io_assign_file` does indeed error out, it's going to return `-EBADF`, which is a pretty standard "bad file descriptor" error code.

Now, if `io_assign_file` fails, that `-EBADF` is then returned by `io_issue_sqe`. Makes perfect sense; the submission queue entry (SQE) can't be issued because the underlying file descriptor is invalid.

This leads to the crucial part: `io_queue_sqe` calling `io_queue_async(req, issue_flags, -EBADF)`. I need to ensure this is handled correctly. Essentially, a failed `io_assign_file` propagates the `-EBADF` error up the stack. It's time to dig into the implementation of `io_queue_async` to see how it specifically processes this error. I need to understand how the asynchronous operation is informed of the failure and what the recovery path looks like.



41/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_async]

Results:
map[SourceCode:1617:	static void io_queue_async(struct io_kiocb *req, unsigned int issue_flags, int ret)
1618:		__must_hold(&req->ctx->uring_lock)
1619:	{
1620:		if (ret != -EAGAIN || (req->flags & REQ_F_NOWAIT)) {
1621:	fail:
1622:			io_req_defer_failed(req, ret);
1623:			return;
1624:		}
1625:	
1626:		ret = io_req_sqe_copy(req, issue_flags);
1627:		if (unlikely(ret))
1628:			goto fail;
1629:	
1630:		switch (io_arm_poll_handler(req, 0)) {
1631:		case IO_APOLL_READY:
1632:			io_req_task_queue(req);
1633:			break;
1634:		case IO_APOLL_ABORTED:
1635:			io_queue_iowq(req);
1636:			break;
1637:		case IO_APOLL_OK:
1638:			break;
1639:		}
1640:	}
 SourceFile:io_uring/io_uring.c]

42/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30479
							output: 40
							thoughts: 39
						

Thoughts:
Okay, here's my interpretation of this logic, phrased as if it were my thought process:

**Diving into the Error Handling**

Alright, so I see a critical point here. If the return value (`ret`) is `-EBADF` (that classic "Bad File Descriptor" error), the code immediately jumps to `io_req_defer_failed(req, ret)`. My immediate thought is, "Okay, that's the error handling path for this specific scenario." I need to understand what that function, `io_req_defer_failed`, actually *does*. What's the plan when a file descriptor goes south during this I/O operation? It's time to dig into the definition of `io_req_defer_failed` and see how it responds to the error. I'm wondering what the deferral strategy is, what the implications are for the request, and how the system attempts recovery or further error propagation. I need to understand this to have a robust understanding of the system’s error handling.



43/2 2026/08/09 12:03 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_defer_failed]

Results:
map[SourceCode: 957:	void io_req_defer_failed(struct io_kiocb *req, s32 res)
 958:		__must_hold(&ctx->uring_lock)
 959:	{
 960:		const struct io_cold_def *def = &io_cold_defs[req->opcode];
 961:	
 962:		lockdep_assert_held(&req->ctx->uring_lock);
 963:	
 964:		req_set_fail(req);
 965:		io_req_set_res(req, res, io_put_kbuf(req, res, NULL));
 966:		if (def->fail)
 967:			def->fail(req);
 968:		io_req_complete_defer(req);
 969:	}
 SourceFile:io_uring/io_uring.c]

44/2 2026/08/09 12:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31027
							output: 40
							thoughts: 38
						

Thoughts:
Okay, let's see...

**Deconstructing `io_req_defer_failed`**

Right, so `io_req_defer_failed`... that function, if I recall correctly, calls `io_req_complete_defer(req)`.  Interesting.  That’s where things get interesting.  Now my brain goes straight to `io_req_complete_defer`.  I need to revisit that function and see what it actually *does* in this context. It's the key to understanding the failure path, so let's delve into its implementation to see how it handles the deferred request. What state is it setting? What resources is it releasing, or not releasing? What's the complete process happening there?



45/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:io_req_complete_defer]

Results:
map[SourceCode: 484:	/*
 485:	 * Don't complete immediately but use deferred completion infrastructure.
 486:	 * Protected by ->uring_lock and can only be used either with
 487:	 * IO_URING_F_COMPLETE_DEFER or inside a tw handler holding the mutex.
 488:	 */
 489:	static inline void io_req_complete_defer(struct io_kiocb *req)
 490:		__must_hold(&req->ctx->uring_lock)
 491:	{
 492:		struct io_submit_state *state = &req->ctx->submit_state;
 493:	
 494:		lockdep_assert_held(&req->ctx->uring_lock);
 495:	
 496:		wq_list_add_tail(&req->comp_list, &state->compl_reqs);
 497:	}
 SourceFile:io_uring/io_uring.h]

46/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31530
							output: 40
							thoughts: 68
						

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

**Diving Deep into Asynchronous I/O Completion**

Okay, so I'm looking at how asynchronous I/O requests are handled, specifically focusing on how they're *completed*. My immediate concern is how requests deferred by `io_req_complete_defer` are ultimately finalized. The key is that `io_req_complete_defer` puts them onto `state->compl_reqs`. That's the *what*. Now I need to figure out the *when*. When do these pending completed requests actually get, well, *completed*?

The code seems to point towards `io_submit_sqes` as a potential point of interest. Specifically, I see it calls `io_submit_state_end(ctx)`. That sounds like the right place to start digging deeper. I'm going to shift my focus there and see what `io_submit_state_end` is doing. Hopefully, that function will reveal the mechanism that handles processing the `compl_reqs` queue. I'll need to understand how the requests from this queue are processed and ultimately marked as done.



47/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_state_end]

Results:
map[SourceCode:1938:	/*
1939:	 * Batched submission is done, ensure local IO is flushed out.
1940:	 */
1941:	static void io_submit_state_end(struct io_ring_ctx *ctx)
1942:	{
1943:		struct io_submit_state *state = &ctx->submit_state;
1944:	
1945:		if (unlikely(state->link.head))
1946:			io_queue_sqe_fallback(state->link.head);
1947:		/* flush only after queuing links as they can generate completions */
1948:		io_submit_flush_completions(ctx);
1949:		if (state->plug_started)
1950:			blk_finish_plug(&state->plug);
1951:	}
 SourceFile:io_uring/io_uring.c]

48/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32133
							output: 42
							thoughts: 15
						

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

**Diving into `io_submit_flush_completions`**

Okay, time to check in on `io_submit_flush_completions`. I'm going to start with a mental model of how I *think* it should function, particularly within the context of the larger block I/O stack. I need to refresh my understanding of where this function fits in with the submission queue, completion queue, and the overall asynchronous I/O paradigm. Specifically, I'm interested in how it handles flushing – both logically and physically. What guarantees does it provide? Does it ensure all submitted I/Os are on their way to storage? Does it address any subtle race conditions or ordering problems? Any specific considerations for different storage backends? Is this related to memory barriers? The documentation and source code are the key, but a quick scan of related code paths might be faster to refresh my understanding before a deep dive. Ultimately, I need to understand its edge cases. Are there specific situations, potentially in the context of power failures or unexpected errors, where `io_submit_flush_completions` might lead to data integrity issues? That's what I'm looking for.



49/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_flush_completions]

Results:
map[SourceCode: 248:	static inline void io_submit_flush_completions(struct io_ring_ctx *ctx)
 249:	{
 250:		if (!wq_list_empty(&ctx->submit_state.compl_reqs) ||
 251:		    ctx->submit_state.cq_flush)
 252:			__io_submit_flush_completions(ctx);
 253:	}
 SourceFile:io_uring/io_uring.h]

50/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32597
							output: 43
							thoughts: 28
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:

**Navigating the io_uring Landscape**

Okay, hold on a second. I need to make sure I'm looking in the right place for this `io_uring` related stuff. Right, right... it's definitely in `io_uring.h`. Let's confirm that first. Good.

Now, my focus is on how completions are handled. Let's dig into the details and make sure I know how this flush process is implemented, specifically. Time to jump over to inspect `__io_submit_flush_completions`. I'll need to dissect its purpose and how it plays into the overall `io_uring` machinery.



51/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__io_submit_flush_completions]

Results:
map[SourceCode:1136:	void __io_submit_flush_completions(struct io_ring_ctx *ctx)
1137:		__must_hold(&ctx->uring_lock)
1138:	{
1139:		struct io_submit_state *state = &ctx->submit_state;
1140:		struct io_wq_work_node *node;
1141:	
1142:		__io_cq_lock(ctx);
1143:		__wq_list_for_each(node, &state->compl_reqs) {
1144:			struct io_kiocb *req = container_of(node, struct io_kiocb,
1145:						    comp_list);
1146:	
1147:			/*
1148:			 * Requests marked with REQUEUE should not post a CQE, they
1149:			 * will go through the io-wq retry machinery and post one
1150:			 * later.
1151:			 */
1152:			if (!(req->flags & (REQ_F_CQE_SKIP | REQ_F_REISSUE)) &&
1153:			    unlikely(!io_fill_cqe_req(ctx, req))) {
1154:				if (ctx->int_flags & IO_RING_F_LOCKLESS_CQ)
1155:					io_cqe_overflow(ctx, &req->cqe, &req->big_cqe);
1156:				else
1157:					io_cqe_overflow_locked(ctx, &req->cqe, &req->big_cqe);
1158:			}
1159:		}
1160:		__io_cq_unlock_post(ctx);
1161:	
1162:		if (!wq_list_empty(&state->compl_reqs)) {
1163:			io_free_batch_list(ctx, state->compl_reqs.first);
1164:			INIT_WQ_LIST(&state->compl_reqs);
1165:		}
1166:	
1167:		if (unlikely(ctx->int_flags & IO_RING_F_DRAIN_ACTIVE))
1168:			io_queue_deferred(ctx);
1169:	
1170:		ctx->submit_state.cq_flush = false;
1171:	}
 SourceFile:io_uring/io_uring.c]

52/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33480
							output: 40
							thoughts: 29
						

Thoughts:
Okay, here's my take on those thoughts, framed as my own mental process, given my expertise:

**Checking `io_free_batch_list`'s Behavior**

Right, that's interesting. I just realized that `io_free_batch_list` is actually responsible for freeing the I/O requests themselves. I need to make absolutely sure that is what's happening. I can't just take it on faith! The memory management within this I/O subsystem is critical for performance and stability. A subtle bug here could lead to cascading issues. Let me quickly double-check the code for `io_free_batch_list` and its interactions. I need to refresh my memory on the exact data structures it operates on and how the requests are deallocated. My mind needs to make sure all of the memory is released appropriately so that we don't encounter any memory leaks or corruption.



53/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_free_batch_list]

Results:
map[SourceCode:1094:	static void io_free_batch_list(struct io_ring_ctx *ctx,
1095:				       struct io_wq_work_node *node)
1096:		__must_hold(&ctx->uring_lock)
1097:	{
1098:		do {
1099:			struct io_kiocb *req = container_of(node, struct io_kiocb,
1100:							    comp_list);
1101:	
1102:			if (unlikely(req->flags & IO_REQ_CLEAN_SLOW_FLAGS)) {
1103:				if (req->flags & REQ_F_REISSUE) {
1104:					node = req->comp_list.next;
1105:					req->flags &= ~REQ_F_REISSUE;
1106:					io_queue_iowq(req);
1107:					continue;
1108:				}
1109:				if (req->flags & REQ_F_REFCOUNT) {
1110:					node = req->comp_list.next;
1111:					if (!req_ref_put_and_test(req))
1112:						continue;
1113:				}
1114:				if ((req->flags & REQ_F_POLLED) && req->apoll) {
1115:					struct async_poll *apoll = req->apoll;
1116:	
1117:					if (apoll->double_poll)
1118:						kfree(apoll->double_poll);
1119:					io_cache_free(&ctx->apoll_cache, apoll);
1120:					req->flags &= ~REQ_F_POLLED;
1121:				}
1122:				if (req->flags & IO_REQ_LINK_FLAGS)
1123:					io_queue_next(req);
1124:				if (unlikely(req->flags & IO_REQ_CLEAN_FLAGS))
1125:					io_clean_op(req);
1126:			}
1127:			io_put_file(req);
1128:			io_req_put_rsrc_nodes(req);
1129:			io_put_task(req);
1130:	
1131:			node = req->comp_list.next;
1132:			io_req_add_to_cache(req, ctx);
1133:		} while (node);
1134:	}
 SourceFile:io_uring/io_uring.c]

54/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34436
							output: 41
							thoughts: 50
						

Thoughts:
Okay, let me think this through.

**Digging into I/O Request Cleanup**

Hmm, so `io_free_batch_list` is the function that handles releasing a batch of I/O requests. It looks like it calls `io_clean_op(req)` for each request (`req`) in the batch, *but* only under a specific condition: if the request's flags include `IO_REQ_CLEAN_FLAGS`. That's the key. I need to understand what `IO_REQ_CLEAN_FLAGS` actually means. This flag must determine whether the request needs special cleanup beyond a simple memory deallocation. It’s likely related to flushing caches, releasing resources, or other operations specific to the I/O request’s type or state. I need to trace where `IO_REQ_CLEAN_FLAGS` is set and what the `io_clean_op` function does to get a complete understanding of the I/O lifecycle in this system. This is where the intricacies of the driver or file system behavior likely come into play.



55/2 2026/08/09 12:04 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:io_uring/io_uring.h Name:IO_REQ_CLEAN_FLAGS]

Results:
map[SourceCode: SourceFile:]

56/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34775
							output: 24
							thoughts: 15
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing IO Request Cleaning Flags**

Right, let's dive in. My immediate instinct, given the context, is to reach for `grep`. I want to quickly understand the landscape surrounding `IO_REQ_CLEAN_FLAGS`. It's likely a macro or constant definition within the kernel or a specific driver, and `grep` is the quickest way to unearth its usage. I'm not looking for a needle in a haystack; I'm after a broad understanding. The goal is to see where this flag is defined, how it's used within structs, and, ultimately, how it interacts with other related variables and functions. My expectation is a quick dive into the codebase will be enough to provide insights. I will make a decision on whether to delve into the code in more detail after the `grep`.



57/2 2026/08/09 12:04 tool grepper
0m Args:
map[Expression:#define IO_REQ_CLEAN_FLAGS]

Results:
map[Output:io_uring/io_uring.c-105-
io_uring/io_uring.c:106:#define IO_REQ_CLEAN_FLAGS (REQ_F_BUFFER_SELECTED | REQ_F_NEED_CLEANUP | \
io_uring/io_uring.c-107-				REQ_F_INFLIGHT | REQ_F_CREDS | REQ_F_ASYNC_DATA)
]

58/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35116
							output: 42
							thoughts: 382
						

Thoughts:
**Debugging a Potential Memory Leak**

Okay, so I'm looking at this code and trying to figure out this reported memory leak. Let's see... `REQ_F_ASYNC_DATA` is defined within `IO_REQ_CLEAN_FLAGS`. If the `req->flags` have that bit set, then `io_clean_op` gets called. And `io_clean_op` *should* call `kfree(req->async_data)`. Wait a minute... if `io_clean_op` frees `async_data`, then it shouldn't be leaked, right? The bug report says `async_data` IS leaked! And they're saying `io_kiocb` is leaked too!

If `io_kiocb` is leaked, then `io_free_batch_list` isn't being called for it, or it isn't being freed within `io_free_batch_list`. Why would `io_kiocb` be leaked though? Let me go over `io_free_batch_list` again. Ah, right, it calls `io_req_add_to_cache(req, ctx)`. Hang on... `io_req_add_to_cache` puts the request into the cache!

If it's in the cache, it shouldn't be leaked because `kmemleak` wouldn't report it if it's reachable from `ctx`. But the `kmemleak` report says it's unreferenced! If it's unreferenced, that means it's *not* in the cache, or the cache itself is freed but the objects aren't? No, if the cache is freed, the objects should be freed. Right, `io_req_add_to_cache` puts it into `ctx->req_cache`. Okay, time to double-check `io_req_add_to_cache`. This is where I'll find the problem.



59/2 2026/08/09 12:04 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_add_to_cache]

Results:
map[SourceCode: 179:	static inline void io_req_add_to_cache(struct io_kiocb *req, struct io_ring_ctx *ctx)
 180:	{
 181:		if (IS_ENABLED(CONFIG_KASAN))
 182:			io_poison_cached_req(req);
 183:		wq_stack_add_head(&req->comp_list, &ctx->submit_state.free_list);
 184:	}
 SourceFile:io_uring/io_uring.c]

60/2 2026/08/09 12:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36118
							output: 40
							thoughts: 93
						

Thoughts:
**Investigating a Potentially Unreferenced Request**

Okay, so I'm looking at this code and I've hit a head-scratcher. Specifically, I'm focused on the `ctx->submit_state.free_list`. I see that this is a `wq_stack`, which is interesting in itself. The thing that's throwing me is, if the request is in this `free_list`, it should be inherently reachable from the `ctx` struct. So the question is: why would it ever appear to be unreferenced? That doesn't make logical sense based on how the data structures are set up, so there has to be something I'm missing.

My immediate thought is that perhaps the `ctx` itself is being freed prematurely. If that were the case, the `io_ring_ctx_free` function should be responsible for cleaning up the `free_list`. That seems like the most logical explanation, so I need to verify that assumption. Therefore, I need to dig into `io_ring_ctx_free` and see what it actually does. I'm going to start there.



61/2 2026/08/09 12:05 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_ring_ctx_free]

Results:
map[SourceCode:2163:	static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)
2164:	{
2165:		io_unregister_bpf_ops(ctx);
2166:		io_sq_thread_finish(ctx);
2167:	
2168:		mutex_lock(&ctx->uring_lock);
2169:		io_sqe_buffers_unregister(ctx);
2170:		io_sqe_files_unregister(ctx);
2171:		io_unregister_zcrx(ctx);
2172:		io_cqring_overflow_kill(ctx);
2173:		io_eventfd_unregister(ctx);
2174:		io_free_alloc_caches(ctx);
2175:		io_destroy_buffers(ctx);
2176:		io_free_region(ctx->user, &ctx->param_region);
2177:		mutex_unlock(&ctx->uring_lock);
2178:		if (ctx->sq_creds)
2179:			put_cred(ctx->sq_creds);
2180:		if (ctx->submitter_task)
2181:			put_task_struct(ctx->submitter_task);
2182:	
2183:		WARN_ON_ONCE(!list_empty(&ctx->ltimeout_list));
2184:	
2185:		if (ctx->mm_account) {
2186:			mmdrop(ctx->mm_account);
2187:			ctx->mm_account = NULL;
2188:		}
2189:		io_rings_free(ctx);
2190:	
2191:		if (!(ctx->flags & IORING_SETUP_NO_SQARRAY))
2192:			static_branch_slow_dec_deferred(&io_key_has_sqarray);
2193:	
2194:		percpu_ref_exit(&ctx->refs);
2195:		free_uid(ctx->user);
2196:		io_req_caches_free(ctx);
2197:	
2198:		if (ctx->restrictions.bpf_filters) {
2199:			WARN_ON_ONCE(ctx->bpf_filters !=
2200:				     ctx->restrictions.bpf_filters->filters);
2201:		} else {
2202:			WARN_ON_ONCE(ctx->bpf_filters);
2203:		}
2204:		io_put_bpf_filters(&ctx->restrictions);
2205:	
2206:		WARN_ON_ONCE(ctx->nr_req_allocated);
2207:	
2208:		if (ctx->hash_map)
2209:			io_wq_put_hash(ctx->hash_map);
2210:		io_napi_free(ctx);
2211:		kvfree(ctx->cancel_table.hbs);
2212:		xa_destroy(&ctx->io_bl_xa);
2213:		xa_destroy(&ctx->hpage_acct);
2214:		kfree(ctx);
2215:	}
 SourceFile:io_uring/io_uring.c]

62/2 2026/08/09 12:05 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37357
							output: 40
							thoughts: 32
						

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

**Analyzing the Memory Management in `io_req_caches_free`**

Okay, so I'm thinking about `io_req_caches_free`. The crucial part here is the name: it's freeing caches related to I/O requests. The core question is always, "What exactly is being freed?" The name strongly implies it's freeing cached data structures associated with I/O requests.

Now, that brings me to the critical function: does this free `free_list`? The name is somewhat cryptic. Let's delve into the function itself. A review of the source code is going to be necessary to figure out what happens. Understanding how that `free_list` is handled is absolutely vital to ensuring there are no memory leaks or corruption. I need to confirm whether `io_req_caches_free` *actually* releases the memory managed by that list. That's the key.



63/2 2026/08/09 12:06 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_caches_free]

Results:
map[SourceCode:2157:	static __cold void io_req_caches_free(struct io_ring_ctx *ctx)
2158:	{
2159:		guard(mutex)(&ctx->uring_lock);
2160:		__io_req_caches_free(ctx);
2161:	}
 SourceFile:io_uring/io_uring.c]

64/2 2026/08/09 12:06 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37748
							output: 41
							thoughts: 14
						

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

**Diving into `__io_req_caches_free`**

Alright, let's take a look at `__io_req_caches_free`. Given its name, my initial assumption is that this function is responsible for releasing or clearing some kind of cache related to I/O requests. It's prefixed with a double underscore, so it's likely an internal function, not meant to be directly called by user-space code. That makes sense; these types of routines often deal with the gritty details of resource management within the kernel. I'll need to dig deeper to understand the specifics of what kinds of caches are being freed and why. I'm assuming it's part of the I/O stack, probably somewhere lower-level than the block layer, and I need to check the exact implementation to confirm this. What I will be looking for is the data structure being targeted for the cache, how the system deals with references to the cached data, and what the cache does in general.



65/2 2026/08/09 12:07 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__io_req_caches_free]

Results:
map[SourceCode:2140:	static __cold void __io_req_caches_free(struct io_ring_ctx *ctx)
2141:	{
2142:		struct io_kiocb *req;
2143:		int nr = 0;
2144:	
2145:		while (!io_req_cache_empty(ctx)) {
2146:			req = io_extract_req(ctx);
2147:			io_poison_req(req);
2148:			kmem_cache_free(req_cachep, req);
2149:			nr++;
2150:		}
2151:		if (nr) {
2152:			ctx->nr_req_allocated -= nr;
2153:			percpu_ref_put_many(&ctx->refs, nr);
2154:		}
2155:	}
 SourceFile:io_uring/io_uring.c]

66/2 2026/08/09 12:07 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38290
							output: 39
							thoughts: 180
						

Thoughts:
**Debugging a Potential I/O Completion Leak**

Okay, so I'm chasing a potential leak here, likely with an `io_kiocb`. The initial assumption is that if `io_extract_req` pulls an item from the `free_list`, and the `io_kiocb` is *leaked*, then it logically *wouldn't* be in the `free_list`. That's the starting point.

Where else could this rogue `io_kiocb` be? My first thought was maybe it's lingering in `ctx->submit_state.link.head`, but that seems unlikely because `io_submit_state_end` should flush that using `io_queue_sqe_fallback`. It *should* be moved out of there. Could it be stuck in `ctx->submit_state.compl_reqs`? But that's usually handled by `io_submit_flush_completions`, right?

Ah, hold on... what if `io_submit_sqes` returns prematurely, bypassing the cleanup logic in `io_submit_state_end`? That's a definite possibility. I need to re-examine `io_submit_sqes` very carefully. It could be the linchpin.



67/2 2026/08/09 12:07 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_sqes]

Results:
map[SourceCode:2022:	int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
2023:		__must_hold(&ctx->uring_lock)
2024:	{
2025:		unsigned int entries;
2026:		unsigned int left;
2027:		int ret;
2028:	
2029:		if (ctx->flags & IORING_SETUP_SQ_REWIND)
2030:			entries = ctx->sq_entries;
2031:		else
2032:			entries = __io_sqring_entries(ctx);
2033:	
2034:		entries = min(nr, entries);
2035:		if (unlikely(!entries))
2036:			return 0;
2037:	
2038:		ret = left = entries;
2039:		io_get_task_refs(left);
2040:		io_submit_state_start(&ctx->submit_state, left);
2041:	
2042:		do {
2043:			const struct io_uring_sqe *sqe;
2044:			struct io_kiocb *req;
2045:	
2046:			if (unlikely(!io_alloc_req(ctx, &req)))
2047:				break;
2048:			if (unlikely(!io_get_sqe(ctx, &sqe))) {
2049:				io_req_add_to_cache(req, ctx);
2050:				break;
2051:			}
2052:	
2053:			/*
2054:			 * Continue submitting even for sqe failure if the
2055:			 * ring was setup with IORING_SETUP_SUBMIT_ALL
2056:			 */
2057:			if (unlikely(io_submit_sqe(ctx, req, sqe, &left)) &&
2058:			    !(ctx->flags & IORING_SETUP_SUBMIT_ALL)) {
2059:				left--;
2060:				break;
2061:			}
2062:		} while (--left);
2063:	
2064:		if (unlikely(left)) {
2065:			ret -= left;
2066:			/* try again if it submitted nothing and can't allocate a req */
2067:			if (!ret && io_req_cache_empty(ctx))
2068:				ret = -EAGAIN;
2069:			current->io_uring->cached_refs += left;
2070:		}
2071:	
2072:		io_submit_state_end(ctx);
2073:		 /* Commit SQ ring head once we've consumed and submitted all SQEs */
2074:		io_commit_sqring(ctx);
2075:		return ret;
2076:	}
 SourceFile:io_uring/io_uring.c]

68/2 2026/08/09 12:07 llm expert
2m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39587
							output: 40
							thoughts: 113
						

Thoughts:
**Analyzing the I/O Submission Process**

Okay, so I'm focusing on the I/O submission function. It seems pretty clear that `io_submit_state_end` is always called at some point, which is good. But then the thought strikes me: what if `io_submit_sqe` returns an error *before* the loop completes? Does that create a hole in the logic? That would be a major problem.

Aha! Now I remember... if `io_submit_sqe` does indeed return an error, that strongly suggests that `io_submit_fail_init` had already returned an error. We need to follow the chain of logic.

Right, so `io_submit_fail_init` is the key. Let me drill down and double-check how it handles things, because the logic seemed a little tangled. I vaguely recall that `io_submit_fail_init` returns the value of `ret` if the request's flags don't include the `IO_REQ_LINK_FLAGS`. Time to revisit that function to be certain.



69/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_fail_init]

Results:
map[SourceCode:1845:	static __cold int io_submit_fail_init(const struct io_uring_sqe *sqe,
1846:					      struct io_kiocb *req, int ret)
1847:	{
1848:		struct io_ring_ctx *ctx = req->ctx;
1849:		struct io_submit_link *link = &ctx->submit_state.link;
1850:		struct io_kiocb *head = link->head;
1851:	
1852:		trace_io_uring_req_failed(sqe, req, ret);
1853:	
1854:		/*
1855:		 * Avoid breaking links in the middle as it renders links with SQPOLL
1856:		 * unusable. Instead of failing eagerly, continue assembling the link if
1857:		 * applicable and mark the head with REQ_F_FAIL. The link flushing code
1858:		 * should find the flag and handle the rest.
1859:		 */
1860:		req_fail_link_node(req, ret);
1861:		if (head && !(head->flags & REQ_F_FAIL))
1862:			req_fail_link_node(head, -ECANCELED);
1863:	
1864:		if (!(req->flags & IO_REQ_LINK_FLAGS)) {
1865:			if (head) {
1866:				link->last->link = req;
1867:				link->head = NULL;
1868:				req = head;
1869:			}
1870:			io_queue_sqe_fallback(req);
1871:			return ret;
1872:		}
1873:	
1874:		if (head)
1875:			link->last->link = req;
1876:		else
1877:			link->head = req;
1878:		link->last = req;
1879:		return 0;
1880:	}
 SourceFile:io_uring/io_uring.c]

70/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40540
							output: 41
							thoughts: 30
						

Thoughts:
Here's my thought process, summarized as if I were considering the situation:

**Investigating a Potential Fallback Path**

Okay, the code's hit `io_queue_sqe_fallback`. That immediately flags a potential issue. This is likely a fallback mechanism, which is interesting. Let's dig into `io_queue_sqe_fallback` and see *why* it's being called. I need to understand what's triggering the use of this fallback, and whether it represents a graceful degradation, or indicates something more critical in the request handling process. I need to identify the conditions under which this is executed, and if I see any bottlenecks associated with the fallback operation itself. I'll need to consider this in light of the larger design of the I/O queueing system.



71/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_sqe_fallback]

Results:
map[SourceCode:1659:	static void io_queue_sqe_fallback(struct io_kiocb *req)
1660:		__must_hold(&req->ctx->uring_lock)
1661:	{
1662:		if (unlikely(req->flags & REQ_F_FAIL)) {
1663:			/*
1664:			 * We don't submit, fail them all, for that replace hardlinks
1665:			 * with normal links. Extra REQ_F_LINK is tolerated.
1666:			 */
1667:			req->flags &= ~REQ_F_HARDLINK;
1668:			req->flags |= REQ_F_LINK;
1669:			io_req_defer_failed(req, req->cqe.res);
1670:		} else {
1671:			/* can't fail with IO_URING_F_INLINE */
1672:			io_req_sqe_copy(req, IO_URING_F_INLINE);
1673:			if (unlikely(req->ctx->int_flags & IO_RING_F_DRAIN_ACTIVE))
1674:				io_drain_req(req);
1675:			else
1676:				io_queue_iowq(req);
1677:		}
1678:	}
 SourceFile:io_uring/io_uring.c]

72/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41159
							output: 40
							thoughts: 74
						

Thoughts:
Here's my thought process, as it stands:

**Digging into the io_uring Failure Path**

Okay, so I'm looking at how failures are handled in this `io_uring` implementation. Specifically, I'm focusing on the `io_queue_sqe_fallback` function. My initial thought is, "Wait a minute, if `REQ_F_FAIL` is set, `io_queue_sqe_fallback` immediately calls `io_req_defer_failed()`, passing along the request and the completion queue entry's result code." That seems like a pretty important branching point. It suggests that if a request is marked as a failure, it's short-circuited down a specific error path.

Now, where is `REQ_F_FAIL` being set? I remember seeing it related to a linked list node, and after a moment I'm positive, it's `req_fail_link_node` that manipulates that flag. Alright, so I need to understand what's happening within `req_fail_link_node`. Let's dive into that function and trace the possible reasons why a request might be marked as failed. This seems like the key to understanding how errors propagate within the system. I have to see what triggers that flag.



73/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:req_fail_link_node]

Results:
map[SourceCode: 173:	static inline void req_fail_link_node(struct io_kiocb *req, int res)
 174:	{
 175:		req_set_fail(req);
 176:		io_req_set_res(req, res, 0);
 177:	}
 SourceFile:io_uring/io_uring.c]

74/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41663
							output: 40
							thoughts: 157
						

Thoughts:
**Debugging a Potential Leak**

Okay, so `req_set_fail` triggers `REQ_F_FAIL`. That means `io_queue_sqe_fallback` kicks in and calls `io_req_defer_failed`, which is interesting. `io_req_defer_failed` then calls `io_req_complete_defer`. Ah, and *that* function adds the request to `ctx->submit_state.compl_reqs`.  Finally, `io_submit_state_end` is responsible for flushing `compl_reqs`.

So, the intended flow is clear: the request gets completed, which *should* mean it gets freed. But… there's this nagging feeling, a suspicion of a leak. If the request *should* be freed, why am I seeing the issue? Let's go back and examine `io_req_defer_failed` one more time. I need to make sure I haven't missed a crucial detail in that function. It's often the small things...



75/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_defer_failed]

Results:
map[SourceCode: 957:	void io_req_defer_failed(struct io_kiocb *req, s32 res)
 958:		__must_hold(&ctx->uring_lock)
 959:	{
 960:		const struct io_cold_def *def = &io_cold_defs[req->opcode];
 961:	
 962:		lockdep_assert_held(&req->ctx->uring_lock);
 963:	
 964:		req_set_fail(req);
 965:		io_req_set_res(req, res, io_put_kbuf(req, res, NULL));
 966:		if (def->fail)
 967:			def->fail(req);
 968:		io_req_complete_defer(req);
 969:	}
 SourceFile:io_uring/io_uring.c]

76/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42329
							output: 37
							thoughts: 30
						

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

**Decoding a `def->fail` Call in the I/O Ring Context**

Alright, so the code's jumping into `def->fail`. My mind immediately goes to, "Hang on, what's going on *now*? Why is the error path being hit?" Specifically, I'm thinking about the context of `IORING_OP_URING_CMD`. With that particular opcode in play, understanding *why* a failure is being triggered is critical. I'm mentally parsing the control flow. I need to understand what `def->fail` represents in the specific implementation context of the `IORING_OP_URING_CMD` operation. Is this a system call failure, a validation problem, or something else entirely? The type of error will determine what I'm looking for. What are the possible causes of a failure with that particular ring command, and what's the expected behavior when `def->fail` is engaged? I need to go back and trace the flow to see *what* exactly is meant by `def->fail`.



77/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/opdef.c Name:io_cold_defs]

Results:
map[SourceCode: 596:	const struct io_cold_def io_cold_defs[] = {
 597:		[IORING_OP_NOP] = {
 598:			.name			= "NOP",
 599:		},
 600:		[IORING_OP_READV] = {
 601:			.name			= "READV",
 602:			.cleanup		= io_readv_writev_cleanup,
 603:			.fail			= io_rw_fail,
 604:		},
 605:		[IORING_OP_WRITEV] = {
 606:			.name			= "WRITEV",
 607:			.cleanup		= io_readv_writev_cleanup,
 608:			.fail			= io_rw_fail,
 609:		},
 610:		[IORING_OP_FSYNC] = {
 611:			.name			= "FSYNC",
 612:		},
 613:		[IORING_OP_READ_FIXED] = {
 614:			.name			= "READ_FIXED",
 615:			.cleanup		= io_readv_writev_cleanup,
 616:			.fail			= io_rw_fail,
 617:		},
 618:		[IORING_OP_WRITE_FIXED] = {
 619:			.name			= "WRITE_FIXED",
 620:			.cleanup		= io_readv_writev_cleanup,
 621:			.fail			= io_rw_fail,
 622:		},
 623:		[IORING_OP_POLL_ADD] = {
 624:			.name			= "POLL_ADD",
 625:		},
 626:		[IORING_OP_POLL_REMOVE] = {
 627:			.name			= "POLL_REMOVE",
 628:		},
 629:		[IORING_OP_SYNC_FILE_RANGE] = {
 630:			.name			= "SYNC_FILE_RANGE",
 631:		},
 632:		[IORING_OP_SENDMSG] = {
 633:			.name			= "SENDMSG",
 634:	#if defined(CONFIG_NET)
 635:			.cleanup		= io_sendmsg_recvmsg_cleanup,
 636:			.fail			= io_sendrecv_fail,
 637:	#endif
 638:		},
 639:		[IORING_OP_RECVMSG] = {
 640:			.name			= "RECVMSG",
 641:	#if defined(CONFIG_NET)
 642:			.cleanup		= io_sendmsg_recvmsg_cleanup,
 643:			.fail			= io_sendrecv_fail,
 644:	#endif
 645:		},
 646:		[IORING_OP_TIMEOUT] = {
 647:			.name			= "TIMEOUT",
 648:		},
 649:		[IORING_OP_TIMEOUT_REMOVE] = {
 650:			.name			= "TIMEOUT_REMOVE",
 651:		},
 652:		[IORING_OP_ACCEPT] = {
 653:			.name			= "ACCEPT",
 654:		},
 655:		[IORING_OP_ASYNC_CANCEL] = {
 656:			.name			= "ASYNC_CANCEL",
 657:		},
 658:		[IORING_OP_LINK_TIMEOUT] = {
 659:			.name			= "LINK_TIMEOUT",
 660:		},
 661:		[IORING_OP_CONNECT] = {
 662:			.name			= "CONNECT",
 663:		},
 664:		[IORING_OP_FALLOCATE] = {
 665:			.name			= "FALLOCATE",
 666:		},
 667:		[IORING_OP_OPENAT] = {
 668:			.name			= "OPENAT",
 669:			.cleanup		= io_open_cleanup,
 670:		},
 671:		[IORING_OP_CLOSE] = {
 672:			.name			= "CLOSE",
 673:		},
 674:		[IORING_OP_FILES_UPDATE] = {
 675:			.name			= "FILES_UPDATE",
 676:		},
 677:		[IORING_OP_STATX] = {
 678:			.name			= "STATX",
 679:			.cleanup		= io_statx_cleanup,
 680:		},
 681:		[IORING_OP_READ] = {
 682:			.name			= "READ",
 683:			.cleanup		= io_readv_writev_cleanup,
 684:			.fail			= io_rw_fail,
 685:		},
 686:		[IORING_OP_WRITE] = {
 687:			.name			= "WRITE",
 688:			.cleanup		= io_readv_writev_cleanup,
 689:			.fail			= io_rw_fail,
 690:		},
 691:		[IORING_OP_FADVISE] = {
 692:			.name			= "FADVISE",
 693:		},
 694:		[IORING_OP_MADVISE] = {
 695:			.name			= "MADVISE",
 696:		},
 697:		[IORING_OP_SEND] = {
 698:			.name			= "SEND",
 699:	#if defined(CONFIG_NET)
 700:			.cleanup		= io_sendmsg_recvmsg_cleanup,
 701:			.fail			= io_sendrecv_fail,
 702:	#endif
 703:		},
 704:		[IORING_OP_RECV] = {
 705:			.name			= "RECV",
 706:	#if defined(CONFIG_NET)
 707:			.cleanup		= io_sendmsg_recvmsg_cleanup,
 708:			.fail			= io_sendrecv_fail,
 709:	#endif
 710:		},
 711:		[IORING_OP_OPENAT2] = {
 712:			.name			= "OPENAT2",
 713:			.cleanup		= io_open_cleanup,
 714:		},
 715:		[IORING_OP_EPOLL_CTL] = {
 716:			.name			= "EPOLL",
 717:		},
 718:		[IORING_OP_SPLICE] = {
 719:			.name			= "SPLICE",
 720:			.cleanup		= io_splice_cleanup,
 721:		},
 722:		[IORING_OP_PROVIDE_BUFFERS] = {
 723:			.name			= "PROVIDE_BUFFERS",
 724:		},
 725:		[IORING_OP_REMOVE_BUFFERS] = {
 726:			.name			= "REMOVE_BUFFERS",
 727:		},
 728:		[IORING_OP_TEE] = {
 729:			.name			= "TEE",
 730:			.cleanup		= io_splice_cleanup,
 731:		},
 732:		[IORING_OP_SHUTDOWN] = {
 733:			.name			= "SHUTDOWN",
 734:		},
 735:		[IORING_OP_RENAMEAT] = {
 736:			.name			= "RENAMEAT",
 737:			.cleanup		= io_renameat_cleanup,
 738:		},
 739:		[IORING_OP_UNLINKAT] = {
 740:			.name			= "UNLINKAT",
 741:			.cleanup		= io_unlinkat_cleanup,
 742:		},
 743:		[IORING_OP_MKDIRAT] = {
 744:			.name			= "MKDIRAT",
 745:			.cleanup		= io_mkdirat_cleanup,
 746:		},
 747:		[IORING_OP_SYMLINKAT] = {
 748:			.name			= "SYMLINKAT",
 749:			.cleanup		= io_link_cleanup,
 750:		},
 751:		[IORING_OP_LINKAT] = {
 752:			.name			= "LINKAT",
 753:			.cleanup		= io_link_cleanup,
 754:		},
 755:		[IORING_OP_MSG_RING] = {
 756:			.name			= "MSG_RING",
 757:			.cleanup		= io_msg_ring_cleanup,
 758:		},
 759:		[IORING_OP_FSETXATTR] = {
 760:			.name			= "FSETXATTR",
 761:			.cleanup		= io_xattr_cleanup,
 762:		},
 763:		[IORING_OP_SETXATTR] = {
 764:			.name			= "SETXATTR",
 765:			.cleanup		= io_xattr_cleanup,
 766:		},
 767:		[IORING_OP_FGETXATTR] = {
 768:			.name			= "FGETXATTR",
 769:			.cleanup		= io_xattr_cleanup,
 770:		},
 771:		[IORING_OP_GETXATTR] = {
 772:			.name			= "GETXATTR",
 773:			.cleanup		= io_xattr_cleanup,
 774:		},
 775:		[IORING_OP_SOCKET] = {
 776:			.name			= "SOCKET",
 777:		},
 778:		[IORING_OP_URING_CMD] = {
 779:			.name			= "URING_CMD",
 780:			.sqe_copy		= io_uring_cmd_sqe_copy,
 781:			.cleanup		= io_uring_cmd_cleanup,
 782:		},
 783:		[IORING_OP_SEND_ZC] = {
 784:			.name			= "SEND_ZC",
 785:	#if defined(CONFIG_NET)
 786:			.cleanup		= io_send_zc_cleanup,
 787:			.fail			= io_sendrecv_fail,
 788:	#endif
 789:		},
 790:		[IORING_OP_SENDMSG_ZC] = {
 791:			.name			= "SENDMSG_ZC",
 792:	#if defined(CONFIG_NET)
 793:			.cleanup		= io_send_zc_cleanup,
 794:			.fail			= io_sendrecv_fail,
 795:	#endif
 796:		},
 797:		[IORING_OP_READ_MULTISHOT] = {
 798:			.name			= "READ_MULTISHOT",
 799:			.cleanup		= io_readv_writev_cleanup,
 800:		},
 801:		[IORING_OP_WAITID] = {
 802:			.name			= "WAITID",
 803:		},
 804:		[IORING_OP_FUTEX_WAIT] = {
 805:			.name			= "FUTEX_WAIT",
 806:		},
 807:		[IORING_OP_FUTEX_WAKE] = {
 808:			.name			= "FUTEX_WAKE",
 809:		},
 810:		[IORING_OP_FUTEX_WAITV] = {
 811:			.name			= "FUTEX_WAITV",
 812:		},
 813:		[IORING_OP_FIXED_FD_INSTALL] = {
 814:			.name			= "FIXED_FD_INSTALL",
 815:		},
 816:		[IORING_OP_FTRUNCATE] = {
 817:			.name			= "FTRUNCATE",
 818:		},
 819:		[IORING_OP_BIND] = {
 820:			.name			= "BIND",
 821:		},
 822:		[IORING_OP_LISTEN] = {
 823:			.name			= "LISTEN",
 824:		},
 825:		[IORING_OP_RECV_ZC] = {
 826:			.name			= "RECV_ZC",
 827:		},
 828:		[IORING_OP_EPOLL_WAIT] = {
 829:			.name			= "EPOLL_WAIT",
 830:		},
 831:		[IORING_OP_READV_FIXED] = {
 832:			.name			= "READV_FIXED",
 833:			.cleanup		= io_readv_writev_cleanup,
 834:			.fail			= io_rw_fail,
 835:		},
 836:		[IORING_OP_WRITEV_FIXED] = {
 837:			.name			= "WRITEV_FIXED",
 838:			.cleanup		= io_readv_writev_cleanup,
 839:			.fail			= io_rw_fail,
 840:		},
 841:		[IORING_OP_PIPE] = {
 842:			.name			= "PIPE",
 843:		},
 844:		[IORING_OP_NOP128] = {
 845:			.name			= "NOP128",
 846:		},
 847:		[IORING_OP_URING_CMD128] = {
 848:			.name			= "URING_CMD128",
 849:			.sqe_copy		= io_uring_cmd_sqe_copy,
 850:			.cleanup		= io_uring_cmd_cleanup,
 851:		},
 852:	};
 SourceFile:io_uring/opdef.c]

78/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46556
							output: 40
							thoughts: 186
						

Thoughts:
**Decoding the `IORING_OP_URING_CMD` Cleanup Process**

Okay, hold on a second. This `IORING_OP_URING_CMD` operation... it has a `.cleanup` function defined as `io_uring_cmd_cleanup`, which seems sensible. But there's *no* `.fail` handler specified! That's strange. If `.fail` is left as NULL, `io_req_defer_failed` won't execute it, obviously. But, now that I think about it, `io_req_defer_failed` *does* call `io_req_complete_defer(req)`. Hmm...

And then, if I follow that thread further, `io_free_batch_list` subsequently calls `io_clean_op(req)` if the request's flags include `IO_REQ_CLEAN_FLAGS`. Ah, got it. `io_clean_op` itself then *checks* for the `REQ_F_NEED_CLEANUP` flag. And if it's set, then it *does* call the defer-provided cleanup routine using `def->cleanup(req)`.

So, the critical question becomes: is `REQ_F_NEED_CLEANUP` ever set for `IORING_OP_URING_CMD`? I need to know where and when this flag is added, which means I need to trace back through the code. Let me check how this operation is prepared, specifically within `io_uring_cmd_prep`. That's where I'll find my answer.



79/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_prep]

Results:
map[SourceCode: 184:	int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 185:	{
 186:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 187:		struct io_async_cmd *ac;
 188:	
 189:		if (sqe->__pad1)
 190:			return -EINVAL;
 191:	
 192:		ioucmd->flags = READ_ONCE(sqe->uring_cmd_flags);
 193:		if (ioucmd->flags & ~IORING_URING_CMD_MASK)
 194:			return -EINVAL;
 195:	
 196:		if (ioucmd->flags & IORING_URING_CMD_FIXED) {
 197:			if (ioucmd->flags & IORING_URING_CMD_MULTISHOT)
 198:				return -EINVAL;
 199:			req->buf_index = READ_ONCE(sqe->buf_index);
 200:		}
 201:	
 202:		if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
 203:		    !!(req->flags & REQ_F_BUFFER_SELECT))
 204:			return -EINVAL;
 205:	
 206:		ioucmd->cmd_op = READ_ONCE(sqe->cmd_op);
 207:	
 208:		ac = io_uring_alloc_async_data(&req->ctx->cmd_cache, req);
 209:		if (!ac)
 210:			return -ENOMEM;
 211:		ioucmd->sqe = sqe;
 212:		return 0;
 213:	}
 SourceFile:io_uring/uring_cmd.c]

80/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47653
							output: 42
							thoughts: 58
						

Thoughts:
**Async Data Allocation Inquiry**

Okay, so I'm digging into how `io_uring_alloc_async_data` works. The key takeaway, or rather, the thing that just popped to mind, is that it sets `REQ_F_ASYNC_DATA`. Right, makes sense. But, and this is the important follow-up, does it *also* set `REQ_F_NEED_CLEANUP`? That's the crucial question here, especially given the context of what I'm working on. I need to be absolutely sure about how the cleanup is handled in relation to this async data allocation. Better double-check the `io_uring_alloc_async_data` function itself. No sense relying on memory here. Time to dive back in.



81/2 2026/08/09 12:10 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:io_uring_alloc_async_data]

Results:
map[SourceCode: 351:	static inline void *io_uring_alloc_async_data(struct io_alloc_cache *cache,
 352:						      struct io_kiocb *req)
 353:	{
 354:		if (cache) {
 355:			req->async_data = io_cache_alloc(cache, GFP_KERNEL);
 356:		} else {
 357:			const struct io_issue_def *def = &io_issue_defs[req->opcode];
 358:	
 359:			WARN_ON_ONCE(!def->async_size);
 360:			req->async_data = kmalloc(def->async_size, GFP_KERNEL);
 361:		}
 362:		if (req->async_data)
 363:			req->flags |= REQ_F_ASYNC_DATA;
 364:		return req->async_data;
 365:	}
 SourceFile:io_uring/io_uring.h]

82/2 2026/08/09 12:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48199
							output: 40
							thoughts: 247
						

Thoughts:
**Analyzing a Potential Memory Leak**

Okay, so I'm looking at this code and something feels off. It looks like the system sets `REQ_F_ASYNC_DATA`, and that's a key flag to watch. Now, `io_clean_op` gets called, and it *should* clean up after a request. Specifically, I see it checks `REQ_F_NEED_CLEANUP` and calls `def->cleanup(req)`. It *also* checks `REQ_F_ASYNC_DATA`, and if that flag is set, it calls `kfree(req->async_data)`. That looks right, at first glance.

But wait a minute... `req->async_data` was allocated using `io_alloc_cache`! And I know that if `io_alloc_cache` is used, it means we're dealing with a `struct io_async_cmd`. Thinking it through, since `io_alloc_cache` actually calls `kmalloc` via `io_cache_alloc_new`, then `kfree` is perfectly valid here, that should be correct.

So, if `kfree` is valid, what's going on? Why are we seeing a leak? Something isn't connecting. It's got to be that `io_clean_op` *isn't* being called, and that's the key to the leak. Now, why wouldn't `io_clean_op` get called when it should? Time to go back and check `io_free_batch_list` again. I need to trace the flow and see where the cleanup is supposed to happen.



83/2 2026/08/09 12:11 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_free_batch_list]

Results:
map[SourceCode:1094:	static void io_free_batch_list(struct io_ring_ctx *ctx,
1095:				       struct io_wq_work_node *node)
1096:		__must_hold(&ctx->uring_lock)
1097:	{
1098:		do {
1099:			struct io_kiocb *req = container_of(node, struct io_kiocb,
1100:							    comp_list);
1101:	
1102:			if (unlikely(req->flags & IO_REQ_CLEAN_SLOW_FLAGS)) {
1103:				if (req->flags & REQ_F_REISSUE) {
1104:					node = req->comp_list.next;
1105:					req->flags &= ~REQ_F_REISSUE;
1106:					io_queue_iowq(req);
1107:					continue;
1108:				}
1109:				if (req->flags & REQ_F_REFCOUNT) {
1110:					node = req->comp_list.next;
1111:					if (!req_ref_put_and_test(req))
1112:						continue;
1113:				}
1114:				if ((req->flags & REQ_F_POLLED) && req->apoll) {
1115:					struct async_poll *apoll = req->apoll;
1116:	
1117:					if (apoll->double_poll)
1118:						kfree(apoll->double_poll);
1119:					io_cache_free(&ctx->apoll_cache, apoll);
1120:					req->flags &= ~REQ_F_POLLED;
1121:				}
1122:				if (req->flags & IO_REQ_LINK_FLAGS)
1123:					io_queue_next(req);
1124:				if (unlikely(req->flags & IO_REQ_CLEAN_FLAGS))
1125:					io_clean_op(req);
1126:			}
1127:			io_put_file(req);
1128:			io_req_put_rsrc_nodes(req);
1129:			io_put_task(req);
1130:	
1131:			node = req->comp_list.next;
1132:			io_req_add_to_cache(req, ctx);
1133:		} while (node);
1134:	}
 SourceFile:io_uring/io_uring.c]

84/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49537
							output: 26
							thoughts: 72
						

Thoughts:
**Decoding the Cleaning Flags**

Okay, hold on a second. I'm seeing a bit of a logical twist here with this `io_clean_op` function. It seems that `io_clean_op` gets called when `req->flags` has the `IO_REQ_CLEAN_FLAGS` bit set. That makes sense, that’s our cleaning operation call.

But, it's *nested* inside an `if` statement! Specifically, the check is `if (unlikely(req->flags & IO_REQ_CLEAN_SLOW_FLAGS))`. So, the cleaning operation is only performed if both `IO_REQ_CLEAN_FLAGS` *and* `IO_REQ_CLEAN_SLOW_FLAGS` are set. This means these two flags work in tandem.

My immediate question now is, what exactly does `IO_REQ_CLEAN_SLOW_FLAGS` represent? Is it a performance hint, a control flag for a specific cleaning strategy, or something else entirely? Understanding the meaning of that "slow" flag is critical for me to grasp the full purpose of this conditional execution path and its implications. I need to dig into the definitions and usage of that `IO_REQ_CLEAN_SLOW_FLAGS` bit to fully understand what’s happening here.



85/2 2026/08/09 12:11 tool grepper
0m Args:
map[Expression:#define IO_REQ_CLEAN_SLOW_FLAGS]

Results:
map[Output:io_uring/io_uring.c-108-
io_uring/io_uring.c:109:#define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | IO_REQ_LINK_FLAGS | \
io_uring/io_uring.c-110-				 REQ_F_REISSUE | REQ_F_POLLED | \
]

86/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50015
							output: 41
							thoughts: 78
						

Thoughts:
Okay, let me break this down.

**Diving into IO Request Flags**

Alright, hold on a second. I need to make sure I have this straight. It looks like `IO_REQ_CLEAN_SLOW_FLAGS` is actually a combination of several other flags: `REQ_F_REFCOUNT`, `IO_REQ_LINK_FLAGS`, `REQ_F_REISSUE`, `REQ_F_POLLED`, and then, of course, the general `IO_REQ_CLEAN_FLAGS`. I need to drill down and double check this. Best practice demands I get the full definition and ensure there aren't any subtle implications I'm missing. Time to review the source...



87/2 2026/08/09 12:11 tool grepper
0m Args:
map[Expression:#define IO_REQ_CLEAN_SLOW_FLAGS PathPrefix:io_uring/io_uring.c]

Results:
map[Output:io_uring/io_uring.c-108-
io_uring/io_uring.c:109:#define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | IO_REQ_LINK_FLAGS | \
io_uring/io_uring.c-110-				 REQ_F_REISSUE | REQ_F_POLLED | \
]

88/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50388
							output: 37
							thoughts: 25
						

Thoughts:
Okay, let's dive into this. Here's my take on those lines from `io_uring/io_uring.c`, summarized from an expert's perspective:

**Analyzing `io_uring/io_uring.c` Lines 109-111**

Alright, I'm specifically targeting lines 109-111 in `io_uring/io_uring.c`. Let's see what we're dealing with. Knowing the codebase, I'm already anticipating these lines are likely involved in either initialization, setup, or perhaps a core data structure manipulation. The placement near the beginning of the file suggests a fundamental aspect of the io_uring system's core operation, so I'll be looking for something crucial. Based on experience, I'd bet this section deals with the foundational setup or allocation required for the io_uring ring itself.



89/2 2026/08/09 12:11 tool read-file
0m Args:
map[File:io_uring/io_uring.c FirstLine:105 LineCount:10]

Results:
map[Contents: 105:	
 106:	#define IO_REQ_CLEAN_FLAGS (REQ_F_BUFFER_SELECTED | REQ_F_NEED_CLEANUP | \
 107:					REQ_F_INFLIGHT | REQ_F_CREDS | REQ_F_ASYNC_DATA)
 108:	
 109:	#define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | IO_REQ_LINK_FLAGS | \
 110:					 REQ_F_REISSUE | REQ_F_POLLED | \
 111:					 IO_REQ_CLEAN_FLAGS)
 112:	
 113:	#define IO_TCTX_REFS_CACHE_NR	(1U << 10)
 114:	
]

90/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50857
							output: 36
							thoughts: 289
						

Thoughts:
**Debugging a Potential Memory Leak**

Okay, so I'm tracking down this reported memory leak, specifically concerning `async_data`. Right, so `IO_REQ_CLEAN_SLOW_FLAGS` implies `IO_REQ_CLEAN_FLAGS`. If `REQ_F_ASYNC_DATA` is set, which it is, then `IO_REQ_CLEAN_SLOW_FLAGS` gets set. Therefore, `io_clean_op` *will* be called. And, if `io_clean_op` runs, it *will* call `kfree(req->async_data)`. So, conceptually, the `async_data` memory *should* be freed. But, it's still being flagged as leaked. Frustrating!

Hang on... I need to consider where these requests are going. `io_req_add_to_cache` puts the request into `ctx->submit_state.free_list`. Hmm, if it's on the `free_list`, it *shouldn't* be leaked, because the context `ctx` isn't leaked itself. Right? Or is it?

Let me think... Is `ctx` leaked? Because if `ctx` is leaked, then the `free_list` is leaked, and every request in that list would also be leaked. But, wait... `kmemleak` isn't reporting `ctx` as leaked! Okay, that's one less thing to worry about.

Now, wait... `kmemleak` *is* reporting `io_kiocb` as leaked. That's interesting. If an `io_kiocb` *is* in that `free_list`, and it is, it's *still* referenced by `ctx->submit_state.free_list`. That means I should look at `free_list` itself.

Aha! `free_list` is a `wq_stack`. Okay, I better look at the `wq_stack` definition. Let's see if that provides more insight.



91/2 2026/08/09 12:11 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:io_uring/io_uring.h Name:wq_stack]

Results:
map[SourceCode: SourceFile:]

92/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51643
							output: 40
							thoughts: 13
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Diving into `wq_stack_add_head`**

Alright, time to dig into this. I've been meaning to revisit the workqueue implementation, and `wq_stack_add_head` is a good starting point. I want to quickly refresh my understanding of how this function interacts with the rest of the queueing mechanism. What's the core purpose? How does it handle concurrency? What are the implications for locking and memory management within the workqueue? I need to be sure I have a solid grip on the fundamentals before I start chasing down any potential issues or considering optimizations. Let's see how it's implemented.



93/2 2026/08/09 12:11 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:wq_stack_add_head]

Results:
map[SourceCode:  59:	static inline void wq_stack_add_head(struct io_wq_work_node *node,
  60:					     struct io_wq_work_node *stack)
  61:	{
  62:		node->next = stack->next;
  63:		stack->next = node;
  64:	}
 SourceFile:io_uring/slist.h]

94/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51975
							output: 38
							thoughts: 207
						

Thoughts:
**Analyzing Potential Memory Leak Issues**

Okay, let's break this down. First, `wq_stack_add_head` adds a node, let's call it `node`, to the `stack`. The `stack` in question is `&ctx->submit_state.free_list`. Right, and `free_list` is a `struct io_wq_work_node`.

Now, I was initially thinking about `kmemleak` and potential alignment issues with pointers, but no, that's not quite right. `kmemleak` scans the entire object, not just aligned pointers, so that doesn't explain what's going on here.

If `ctx` itself isn't leaked, then the pointer `ctx->submit_state.free_list` is definitely scanned. And that points to `req->comp_list`. But wait, `req->comp_list` is clearly *inside* `req`. So, `req` *should* be referenced if we're scanning `free_list` through `ctx`! This is where things get interesting. Why would it be considered unreferenced? The fact that it is unreferenced is the problem.

Alright, maybe `req` isn't actually in the `free_list` at all? That seems like a strong possibility. When is `req` *removed* from the `free_list`? Ah, that's it! `io_alloc_req` does the removing! We need to examine what's happening within `io_alloc_req`. Time to dig into that function.



95/2 2026/08/09 12:11 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.h Name:io_alloc_req]

Results:
map[SourceCode: 533:	static inline bool io_alloc_req(struct io_ring_ctx *ctx, struct io_kiocb **req)
 534:	{
 535:		if (unlikely(io_req_cache_empty(ctx))) {
 536:			if (!__io_alloc_req_refill(ctx))
 537:				return false;
 538:		}
 539:		*req = io_extract_req(ctx);
 540:		return true;
 541:	}
 SourceFile:io_uring/io_uring.h]

96/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52729
							output: 40
							thoughts: 335
						

Thoughts:
**Analyzing the Request Lifecycle**

Okay, let's trace this carefully. `io_extract_req` *removes* a request from the `free_list`. That much is clear. Similarly, when `io_submit_sqes` allocates a request, it's immediately off the `free_list`. That makes sense; it's being actively used. Then, `io_submit_sqes` calls `io_get_sqe`. If *that* call fails, the request gets added back using `io_req_add_to_cache(req, ctx)`. So, it's essentially released back to a cache. Makes sense.

If `io_get_sqe` *succeeds*, we move on to `io_submit_sqe`. If *that* succeeds, the request is queued. Simple. And if `io_submit_sqe` *fails*, it's queued for a fallback. Eventually, regardless of success or failure in the submit stage, the request is completed and *re*placed back onto the `free_list`.

But hang on… there's a specific edge case I need to clarify: what if `io_submit_sqe` returns an *error* AND `ctx->flags & IORING_SETUP_SUBMIT_ALL` is false? That line of code:

```c
		if (unlikely(io_submit_sqe(ctx, req, sqe, &left)) &&
		    !(ctx->flags & IORING_SETUP_SUBMIT_ALL)) {
			left--;
			break;
		}
```

That conditional is crucial. If `io_submit_sqe` *fails* and `SUBMIT_ALL` isn't set, then the loop breaks. That error condition means, I now understand, it must have been an issue during `io_submit_fail_init`. That seems like the only logical conclusion.

So let's revisit `io_submit_fail_init`. I think I recall that `io_submit_fail_init` returns `ret` if `!(req->flags & IO_REQ_LINK_FLAGS)`. It means if the flag isn't set, then that is the error being propagated. I should double check that implementation.



97/2 2026/08/09 12:11 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_fail_init]

Results:
map[SourceCode:1845:	static __cold int io_submit_fail_init(const struct io_uring_sqe *sqe,
1846:					      struct io_kiocb *req, int ret)
1847:	{
1848:		struct io_ring_ctx *ctx = req->ctx;
1849:		struct io_submit_link *link = &ctx->submit_state.link;
1850:		struct io_kiocb *head = link->head;
1851:	
1852:		trace_io_uring_req_failed(sqe, req, ret);
1853:	
1854:		/*
1855:		 * Avoid breaking links in the middle as it renders links with SQPOLL
1856:		 * unusable. Instead of failing eagerly, continue assembling the link if
1857:		 * applicable and mark the head with REQ_F_FAIL. The link flushing code
1858:		 * should find the flag and handle the rest.
1859:		 */
1860:		req_fail_link_node(req, ret);
1861:		if (head && !(head->flags & REQ_F_FAIL))
1862:			req_fail_link_node(head, -ECANCELED);
1863:	
1864:		if (!(req->flags & IO_REQ_LINK_FLAGS)) {
1865:			if (head) {
1866:				link->last->link = req;
1867:				link->head = NULL;
1868:				req = head;
1869:			}
1870:			io_queue_sqe_fallback(req);
1871:			return ret;
1872:		}
1873:	
1874:		if (head)
1875:			link->last->link = req;
1876:		else
1877:			link->head = req;
1878:		link->last = req;
1879:		return 0;
1880:	}
 SourceFile:io_uring/io_uring.c]

98/2 2026/08/09 12:11 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54164
							output: 39
							thoughts: 391
						

Thoughts:
**Debugging a Potential Resource Leak**

Okay, let's break this down. If the `IO_REQ_LINK_FLAGS` isn't set on a request (`req`), the code calls `io_queue_sqe_fallback(req)` and returns. Therefore, `io_submit_sqe` returns the value `ret`. Now, `io_submit_sqes` encounters this error, decrements `left` and breaks out of the loop. Ah, but wait! `io_queue_sqe_fallback(req)` *is* called! So, this means `req` gets queued for fallback! And `io_queue_sqe_fallback` goes on to call `io_req_defer_failed(req, req->cqe.res)` (because `REQ_F_FAIL` is, in turn, set by `req_fail_link_node`). `io_req_defer_failed` then calls `io_req_complete_defer(req)`.  `io_req_complete_defer` adds the request to `compl_reqs`. Then, `io_submit_state_end` flushes `compl_reqs`. Okay, so `req` gets completed and freed! Which should put it back on the `free_list`. But… why is it leaking?

Hmm, could `io_submit_state_end` *not* be called? But, looking at the code, it's called after the loop in `io_submit_sqes`. That's not the problem. What if `io_submit_sqes` is called and then the context (`ctx`) is destroyed? No, the context is destroyed later, that doesn't explain it.

Aha! What if `io_submit_sqe` returns an error, but it does *not* call `io_queue_sqe_fallback`? Is there a path in `io_submit_sqe` that returns an error without queuing the request? I need to go back and carefully re-examine the `io_submit_sqe` function to be sure. This feels like the critical area.



99/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_sqe]

Results:
map[SourceCode:1882:	static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
1883:				 const struct io_uring_sqe *sqe, unsigned int *left)
1884:		__must_hold(&ctx->uring_lock)
1885:	{
1886:		struct io_submit_link *link = &ctx->submit_state.link;
1887:		int ret;
1888:	
1889:		ret = io_init_req(ctx, req, sqe, left);
1890:		if (unlikely(ret))
1891:			return io_submit_fail_init(sqe, req, ret);
1892:	
1893:		if (unlikely(ctx->bpf_filters)) {
1894:			ret = io_uring_run_bpf_filters(ctx->bpf_filters, req);
1895:			if (ret)
1896:				return io_submit_fail_init(sqe, req, ret);
1897:		}
1898:	
1899:		trace_io_uring_submit_req(req);
1900:	
1901:		/*
1902:		 * If we already have a head request, queue this one for async
1903:		 * submittal once the head completes. If we don't have a head but
1904:		 * IOSQE_IO_LINK is set in the sqe, start a new head. This one will be
1905:		 * submitted sync once the chain is complete. If none of those
1906:		 * conditions are true (normal request), then just queue it.
1907:		 */
1908:		if (unlikely(link->head)) {
1909:			trace_io_uring_link(req, link->last);
1910:			io_req_sqe_copy(req, IO_URING_F_INLINE);
1911:			link->last->link = req;
1912:			link->last = req;
1913:	
1914:			if (req->flags & IO_REQ_LINK_FLAGS)
1915:				return 0;
1916:			/* last request of the link, flush it */
1917:			req = link->head;
1918:			link->head = NULL;
1919:			if (req->flags & (REQ_F_FORCE_ASYNC | REQ_F_FAIL))
1920:				goto fallback;
1921:	
1922:		} else if (unlikely(req->flags & (IO_REQ_LINK_FLAGS |
1923:						  REQ_F_FORCE_ASYNC | REQ_F_FAIL))) {
1924:			if (req->flags & IO_REQ_LINK_FLAGS) {
1925:				link->head = req;
1926:				link->last = req;
1927:			} else {
1928:	fallback:
1929:				io_queue_sqe_fallback(req);
1930:			}
1931:			return 0;
1932:		}
1933:	
1934:		io_queue_sqe(req, IO_URING_F_INLINE);
1935:		return 0;
1936:	}
 SourceFile:io_uring/io_uring.c]

100/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 55971
							output: 41
							thoughts: 149
						

Thoughts:
**Analyzing the Asynchronous I/O Submission Path**

Okay, let's break this down. My initial understanding was potentially flawed. I was under the impression that `io_submit_sqe` could return a failure code, but the more I look at it, the more I see that is not the case. Specifically, it seems `io_submit_sqe` only returns non-zero – i.e., an error – if `io_submit_fail_init` returns non-zero. And that latter function, `io_submit_fail_init`, only returns an error if `!(req->flags & IO_REQ_LINK_FLAGS)`. In that scenario, which is important to understand, `io_submit_fail_init` then calls `io_queue_sqe_fallback(req)`. So, that means the request `req` is always queued one way or another! Either directly through the normal submit path, or through the fallback. If it's *always* queued, then it's always completed and eventually freed, right?

But wait. This is a crucial point. Is there *any* scenario where `io_queue_sqe_fallback` doesn't actually complete the request? I've got to revisit the `io_queue_sqe_fallback` function itself and look into that logic again. I need to make sure I haven't missed a conditional or a potential edge case. This whole chain is built on the assumption that any request that reaches `io_queue_sqe_fallback` will eventually be completed. I need to verify that.



101/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_sqe_fallback]

Results:
map[SourceCode:1659:	static void io_queue_sqe_fallback(struct io_kiocb *req)
1660:		__must_hold(&req->ctx->uring_lock)
1661:	{
1662:		if (unlikely(req->flags & REQ_F_FAIL)) {
1663:			/*
1664:			 * We don't submit, fail them all, for that replace hardlinks
1665:			 * with normal links. Extra REQ_F_LINK is tolerated.
1666:			 */
1667:			req->flags &= ~REQ_F_HARDLINK;
1668:			req->flags |= REQ_F_LINK;
1669:			io_req_defer_failed(req, req->cqe.res);
1670:		} else {
1671:			/* can't fail with IO_URING_F_INLINE */
1672:			io_req_sqe_copy(req, IO_URING_F_INLINE);
1673:			if (unlikely(req->ctx->int_flags & IO_RING_F_DRAIN_ACTIVE))
1674:				io_drain_req(req);
1675:			else
1676:				io_queue_iowq(req);
1677:		}
1678:	}
 SourceFile:io_uring/io_uring.c]

102/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 56879
							output: 40
							thoughts: 229
						

Thoughts:
**Analyzing the Asynchronous I/O Request Deferral Process**

Okay, let's break this down. I see that `io_req_defer_failed` ultimately calls `io_req_complete_defer(req)`. And `io_req_complete_defer` dutifully adds the request (`req`) to `compl_reqs`, the list of completed requests. My immediate concern is, what happens if `io_req_defer_failed` gets called, but the request (`req`) is actually the *head* of a linked series of requests?

`io_req_defer_failed` only explicitly completes that single `req`. It doesn't seem to account for those linked requests. `io_submit_fail_init` cleverly sets up the linked list structure, specifically when a submission fails. It does this by setting `link->last->link = req`, making the last linked request point to the failed head `req`, and also setting `link->head = NULL`, and lastly, setting `req = head`, so that req is properly set to the head of the chain of linked reqs. Now, `io_queue_sqe_fallback(req)` is called. And within that, it calls `io_req_defer_failed(req, req->cqe.res)`. So `req` gets completed here, which is the head.

But, hang on... Wasn't there something about how linked requests are handled by `io_free_batch_list`? Let me revisit `io_free_batch_list` one more time. I need to make sure I'm not missing something critical about handling the `IO_REQ_LINK_FLAGS`.



103/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_free_batch_list]

Results:
map[SourceCode:1094:	static void io_free_batch_list(struct io_ring_ctx *ctx,
1095:				       struct io_wq_work_node *node)
1096:		__must_hold(&ctx->uring_lock)
1097:	{
1098:		do {
1099:			struct io_kiocb *req = container_of(node, struct io_kiocb,
1100:							    comp_list);
1101:	
1102:			if (unlikely(req->flags & IO_REQ_CLEAN_SLOW_FLAGS)) {
1103:				if (req->flags & REQ_F_REISSUE) {
1104:					node = req->comp_list.next;
1105:					req->flags &= ~REQ_F_REISSUE;
1106:					io_queue_iowq(req);
1107:					continue;
1108:				}
1109:				if (req->flags & REQ_F_REFCOUNT) {
1110:					node = req->comp_list.next;
1111:					if (!req_ref_put_and_test(req))
1112:						continue;
1113:				}
1114:				if ((req->flags & REQ_F_POLLED) && req->apoll) {
1115:					struct async_poll *apoll = req->apoll;
1116:	
1117:					if (apoll->double_poll)
1118:						kfree(apoll->double_poll);
1119:					io_cache_free(&ctx->apoll_cache, apoll);
1120:					req->flags &= ~REQ_F_POLLED;
1121:				}
1122:				if (req->flags & IO_REQ_LINK_FLAGS)
1123:					io_queue_next(req);
1124:				if (unlikely(req->flags & IO_REQ_CLEAN_FLAGS))
1125:					io_clean_op(req);
1126:			}
1127:			io_put_file(req);
1128:			io_req_put_rsrc_nodes(req);
1129:			io_put_task(req);
1130:	
1131:			node = req->comp_list.next;
1132:			io_req_add_to_cache(req, ctx);
1133:		} while (node);
1134:	}
 SourceFile:io_uring/io_uring.c]

104/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 58204
							output: 38
							thoughts: 38
						

Thoughts:
Okay, let's see...

**Analyzing `io_queue_next` and Its Connection to Request Flags**

Hmm, so `io_queue_next(req)` is triggered when that `IO_REQ_LINK_FLAGS` bit is set, right?  That's the key trigger.  I need to understand what happens *within* `io_queue_next` when that flag is active. Let me pull up the definition of `io_queue_next` and dig in. It's time to trace the execution path. I need to understand what this linking is *really* doing.  Probably some clever queuing optimization, or maybe it’s a dependency thing. Let's see what the code reveals. Time to put on my debugging hat.



105/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_next]

Results:
map[SourceCode:1074:	void io_queue_next(struct io_kiocb *req)
1075:	{
1076:		struct io_kiocb *nxt = io_req_find_next(req);
1077:	
1078:		if (nxt)
1079:			io_req_task_queue(nxt);
1080:	}
 SourceFile:io_uring/io_uring.c]

106/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 58574
							output: 38
							thoughts: 282
						

Thoughts:
**Analyzing the IO Request Flow**

Okay, so `io_req_find_next` essentially navigates through a linked list of requests, right? And then `io_req_task_queue` takes that identified request and places it into the appropriate queue for processing. That means that these linked requests *are* getting queued and, eventually, completed. So, the linked list structure itself shouldn't be the source of any memory leaks, that much seems clear.

But hold on, what about the potential for breakage within `io_submit_sqes`? Specifically, if the function bails out of the loop prematurely, and `left` has a non-zero value, what's happening? Looking at the code:

```c
		if (unlikely(left)) {
			ret -= left;
			/* try again if it submitted nothing and can't allocate a req */
			if (!ret && io_req_cache_empty(ctx))
				ret = -EAGAIN;
			current->io_uring->cached_refs += left;
		}
```

Okay, it decrements the return value, and then tries again if there were no requests submitted and there are no requests to allocate (it returns -EAGAIN). It also increments the cached references. I see the flow now.

Then, there's the critical bit with the error handling inside the loop:

```c
		if (unlikely(io_submit_sqe(ctx, req, sqe, &left)) &&
		    !(ctx->flags & IORING_SETUP_SUBMIT_ALL)) {
			left--;
			break;
		}
```

Right, if `io_submit_sqe` errors out, the `left` counter is decremented *before* the loop breaks. That makes sense. But here's where it clicked: `left` is *passed by reference* to `io_submit_sqe`. So, let's revisit `io_init_req`. I have to be sure.



107/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_init_req]

Results:
map[SourceCode:1730:	static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req,
1731:			       const struct io_uring_sqe *sqe, unsigned int *left)
1732:		__must_hold(&ctx->uring_lock)
1733:	{
1734:		const struct io_issue_def *def;
1735:		unsigned int sqe_flags;
1736:		int personality;
1737:	
1738:		req->ctx = ctx;
1739:		req->opcode = READ_ONCE(sqe->opcode);
1740:		/* same numerical values with corresponding REQ_F_*, safe to copy */
1741:		sqe_flags = READ_ONCE(sqe->flags);
1742:		req->flags = (__force io_req_flags_t) sqe_flags;
1743:		req->cqe.user_data = READ_ONCE(sqe->user_data);
1744:		req->file = NULL;
1745:		req->tctx = current->io_uring;
1746:		req->cancel_seq_set = false;
1747:		req->async_data = NULL;
1748:	
1749:		if (unlikely(req->opcode >= IORING_OP_LAST)) {
1750:			req->opcode = 0;
1751:			return io_init_fail_req(req, -EINVAL);
1752:		}
1753:		req->opcode = array_index_nospec(req->opcode, IORING_OP_LAST);
1754:	
1755:		def = &io_issue_defs[req->opcode];
1756:		if (def->is_128 && !(ctx->flags & IORING_SETUP_SQE128)) {
1757:			/*
1758:			 * A 128b op on a non-128b SQ requires mixed SQE support as
1759:			 * well as 2 contiguous entries.
1760:			 */
1761:			if (!(ctx->flags & IORING_SETUP_SQE_MIXED) || *left < 2 ||
1762:			    (unsigned)(sqe - ctx->sq_sqes) >= ctx->sq_entries - 1)
1763:				return io_init_fail_req(req, -EINVAL);
1764:			/*
1765:			 * A 128b operation on a mixed SQ uses two entries, so we have
1766:			 * to increment the head and cached refs, and decrement what's
1767:			 * left.
1768:			 */
1769:			current->io_uring->cached_refs++;
1770:			ctx->cached_sq_head++;
1771:			(*left)--;
1772:		}
1773:	
1774:		if (unlikely(sqe_flags & ~SQE_COMMON_FLAGS)) {
1775:			/* enforce forwards compatibility on users */
1776:			if (sqe_flags & ~SQE_VALID_FLAGS)
1777:				return io_init_fail_req(req, -EINVAL);
1778:			if (sqe_flags & IOSQE_BUFFER_SELECT) {
1779:				if (!def->buffer_select)
1780:					return io_init_fail_req(req, -EOPNOTSUPP);
1781:				req->buf_index = READ_ONCE(sqe->buf_group);
1782:			}
1783:			if (sqe_flags & IOSQE_CQE_SKIP_SUCCESS)
1784:				ctx->int_flags |= IO_RING_F_DRAIN_DISABLED;
1785:			if (sqe_flags & IOSQE_IO_DRAIN) {
1786:				if (ctx->int_flags & IO_RING_F_DRAIN_DISABLED)
1787:					return io_init_fail_req(req, -EOPNOTSUPP);
1788:				io_init_drain(ctx);
1789:			}
1790:		}
1791:		if (unlikely(ctx->int_flags & (IO_RING_F_OP_RESTRICTED | IO_RING_F_DRAIN_ACTIVE | IO_RING_F_DRAIN_NEXT))) {
1792:			if (!io_check_restriction(ctx, req, sqe_flags))
1793:				return io_init_fail_req(req, -EACCES);
1794:			/* knock it to the slow queue path, will be drained there */
1795:			if (ctx->int_flags & IO_RING_F_DRAIN_ACTIVE)
1796:				req->flags |= REQ_F_FORCE_ASYNC;
1797:			/* if there is no link, we're at "next" request and need to drain */
1798:			if (unlikely(ctx->int_flags & IO_RING_F_DRAIN_NEXT) && !ctx->submit_state.link.head) {
1799:				ctx->int_flags &= ~IO_RING_F_DRAIN_NEXT;
1800:				ctx->int_flags |= IO_RING_F_DRAIN_ACTIVE;
1801:				req->flags |= REQ_F_IO_DRAIN | REQ_F_FORCE_ASYNC;
1802:			}
1803:		}
1804:	
1805:		if (!def->ioprio && sqe->ioprio)
1806:			return io_init_fail_req(req, -EINVAL);
1807:		if (!def->iopoll && (ctx->flags & IORING_SETUP_IOPOLL))
1808:			return io_init_fail_req(req, -EINVAL);
1809:	
1810:		if (def->needs_file) {
1811:			struct io_submit_state *state = &ctx->submit_state;
1812:	
1813:			req->cqe.fd = READ_ONCE(sqe->fd);
1814:	
1815:			/*
1816:			 * Plug now if we have more than 2 IO left after this, and the
1817:			 * target is potentially a read/write to block based storage.
1818:			 */
1819:			if (state->need_plug && def->plug) {
1820:				state->plug_started = true;
1821:				state->need_plug = false;
1822:				blk_start_plug_nr_ios(&state->plug, state->submit_nr);
1823:			}
1824:		}
1825:	
1826:		personality = READ_ONCE(sqe->personality);
1827:		if (personality) {
1828:			int ret;
1829:	
1830:			req->creds = xa_load(&ctx->personalities, personality);
1831:			if (!req->creds)
1832:				return io_init_fail_req(req, -EINVAL);
1833:			get_cred(req->creds);
1834:			ret = security_uring_override_creds(req->creds);
1835:			if (ret) {
1836:				put_cred(req->creds);
1837:				return io_init_fail_req(req, ret);
1838:			}
1839:			req->flags |= REQ_F_CREDS;
1840:		}
1841:	
1842:		return def->prep(req, sqe);
1843:	}
 SourceFile:io_uring/io_uring.c]

108/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 61408
							output: 40
							thoughts: 34
						

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

**Analyzing `io_init_fail_req`**

Okay, hold on a second. If I recall correctly, `io_init_fail_req` gets invoked when initialization encounters a problem, right? Makes sense. That's a good starting point. So, I need to understand the circumstances under which this particular error is triggered. My next step is clear – I'm going to dive into the implementation of `io_init_fail_req`. I'll want to inspect the conditions that lead to its execution, the context passed to it, and what actions it takes. This should give me insight into the failure scenario and hopefully pinpoint the root cause of the issue I'm dealing with. Let's see what's in there...



109/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_init_fail_req]

Results:
map[SourceCode:1723:	static __cold int io_init_fail_req(struct io_kiocb *req, int err)
1724:	{
1725:		/* ensure per-opcode data is cleared if we fail before prep */
1726:		memset(&req->cmd.data, 0, sizeof(req->cmd.data));
1727:		return err;
1728:	}
 SourceFile:io_uring/io_uring.c]

110/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 61793
							output: 39
							thoughts: 353
						

Thoughts:
**Analyzing the io_uring Request Lifecycle**

Okay, let me think this through. `io_init_fail_req` just gives me an error code (`err`), and then `io_init_req` also returns an error code. Then `io_submit_sqe` does `io_submit_fail_init(sqe, req, ret)`. And that returns `ret`. Wait a minute... now I'm starting to see it. If `io_submit_fail_init` returns `ret`, it implies `!(req->flags & IO_REQ_LINK_FLAGS)` is true. And in that case, it calls `io_queue_sqe_fallback(req)`. That's it! So `req` *is* actually being queued, even when there's an immediate failure!

But what if `io_submit_fail_init` returns 0? That would happen if `req->flags & IO_REQ_LINK_FLAGS` is true. Then, it adds `req` to the link and *also* returns 0. That's fine, because then `io_submit_sqe` returns 0 and `io_submit_sqes` happily keeps going through the loop, until the whole link is submitted.

So, in *every* single case, `req` is either queued immediately or added to a link. If it's linked, it *will* be queued when the link is processed. If it's queued immediately, it will be completed and freed. That means, looking at it this way, the `req` *should* never leak! That's reassuring.

Okay, let's step back and consider if I've missed something. What if `io_submit_sqe` returns an error, but *doesn't* call `io_queue_sqe_fallback`? Are there any other paths to consider? Let me just double check `io_submit_sqe` again...



111/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_submit_sqe]

Results:
map[SourceCode:1882:	static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
1883:				 const struct io_uring_sqe *sqe, unsigned int *left)
1884:		__must_hold(&ctx->uring_lock)
1885:	{
1886:		struct io_submit_link *link = &ctx->submit_state.link;
1887:		int ret;
1888:	
1889:		ret = io_init_req(ctx, req, sqe, left);
1890:		if (unlikely(ret))
1891:			return io_submit_fail_init(sqe, req, ret);
1892:	
1893:		if (unlikely(ctx->bpf_filters)) {
1894:			ret = io_uring_run_bpf_filters(ctx->bpf_filters, req);
1895:			if (ret)
1896:				return io_submit_fail_init(sqe, req, ret);
1897:		}
1898:	
1899:		trace_io_uring_submit_req(req);
1900:	
1901:		/*
1902:		 * If we already have a head request, queue this one for async
1903:		 * submittal once the head completes. If we don't have a head but
1904:		 * IOSQE_IO_LINK is set in the sqe, start a new head. This one will be
1905:		 * submitted sync once the chain is complete. If none of those
1906:		 * conditions are true (normal request), then just queue it.
1907:		 */
1908:		if (unlikely(link->head)) {
1909:			trace_io_uring_link(req, link->last);
1910:			io_req_sqe_copy(req, IO_URING_F_INLINE);
1911:			link->last->link = req;
1912:			link->last = req;
1913:	
1914:			if (req->flags & IO_REQ_LINK_FLAGS)
1915:				return 0;
1916:			/* last request of the link, flush it */
1917:			req = link->head;
1918:			link->head = NULL;
1919:			if (req->flags & (REQ_F_FORCE_ASYNC | REQ_F_FAIL))
1920:				goto fallback;
1921:	
1922:		} else if (unlikely(req->flags & (IO_REQ_LINK_FLAGS |
1923:						  REQ_F_FORCE_ASYNC | REQ_F_FAIL))) {
1924:			if (req->flags & IO_REQ_LINK_FLAGS) {
1925:				link->head = req;
1926:				link->last = req;
1927:			} else {
1928:	fallback:
1929:				io_queue_sqe_fallback(req);
1930:			}
1931:			return 0;
1932:		}
1933:	
1934:		io_queue_sqe(req, IO_URING_F_INLINE);
1935:		return 0;
1936:	}
 SourceFile:io_uring/io_uring.c]

112/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 63527
							output: 43
							thoughts: 751
						

Thoughts:
**Analyzing a Potential IO_URING Resource Leak**

Okay, let's break this down systematically. My initial thought process was: `io_submit_sqe` seems pretty straightforward – it either returns 0 (success) or an error if `io_submit_fail_init` fails. But wait, `io_submit_fail_init` *only* fails if it calls `io_queue_sqe_fallback`. This means the `req` is *always* getting queued somewhere, either directly or via a link. If it's linked, it gets queued when the link is complete. If the loop breaks early, `io_submit_state_end` gets called, which, if there's anything in `link.head`, then calls `io_queue_sqe_fallback`. So the link is *always* queued. This means `req` is *always* queued! And if it's queued, it *should* get completed and freed. So... where's the leak?

Then I considered the scenario where `io_queue_sqe_fallback` might *not* complete the request immediately. Let's look at the code: if `REQ_F_FAIL` is not set, we're calling `io_queue_iowq`, which queues it to the io-wq. The io-wq should handle the execution and completion. But, what if the `REQ_F_FAIL` *is* set and `io_req_defer_failed` is called? That calls `io_req_complete_defer`, which adds the request to `compl_reqs`. `io_submit_flush_completions` then flushes `compl_reqs`. This triggers `__io_submit_flush_completions`, which calls `io_free_batch_list`, which finally calls `io_req_add_to_cache(req, ctx)`. So, the request gets put back onto the `free_list`. In that case, there shouldn't be a leak!

Alright, next step: is it possible that `io_submit_sqes` itself returns an error, and the caller does something incorrect? I need to check where `io_submit_sqes` is being called from – it's within `__do_sys_io_uring_enter`. I should go look at the implementation of `__do_sys_io_uring_enter` to see how it handles possible errors coming from `io_submit_sqes`. That is probably the next place to look for the leak.



113/2 2026/08/09 12:12 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__do_sys_io_uring_enter]

Results:
map[SourceCode:2595:	SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
2596:			u32, min_complete, u32, flags, const void __user *, argp,
2597:			size_t, argsz)
2598:	{
2599:		struct io_ring_ctx *ctx;
2600:		struct file *file;
2601:		long ret;
2602:	
2603:		if (unlikely(flags & ~IORING_ENTER_FLAGS))
2604:			return -EINVAL;
2605:	
2606:		file = io_uring_ctx_get_file(fd, flags & IORING_ENTER_REGISTERED_RING);
2607:		if (IS_ERR(file))
2608:			return PTR_ERR(file);
2609:		ctx = file->private_data;
2610:		ret = -EBADFD;
2611:		/*
2612:		 * Keep IORING_SETUP_R_DISABLED check before submitter_task load
2613:		 * in io_uring_add_tctx_node() -> __io_uring_add_tctx_node_from_submit()
2614:		 */
2615:		if (unlikely(smp_load_acquire(&ctx->flags) & IORING_SETUP_R_DISABLED))
2616:			goto out;
2617:	
2618:		if (io_has_loop_ops(ctx)) {
2619:			ret = io_run_loop(ctx);
2620:			goto out;
2621:		}
2622:	
2623:		/*
2624:		 * For SQ polling, the thread will do all submissions and completions.
2625:		 * Just return the requested submit count, and wake the thread if
2626:		 * we were asked to.
2627:		 */
2628:		ret = 0;
2629:		if (ctx->flags & IORING_SETUP_SQPOLL) {
2630:			if (unlikely(ctx->sq_data->thread == NULL)) {
2631:				ret = -EOWNERDEAD;
2632:				goto out;
2633:			}
2634:			if (flags & IORING_ENTER_SQ_WAKEUP)
2635:				wake_up(&ctx->sq_data->wait);
2636:			if (flags & IORING_ENTER_SQ_WAIT)
2637:				io_sqpoll_wait_sq(ctx);
2638:	
2639:			ret = to_submit;
2640:		} else if (to_submit) {
2641:			ret = io_uring_add_tctx_node(ctx);
2642:			if (unlikely(ret))
2643:				goto out;
2644:	
2645:			mutex_lock(&ctx->uring_lock);
2646:			ret = io_submit_sqes(ctx, to_submit);
2647:			if (ret != to_submit) {
2648:				mutex_unlock(&ctx->uring_lock);
2649:				goto out;
2650:			}
2651:			if (flags & IORING_ENTER_GETEVENTS) {
2652:				if (ctx->int_flags & IO_RING_F_SYSCALL_IOPOLL)
2653:					goto iopoll_locked;
2654:				/*
2655:				 * Ignore errors, we'll soon call io_cqring_wait() and
2656:				 * it should handle ownership problems if any.
2657:				 */
2658:				if (ctx->flags & IORING_SETUP_DEFER_TASKRUN)
2659:					(void)io_run_local_work_locked(ctx, min_complete);
2660:			}
2661:			mutex_unlock(&ctx->uring_lock);
2662:		}
2663:	
2664:		if (flags & IORING_ENTER_GETEVENTS) {
2665:			int ret2;
2666:	
2667:			if (ctx->int_flags & IO_RING_F_SYSCALL_IOPOLL) {
2668:				/*
2669:				 * We disallow the app entering submit/complete with
2670:				 * polling, but we still need to lock the ring to
2671:				 * prevent racing with polled issue that got punted to
2672:				 * a workqueue.
2673:				 */
2674:				mutex_lock(&ctx->uring_lock);
2675:	iopoll_locked:
2676:				ret2 = io_validate_ext_arg(ctx, flags, argp, argsz);
2677:				if (likely(!ret2))
2678:					ret2 = io_iopoll_check(ctx, min_complete);
2679:				mutex_unlock(&ctx->uring_lock);
2680:			} else {
2681:				struct ext_arg ext_arg = { .argsz = argsz };
2682:	
2683:				ret2 = io_get_ext_arg(ctx, flags, argp, &ext_arg);
2684:				if (likely(!ret2))
2685:					ret2 = io_cqring_wait(ctx, min_complete, flags,
2686:							      &ext_arg);
2687:			}
2688:	
2689:			if (!ret) {
2690:				ret = ret2;
2691:	
2692:				/*
2693:				 * EBADR indicates that one or more CQE were dropped.
2694:				 * Once the user has been informed we can clear the bit
2695:				 * as they are obviously ok with those drops.
2696:				 */
2697:				if (unlikely(ret2 == -EBADR))
2698:					clear_bit(IO_CHECK_CQ_DROPPED_BIT,
2699:						  &ctx->check_cq);
2700:			}
2701:		}
2702:	out:
2703:		if (!(flags & IORING_ENTER_REGISTERED_RING))
2704:			fput(file);
2705:		return ret;
2706:	}
 SourceFile:io_uring/io_uring.c]

114/2 2026/08/09 12:12 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 66626
							output: 44
							thoughts: 609
						

Thoughts:
**Analyzing a Potential Memory Leak in the io_uring Subsystem**

Okay, let's break this down. My initial thought process was centered around the standard error handling in `io_submit_sqes`. I was thinking, if `io_submit_sqes` returns a value different than what we expect, it's supposed to unlock, and transition to "out". But crucially, `io_submit_sqes` has already called `io_submit_state_end(ctx)`. So, everything *should* be properly flushed. I ran through some scenarios – what if `io_alloc_req` fails, what if `io_get_sqe` fails? In both cases, the call to `io_submit_state_end` seems to prevent a leak.

But wait, we've got a bug report. A *memory leak*! Let's examine the information provided. I see a hex dump of an unreferenced object: `80 5d 3a 0e 81 88 ff ff d0 03 59 15 81 88 ff ff 04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00`.

Okay, the hex dump... I'm translating the pointers. I see: `0xffff88810e3a5d80`, `0xffff8881155903d0`, `0xc0207504`, `0x80000002` and the trailing zeros. Hold on... I recognize `0xc0207504`! That's `UBLK_U_CMD_ADD_DEV`. And that seems to be sitting at the 16th byte of the leaked object. This is likely an `io_kiocb`. So, now it's time to check the layout of the `struct io_kiocb` itself, let's confirm the offset to understand where and how the `UBLK_U_CMD_ADD_DEV` value is being set!



115/2 2026/08/09 12:13 tool codesearch-struct-layout
0m Args:
map[ContextFile:io_uring/io_uring.c FieldOffset:16 Name:io_kiocb]

Results:
map[Fields:[map[Name: OffsetBits:0 SizeBits:512]]]

116/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67791
							output: 38
							thoughts: 17
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience:

**Analyzing the Anonymous Union**

Right, an anonymous union. My immediate thought is, "Okay, let's get the lay of the land here. What's the complete architecture?" We're dealing with anonymity, which raises several immediate questions about trust and verifiability. This isn't just a simple data structure; there are inherent implications for security, provenance, and potential collusion that need to be understood up front. Without knowing the underlying implementation, I'm already mentally running through a checklist: zero-knowledge proofs, mix networks, homomorphic encryption, and the potential vulnerabilities of each. The "anonymous" label is a starting point, not an endpoint. I need a comprehensive overview to fully assess the strengths and weaknesses of this design.



117/2 2026/08/09 12:13 tool codesearch-struct-layout
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_kiocb]

Results:
map[Fields:[map[Name: OffsetBits:0 SizeBits:512] map[Name:opcode OffsetBits:512 SizeBits:8] map[Name:iopoll_completed OffsetBits:520 SizeBits:8] map[Name:buf_index OffsetBits:528 SizeBits:16] map[Name:flags OffsetBits:576 SizeBits:64] map[Name:cqe OffsetBits:640 SizeBits:128] map[Name:ctx OffsetBits:768 SizeBits:64] map[Name:tctx OffsetBits:832 SizeBits:64] map[Name: OffsetBits:896 SizeBits:64] map[Name: OffsetBits:960 SizeBits:64] map[Name:file_node OffsetBits:1024 SizeBits:64] map[Name:refs OffsetBits:1088 SizeBits:32] map[Name:cancel_seq_set OffsetBits:1120 SizeBits:8] map[Name: OffsetBits:1152 SizeBits:128] map[Name: OffsetBits:1280 SizeBits:128] map[Name:apoll OffsetBits:1408 SizeBits:64] map[Name:async_data OffsetBits:1472 SizeBits:64] map[Name:poll_refs OffsetBits:1536 SizeBits:32] map[Name:link OffsetBits:1600 SizeBits:64] map[Name:creds OffsetBits:1664 SizeBits:64] map[Name:work OffsetBits:1728 SizeBits:128] map[Name:big_cqe OffsetBits:1856 SizeBits:128]]]

118/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 68480
							output: 38
							thoughts: 36
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing the `io_kiocb` Structure**

Alright, hang on a second. Something's nagging at me about this `io_kiocb` structure. The initial 64 bytes - that's 512 bits, if I'm doing the math correctly - that's screaming "anonymous union" to me. I need to be absolutely certain how the kernel uses that space, especially considering performance implications and potential alignment issues. Let's not make assumptions here. I'm going to pull up the source code for `struct io_kiocb` right now. I need to dissect that union to understand exactly how those bits are being utilized. Memory layout can be incredibly tricky and knowing this is really important for analyzing the asynchronous I/O performance.



119/2 2026/08/09 12:13 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_kiocb]

Results:
map[SourceCode: 737:	struct io_kiocb {
 738:		union {
 739:			/*
 740:			 * NOTE! Each of the io_kiocb union members has the file pointer
 741:			 * as the first entry in their struct definition. So you can
 742:			 * access the file pointer through any of the sub-structs,
 743:			 * or directly as just 'file' in this struct.
 744:			 */
 745:			struct file		*file;
 746:			struct io_cmd_data	cmd;
 747:		};
 748:	
 749:		u8				opcode;
 750:		/* polled IO has completed */
 751:		u8				iopoll_completed;
 752:		/*
 753:		 * Can be either a fixed buffer index, or used with provided buffers.
 754:		 * For the latter, it points to the selected buffer ID.
 755:		 */
 756:		u16				buf_index;
 757:	
 758:		/* REQ_F_* flags */
 759:		io_req_flags_t			flags;
 760:	
 761:		struct io_cqe			cqe;
 762:	
 763:		struct io_ring_ctx		*ctx;
 764:		struct io_uring_task		*tctx;
 765:	
 766:		union {
 767:			/* stores selected buf, valid IFF REQ_F_BUFFER_SELECTED is set */
 768:			struct io_buffer	*kbuf;
 769:	
 770:			struct io_rsrc_node	*buf_node;
 771:		};
 772:	
 773:		union {
 774:			/* used by request caches, completion batching and iopoll */
 775:			struct io_wq_work_node	comp_list;
 776:			/* cache ->apoll->events */
 777:			__poll_t apoll_events;
 778:		};
 779:	
 780:		struct io_rsrc_node		*file_node;
 781:	
 782:		atomic_t			refs;
 783:		bool				cancel_seq_set;
 784:	
 785:		union {
 786:			struct io_task_work	io_task_work;
 787:			/* For IOPOLL setup queues, with hybrid polling */
 788:			u64                     iopoll_start;
 789:		};
 790:	
 791:		union {
 792:			/*
 793:			 * for polled requests, i.e. IORING_OP_POLL_ADD and async armed
 794:			 * poll
 795:			 */
 796:			struct hlist_node	hash_node;
 797:			/* IOPOLL completion handling */
 798:			struct list_head	iopoll_node;
 799:			/* for private io_kiocb freeing */
 800:			struct rcu_head		rcu_head;
 801:		};
 802:		/* internal polling, see IORING_FEAT_FAST_POLL */
 803:		struct async_poll		*apoll;
 804:		/* opcode allocated if it needs to store data for async defer */
 805:		void				*async_data;
 806:		/* linked requests, IFF REQ_F_HARDLINK or REQ_F_LINK are set */
 807:		atomic_t			poll_refs;
 808:		struct io_kiocb			*link;
 809:		/* custom credentials, valid IFF REQ_F_CREDS is set */
 810:		const struct cred		*creds;
 811:		struct io_wq_work		work;
 812:	
 813:		struct io_big_cqe {
 814:			u64			extra1;
 815:			u64			extra2;
 816:		} big_cqe;
 817:	};
 SourceFile:include/linux/io_uring_types.h]

120/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 69906
							output: 38
							thoughts: 28
						

Thoughts:
Here's my take on the thought process, as requested:

**Diving into the Structure**

Okay, hold on a second. I need to clarify something related to this `io_cmd_data` structure. It's actually *inside* a union, isn't it? Gotta make sure I'm remembering this right. Let me just double-check that. Now, let's take a look at the details of `struct io_cmd_data` itself. Need to refresh my memory on what's contained within. Gotta understand its members to continue to work with it properly.



121/2 2026/08/09 12:13 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_cmd_data]

Results:
map[SourceCode: 713:	/*
 714:	 * Each request type overlays its private data structure on top of this one.
 715:	 * They must not exceed this one in size.
 716:	 */
 717:	struct io_cmd_data {
 718:		struct file		*file;
 719:		/* each command gets 56 bytes of data */
 720:		__u8			data[56];
 721:	};
 SourceFile:include/linux/io_uring_types.h]

122/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70256
							output: 38
							thoughts: 34
						

Thoughts:
Here's my summary, as the thought process unfolds:

**Digging into io_uring Internals**

Okay, hold on a minute. I'm getting a bit lost in the weeds here, and I need to clarify something fundamental. It seems like the `struct io_uring_cmd` data structure – the one that contains the command details for a submitted I/O request – is, in fact, overlaid directly onto `struct io_kiocb`. This relationship is critical to understanding the underlying mechanisms of `io_uring`, as I can see how one is used to describe an I/O and the other helps to represent it when it is running. Before I proceed, I need to confirm this. I will double-check the definition of `struct io_uring_cmd` right now. Need to nail down the precise layout of that thing and how it interfaces with the `io_kiocb`. That's the key.



123/2 2026/08/09 12:13 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_uring_cmd]

Results:
map[SourceCode:  14:	struct io_uring_cmd {
  15:		struct file	*file;
  16:		const struct io_uring_sqe *sqe;
  17:		u32		cmd_op;
  18:		u32		flags;
  19:		u8		pdu[32]; /* available inline for free use */
  20:		u8		unused[8];
  21:	};
 SourceFile:include/linux/io_uring/cmd.h]

124/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70670
							output: 26
							thoughts: 289
						

Thoughts:
**Dissecting the `io_uring_cmd` Structure**

Okay, let's break this down. Right, so I'm looking at this `struct io_uring_cmd`, and I've got `file` (8 bytes), `sqe` (8 bytes), `cmd_op` (4 bytes), and `flags` (4 bytes) – standard stuff. That means `cmd_op` is at offset 16 and `flags` is at offset 20 within the structure, easy enough.

Now, let me translate these hex dumps and confirm my understanding.
`80 5d 3a 0e 81 88 ff ff` is clearly the `file` field.
`d0 03 59 15 81 88 ff ff` is `sqe`.
And `04 75 20 c0` is `cmd_op`, which, when unpacked, translates to `0xc0207504`, that's `UBLK_U_CMD_ADD_DEV`. Good.
Finally, `02 00 00 80` is the `flags` field, and that hex value translates to `0x80000002`.

Hmm, this `flags` value, `0x80000002`, that's a bit unexpected. I need to make sure I understand the flag definitions clearly, especially that `IORING_URING_CMD_FIXED` bit. I'm going to double-check that flag's value. I want to make sure I'm not missing anything obvious here.



125/2 2026/08/09 12:13 tool grepper
0m Args:
map[Expression:#define IORING_URING_CMD_FIXED]

Results:
map[Output:include/uapi/linux/io_uring.h=255=enum io_uring_op {
--
include/uapi/linux/io_uring.h-333- */
include/uapi/linux/io_uring.h:334:#define IORING_URING_CMD_FIXED	(1U << 0)
include/uapi/linux/io_uring.h-335-#define IORING_URING_CMD_MULTISHOT	(1U << 1)
--
tools/include/uapi/linux/io_uring.h=201=enum io_uring_op {
--
tools/include/uapi/linux/io_uring.h-265- */
tools/include/uapi/linux/io_uring.h:266:#define IORING_URING_CMD_FIXED	(1U << 0)
tools/include/uapi/linux/io_uring.h-267-#define IORING_URING_CMD_MASK	IORING_URING_CMD_FIXED
]

126/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71612
							output: 27
							thoughts: 79
						

Thoughts:
Okay, let me think this through.

**Decoding Those Flags**

Alright, the debugger shows `flags` is `0x80000002`. Hmm, let's see... `0x80000000`. Isn't that related to internal commands, specifically `IORING_URING_CMD_REISSUE`? Wait a minute, isn't `IORING_URING_CMD_REISSUE` supposed to be for internal use? I need to double-check that definition because something feels off. Let's pull up the header file to confirm what exactly `IORING_URING_CMD_REISSUE` signifies. Gotta make sure I'm not misinterpreting this.



127/2 2026/08/09 12:13 tool grepper
0m Args:
map[Expression:#define IORING_URING_CMD_REISSUE]

Results:
map[Output:include/linux/io_uring/cmd.h-11-/* io_uring_cmd is being issued again */
include/linux/io_uring/cmd.h:12:#define IORING_URING_CMD_REISSUE	(1U << 31)
include/linux/io_uring/cmd.h-13-
]

128/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71966
							output: 38
							thoughts: 165
						

Thoughts:
**Decoding io_uring Command Flags**

Okay, here we go. Yes! I've got it – `0x80000000` *is* definitely `IORING_URING_CMD_REISSUE`. That's a solid win. Now, let's see about the other flag. Right, `0x00000002`... is that `IORING_URING_CMD_MULTISHOT`? Hold on, quick double-check. No, hang on, it looks like `IORING_URING_CMD_MULTISHOT` is actually defined as `1U << 1`, which evaluates to `0x2`. Ah, yes, that makes sense. So, the `flags` field is the bitwise OR of `IORING_URING_CMD_REISSUE` and `IORING_URING_CMD_MULTISHOT`.

But wait. That `IORING_URING_CMD_REISSUE` flag… I seem to recall it being associated with `file->f_op->uring_cmd` returning `-EAGAIN`. I should probably confirm that to be completely certain. Best to go back and double-check the `io_uring_cmd` documentation, just to be on the safe side.



129/2 2026/08/09 12:13 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd]

Results:
map[SourceCode: 239:	int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags)
 240:	{
 241:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 242:		struct io_ring_ctx *ctx = req->ctx;
 243:		struct file *file = req->file;
 244:		int ret;
 245:	
 246:		if (!file->f_op->uring_cmd)
 247:			return -EOPNOTSUPP;
 248:	
 249:		ret = security_uring_cmd(ioucmd);
 250:		if (ret)
 251:			return ret;
 252:	
 253:		if (ctx->flags & IORING_SETUP_SQE128 ||
 254:		    req->opcode == IORING_OP_URING_CMD128)
 255:			issue_flags |= IO_URING_F_SQE128;
 256:		if (ctx->flags & (IORING_SETUP_CQE32 | IORING_SETUP_CQE_MIXED))
 257:			issue_flags |= IO_URING_F_CQE32;
 258:		if (io_is_compat(ctx))
 259:			issue_flags |= IO_URING_F_COMPAT;
 260:		if (ctx->flags & IORING_SETUP_IOPOLL && file->f_op->uring_cmd_iopoll) {
 261:			req->flags |= REQ_F_IOPOLL;
 262:			issue_flags |= IO_URING_F_IOPOLL;
 263:			req->iopoll_completed = 0;
 264:			if (ctx->flags & IORING_SETUP_HYBRID_IOPOLL) {
 265:				/* make sure every req only blocks once */
 266:				req->flags &= ~REQ_F_IOPOLL_STATE;
 267:				req->iopoll_start = ktime_get_ns();
 268:			}
 269:		}
 270:	
 271:		ret = file->f_op->uring_cmd(ioucmd, issue_flags);
 272:		if (ioucmd->flags & IORING_URING_CMD_MULTISHOT) {
 273:			if (ret >= 0)
 274:				return IOU_ISSUE_SKIP_COMPLETE;
 275:		}
 276:		if (ret == -EAGAIN) {
 277:			ioucmd->flags |= IORING_URING_CMD_REISSUE;
 278:			return ret;
 279:		}
 280:		if (ret == -EIOCBQUEUED)
 281:			return ret;
 282:		if (ret < 0)
 283:			req_set_fail(req);
 284:		io_req_uring_cleanup(req, issue_flags);
 285:		io_req_set_res(req, ret, 0);
 286:		return IOU_COMPLETE;
 287:	}
 SourceFile:io_uring/uring_cmd.c]

130/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73332
							output: 38
							thoughts: 92
						

Thoughts:
Okay, let me think this through.

**Analyzing the EAGAIN Reissue Flow in io_uring**

Alright, so I'm tracing the path of an `-EAGAIN` return in io_uring and need to make sure I'm following it correctly. It starts with the expectation that if `ret` is equal to `-EAGAIN`, the code sets `IORING_URING_CMD_REISSUE` and the function returns `-EAGAIN`, which is expected. Then, `io_issue_sqe` also returns `-EAGAIN`. This seems logical so far. From there, `io_queue_sqe` calls `io_queue_async` passing `-EAGAIN` along as the `issue_flags`. I should really re-familiarize myself with what `io_queue_async` does in this situation. It's time to dig back into that function's details. I need to understand how `-EAGAIN` is handled downstream.



131/2 2026/08/09 12:13 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_async]

Results:
map[SourceCode:1617:	static void io_queue_async(struct io_kiocb *req, unsigned int issue_flags, int ret)
1618:		__must_hold(&req->ctx->uring_lock)
1619:	{
1620:		if (ret != -EAGAIN || (req->flags & REQ_F_NOWAIT)) {
1621:	fail:
1622:			io_req_defer_failed(req, ret);
1623:			return;
1624:		}
1625:	
1626:		ret = io_req_sqe_copy(req, issue_flags);
1627:		if (unlikely(ret))
1628:			goto fail;
1629:	
1630:		switch (io_arm_poll_handler(req, 0)) {
1631:		case IO_APOLL_READY:
1632:			io_req_task_queue(req);
1633:			break;
1634:		case IO_APOLL_ABORTED:
1635:			io_queue_iowq(req);
1636:			break;
1637:		case IO_APOLL_OK:
1638:			break;
1639:		}
1640:	}
 SourceFile:io_uring/io_uring.c]

132/2 2026/08/09 12:13 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74052
							output: 38
							thoughts: 42
						

Thoughts:
Okay, let's see...

**Analyzing the EAGAIN Response in IO Handling**

Alright, so if the system call returns `-EAGAIN`, the code path directs us to `io_arm_poll_handler(req, 0)`. That's the crucial point here. I need to understand what that function does in this specific context. The fact that we're dealing with an `-EAGAIN` error suggests that the operation isn't immediately available, and the poll handler is probably managing some sort of asynchronous retry or readiness check. I need to quickly ascertain the function of `io_arm_poll_handler` to understand how the system is managing this temporary unavailability. My intuition is telling me that it may be setting up some sort of polling mechanism to be alerted when the resource is ready, but I need to confirm this. Let's delve into that function definition now and dissect its behavior.



133/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/poll.c Name:io_arm_poll_handler]

Results:
map[SourceCode: 705:	int io_arm_poll_handler(struct io_kiocb *req, unsigned issue_flags)
 706:	{
 707:		const struct io_issue_def *def = &io_issue_defs[req->opcode];
 708:		__poll_t mask = POLLPRI | POLLERR;
 709:	
 710:		if (!def->pollin && !def->pollout)
 711:			return IO_APOLL_ABORTED;
 712:		if (!io_file_can_poll(req))
 713:			return IO_APOLL_ABORTED;
 714:	
 715:		if (def->pollin) {
 716:			mask |= EPOLLIN | EPOLLRDNORM;
 717:	
 718:			/* If reading from MSG_ERRQUEUE using recvmsg, ignore POLLIN */
 719:			if (req->flags & REQ_F_CLEAR_POLLIN)
 720:				mask &= ~EPOLLIN;
 721:		} else {
 722:			mask |= EPOLLOUT | EPOLLWRNORM;
 723:		}
 724:		if (def->poll_exclusive)
 725:			mask |= EPOLLEXCLUSIVE;
 726:	
 727:		return io_arm_apoll(req, issue_flags, mask);
 728:	}
 SourceFile:io_uring/poll.c]

134/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74730
							output: 37
							thoughts: 50
						

Thoughts:
Here's my summary, as the expert:

**IORING_OP_URING_CMD: Decoding the I/O Ring Mystery**

Okay, hold on a second. I'm seeing `def->pollin` and `def->pollout` associated with `IORING_OP_URING_CMD`... that's interesting. I need to unpack what that means in this context. It's a bit unexpected, but definitely worth exploring.

Right, time to dive into the `io_issue_defs`. Let's cross-reference and confirm these are the correct definitions. Need to make sure I understand the interaction between `IORING_OP_URING_CMD` and the potential for poll-related operations – `pollin` and `pollout`. This could be important for understanding how this command interacts with event-driven I/O or other signaling mechanisms within the I/O ring. Let's see if this definition is consistent across the codebase, and what other factors come into play.



135/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/opdef.c Name:io_issue_defs]

Results:
map[SourceCode:  54:	const struct io_issue_def io_issue_defs[] = {
  55:		[IORING_OP_NOP] = {
  56:			.audit_skip		= 1,
  57:			.iopoll			= 1,
  58:			.prep			= io_nop_prep,
  59:			.issue			= io_nop,
  60:		},
  61:		[IORING_OP_READV] = {
  62:			.needs_file		= 1,
  63:			.unbound_nonreg_file	= 1,
  64:			.pollin			= 1,
  65:			.buffer_select		= 1,
  66:			.plug			= 1,
  67:			.audit_skip		= 1,
  68:			.ioprio			= 1,
  69:			.iopoll			= 1,
  70:			.vectored		= 1,
  71:			.async_size		= sizeof(struct io_async_rw),
  72:			.prep			= io_prep_readv,
  73:			.issue			= io_read,
  74:		},
  75:		[IORING_OP_WRITEV] = {
  76:			.needs_file		= 1,
  77:			.hash_reg_file		= 1,
  78:			.unbound_nonreg_file	= 1,
  79:			.pollout		= 1,
  80:			.plug			= 1,
  81:			.audit_skip		= 1,
  82:			.ioprio			= 1,
  83:			.iopoll			= 1,
  84:			.vectored		= 1,
  85:			.async_size		= sizeof(struct io_async_rw),
  86:			.prep			= io_prep_writev,
  87:			.issue			= io_write,
  88:		},
  89:		[IORING_OP_FSYNC] = {
  90:			.needs_file		= 1,
  91:			.audit_skip		= 1,
  92:			.prep			= io_fsync_prep,
  93:			.issue			= io_fsync,
  94:		},
  95:		[IORING_OP_READ_FIXED] = {
  96:			.needs_file		= 1,
  97:			.unbound_nonreg_file	= 1,
  98:			.pollin			= 1,
  99:			.plug			= 1,
 100:			.audit_skip		= 1,
 101:			.ioprio			= 1,
 102:			.iopoll			= 1,
 103:			.async_size		= sizeof(struct io_async_rw),
 104:			.prep			= io_prep_read_fixed,
 105:			.issue			= io_read_fixed,
 106:		},
 107:		[IORING_OP_WRITE_FIXED] = {
 108:			.needs_file		= 1,
 109:			.hash_reg_file		= 1,
 110:			.unbound_nonreg_file	= 1,
 111:			.pollout		= 1,
 112:			.plug			= 1,
 113:			.audit_skip		= 1,
 114:			.ioprio			= 1,
 115:			.iopoll			= 1,
 116:			.async_size		= sizeof(struct io_async_rw),
 117:			.prep			= io_prep_write_fixed,
 118:			.issue			= io_write_fixed,
 119:		},
 120:		[IORING_OP_POLL_ADD] = {
 121:			.needs_file		= 1,
 122:			.unbound_nonreg_file	= 1,
 123:			.audit_skip		= 1,
 124:			.prep			= io_poll_add_prep,
 125:			.issue			= io_poll_add,
 126:		},
 127:		[IORING_OP_POLL_REMOVE] = {
 128:			.audit_skip		= 1,
 129:			.prep			= io_poll_remove_prep,
 130:			.issue			= io_poll_remove,
 131:		},
 132:		[IORING_OP_SYNC_FILE_RANGE] = {
 133:			.needs_file		= 1,
 134:			.audit_skip		= 1,
 135:			.prep			= io_sfr_prep,
 136:			.issue			= io_sync_file_range,
 137:		},
 138:		[IORING_OP_SENDMSG] = {
 139:			.needs_file		= 1,
 140:			.unbound_nonreg_file	= 1,
 141:			.pollout		= 1,
 142:			.ioprio			= 1,
 143:	#if defined(CONFIG_NET)
 144:			.async_size		= sizeof(struct io_async_msghdr),
 145:			.prep			= io_sendmsg_prep,
 146:			.issue			= io_sendmsg,
 147:	#else
 148:			.prep			= io_eopnotsupp_prep,
 149:	#endif
 150:		},
 151:		[IORING_OP_RECVMSG] = {
 152:			.needs_file		= 1,
 153:			.unbound_nonreg_file	= 1,
 154:			.pollin			= 1,
 155:			.buffer_select		= 1,
 156:			.ioprio			= 1,
 157:	#if defined(CONFIG_NET)
 158:			.async_size		= sizeof(struct io_async_msghdr),
 159:			.prep			= io_recvmsg_prep,
 160:			.issue			= io_recvmsg,
 161:	#else
 162:			.prep			= io_eopnotsupp_prep,
 163:	#endif
 164:		},
 165:		[IORING_OP_TIMEOUT] = {
 166:			.audit_skip		= 1,
 167:			.async_size		= sizeof(struct io_timeout_data),
 168:			.prep			= io_timeout_prep,
 169:			.issue			= io_timeout,
 170:		},
 171:		[IORING_OP_TIMEOUT_REMOVE] = {
 172:			/* used by timeout updates' prep() */
 173:			.audit_skip		= 1,
 174:			.prep			= io_timeout_remove_prep,
 175:			.issue			= io_timeout_remove,
 176:		},
 177:		[IORING_OP_ACCEPT] = {
 178:			.needs_file		= 1,
 179:			.unbound_nonreg_file	= 1,
 180:			.pollin			= 1,
 181:			.poll_exclusive		= 1,
 182:			.ioprio			= 1,	/* used for flags */
 183:	#if defined(CONFIG_NET)
 184:			.prep			= io_accept_prep,
 185:			.issue			= io_accept,
 186:	#else
 187:			.prep			= io_eopnotsupp_prep,
 188:	#endif
 189:		},
 190:		[IORING_OP_ASYNC_CANCEL] = {
 191:			.audit_skip		= 1,
 192:			.prep			= io_async_cancel_prep,
 193:			.issue			= io_async_cancel,
 194:		},
 195:		[IORING_OP_LINK_TIMEOUT] = {
 196:			.audit_skip		= 1,
 197:			.async_size		= sizeof(struct io_timeout_data),
 198:			.prep			= io_link_timeout_prep,
 199:			.issue			= io_no_issue,
 200:		},
 201:		[IORING_OP_CONNECT] = {
 202:			.needs_file		= 1,
 203:			.unbound_nonreg_file	= 1,
 204:			.pollout		= 1,
 205:	#if defined(CONFIG_NET)
 206:			.filter_pdu_size	= sizeof_field(struct io_uring_bpf_ctx, connect),
 207:			.async_size		= sizeof(struct sockaddr_storage),
 208:			.prep			= io_connect_prep,
 209:			.issue			= io_connect,
 210:			.filter_populate	= io_connect_bpf_populate,
 211:	#else
 212:			.prep			= io_eopnotsupp_prep,
 213:	#endif
 214:		},
 215:		[IORING_OP_FALLOCATE] = {
 216:			.needs_file		= 1,
 217:			.hash_reg_file          = 1,
 218:			.prep			= io_fallocate_prep,
 219:			.issue			= io_fallocate,
 220:		},
 221:		[IORING_OP_OPENAT] = {
 222:			.filter_pdu_size	= sizeof_field(struct io_uring_bpf_ctx, open),
 223:			.prep			= io_openat_prep,
 224:			.issue			= io_openat,
 225:			.filter_populate	= io_openat_bpf_populate,
 226:		},
 227:		[IORING_OP_CLOSE] = {
 228:			.prep			= io_close_prep,
 229:			.issue			= io_close,
 230:		},
 231:		[IORING_OP_FILES_UPDATE] = {
 232:			.audit_skip		= 1,
 233:			.iopoll			= 1,
 234:			.prep			= io_files_update_prep,
 235:			.issue			= io_files_update,
 236:		},
 237:		[IORING_OP_STATX] = {
 238:			.audit_skip		= 1,
 239:			.prep			= io_statx_prep,
 240:			.issue			= io_statx,
 241:		},
 242:		[IORING_OP_READ] = {
 243:			.needs_file		= 1,
 244:			.unbound_nonreg_file	= 1,
 245:			.pollin			= 1,
 246:			.buffer_select		= 1,
 247:			.plug			= 1,
 248:			.audit_skip		= 1,
 249:			.ioprio			= 1,
 250:			.iopoll			= 1,
 251:			.async_size		= sizeof(struct io_async_rw),
 252:			.prep			= io_prep_read,
 253:			.issue			= io_read,
 254:		},
 255:		[IORING_OP_WRITE] = {
 256:			.needs_file		= 1,
 257:			.hash_reg_file		= 1,
 258:			.unbound_nonreg_file	= 1,
 259:			.pollout		= 1,
 260:			.plug			= 1,
 261:			.audit_skip		= 1,
 262:			.ioprio			= 1,
 263:			.iopoll			= 1,
 264:			.async_size		= sizeof(struct io_async_rw),
 265:			.prep			= io_prep_write,
 266:			.issue			= io_write,
 267:		},
 268:		[IORING_OP_FADVISE] = {
 269:			.needs_file		= 1,
 270:			.audit_skip		= 1,
 271:			.prep			= io_fadvise_prep,
 272:			.issue			= io_fadvise,
 273:		},
 274:		[IORING_OP_MADVISE] = {
 275:			.audit_skip		= 1,
 276:			.prep			= io_madvise_prep,
 277:			.issue			= io_madvise,
 278:		},
 279:		[IORING_OP_SEND] = {
 280:			.needs_file		= 1,
 281:			.unbound_nonreg_file	= 1,
 282:			.pollout		= 1,
 283:			.audit_skip		= 1,
 284:			.ioprio			= 1,
 285:			.buffer_select		= 1,
 286:	#if defined(CONFIG_NET)
 287:			.async_size		= sizeof(struct io_async_msghdr),
 288:			.prep			= io_sendmsg_prep,
 289:			.issue			= io_send,
 290:	#else
 291:			.prep			= io_eopnotsupp_prep,
 292:	#endif
 293:		},
 294:		[IORING_OP_RECV] = {
 295:			.needs_file		= 1,
 296:			.unbound_nonreg_file	= 1,
 297:			.pollin			= 1,
 298:			.buffer_select		= 1,
 299:			.audit_skip		= 1,
 300:			.ioprio			= 1,
 301:	#if defined(CONFIG_NET)
 302:			.async_size		= sizeof(struct io_async_msghdr),
 303:			.prep			= io_recvmsg_prep,
 304:			.issue			= io_recv,
 305:	#else
 306:			.prep			= io_eopnotsupp_prep,
 307:	#endif
 308:		},
 309:		[IORING_OP_OPENAT2] = {
 310:			.filter_pdu_size	= sizeof_field(struct io_uring_bpf_ctx, open),
 311:			.prep			= io_openat2_prep,
 312:			.issue			= io_openat2,
 313:			.filter_populate	= io_openat_bpf_populate,
 314:		},
 315:		[IORING_OP_EPOLL_CTL] = {
 316:			.unbound_nonreg_file	= 1,
 317:			.audit_skip		= 1,
 318:	#if defined(CONFIG_EPOLL)
 319:			.prep			= io_epoll_ctl_prep,
 320:			.issue			= io_epoll_ctl,
 321:	#else
 322:			.prep			= io_eopnotsupp_prep,
 323:	#endif
 324:		},
 325:		[IORING_OP_SPLICE] = {
 326:			.needs_file		= 1,
 327:			.hash_reg_file		= 1,
 328:			.unbound_nonreg_file	= 1,
 329:			.audit_skip		= 1,
 330:			.prep			= io_splice_prep,
 331:			.issue			= io_splice,
 332:		},
 333:		[IORING_OP_PROVIDE_BUFFERS] = {
 334:			.audit_skip		= 1,
 335:			.iopoll			= 1,
 336:			.prep			= io_provide_buffers_prep,
 337:			.issue			= io_manage_buffers_legacy,
 338:		},
 339:		[IORING_OP_REMOVE_BUFFERS] = {
 340:			.audit_skip		= 1,
 341:			.iopoll			= 1,
 342:			.prep			= io_remove_buffers_prep,
 343:			.issue			= io_manage_buffers_legacy,
 344:		},
 345:		[IORING_OP_TEE] = {
 346:			.needs_file		= 1,
 347:			.hash_reg_file		= 1,
 348:			.unbound_nonreg_file	= 1,
 349:			.audit_skip		= 1,
 350:			.prep			= io_tee_prep,
 351:			.issue			= io_tee,
 352:		},
 353:		[IORING_OP_SHUTDOWN] = {
 354:			.needs_file		= 1,
 355:	#if defined(CONFIG_NET)
 356:			.prep			= io_shutdown_prep,
 357:			.issue			= io_shutdown,
 358:	#else
 359:			.prep			= io_eopnotsupp_prep,
 360:	#endif
 361:		},
 362:		[IORING_OP_RENAMEAT] = {
 363:			.prep			= io_renameat_prep,
 364:			.issue			= io_renameat,
 365:		},
 366:		[IORING_OP_UNLINKAT] = {
 367:			.prep			= io_unlinkat_prep,
 368:			.issue			= io_unlinkat,
 369:		},
 370:		[IORING_OP_MKDIRAT] = {
 371:			.prep			= io_mkdirat_prep,
 372:			.issue			= io_mkdirat,
 373:		},
 374:		[IORING_OP_SYMLINKAT] = {
 375:			.prep			= io_symlinkat_prep,
 376:			.issue			= io_symlinkat,
 377:		},
 378:		[IORING_OP_LINKAT] = {
 379:			.prep			= io_linkat_prep,
 380:			.issue			= io_linkat,
 381:		},
 382:		[IORING_OP_MSG_RING] = {
 383:			.needs_file		= 1,
 384:			.iopoll			= 1,
 385:			.prep			= io_msg_ring_prep,
 386:			.issue			= io_msg_ring,
 387:		},
 388:		[IORING_OP_FSETXATTR] = {
 389:			.needs_file = 1,
 390:			.prep			= io_fsetxattr_prep,
 391:			.issue			= io_fsetxattr,
 392:		},
 393:		[IORING_OP_SETXATTR] = {
 394:			.prep			= io_setxattr_prep,
 395:			.issue			= io_setxattr,
 396:		},
 397:		[IORING_OP_FGETXATTR] = {
 398:			.needs_file = 1,
 399:			.prep			= io_fgetxattr_prep,
 400:			.issue			= io_fgetxattr,
 401:		},
 402:		[IORING_OP_GETXATTR] = {
 403:			.prep			= io_getxattr_prep,
 404:			.issue			= io_getxattr,
 405:		},
 406:		[IORING_OP_SOCKET] = {
 407:			.audit_skip		= 1,
 408:	#if defined(CONFIG_NET)
 409:			.filter_pdu_size	= sizeof_field(struct io_uring_bpf_ctx, socket),
 410:			.prep			= io_socket_prep,
 411:			.issue			= io_socket,
 412:			.filter_populate	= io_socket_bpf_populate,
 413:	#else
 414:			.prep			= io_eopnotsupp_prep,
 415:	#endif
 416:		},
 417:		[IORING_OP_URING_CMD] = {
 418:			.buffer_select		= 1,
 419:			.needs_file		= 1,
 420:			.plug			= 1,
 421:			.iopoll			= 1,
 422:			.async_size		= sizeof(struct io_async_cmd),
 423:			.prep			= io_uring_cmd_prep,
 424:			.issue			= io_uring_cmd,
 425:		},
 426:		[IORING_OP_SEND_ZC] = {
 427:			.needs_file		= 1,
 428:			.unbound_nonreg_file	= 1,
 429:			.pollout		= 1,
 430:			.audit_skip		= 1,
 431:			.ioprio			= 1,
 432:	#if defined(CONFIG_NET)
 433:			.async_size		= sizeof(struct io_async_msghdr),
 434:			.prep			= io_send_zc_prep,
 435:			.issue			= io_sendmsg_zc,
 436:	#else
 437:			.prep			= io_eopnotsupp_prep,
 438:	#endif
 439:		},
 440:		[IORING_OP_SENDMSG_ZC] = {
 441:			.needs_file		= 1,
 442:			.unbound_nonreg_file	= 1,
 443:			.pollout		= 1,
 444:			.ioprio			= 1,
 445:	#if defined(CONFIG_NET)
 446:			.async_size		= sizeof(struct io_async_msghdr),
 447:			.prep			= io_send_zc_prep,
 448:			.issue			= io_sendmsg_zc,
 449:	#else
 450:			.prep			= io_eopnotsupp_prep,
 451:	#endif
 452:		},
 453:		[IORING_OP_READ_MULTISHOT] = {
 454:			.needs_file		= 1,
 455:			.unbound_nonreg_file	= 1,
 456:			.pollin			= 1,
 457:			.buffer_select		= 1,
 458:			.audit_skip		= 1,
 459:			.async_size		= sizeof(struct io_async_rw),
 460:			.prep			= io_read_mshot_prep,
 461:			.issue			= io_read_mshot,
 462:		},
 463:		[IORING_OP_WAITID] = {
 464:			.async_size		= sizeof(struct io_waitid_async),
 465:			.prep			= io_waitid_prep,
 466:			.issue			= io_waitid,
 467:		},
 468:		[IORING_OP_FUTEX_WAIT] = {
 469:	#if defined(CONFIG_FUTEX)
 470:			.prep			= io_futex_prep,
 471:			.issue			= io_futex_wait,
 472:	#else
 473:			.prep			= io_eopnotsupp_prep,
 474:	#endif
 475:		},
 476:		[IORING_OP_FUTEX_WAKE] = {
 477:	#if defined(CONFIG_FUTEX)
 478:			.prep			= io_futex_prep,
 479:			.issue			= io_futex_wake,
 480:	#else
 481:			.prep			= io_eopnotsupp_prep,
 482:	#endif
 483:		},
 484:		[IORING_OP_FUTEX_WAITV] = {
 485:	#if defined(CONFIG_FUTEX)
 486:			.prep			= io_futexv_prep,
 487:			.issue			= io_futexv_wait,
 488:	#else
 489:			.prep			= io_eopnotsupp_prep,
 490:	#endif
 491:		},
 492:		[IORING_OP_FIXED_FD_INSTALL] = {
 493:			.needs_file		= 1,
 494:			.prep			= io_install_fixed_fd_prep,
 495:			.issue			= io_install_fixed_fd,
 496:		},
 497:		[IORING_OP_FTRUNCATE] = {
 498:			.needs_file		= 1,
 499:			.hash_reg_file		= 1,
 500:			.prep			= io_ftruncate_prep,
 501:			.issue			= io_ftruncate,
 502:		},
 503:		[IORING_OP_BIND] = {
 504:	#if defined(CONFIG_NET)
 505:			.needs_file		= 1,
 506:			.prep			= io_bind_prep,
 507:			.issue			= io_bind,
 508:			.async_size		= sizeof(struct sockaddr_storage),
 509:	#else
 510:			.prep			= io_eopnotsupp_prep,
 511:	#endif
 512:		},
 513:		[IORING_OP_LISTEN] = {
 514:	#if defined(CONFIG_NET)
 515:			.needs_file		= 1,
 516:			.prep			= io_listen_prep,
 517:			.issue			= io_listen,
 518:	#else
 519:			.prep			= io_eopnotsupp_prep,
 520:	#endif
 521:		},
 522:		[IORING_OP_RECV_ZC] = {
 523:			.audit_skip		= 1,
 524:			.needs_file		= 1,
 525:			.unbound_nonreg_file	= 1,
 526:			.pollin			= 1,
 527:			.ioprio			= 1,
 528:	#if defined(CONFIG_NET)
 529:			.prep			= io_recvzc_prep,
 530:			.issue			= io_recvzc,
 531:	#else
 532:			.prep			= io_eopnotsupp_prep,
 533:	#endif
 534:		},
 535:		[IORING_OP_EPOLL_WAIT] = {
 536:			.needs_file		= 1,
 537:			.audit_skip		= 1,
 538:			.pollin			= 1,
 539:	#if defined(CONFIG_EPOLL)
 540:			.prep			= io_epoll_wait_prep,
 541:			.issue			= io_epoll_wait,
 542:	#else
 543:			.prep			= io_eopnotsupp_prep,
 544:	#endif
 545:		},
 546:		[IORING_OP_READV_FIXED] = {
 547:			.needs_file		= 1,
 548:			.unbound_nonreg_file	= 1,
 549:			.pollin			= 1,
 550:			.plug			= 1,
 551:			.audit_skip		= 1,
 552:			.ioprio			= 1,
 553:			.iopoll			= 1,
 554:			.vectored		= 1,
 555:			.async_size		= sizeof(struct io_async_rw),
 556:			.prep			= io_prep_readv_fixed,
 557:			.issue			= io_read,
 558:		},
 559:		[IORING_OP_WRITEV_FIXED] = {
 560:			.needs_file		= 1,
 561:			.hash_reg_file		= 1,
 562:			.unbound_nonreg_file	= 1,
 563:			.pollout		= 1,
 564:			.plug			= 1,
 565:			.audit_skip		= 1,
 566:			.ioprio			= 1,
 567:			.iopoll			= 1,
 568:			.vectored		= 1,
 569:			.async_size		= sizeof(struct io_async_rw),
 570:			.prep			= io_prep_writev_fixed,
 571:			.issue			= io_write,
 572:		},
 573:		[IORING_OP_PIPE] = {
 574:			.prep			= io_pipe_prep,
 575:			.issue			= io_pipe,
 576:		},
 577:		[IORING_OP_NOP128] = {
 578:			.audit_skip		= 1,
 579:			.iopoll			= 1,
 580:			.is_128			= 1,
 581:			.prep			= io_nop_prep,
 582:			.issue			= io_nop,
 583:		},
 584:		[IORING_OP_URING_CMD128] = {
 585:			.buffer_select		= 1,
 586:			.needs_file		= 1,
 587:			.plug			= 1,
 588:			.iopoll			= 1,
 589:			.is_128			= 1,
 590:			.async_size		= sizeof(struct io_async_cmd),
 591:			.prep			= io_uring_cmd_prep,
 592:			.issue			= io_uring_cmd,
 593:		},
 594:	};
 SourceFile:io_uring/opdef.c]

136/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 83629
							output: 40
							thoughts: 255
						

Thoughts:
**Analyzing the Poll Handler and Queueing Logic**

Okay, so I'm focusing on this `IORING_OP_URING_CMD` operation, and something just clicked. It's odd that it has both `pollin` and `pollout` set to zero. That immediately flags something. If that's the case, then the `io_arm_poll_handler` is supposed to return `IO_APOLL_ABORTED`. Let me just double-check that handler code, yeah, here it is:

```c
	if (!def->pollin && !def->pollout)
		return IO_APOLL_ABORTED;
```

Yep, that's exactly what it's doing. Perfect. Now, let's see how that result is used in `io_queue_async`. It's calling `io_arm_poll_handler` and then, depending on the return value:

```c
	switch (io_arm_poll_handler(req, 0)) {
	case IO_APOLL_READY:
		io_req_task_queue(req);
		break;
	case IO_APOLL_ABORTED:
		io_queue_iowq(req);
		break;
	case IO_APOLL_OK:
		break;
	}
```

So if `IO_APOLL_ABORTED` is returned, then `io_queue_iowq(req)` is called. Time to dive into the `io_queue_iowq` function and see what it is doing...



137/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_queue_iowq]

Results:
map[SourceCode: 408:	static void io_queue_iowq(struct io_kiocb *req)
 409:	{
 410:		struct io_uring_task *tctx = req->tctx;
 411:	
 412:		BUG_ON(!tctx);
 413:	
 414:		if ((current->flags & PF_KTHREAD) || !tctx->io_wq) {
 415:			io_req_task_queue_fail(req, -ECANCELED);
 416:			return;
 417:		}
 418:	
 419:		/* init ->work of the whole link before punting */
 420:		io_prep_async_link(req);
 421:	
 422:		/*
 423:		 * Not expected to happen, but if we do have a bug where this _can_
 424:		 * happen, catch it here and ensure the request is marked as
 425:		 * canceled. That will make io-wq go through the usual work cancel
 426:		 * procedure rather than attempt to run this request (or create a new
 427:		 * worker for it).
 428:		 */
 429:		if (WARN_ON_ONCE(!same_thread_group(tctx->task, current)))
 430:			atomic_or(IO_WQ_WORK_CANCEL, &req->work.flags);
 431:	
 432:		trace_io_uring_queue_async_work(req, io_wq_is_hashed(&req->work));
 433:		io_wq_enqueue(tctx->io_wq, &req->work);
 434:	}
 SourceFile:io_uring/io_uring.c]

138/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 84756
							output: 42
							thoughts: 130
						

Thoughts:
**Tracing the Path of an I/O Request**

Okay, so the `io_queue_iowq` function initially queues the request to `io_wq`. That makes sense. The `io_wq` is then responsible for actually executing the request. After that, the worker thread will call `io_issue_sqe` again, right? And I'm pretty sure `io_issue_sqe` is going to ultimately call `io_uring_cmd`. And *that* function will in turn call `file->f_op->uring_cmd`. Now I remember: `ublk`'s implementation of `uring_cmd` specifically handles the `UBLK_U_CMD_ADD_DEV` command. Ah, that's it! I need to check `ublk_ctrl_uring_cmd` to see the specifics.



139/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctrl_uring_cmd]

Results:
map[SourceCode:5746:	static int ublk_ctrl_uring_cmd(struct io_uring_cmd *cmd,
5747:			unsigned int issue_flags)
5748:	{
5749:		/* May point to userspace-mapped memory */
5750:		const struct ublksrv_ctrl_cmd *ub_src = io_uring_sqe128_cmd(cmd->sqe,
5751:									    struct ublksrv_ctrl_cmd);
5752:		struct ublksrv_ctrl_cmd header;
5753:		struct ublk_device *ub = NULL;
5754:		u32 cmd_op = cmd->cmd_op;
5755:		int ret = -EINVAL;
5756:	
5757:		if (ublk_ctrl_uring_cmd_may_sleep(cmd_op) &&
5758:		    issue_flags & IO_URING_F_NONBLOCK)
5759:			return -EAGAIN;
5760:	
5761:		if (!(issue_flags & IO_URING_F_SQE128))
5762:			return -EINVAL;
5763:	
5764:		header.dev_id = READ_ONCE(ub_src->dev_id);
5765:		header.queue_id = READ_ONCE(ub_src->queue_id);
5766:		header.len = READ_ONCE(ub_src->len);
5767:		header.addr = READ_ONCE(ub_src->addr);
5768:		header.data[0] = READ_ONCE(ub_src->data[0]);
5769:		header.dev_path_len = READ_ONCE(ub_src->dev_path_len);
5770:		ublk_ctrl_cmd_dump(cmd_op, &header);
5771:	
5772:		ret = ublk_check_cmd_op(cmd_op);
5773:		if (ret)
5774:			goto out;
5775:	
5776:		if (cmd_op == UBLK_U_CMD_GET_FEATURES) {
5777:			ret = ublk_ctrl_get_features(&header);
5778:			goto out;
5779:		}
5780:	
5781:		if (_IOC_NR(cmd_op) != UBLK_CMD_ADD_DEV) {
5782:			ret = -ENODEV;
5783:			ub = ublk_get_device_from_id(header.dev_id);
5784:			if (!ub)
5785:				goto out;
5786:	
5787:			ret = ublk_ctrl_uring_cmd_permission(ub, cmd_op, &header);
5788:			if (ret)
5789:				goto put_dev;
5790:		}
5791:	
5792:		switch (_IOC_NR(cmd_op)) {
5793:		case UBLK_CMD_START_DEV:
5794:			ret = ublk_ctrl_start_dev(ub, &header);
5795:			break;
5796:		case UBLK_CMD_STOP_DEV:
5797:			ublk_ctrl_stop_dev(ub);
5798:			ret = 0;
5799:			break;
5800:		case UBLK_CMD_GET_DEV_INFO:
5801:		case UBLK_CMD_GET_DEV_INFO2:
5802:			ret = ublk_ctrl_get_dev_info(ub, &header);
5803:			break;
5804:		case UBLK_CMD_ADD_DEV:
5805:			ret = ublk_ctrl_add_dev(&header);
5806:			break;
5807:		case UBLK_CMD_DEL_DEV:
5808:			ret = ublk_ctrl_del_dev(&ub, true);
5809:			break;
5810:		case UBLK_CMD_DEL_DEV_ASYNC:
5811:			ret = ublk_ctrl_del_dev(&ub, false);
5812:			break;
5813:		case UBLK_CMD_GET_QUEUE_AFFINITY:
5814:			ret = ublk_ctrl_get_queue_affinity(ub, &header);
5815:			break;
5816:		case UBLK_CMD_GET_PARAMS:
5817:			ret = ublk_ctrl_get_params(ub, &header);
5818:			break;
5819:		case UBLK_CMD_SET_PARAMS:
5820:			ret = ublk_ctrl_set_params(ub, &header);
5821:			break;
5822:		case UBLK_CMD_START_USER_RECOVERY:
5823:			ret = ublk_ctrl_start_recovery(ub);
5824:			break;
5825:		case UBLK_CMD_END_USER_RECOVERY:
5826:			ret = ublk_ctrl_end_recovery(ub, &header);
5827:			break;
5828:		case UBLK_CMD_UPDATE_SIZE:
5829:			ret = ublk_ctrl_set_size(ub, &header);
5830:			break;
5831:		case UBLK_CMD_QUIESCE_DEV:
5832:			ret = ublk_ctrl_quiesce_dev(ub, &header);
5833:			break;
5834:		case UBLK_CMD_TRY_STOP_DEV:
5835:			ret = ublk_ctrl_try_stop_dev(ub);
5836:			break;
5837:		case UBLK_CMD_REG_BUF:
5838:			ret = ublk_ctrl_reg_buf(ub, &header);
5839:			break;
5840:		case UBLK_CMD_UNREG_BUF:
5841:			ret = ublk_ctrl_unreg_buf(ub, &header);
5842:			break;
5843:		default:
5844:			ret = -EOPNOTSUPP;
5845:			break;
5846:		}
5847:	
5848:	 put_dev:
5849:		if (ub)
5850:			ublk_put_device(ub);
5851:	 out:
5852:		pr_devel("%s: cmd done ret %d cmd_op %x, dev id %d qid %d\n",
5853:				__func__, ret, cmd_op, header.dev_id, header.queue_id);
5854:		return ret;
5855:	}
 SourceFile:drivers/block/ublk_drv.c]

140/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 86943
							output: 46
							thoughts: 71
						

Thoughts:
**Analyzing the Potential for Sleep in the ublk Control Path**

Okay, so I'm seeing that `ublk_ctrl_uring_cmd` can return `-EAGAIN` under certain conditions, specifically if `ublk_ctrl_uring_cmd_may_sleep(cmd_op)` evaluates to true *and* the `issue_flags` include `IO_URING_F_NONBLOCK`. This makes perfect sense; a non-blocking request can't sleep, so if the underlying operation *might* block, we need to signal that back up the chain.

The key question now is, what determines if `ublk_ctrl_uring_cmd_may_sleep` is true? I need to dive into that function and understand the logic there. I want to see which operations within the control path could potentially involve waiting on something, whether it be a resource, a lock, or something else. I'll need to understand the control path's architecture to work out the exact scenario when `ublk_ctrl_uring_cmd_may_sleep()` returns a true value.



141/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctrl_uring_cmd_may_sleep]

Results:
map[SourceCode:5733:	static bool ublk_ctrl_uring_cmd_may_sleep(u32 cmd_op)
5734:	{
5735:		switch (_IOC_NR(cmd_op)) {
5736:		case UBLK_CMD_GET_QUEUE_AFFINITY:
5737:		case UBLK_CMD_GET_DEV_INFO:
5738:		case UBLK_CMD_GET_DEV_INFO2:
5739:		case _IOC_NR(UBLK_U_CMD_GET_FEATURES):
5740:			return false;
5741:		default:
5742:			return true;
5743:		}
5744:	}
 SourceFile:drivers/block/ublk_drv.c]

142/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 87507
							output: 42
							thoughts: 366
						

Thoughts:
**Decoding the Non-Blocking Mystery**

Okay, so I'm seeing `UBLK_CMD_ADD_DEV` returning `true`. That's the starting point. The plot thickens because `io_issue_sqe` is calling this, but with `IO_URING_F_NONBLOCK` set. Right, got it, that’s because `io_queue_sqe` sets up the call as `io_issue_sqe(req, IO_URING_F_NONBLOCK | IO_URING_F_COMPLETE_DEFER | extra_flags)`.

This causes `ublk_ctrl_uring_cmd` to predictably return `-EAGAIN`. And that ripples out. `io_uring_cmd` then returns `-EAGAIN`, sets `IORING_URING_CMD_REISSUE`, and back to `io_issue_sqe` with its `-EAGAIN`. Then `io_queue_sqe` correctly picks up on this with `io_queue_async(req, issue_flags, -EAGAIN)`.

Then, we're off to `io_arm_poll_handler` which kicks us back an `IO_APOLL_ABORTED`. Then `io_queue_async` pushes things along to the `io_queue_iowq` which queues it for the `io_wq`. This feels familiar: The `io_wq` is going to execute this, but... wait, it's a worker thread! Aha! The key difference: that worker thread then calls `io_issue_sqe` *without* `IO_URING_F_NONBLOCK`.

And that's the break! When `ublk_ctrl_uring_cmd` is called in this context, it doesn't return `-EAGAIN`. Now it's going to call `ublk_ctrl_add_dev`. This is where the actual action is happening, so let's check `ublk_ctrl_add_dev`.



143/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctrl_add_dev]

Results:
map[SourceCode:4648:	static int ublk_ctrl_add_dev(const struct ublksrv_ctrl_cmd *header)
4649:	{
4650:		void __user *argp = (void __user *)(unsigned long)header->addr;
4651:		struct ublksrv_ctrl_dev_info info;
4652:		struct ublk_device *ub;
4653:		int ret = -EINVAL;
4654:	
4655:		if (header->len < sizeof(info) || !header->addr)
4656:			return -EINVAL;
4657:		if (header->queue_id != (u16)-1) {
4658:			pr_warn("%s: queue_id is wrong %x\n",
4659:				__func__, header->queue_id);
4660:			return -EINVAL;
4661:		}
4662:	
4663:		if (copy_from_user(&info, argp, sizeof(info)))
4664:			return -EFAULT;
4665:	
4666:		if (info.queue_depth > UBLK_MAX_QUEUE_DEPTH || !info.queue_depth ||
4667:		    info.nr_hw_queues > UBLK_MAX_NR_QUEUES || !info.nr_hw_queues)
4668:			return -EINVAL;
4669:	
4670:		if (capable(CAP_SYS_ADMIN))
4671:			info.flags &= ~UBLK_F_UNPRIVILEGED_DEV;
4672:		else if (!(info.flags & UBLK_F_UNPRIVILEGED_DEV))
4673:			return -EPERM;
4674:	
4675:		/* forbid nonsense combinations of recovery flags */
4676:		switch (info.flags & UBLK_F_ALL_RECOVERY_FLAGS) {
4677:		case 0:
4678:		case UBLK_F_USER_RECOVERY:
4679:		case (UBLK_F_USER_RECOVERY | UBLK_F_USER_RECOVERY_REISSUE):
4680:		case (UBLK_F_USER_RECOVERY | UBLK_F_USER_RECOVERY_FAIL_IO):
4681:			break;
4682:		default:
4683:			pr_warn("%s: invalid recovery flags %llx\n", __func__,
4684:				info.flags & UBLK_F_ALL_RECOVERY_FLAGS);
4685:			return -EINVAL;
4686:		}
4687:	
4688:		if ((info.flags & UBLK_F_QUIESCE) && !(info.flags & UBLK_F_USER_RECOVERY)) {
4689:			pr_warn("UBLK_F_QUIESCE requires UBLK_F_USER_RECOVERY\n");
4690:			return -EINVAL;
4691:		}
4692:	
4693:		/*
4694:		 * unprivileged device can't be trusted, but RECOVERY and
4695:		 * RECOVERY_REISSUE still may hang error handling, so can't
4696:		 * support recovery features for unprivileged ublk now
4697:		 *
4698:		 * TODO: provide forward progress for RECOVERY handler, so that
4699:		 * unprivileged device can benefit from it
4700:		 */
4701:		if (info.flags & UBLK_F_UNPRIVILEGED_DEV) {
4702:			info.flags &= ~(UBLK_F_USER_RECOVERY_REISSUE |
4703:					UBLK_F_USER_RECOVERY);
4704:	
4705:			/*
4706:			 * For USER_COPY, we depends on userspace to fill request
4707:			 * buffer by pwrite() to ublk char device, which can't be
4708:			 * used for unprivileged device
4709:			 *
4710:			 * Same with zero copy or auto buffer register.
4711:			 */
4712:			if (info.flags & (UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY |
4713:						UBLK_F_AUTO_BUF_REG))
4714:				return -EINVAL;
4715:		}
4716:	
4717:		/* User copy is required to access integrity buffer */
4718:		if (info.flags & UBLK_F_INTEGRITY && !(info.flags & UBLK_F_USER_COPY))
4719:			return -EINVAL;
4720:	
4721:		/* the created device is always owned by current user */
4722:		ublk_store_owner_uid_gid(&info.owner_uid, &info.owner_gid);
4723:	
4724:		if (header->dev_id != info.dev_id) {
4725:			pr_warn("%s: dev id not match %u %u\n",
4726:				__func__, header->dev_id, info.dev_id);
4727:			return -EINVAL;
4728:		}
4729:	
4730:		if (header->dev_id != U32_MAX && header->dev_id >= UBLK_MAX_UBLKS) {
4731:			pr_warn("%s: dev id is too large. Max supported is %d\n",
4732:				__func__, UBLK_MAX_UBLKS - 1);
4733:			return -EINVAL;
4734:		}
4735:	
4736:		ublk_dump_dev_info(&info);
4737:	
4738:		ret = mutex_lock_killable(&ublk_ctl_mutex);
4739:		if (ret)
4740:			return ret;
4741:	
4742:		ret = -EACCES;
4743:		if ((info.flags & UBLK_F_UNPRIVILEGED_DEV) &&
4744:		    unprivileged_ublks_added >= unprivileged_ublks_max)
4745:			goto out_unlock;
4746:	
4747:		ret = -ENOMEM;
4748:		ub = kzalloc_flex(*ub, queues, info.nr_hw_queues);
4749:		if (!ub)
4750:			goto out_unlock;
4751:		mutex_init(&ub->mutex);
4752:		spin_lock_init(&ub->lock);
4753:		mutex_init(&ub->cancel_mutex);
4754:		mt_init(&ub->buf_tree);
4755:		ida_init(&ub->buf_ida);
4756:		INIT_WORK(&ub->partition_scan_work, ublk_partition_scan_work);
4757:	
4758:		ret = ublk_alloc_dev_number(ub, header->dev_id);
4759:		if (ret < 0)
4760:			goto out_free_ub;
4761:	
4762:		memcpy(&ub->dev_info, &info, sizeof(info));
4763:	
4764:		/* update device id */
4765:		ub->dev_info.dev_id = ub->ub_number;
4766:	
4767:		/*
4768:		 * ->state and ->ublksrv_pid are owned by the driver and only read back
4769:		 * by userspace, but they come from the copied-in dev_info, so reset
4770:		 * them. Otherwise a device added with ->state != DEAD looks live while
4771:		 * ->ub_disk is still NULL.
4772:		 */
4773:		ub->dev_info.state = UBLK_S_DEV_DEAD;
4774:		ub->dev_info.ublksrv_pid = -1;
4775:	
4776:		/*
4777:		 * 64bit flags will be copied back to userspace as feature
4778:		 * negotiation result, so have to clear flags which driver
4779:		 * doesn't support yet, then userspace can get correct flags
4780:		 * (features) to handle.
4781:		 */
4782:		ub->dev_info.flags &= UBLK_F_ALL;
4783:	
4784:		ub->dev_info.flags |= UBLK_F_CMD_IOCTL_ENCODE |
4785:			UBLK_F_URING_CMD_COMP_IN_TASK |
4786:			UBLK_F_PER_IO_DAEMON |
4787:			UBLK_F_BUF_REG_OFF_DAEMON |
4788:			UBLK_F_SAFE_STOP_DEV;
4789:	
4790:		/* So far, UBLK_F_PER_IO_DAEMON won't be exposed for BATCH_IO */
4791:		if (ublk_dev_support_batch_io(ub))
4792:			ub->dev_info.flags &= ~UBLK_F_PER_IO_DAEMON;
4793:	
4794:		/* GET_DATA isn't needed any more with USER_COPY or ZERO COPY */
4795:		if (ub->dev_info.flags & (UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY |
4796:					UBLK_F_AUTO_BUF_REG))
4797:			ub->dev_info.flags &= ~UBLK_F_NEED_GET_DATA;
4798:	
4799:		/* UBLK_F_BATCH_IO doesn't support GET_DATA */
4800:		if (ublk_dev_support_batch_io(ub))
4801:			ub->dev_info.flags &= ~UBLK_F_NEED_GET_DATA;
4802:	
4803:		/*
4804:		 * Zoned storage support requires reuse `ublksrv_io_cmd->addr` for
4805:		 * returning write_append_lba, which is only allowed in case of
4806:		 * user copy or zero copy
4807:		 */
4808:		if (ublk_dev_is_zoned(ub) &&
4809:		    (!IS_ENABLED(CONFIG_BLK_DEV_ZONED) || !(ub->dev_info.flags &
4810:		     (UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY)))) {
4811:			ret = -EINVAL;
4812:			goto out_free_dev_number;
4813:		}
4814:	
4815:		ub->dev_info.nr_hw_queues = min_t(unsigned int,
4816:				ub->dev_info.nr_hw_queues, nr_cpu_ids);
4817:		ublk_align_max_io_size(ub);
4818:	
4819:		ret = ublk_add_tag_set(ub);
4820:		if (ret)
4821:			goto out_free_dev_number;
4822:	
4823:		ret = ublk_init_queues(ub);
4824:		if (ret)
4825:			goto out_free_tag_set;
4826:	
4827:		ret = -EFAULT;
4828:		if (copy_to_user(argp, &ub->dev_info, sizeof(info)))
4829:			goto out_deinit_queues;
4830:	
4831:		/*
4832:		 * Add the char dev so that ublksrv daemon can be setup.
4833:		 * ublk_add_chdev() will cleanup everything if it fails.
4834:		 */
4835:		ret = ublk_add_chdev(ub);
4836:		goto out_unlock;
4837:	
4838:	out_deinit_queues:
4839:		ublk_deinit_queues(ub);
4840:	out_free_tag_set:
4841:		blk_mq_free_tag_set(&ub->tag_set);
4842:	out_free_dev_number:
4843:		ublk_free_dev_number(ub);
4844:	out_free_ub:
4845:		mutex_destroy(&ub->mutex);
4846:		mutex_destroy(&ub->cancel_mutex);
4847:		kfree(ub);
4848:	out_unlock:
4849:		mutex_unlock(&ublk_ctl_mutex);
4850:		return ret;
4851:	}
 SourceFile:drivers/block/ublk_drv.c]

144/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 91802
							output: 40
							thoughts: 564
						

Thoughts:
**Analyzing a Potential Kernel Memory Leak**

Okay, let's break this down. I see that `ublk_ctrl_add_dev` uses `copy_to_user` to send data to userspace, specifically using `header->addr` as the target. My initial concern, as it always is when crossing user/kernel boundaries, is whether this pointer is valid in the worker thread context. My gut tells me this could be problematic, since the worker thread might not share the same address space. But, let's see.

Aha! the `io_wq` thread executes this in a worker thread. My first instinct would be they *wouldn't* share the same address space. But, I remember that `io_wq` uses `PF_USER_WORKER` threads, created via `create_io_thread`, and those threads *do* share the creator's memory space via `clone` with `CLONE_VM`. Excellent. So `copy_to_user` should be safe, in terms of address space.

But, it still could fail, returning `-EFAULT`. I need to think about error handling. If `copy_to_user` fails, then `ublk_ctrl_add_dev`, `ublk_ctrl_uring_cmd`, `io_uring_cmd`, `io_issue_sqe` return `-EFAULT`, and finally `io_wq` completes the request with `-EFAULT`. So at least it's handled, no leak! Good.

Now, a second scenario. What if `ublk_ctrl_add_dev` gets called but blocks on `mutex_lock_killable`? If the process gets killed while waiting, `mutex_lock_killable` returns `-EINTR` or `-ERESTARTSYS`. Let's look at the bug report: `connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF`. Okay, that suggests the syzkaller executor crashed or was killed. If the process is killed while blocked, it gets `-EINTR` (or `-ERESTARTSYS`). `ublk_ctrl_add_dev` returns `-EINTR`, and `io_wq` completes the request with `-EINTR`. This also doesn't leak.

The final case: What if the process exits while the request is still in the `io_wq` queue? That would be nasty. Let's think about this: if the process exits, `io_uring` should cancel all requests in flight. Let's verify that. `io_uring_cancel_generic` handles this. Okay, I'll need to double check that function, but that seems the most likely code path.



145/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_uring_cancel_generic]

Results:
map[SourceCode: 578:	/*
 579:	 * Find any io_uring ctx that this task has registered or done IO on, and cancel
 580:	 * requests. @sqd should be not-null IFF it's an SQPOLL thread cancellation.
 581:	 */
 582:	__cold void io_uring_cancel_generic(bool cancel_all, struct io_sq_data *sqd)
 583:	{
 584:		struct io_uring_task *tctx = current->io_uring;
 585:		struct io_ring_ctx *ctx;
 586:		struct io_tctx_node *node;
 587:		unsigned long index;
 588:		s64 inflight;
 589:		DEFINE_WAIT(wait);
 590:	
 591:		WARN_ON_ONCE(sqd && sqpoll_task_locked(sqd) != current);
 592:	
 593:		if (!current->io_uring)
 594:			return;
 595:		if (tctx->io_wq)
 596:			io_wq_exit_start(tctx->io_wq);
 597:	
 598:		atomic_inc(&tctx->in_cancel);
 599:		do {
 600:			bool loop = false;
 601:	
 602:			io_uring_drop_tctx_refs(current);
 603:			if (!tctx_inflight(tctx, !cancel_all))
 604:				break;
 605:	
 606:			/* read completions before cancelations */
 607:			inflight = tctx_inflight(tctx, false);
 608:			if (!inflight)
 609:				break;
 610:	
 611:			if (!sqd) {
 612:				xa_for_each(&tctx->xa, index, node) {
 613:					/* sqpoll task will cancel all its requests */
 614:					if (node->ctx->sq_data)
 615:						continue;
 616:					loop |= io_uring_try_cancel_requests(node->ctx,
 617:								current->io_uring,
 618:								cancel_all,
 619:								false);
 620:				}
 621:			} else {
 622:				list_for_each_entry(ctx, &sqd->ctx_list, sqd_list)
 623:					loop |= io_uring_try_cancel_requests(ctx,
 624:									     current->io_uring,
 625:									     cancel_all,
 626:									     true);
 627:			}
 628:	
 629:			if (loop) {
 630:				cond_resched();
 631:				continue;
 632:			}
 633:	
 634:			prepare_to_wait(&tctx->wait, &wait, TASK_INTERRUPTIBLE);
 635:			io_run_task_work();
 636:			io_uring_drop_tctx_refs(current);
 637:			xa_for_each(&tctx->xa, index, node) {
 638:				if (io_local_work_pending(node->ctx)) {
 639:					WARN_ON_ONCE(node->ctx->submitter_task &&
 640:						     node->ctx->submitter_task != current);
 641:					goto end_wait;
 642:				}
 643:			}
 644:			/*
 645:			 * If we've seen completions, retry without waiting. This
 646:			 * avoids a race where a completion comes in before we did
 647:			 * prepare_to_wait().
 648:			 */
 649:			if (inflight == tctx_inflight(tctx, !cancel_all))
 650:				schedule();
 651:	end_wait:
 652:			finish_wait(&tctx->wait, &wait);
 653:		} while (1);
 654:	
 655:		io_uring_clean_tctx(tctx);
 656:		if (cancel_all) {
 657:			/*
 658:			 * We shouldn't run task_works after cancel, so just leave
 659:			 * ->in_cancel set for normal exit.
 660:			 */
 661:			atomic_dec(&tctx->in_cancel);
 662:			/* for exec all current's requests should be gone, kill tctx */
 663:			io_uring_free_tctx(current);
 664:		}
 665:	}
 SourceFile:io_uring/cancel.c]

146/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 94295
							output: 40
							thoughts: 204
						

Thoughts:
**Analyzing Potential io_uring Memory Leaks**

Okay, so I'm tracing this `io_uring_try_cancel_requests` function, and it looks like it calls `io_wq_cancel_cb`. That's the first red flag, because if the request is *already* executing within the `io_wq`, then cancellation is impossible. But wait a minute, if it *is* in `io_wq`, `io_wq` is going to complete it eventually. And `io_uring_cancel_generic` waits for *all* inflight requests to complete, right? Right, the code confirms this, it waits until `tctx_inflight` hits zero. So, that means everything has to finish. And if things finish, they're completed and cleaned up. No leaks, in theory! That's the normal flow, at least.

But, what about a corner case? What if `io_uring_cmd` allocates this `async_data` structure and passes it off to `io_wq`? And then, the `io_wq` finishes the operation, but for *some* reason, `async_data` is *not* freed. This is the critical point. I have to look at `io_uring_cmd_cleanup` very carefully. This is where the magic happens and everything should be deallocated. Let's dig into that function and see if there are any gotchas. I think I know where to look.



147/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_cleanup]

Results:
map[SourceCode:  44:	void io_uring_cmd_cleanup(struct io_kiocb *req)
  45:	{
  46:		io_req_uring_cleanup(req, 0);
  47:	}
 SourceFile:io_uring/uring_cmd.c]

148/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 94942
							output: 40
							thoughts: 41
						

Thoughts:
Here's my thought process, as it stands:

**Diving into the io_uring Cleanup Sequence**

Okay, so I'm focusing on the cleanup process for `io_uring` commands. I need to understand how the system tidies up resources. My immediate observation is that `io_uring_cmd_cleanup` calls `io_req_uring_cleanup(req, 0)`. That's the key. Now, `io_req_uring_cleanup` is the critical function to examine. I need to understand what it does, the variables it interacts with and the impact that `req` and `0` parameters have. Let's dig in and see how this is handled, and determine the implications of this function call.



149/2 2026/08/09 12:14 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_req_uring_cleanup]

Results:
map[SourceCode:  26:	static void io_req_uring_cleanup(struct io_kiocb *req, unsigned int issue_flags)
  27:	{
  28:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
  29:		struct io_async_cmd *ac = req->async_data;
  30:	
  31:		if (issue_flags & IO_URING_F_UNLOCKED)
  32:			return;
  33:	
  34:		io_alloc_cache_vec_kasan(&ac->vec);
  35:		if (ac->vec.nr > IO_VEC_CACHE_SOFT_CAP)
  36:			io_vec_free(&ac->vec);
  37:	
  38:		if (io_alloc_cache_put(&req->ctx->cmd_cache, ac)) {
  39:			ioucmd->sqe = NULL;
  40:			io_req_async_data_clear(req, REQ_F_NEED_CLEANUP);
  41:		}
  42:	}
 SourceFile:io_uring/uring_cmd.c]

150/2 2026/08/09 12:14 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 95501
							output: 40
							thoughts: 282
						

Thoughts:
**My Analysis of a Potential IO_uring Resource Leak**

Okay, hold on a second! I just realized something about `io_req_uring_cleanup`. If `issue_flags & IO_URING_F_UNLOCKED` is set, the function immediately returns. That means `io_alloc_cache_put` *isn't* called, so the cleanup sequence is skipped. Consequently, `REQ_F_NEED_CLEANUP` isn't cleared, nor is `REQ_F_ASYNC_DATA`! This has to have a consequence, right?

Alright, let's trace this. So, if those flags aren't cleared, then `io_clean_op` gets invoked later, which would ultimately call `kfree(req->async_data)`. If that happens then, that data *is* being freed, and there's no immediate leak. So that's good.

But wait a minute, where is `io_clean_op` called from? Ah, it's called from `io_free_batch_list`, which is then called from `__io_submit_flush_completions`. And that function, crucially, is called while the ring is *locked*. So that whole cleanup *should* happen when it is safe.

But what if the request completes from an `io_wq` worker? That's the edge case. I remember `io_wq` workers submit with `IO_URING_F_UNLOCKED` set during the `io_issue_sqe` invocation! Now, that *could* be a problem. I better check `io_wq_submit_work` to make sure it is cleaning things up properly.



151/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_wq_submit_work]

Results:
map[SourceCode:1475:	void io_wq_submit_work(struct io_wq_work *work)
1476:	{
1477:		struct io_kiocb *req = container_of(work, struct io_kiocb, work);
1478:		const struct io_issue_def *def = &io_issue_defs[req->opcode];
1479:		unsigned int issue_flags = IO_URING_F_UNLOCKED | IO_URING_F_IOWQ;
1480:		bool needs_poll = false;
1481:		int ret = 0, err = -ECANCELED;
1482:	
1483:		/* one will be dropped by io_wq_free_work() after returning to io-wq */
1484:		if (!(req->flags & REQ_F_REFCOUNT))
1485:			__io_req_set_refcount(req, 2);
1486:		else
1487:			req_ref_get(req);
1488:	
1489:		/* either cancelled or io-wq is dying, so don't touch tctx->iowq */
1490:		if (atomic_read(&work->flags) & IO_WQ_WORK_CANCEL) {
1491:	fail:
1492:			io_req_task_queue_fail(req, err);
1493:			return;
1494:		}
1495:		if (!io_assign_file(req, def, issue_flags)) {
1496:			err = -EBADF;
1497:			atomic_or(IO_WQ_WORK_CANCEL, &work->flags);
1498:			goto fail;
1499:		}
1500:	
1501:		/*
1502:		 * If DEFER_TASKRUN is set, it's only allowed to post CQEs from the
1503:		 * submitter task context. Final request completions are handed to the
1504:		 * right context, however this is not the case of auxiliary CQEs,
1505:		 * which is the main mean of operation for multishot requests.
1506:		 * Don't allow any multishot execution from io-wq. It's more restrictive
1507:		 * than necessary and also cleaner.
1508:		 */
1509:		if (req->flags & (REQ_F_MULTISHOT|REQ_F_APOLL_MULTISHOT)) {
1510:			err = -EBADFD;
1511:			if (!io_file_can_poll(req))
1512:				goto fail;
1513:			if (req->file->f_flags & O_NONBLOCK ||
1514:			    req->file->f_mode & FMODE_NOWAIT) {
1515:				err = -ECANCELED;
1516:				if (io_arm_poll_handler(req, issue_flags) != IO_APOLL_OK)
1517:					goto fail;
1518:				return;
1519:			} else {
1520:				req->flags &= ~(REQ_F_APOLL_MULTISHOT|REQ_F_MULTISHOT);
1521:			}
1522:		}
1523:	
1524:		if (req->flags & REQ_F_FORCE_ASYNC) {
1525:			bool opcode_poll = def->pollin || def->pollout;
1526:	
1527:			if (opcode_poll && io_file_can_poll(req)) {
1528:				needs_poll = true;
1529:				issue_flags |= IO_URING_F_NONBLOCK;
1530:			}
1531:		}
1532:	
1533:		do {
1534:			ret = io_issue_sqe(req, issue_flags);
1535:			if (ret != -EAGAIN)
1536:				break;
1537:	
1538:			/*
1539:			 * If REQ_F_NOWAIT is set, then don't wait or retry with
1540:			 * poll. -EAGAIN is final for that case.
1541:			 */
1542:			if (req->flags & REQ_F_NOWAIT)
1543:				break;
1544:	
1545:			/*
1546:			 * We can get EAGAIN for iopolled IO even though we're
1547:			 * forcing a sync submission from here, since we can't
1548:			 * wait for request slots on the block side.
1549:			 */
1550:			if (!needs_poll) {
1551:				if (!(req->flags & REQ_F_IOPOLL))
1552:					break;
1553:				if (io_wq_worker_stopped())
1554:					break;
1555:				cond_resched();
1556:				continue;
1557:			}
1558:	
1559:			if (io_arm_poll_handler(req, issue_flags) == IO_APOLL_OK)
1560:				return;
1561:			/* aborted or ready, in either case retry blocking */
1562:			needs_poll = false;
1563:			issue_flags &= ~IO_URING_F_NONBLOCK;
1564:		} while (1);
1565:	
1566:		/* avoid locking problems by failing it from a clean context */
1567:		if (ret)
1568:			io_req_task_queue_fail(req, ret);
1569:	}
 SourceFile:io_uring/io_uring.c]

152/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 97731
							output: 40
							thoughts: 254
						

Thoughts:
**Analyzing the ublk Device Addition Flow**

Okay, let me trace this. `io_wq_submit_work` calls `io_issue_sqe`, and I see that it uses `IO_URING_F_UNLOCKED`. This is key. Then `io_issue_sqe` calls `io_uring_cmd`, which is where things start to diverge. Looking at `io_uring_cmd`, I spot that it calls `io_req_uring_cleanup(req, issue_flags)`. Now, because `IO_URING_F_UNLOCKED` is set, `io_req_uring_cleanup` bails out early. This means `REQ_F_ASYNC_DATA` isn't cleared as I expected.

Alright, moving on. If `ublk_ctrl_add_dev` succeeds within `io_issue_sqe`, we get a return value of 0. Which means in that case `io_uring_cmd` returns `IOU_COMPLETE`, and then `io_issue_sqe` returns 0. So, `io_wq_submit_work` finishes normally.

Hold on, I see a crucial detail. If `io_issue_sqe` returns `IOU_COMPLETE`, it calls `io_req_complete_post(req, issue_flags)`. That's where the completion processing happens. Let's dig into `io_req_complete_post` to confirm my understanding of the data flow and make sure that it's handling the `REQ_F_ASYNC_DATA` correctly despite the early exit in `io_req_uring_cleanup`.



153/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_complete_post]

Results:
map[SourceCode: 919:	static void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags)
 920:	{
 921:		struct io_ring_ctx *ctx = req->ctx;
 922:		bool completed = true;
 923:	
 924:		/*
 925:		 * All execution paths but io-wq use the deferred completions by
 926:		 * passing IO_URING_F_COMPLETE_DEFER and thus should not end up here.
 927:		 */
 928:		if (WARN_ON_ONCE(!(issue_flags & IO_URING_F_IOWQ)))
 929:			return;
 930:	
 931:		/*
 932:		 * Handle special CQ sync cases via task_work. DEFER_TASKRUN requires
 933:		 * the submitter task context, IOPOLL protects with uring_lock.
 934:		 */
 935:		if ((ctx->int_flags & IO_RING_F_LOCKLESS_CQ) || (req->flags & REQ_F_REISSUE)) {
 936:	defer_complete:
 937:			req->io_task_work.func = io_req_task_complete;
 938:			io_req_task_work_add(req);
 939:			return;
 940:		}
 941:	
 942:		io_cq_lock(ctx);
 943:		if (!(req->flags & REQ_F_CQE_SKIP))
 944:			completed = io_fill_cqe_req(ctx, req);
 945:		io_cq_unlock_post(ctx);
 946:	
 947:		if (!completed)
 948:			goto defer_complete;
 949:	
 950:		/*
 951:		 * We don't free the request here because we know it's called from
 952:		 * io-wq only, which holds a reference, so it cannot be the last put.
 953:		 */
 954:		req_ref_put(req);
 955:	}
 SourceFile:io_uring/io_uring.c]

154/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 98987
							output: 40
							thoughts: 180
						

Thoughts:
**Analyzing the Request Lifecycle**

Okay, so I'm tracing the reference counting logic for this I/O request. It's a bit tricky, but I think I'm getting a handle on it. I see that `io_req_complete_post` is definitely calling `req_ref_put(req)`.  That's one decrement on the reference count, which is as expected.

But here's the crucial part: `io_wq_submit_work` seems to be setting the initial refcount. The code clearly states, based on the `REQ_F_REFCOUNT` flag, that it will either set the refcount to 2, or increment it. So, at this point, the request, `req`, is held with a refcount of 2.

So, one reference is dropped by `io_req_complete_post`… and `io_wq_submit_work` then returns. This means there's now only one refcount still held after `io_req_complete_post` has run, and is likely still held by the `io_wq` work queue mechanism.

Then, the `io_wq` worker is going to call `io_wq_free_work` to actually free the request. That's the part I really need to confirm. I should check that `io_wq_free_work` *actually* drops the last refcount. It's that final decrementation that will release the request. Let me dive into that function and confirm the expected behavior.



155/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_wq_free_work]

Results:
map[SourceCode:1457:	struct io_wq_work *io_wq_free_work(struct io_wq_work *work)
1458:	{
1459:		struct io_kiocb *req = container_of(work, struct io_kiocb, work);
1460:		struct io_kiocb *nxt = NULL;
1461:	
1462:		if (req_ref_put_and_test_atomic(req)) {
1463:			if (req->flags & IO_REQ_LINK_FLAGS) {
1464:				struct io_ring_ctx *ctx = req->ctx;
1465:	
1466:				mutex_lock(&ctx->uring_lock);
1467:				nxt = io_req_find_next(req);
1468:				mutex_unlock(&ctx->uring_lock);
1469:			}
1470:			io_free_req(req);
1471:		}
1472:		return nxt ? &nxt->work : NULL;
1473:	}
 SourceFile:io_uring/io_uring.c]

156/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 99845
							output: 38
							thoughts: 43
						

Thoughts:
Okay, let me think this through.

**Analyzing the Refcount Release and Request Deallocation**

Alright, so `io_wq_free_work` is the critical point. I remember, I need to be *sure* about this. It's dropping that *second* reference count. And after that... Ah, yes, it calls `io_free_req(req)`. Right. So we're freeing the request. Okay, let's just make absolutely certain that the request is freed *correctly*. We need to examine `io_free_req` to understand precisely what happens there. No room for ambiguity in something like I/O request handling. Time to dig into the details.



157/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_free_req]

Results:
map[SourceCode:1003:	__cold void io_free_req(struct io_kiocb *req)
1004:	{
1005:		/* refs were already put, restore them for io_req_task_complete() */
1006:		req->flags &= ~REQ_F_REFCOUNT;
1007:		/* we only want to free it, don't post CQEs */
1008:		req->flags |= REQ_F_CQE_SKIP;
1009:		req->io_task_work.func = io_req_task_complete;
1010:		io_req_task_work_add(req);
1011:	}
 SourceFile:io_uring/io_uring.c]

158/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 100279
							output: 40
							thoughts: 70
						

Thoughts:
Here's my summary, as I understand the flow:

**Analyzing the I/O Completion Path**

Okay, so I'm digging into how these I/O requests are finalized. My initial thought is, hang on... `io_free_req` isn't *directly* freeing the request; it's adding it to a task's work queue. Then, looking more closely at the code, I see that `io_req_task_work_add` specifically adds the request to the task work of the *submitting* task. That's key. This means the original task that submitted the I/O is the one responsible for the final cleanup.

So, the submitter's task will eventually get around to executing `io_req_task_complete` as part of its scheduled work. That's the function I need to focus on next. I need to understand what `io_req_task_complete` actually *does*. What does it mean for completion? What resources are finally released? I need to analyze its implementation to be completely sure.



159/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_task_complete]

Results:
map[SourceCode:1272:	void io_req_task_complete(struct io_tw_req tw_req, io_tw_token_t tw)
1273:	{
1274:		io_req_complete_defer(tw_req.req);
1275:	}
 SourceFile:io_uring/io_uring.c]

160/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 100721
							output: 42
							thoughts: 185
						

Thoughts:
**Analyzing the Request Completion Path**

Okay, so `io_req_task_complete` is the key function here. It calls `io_req_complete_defer(req)`. That's where things get interesting, because `io_req_complete_defer` places the completed request into `compl_reqs`. Then, `io_submit_flush_completions` handles the actual flushing. And it *must* be flushing because `io_free_batch_list` is the next step.

`io_free_batch_list` calls `io_clean_op(req)`, which finally calls `kfree(req->async_data)`. Excellent, the asynchronous data is being freed as expected. But `io_free_batch_list` *also* calls `io_req_add_to_cache(req, ctx)`. Aha! So the request *is* being freed, and then it's added back to the cache for reuse. That eliminates the obvious leak paths. So... why am I seeing a leak? This doesn't make any sense.

Hang on a second... what if something goes wrong *before* we get to the freeing part? What if `io_req_task_work_add` fails? That's definitely a point to investigate. It's a critical path, so I need to check the error handling there and see where things might be going awry. Let's look at `io_req_task_work_add` now.



161/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_task_work_add]

Results:
map[SourceCode:  48:	static inline void io_req_task_work_add(struct io_kiocb *req)
  49:	{
  50:		__io_req_task_work_add(req, 0);
  51:	}
 SourceFile:io_uring/tw.h]

162/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 101364
							output: 43
							thoughts: 16
						

Thoughts:
Okay, let's dive into this. Here's my thought process on what we're looking at, summarized from the inside:

**Analyzing `__io_req_task_work_add`**

Alright, time to get to it. My first move is always to jump into the details of `__io_req_task_work_add`. This isn't just a function name to me; it's a critical point in the I/O request lifecycle. I need to understand exactly how this function contributes to how the system handles I/O requests. My experience tells me this function likely deals with scheduling work associated with an I/O request using the task work mechanism. I'm immediately looking for how the specific parameters, data structures, and the overall context affect the scheduling logic within this function. I'll need to think about how this interacts with other layers, like the block layer, the filesystem layer, and potentially the device driver itself. Any potential for race conditions or synchronization issues related to this addition are important and should be considered.



163/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__io_req_task_work_add]

Results:
map[SourceCode:  40:	static inline void __io_req_task_work_add(struct io_kiocb *req, unsigned flags)
  41:	{
  42:		if (req->ctx->flags & IORING_SETUP_DEFER_TASKRUN)
  43:			io_req_local_work_add(req, flags);
  44:		else
  45:			io_req_normal_work_add(req);
  46:	}
 SourceFile:io_uring/tw.h]

164/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 101790
							output: 42
							thoughts: 15
						

Thoughts:
Okay, let's dive into this. Here's my thought process on what I'd be thinking if I encountered a reference to `io_req_normal_work_add`:

**Analyzing `io_req_normal_work_add`**

Alright, `io_req_normal_work_add`... that function name immediately screams "I/O request" to me. Specifically, it sounds like we're dealing with a normal or standard I/O operation being added to some kind of work queue or processing structure. Given the naming conventions I'm accustomed to, the "io_req" suggests this involves a request for some form of disk or network access, and "work_add" implies that this action involves a work queue that it's going into. My immediate questions are: What's the context? What kind of system are we in? Is this kernel space, userspace, or somewhere in-between? What are we trying to achieve with this operation? Is this related to buffered I/O, direct I/O, asynchronous I/O?

I need to understand what "normal" entails here. Is "normal" relative to other types of I/O operations, meaning something like a direct, synchronous request, or does it mean the most common or default operation in the current system? I'll need to look at the surrounding code to determine how this function is used and called in the broader context. What are the dependencies? Are there locks involved? Error handling? And is it adding the I/O request to a thread pool or some other concurrent framework? Depending on the underlying system, I'm expecting to see potential interactions with a task scheduler, memory management, and possibly network communication protocols if it's network-based I/O. So, I need to see where this fits into the overall architecture to understand the implications of this function call.



165/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_normal_work_add]

Results:
map[SourceCode: 208:	void io_req_normal_work_add(struct io_kiocb *req)
 209:	{
 210:		struct io_uring_task *tctx = req->tctx;
 211:		struct io_ring_ctx *ctx = req->ctx;
 212:	
 213:		/* tw run already pending, nothing else to do */
 214:		if (!mpscq_push(&tctx->task_list, &req->io_task_work.node))
 215:			return;
 216:	
 217:		/*
 218:		 * Doesn't need to use ->rings_rcu, as resizing isn't supported for
 219:		 * !DEFER_TASKRUN.
 220:		 */
 221:		if (ctx->flags & IORING_SETUP_TASKRUN_FLAG)
 222:			atomic_or(IORING_SQ_TASKRUN, &ctx->rings->sq_flags);
 223:	
 224:		/* SQPOLL doesn't need the task_work added, it'll run it itself */
 225:		if (ctx->flags & IORING_SETUP_SQPOLL) {
 226:			__set_notify_signal(tctx->task);
 227:			return;
 228:		}
 229:	
 230:		if (likely(!task_work_add(tctx->task, &tctx->task_work, ctx->notify_method)))
 231:			return;
 232:	
 233:		io_fallback_tw(tctx);
 234:	}
 SourceFile:io_uring/tw.c]

166/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 102708
							output: 38
							thoughts: 53
						

Thoughts:
Here's my summary, as the expert:

**Addressing a Potential Race Condition in Task Scheduling**

Okay, so I'm focusing on the `task_work_add` function. It just hit me: we could have a problem here. What if the task is *exiting* right as we're trying to add work to it? `task_work_add` can fail under those conditions, right? I need to be sure I'm handling that.

Ah, yes, right. When `task_work_add` fails, it calls `io_fallback_tw(tctx)`. Good. The design team thought of that. Now, I need to understand what's happening in `io_fallback_tw`. I need to review that function thoroughly to ensure it properly handles the scenario where the target task is shutting down. I expect it's going to clean things up or reschedule appropriately, but I need to make sure that logic is sound. Let me go check that out.



167/2 2026/08/09 12:15 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_fallback_tw]

Results:
map[SourceCode:  46:	static void io_fallback_tw(struct io_uring_task *tctx)
  47:	{
  48:		/*
  49:		 * The task ref both keeps ->task valid and, as __io_uring_free() is
  50:		 * only called when the task itself is freed, ensures the tctx (and
  51:		 * the queued work) stay around until the drain has run.
  52:		 */
  53:		get_task_struct(tctx->task);
  54:		if (!queue_work(system_dfl_wq, &tctx->fallback_work))
  55:			put_task_struct(tctx->task);
  56:	}
 SourceFile:io_uring/tw.c]

168/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 103220
							output: 40
							thoughts: 61
						

Thoughts:
**Analyzing the io_fallback_tw Process**

Okay, so `io_fallback_tw` is queuing `tctx->fallback_work` to `system_dfl_wq`. That's the first critical link I need to understand. And, as I recall, `tctx->fallback_work` then triggers the execution of `io_fallback_tw_func`. Makes sense. Now, the next logical step is to dive right into the `io_fallback_tw_func` itself and see exactly what's happening within that context. That's where the real mechanics of the fallback are implemented. Let's see what that function reveals.



169/2 2026/08/09 12:15 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:io_uring/io_uring.c Name:io_fallback_tw_func]

Results:
map[SourceCode: SourceFile:]

170/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 103481
							output: 27
							thoughts: 10
						

Thoughts:
Okay, here's my summarized thought process, presented as if I'm having it myself, and tailored for an expert audience:

**Analyzing the `fallback_work` Strategy**

Alright, I'm thinking, let's dive into this `fallback_work` concept. I need to understand exactly how it's implemented. My first instinct, given the context, is to reach for a trusty tool: grep. I want to quickly identify every instance where `fallback_work` is referenced within the codebase. This initial search should reveal the immediate contexts, including function calls, variable assignments, and comments. This should give me a solid foundation for evaluating how this fallback mechanism is being used, where its entry points are, and what surrounding logic impacts its execution. From there, I'll be better equipped to determine its effectiveness and spot any potential vulnerabilities or areas for optimization within the framework.



171/2 2026/08/09 12:15 tool grepper
0m Args:
map[Expression:fallback_work PathPrefix:io_uring/]

Results:
map[Output:io_uring/tctx.c=82=__cold struct io_uring_task *io_uring_alloc_task_context(struct task_struct *task,
--
io_uring/tctx.c-111-	mpscq_init(&tctx->task_list, &tctx->task_head);
io_uring/tctx.c:112:	INIT_WORK(&tctx->fallback_work, io_tctx_fallback_work);
io_uring/tctx.c-113-	init_task_work(&tctx->task_work, tctx_task_work);
--
io_uring/tw.c=19=static void ctx_flush_and_put(struct io_ring_ctx *ctx, io_tw_token_t tw)
--
io_uring/tw.c-30-
io_uring/tw.c:31:void io_tctx_fallback_work(struct work_struct *work)
io_uring/tw.c-32-{
io_uring/tw.c-33-	struct io_uring_task *tctx = container_of(work, struct io_uring_task,
io_uring/tw.c:34:						  fallback_work);
io_uring/tw.c-35-	unsigned int count = 0;
--
io_uring/tw.c=46=static void io_fallback_tw(struct io_uring_task *tctx)
--
io_uring/tw.c-53-	get_task_struct(tctx->task);
io_uring/tw.c:54:	if (!queue_work(system_dfl_wq, &tctx->fallback_work))
io_uring/tw.c-55-		put_task_struct(tctx->task);
--
io_uring/tw.c=63=void tctx_task_work_run(struct io_uring_task *tctx, unsigned int max_entries,
--
io_uring/tw.c-116-	 * Relaxed read is enough as only the task itself sets ->in_cancel.
io_uring/tw.c:117:	 * The tctx may also be drained by io_tctx_fallback_work(), in which
io_uring/tw.c-118-	 * case current is a kworker that has no tctx refs to drop.
--
io_uring/tw.h=28=void tctx_task_work(struct callback_head *cb);
io_uring/tw.h:29:void io_tctx_fallback_work(struct work_struct *work);
io_uring/tw.h-30-int io_run_local_work(struct io_ring_ctx *ctx, int min_events, int max_events);
]

172/2 2026/08/09 12:15 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 104382
							output: 39
							thoughts: 14
						

Thoughts:
Okay, let's dive into this. Here's my thought process on checking `io_tctx_fallback_work`, from the perspective of someone deeply familiar with the relevant systems:

**My Deep Dive into io_tctx_fallback_work**

Alright, time to get my hands dirty. My instinct is telling me to zero in on `io_tctx_fallback_work`. That's a critical piece of the puzzle, and I need to understand its behavior thoroughly. It's likely involved in handling scenarios where the primary I/O context isn't available or functioning as expected. I need to figure out the exact edge cases it's designed to address – is this related to resource exhaustion, errors in context initialization, or perhaps a more subtle performance degradation issue? My experience suggests that this function is probably a failover mechanism, a safety net. Now I need to know how robust this safety net is. How gracefully does it handle these unexpected situations? What are the performance implications of hitting this fallback, and how can they be minimized? The devil's in the details, so I need to check the exact conditions in which this particular code path is executed. Let's see...



173/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/tw.c Name:io_tctx_fallback_work]

Results:
map[SourceCode:  31:	void io_tctx_fallback_work(struct work_struct *work)
  32:	{
  33:		struct io_uring_task *tctx = container_of(work, struct io_uring_task,
  34:							  fallback_work);
  35:		unsigned int count = 0;
  36:	
  37:		/*
  38:		 * Run the entries directly. We're in PF_KTHRED context, hence
  39:		 * io_should_terminate_tw() is true and they will be marked as
  40:		 * canceled.
  41:		 */
  42:		tctx_task_work_run(tctx, UINT_MAX, &count);
  43:		put_task_struct(tctx->task);
  44:	}
 SourceFile:io_uring/tw.c]

174/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 104922
							output: 39
							thoughts: 348
						

Thoughts:
**Analyzing the IO Completion Path**

Okay, so `tctx_task_work_run` is the function that actually kicks off the task works. Got it. And if `io_should_terminate_tw()` is true, the tasks will be canceled. That makes sense. Now, let's see... `io_req_task_complete`... it *doesn't* check `io_should_terminate_tw()`. It simply calls `io_req_complete_defer(req)`. Right, right. Wait a minute... `io_req_task_complete` is *itself* the task work function, defined right there:

```c
	void io_req_task_complete(struct io_tw_req tw_req, io_tw_token_t tw)
	{
		io_req_complete_defer(tw_req.req);
	}
```

So, when called from `io_tctx_fallback_work`, it directly calls `io_req_complete_defer(req)`. But `io_req_complete_defer` adds the request to `ctx->submit_state.compl_reqs`. Okay, `io_tctx_fallback_work` runs in a worker thread. It adds to `compl_reqs`... So, who's responsible for flushing that `compl_reqs` queue? `io_submit_flush_completions`... it's *not* called by `io_req_task_complete`! That's a key observation. Hold on... `io_req_complete_defer` MUST be called with `ctx->uring_lock` held! It has to be, given where it's adding things. Does `tctx_task_work_run` hold `ctx->uring_lock`? Need to check that. Let's go look at `tctx_task_work_run` to confirm.



175/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/tw.c Name:tctx_task_work_run]

Results:
map[SourceCode:  58:	/*
  59:	 * Run queued task_work, processing no more than max_entries, with the number
  60:	 * of entries processed added to *count. If more entries than max_entries are
  61:	 * available, the remainder simply stay on the queue for the next run.
  62:	 */
  63:	void tctx_task_work_run(struct io_uring_task *tctx, unsigned int max_entries,
  64:				unsigned int *count)
  65:	{
  66:		struct io_ring_ctx *ctx = NULL;
  67:		struct io_tw_state ts = { };
  68:	
  69:		while (*count < max_entries) {
  70:			struct llist_node *node = mpscq_pop(&tctx->task_list,
  71:							    &tctx->task_head);
  72:			struct io_kiocb *req;
  73:	
  74:			if (!node) {
  75:				if (mpscq_empty(&tctx->task_list))
  76:					break;
  77:				/*
  78:				 * A producer has published a node but hasn't
  79:				 * linked it into the queue yet (see mpscq_pop()).
  80:				 * Give it a chance to finish rather than spinning,
  81:				 * and don't sit on the ctx lock while doing so.
  82:				 */
  83:				ctx_flush_and_put(ctx, ts);
  84:				ctx = NULL;
  85:				cond_resched();
  86:				continue;
  87:			}
  88:			req = container_of(node, struct io_kiocb, io_task_work.node);
  89:			if (req->ctx != ctx) {
  90:				ctx_flush_and_put(ctx, ts);
  91:				ctx = req->ctx;
  92:				mutex_lock(&ctx->uring_lock);
  93:				percpu_ref_get(&ctx->refs);
  94:				ts.cancel = io_should_terminate_tw(ctx);
  95:			}
  96:			INDIRECT_CALL_2(req->io_task_work.func,
  97:					io_poll_task_func, io_req_rw_complete,
  98:					(struct io_tw_req){req}, ts);
  99:			(*count)++;
 100:			/*
 101:			 * Break if most recent pop emptied the queue. This helps
 102:			 * bound task_work run, and also protects the regular
 103:			 * task_work addition.
 104:			 */
 105:			if (mpscq_pop_emptied(&tctx->task_list, tctx->task_head))
 106:				break;
 107:			if (unlikely(need_resched())) {
 108:				ctx_flush_and_put(ctx, ts);
 109:				ctx = NULL;
 110:				cond_resched();
 111:			}
 112:		}
 113:		ctx_flush_and_put(ctx, ts);
 114:	
 115:		/*
 116:		 * Relaxed read is enough as only the task itself sets ->in_cancel.
 117:		 * The tctx may also be drained by io_tctx_fallback_work(), in which
 118:		 * case current is a kworker that has no tctx refs to drop.
 119:		 */
 120:		if (unlikely(atomic_read(&tctx->in_cancel)) &&
 121:		    current->io_uring == tctx)
 122:			io_uring_drop_tctx_refs(current);
 123:	
 124:		trace_io_uring_task_work_run(tctx, *count);
 125:	}
 SourceFile:io_uring/tw.c]

176/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 106794
							output: 38
							thoughts: 53
						

Thoughts:
Here's my summary, as the expert:

**Deep Dive into Asynchronous I/O**

Okay, so I'm tracing this execution path, specifically focusing on how tasks are managed with our asynchronous I/O context. I've hit a key function: `tctx_task_work_run`. My immediate thought is, "Ah, right, this is where the synchronization happens." I'm seeing that it grabs the `ctx->uring_lock`. That's critical; we *need* that to maintain data consistency within the io_uring context. Then comes the call to `ctx_flush_and_put(ctx, ts)`. That's interesting, this suggests that the lock is held while flushing any pending I/O operations and then the context is released or placed somewhere. I need to refresh my memory and verify precisely what's happening within `ctx_flush_and_put`. Time to dig into that function's implementation next, just to confirm my understanding of the resource management and cleanup in this critical section.



177/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/tw.c Name:ctx_flush_and_put]

Results:
map[SourceCode:  19:	static void ctx_flush_and_put(struct io_ring_ctx *ctx, io_tw_token_t tw)
  20:	{
  21:		if (!ctx)
  22:			return;
  23:		if (ctx->flags & IORING_SETUP_TASKRUN_FLAG)
  24:			atomic_andnot(IORING_SQ_TASKRUN, &ctx->rings->sq_flags);
  25:	
  26:		io_submit_flush_completions(ctx);
  27:		mutex_unlock(&ctx->uring_lock);
  28:		percpu_ref_put(&ctx->refs);
  29:	}
 SourceFile:io_uring/tw.c]

178/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 107308
							output: 42
							thoughts: 654
						

Thoughts:
**The Leak Mystery Unravels**

Okay, so `ctx_flush_and_put` *does* trigger the flushing of completions via `io_submit_flush_completions`. And that, in turn, calls `io_free_batch_list`, which *should* be the end of the line, cleaning everything up with `io_clean_op` and `kfree(req->async_data)`. Plus, it *should* put the cleaned request back into the cache with `io_req_add_to_cache`. So, everything *should* be freed, and reused! But, we're leaking. This is vexing.

Wait. What am I missing? Is it possible that `io_req_add_to_cache` isn't always called? I'd better check `io_free_batch_list` again, carefully.

Aha! There it is! If the `REQ_F_REISSUE` flag is set, then, inside `io_free_batch_list`, the code *continues*! It queues the request back to `io_wq` using `io_queue_iowq`! That means it skips `io_clean_op` and crucially, skips `io_req_add_to_cache`. It's not freed and re-used. It's re-queued.

So, `REQ_F_REISSUE` means the request is being retried. It ends up back on the `io_wq` queue, then processed again by `io_issue_sqe`. Now, the trail gets warmer. `io_issue_sqe` calls `io_uring_cmd`, which ultimately leads to `ublk_ctrl_add_dev`. If there's some kind of transient error in `ublk_ctrl_add_dev`β€”an interrupt, maybe, or a faultβ€”it returns an error code, like `-EINTR` or `-EFAULT`. That error propagates back up. The submit work function calls `io_req_task_queue_fail(req, ret)`. And that function, crucially, marks the request with `REQ_F_FAIL` and adds it to the task work. I need to understand what this means.



179/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_task_queue_fail]

Results:
map[SourceCode:1061:	void io_req_task_queue_fail(struct io_kiocb *req, int ret)
1062:	{
1063:		io_req_set_res(req, ret, 0);
1064:		req->io_task_work.func = io_req_task_cancel;
1065:		io_req_task_work_add(req);
1066:	}
 SourceFile:io_uring/io_uring.c]

180/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 108631
							output: 40
							thoughts: 31
						

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

**Analyzing `io_req_task_cancel`**

Wait a minute... that's right, `io_req_task_cancel` is the function responsible for the task work itself, isn't it? Okay, okay, let's just make absolutely sure I'm remembering this correctly. Time to dig into the details of `io_req_task_cancel`. I need to refresh my memory and pinpoint *exactly* how that function is implemented and what it does in relation to the overall I/O request cancellation process. I want to make sure I'm thinking about the right thing, and fully understand its role in this system. Time to review the code.



181/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_task_cancel]

Results:
map[SourceCode:1039:	static void io_req_task_cancel(struct io_tw_req tw_req, io_tw_token_t tw)
1040:	{
1041:		struct io_kiocb *req = tw_req.req;
1042:	
1043:		io_tw_lock(req->ctx, tw);
1044:		io_req_defer_failed(req, req->cqe.res);
1045:	}
 SourceFile:io_uring/io_uring.c]

182/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 109017
							output: 39
							thoughts: 430
						

Thoughts:
**Deconstructing the Deferred IO Completion and Reissue Logic**

Okay, let's break this down step-by-step. I'm seeing that `io_req_defer_failed` calls `io_req_complete_defer(req)`. That makes sense, handling the deferral process. And `io_req_complete_defer` subsequently adds the request to `compl_reqs`. Then, we have `io_submit_flush_completions` which, as expected, handles the flushing of these deferred completions. Finally, `io_free_batch_list` gets called.

Now, here's where it gets interesting. I immediately thought, "Wait a minute, if `REQ_F_REISSUE` is *still* set, won't it just re-queue it back to `io_wq`?". It's a critical question regarding re-issuance! So, the real question is: Is `REQ_F_REISSUE` cleared at any point?

Looking at `io_free_batch_list`, I see this snippet:

```c
				if (req->flags & REQ_F_REISSUE) {
					node = req->comp_list.next;
					req->flags &= ~REQ_F_REISSUE;
					io_queue_iowq(req);
					continue;
				}
```

Aha! It *does* clear `REQ_F_REISSUE`! So the next time through `io_free_batch_list`, that flag will *not* be set. It will then call `io_clean_op(req)` and `io_req_add_to_cache(req, ctx)`. And that's what frees it!

Okay, but what about the scenario where `io_uring_cmd` sets `IORING_URING_CMD_REISSUE`? Let's check:

```c
	if (ret == -EAGAIN) {
		ioucmd->flags |= IORING_URING_CMD_REISSUE;
		return ret;
	}
```

Ah, it sets `IORING_URING_CMD_REISSUE` in `ioucmd->flags`, but it does *not* set `REQ_F_REISSUE` in `req->flags`! So it's a separate mechanism.

Wait, the primary flag being checked is `REQ_F_REISSUE` which is set by `io_issue_sqe`! I should re-examine `io_issue_sqe` to make certain I completely understand the whole process. That's the key.



183/2 2026/08/09 12:16 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_issue_sqe]

Results:
map[SourceCode:1410:	static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_flags)
1411:	{
1412:		const struct io_issue_def *def = &io_issue_defs[req->opcode];
1413:		int ret;
1414:	
1415:		if (unlikely(!io_assign_file(req, def, issue_flags)))
1416:			return -EBADF;
1417:	
1418:		ret = __io_issue_sqe(req, issue_flags, def);
1419:	
1420:		if (ret == IOU_COMPLETE) {
1421:			if (issue_flags & IO_URING_F_COMPLETE_DEFER)
1422:				io_req_complete_defer(req);
1423:			else
1424:				io_req_complete_post(req, issue_flags);
1425:	
1426:			return 0;
1427:		}
1428:	
1429:		if (ret == IOU_ISSUE_SKIP_COMPLETE) {
1430:			ret = 0;
1431:	
1432:			if (req->flags & REQ_F_IOPOLL)
1433:				io_iopoll_req_issued(req, issue_flags);
1434:		}
1435:		return ret;
1436:	}
 SourceFile:io_uring/io_uring.c]

184/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 110486
							output: 55
							thoughts: 1156
						

Thoughts:
**Analyzing Potential Resource Leaks in the IO_uring Completion Path**

Okay, let's break this down systematically. I'm starting from the observation that `-EAGAIN` is returned by `io_issue_sqe`. That triggers a chain: `io_queue_sqe` calls `io_queue_async`, which then calls `io_arm_poll_handler`, which returns `IO_APOLL_ABORTED`. This ultimately results in the request (`req`) being queued to `io_wq`.  I need to make sure that the `req` doesn't get lost or leaked. The code doesn't set `REQ_F_REISSUE`, which makes me immediately look at `io_free_batch_list`.

First, let's explore the *success* path.  What happens if the `io_wq` worker *succeeds*? It calls `ublk_ctrl_add_dev`. If that function *succeeds*, then we hit `IOU_COMPLETE` and `io_issue_sqe` calls `io_req_complete_post`, which drops a refcount.  Then, `io_wq_free_work` drops another refcount.  `io_free_req` then adds the request to task work. `io_req_task_complete` calls `io_req_complete_defer`, then `io_submit_flush_completions` flushes it, and finally, `io_free_batch_list` frees it. So, assuming a clean completion, all seems well; the resources are correctly cleaned up.

Now, let's consider the *cancel* path, where `io_wq_submit_work` is cancelled. The code checks `atomic_read(&work->flags) & IO_WQ_WORK_CANCEL`. If it's cancelled, we hit the `fail:` label, where `io_req_task_queue_fail` is called with `-ECANCELED`. That function also adds the request to task work.  `io_req_task_cancel` calls `io_req_defer_failed`, then `io_req_complete_defer`, followed by `io_submit_flush_completions`, and finally, `io_free_batch_list`. Again, this path *also* appears to handle resource cleanup correctly, because we're calling `io_req_complete_defer` which then ensures it's flushed and freed.

Now I need to address the *fallback* path. What happens if `io_req_task_work_add` fails? We go to `io_fallback_tw`.  This queues `fallback_work` to `system_dfl_wq`.  `io_tctx_fallback_work` then runs `tctx_task_work_run`. This executes the task work, which is either `io_req_task_cancel` or `io_req_task_complete`. Both of these call `io_req_complete_defer`. Then, `tctx_task_work_run` calls `ctx_flush_and_put`, which calls `io_submit_flush_completions`, and then `io_free_batch_list`.  Again, we appear to be safe as `io_req_complete_defer` will get called, guaranteeing the completion is flushed and cleaned up.

The next question: What if `io_tctx_fallback_work` *isn't* executed?  It is queued with `queue_work(system_dfl_wq, &tctx->fallback_work)`. It *should* be executed unless the system is shutting down.

Now, what if `tctx_task_work_run` *doesn't* flush?  The code has this condition:

```c
		if (req->ctx != ctx) {
			ctx_flush_and_put(ctx, ts);
			ctx = req->ctx;
			mutex_lock(&ctx->uring_lock);
			percpu_ref_get(&ctx->refs);
			ts.cancel = io_should_terminate_tw(ctx);
		}
```
If `req->ctx` is the *same* as `ctx`, it *doesn't* flush immediately. However, critically, there is a flush at the *end* of the loop:

```c
	ctx_flush_and_put(ctx, ts);
```
So it *always* flushes eventually. This seems robust.

Finally, I need to double-check that `io_free_batch_list` *actually* cleans up everything. The crucial check is if `req->flags & IO_REQ_CLEAN_FLAGS` is set.  


185/2 2026/08/09 12:16 tool codesearch-find-references
0m Args:
map[ContextFile:io_uring/io_uring.h IncludeSnippetLines:0 Name:io_req_async_data_clear SourceTreePrefix:]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_futex_complete SourceFile:io_uring/futex.c SourceLine:61] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_netmsg_recycle SourceFile:io_uring/net.c SourceLine:183] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_req_async_data_free SourceFile:io_uring/io_uring.h SourceLine:382] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_req_uring_cleanup SourceFile:io_uring/uring_cmd.c SourceLine:40] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:io_rw_recycle SourceFile:io_uring/rw.c SourceLine:159]] TruncatedOutput:false]

186/2 2026/08/09 12:16 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 112998
							output: 40
							thoughts: 53
						

Thoughts:
Okay, let's see...

**Diving Deep into the `io_req_uring_cleanup` Function**

Hmm, now that I'm looking at this, `io_req_uring_cleanup` is calling `io_req_async_data_clear(req, REQ_F_NEED_CLEANUP)`. Interesting. I need to take a closer look at `io_req_uring_cleanup` again. Let me just double-check that flow, make sure I'm not missing anything. Gotta be meticulous with these async cleanup routines.



187/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_req_uring_cleanup]

Results:
map[SourceCode:  26:	static void io_req_uring_cleanup(struct io_kiocb *req, unsigned int issue_flags)
  27:	{
  28:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
  29:		struct io_async_cmd *ac = req->async_data;
  30:	
  31:		if (issue_flags & IO_URING_F_UNLOCKED)
  32:			return;
  33:	
  34:		io_alloc_cache_vec_kasan(&ac->vec);
  35:		if (ac->vec.nr > IO_VEC_CACHE_SOFT_CAP)
  36:			io_vec_free(&ac->vec);
  37:	
  38:		if (io_alloc_cache_put(&req->ctx->cmd_cache, ac)) {
  39:			ioucmd->sqe = NULL;
  40:			io_req_async_data_clear(req, REQ_F_NEED_CLEANUP);
  41:		}
  42:	}
 SourceFile:io_uring/uring_cmd.c]

188/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 113533
							output: 40
							thoughts: 561
						

Thoughts:
**Analyzing Potential Memory Leaks in the I/O Path**

Okay, let's break this down. My initial concern was about a potential memory leak with `req->async_data`. I was focusing on the interplay between `io_alloc_cache_put`, `io_clean_op`, and the `REQ_F_ASYNC_DATA` flag. My thinking was: if `io_alloc_cache_put` *returns true*, it clears `REQ_F_ASYNC_DATA`, and `io_clean_op` *won't* free `req->async_data` since it's cached in `ac` which is in `req->ctx->cmd_cache`, so no leak. If it *returns false*, `REQ_F_ASYNC_DATA` stays set, `io_clean_op` *will* free it, so still no leak. So far, so good.

But then, the `io_req_uring_cleanup` function popped into my head, and specifically, the early return if `IO_URING_F_UNLOCKED` is set. If it returns early, `REQ_F_ASYNC_DATA` isn't cleared, but `io_clean_op` should still be called, which should free the data, so still no leak.

Next, I thought, what if `io_clean_op` *isn't* called? That's where things get interesting. I traced the call path: `io_clean_op` is called from `io_free_batch_list` *if* `req->flags & IO_REQ_CLEAN_FLAGS` is set. And `IO_REQ_CLEAN_FLAGS` includes `REQ_F_ASYNC_DATA`. So, `io_clean_op` *should* be called, and it *should* `kfree(req->async_data)`. So why is `kmemleak` reporting a leak? Something isn't adding up.

That's when I switched gears to the `io_kiocb` object. Why is *it* being reported as leaked? If `io_kiocb` is leaking, that means `io_free_batch_list` isn't being called *for that particular kiocb*, or, it *is* called, but somehow the `kiocb` is not properly returned to the free list. I know `io_kiocb` is removed from the `free_list` during `io_alloc_req` and then is supposed to be put back on in `io_req_add_to_cache`. If it's not being put back, that's a leak.

The key question now is, under what circumstances does a request *not* get completed and thus doesn't get properly cleaned up? I need to revisit the `io_wq_submit_work` path again to look for a non-completion path.



189/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_wq_submit_work]

Results:
map[SourceCode:1475:	void io_wq_submit_work(struct io_wq_work *work)
1476:	{
1477:		struct io_kiocb *req = container_of(work, struct io_kiocb, work);
1478:		const struct io_issue_def *def = &io_issue_defs[req->opcode];
1479:		unsigned int issue_flags = IO_URING_F_UNLOCKED | IO_URING_F_IOWQ;
1480:		bool needs_poll = false;
1481:		int ret = 0, err = -ECANCELED;
1482:	
1483:		/* one will be dropped by io_wq_free_work() after returning to io-wq */
1484:		if (!(req->flags & REQ_F_REFCOUNT))
1485:			__io_req_set_refcount(req, 2);
1486:		else
1487:			req_ref_get(req);
1488:	
1489:		/* either cancelled or io-wq is dying, so don't touch tctx->iowq */
1490:		if (atomic_read(&work->flags) & IO_WQ_WORK_CANCEL) {
1491:	fail:
1492:			io_req_task_queue_fail(req, err);
1493:			return;
1494:		}
1495:		if (!io_assign_file(req, def, issue_flags)) {
1496:			err = -EBADF;
1497:			atomic_or(IO_WQ_WORK_CANCEL, &work->flags);
1498:			goto fail;
1499:		}
1500:	
1501:		/*
1502:		 * If DEFER_TASKRUN is set, it's only allowed to post CQEs from the
1503:		 * submitter task context. Final request completions are handed to the
1504:		 * right context, however this is not the case of auxiliary CQEs,
1505:		 * which is the main mean of operation for multishot requests.
1506:		 * Don't allow any multishot execution from io-wq. It's more restrictive
1507:		 * than necessary and also cleaner.
1508:		 */
1509:		if (req->flags & (REQ_F_MULTISHOT|REQ_F_APOLL_MULTISHOT)) {
1510:			err = -EBADFD;
1511:			if (!io_file_can_poll(req))
1512:				goto fail;
1513:			if (req->file->f_flags & O_NONBLOCK ||
1514:			    req->file->f_mode & FMODE_NOWAIT) {
1515:				err = -ECANCELED;
1516:				if (io_arm_poll_handler(req, issue_flags) != IO_APOLL_OK)
1517:					goto fail;
1518:				return;
1519:			} else {
1520:				req->flags &= ~(REQ_F_APOLL_MULTISHOT|REQ_F_MULTISHOT);
1521:			}
1522:		}
1523:	
1524:		if (req->flags & REQ_F_FORCE_ASYNC) {
1525:			bool opcode_poll = def->pollin || def->pollout;
1526:	
1527:			if (opcode_poll && io_file_can_poll(req)) {
1528:				needs_poll = true;
1529:				issue_flags |= IO_URING_F_NONBLOCK;
1530:			}
1531:		}
1532:	
1533:		do {
1534:			ret = io_issue_sqe(req, issue_flags);
1535:			if (ret != -EAGAIN)
1536:				break;
1537:	
1538:			/*
1539:			 * If REQ_F_NOWAIT is set, then don't wait or retry with
1540:			 * poll. -EAGAIN is final for that case.
1541:			 */
1542:			if (req->flags & REQ_F_NOWAIT)
1543:				break;
1544:	
1545:			/*
1546:			 * We can get EAGAIN for iopolled IO even though we're
1547:			 * forcing a sync submission from here, since we can't
1548:			 * wait for request slots on the block side.
1549:			 */
1550:			if (!needs_poll) {
1551:				if (!(req->flags & REQ_F_IOPOLL))
1552:					break;
1553:				if (io_wq_worker_stopped())
1554:					break;
1555:				cond_resched();
1556:				continue;
1557:			}
1558:	
1559:			if (io_arm_poll_handler(req, issue_flags) == IO_APOLL_OK)
1560:				return;
1561:			/* aborted or ready, in either case retry blocking */
1562:			needs_poll = false;
1563:			issue_flags &= ~IO_URING_F_NONBLOCK;
1564:		} while (1);
1565:	
1566:		/* avoid locking problems by failing it from a clean context */
1567:		if (ret)
1568:			io_req_task_queue_fail(req, ret);
1569:	}
 SourceFile:io_uring/io_uring.c]

190/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 116310
							output: 41
							thoughts: 249
						

Thoughts:
**My Analysis of a Potential io_uring Loop**

Okay, so I'm looking at this io_uring code, and something's bugging me. I see this loop here:

```c
			if (!needs_poll) {
				if (!(req->flags & REQ_F_IOPOLL))
					break;
				if (io_wq_worker_stopped())
					break;
				cond_resched();
				continue;
			}
```

My brain flags that if `io_issue_sqe` returns `-EAGAIN`, `needs_poll` is *false*, and *`req->flags & REQ_F_IOPOLL` is true*, this loop just…continues. It doesn't break. This seems… problematic. It'll just keep `cond_resched()`-ing. I need to figure out under what conditions this actually *happens*.

Then I remembered that `REQ_F_IOPOLL` is, in fact, set for `IORING_OP_URING_CMD`!  It looks like the `io_uring_cmd` path is the one that sets this flag:

```c
		if (ctx->flags & IORING_SETUP_IOPOLL && file->f_op->uring_cmd_iopoll) {
			req->flags |= REQ_F_IOPOLL;
			issue_flags |= IO_URING_F_IOPOLL;
```

Okay, so if the `IORING_SETUP_IOPOLL` flag is set *and* if the file's file operations have a `uring_cmd_iopoll` method, this flag gets set. Right. But is this where the problem is? Is it possible for `-EAGAIN` to be returned in this path such that we get stuck in this loop?

Now I need to remember: does `ublk` have this `uring_cmd_iopoll` function pointer? I know it's a block device, and I think I've seen some `io_uring` usage with it… let me quickly check `ublk_fops`...



191/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ch_fops]

Results:
map[SourceCode:4140:	static const struct file_operations ublk_ch_fops = {
4141:		.owner = THIS_MODULE,
4142:		.open = ublk_ch_open,
4143:		.release = ublk_ch_release,
4144:		.read_iter = ublk_ch_read_iter,
4145:		.write_iter = ublk_ch_write_iter,
4146:		.uring_cmd = ublk_ch_uring_cmd,
4147:		.mmap = ublk_ch_mmap,
4148:	};
 SourceFile:drivers/block/ublk_drv.c]

192/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 117256
							output: 41
							thoughts: 33
						

Thoughts:
Okay, here's my interpretation of those thoughts, crafted with the understanding that I'm discussing this with a fellow expert:

**Navigating the ublk Landscape**

Okay, hold on a second. I'm focusing on the `ublk_ch_fops` structure, and it's suddenly hitting me – that's *specifically* tied to the `/dev/ublkb*` block devices, right? That makes sense, handling the individual block device interaction. But… what about the control device? What about `/dev/ublk-control`? I need to clarify how that path interacts with the framework. It's a completely different file path, so it could require different function pointers or separate handlers. I need to make sure I haven't missed a crucial piece of the puzzle regarding how that control interface behaves, and how it plays with this structure I'm looking at.



193/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctl_fops]

Results:
map[SourceCode:5857:	static const struct file_operations ublk_ctl_fops = {
5858:		.open		= nonseekable_open,
5859:		.uring_cmd      = ublk_ctrl_uring_cmd,
5860:		.owner		= THIS_MODULE,
5861:		.llseek		= noop_llseek,
5862:	};
 SourceFile:drivers/block/ublk_drv.c]

194/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 117654
							output: 40
							thoughts: 595
						

Thoughts:
**Analyzing a Potential I/O Uring Leak**

Okay, so I'm digging into this I/O Uring code and trying to understand a possible resource leak. It looks like it's a specific scenario when an `io_uring_cmd_iopoll` isn't present, so `REQ_F_IOPOLL` is never set. That leads to the `break` statement in that first code block.

Essentially, the process bails out because `ret` is `-EAGAIN`. Then `io_req_task_queue_fail(req, ret)` gets called, which adds it to task work, then `io_req_task_cancel` eventually calls `io_req_defer_failed(req, -EAGAIN)`, which triggers completion and freeing through `io_req_complete_defer(req)`. That path seems clean, so where is the leak?

I have to think about other code paths. What if `io_issue_sqe` returns `-EAGAIN`, but `io_wq_submit_work` isn't called? I see that `io_queue_sqe` would call `io_queue_async(req, issue_flags, -EAGAIN)`. That, in turn, calls `io_arm_poll_handler`, which returns `IO_APOLL_ABORTED`. Then `io_queue_async` queues it to `io_wq` via `io_queue_iowq(req)`. Aha! Now, what if *that* fails?

Looking at the code for `io_queue_iowq`, it will fail if the current thread isn't a kernel thread and the `tctx->io_wq` is null. If it fails, it calls `io_req_task_queue_fail(req, -ECANCELED)`, which, again, should lead to completion and freeing. That's good, so it doesn't appear to be a problem.

Okay, let's think again: What if `io_wq_enqueue` is called but the worker thread never actually processes the work item? The item would stay in `io_wq`. But... when the process exits, it calls `io_uring_cancel_generic`, which then calls `io_wq_exit_start(tctx->io_wq)`. And, it seems like `io_wq_exit_start` cancels all pending work. That's potentially the key! Time to double-check the `io_wq_exit_start` code.



195/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io-wq.c Name:io_wq_exit_start]

Results:
map[SourceCode:1316:	void io_wq_exit_start(struct io_wq *wq)
1317:	{
1318:		set_bit(IO_WQ_BIT_EXIT, &wq->state);
1319:	}
 SourceFile:io_uring/io-wq.c]

196/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 118931
							output: 40
							thoughts: 102
						

Thoughts:
**Analyzing the Asynchronous Cancellation Flow**

Okay, so `io_wq_exit_start` essentially just flips the `IO_WQ_BIT_EXIT` bit. That's a simple flag. Then, `io_uring_cancel_generic` waits, crucially, for `tctx_inflight` to hit zero. That makes sense, ensuring everything's cleaned up before we proceed.

But here's where I need to dig deeper. If work is *pending* on the `io_wq`, who's responsible for actually canceling it? I remember seeing `io_uring_try_cancel_requests` mentioned. Ah-ha! It calls `io_wq_cancel_cb`. That's likely the key. I need to understand what this function does.

Let's dive into `io_uring_try_cancel_requests` directly. I need to see exactly how that cancellation callback is set up and what it's doing on the worker queue side. That's the critical piece of the puzzle here, understanding how the asynchronous cancellation path is connected. I need to see if it's handling everything correctly.



197/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/cancel.c Name:io_uring_try_cancel_requests]

Results:
map[SourceCode: 515:	__cold bool io_uring_try_cancel_requests(struct io_ring_ctx *ctx,
 516:						 struct io_uring_task *tctx,
 517:						 bool cancel_all, bool is_sqpoll_thread)
 518:	{
 519:		struct io_task_cancel cancel = { .tctx = tctx, .all = cancel_all, };
 520:		enum io_wq_cancel cret;
 521:		bool ret = false;
 522:	
 523:		/* set it so io_req_local_work_add() would wake us up */
 524:		if (ctx->flags & IORING_SETUP_DEFER_TASKRUN) {
 525:			atomic_set(&ctx->cq_wait_nr, 1);
 526:			smp_mb();
 527:		}
 528:	
 529:		/* failed during ring init, it couldn't have issued any requests */
 530:		if (!ctx->rings)
 531:			return false;
 532:	
 533:		if (!tctx) {
 534:			ret |= io_uring_try_cancel_iowq(ctx);
 535:		} else if (tctx->io_wq) {
 536:			/*
 537:			 * Cancels requests of all rings, not only @ctx, but
 538:			 * it's fine as the task is in exit/exec.
 539:			 */
 540:			cret = io_wq_cancel_cb(tctx->io_wq, io_cancel_task_cb,
 541:					       &cancel, true);
 542:			ret |= (cret != IO_WQ_CANCEL_NOTFOUND);
 543:		}
 544:	
 545:		/* SQPOLL thread does its own polling */
 546:		if ((!(ctx->flags & IORING_SETUP_SQPOLL) && cancel_all) ||
 547:		    is_sqpoll_thread) {
 548:			while (!list_empty(&ctx->iopoll_list)) {
 549:				io_iopoll_try_reap_events(ctx);
 550:				ret = true;
 551:				cond_resched();
 552:			}
 553:		}
 554:	
 555:		if ((ctx->flags & IORING_SETUP_DEFER_TASKRUN) &&
 556:		    io_allowed_defer_tw_run(ctx))
 557:			ret |= io_run_local_work(ctx, INT_MAX, INT_MAX) > 0;
 558:		mutex_lock(&ctx->uring_lock);
 559:		ret |= io_cancel_defer_files(ctx, tctx, cancel_all);
 560:		ret |= io_poll_remove_all(ctx, tctx, cancel_all);
 561:		ret |= io_waitid_remove_all(ctx, tctx, cancel_all);
 562:		ret |= io_futex_remove_all(ctx, tctx, cancel_all);
 563:		ret |= io_uring_try_cancel_uring_cmd(ctx, tctx, cancel_all);
 564:		ret |= io_kill_timeouts(ctx, tctx, cancel_all);
 565:		mutex_unlock(&ctx->uring_lock);
 566:		if (tctx)
 567:			ret |= io_run_task_work() > 0;
 568:		return ret;
 569:	}
 SourceFile:io_uring/cancel.c]

198/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 120304
							output: 38
							thoughts: 161
						

Thoughts:
**My Current Thinking on IO Cancellation**

Okay, so `io_wq_cancel_cb` is designed to cancel pending work. That makes sense. The key is, if the work is currently running, it *can't* be cancelled, right? But if it *is* running, the worker thread should eventually complete it. However, I've got a potential snag in my mind.

What happens if that worker thread is blocked *inside* `ublk_ctrl_add_dev`? Specifically, remember that `ublk_ctrl_add_dev` calls `mutex_lock_killable(&ublk_ctl_mutex)`. Now, if the task attempting to add the device is *killed*, `mutex_lock_killable` will return `-EINTR`. But... the worker thread *isn't* the task being killed! The worker thread is a `PF_USER_WORKER` thread. So, the core question becomes: **does that worker thread, a special user-space worker, actually *receive* the kill signal?** That's the critical piece here. I need to dig into the behavior of `io_wq_worker` and see if the signal propagates through to it. This is a very interesting edge case to explore.



199/2 2026/08/09 12:17 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io-wq.c Name:io_wq_worker]

Results:
map[SourceCode: 682:	static int io_wq_worker(void *data)
 683:	{
 684:		struct io_worker *worker = data;
 685:		struct io_wq_acct *acct = io_wq_get_acct(worker);
 686:		struct io_wq *wq = worker->wq;
 687:		bool exit_mask = false, last_timeout = false;
 688:		char buf[TASK_COMM_LEN] = {};
 689:	
 690:		set_mask_bits(&worker->flags, 0,
 691:			      BIT(IO_WORKER_F_UP) | BIT(IO_WORKER_F_RUNNING));
 692:	
 693:		snprintf(buf, sizeof(buf), "iou-wrk-%d", wq->task->pid);
 694:		set_task_comm(current, buf);
 695:	
 696:		while (!test_bit(IO_WQ_BIT_EXIT, &wq->state)) {
 697:			long ret;
 698:	
 699:			set_current_state(TASK_INTERRUPTIBLE);
 700:	
 701:			/*
 702:			 * If we have work to do, io_acct_run_queue() returns with
 703:			 * the acct->lock held. If not, it will drop it.
 704:			 */
 705:			while (io_acct_run_queue(acct))
 706:				io_worker_handle_work(acct, worker);
 707:	
 708:			raw_spin_lock(&acct->workers_lock);
 709:			/*
 710:			 * Last sleep timed out. Exit if we're not the last worker,
 711:			 * or if someone modified our affinity. If wq is marked
 712:			 * idle-exit, drop the worker as well. This is used to avoid
 713:			 * keeping io-wq workers around for tasks that no longer have
 714:			 * any active io_uring instances.
 715:			 */
 716:			if ((last_timeout && (exit_mask || acct->nr_workers > 1)) ||
 717:			    test_bit(IO_WQ_BIT_EXIT_ON_IDLE, &wq->state)) {
 718:				acct->nr_workers--;
 719:				raw_spin_unlock(&acct->workers_lock);
 720:				__set_current_state(TASK_RUNNING);
 721:				break;
 722:			}
 723:			last_timeout = false;
 724:			__io_worker_idle(acct, worker);
 725:			raw_spin_unlock(&acct->workers_lock);
 726:			if (io_run_task_work())
 727:				continue;
 728:			ret = schedule_timeout(WORKER_IDLE_TIMEOUT);
 729:			if (signal_pending(current)) {
 730:				struct ksignal ksig;
 731:	
 732:				if (!get_signal(&ksig))
 733:					continue;
 734:				break;
 735:			}
 736:			if (!ret) {
 737:				last_timeout = true;
 738:				exit_mask = !cpumask_test_cpu(raw_smp_processor_id(),
 739:								wq->cpu_mask);
 740:			}
 741:		}
 742:	
 743:		if (test_bit(IO_WQ_BIT_EXIT, &wq->state) && io_acct_run_queue(acct))
 744:			io_worker_handle_work(acct, worker);
 745:	
 746:		io_worker_exit(worker);
 747:		return 0;
 748:	}
 SourceFile:io_uring/io-wq.c]

200/2 2026/08/09 12:17 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 121870
							output: 42
							thoughts: 667
						

Thoughts:
**My Line of Reasoning Regarding io_uring and Task Cleanup**

Okay, so I'm tracing the likely path of what happens when a main task is killed while it has active `io_uring` requests, specifically focusing on the `io_wq_worker` thread and how it handles errors. Let's see...

First, `io_wq_worker` is a `PF_USER_WORKER`. Right, which means it will be terminated if the parent process dies. If the main task is killed, this worker thread will likely receive a signal and exit. So, a `mutex_lock_killable` is hit and returns `-EINTR`. This propagates upwards: `ublk_ctrl_add_dev` also returns `-EINTR`, then `io_uring_cmd`, then `io_issue_sqe` all the way to `io_wq_submit_work`, which in turn calls `io_req_task_queue_fail(req, -EINTR)`.

Now, `io_req_task_queue_fail` does something interesting: it adds the request to task work. But wait a minute! The main task is *exiting*! This means `task_work_add` should fail! So, it falls back to calling `io_req_task_work_add`, which calls `io_fallback_tw`. That then queues `fallback_work` to `system_dfl_wq`. Ultimately, `io_tctx_fallback_work` runs `tctx_task_work_run`, which executes the task work. The task work then calls `io_req_task_cancel`, which calls `io_req_defer_failed(req, -EINTR)`, which calls `io_req_complete_defer(req)`. Finally, `tctx_task_work_run` calls `ctx_flush_and_put(ctx, ts)`. This calls `io_submit_flush_completions(ctx)` and then `io_free_batch_list` which frees the requests.

So, in theory, this process should handle the cleanup correctly and there shouldn't be any leaks.

However... I need to consider a potential race condition. What if `io_tctx_fallback_work` *is* running, and calls `ctx_flush_and_put(ctx, ts)`, but the `ctx` is ALREADY freed? Hmm, that would be a problem. But, `tctx_task_work_run` first performs a `percpu_ref_get(&ctx->refs)`. Okay, so `ctx` is protected and will not be freed early. And `io_req_task_work_add` does not need to grab a reference either because a reference to the `ctx` is already held by the request. That's good!

Wait, does the request *itself* hold a reference to `ctx`? That would be ideal. No, the request doesn't hold a reference to the `ctx`... but, `io_uring_cancel_generic` waits for `tctx_inflight` to become zero! So, `ctx` CANNOT be freed until all requests are completed! This is because `io_ring_ctx_free` is called when `ctx` refs drop to zero.

Wait, are references acquired when we submit SQEs or when we allocate the requests? Let's check `io_alloc_req` to make sure.

Okay, let's look at `io_alloc_req`.



201/2 2026/08/09 12:18 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__io_alloc_req_refill]

Results:
map[SourceCode: 971:	/*
 972:	 * A request might get retired back into the request caches even before opcode
 973:	 * handlers and io_issue_sqe() are done with it, e.g. inline completion path.
 974:	 * Because of that, io_alloc_req() should be called only under ->uring_lock
 975:	 * and with extra caution to not get a request that is still worked on.
 976:	 */
 977:	__cold bool __io_alloc_req_refill(struct io_ring_ctx *ctx)
 978:		__must_hold(&ctx->uring_lock)
 979:	{
 980:		gfp_t gfp = GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO;
 981:		void *reqs[IO_REQ_ALLOC_BATCH];
 982:		int nr_reqs = ARRAY_SIZE(reqs);
 983:	
 984:		/*
 985:		 * Bulk alloc is all-or-nothing. If we fail to get a batch, retry a
 986:		 * single allocation to be on the safe side.
 987:		 */
 988:		if (!kmem_cache_alloc_bulk(req_cachep, gfp, nr_reqs, reqs)) {
 989:			reqs[0] = kmem_cache_alloc(req_cachep, gfp);
 990:			if (!reqs[0])
 991:				return false;
 992:			nr_reqs = 1;
 993:		}
 994:	
 995:		percpu_ref_get_many(&ctx->refs, nr_reqs);
 996:		ctx->nr_req_allocated += nr_reqs;
 997:	
 998:		while (nr_reqs--)
 999:			io_req_add_to_cache(reqs[nr_reqs], ctx);
1000:		return true;
1001:	}
 SourceFile:io_uring/io_uring.c]

202/2 2026/08/09 12:18 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 123902
							output: 40
							thoughts: 4521
						

Thoughts:
**Analyzing Potential Resource Leaks in the io_uring Implementation**

Okay, so I've been tracing the flow of request allocation, submission, and completion within this io_uring context, and I'm zeroing in on a potential leak. Initially, it seems pretty robust: we're getting refs, freeing requests to the cache, and seemingly dropping those refs when the cache is cleaned up. However, the crux of my concern lies in situations where requests might get "lost" or not properly completed.

My initial assumption was correct about the reference counting. The cache operations seem to align with a proper lifecycle. The trouble is, if a request bypasses this normal completion path, we might have a problem. The fact that `kmemleak` isn't reporting `ctx` as leaked is throwing me. If there's an orphaned request, the context *should* be leaked, or so I thought.

The bug reports I'm seeing point to `io_kiocb` specifically, which is concerning. The `io_kiocb` size calculation adds up, so that's not the issue. The key is to understand *why* these requests are getting stuck. I'm focusing on the `io_submit_sqes` function, because that's where the request submission is happening. It looks like the issue is related to how the code handles error conditions when `IORING_SETUP_SUBMIT_ALL` is set.

The code might be continuing to submit even after an error. And I was right. If `io_submit_sqe` returns an error, there are ways that the request may not get cleaned up properly. In particular, the path where `io_init_req` or `io_uring_cmd_prep` could result in a failure *after* allocating resources.

Then there is the BPF filter, which is fine, as it is freed if there's an error.

The next thing that worries me is if the process gets canceled while polling, which is handled correctly. There appears to be one situation though where it is not handled properly.

The most likely leak seems to happen when a linked request fails. It looks like the fallback path in `io_queue_sqe_fallback` only *completes* the original request, but not *necessarily* the linked requests. The use of `io_req_task_queue`, and not something akin to `io_req_complete_defer` is the potential hole I'm seeing. `io_req_complete_defer` just adds to a list, so requests in the link will be added to `task_work`, and the next one *might* be failed. But if it's already failed, the next request will also be marked as failed. So it seems that linked requests are completed. But let's check the code:



203/2 2026/08/09 12:18 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_req_find_next]

Results:
map[SourceCode:1022:	static inline struct io_kiocb *io_req_find_next(struct io_kiocb *req)
1023:	{
1024:		struct io_kiocb *nxt;
1025:	
1026:		/*
1027:		 * If LINK is set, we have dependent requests in this chain. If we
1028:		 * didn't fail this request, queue the first one up, moving any other
1029:		 * dependencies to the next request. In case of failure, fail the rest
1030:		 * of the chain.
1031:		 */
1032:		if (unlikely(req->flags & IO_DISARM_MASK))
1033:			__io_req_find_next_prep(req);
1034:		nxt = req->link;
1035:		req->link = NULL;
1036:		return nxt;
1037:	}
 SourceFile:io_uring/io_uring.c]

204/2 2026/08/09 12:18 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 129342
							output: 43
							thoughts: 43
						

Thoughts:
Okay, let's break this down.

**Analyzing Potential Failure Points in I/O Request Preparation**

Alright, the core of the issue is that if `req` fails within `__io_req_find_next_prep`, the *entire* sequence after that also gets terminated. That's a critical point for reliability! My immediate thought is, "Okay, let's confirm that's the behavior." I need to thoroughly understand what's happening within `__io_req_find_next_prep` itself. I'm going to carefully inspect that function to fully grasp the ramifications of a failure there. No assumptions, I need to see the implementation details to confirm this chain's dependency on the success of a specific request.



205/2 2026/08/09 12:18 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:__io_req_find_next_prep]

Results:
map[SourceCode:1013:	static void __io_req_find_next_prep(struct io_kiocb *req)
1014:	{
1015:		struct io_ring_ctx *ctx = req->ctx;
1016:	
1017:		spin_lock(&ctx->completion_lock);
1018:		io_disarm_next(req);
1019:		spin_unlock(&ctx->completion_lock);
1020:	}
 SourceFile:io_uring/io_uring.c]

206/2 2026/08/09 12:18 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 129739
							output: 40
							thoughts: 5589
						

Thoughts:
**The Deep Dive on a Potential io_uring Memory Leak**

Okay, so I've been wrestling with this `kmemleak` report, and I think I've finally traced the potential source of a leak in the io_uring subsystem. It all boils down to how asynchronous operations interact with the command cache, especially when a command is set up to run multiple times, and something goes wrong.

The initial chain of thought was to make sure `io_disarm_next` fails the rest of the chain so things are not leaked, and everything is completed so nothing is leaked. It must be executed.

But then I had to work through every possible execution path, which all seemed good. Specifically the fallback paths in the work queues.

The crucial issue arises when a UBLK_U_CMD_ADD_DEV command is submitted with the `IORING_URING_CMD_MULTISHOT` flag set (which allows a command to run multiple times) but *without* `IOSQE_BUFFER_SELECT`. I was missing this previously.

Here's the sequence. The io_alloc_req allocation and io_get_sqe go well.

1.  `io_uring_cmd` calls `ublk_ctrl_uring_cmd`.
2.  `ublk_ctrl_uring_cmd` calls `ublk_ctrl_add_dev`.
3.  Because `IORING_URING_CMD_MULTISHOT` is set but `IOSQE_BUFFER_SELECT` is not, the `io_uring_cmd_prep` function should return -EINVAL but it doesn't.
4.  Because of this, `io_issue_sqe` returns `IOU_ISSUE_SKIP_COMPLETE` due to the `MULTISHOT` flag. This happens if `ret >= 0`. This makes it skip posting a CQE. The request is queued, but never completed.
5.  `io_req_complete_post` is NOT called.
6.  `io_req_complete_defer` is NOT called.
7.  The request is effectively orphaned and is never freed, resulting in a leak. Because there is no error path when the flag is mismatched, it leaks.

It's critical that `io_uring_cmd_prep` *must* return an error if `IORING_URING_CMD_MULTISHOT` is set, but `IOSQE_BUFFER_SELECT` is not. This will properly fail the request and allow for cleanup. This should be fixed because it causes a leak when `MULTISHOT` and `BUFFER_SELECT` are mismatched.



207/2 2026/08/09 12:19 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_prep]

Results:
map[SourceCode: 184:	int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 185:	{
 186:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 187:		struct io_async_cmd *ac;
 188:	
 189:		if (sqe->__pad1)
 190:			return -EINVAL;
 191:	
 192:		ioucmd->flags = READ_ONCE(sqe->uring_cmd_flags);
 193:		if (ioucmd->flags & ~IORING_URING_CMD_MASK)
 194:			return -EINVAL;
 195:	
 196:		if (ioucmd->flags & IORING_URING_CMD_FIXED) {
 197:			if (ioucmd->flags & IORING_URING_CMD_MULTISHOT)
 198:				return -EINVAL;
 199:			req->buf_index = READ_ONCE(sqe->buf_index);
 200:		}
 201:	
 202:		if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
 203:		    !!(req->flags & REQ_F_BUFFER_SELECT))
 204:			return -EINVAL;
 205:	
 206:		ioucmd->cmd_op = READ_ONCE(sqe->cmd_op);
 207:	
 208:		ac = io_uring_alloc_async_data(&req->ctx->cmd_cache, req);
 209:		if (!ac)
 210:			return -ENOMEM;
 211:		ioucmd->sqe = sqe;
 212:		return 0;
 213:	}
 SourceFile:io_uring/uring_cmd.c]

208/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 136463
							output: 42
							thoughts: 387
						

Thoughts:
**Debugging a Mysterious io_uring Issue**

Okay, here's the situation. I'm looking at this bug report, and it's claiming a leak of `async_data` related to `io_uring_cmd_prep`. The issue is, I see `io_uring_cmd_prep` returns `-EINVAL` *before* it would have allocated `async_data`. So, logically, `async_data` shouldn't even *be* allocated in this scenario! This is perplexing.

The report also mentions a hex dump, where the `flags` field shows a value of `0x80000002`. I immediately tried to parse that, thinking it might be a combination of `IORING_URING_CMD_REISSUE` and `IORING_URING_CMD_MULTISHOT`. But wait, that can't be right; `flags` isn't supposed to be at the start.

Time for some structure checking. Remind myself: the layout of `struct io_uring_cmd` is: file, sqe, cmd_op, flags, pdu, and unused. *That* makes sense! `flags` is indeed at offset 20. But, `cmd_op` is at offset 16!

Hold on a second... the problem seems to be elsewhere. I need to refresh on the relationship with `struct io_kiocb`. Okay, `struct io_kiocb` has `struct io_cmd_data cmd` at offset 0. Wait, and `struct io_cmd_data` is actually a simpler structure with a file pointer and a data buffer. Is `struct io_uring_cmd` overlaid on `struct io_kiocb`? This could be key!

Right, I'm thinking I need to look at what `io_kiocb_to_cmd` is doing to get a handle on this. I'm going to follow the logic through that.



209/2 2026/08/09 12:19 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:io_uring/io_uring.h Name:io_kiocb_to_cmd]

Results:
map[SourceCode: SourceFile:]

210/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 137335
							output: 25
							thoughts: 16
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as if it were my own, assuming the user is an expert in the field:

**Investigating `io_kiocb_to_cmd` - Digging into the Core**

Alright, time to get to the heart of the matter. My first instinct is to dive into the code and start with a grep. Specifically, I want to see where `io_kiocb_to_cmd` is used. That function name rings a bell, probably related to the translation between a kernel I/O completion block (kiocb) and a command structure. Given the context, I'm expecting this to be a crucial piece in the asynchronous I/O (AIO) path, likely helping to bridge the gap between user space requests and the actual device driver operations. The "cmd" probably represents the command itself to the device.

Let's see where that takes me. I'm anticipating that `grep` will reveal the key call sites. From there, I can analyze the surrounding code to determine how data is passed and processed, and how errors are handled. This will tell me how the asynchronous calls are really handled and if there's an opportunity for optimization, or potentially where the problem lies.



211/2 2026/08/09 12:19 tool grepper
0m Args:
map[Expression:#define io_kiocb_to_cmd]

Results:
map[Output:include/linux/io_uring_types.h=723=static inline void io_kiocb_cmd_sz_check(size_t cmd_sz)
--
include/linux/io_uring_types.h-726-}
include/linux/io_uring_types.h:727:#define io_kiocb_to_cmd(req, cmd_type) ( \
include/linux/io_uring_types.h-728-	io_kiocb_cmd_sz_check(sizeof(cmd_type)) , \
]

212/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 137785
							output: 44
							thoughts: 17
						

Thoughts:
Here's a summary of my thought process, as requested:

**Diving into the Kernel's I/O Structure**

Okay, I need to understand this part of the I/O path. The context points to the `io_kiocb_to_cmd` function, so that's where I need to start. I'm going to quickly reference its definition. I'm already pretty familiar with the overall structure, so I can probably get the gist pretty fast, and that will orient me in the code. I'll analyze the interaction it makes with the overall system calls.



213/2 2026/08/09 12:19 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:include/linux/io_uring_types.h Name:io_kiocb_to_cmd]

Results:
map[SourceCode: SourceFile:]

214/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 137993
							output: 39
							thoughts: 27
						

Thoughts:
Okay, let's dive into this. I'm going to pull up `include/linux/io_uring_types.h` and specifically focus on lines 723 through 730. I need to refresh my memory on this section, as I know it's crucial for understanding the intricacies of io_uring, and I want to make sure I'm sharp on the details. I'll approach this with the expectation of some potentially subtle, but important implications related to the data structures involved, the interactions with the kernel, or maybe even aspects I've overlooked in previous reviews. I'm going to look for any nuances in the definitions, flags, and comments to gain the best contextual understanding.



215/2 2026/08/09 12:19 tool read-file
0m Args:
map[File:include/linux/io_uring_types.h FirstLine:723 LineCount:10]

Results:
map[Contents: 723:	static inline void io_kiocb_cmd_sz_check(size_t cmd_sz)
 724:	{
 725:		BUILD_BUG_ON(cmd_sz > sizeof(struct io_cmd_data));
 726:	}
 727:	#define io_kiocb_to_cmd(req, cmd_type) ( \
 728:		io_kiocb_cmd_sz_check(sizeof(cmd_type)) , \
 729:		((cmd_type *)&(req)->cmd) \
 730:	)
 731:	
 732:	static inline struct io_kiocb *cmd_to_io_kiocb(void *ptr)
]

216/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 138410
							output: 43
							thoughts: 592
						

Thoughts:
**Dissecting the io_uring_cmd Structure and Associated Flags**

Okay, so `io_kiocb_to_cmd` seems to be casting the address of `req->cmd` to a `cmd_type *`, and `req->cmd` resides at offset 0 within the `io_kiocb` struct. Therefore, the `io_uring_cmd` struct effectively starts at the beginning of the `io_kiocb`. This means the `file` pointer is also at offset 0, and `sqe` is at offset 8, and so on. Specifically, `cmd_op` is at 16 and `flags` at 20.

Looking at the provided hex dump, `04 75 20 c0` corresponds to `cmd_op` and is `0xc0207504`, which is good.  `02 00 00 80` translates to `0x80000002` for the `flags` field.  Now, `0x80000000` is `IORING_URING_CMD_REISSUE`, which makes sense. But the `0x2` is... wait a minute, is that `IORING_URING_CMD_MULTISHOT`? The issue I'm seeing is that if `IORING_URING_CMD_MULTISHOT` is present, then `io_uring_cmd_prep` should have returned `-EINVAL`. Unless `REQ_F_BUFFER_SELECT` is ALSO set.  Hmm.

Let's check if `REQ_F_BUFFER_SELECT` is set.  Now, `req->flags` is supposed to be at offset 576 bits, or 72 bytes. The hex dump only provides the first 32 bytes...

```
  hex dump (first 32 bytes):
    80 5d 3a 0e 81 88 ff ff d0 03 59 15 81 88 ff ff  .]:.......Y.....
    04 75 20 c0 02 00 00 80 00 00 00 00 00 00 00 00  .u .............
```

So, I don't see `req->flags` at offset 72. Damn. However, the reproducer sets the `flags` field to `0x20` which is `IOSQE_ASYNC`. It does *not* set `IOSQE_BUFFER_SELECT`, which is `1U << 4` (or `0x10`).  If `IOSQE_BUFFER_SELECT` is not set, then the check in `io_uring_cmd_prep` would have returned `-EINVAL`.  But... didn't someone recently change `io_uring_cmd_prep`?  I better go look at the git log for that function.



217/2 2026/08/09 12:19 tool git-log
0m Error:
log-in to see details

Args:
map[Count:10 PathPrefix:io_uring/uring_cmd.c SymbolName:io_uring_cmd_prep]

Results:
map[Output:]

218/2 2026/08/09 12:19 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 139726
							output: 43
							thoughts: 14
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Refactoring Consideration: `SourcePath` vs. `PathPrefix`**

Alright, I'm looking at this codebase, and I've got a minor nit-pick nagging at me. The current naming convention uses `PathPrefix`, and while it's not *wrong*, I'm starting to think `SourcePath` might actually be a more precise and descriptive term in this specific context. It's that subtle difference in emphasis, you know? `PathPrefix` kind of hints at a broader concept, like any path that *could* be a prefix. But, if we're dealing with the actual root location of the data or source of the input, then `SourcePath` feels much cleaner and more direct.

The beauty is that this isn't a huge architectural shift. It's a semantic change. It gives the developer using the code a clearer idea of the purpose of this path. It aligns better with the intent within these specific functions or classes. I need to run a quick search-and-replace to see how broadly it's used and if any edge cases might surface, but initially I think `SourcePath` is a better fit. It’s about ensuring the naming reflects the real purpose, which, ultimately, is about maintaining code clarity and avoiding ambiguity, right? Time to see if it holds water, functionally.



219/2 2026/08/09 12:20 tool git-log
0m Args:
map[Count:10 SourcePath:io_uring/uring_cmd.c SymbolName:io_uring_cmd_prep]

Results:
map[Output:1cba30bf9fdd io_uring: add support for IORING_SETUP_SQE_MIXED
e5c717e7953b io_uring/cmd: consolidate REQ_F_BUFFER_SELECT checks
3484f530f8d9 io_uring/cmd: deduplicate uring_cmd_flags checks
620a50c92700 io_uring: uring_cmd: add multishot support
2e6dbb25ea15 io_uring/cmd: remove struct io_uring_cmd_data
ecf47d452ced io_uring/uring_cmd: implement ->sqe_copy() to avoid unnecessary copies
ead21053bf34 io_uring/uring_cmd: get rid of io_uring_cmd_prep_setup()
5f14404bfa24 io_uring/cmd: don't expose entire cmd async data
575e7b0629d4 io_uring: rename the data cmd cache
fa3595523d72 io_uring: get rid of alloc cache init_once handling
]

220/2 2026/08/09 12:20 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 140365
							output: 27
							thoughts: 18
						

Thoughts:
Okay, here's my interpretation of that.

**Analyzing the Commit Hash**

Alright, time to dive in. My first thought is to examine commit `e5c717e7953b`. I need to understand what changes this specific commit introduced. Given my background, I'm immediately thinking about its potential implications on the existing codebase. I'll need to rapidly determine its function, potential dependencies, and whether it introduces any new vulnerabilities or regressions. My initial scan will focus on the diff, specifically looking for any unexpected file modifications, particularly those affecting critical systems or security-related components. I also want to assess the surrounding context to understand its purpose within the larger development effort. Is it a bug fix? Feature implementation? Refactoring? Knowing the "why" will greatly inform my analysis. Let's get to work!



221/2 2026/08/09 12:20 tool git-show
0m Args:
map[Commit:e5c717e7953b]

Results:
map[Output:commit e5c717e7953b688049cdc2a2a474e4905e0da3c0
Author: Caleb Sander Mateos <csander@purestorage.com>
Date:   Thu Aug 21 10:33:08 2025 -0600

    io_uring/cmd: consolidate REQ_F_BUFFER_SELECT checks
    
    io_uring_cmd_prep() checks that REQ_F_BUFFER_SELECT is set in the
    io_kiocb's flags iff IORING_URING_CMD_MULTISHOT is set in the SQE's
    uring_cmd_flags. Consolidate the IORING_URING_CMD_MULTISHOT and
    !IORING_URING_CMD_MULTISHOT branches into a single check that the
    IORING_URING_CMD_MULTISHOT flag matches the REQ_F_BUFFER_SELECT flag.
    
    Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
    Reviewed-by: Ming Lei <ming.lei@redhat.com>
    Link: https://lore.kernel.org/r/20250821163308.977915-4-csander@purestorage.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c
index c8fd204f6892..482cc5be1f8d 100644
--- a/io_uring/uring_cmd.c
+++ b/io_uring/uring_cmd.c
@@ -201,13 +201,9 @@ int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 		req->buf_index = READ_ONCE(sqe->buf_index);
 	}
 
-	if (ioucmd->flags & IORING_URING_CMD_MULTISHOT) {
-		if (!(req->flags & REQ_F_BUFFER_SELECT))
-			return -EINVAL;
-	} else {
-		if (req->flags & REQ_F_BUFFER_SELECT)
-			return -EINVAL;
-	}
+	if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
+	    !!(req->flags & REQ_F_BUFFER_SELECT))
+		return -EINVAL;
 
 	ioucmd->cmd_op = READ_ONCE(sqe->cmd_op);
 
]

222/2 2026/08/09 12:20 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 141248
							output: 27
							thoughts: 169
						

Thoughts:
**Debugging a Tricky io_uring Issue**

Okay, so I'm digging into this `io_uring` bug report, and something's not adding up. I'm seeing that `io_uring_cmd_prep` is supposed to return `-EINVAL` if `MULTISHOT` is set, but `BUFFER_SELECT` isn't. And what's really throwing me is that it's supposed to fail BEFORE allocating `async_data`. But the bug report is claiming a leak of `async_data`! That doesn't make any sense.

Then I look at the hex dump and see that `flags` is `0x80000002`. Aha! That's `IORING_URING_CMD_REISSUE | IORING_URING_CMD_MULTISHOT`. But wait a minute... is it possible that `IORING_URING_CMD_MULTISHOT` isn't actually `0x2` like I assumed? This seems unlikely, but with these sorts of issues, assumptions are a killer. I'm going to double check the definition of `IORING_URING_CMD_MULTISHOT` to make absolutely sure. This could be a compiler bug, or a mis-defined constant, or just an off-by-one error somewhere. Better to not assume.



223/2 2026/08/09 12:20 tool grepper
0m Args:
map[Expression:#define IORING_URING_CMD_MULTISHOT]

Results:
map[Output:include/uapi/linux/io_uring.h=255=enum io_uring_op {
--
include/uapi/linux/io_uring.h-334-#define IORING_URING_CMD_FIXED	(1U << 0)
include/uapi/linux/io_uring.h:335:#define IORING_URING_CMD_MULTISHOT	(1U << 1)
include/uapi/linux/io_uring.h-336-#define IORING_URING_CMD_MASK	(IORING_URING_CMD_FIXED | IORING_URING_CMD_MULTISHOT)
]

224/2 2026/08/09 12:20 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 141896
							output: 42
							thoughts: 1840
						

Thoughts:
**The Multishot Misunderstanding: A Memory Leak Investigation**

Okay, so the initial value of `0x2` for something is confirmed, that part seems straightforward. But, hold on a second... if `flags` is `0x80000002`, `MULTISHOT` *is* set, right? And if `MULTISHOT` is set, `io_uring_cmd_prep` is supposed to return `-EINVAL` *before* allocating `async_data`! Unless, of course, `REQ_F_BUFFER_SELECT` is ALSO set. Is `REQ_F_BUFFER_SELECT` set here?

Looking at the reproducer, `*(uint8_t*)0x200000001ec1 = 0x20;` sets the flags to `0x20`, which translates to `IOSQE_ASYNC`. But `IOSQE_BUFFER_SELECT` is `0x10`. So it looks like it is *not* set.

However, the reproducer comes from syzkaller. I need to keep in mind that it might not be *exactly* the same as the one that triggered the bug. But, the bug report indicates a memory leak. If `async_data` is leaked, it *must* have been allocated, which means `io_uring_cmd_prep` must have succeeded! This forces me to conclude that `REQ_F_BUFFER_SELECT` *must* have been set.

Or, maybe `MULTISHOT` wasn't set during `prep`, but got set LATER? Let's check: the `flags` value comes from `ioucmd->flags`, which is initialized in `io_uring_cmd_prep` with `READ_ONCE(sqe->uring_cmd_flags)`. And then in `io_uring_cmd`, `IORING_URING_CMD_REISSUE` can be added later, which means `MULTISHOT` had to be there from the beginning. So, `REQ_F_BUFFER_SELECT` *must* have been set.

If `REQ_F_BUFFER_SELECT` is set, then `io_uring_cmd_prep` succeeds, and then `io_init_req` succeeds, and then `io_submit_sqe` calls `io_queue_sqe`, and `io_queue_sqe` calls `io_issue_sqe`, which then calls `io_uring_cmd`. And `io_uring_cmd` calls `ublk_ctrl_uring_cmd`. And `ublk_ctrl_uring_cmd` returns `-EAGAIN` because `IO_URING_F_NONBLOCK` is set. Then, `io_uring_cmd` sets `IORING_URING_CMD_REISSUE` and returns `-EAGAIN`. Then `io_issue_sqe` returns `-EAGAIN`. Then `io_queue_sqe` calls `io_queue_async(req, issue_flags, -EAGAIN)`. And `io_queue_async` calls `io_arm_poll_handler`, which returns `IO_APOLL_ABORTED`. And `io_queue_async` calls `io_queue_iowq(req)`, queuing it to `io_wq`, which then executes it. Now, the `io_wq` worker calls `io_issue_sqe` WITHOUT `IO_URING_F_NONBLOCK`, which in turn calls `io_uring_cmd` again. `io_uring_cmd` calls `ublk_ctrl_uring_cmd`, which then calls `ublk_ctrl_add_dev`.

At this point, `ublk_ctrl_add_dev` either succeeds or fails. But if it succeeds, then `ublk_ctrl_uring_cmd` returns 0. *Then* `io_uring_cmd` does something interesting:  it checks if `ioucmd->flags & IORING_URING_CMD_MULTISHOT` is true. *And it is!* And `ret` is 0, which is `>= 0`! That means `io_uring_cmd` returns `IOU_ISSUE_SKIP_COMPLETE`! Then `io_issue_sqe` returns 0.

So, `io_wq_submit_work` sees `ret == 0` and it finishes! It does *not* call `io_req_task_queue_fail`, it does *not* call `io_req_complete_post` because `io_issue_sqe` returned 0, *not* `IOU_COMPLETE`! This means the request is *never* completed and it is *never


225/2 2026/08/09 12:20 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctrl_uring_cmd]

Results:
map[SourceCode:5746:	static int ublk_ctrl_uring_cmd(struct io_uring_cmd *cmd,
5747:			unsigned int issue_flags)
5748:	{
5749:		/* May point to userspace-mapped memory */
5750:		const struct ublksrv_ctrl_cmd *ub_src = io_uring_sqe128_cmd(cmd->sqe,
5751:									    struct ublksrv_ctrl_cmd);
5752:		struct ublksrv_ctrl_cmd header;
5753:		struct ublk_device *ub = NULL;
5754:		u32 cmd_op = cmd->cmd_op;
5755:		int ret = -EINVAL;
5756:	
5757:		if (ublk_ctrl_uring_cmd_may_sleep(cmd_op) &&
5758:		    issue_flags & IO_URING_F_NONBLOCK)
5759:			return -EAGAIN;
5760:	
5761:		if (!(issue_flags & IO_URING_F_SQE128))
5762:			return -EINVAL;
5763:	
5764:		header.dev_id = READ_ONCE(ub_src->dev_id);
5765:		header.queue_id = READ_ONCE(ub_src->queue_id);
5766:		header.len = READ_ONCE(ub_src->len);
5767:		header.addr = READ_ONCE(ub_src->addr);
5768:		header.data[0] = READ_ONCE(ub_src->data[0]);
5769:		header.dev_path_len = READ_ONCE(ub_src->dev_path_len);
5770:		ublk_ctrl_cmd_dump(cmd_op, &header);
5771:	
5772:		ret = ublk_check_cmd_op(cmd_op);
5773:		if (ret)
5774:			goto out;
5775:	
5776:		if (cmd_op == UBLK_U_CMD_GET_FEATURES) {
5777:			ret = ublk_ctrl_get_features(&header);
5778:			goto out;
5779:		}
5780:	
5781:		if (_IOC_NR(cmd_op) != UBLK_CMD_ADD_DEV) {
5782:			ret = -ENODEV;
5783:			ub = ublk_get_device_from_id(header.dev_id);
5784:			if (!ub)
5785:				goto out;
5786:	
5787:			ret = ublk_ctrl_uring_cmd_permission(ub, cmd_op, &header);
5788:			if (ret)
5789:				goto put_dev;
5790:		}
5791:	
5792:		switch (_IOC_NR(cmd_op)) {
5793:		case UBLK_CMD_START_DEV:
5794:			ret = ublk_ctrl_start_dev(ub, &header);
5795:			break;
5796:		case UBLK_CMD_STOP_DEV:
5797:			ublk_ctrl_stop_dev(ub);
5798:			ret = 0;
5799:			break;
5800:		case UBLK_CMD_GET_DEV_INFO:
5801:		case UBLK_CMD_GET_DEV_INFO2:
5802:			ret = ublk_ctrl_get_dev_info(ub, &header);
5803:			break;
5804:		case UBLK_CMD_ADD_DEV:
5805:			ret = ublk_ctrl_add_dev(&header);
5806:			break;
5807:		case UBLK_CMD_DEL_DEV:
5808:			ret = ublk_ctrl_del_dev(&ub, true);
5809:			break;
5810:		case UBLK_CMD_DEL_DEV_ASYNC:
5811:			ret = ublk_ctrl_del_dev(&ub, false);
5812:			break;
5813:		case UBLK_CMD_GET_QUEUE_AFFINITY:
5814:			ret = ublk_ctrl_get_queue_affinity(ub, &header);
5815:			break;
5816:		case UBLK_CMD_GET_PARAMS:
5817:			ret = ublk_ctrl_get_params(ub, &header);
5818:			break;
5819:		case UBLK_CMD_SET_PARAMS:
5820:			ret = ublk_ctrl_set_params(ub, &header);
5821:			break;
5822:		case UBLK_CMD_START_USER_RECOVERY:
5823:			ret = ublk_ctrl_start_recovery(ub);
5824:			break;
5825:		case UBLK_CMD_END_USER_RECOVERY:
5826:			ret = ublk_ctrl_end_recovery(ub, &header);
5827:			break;
5828:		case UBLK_CMD_UPDATE_SIZE:
5829:			ret = ublk_ctrl_set_size(ub, &header);
5830:			break;
5831:		case UBLK_CMD_QUIESCE_DEV:
5832:			ret = ublk_ctrl_quiesce_dev(ub, &header);
5833:			break;
5834:		case UBLK_CMD_TRY_STOP_DEV:
5835:			ret = ublk_ctrl_try_stop_dev(ub);
5836:			break;
5837:		case UBLK_CMD_REG_BUF:
5838:			ret = ublk_ctrl_reg_buf(ub, &header);
5839:			break;
5840:		case UBLK_CMD_UNREG_BUF:
5841:			ret = ublk_ctrl_unreg_buf(ub, &header);
5842:			break;
5843:		default:
5844:			ret = -EOPNOTSUPP;
5845:			break;
5846:		}
5847:	
5848:	 put_dev:
5849:		if (ub)
5850:			ublk_put_device(ub);
5851:	 out:
5852:		pr_devel("%s: cmd done ret %d cmd_op %x, dev id %d qid %d\n",
5853:				__func__, ret, cmd_op, header.dev_id, header.queue_id);
5854:		return ret;
5855:	}
 SourceFile:drivers/block/ublk_drv.c]

226/2 2026/08/09 12:20 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 146636
							output: 40
							thoughts: 1194
						

Thoughts:
**Analyzing a Potential io_uring Memory Leak**

Okay, so I'm looking at this io_uring code, and it's got me concerned.  It seems the flow in the `io_uring_cmd` function might skip crucial cleanup and completion steps under specific conditions, which screams potential memory leak. Specifically, the code checks if the `MULTISHOT` flag is set. If the underlying `uring_cmd` returns a non-negative value (like 0 for success) and `MULTISHOT` is active, it *immediately* returns `IOU_ISSUE_SKIP_COMPLETE`. This means `io_req_uring_cleanup`, and `io_req_set_res` are bypassed, leaving the request in an incomplete state. This also means it's not being properly cleaned up.

The problem seems to stem from a subtle interaction between the flags.  I'm digging into how `MULTISHOT` is handled in conjunction with other flags.  The `io_uring_cmd_prep` function has a critical check: `MULTISHOT` is *only* allowed if `REQ_F_BUFFER_SELECT` is also set. If the user sets both flags, `io_uring_cmd_prep` returns 0 which means the program will continue.

Now, the reproducer for the bug has me questioning the flags used. Based on the provided hex dump, the `flags` field is set to `0x20` which corresponds to `IOSQE_ASYNC`. This means `BUFFER_SELECT` (0x10) is NOT set. The reproducer does set `uring_cmd_flags` to `2` which means `MULTISHOT` is set. If the reproducer only set the async flag, then `io_uring_cmd_prep` should have returned `-EINVAL`. However, the bug report says a leak occurred which means it must have been able to pass through the check, so the flag must have been set in the reproducer!

So, the critical piece: `io_uring_cmd_prep` is crucial. It reads from the `sqe->uring_cmd_flags`, and that sets the `MULTISHOT` flag on `ioucmd`.  The reproducer sets `sqe->uring_cmd_flags` to 2, which means `MULTISHOT` *is* set, confirming my initial suspicion.

However, if `BUFFER_SELECT` isn't set, then `io_uring_cmd_prep` should reject it with `-EINVAL`, causing `io_init_req` to also fail, resulting in a completion with `-EINVAL` through `io_submit_fail_init`, and preventing a leak! This part is inconsistent. Wait, does `io_uring_cmd_prep` allocate `async_data` BEFORE the `MULTISHOT` check?

I need to confirm the exact kernel version this bug report is from to analyze the code. The report mentions a specific jiffies value, so I need to translate that to a kernel version and cross-reference the relevant commits. I also want to make sure if the fix introduced by commit `e5c717e7953b` is applicable to the vulnerable code.  I'll compare the allocation and validation order in `io_uring_cmd_prep` from that version with the current code to solidify my understanding.  



227/2 2026/08/09 12:21 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/uring_cmd.c Name:io_uring_cmd_prep]

Results:
map[SourceCode: 184:	int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 185:	{
 186:		struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
 187:		struct io_async_cmd *ac;
 188:	
 189:		if (sqe->__pad1)
 190:			return -EINVAL;
 191:	
 192:		ioucmd->flags = READ_ONCE(sqe->uring_cmd_flags);
 193:		if (ioucmd->flags & ~IORING_URING_CMD_MASK)
 194:			return -EINVAL;
 195:	
 196:		if (ioucmd->flags & IORING_URING_CMD_FIXED) {
 197:			if (ioucmd->flags & IORING_URING_CMD_MULTISHOT)
 198:				return -EINVAL;
 199:			req->buf_index = READ_ONCE(sqe->buf_index);
 200:		}
 201:	
 202:		if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
 203:		    !!(req->flags & REQ_F_BUFFER_SELECT))
 204:			return -EINVAL;
 205:	
 206:		ioucmd->cmd_op = READ_ONCE(sqe->cmd_op);
 207:	
 208:		ac = io_uring_alloc_async_data(&req->ctx->cmd_cache, req);
 209:		if (!ac)
 210:			return -ENOMEM;
 211:		ioucmd->sqe = sqe;
 212:		return 0;
 213:	}
 SourceFile:io_uring/uring_cmd.c]

228/2 2026/08/09 12:21 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 149126
							output: 41
							thoughts: 436
						

Thoughts:
**Analyzing the `io_uring` and `ublk` Interaction**

Okay, so the initial check is crucial – it returns `-EINVAL` *before* `async_data` is allocated. That means if `BUFFER_SELECT` isn't set, then `async_data` isn't allocated. But the bug report explicitly claims a leak of `async_data`! So, logically, `BUFFER_SELECT` must have been set. If `BUFFER_SELECT` *is* set, `io_uring_cmd_prep` returns 0. That's when `async_data` is allocated. Then, `io_uring_cmd` returns `IOU_ISSUE_SKIP_COMPLETE`, and importantly, the request never gets completed, and that's the leak.

Wait a second… is this an issue with `io_uring_cmd` itself? Yes, I think so! It *assumes* that if `MULTISHOT` is set, the driver *will* complete the request multiple times, and thus it should return `IOU_ISSUE_SKIP_COMPLETE`. But, if the driver doesn't actually support multishot, it just returns 0, or some other positive value, and `io_uring_cmd` still returns `IOU_ISSUE_SKIP_COMPLETE`. This leads to the request being leaked!

Now, let's trace back to `ublk_ctrl_uring_cmd`. It returns 0 for `UBLK_CMD_ADD_DEV` on success, if I am reading this right. Wait, `ublk_ctrl_add_dev` returns the device ID, or an error code, on success! Let's examine `ublk_ctrl_add_dev` to make sure:

```c
	static int ublk_ctrl_add_dev(const struct ublksrv_ctrl_cmd *header)
	{
        // ...
		ret = ublk_add_chdev(ub);
		goto out_unlock;
        // ...
	out_unlock:
		mutex_unlock(&ublk_ctl_mutex);
		return ret;
	}
```

Okay, so it looks like `ublk_add_chdev` is called. That makes sense. Wait…`ublk_add_chdev` returns 0 on success? Ok, now I'm starting to get the picture.
`ublk_ctrl_add_dev` returns 0 on success then?
Let's check `ublk_add_chdev`.



229/2 2026/08/09 12:21 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_add_chdev]

Results:
map[SourceCode:4326:	static int ublk_add_chdev(struct ublk_device *ub)
4327:	{
4328:		struct device *dev = &ub->cdev_dev;
4329:		int minor = ub->ub_number;
4330:		int ret;
4331:	
4332:		dev->parent = ublk_misc.this_device;
4333:		dev->devt = MKDEV(MAJOR(ublk_chr_devt), minor);
4334:		dev->class = &ublk_chr_class;
4335:		dev->release = ublk_cdev_rel;
4336:		device_initialize(dev);
4337:	
4338:		ret = dev_set_name(dev, "ublkc%d", minor);
4339:		if (ret)
4340:			goto fail;
4341:	
4342:		if (ublk_dev_support_batch_io(ub))
4343:			cdev_init(&ub->cdev, &ublk_ch_batch_io_fops);
4344:		else
4345:			cdev_init(&ub->cdev, &ublk_ch_fops);
4346:		ret = cdev_device_add(&ub->cdev, dev);
4347:		if (ret)
4348:			goto fail;
4349:	
4350:		if (ub->dev_info.flags & UBLK_F_UNPRIVILEGED_DEV)
4351:			unprivileged_ublks_added++;
4352:		return 0;
4353:	 fail:
4354:		put_device(dev);
4355:		return ret;
4356:	}
 SourceFile:drivers/block/ublk_drv.c]

230/2 2026/08/09 12:21 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 150666
							output: 42
							thoughts: 980
						

Thoughts:
**Analyzing a Potential Memory Leak in the Ublk Driver**

Okay, so I'm digging into this code, and it looks like `ublk_ctrl_uring_cmd` returns 0 on success. That, in turn, calls `io_uring_cmd`, which returns `IOU_ISSUE_SKIP_COMPLETE`.  This raises a red flag; if that happens, the request *seems* to be leaked.

The immediate question is, can an unprivileged user trigger this? Let's check `ublk_ctrl_add_dev`.  It does a `capable(CAP_SYS_ADMIN)` check, but there's a specific flag, `UBLK_F_UNPRIVILEGED_DEV` that bypasses that!

Looking at the code and the reproducer, the reproducer sets `UBLK_F_USER_COPY`, not the unprivileged flag, so that call will return -EPERM which will complete and *not* leak.

So, if that fails with `-EPERM`, `io_uring_cmd` returns `-EPERM`, which leads to the request being cleaned up and freed. No leak there. To get a leak, we need *success* from `ublk_ctrl_add_dev`. Success means root or the `UBLK_F_UNPRIVILEGED_DEV` flag.

However, a closer look at `ublk_ctrl_add_dev` shows that if `UBLK_F_UNPRIVILEGED_DEV` is set, `UBLK_F_USER_COPY` *cannot* be set. It seems like the unprivileged device can be added. 

I then considered other commands that might return a success code. `UBLK_CMD_GET_DEV_INFO`, `UBLK_CMD_GET_QUEUE_AFFINITY`, and `UBLK_CMD_GET_FEATURES` all return 0 on success. The relevant command is `UBLK_U_CMD_GET_FEATURES`, which *doesn't* require any privileges!  So, an unprivileged user can call `UBLK_U_CMD_GET_FEATURES` and set `MULTISHOT` and `BUFFER_SELECT`.  If this command is successful, this could be the vector! Let's examine `ublk_ctrl_get_features`.



231/2 2026/08/09 12:21 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_ctrl_get_features]

Results:
map[SourceCode:5140:	static int ublk_ctrl_get_features(const struct ublksrv_ctrl_cmd *header)
5141:	{
5142:		void __user *argp = (void __user *)(unsigned long)header->addr;
5143:		u64 features = UBLK_F_ALL;
5144:	
5145:		if (header->len != UBLK_FEATURES_LEN || !header->addr)
5146:			return -EINVAL;
5147:	
5148:		if (copy_to_user(argp, &features, UBLK_FEATURES_LEN))
5149:			return -EFAULT;
5150:	
5151:		return 0;
5152:	}
 SourceFile:drivers/block/ublk_drv.c]

232/2 2026/08/09 12:21 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 152419
							output: 38
							thoughts: 871
						

Thoughts:
**Analyzing the UBLK Memory Leak**

Okay, so I've confirmed it. Calling `UBLK_U_CMD_GET_FEATURES` with both `MULTISHOT` and `BUFFER_SELECT` set results in a memory leak. Specifically, it leaks the `io_kiocb` and `async_data` structures. Individually, they're not huge – 248 bytes and 192 bytes respectively – but that's a total of 440 bytes per request. The key question is whether this can lead to an OOM condition.

And yes, it seems they can. The code doesn't limit the number of allocated requests (`ctx->nr_req_allocated` is incremented, but there's no ceiling). The `io_submit_sqes` function just keeps allocating from `req_cachep` via `io_alloc_req` and then through `__io_alloc_req_refill` there's no limit enforced by `io_uring` itself. It just allocates and allocates. The `kmem_cache_alloc` can fail, eventually, leading to an OOM error.

So, unprivileged users can initiate a denial-of-service attack simply by exhausting system memory via this leak.

Now, the crucial question is whether this is exploitable beyond a DoS. Memory leaks are typically categorized as DoS vulnerabilities, not as code execution, privilege escalation, or direct information leaks. But the prompt specifies to consider an information leak as exploitable. Therefore, this is not exploitable.

Let's dig deeper: What happens to the leaked requests? They're never completed. `io_uring_cmd` returns `IOU_ISSUE_SKIP_COMPLETE`, causing `io_submit_sqe` to return 0. The request is orphaned. It's removed from `free_list` by `io_alloc_req`, but not added to `compl_reqs`, `io_wq`, or `task_work`. It's essentially lost in the system, consuming memory indefinitely. It is a pure memory leak.

Now, I need to verify: does `ublk` itself require root privileges? I need to check the permissions of the `/dev/ublk-control` device.



233/2 2026/08/09 12:21 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_misc]

Results:
map[SourceCode:5864:	static struct miscdevice ublk_misc = {
5865:		.minor		= MISC_DYNAMIC_MINOR,
5866:		.name		= "ublk-control",
5867:		.fops		= &ublk_ctl_fops,
5868:	};
 SourceFile:drivers/block/ublk_drv.c]

234/2 2026/08/09 12:21 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 153926
							output: 44
							thoughts: 1195
						

Thoughts:
**Analyzing the Memory Leak Vulnerability**

Okay, let's break this down. My initial thought was that `/dev/ublk-control` probably has default permissions of 0600 (root only), unless a udev rule overrides it. But then I remembered `ublk-control` might be different, and I need to check the `umode_t` specification. No specific `umode_t` so it's the 0600 default.

However, some distributions might relax that with udev rules, but the kernel itself doesn't inherently prevent unprivileged users from opening `/dev/ublk-control`. Hang on - the `ublk_ctrl_add_dev` function *explicitly* handles unprivileged access with that `capable(CAP_SYS_ADMIN)` check. And that's not dead code! It actually *expects* unprivileged users to use it (or it would return `EPERM`). So, unprivileged users *should* be able to open and use it, let's assume this is the case.

Now, what about `io_uring`? Is that accessible to unprivileged users? Fortunately, `io_uring_setup` is, unless `kernel.io_uring_disabled` is set. However, that's almost always 0 (or 2 to disable it), and the prompt is telling me to assume defaults. `kernel.io_uring_group` might restrict, but the default is usually accessible. That means an unprivileged user can trigger this.

So, the vulnerability is likely exploitable by an unprivileged user, and the bug causes a memory leak, leading to a denial-of-service via OOM. That's a serious problem.

Now, let's confirm the root cause: Does `io_uring_cmd` returning `IOU_ISSUE_SKIP_COMPLETE` really orphan the request? Let's trace it...

If `io_uring_cmd` returns `IOU_ISSUE_SKIP_COMPLETE`, `io_issue_sqe` catches it, sets `ret` to 0. It checks `REQ_F_IOPOLL`, but since `ublk_ctl_fops` does not have `uring_cmd_iopoll` this is never set. Therefore, it just returns 0.

Back in `io_queue_sqe`, if `io_issue_sqe` returns 0 it simply *returns*! No `io_queue_async` call, no completion functions, nothing! The request is *completely* orphaned. No list, not completed, just gone. That request holds a reference to `ctx` through `ctx->nr_req_allocated` and `ctx->refs`, so `ctx` should also be leaked!

Wait... no, `ctx` isn't leaked! `kmemleak` would have caught that. Why didn't it? Ah, because `ctx` is still referenced by the `file` struct of the `io_uring` fd! So is the syzkaller reproducer still running, or is the `file` struct leaked? If the process exits, the `file` struct is closed, `io_uring_release` is called, and `io_ring_ctx_wait_and_kill(ctx)` will be called. Now I need to check how that works, and confirm whether it is cleaned up correctly at process exit.



235/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_ring_ctx_wait_and_kill]

Results:
map[SourceCode:2422:	static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx)
2423:	{
2424:		unsigned long index;
2425:		struct cred *creds;
2426:	
2427:		mutex_lock(&ctx->uring_lock);
2428:		percpu_ref_kill(&ctx->refs);
2429:		xa_for_each(&ctx->personalities, index, creds)
2430:			io_unregister_personality(ctx, index);
2431:		mutex_unlock(&ctx->uring_lock);
2432:	
2433:		INIT_WORK(&ctx->exit_work, io_ring_exit_work);
2434:		/*
2435:		 * Use system_dfl_wq to avoid spawning tons of event kworkers
2436:		 * if we're exiting a ton of rings at the same time. It just adds
2437:		 * noise and overhead, there's no discernable change in runtime
2438:		 * over using system_percpu_wq.
2439:		 */
2440:		queue_work(iou_wq, &ctx->exit_work);
2441:	}
 SourceFile:io_uring/io_uring.c]

236/2 2026/08/09 12:22 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 156253
							output: 40
							thoughts: 66
						

Thoughts:
Here's a summary of my thought process, as requested:

**Deconstructing io_ring_ctx_wait_and_kill**

Okay, so `io_ring_ctx_wait_and_kill` is clearly a critical function for context teardown in this io_uring implementation. My immediate thought is, "Ah, it's using `percpu_ref_kill(&ctx->refs)`". That's a classic signal of reference counting, likely per-CPU to avoid excessive locking, and that kill operation will be crucial for the final decrements. The fact that this function *kills* the reference counter means we're in the final stages, aiming for deallocation.

Then it *queues* `ctx->exit_work`.  This implies the context isn't immediately destroyed. It's likely using a workqueue to handle some final cleanup *asynchronously*. That's good design to prevent blocking. The `exit_work` runs `io_ring_exit_work`.  My next step is to *absolutely* verify what `io_ring_exit_work` does. That's where the real guts of the teardown process are happening. It's time to check what `io_ring_exit_work` actually *does*. This is going to hold the key to understanding the entire teardown flow.



237/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:io_uring/io_uring.c Name:io_ring_exit_work]

Results:
map[SourceCode:2318:	static __cold void io_ring_exit_work(struct work_struct *work)
2319:	{
2320:		struct io_ring_ctx *ctx = container_of(work, struct io_ring_ctx, exit_work);
2321:		unsigned long timeout = jiffies + IO_URING_EXIT_WAIT_MAX;
2322:		unsigned long interval = HZ / 20;
2323:		struct io_tctx_exit exit;
2324:		struct io_tctx_node *node;
2325:		int ret;
2326:	
2327:		mutex_lock(&ctx->uring_lock);
2328:		io_terminate_zcrx(ctx);
2329:		mutex_unlock(&ctx->uring_lock);
2330:	
2331:		/*
2332:		 * If we're doing polled IO and end up having requests being
2333:		 * submitted async (out-of-line), then completions can come in while
2334:		 * we're waiting for refs to drop. We need to reap these manually,
2335:		 * as nobody else will be looking for them.
2336:		 */
2337:		do {
2338:			if (test_bit(IO_CHECK_CQ_OVERFLOW_BIT, &ctx->check_cq)) {
2339:				mutex_lock(&ctx->uring_lock);
2340:				io_cqring_overflow_kill(ctx);
2341:				mutex_unlock(&ctx->uring_lock);
2342:			}
2343:	
2344:			/* The SQPOLL thread never reaches this path */
2345:			do {
2346:				if (ctx->flags & IORING_SETUP_DEFER_TASKRUN)
2347:					io_cancel_local_task_work(ctx);
2348:				cond_resched();
2349:			} while (io_uring_try_cancel_requests(ctx, NULL, true, false));
2350:	
2351:			if (ctx->sq_data) {
2352:				struct io_sq_data *sqd = ctx->sq_data;
2353:				struct task_struct *tsk;
2354:	
2355:				io_sq_thread_park(sqd);
2356:				tsk = sqpoll_task_locked(sqd);
2357:				if (tsk && tsk->io_uring && tsk->io_uring->io_wq)
2358:					io_wq_cancel_cb(tsk->io_uring->io_wq,
2359:							io_cancel_ctx_cb, ctx, true);
2360:				io_sq_thread_unpark(sqd);
2361:			}
2362:	
2363:			io_req_caches_free(ctx);
2364:	
2365:			if (WARN_ON_ONCE(time_after(jiffies, timeout))) {
2366:				/* there is little hope left, don't run it too often */
2367:				interval = HZ * 60;
2368:			}
2369:			/*
2370:			 * This is really an uninterruptible wait, as it has to be
2371:			 * complete. But it's also run from a kworker, which doesn't
2372:			 * take signals, so it's fine to make it interruptible. This
2373:			 * avoids scenarios where we knowingly can wait much longer
2374:			 * on completions, for example if someone does a SIGSTOP on
2375:			 * a task that needs to finish task_work to make this loop
2376:			 * complete. That's a synthetic situation that should not
2377:			 * cause a stuck task backtrace, and hence a potential panic
2378:			 * on stuck tasks if that is enabled.
2379:			 */
2380:		} while (!wait_for_completion_interruptible_timeout(&ctx->ref_comp, interval));
2381:	
2382:		init_completion(&exit.completion);
2383:		init_task_work(&exit.task_work, io_tctx_exit_cb);
2384:		exit.ctx = ctx;
2385:	
2386:		mutex_lock(&ctx->uring_lock);
2387:		mutex_lock(&ctx->tctx_lock);
2388:		while (!list_empty(&ctx->tctx_list)) {
2389:			WARN_ON_ONCE(time_after(jiffies, timeout));
2390:	
2391:			node = list_first_entry(&ctx->tctx_list, struct io_tctx_node,
2392:						ctx_node);
2393:			/* don't spin on a single task if cancellation failed */
2394:			list_rotate_left(&ctx->tctx_list);
2395:			ret = task_work_add(node->task, &exit.task_work, TWA_SIGNAL);
2396:			if (WARN_ON_ONCE(ret))
2397:				continue;
2398:	
2399:			mutex_unlock(&ctx->tctx_lock);
2400:			mutex_unlock(&ctx->uring_lock);
2401:			/*
2402:			 * See comment above for
2403:			 * wait_for_completion_interruptible_timeout() on why this
2404:			 * wait is marked as interruptible.
2405:			 */
2406:			wait_for_completion_interruptible(&exit.completion);
2407:			mutex_lock(&ctx->uring_lock);
2408:			mutex_lock(&ctx->tctx_lock);
2409:		}
2410:		mutex_unlock(&ctx->tctx_lock);
2411:		mutex_unlock(&ctx->uring_lock);
2412:		spin_lock(&ctx->completion_lock);
2413:		spin_unlock(&ctx->completion_lock);
2414:	
2415:		/* pairs with RCU read section in io_req_local_work_add() */
2416:		if (ctx->flags & IORING_SETUP_DEFER_TASKRUN)
2417:			synchronize_rcu();
2418:	
2419:		io_ring_ctx_free(ctx);
2420:	}
 SourceFile:io_uring/io_uring.c]

238/2 2026/08/09 12:22 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 158387
							output: 34
							thoughts: 1398
						

Thoughts:
**The Core of the Matter**

Okay, so here's what I've figured out. It boils down to a pretty nasty memory leak and DoS vulnerability within the interaction between `io_uring` and block drivers like `ublk`. Let's break it down:

First, `io_ring_exit_work` is stuck in an infinite loop waiting for `ctx->ref_comp` to complete. This completion is tied to the `ctx->refs` counter dropping to zero, but a leaked request means `ctx->refs` NEVER hits zero. This immediately points to a resource leak, specifically the `ctx` struct. It's not immediately apparent to `kmemleak` because the running work thread still has `ctx` on its stack, and the cached requests which reference `ctx` are also "reachable".  However, the leaked request, which is not cached, *is* reported by `kmemleak`, finally making the bug apparent.

This infinite loop also locks up a kernel worker thread. Not good.

The root cause? If a block driver’s `uring_cmd` callback, like what's implemented in `ublk`, returns a value `>= 0` but *doesn't* complete the request, *and* `IORING_URING_CMD_MULTISHOT` is set, `io_uring` gets into this broken state. It assumes the driver will handle the completion, which is a dangerous assumption if the driver doesn't actually manage that multishot behavior correctly.

Specifically, calling `UBLK_U_CMD_GET_FEATURES` with the correct flags, which returns `>= 0`, triggers this issue.  This particular call path is entirely unprivileged. Any user can trigger this. The reproducer in the original bug report might have used `UBLK_CMD_ADD_DEV`, which would normally require root or some privilege, but they could have also just used `UBLK_U_CMD_GET_FEATURES` instead, which is available to unprivileged users, and accomplishes the exact same leak.

The leak itself encompasses `io_kiocb` and `async_data` structures associated with the rogue request, and crucially, the persistent `ctx` and any requests cached by it, which is the main source of the resource exhaustion.

The vulnerability is pure DoS: a persistent memory leak and a thread hang. No memory corruption, no information leakage, and no privilege escalation. That makes it worse than a simple privilege escalation.

My investigation also uncovered that the problem lies within `io_uring` itself. The design of `io_uring_cmd` made a dangerous assumption about multishot and driver handling that wasn't robust enough.  It needs to be more careful. It shouldn't trust the driver implicitly in the multishot case; it needs to be aware of the driver's capabilities.



239/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:include/linux/fs.h Name:file_operations]

Results:
map[SourceCode:1921:	struct file_operations {
1922:		struct module *owner;
1923:		fop_flags_t fop_flags;
1924:		loff_t (*llseek) (struct file *, loff_t, int);
1925:		ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
1926:		ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
1927:		ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
1928:		ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
1929:		int (*iopoll)(struct kiocb *kiocb, struct io_comp_batch *,
1930:				unsigned int flags);
1931:		int (*iterate_shared) (struct file *, struct dir_context *);
1932:		__poll_t (*poll) (struct file *, struct poll_table_struct *);
1933:		long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
1934:		long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
1935:		int (*mmap) (struct file *, struct vm_area_struct *);
1936:		int (*open) (struct inode *, struct file *);
1937:		int (*flush) (struct file *, fl_owner_t id);
1938:		int (*release) (struct inode *, struct file *);
1939:		int (*fsync) (struct file *, loff_t, loff_t, int datasync);
1940:		int (*fasync) (int, struct file *, int);
1941:		int (*lock) (struct file *, int, struct file_lock *);
1942:		unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
1943:		int (*check_flags)(int);
1944:		int (*flock) (struct file *, int, struct file_lock *);
1945:		ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1946:		ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1947:		void (*splice_eof)(struct file *file);
1948:		int (*setlease)(struct file *, int, struct file_lease **, void **);
1949:		long (*fallocate)(struct file *file, int mode, loff_t offset,
1950:				  loff_t len);
1951:		void (*show_fdinfo)(struct seq_file *m, struct file *f);
1952:	#ifndef CONFIG_MMU
1953:		unsigned (*mmap_capabilities)(struct file *);
1954:	#endif
1955:		ssize_t (*copy_file_range)(struct file *, loff_t, struct file *,
1956:				loff_t, size_t, unsigned int);
1957:		loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
1958:					   struct file *file_out, loff_t pos_out,
1959:					   loff_t len, unsigned int remap_flags);
1960:		int (*fadvise)(struct file *, loff_t, loff_t, int);
1961:		int (*uring_cmd)(struct io_uring_cmd *ioucmd, unsigned int issue_flags);
1962:		int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *,
1963:					unsigned int poll_flags);
1964:		int (*mmap_prepare)(struct vm_area_desc *);
1965:	} __randomize_layout;
 SourceFile:include/linux/fs.h]

240/2 2026/08/09 12:22 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 161475
							output: 38
							thoughts: 969
						

Thoughts:
**io_uring Multishot Design Flaw: A Detailed Analysis**

Okay, so there's no `uring_cmd_multishot` flag, which immediately raises a red flag. The `io_uring` implementation just *assumes* the driver will handle `MULTISHOT` when it's set. But if the driver doesn't support it, the driver simply returns 0, and `io_uring` leaks the request. This is a clear design flaw in how `io_uring_cmd` handles multishot. It creates a vulnerability where unprivileged users can leak memory and potentially hang kernel workers (`kworkers`) by sending `MULTISHOT` commands to drivers that don't actually support it, yet incorrectly return a success code.

Is there a possible fix for this? Perhaps `io_uring` should require drivers to explicitly opt-in to multishot support, maybe with something like a `FOP_URING_CMD_MULTISHOT` flag in `fop_flags`. However, in the vulnerable code I'm analyzing, the flaw is present.

Let's summarize the impact. This is not a classic exploit: it's a memory leak and kworker hang; no memory corruption or information leak. It's a Denial of Service, specifically OOM and kworker hangs. It's exploitable by unprivileged users, as they can leverage commands like `UBLK_U_CMD_GET_FEATURES` without elevated privileges. User namespaces are also affected. This isn't related to VM guests or networks or any specific peripheral or filesystem triggers.

Now, a crucial point: does `ublk_ctrl_uring_cmd` return a value other than 0 to indicate success? I have to be sure. `ublk_ctrl_add_dev` and `ublk_ctrl_get_features` both return 0 on success. And `io_uring_cmd` checks `if (ret >= 0) return IOU_ISSUE_SKIP_COMPLETE;`, so it's a perfect match.

I'm quickly confirming if `UBLK_U_CMD_GET_FEATURES` is indeed unprivileged. The code confirms that:
```c
	if (cmd_op == UBLK_U_CMD_GET_FEATURES) {
		ret = ublk_ctrl_get_features(&header);
		goto out;
	}
```
Yes, this is checked BEFORE `ublk_ctrl_uring_cmd_permission`. The check happens *before* the permission check:
```c
	if (_IOC_NR(cmd_op) != UBLK_CMD_ADD_DEV) {
		ret = -ENODEV;
		ub = ublk_get_device_from_id(header.dev_id);
		if (!ub)
			goto out;

		ret = ublk_ctrl_uring_cmd_permission(ub, cmd_op, &header);
		if (ret)
			goto put_dev;
	}
```
This bypasses the permission check entirely! And it doesn't even need a valid `dev_id`! This means an unprivileged user can open `/dev/ublk-control` and repeatedly spam `UBLK_U_CMD_GET_FEATURES` with `MULTISHOT` and `BUFFER_SELECT` flags set and leak memory without restriction.

But wait, is root required to open `/dev/ublk-control`? I think not. As a misc device, it probably has default permissions. The ublk design explicitly supports unprivileged users with the `UBLK_F_UNPRIVILEGED_DEV` feature! So, to work, `/dev/ublk-control` MUST be accessible to unprivileged users, likely `crw-rw-rw-` or owned by a specific group. If it's not accessible, they can't even start. The prompt specifies this: "Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities... or access to device nodes restricted to root." If `/dev/ublk-control` *is* restricted, then it's NOT accessible. I'll need to check the kernel code to verify if the mode of `/dev/ublk-control` is set anywhere.



241/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/block/ublk_drv.c Name:ublk_misc]

Results:
map[SourceCode:5864:	static struct miscdevice ublk_misc = {
5865:		.minor		= MISC_DYNAMIC_MINOR,
5866:		.name		= "ublk-control",
5867:		.fops		= &ublk_ctl_fops,
5868:	};
 SourceFile:drivers/block/ublk_drv.c]

242/2 2026/08/09 12:22 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 163521
							output: 34
							thoughts: 40
						

Thoughts:
Okay, here's my interpretation of those thoughts, summarized from my perspective as someone well-versed in this area:

**Investigating a Potential File Mode Issue**

Alright, so the initial concern is that something isn't explicitly setting the `.mode`. That's the first red flag. If we're relying on a default, we need to know what that default is. My mind immediately jumps to the implication that if `.mode` is *unspecified*, then `misc_register` might resort to its default permissions. The question is, what default does `misc_register` use when `.mode` is not set? Does it default to `0600`? That's what I need to verify. So, my next step is clear – I have to check the implementation details of `misc_register` to confirm whether or not it actually behaves in the manner I suspect. I need to understand its logic in detail to rule out this potential source of the problem.



243/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/char/misc.c Name:misc_register]

Results:
map[SourceCode: 209:	int misc_register(struct miscdevice *misc)
 210:	{
 211:		dev_t dev;
 212:		int err = 0;
 213:		bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR);
 214:	
 215:		if (misc->minor > MISC_DYNAMIC_MINOR) {
 216:			pr_err("Invalid fixed minor %d for miscdevice '%s'\n",
 217:			       misc->minor, misc->name);
 218:			return -EINVAL;
 219:		}
 220:	
 221:		INIT_LIST_HEAD(&misc->list);
 222:	
 223:		mutex_lock(&misc_mtx);
 224:	
 225:		if (is_dynamic) {
 226:			int i = misc_minor_alloc(misc->minor);
 227:	
 228:			if (i < 0) {
 229:				err = -EBUSY;
 230:				goto out;
 231:			}
 232:			misc->minor = i;
 233:		} else {
 234:			struct miscdevice *c;
 235:			int i;
 236:	
 237:			list_for_each_entry(c, &misc_list, list) {
 238:				if (c->minor == misc->minor) {
 239:					err = -EBUSY;
 240:					goto out;
 241:				}
 242:			}
 243:	
 244:			i = misc_minor_alloc(misc->minor);
 245:			if (i < 0) {
 246:				err = -EBUSY;
 247:				goto out;
 248:			}
 249:		}
 250:	
 251:		dev = MKDEV(MISC_MAJOR, misc->minor);
 252:	
 253:		misc->this_device =
 254:			device_create_with_groups(&misc_class, misc->parent, dev,
 255:						  misc, misc->groups, "%s", misc->name);
 256:		if (IS_ERR(misc->this_device)) {
 257:			misc_minor_free(misc->minor);
 258:			if (is_dynamic) {
 259:				misc->minor = MISC_DYNAMIC_MINOR;
 260:			}
 261:			err = PTR_ERR(misc->this_device);
 262:			goto out;
 263:		}
 264:	
 265:		/*
 266:		 * Add it to the front, so that later devices can "override"
 267:		 * earlier defaults
 268:		 */
 269:		list_add(&misc->list, &misc_list);
 270:	 out:
 271:		mutex_unlock(&misc_mtx);
 272:		return err;
 273:	}
 SourceFile:drivers/char/misc.c]

244/2 2026/08/09 12:22 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 164677
							output: 35
							thoughts: 41
						

Thoughts:
Okay, let me think this through.

**Analyzing Device Creation and Mode Setting**

Alright, so `device_create_with_groups` is the function actually responsible for bringing the device into existence. That's the key starting point. The crucial part, though, for how the device interacts with the system, the specific mode (permissions, access rights, and so on) is set by the class's `devnode` callback. I need to be sure on this point, so I'll double-check `misc_class`.



245/2 2026/08/09 12:22 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/char/misc.c Name:misc_devnode]

Results:
map[SourceCode: 169:	static char *misc_devnode(const struct device *dev, umode_t *mode)
 170:	{
 171:		const struct miscdevice *c = dev_get_drvdata(dev);
 172:	
 173:		if (mode && c->mode)
 174:			*mode = c->mode;
 175:		if (c->nodename)
 176:			return kstrdup(c->nodename, GFP_KERNEL);
 177:		return NULL;
 178:	}
 SourceFile:drivers/char/misc.c]

246/2 2026/08/09 12:22 llm expert-compressor
0m Model:
gemini-3.5-flash

Reply:
### 1. Approaches Tried and Results

*   **Request Allocation & Caching Analysis**: Traced `io_alloc_req`, `io_cache_alloc_new`, and `io_req_add_to_cache`. Verified that `io_kiocb` (size 248) and `async_data` (size 192) are allocated from slab/caches and tracked.
*   **Cleanup Path Verification**: Analyzed `io_clean_op`, `io_free_batch_list`, and `io_req_uring_cleanup`. Confirmed that if `REQ_F_ASYNC_DATA` is set, `io_clean_op` calls `kfree(req->async_data)`. If cached, it goes to `cmd_cache`. No leaks found in standard synchronous or asynchronous completion paths.
*   **Error & Fallback Path Analysis**: Traced `io_submit_fail_init`, `io_queue_sqe_fallback`, and `io_req_defer_failed`. Confirmed that failed requests are correctly completed via `io_req_complete_defer` and freed.
*   **io-wq Worker Thread Analysis**: Traced `io_wq_submit_work` and cancellation paths (`io_uring_cancel_generic`, `io_wq_exit_start`). Confirmed that even if worker threads are killed (returning `-EINTR` from `mutex_lock_killable` in `ublk_ctrl_add_dev`), fallback task work (`io_fallback_tw`) executes and cleans up the requests.
*   **Hex Dump Dissection**: Analyzed the leaked `io_kiocb` hex dump. Identified `cmd_op` as `0xc0207504` (`UBLK_U_CMD_ADD_DEV`) and `flags` as `0x80000002` (`IORING_URING_CMD_REISSUE | IORING_URING_CMD_MULTISHOT`).

---

### 2. Current Hypotheses & Active Lines of Investigation

*   **Core Hypothesis**: The memory leak occurs when a user submits a `uring_cmd` with `IORING_URING_CMD_MULTISHOT` and `REQ_F_BUFFER_SELECT` set to a driver that does not support multishot (such as `ublk`).
*   **Leak Mechanism**:
    1. `io_uring_cmd_prep` succeeds because both `MULTISHOT` and `BUFFER_SELECT` flags match, allocating `async_data`.
    2. The request is executed (possibly deferred to `io-wq` due to `-EAGAIN` on non-blocking attempt).
    3. `ublk_ctrl_uring_cmd` executes the command successfully and returns `0`.
    4. In `io_uring_cmd`, the kernel checks if `IORING_URING_CMD_MULTISHOT` is set. Since it is set and `ret >= 0`, it returns `IOU_ISSUE_SKIP_COMPLETE`.
    5. `io_issue_sqe` translates `IOU_ISSUE_SKIP_COMPLETE` to `0` (success) and skips posting a CQE or completing the request.
    6. Because the driver (`ublk`) does not actually support multishot, it never calls `io_uring_cmd_done()` to complete the request later.
    7. The request (`io_kiocb`) and its `async_data` are orphaned, never completed, never freed, and leak.

---

### 3. Critical File Paths & Code Snippets

*   **`io_uring/uring_cmd.c`** (Skipping completion on multishot):
```c
int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags)
{
    ...
    ret = file->f_op->uring_cmd(ioucmd, issue_flags);
    if (ioucmd->flags & IORING_URING_CMD_MULTISHOT) {
        if (ret >= 0)
            return IOU_ISSUE_SKIP_COMPLETE;
    }
    ...
}
```

*   **`io_uring/uring_cmd.c`** (Multishot prep check):
```c
int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
{
    ...
    if (!!(ioucmd->flags & IORING_URING_CMD_MULTISHOT) !=
        !!(req->flags & REQ_F_BUFFER_SELECT))
        return -EINVAL;
    ...
}
```

*   **`include/linux/io_uring/cmd.h`** (`struct io_uring_cmd` layout):
```c
struct io_uring_cmd {
	struct file	*file;
	const struct io_uring_sqe *sqe;
	u32		cmd_op;
	u32		flags;
	u8		pdu[32]; /* available inline for free use */
	u8		unused[8];
};
```

---

### 4. Reasoning Loops & Repetitive Tool Calls

*   **Watch out for**: Repeatedly checking standard cleanup paths (`io_clean_op`, `io_free_batch_list`) assuming the request is completed. The request is *never* completed because of the `IOU_ISSUE_SKIP_COMPLETE` return path combined with a driver that does not call `io_uring_cmd_done()`. Focus on how `uring_cmd` drivers should declare multishot support or how `io_uring` should validate it.

Tokens:
							input: 175698
							output: 1263
							thoughts: 2074
						

247/2 2026/08/09 12:23 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34236
							output: 21
							thoughts: 380
						

Thoughts:
**Analyzing the `/dev/ublk-control` Access Dilemma**

Okay, so if `c->mode` is zero, then `*mode` isn't set. And in `devtmpfs`, the default mode is `0600`. That means `/dev/ublk-control` is *likely* `0600` by default. If it's `0600`, an unprivileged user flat-out *cannot* open it. Unless there's a udev rule in place. But hold on, the prompt *specifically* states the user either "does NOT have any special capabilities... or access to device nodes restricted to root." So, if the access is restricted to root, I have to assume the user *doesn't* have access to `/dev/ublk-control`.

Wait a minute, if access is restricted to root, then Unprivileged must be False! But, isn't there a `ublk` flag: `UBLK_F_UNPRIVILEGED_DEV`? Why on earth would they add that flag if the device node is root-restricted by default? Ah, the administrator is *expected* to set up a udev rule to give unprivileged users access to `/dev/ublk-control`! Or, maybe, they can pass the file descriptor to an unprivileged user?

Okay, if the administrator *does* set up a udev rule, then, yes, it *is* accessible to unprivileged users. But the prompt is clear: "does NOT have any special capabilities... or access to device nodes restricted to root." Since the device node is likely restricted to root by default, and I'm assuming a default kernel configuration *without* any custom udev rules, then it's *not* accessible.

Yet, `ublk` is specifically designed for unprivileged users! This is a contradiction. There has to be another way to trigger this bug! Let's see... Is there any other driver that supports `uring_cmd` and, in some circumstances, returns a value `>= 0` *without* completing the request? I'll need to meticulously check all the `uring_cmd` implementations. I need to know if `ublk`'s implementation is truly unique in this regard.



248/2 2026/08/09 12:23 tool grepper
0m Args:
map[Expression:\.uring_cmd\s*=]

Results:
map[Output:block/bsg.c=189=static const struct file_operations bsg_fops = {
--
block/bsg.c-193-	.compat_ioctl	=	compat_ptr_ioctl,
block/bsg.c:194:	.uring_cmd	=	bsg_uring_cmd,
block/bsg.c-195-	.owner		=	THIS_MODULE,
--
block/fops.c=927=const struct file_operations def_blk_fops = {
--
block/fops.c-942-	.fallocate	= blkdev_fallocate,
block/fops.c:943:	.uring_cmd	= blkdev_uring_cmd,
block/fops.c-944-	.fop_flags	= FOP_BUFFER_RASYNC,
--
drivers/block/ublk_drv.c=4140=static const struct file_operations ublk_ch_fops = {
--
drivers/block/ublk_drv.c-4145-	.write_iter = ublk_ch_write_iter,
drivers/block/ublk_drv.c:4146:	.uring_cmd = ublk_ch_uring_cmd,
drivers/block/ublk_drv.c-4147-	.mmap = ublk_ch_mmap,
--
drivers/block/ublk_drv.c=4150=static const struct file_operations ublk_ch_batch_io_fops = {
--
drivers/block/ublk_drv.c-4155-	.write_iter = ublk_ch_write_iter,
drivers/block/ublk_drv.c:4156:	.uring_cmd = ublk_ch_batch_io_uring_cmd,
drivers/block/ublk_drv.c-4157-	.mmap = ublk_ch_mmap,
--
drivers/block/ublk_drv.c=5857=static const struct file_operations ublk_ctl_fops = {
drivers/block/ublk_drv.c-5858-	.open		= nonseekable_open,
drivers/block/ublk_drv.c:5859:	.uring_cmd      = ublk_ctrl_uring_cmd,
drivers/block/ublk_drv.c-5860-	.owner		= THIS_MODULE,
--
drivers/char/mem.c=647=static const struct file_operations null_fops = {
--
drivers/char/mem.c-653-	.splice_write	= splice_write_null,
drivers/char/mem.c:654:	.uring_cmd	= uring_cmd_null,
drivers/char/mem.c-655-};
--
drivers/nvme/host/core.c=3835=static const struct file_operations nvme_dev_fops = {
--
drivers/nvme/host/core.c-3840-	.compat_ioctl	= compat_ptr_ioctl,
drivers/nvme/host/core.c:3841:	.uring_cmd	= nvme_dev_uring_cmd,
drivers/nvme/host/core.c-3842-};
--
drivers/nvme/host/core.c=3940=static const struct file_operations nvme_ns_chr_fops = {
--
drivers/nvme/host/core.c-3945-	.compat_ioctl	= compat_ptr_ioctl,
drivers/nvme/host/core.c:3946:	.uring_cmd	= nvme_ns_chr_uring_cmd,
drivers/nvme/host/core.c-3947-	.uring_cmd_iopoll = nvme_ns_chr_uring_cmd_iopoll,
--
drivers/nvme/host/multipath.c=632=static const struct file_operations nvme_ns_head_chr_fops = {
--
drivers/nvme/host/multipath.c-637-	.compat_ioctl	= compat_ptr_ioctl,
drivers/nvme/host/multipath.c:638:	.uring_cmd	= nvme_ns_head_chr_uring_cmd,
drivers/nvme/host/multipath.c-639-	.uring_cmd_iopoll = nvme_ns_chr_uring_cmd_iopoll,
--
fs/btrfs/file.c=3843=const struct file_operations btrfs_file_operations = {
--
fs/btrfs/file.c-3859-	.remap_file_range = btrfs_remap_file_range,
fs/btrfs/file.c:3860:	.uring_cmd	= btrfs_uring_cmd,
fs/btrfs/file.c-3861-	.fop_flags	= FOP_BUFFER_RASYNC | FOP_BUFFER_WASYNC,
--
fs/fuse/dev.c=2378=const struct file_operations fuse_dev_operations = {
--
fs/fuse/dev.c-2390-#ifdef CONFIG_FUSE_IO_URING
fs/fuse/dev.c:2391:	.uring_cmd	= fuse_uring_cmd,
fs/fuse/dev.c-2392-#endif
--
io_uring/mock_file.c=188=static const struct file_operations io_mock_fops = {
--
io_uring/mock_file.c-190-	.release	= io_mock_release,
io_uring/mock_file.c:191:	.uring_cmd	= io_mock_cmd,
io_uring/mock_file.c-192-	.read_iter	= io_mock_read_iter,
--
io_uring/mock_file.c=197=static const struct file_operations io_mock_poll_fops = {
--
io_uring/mock_file.c-199-	.release	= io_mock_release,
io_uring/mock_file.c:200:	.uring_cmd	= io_mock_cmd,
io_uring/mock_file.c-201-	.read_iter	= io_mock_read_iter,
--
io_uring/mock_file.c=318=static const struct file_operations iou_mock_dev_fops = {
io_uring/mock_file.c-319-	.owner		= THIS_MODULE,
io_uring/mock_file.c:320:	.uring_cmd	= iou_mock_mgr_cmd,
io_uring/mock_file.c-321-};
--
net/socket.c=157=static const struct file_operations socket_file_ops = {
--
net/socket.c-165-#endif
net/socket.c:166:	.uring_cmd =    io_uring_cmd_sock,
net/socket.c-167-	.mmap =		sock_mmap,
]

249/2 2026/08/09 12:23 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36902
							output: 36
							thoughts: 21
						

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

**Diving into `uring_cmd_null`**

Okay, time to dig into this. I need to refresh my memory on `uring_cmd_null`. My first instinct is to head straight to the source, so I'll go to `drivers/char/mem.c`. That's where I expect to find the implementation, or at least the definition, of this function related to the memory device driver. I'm hoping to quickly understand what `uring_cmd_null` is designed to do. I'll be looking for its purpose within the context of the io_uring system calls and how it handles null commands. I’m thinking this function probably provides a default, possibly empty, action for the ring submission of a command with null parameters, or possibly it's a no-op function. Knowing the context of the memory device driver will help me understand its role and why it's structured this way. Let's see what the code reveals.



250/2 2026/08/09 12:24 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/char/mem.c Name:uring_cmd_null]

Results:
map[SourceCode: 445:	static int uring_cmd_null(struct io_uring_cmd *ioucmd, unsigned int issue_flags)
 446:	{
 447:		return 0;
 448:	}
 SourceFile:drivers/char/mem.c]

251/2 2026/08/09 12:24 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37267
							output: 57
							thoughts: 1286
						

Thoughts:
**Analyzing the `/dev/null` io_uring Vulnerability**

Okay, so I'm looking at this code, and it's hitting me: `uring_cmd_null` just returns 0. For `/dev/null`! And `/dev/null` is accessible *everywhere* on a Linux system.  A non-privileged user can just open `/dev/null`, submit an `io_uring` command with `IORING_URING_CMD_MULTISHOT` and `REQ_F_BUFFER_SELECT` set, and *boom* – memory leak, kworker hang.  This is a blatant, unprivileged DoS. No special permissions or modules are needed, just `/dev/null`.

Let me quickly walk through it to confirm: The file operations for `/dev/null` point to `null_fops`, which has a `uring_cmd` set to `uring_cmd_null`. If I submit an `IORING_OP_URING_CMD` with `/dev/null`'s file descriptor, with flags for `IORING_URING_CMD_MULTISHOT` and the `sqe->buf_index` to trigger `REQ_F_BUFFER_SELECT` (which is `IOSQE_BUFFER_SELECT` in the `sqe->flags`), the `io_uring_cmd_prep` function checks if the flags are consistent, and if they are, `uring_cmd_null` gets called. `uring_cmd_null` returns 0, and because `MULTISHOT` is set, the completion queue entry is skipped. Resulting in a request and the context being leaked, and a kworker getting stuck.

Brilliant, but in a very bad way. A trivial and completely unprivileged DoS! No memory corruption, no infoleak, no privesc.  Exploitable: False. DenialOfService: True. Unprivileged: True. UserNamespace: True.

Okay, is there a more significant consequence? If the `ctx` is leaked, the `io_ring_exit_work` function loops forever, holding a kworker thread hostage. Now, if a user creates *multiple* `io_uring` instances and triggers this in each, they can exhaust all of the system's kworker threads! This is because `io_ring_exit_work` is queued on the `iou_wq` workqueue.  And `iou_wq` is an *unbound* workqueue! An unbound workqueue only has a set amount of threads it can run simultaneously, which in this case, appears to be 64.  So, if they trigger this 64 times, they can *completely* block `iou_wq`!  And if `iou_wq` is blocked, *no other* `io_uring` instances can be destroyed!  This means any process that uses `io_uring` and exits will have its `io_uring` resources leaked! This becomes a very *strong* DoS.

I'm verifying that `uring_cmd_null` is indeed present in the bug report's kernel version. The bug report mentions `ublk` in the reproducer, but the vulnerability is actually in `io_uring_cmd` itself. The prompt asks to determine the security impact. All the answers are here.

So, let's nail down these dimensions:
*   Exploitable: False. Memory leak and kworker hang; no corruption.
*   Denial Of Service: True. Memory leaks, kworker hangs, system instability and potentially OOM issues.
*   Unprivileged: True. Can be triggered from `/dev/null`.
*   User Namespace: True.
*   VM Guest Trigger: False.
*   VM Host Trigger in Confidential Computing Context: False.
*   Network Trigger: False.
*   Remote Trigger: False.
*   Peripheral Trigger: False.
*   Malicious Filesystem Trigger: False.

I'm just quickly considering if there is any exploitation potential. With the request leaked, it's just memory that is never freed, and I can't imagine a way to abuse it, as the kernel never touches it again. It's a pure memory leak. What about the `ctx` leak? The kworker thread in `io_ring_exit_work` just loops, waiting for the completion but doesn't do anything else with the `ctx`. There's no use-after-free or anything, just pure DoS.

I should also quickly check the mainline kernel git log for `io_uring_cmd` and `MULTISHOT` to see if a patch exists.



252/2 2026/08/09 12:24 tool git-log
0m Args:
map[CodeRegexp:IOU_ISSUE_SKIP_COMPLETE Count:10 SourcePath:io_uring/uring_cmd.c SymbolName:io_uring_cmd]

Results:
map[Output:3a4689ac109f io_uring/cmd: add iovec cache for commands
]

253/2 2026/08/09 12:24 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39637
							output: 30
							thoughts: 40
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience:

**Debugging a Potential io_uring Issue**

Right, so `git log` came up empty, which is a bit frustrating. That strongly suggests the fix I'm looking for isn't directly referenced in the commit history with any obvious keywords, or maybe I'm just using the wrong search terms. Time to refine the search. My next step is to get granular. Instead of broad searches, I need to focus on the suspect area: specifically, any commits that touch `io_uring_cmd` within `io_uring/uring_cmd.c`. I'm going to leverage `git`'s ability to pinpoint code changes, and drill down until I find something relevant. Hopefully, this narrower search will uncover the modification I'm looking for, even if the commit message isn't perfectly descriptive.



254/2 2026/08/09 12:24 tool git-log
0m Args:
map[Count:10 PathPrefix:io_uring/uring_cmd.c]

Results:
map[Output:58481c749c97 io_uring/uring_cmd: fix uring_cmd.c comments
23475637b0c4 io_uring/uring_cmd: allow non-iopoll cmds with IORING_SETUP_IOPOLL
9165dc4fa969 io_uring: add REQ_F_IOPOLL
8661d0b142bc io_uring/uring_cmd: explicitly disallow cancelations for IOPOLL
20fb3d05a34b io_uring/uring_cmd: avoid double indirect call in task work dispatch
c33e779aba68 io_uring: add wrapper type for io_req_tw_func_t arg
1cba30bf9fdd io_uring: add support for IORING_SETUP_SQE_MIXED
7be20254a743 io_uring: unify task_work cancelation checks
79525b51acc1 io_uring: fix nvme's 32b cqes on mixed cq
3539b1467e94 io_uring: include dying ring in task_work "should cancel" state
]

255/2 2026/08/09 12:24 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40193
							output: 37
							thoughts: 49
						

Thoughts:
**Investigating the Missing Fix**

Okay, hold on a second. I'm reviewing these recent changes, and I'm not seeing the explicit patch for *this* particular problem. Where did it go? Did I miss something? Hmm, could it be that the fix was actually a side effect of that conditional check related to driver multishot support? It's possible the logic changed implicitly resolved the issue. Let me go back and give `io_uring_cmd_prep` another, closer look. Let's see if that check did the trick. I'm going to carefully re-examine that function, specifically looking at how the multishot support integrates and how that might have impacted the original problem.



256/2 2026/08/09 12:24 tool git-log
0m Args:
map[Count:10 PathPrefix:io_uring/uring_cmd.c Since:1 year]

Results:
map[Output:58481c749c97 io_uring/uring_cmd: fix uring_cmd.c comments
23475637b0c4 io_uring/uring_cmd: allow non-iopoll cmds with IORING_SETUP_IOPOLL
9165dc4fa969 io_uring: add REQ_F_IOPOLL
8661d0b142bc io_uring/uring_cmd: explicitly disallow cancelations for IOPOLL
20fb3d05a34b io_uring/uring_cmd: avoid double indirect call in task work dispatch
c33e779aba68 io_uring: add wrapper type for io_req_tw_func_t arg
1cba30bf9fdd io_uring: add support for IORING_SETUP_SQE_MIXED
7be20254a743 io_uring: unify task_work cancelation checks
79525b51acc1 io_uring: fix nvme's 32b cqes on mixed cq
3539b1467e94 io_uring: include dying ring in task_work "should cancel" state
]

257/2 2026/08/09 12:24 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40727
							output: 66
							thoughts: 483
						

Thoughts:
**My Analysis of this Memory Leak Bug**

Okay, first things first, I've checked the commit history, and I don't see any obvious fixes for this specific issue. Hmm, is it a brand new vulnerability, perhaps a zero-day, or at least very recent? The bug report seems legitimate, it's got a commit string with `syz.0.17`, process ID, and jiffies. Yep, this is a real problem. My initial analysis is solid, let's nail down a final response.

Here's my distilled reasoning: The core issue is a memory leak involving `io_kiocb` and `async_data` structures within `io_uring`. It arises when a user submits an `IORING_OP_URING_CMD` request with the `IORING_URING_CMD_MULTISHOT` flag enabled, and validation also passes with `IOSQE_BUFFER_SELECT`. The flow goes like this: `io_uring_cmd` calls the file's `uring_cmd` callback. If that callback returns a non-negative value (like 0, indicating success, in many cases), `io_uring_cmd` assumes the driver will handle the multishot completions and it returns `IOU_ISSUE_SKIP_COMPLETE`.

The problem appears when the driver *doesn't* actually support multishot. For instance, `ublk_ctrl_uring_cmd` (for `UBLK_CMD_ADD_DEV` or `UBLK_U_CMD_GET_FEATURES`), or even `uring_cmd_null` (when using `/dev/null`) simply return 0, indicating success, but then don't actually complete the request. The request gets orphaned, and the memory leaks.

What's worse, the leaked request holds a reference to the `io_ring_ctx`. Consequently, when the ring is closed, `io_ring_exit_work` gets stuck in a loop, waiting for `ctx->refs` to reach 0. This hangs a kworker thread, leaking the `ctx` as well.

The kicker is that an unprivileged user can trigger this using `/dev/null` or even unprivileged `ublk` commands. That means we're looking at a Denial of Service vulnerability – eventually leading to out-of-memory errors and kworker thread exhaustion. The good news is, from what I can tell, this is only a memory leak and thread hang. It's not exploitable for privilege escalation or sensitive information disclosure.



258/2 2026/08/09 12:25 tool set-results
0m Args:
map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]

Results:
map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]

259/2 2026/08/09 12:25 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41878
							output: 811
							thoughts: 13
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, tailored for an expert audience, and written in the first person:

**Finalizing the Analysis & Drafting the Response**

Alright, the data is processed, the analyses are complete, and the results are definitive. There's no further tweaking, no more sensitivity analyses needed. Now it's time to craft the final response. This isn't just about regurgitating the findings; it's about synthesizing the entire process – the methodology, the nuances of the data, the interpretation of the output, and ultimately, articulating the implications with precision and clarity. I need to ensure the language is concise, technically sound, and accessible to the intended audience, while also avoiding any ambiguity. The emphasis needs to be on the robustness of the results, and, of course, the limitations are always in mind. Now, the goal is to make a compelling argument and leave no room for misinterpretation. Time to get to work.



260/1 2026/08/09 12:25 action format-explanation
0m Results:
map[Explanation:Based on the analysis of the provided bug report and kernel source code, here is
the assessment of the vulnerability:

### Bug Mechanism
The bug is a memory leak and kworker hang in `io_uring` caused by improper
handling of the `IORING_URING_CMD_MULTISHOT` flag.

When a user submits an `IORING_OP_URING_CMD` request with the
`IORING_URING_CMD_MULTISHOT` flag set (and `IOSQE_BUFFER_SELECT` to pass initial
validation in `io_uring_cmd_prep`), `io_uring_cmd()` invokes the target file's
`uring_cmd` callback.
If the callback returns `>= 0` (e.g., `0` for success), `io_uring_cmd()` assumes
that the driver supports multishot and will asynchronously complete the request
multiple times. Consequently, it returns `IOU_ISSUE_SKIP_COMPLETE` to the core
`io_uring` issue path, which skips completing or freeing the request.

However, if the target driver does **not** support multishot (such as
`ublk_ctrl_uring_cmd` or even `uring_cmd_null` for `/dev/null`), it simply
returns `0` upon successful execution of the command and never calls
`io_uring_cmd_done()`. As a result, the `io_kiocb` request and its associated
`async_data` are completely orphaned and leaked.

Furthermore, because the leaked request holds a reference to the `io_ring_ctx`
(`ctx->refs`), the ring context can never be fully destroyed. When the
`io_uring` instance is closed, the cleanup work `io_ring_exit_work` is queued to
a system kworker. This work loops indefinitely waiting for `ctx->refs` to drop
to 0, permanently hanging the kworker thread and leaking the entire
`io_ring_ctx`.

### Security Impact

* **Exploitable: False**
  The bug is a pure memory leak and thread hang. The orphaned requests are
  removed from all lists and are never accessed again by the kernel, meaning
  there is no use-after-free, memory corruption, or information leak primitive.
  It cannot be used for privilege escalation or arbitrary code execution.

* **Denial of Service: True**
  An attacker can repeatedly trigger this bug to leak kernel memory (leading to
  Out-Of-Memory conditions). More critically, by creating multiple `io_uring`
  instances and triggering the leak in each before closing them, the attacker
  can exhaust the `iou_wq` unbound workqueue (which has a max active limit,
  typically 64). This permanently hangs the kworkers, preventing any other
  `io_uring` instances on the system from being cleaned up, resulting in a
  severe system-wide Denial of Service.

* **Accessible From Unprivileged Processes: True**
  The vulnerability can be triggered by any unprivileged user. While the
  syzkaller reproducer uses `ublk` (which has unprivileged commands like
  `UBLK_U_CMD_GET_FEATURES`), the bug is fundamentally in `io_uring`. An
  unprivileged user can simply open `/dev/null` (which uses `uring_cmd_null`
  that always returns `0`) and submit a multishot `uring_cmd` against it to
  trigger the exact same leak and kworker hang.

* **Accessible From User Namespaces: True**
  Since it is accessible to completely unprivileged processes in the initial
  namespace, it is also accessible within user namespaces.

* **Other Triggers (Network, Remote, Peripheral, Filesystem, VM): False**
  The bug is triggered via local syscalls (`io_uring_enter`) and does not
  require any specific external input, network traffic, malicious filesystems,
  or peripheral devices.]

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)