ID Workflow Result Correct Bug Created Started Finished Revision
e525833c repro-c 💥 WARNING in nci_rsp_packet 2026/10/01 05:08 2026/10/01 05:08 2026/10/01 06:11 38f7f0d1
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 WARNING in nci_rsp_packet
CrashLogID 4906790040371200
CrashReportID 6548373517107200
KernelCommit d266640c6c760c9bc215bf5a3ece122ca488b6f5
KernelConfig
Show (282402 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 syzkaller Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 14.2.0-19) 14.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=24400
CONFIG_LLD_VERSION=0
CONFIG_RUSTC_VERSION=109600
CONFIG_RUST_IS_AVAILABLE=y
CONFIG_RUSTC_LLVM_VERSION=220102
CONFIG_RUSTC_LLVM_MAJOR_VERSION=22
CONFIG_CC_CAN_LINK=y
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
CONFIG_TOOLS_SUPPORT_RELR=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_ASSUME=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_LD_CAN_USE_KEEP_IN_OVERLAY=y
CONFIG_RUSTC_HAS_SPAN_FILE=y
CONFIG_RUSTC_HAS_UNNECESSARY_TRANSMUTES=y
CONFIG_RUSTC_HAS_FILE_WITH_NUL=y
CONFIG_RUSTC_HAS_FILE_AS_C_STR=y
CONFIG_PAHOLE_VERSION=130
CONFIG_CONSTRUCTORS=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_HAVE_KERNEL_ZSTD=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not set
CONFIG_DEFAULT_INIT=""
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_WATCH_QUEUE=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_CONTEXT_TRACKING_USER=y
# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_POSIX_AUX_CLOCKS=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_HAS_SEPARATE_PREEMPT_RESCHED_BITS=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
# CONFIG_TICK_CPU_ACCOUNTING is not set
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_IRQ_TIME_ACCOUNTING=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_HAS_PTE_PROTNONE=y
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_ARCH_SUPPORTS_CMDLINE_FROM_BOOTCONFIG=y
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_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_TRACEPOINTS=y

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

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

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

#
# Processor type and features
#
CONFIG_SMP=y
CONFIG_X86_X2APIC=y
# CONFIG_X86_POSTED_MSI is not set
CONFIG_X86_MPPARSE=y
# CONFIG_X86_CPU_RESCTRL is not set
CONFIG_X86_FRED=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_RUSTC_HAS_APXF=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 is not set
CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set
CONFIG_X86_PAT=y
CONFIG_X86_UMIP=y
CONFIG_CC_HAS_IBT=y
CONFIG_X86_CET=y
CONFIG_X86_KERNEL_IBT=y
CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
CONFIG_ARCH_PKEY_BITS=4
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
CONFIG_X86_INTEL_TSX_MODE_ON=y
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
CONFIG_X86_SGX=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 panic_on_warn=1"
# CONFIG_CMDLINE_OVERRIDE is not set
CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
CONFIG_HAVE_LIVEPATCH=y
CONFIG_HAVE_KLP_BUILD=y
CONFIG_X86_BUS_LOCK_DETECT=y
# end of Processor type and features

CONFIG_CC_HAS_NAMED_AS=y
CONFIG_CC_HAS_NAMED_AS_FIXED_SANITIZERS=y
CONFIG_USE_X86_SEG_SUPPORT=y
CONFIG_CC_HAS_SLS=y
CONFIG_CC_HAS_RETURN_THUNK=y
CONFIG_CC_HAS_ENTRY_PADDING=y
CONFIG_FUNCTION_PADDING_CFI=11
CONFIG_FUNCTION_PADDING_BYTES=16
CONFIG_CALL_PADDING=y
CONFIG_HAVE_CALL_THUNKS=y
CONFIG_CALL_THUNKS=y
CONFIG_CPU_MITIGATIONS=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_MITIGATION_RETPOLINE=y
CONFIG_MITIGATION_RETHUNK=y
CONFIG_MITIGATION_UNRET_ENTRY=y
CONFIG_MITIGATION_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not set
CONFIG_MITIGATION_IBPB_ENTRY=y
CONFIG_MITIGATION_IBRS_ENTRY=y
CONFIG_MITIGATION_SRSO=y
# CONFIG_MITIGATION_SLS is not set
CONFIG_MITIGATION_GDS=y
CONFIG_MITIGATION_RFDS=y
CONFIG_MITIGATION_SPECTRE_BHI=y
CONFIG_MITIGATION_MDS=y
CONFIG_MITIGATION_TAA=y
CONFIG_MITIGATION_MMIO_STALE_DATA=y
CONFIG_MITIGATION_L1TF=y
CONFIG_MITIGATION_RETBLEED=y
CONFIG_MITIGATION_SPECTRE_V1=y
CONFIG_MITIGATION_SPECTRE_V2=y
CONFIG_MITIGATION_SRBDS=y
CONFIG_MITIGATION_SSB=y
CONFIG_MITIGATION_ITS=y
CONFIG_MITIGATION_TSA=y
# CONFIG_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 is not set
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_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_ARCH_SUPPORTS_SYSCALL_USER_DISPATCH=y
CONFIG_SYSCALL_USER_DISPATCH=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_DELAY_TIMER=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_QUEUED_SPINLOCKS_TRACE_CONTENDED_RELEASE is not set
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_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_HAS_PMD_SOFTLEAVES=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_KMAP_LOCAL=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_RWP=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=y
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_MT7628 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_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

#
# 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_DEBUG is not set
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_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
#
# CONFIG_QCOM_PAS is not set
# CONFIG_QCOM_PAS_TEE is not set
# CONFIG_QCOM_SCM is not set
# 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_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_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_MAX6875 is not set
CONFIG_EEPROM_93CX6=y
# CONFIG_EEPROM_IDT_89HPESX 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
# CONFIG_INTEL_SSEI 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_LEAPRAID 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_IXD 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_NET_VENDOR_ZTE=y
# CONFIG_DINGHAI 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_ADIN1140_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_DAP8211R_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_USBLIB is not set
# CONFIG_MCTP_TRANSPORT_USB is not set
# end of MCTP Device Drivers

#
# MDIO controller 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
# end of MDIO Multiplexers
# end of MDIO controller drivers

#
# 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_MORSEMICRO=y
# CONFIG_MM81X_USB is not set
# CONFIG_MM81X_SDIO is not set
CONFIG_WLAN_VENDOR_NXP=y
# CONFIG_NXPWIFI_SDIO 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_ISA1200_HAPTIC is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_AMD_SFH_TABLETMODE 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_MOXA_PCIE=y
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
CONFIG_SERIAL_8250_LPSS=y
CONFIG_SERIAL_8250_MID=y
CONFIG_SERIAL_8250_PERICOM=y
# CONFIG_SERIAL_8250_NI is not set
# CONFIG_SERIAL_OF_PLATFORM is not set
CONFIG_SERIAL_8250_DWLIB=y

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

CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
CONFIG_N_HDLC=y
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_BQ25630 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_CHARGER_SGM41542 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_KB9002 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_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_LENOVO_SE30G2_SE60_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_ANBERNIC_TD4310 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_CHIPONE_ICNA35XX 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_ILI7807S is not set
# CONFIG_DRM_PANEL_ILITEK_IL9322 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9488 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_NT36536 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_R63419 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 is not set
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_SY7758 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=y
# CONFIG_SND_DEBUG_VERBOSE is not set
CONFIG_SND_PCM_XRUN_DEBUG=y
# CONFIG_SND_CTL_INPUT_VALIDATION is not set
# CONFIG_SND_CTL_DEBUG is not set
# CONFIG_SND_JACK_INJECTION_DEBUG 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_AW88399_I2C 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_ADAU1977_SPI is not set
# CONFIG_SND_SOC_ADAU1977_I2C 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_RT5677 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_WSA885X 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_HYPERX is not set
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_MSI is not set
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_LTC3220 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_NOIOMMU 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_HALO_LED 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_LENOVO_YB9_KBDOCK 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

#
# Cixtech Audio Subsystem Clock Driver
#
# end of Cixtech Audio Subsystem Clock Driver

# 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=y
CONFIG_IOMMU_PT=y
CONFIG_IOMMU_PT_AMDV1=y
CONFIG_IOMMU_PT_VTDSS=y
# CONFIG_IOMMU_PT_RISCV64 is not set
CONFIG_IOMMU_PT_X86_64=y

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

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

CONFIG_SOUNDWIRE=y

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

#
# SOC (System On Chip) specific Drivers
#

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

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

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

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

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

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

# CONFIG_WPCM450_SOC is not set
CONFIG_QCOM_QMI_HELPERS=y
# 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_ADS112C14 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_VERSAL_SYSMON_I2C 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_MCP47A1 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

#
# Flow sensors
#
# CONFIG_SENSIRION_SLF3S is not set
# end of Flow sensors

#
# Frequency Synthesizers DDS/PLL
#

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

#
# Phase-Locked Loop (PLL) frequency synthesizers
#
# CONFIG_ADF41513 is not set
# 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_ICM42607_I2C is not set
# CONFIG_INV_ICM42607_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_QMC5883L is not set
# CONFIG_QMC6308 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_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_EE1004 is not set
# CONFIG_EEPROM_M24LR is not set
# 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=y
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=y
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
# 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_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_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_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_COMPRESSED_POLICY 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_LANDLOCK_LOG=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_IMA_INIT_LATE_SYNC 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=y
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=y
CONFIG_CRYPTO_LIB_AES_CBC_MACS=y
CONFIG_CRYPTO_LIB_AES_CCM=y
CONFIG_CRYPTO_LIB_AES_CTR=y
CONFIG_CRYPTO_LIB_AES_ECB=y
CONFIG_CRYPTO_LIB_AES_GCM=y
CONFIG_CRYPTO_LIB_AES_XTS=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_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_DEFAULT_SIZE_MB=64
# 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_CPUMASK_OFFSTACK is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_DIMLIB=y
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=y
CONFIG_VDSO_DATASTORE=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=y
CONFIG_DYNAMIC_DEBUG_CORE=y
CONFIG_SYMBOLIC_ERRNAME=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_BUGVERBOSE_DETAILED=y
# end of printk and dmesg options

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y

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

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

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

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

# CONFIG_DEBUG_SHIRQ is not set

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

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

CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_ATOMIC is not set

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

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

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

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

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

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

#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
CONFIG_FAULT_INJECTION=y
CONFIG_FAILSLAB=y
CONFIG_FAIL_PAGE_ALLOC=y
CONFIG_FAULT_INJECTION_USERCOPY=y
CONFIG_FAIL_MAKE_REQUEST=y
CONFIG_FAIL_IO_TIMEOUT=y
CONFIG_FAIL_FUTEX=y
CONFIG_FAULT_INJECTION_DEBUG_FS=y
# CONFIG_FAIL_MMC_REQUEST is not set
# CONFIG_FAIL_SKB_REALLOC is not set
CONFIG_FAULT_INJECTION_CONFIGFS=y
# CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set
CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_ENABLE_COMPARISONS=y
CONFIG_KCOV_INSTRUMENT_ALL=y
CONFIG_KCOV_IRQ_AREA_SIZE=0x40000
# CONFIG_KCOV_SELFTEST is not set
CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_TEST_DHRY is not set
# CONFIG_LKDTM is not set
# CONFIG_TEST_DIV64 is not set
# CONFIG_TEST_MULDIV64 is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_TEST_REF_TRACKER is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_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_REGION_ALLOC_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_CONTEXT_ANALYSIS_TEST is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_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 0
ReproOpts
ReproSyzID 0
SyzkallerCommit a3c7249d3a0d6e9742d03e5567e7949b4772a7a0
TargetArch 386
TargetOS linux
TargetVMArch amd64

Error:
log-in to see details

Outputs:

Crash report:
------------[ cut here ]------------
workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq
WARNING: kernel/workqueue.c:2352 at __queue_work+0xdb7/0x1370 kernel/workqueue.c:2351, CPU#3: kworker/u32:0/12
Modules linked in:
CPU: 3 UID: 0 PID: 12 Comm: kworker/u32:0 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: nfc2_nci_rx_wq nci_rx_work
RIP: 0010:__queue_work+0xdbb/0x1370 kernel/workqueue.c:2351
Code: 00 00 00 fc ff df 49 8d 94 24 70 01 00 00 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 84 05 00 00 48 8d 3d 29 43 78 0f 48 8b 75 18 <67> 48 0f b9 3a 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03
RSP: 0000:ffffc900001e7a40 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888026cc1000 RCX: 1ffff1100f10e022
RDX: ffff8880298be170 RSI: ffffffff8ba2d9c0 RDI: ffffffff91486f90
RBP: ffff8880788700f8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000200000 R11: 000000000000761b R12: ffff8880298be000
R13: 1ffff9200003cf52 R14: 0000000000000020 R15: 0000000000000084
FS:  0000000000000000(0000) GS:ffff888096c55000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000c3aef55 CR3: 0000000078b7d000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2501
 queue_work include/linux/workqueue.h:700 [inline]
 nci_rsp_packet+0x297/0x3420 net/nfc/nci/rsp.c:463
 nci_rx_work+0x29c/0x430 net/nfc/nci/core.c:1579
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
 process_scheduled_works kernel/workqueue.c:3479 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 fc                	add    %bh,%ah
   4:	ff                   	lcall  (bad)
   5:	df 49 8d             	fisttps -0x73(%rcx)
   8:	94                   	xchg   %eax,%esp
   9:	24 70                	and    $0x70,%al
   b:	01 00                	add    %eax,(%rax)
   d:	00 48 89             	add    %cl,-0x77(%rax)
  10:	f9                   	stc
  11:	48 c1 e9 03          	shr    $0x3,%rcx
  15:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1)
  19:	0f 85 84 05 00 00    	jne    0x5a3
  1f:	48 8d 3d 29 43 78 0f 	lea    0xf784329(%rip),%rdi        # 0xf78434f
  26:	48 8b 75 18          	mov    0x18(%rbp),%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  36:	fc ff df
  39:	48 89 ea             	mov    %rbp,%rdx
  3c:	48 c1 ea 03          	shr    $0x3,%rdx

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/10/01 05:08 flow repro-c
1h03m Error:
log-in to see details

1/1 2026/10/01 05:08 action kernel-checkouter
0m Results:
map[KernelSrc:/app/workdir/cache/src/21589809599ed10039e58d35abba79a74a66c32a]

2/1 2026/10/01 05:08 action kernel-builder
17m Results:
map[KernelObj:/app/workdir/cache/build/af200d75a0d7a53a420e8d30a2b2b7912ae1f850]

3/1 2026/10/01 05:26 action codesearch-prepare
11m Results:
map[Index:codesearch-index]

4/1 2026/10/01 05:38 agent initial-researcher
28m Model:
deep-reasoning

Instruction:
You are a security researcher with deep Linux kernel background.
Your goal is to analyze a Linux kernel bug description and propose a strategy to reproduce it
with a minimal, standalone C program for the strictly defensive purpose of verifying a bugfix.

=== TOOL SELECTION GUIDELINES ===
- When looking up C function or struct definitions, prefer codesearch-definition-source
  and codesearch-struct-layout first.
- Fall back to read-file or grepper only if symbol lookup fails or when inspecting macros,
  headers, or non-C files.

=== CRITICAL PROHIBITIONS ===
- Do NOT propose an exploit. Focus solely on minimal technical reproduction of the bug state.
- Do NOT write long explanations. Keep your analysis and strategy proposal concise.
- Do NOT assume that the target bug has already been fixed just because a git commit title
  or description mentions a similar bug or fix. Commit messages often reference related issues
  or partial fixes. Proceed with proposing a reproduction strategy regardless of historical fix commits.
Prefer calling several tools at the same time to save round-trips.

Prompt:
Bug Description: WARNING in nci_rsp_packet

------------[ cut here ]------------
workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq
WARNING: kernel/workqueue.c:2352 at __queue_work+0xdb7/0x1370 kernel/workqueue.c:2351, CPU#3: kworker/u32:0/12
Modules linked in:
CPU: 3 UID: 0 PID: 12 Comm: kworker/u32:0 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: nfc2_nci_rx_wq nci_rx_work
RIP: 0010:__queue_work+0xdbb/0x1370 kernel/workqueue.c:2351
Code: 00 00 00 fc ff df 49 8d 94 24 70 01 00 00 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 84 05 00 00 48 8d 3d 29 43 78 0f 48 8b 75 18 <67> 48 0f b9 3a 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03
RSP: 0000:ffffc900001e7a40 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888026cc1000 RCX: 1ffff1100f10e022
RDX: ffff8880298be170 RSI: ffffffff8ba2d9c0 RDI: ffffffff91486f90
RBP: ffff8880788700f8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000200000 R11: 000000000000761b R12: ffff8880298be000
R13: 1ffff9200003cf52 R14: 0000000000000020 R15: 0000000000000084
FS:  0000000000000000(0000) GS:ffff888096c55000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000c3aef55 CR3: 0000000078b7d000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2501
 queue_work include/linux/workqueue.h:700 [inline]
 nci_rsp_packet+0x297/0x3420 net/nfc/nci/rsp.c:463
 nci_rx_work+0x29c/0x430 net/nfc/nci/core.c:1579
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
 process_scheduled_works kernel/workqueue.c:3479 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 fc                	add    %bh,%ah
   4:	ff                   	lcall  (bad)
   5:	df 49 8d             	fisttps -0x73(%rcx)
   8:	94                   	xchg   %eax,%esp
   9:	24 70                	and    $0x70,%al
   b:	01 00                	add    %eax,(%rax)
   d:	00 48 89             	add    %cl,-0x77(%rax)
  10:	f9                   	stc
  11:	48 c1 e9 03          	shr    $0x3,%rcx
  15:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1)
  19:	0f 85 84 05 00 00    	jne    0x5a3
  1f:	48 8d 3d 29 43 78 0f 	lea    0xf784329(%rip),%rdi        # 0xf78434f
  26:	48 8b 75 18          	mov    0x18(%rbp),%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  36:	fc ff df
  39:	48 89 ea             	mov    %rbp,%rdx
  3c:	48 c1 ea 03          	shr    $0x3,%rdx

Reply:
An analysis of the kernel source code reveals that this bug is caused by a race condition between `nci_unregister_device()` and `nci_rx_work()` when `nci_open_device()` is interrupted by a signal.

### Root Cause Analysis
1. When a device is brought up (e.g., via the `NFC_CMD_DEV_UP` netlink command), `nci_open_device()` is called. It sets `NCI_INIT` and sends an `nci_reset_req` command.
2. If a valid reset response is received, `nci_open_device()` proceeds to send `nci_init_req` and waits for its completion using `wait_for_completion_interruptible_timeout()`. The command is queued in `ndev->cmd_q`.
3. If a proprietary response packet (GID = `NCI_GID_PROPRIETARY`) is received during this wait, `nci_rx_work()` processes it. It does not complete the pending request but reaches the end of `nci_rsp_packet()`, where it checks `!skb_queue_empty(&ndev->cmd_q)`. Since `nci_init_req` is still in the queue, this evaluates to true.
4. If `nci_rx_work()` is preempted right after this check, and a signal is delivered to the thread executing `nci_open_device()`, the wait is interrupted (`-ERESTARTSYS`).
5. `nci_open_device()` fails, purges `cmd_q`, and releases `req_lock` without ever setting `NCI_UP`.
6. If the device is then unregistered (e.g., closing `/dev/virtual_nci`), `nci_unregister_device()` calls `nci_close_device()`. Because `NCI_UP` is not set, `nci_close_device()` returns early and **does not flush `rx_wq`**.
7. `nci_unregister_device()` proceeds to call `destroy_workqueue(ndev->cmd_wq)`.
8. `nci_rx_work()` resumes and executes `queue_work(ndev->cmd_wq, &ndev->cmd_work)` on the destroyed workqueue, triggering the warning.

### Reproduction Strategy
To reproduce this issue reliably, we can use the `virtual_ncidev` driver to inject packets and race the device teardown against the interrupted initialization.

1. **Setup**: Open `/dev/virtual_nci` to create a virtual NCI device.
2. **Trigger Initialization**: Spawn a thread that continuously sends the `NFC_CMD_DEV_UP` netlink command to bring the device up.
3. **Inject Packets**: In the main thread, continuously write the following packets to the `/dev/virtual_nci` file descriptor:
   - A valid reset response: `\x40\x00\x03\x00\x10\x00` (MT=2, GID=0, OID=0, Len=3, Status=OK, NCI_Ver=1.0).
   - A proprietary response: `\x4f\x00\x00` (MT=2, GID=0xf, OID=0, Len=0).
4. **Interrupt and Teardown**: 
   - Continuously send a signal (e.g., `SIGUSR1`) to the thread executing `NFC_CMD_DEV_UP` to interrupt the `wait_for_completion_interruptible_timeout()`.
   - Close the `/dev/virtual_nci` file descriptor to trigger `nci_unregister_device()`.
5. **Loop**: Reopen the device and repeat the process in a tight loop to hit the race window between the `!skb_queue_empty()` check and the `queue_work()` call in `nci_rsp_packet()`.

5/2 2026/10/01 05:38 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 4231
							output: 41
							thoughts: 325
						

Thoughts:
**The Conundrum of a Workqueue Warning**

I'm wrestling with a rather vexing workqueue warning I've encountered in `kernel/workqueue.c`, specifically within the `__queue_work` function, around line 2352 (or possibly 2351). The message is quite direct: "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq". My immediate understanding of this type of warning is that I'm attempting to schedule a task onto a workqueue that is either in the process of being torn down, or has already been completely destroyed. This is, of course, a classic race condition scenario, and something I absolutely need to prevent.

However, as I delve deeper into the `__queue_work` function's code, I notice a rather explicit safeguard:

```c
	if (unlikely(wq->flags & __WQ_DESTROYING)) {
		pr_warn("workqueue: cannot queue %ps on wq %s\n",
			work->func, wq->name);
		WARN_ON_ONCE(1);
		return;
	}
```

This code snippet *is* precisely the source of the warning I'm seeing. It's designed to catch this exact situation. So, the warning isn't just a symptom; it's the *mechanism* that's firing. This tells me the `__WQ_DESTROYING` flag is indeed set on the workqueue when I'm trying to queue the work.

Now, I can identify the specific players in this drama: the workqueue in question is `nfc2_nci_cmd_wq`, which I know is internally represented by `ndev->cmd_wq`. The work item that's failing to be queued is `nci_cmd_work`, which corresponds to `ndev->cmd_work`.

My immediate concern is the call stack leading to this problematic situation. I can trace it back: the call originates from `nci_rsp_packet`, which in turn calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)`. But before `nci_rsp_packet` itself is invoked, it's being triggered by `nci_rx_work`. This sequence suggests that within the context of handling an incoming NCI response, I'm trying to schedule another NCI command work item, but the underlying command workqueue is no longer in a valid state.

My next logical step, therefore, is to meticulously examine the `nci_rsp_packet` function located in `net/nfc/nci/rsp.c`. I need to understand the lifecycle of `ndev->cmd_wq` and how it might be getting destroyed *before* `nci_rsp_packet` finishes its execution or, perhaps more likely, how `nci_rsp_packet` is being invoked in a window where the workqueue is already undergoing destruction. This is where the root cause of this race condition must lie.


6/2 2026/10/01 05:38 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/rsp.c Name:nci_rsp_packet]

Results:
map[SourceCode: 381:	void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)
 382:	{
 383:		__u16 rsp_opcode = nci_opcode(skb->data);
 384:	
 385:		/* we got a rsp, stop the cmd timer */
 386:		timer_delete(&ndev->cmd_timer);
 387:	
 388:		pr_debug("NCI RX: MT=rsp, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n",
 389:			 nci_pbf(skb->data),
 390:			 nci_opcode_gid(rsp_opcode),
 391:			 nci_opcode_oid(rsp_opcode),
 392:			 nci_plen(skb->data));
 393:	
 394:		/* strip the nci control header */
 395:		skb_pull(skb, NCI_CTRL_HDR_SIZE);
 396:	
 397:		if (nci_opcode_gid(rsp_opcode) == NCI_GID_PROPRIETARY) {
 398:			if (nci_prop_rsp_packet(ndev, rsp_opcode, skb) == -ENOTSUPP) {
 399:				pr_err("unsupported rsp opcode 0x%x\n",
 400:				       rsp_opcode);
 401:			}
 402:	
 403:			goto end;
 404:		}
 405:	
 406:		switch (rsp_opcode) {
 407:		case NCI_OP_CORE_RESET_RSP:
 408:			nci_core_reset_rsp_packet(ndev, skb);
 409:			break;
 410:	
 411:		case NCI_OP_CORE_INIT_RSP:
 412:			nci_core_init_rsp_packet(ndev, skb);
 413:			break;
 414:	
 415:		case NCI_OP_CORE_SET_CONFIG_RSP:
 416:			nci_core_set_config_rsp_packet(ndev, skb);
 417:			break;
 418:	
 419:		case NCI_OP_CORE_CONN_CREATE_RSP:
 420:			nci_core_conn_create_rsp_packet(ndev, skb);
 421:			break;
 422:	
 423:		case NCI_OP_CORE_CONN_CLOSE_RSP:
 424:			nci_core_conn_close_rsp_packet(ndev, skb);
 425:			break;
 426:	
 427:		case NCI_OP_RF_DISCOVER_MAP_RSP:
 428:			nci_rf_disc_map_rsp_packet(ndev, skb);
 429:			break;
 430:	
 431:		case NCI_OP_RF_DISCOVER_RSP:
 432:			nci_rf_disc_rsp_packet(ndev, skb);
 433:			break;
 434:	
 435:		case NCI_OP_RF_DISCOVER_SELECT_RSP:
 436:			nci_rf_disc_select_rsp_packet(ndev, skb);
 437:			break;
 438:	
 439:		case NCI_OP_RF_DEACTIVATE_RSP:
 440:			nci_rf_deactivate_rsp_packet(ndev, skb);
 441:			break;
 442:	
 443:		case NCI_OP_NFCEE_DISCOVER_RSP:
 444:			nci_nfcee_discover_rsp_packet(ndev, skb);
 445:			break;
 446:	
 447:		case NCI_OP_NFCEE_MODE_SET_RSP:
 448:			nci_nfcee_mode_set_rsp_packet(ndev, skb);
 449:			break;
 450:	
 451:		default:
 452:			pr_err("unknown rsp opcode 0x%x\n", rsp_opcode);
 453:			break;
 454:		}
 455:	
 456:		nci_core_rsp_packet(ndev, rsp_opcode, skb);
 457:	end:
 458:		kfree_skb(skb);
 459:	
 460:		/* trigger the next cmd */
 461:		atomic_set(&ndev->cmd_cnt, 1);
 462:		if (!skb_queue_empty(&ndev->cmd_q))
 463:			queue_work(ndev->cmd_wq, &ndev->cmd_work);
 464:	}
 SourceFile:net/nfc/nci/rsp.c]

7/2 2026/10/01 05:38 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 5958
							output: 41
							thoughts: 89
						

Thoughts:
**My Thought Process**

Ah, I've spotted a potential issue here. The warning is pointing directly to line 463, specifically the `queue_work(ndev->cmd_wq, &ndev->cmd_work);` call. This immediately tells me that `ndev->cmd_wq` is being destroyed *while* it's still in use, or at least while there's pending work. This is a classic race condition waiting to happen, or a logic error where resources aren't being managed in the correct order.

My next step is to figure out *when* `ndev->cmd_wq` actually gets destroyed. To do that, I need to trace its lifecycle. The most logical place to look for device cleanup, especially related to workqueues, would be in functions like `nci_free_device` or any other deinitialization routines that would be called when the NFC device (`ndev`) is being torn down or released. I'll be digging into `net/nfc/nci/core.c` for this, as that's where I'd expect to find the core NFC device management logic. I need to find the code path that leads to `ndev->cmd_wq` being invalidated, and then compare that with the point where this `queue_work` call occurs. My hunch is that the workqueue is being freed before all outstanding work items associated with it are fully processed or cancelled.


8/2 2026/10/01 05:38 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_free_device]

Results:
map[SourceCode:1229:	/**
1230:	 * nci_free_device - deallocate nci device
1231:	 *
1232:	 * @ndev: The nci device to deallocate
1233:	 */
1234:	void nci_free_device(struct nci_dev *ndev)
1235:	{
1236:		nfc_free_device(ndev->nfc_dev);
1237:		nci_hci_deallocate(ndev);
1238:	
1239:		/* drop partial rx data packet if present */
1240:		if (ndev->rx_data_reassembly)
1241:			kfree_skb(ndev->rx_data_reassembly);
1242:		kfree(ndev);
1243:	}
 SourceFile:net/nfc/nci/core.c]

9/2 2026/10/01 05:38 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 6323
							output: 36
							thoughts: 44
						

Thoughts:
**My Realization and Investigation**

Huh, I just realized something about `nci_free_device`. It seems to be freeing up the device's resources, but I'm not entirely convinced it's handling the workqueue properly. My gut feeling is that it might be leaving a workqueue hanging around, which could lead to resource leaks or other subtle issues down the line.

To confirm my suspicion, I'm going to dig into the `net/nfc/nci/core.c` file. Specifically, I'll be looking for any mentions of `destroy_workqueue` within that file. My goal is to see if, and where, the workqueue is being explicitly destroyed. If I don't find `destroy_workqueue` being called in conjunction with `nci_free_device`, then I'll know I need to address this. This is a critical detail for proper resource management in this driver.


10/2 2026/10/01 05:38 tool grepper
0m Args:
map[Expression:destroy_workqueue.*cmd_wq PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=1251=int nci_register_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-1305-destroy_cmd_wq_exit:
net/nfc/nci/core.c:1306:	destroy_workqueue(ndev->cmd_wq);
net/nfc/nci/core.c-1307-
--
net/nfc/nci/core.c=1318=void nci_unregister_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-1331-
net/nfc/nci/core.c:1332:	destroy_workqueue(ndev->cmd_wq);
net/nfc/nci/core.c-1333-	destroy_workqueue(ndev->rx_wq);
]

11/2 2026/10/01 05:38 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 6630
							output: 41
							thoughts: 28
						

Thoughts:
**My Understanding of Device Unregistration**

As I delve into the process of unregistering a network device, a critical aspect that immediately captures my attention is the fate of the work queues associated with that device. Specifically, when the `nci_unregister_device` function is invoked, I recognize that it fundamentally impacts two key work queues: `ndev->cmd_wq` and `ndev->rx_wq`. My understanding is that this function is responsible for their destruction. This implies that any pending work within these queues will likely be terminated, and the queues themselves will be deallocated, effectively cleaning up resources tied to the device's operational state. This is a crucial cleanup step to ensure a proper and safe removal of the device from the system, preventing potential resource leaks or dangling pointers.


12/2 2026/10/01 05:38 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_unregister_device]

Results:
map[SourceCode:1313:	/**
1314:	 * nci_unregister_device - unregister a nci device in the nfc subsystem
1315:	 *
1316:	 * @ndev: The nci device to unregister
1317:	 */
1318:	void nci_unregister_device(struct nci_dev *ndev)
1319:	{
1320:		struct nci_conn_info *conn_info, *n;
1321:	
1322:		nfc_unregister_rfkill(ndev->nfc_dev);
1323:	
1324:		/* This set_bit is not protected with specialized barrier,
1325:		 * However, it is fine because the mutex_lock(&ndev->req_lock);
1326:		 * in nci_close_device() will help to emit one.
1327:		 */
1328:		set_bit(NCI_UNREG, &ndev->flags);
1329:	
1330:		nci_close_device(ndev);
1331:	
1332:		destroy_workqueue(ndev->cmd_wq);
1333:		destroy_workqueue(ndev->rx_wq);
1334:		destroy_workqueue(ndev->tx_wq);
1335:	
1336:		list_for_each_entry_safe(conn_info, n, &ndev->conn_info_list, list) {
1337:			list_del(&conn_info->list);
1338:			/* conn_info is allocated with devm_kzalloc */
1339:		}
1340:	
1341:		nfc_remove_device(ndev->nfc_dev);
1342:	}
 SourceFile:net/nfc/nci/core.c]

13/2 2026/10/01 05:38 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7184
							output: 41
							thoughts: 168
						

Thoughts:
**My Thought Process Regarding Potential Race Condition in `nci_unregister_device`**

Okay, I've just spotted something that immediately triggered my alarm bells regarding potential race conditions. My primary concern is centered around the destruction order of workqueues within the `nci_unregister_device` function.

Specifically, I'm observing that `nci_unregister_device` first calls `destroy_workqueue(ndev->cmd_wq)` and *then* proceeds to call `destroy_workqueue(ndev->rx_wq)`. This sequence immediately presents a critical dilemma in my mind: what happens if `ndev->rx_wq` is still actively processing work *after* `ndev->cmd_wq` has begun its destruction process?

My hypothesis is that while `ndev->cmd_wq` is being torn down, `ndev->rx_wq` might still be executing its associated work handler, `nci_rx_work`. Now, the real danger arises because `nci_rx_work` is designed to process incoming packets. And, crucially, as part of this packet processing, it calls `nci_rsp_packet`. The problematic part of `nci_rsp_packet` is that it, in turn, calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.

So, the scenario I'm envisioning is:
1. `nci_unregister_device` starts.
2. It calls `destroy_workqueue(ndev->cmd_wq)`.
3. *Concurrently*, `ndev->rx_wq` is still running and executes `nci_rx_work`.
4. `nci_rx_work` processes a packet and calls `nci_rsp_packet`.
5. `nci_rsp_packet` attempts to queue a work item (`ndev->cmd_work`) onto `ndev->cmd_wq`.

This is where the race condition becomes apparent: we are attempting to queue work onto a workqueue that is already in the process of being destroyed. This is a classic recipe for disaster, potentially leading to crashes, data corruption, or unpredictable behavior as the kernel tries to manage a workqueue that's being taken apart while something else is trying to use it.

To validate this concern and understand the full scope of the problem, my immediate next step is to meticulously examine the implementation of `nci_close_device`. I need to see if this function presents a similar issue or if it offers any clues as to how such race conditions are or should be handled in this context.


14/2 2026/10/01 05:39 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_close_device]

Results:
map[SourceCode: 554:	static int nci_close_device(struct nci_dev *ndev)
 555:	{
 556:		nci_req_cancel(ndev, ENODEV);
 557:	
 558:		/* This mutex needs to be held as a barrier for
 559:		 * caller nci_unregister_device
 560:		 */
 561:		mutex_lock(&ndev->req_lock);
 562:	
 563:		if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
 564:			/* Need to flush the cmd wq in case
 565:			 * there is a queued/running cmd_work
 566:			 */
 567:			flush_workqueue(ndev->cmd_wq);
 568:			timer_delete_sync(&ndev->cmd_timer);
 569:			timer_delete_sync(&ndev->data_timer);
 570:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 571:				nci_data_exchange_complete(ndev, NULL,
 572:							   ndev->cur_conn_id,
 573:							   -ENODEV);
 574:			mutex_unlock(&ndev->req_lock);
 575:			return 0;
 576:		}
 577:	
 578:		/* Drop RX and TX queues */
 579:		skb_queue_purge(&ndev->rx_q);
 580:		skb_queue_purge(&ndev->tx_q);
 581:	
 582:		/* Flush TX wq, RX wq flush can't be under the lock */
 583:		flush_workqueue(ndev->tx_wq);
 584:	
 585:		/* Reset device */
 586:		skb_queue_purge(&ndev->cmd_q);
 587:		atomic_set(&ndev->cmd_cnt, 1);
 588:	
 589:		set_bit(NCI_INIT, &ndev->flags);
 590:		__nci_request(ndev, nci_reset_req, (void *)0,
 591:			      msecs_to_jiffies(NCI_RESET_TIMEOUT));
 592:	
 593:		/* After this point our queues are empty
 594:		 * rx work may be running but will see that NCI_UP was cleared
 595:		 */
 596:		ndev->ops->close(ndev);
 597:	
 598:		clear_bit(NCI_INIT, &ndev->flags);
 599:	
 600:		/* Flush cmd and tx wq */
 601:		flush_workqueue(ndev->cmd_wq);
 602:	
 603:		timer_delete_sync(&ndev->cmd_timer);
 604:		timer_delete_sync(&ndev->data_timer);
 605:	
 606:		if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 607:			nci_data_exchange_complete(ndev, NULL, ndev->cur_conn_id,
 608:						   -ENODEV);
 609:	
 610:		/* Clear flags except NCI_UNREG */
 611:		ndev->flags &= BIT(NCI_UNREG);
 612:	
 613:		mutex_unlock(&ndev->req_lock);
 614:	
 615:		/* rx_work may take req_lock via nci_deactivate_target */
 616:		flush_workqueue(ndev->rx_wq);
 617:	
 618:		return 0;
 619:	}
 SourceFile:net/nfc/nci/core.c]

15/2 2026/10/01 05:39 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8444
							output: 41
							thoughts: 363
						

Thoughts:
**My Thought Process Regarding NCI Device Shutdown and Workqueue Synchronization**

It seems I've stumbled upon a potential race condition during the NCI device unregistration process, specifically when the `NCI_UP` flag isn't set. My initial understanding was that `nci_close_device` would always ensure that the `rx_wq` (receive workqueue) was flushed, but upon closer inspection of the code, that's not the case.

Here's how my thinking unfolded:

1.  **Initial Observation:** I first noted that `nci_close_device` is intended to flush the `rx_wq`. This is a crucial step for ensuring a clean shutdown, preventing any pending receive operations from interfering with subsequent cleanup.

2.  **Deeper Code Analysis:** However, I then examined the conditional logic within `nci_close_device`. I saw this snippet:

    ```c
    if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
        /* Need to flush the cmd wq in case
         * there is a queued/running cmd_work
         */
        flush_workqueue(ndev->cmd_wq);
        timer_delete_sync(&ndev->cmd_timer);
        timer_delete_sync(&ndev->data_timer);
        if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
            nci_data_exchange_complete(ndev, NULL,
                                       ndev->cur_conn_id,
                                       -ENODEV);
        mutex_unlock(&ndev->req_lock);
        return 0;
    }
    ```

3.  **The Crucial Revelation:** My attention was immediately drawn to the `if (!test_and_clear_bit(NCI_UP, &ndev->flags))` condition. If the `NCI_UP` flag is *not* set when `nci_close_device` is entered, the function proceeds down this `if` block. Critically, **this block *does not* contain any explicit call to `flush_workqueue(ndev->rx_wq)`**. The comment even explicitly states the purpose is to flush the `cmd_wq`. This is the point where my initial assumption breaks down.

4.  **Identifying the Problem Scenario:** This leads me to a specific, problematic scenario: what happens if `nci_unregister_device` is called precisely when the `NCI_UP` flag is *not* set? In this situation, `nci_close_device` would return prematurely (from its perspective) without flushing the `rx_wq`.

5.  **The Domino Effect:** The `nci_unregister_device` function, after calling `nci_close_device`, proceeds to call `destroy_workqueue(ndev->cmd_wq)` and subsequently `destroy_workqueue(ndev->rx_wq)`.

6.  **The Race Condition:** And here lies the core of my concern: if `rx_wq` *was not* flushed by `nci_close_device` (because `NCI_UP` was false), and it still has pending work, there's a possibility that this pending work might attempt to queue new tasks onto `cmd_wq`. However, `cmd_wq` is in the process of being destroyed by `nci_unregister_device` at this very moment. This creates a direct race condition, where work intended for the `cmd_wq` might be dispatched to a workqueue that is no longer valid or is being torn down.

7.  **Next Steps for Investigation:** To fully understand the implications, I need to delve into the specifics of what `nci_rx_work` does. I need to determine if `nci_rx_work` itself can enqueue work onto `cmd_wq` under any circumstances, particularly during the unregistration path when `NCI_UP` is not set. This is the logical next step to confirm and potentially mitigate this identified race condition.


16/2 2026/10/01 05:39 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_rx_work]

Results:
map[SourceCode:1559:	static void nci_rx_work(struct work_struct *work)
1560:	{
1561:		struct nci_dev *ndev = container_of(work, struct nci_dev, rx_work);
1562:		struct sk_buff *skb;
1563:	
1564:		for (; (skb = skb_dequeue(&ndev->rx_q)); kcov_remote_stop()) {
1565:			kcov_remote_start_common(skb_get_kcov_handle(skb));
1566:	
1567:			/* Send copy to sniffer */
1568:			nfc_send_to_raw_sock(ndev->nfc_dev, skb,
1569:					     RAW_PAYLOAD_NCI, NFC_DIRECTION_RX);
1570:	
1571:			if (!nci_valid_size(skb)) {
1572:				kfree_skb(skb);
1573:				continue;
1574:			}
1575:	
1576:			/* Process frame */
1577:			switch (nci_mt(skb->data)) {
1578:			case NCI_MT_RSP_PKT:
1579:				nci_rsp_packet(ndev, skb);
1580:				break;
1581:	
1582:			case NCI_MT_NTF_PKT:
1583:				nci_ntf_packet(ndev, skb);
1584:				break;
1585:	
1586:			case NCI_MT_DATA_PKT:
1587:				nci_rx_data_packet(ndev, skb);
1588:				break;
1589:	
1590:			default:
1591:				pr_err("unknown MT 0x%x\n", nci_mt(skb->data));
1592:				kfree_skb(skb);
1593:				break;
1594:			}
1595:		}
1596:	
1597:		/* check if a data exchange timeout has occurred */
1598:		if (test_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags)) {
1599:			/* complete the data exchange transaction, if exists */
1600:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
1601:				nci_data_exchange_complete(ndev, NULL,
1602:							   ndev->cur_conn_id,
1603:							   -ETIMEDOUT);
1604:	
1605:			clear_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags);
1606:		}
1607:	}
 SourceFile:net/nfc/nci/core.c]

17/2 2026/10/01 05:39 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9627
							output: 41
							thoughts: 464
						

Thoughts:
**The Nuances of NCI Device Shutdown and Packet Handling**

My initial thought process was focused on the dequeueing operation within `nci_rx_work` from `ndev->rx_q`. I was operating under the assumption that if the `NCI_UP` flag wasn't set, `nci_close_device` would explicitly purge the `ndev->rx_q`. However, a closer examination of the code revealed a critical misunderstanding on my part.

Upon re-evaluating the `nci_close_device` function when `NCI_UP` is not set, I realized that it *does not* purge the `rx_q` and, importantly, it *does not* flush the `rx_wq`. Instead, it proceeds to flush the `cmd_wq` and delete timers, but the `rx_wq` and its associated queue are left untouched in this specific early return path.

This leads to a potentially problematic scenario. If the `rx_wq` is active, or if there are still packets in the `rx_q`, these can be processed. When `rx_wq` processes a packet, it can call `nci_rsp_packet`, which in turn queues work onto `ndev->cmd_wq` via `queue_work`.

Now, consider the context of `nci_unregister_device`. This function calls `nci_close_device`, which, as I just noted, can return early without purging `rx_q` or flushing `rx_wq`. Following this early return, `nci_unregister_device` proceeds to destroy the `cmd_wq`. The critical concern here is that while `cmd_wq` is in the process of being destroyed, the `rx_wq` might still be running and could be attempting to queue work onto the now-terminating `cmd_wq`.

This brings me back to a fundamental question: How can the `NCI_UP` flag be unset, yet the `rx_wq` is still actively running or contains pending packets in its queue? My understanding of the flow is that `nci_recv_frame` is responsible for queueing packets into `rx_q` and then scheduling the `rx_work` on `rx_wq`. Therefore, the presence of pending work in `rx_q` or an active `rx_wq` when `NCI_UP` is not set strongly suggests a race condition or an incomplete cleanup during the device shutdown sequence.


18/2 2026/10/01 05:39 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_recv_frame]

Results:
map[SourceCode:1345:	/**
1346:	 * nci_recv_frame - receive frame from NCI drivers
1347:	 *
1348:	 * @ndev: The nci device
1349:	 * @skb: The sk_buff to receive
1350:	 */
1351:	int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb)
1352:	{
1353:		pr_debug("len %d\n", skb->len);
1354:	
1355:		if (!ndev || (!test_bit(NCI_UP, &ndev->flags) &&
1356:		    !test_bit(NCI_INIT, &ndev->flags))) {
1357:			kfree_skb(skb);
1358:			return -ENXIO;
1359:		}
1360:	
1361:		/* Queue frame for rx worker thread */
1362:		skb_queue_tail(&ndev->rx_q, skb);
1363:		queue_work(ndev->rx_wq, &ndev->rx_work);
1364:	
1365:		return 0;
1366:	}
 SourceFile:net/nfc/nci/core.c]

19/2 2026/10/01 05:39 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10483
							output: 41
							thoughts: 104
						

Thoughts:
**My Thought Process Regarding `nci_recv_frame` and Device States**

I've been looking at the `nci_recv_frame` function, and I've noticed something quite interesting about its initial checks. Specifically, it evaluates `!test_bit(NCI_UP, &ndev->flags) && !test_bit(NCI_INIT, &ndev->flags)`. My immediate thought is, "Ah, this is a crucial condition!" The logical implication here is that if the `NCI_INIT` flag *is* set, then the condition `!test_bit(NCI_INIT, &ndev->flags)` evaluates to false. Consequently, the entire `&&` expression becomes false, and the frame reception is *allowed*, even if the `NCI_UP` flag is *not* set.

This is a significant detail. It means that the device doesn't necessarily need to be in the fully "up" state (`NCI_UP` set) to be able to receive frames. The `NCI_INIT` flag appears to be a lower-level, perhaps "initializing" or "ready for basic operations" state, which is sufficient for frame reception in certain scenarios.

My next logical step in this line of reasoning is to understand precisely *when* this `NCI_INIT` flag is set. This is critical for comprehending the lifecycle and operational modes of the NCI device. I've traced it back, and it appears to be set within the `nci_open_device` function. Furthermore, I've also observed that it is unset within the `nci_close_device` function. This confirms my initial suspicion: `NCI_INIT` is indeed tied to the device's initialization and de-initialization phases. This implies that even during the process of opening or closing the device, there might be a window where frames can be received, or at least, the mechanism for receiving them is enabled, independent of the higher-level `NCI_UP` state.


20/2 2026/10/01 05:39 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_open_device]

Results:
map[SourceCode: 474:	static int nci_open_device(struct nci_dev *ndev)
 475:	{
 476:		int rc = 0;
 477:	
 478:		mutex_lock(&ndev->req_lock);
 479:	
 480:		if (test_bit(NCI_UNREG, &ndev->flags)) {
 481:			rc = -ENODEV;
 482:			goto done;
 483:		}
 484:	
 485:		if (test_bit(NCI_UP, &ndev->flags)) {
 486:			rc = -EALREADY;
 487:			goto done;
 488:		}
 489:	
 490:		if (ndev->ops->open(ndev)) {
 491:			rc = -EIO;
 492:			goto done;
 493:		}
 494:	
 495:		atomic_set(&ndev->cmd_cnt, 1);
 496:	
 497:		set_bit(NCI_INIT, &ndev->flags);
 498:	
 499:		if (ndev->ops->init)
 500:			rc = ndev->ops->init(ndev);
 501:	
 502:		if (!rc) {
 503:			rc = __nci_request(ndev, nci_reset_req, (void *)0,
 504:					   msecs_to_jiffies(NCI_RESET_TIMEOUT));
 505:		}
 506:	
 507:		if (!rc && ndev->ops->setup) {
 508:			rc = ndev->ops->setup(ndev);
 509:		}
 510:	
 511:		if (!rc) {
 512:			struct nci_core_init_v2_cmd nci_init_v2_cmd = {
 513:				.feature1 = NCI_FEATURE_DISABLE,
 514:				.feature2 = NCI_FEATURE_DISABLE
 515:			};
 516:			const void *opt = NULL;
 517:	
 518:			if (ndev->nci_ver & NCI_VER_2_MASK)
 519:				opt = &nci_init_v2_cmd;
 520:	
 521:			rc = __nci_request(ndev, nci_init_req, opt,
 522:					   msecs_to_jiffies(NCI_INIT_TIMEOUT));
 523:		}
 524:	
 525:		if (!rc && ndev->ops->post_setup)
 526:			rc = ndev->ops->post_setup(ndev);
 527:	
 528:		if (!rc) {
 529:			rc = __nci_request(ndev, nci_init_complete_req, (void *)0,
 530:					   msecs_to_jiffies(NCI_INIT_TIMEOUT));
 531:		}
 532:	
 533:		clear_bit(NCI_INIT, &ndev->flags);
 534:	
 535:		if (!rc) {
 536:			set_bit(NCI_UP, &ndev->flags);
 537:			nci_clear_target_list(ndev);
 538:			atomic_set(&ndev->state, NCI_IDLE);
 539:		} else {
 540:			/* Init failed, cleanup */
 541:			skb_queue_purge(&ndev->cmd_q);
 542:			skb_queue_purge(&ndev->rx_q);
 543:			skb_queue_purge(&ndev->tx_q);
 544:	
 545:			ndev->ops->close(ndev);
 546:			ndev->flags &= BIT(NCI_UNREG);
 547:		}
 548:	
 549:	done:
 550:		mutex_unlock(&ndev->req_lock);
 551:		return rc;
 552:	}
 SourceFile:net/nfc/nci/core.c]

21/2 2026/10/01 05:39 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11790
							output: 41
							thoughts: 2072
						

Thoughts:
**A Deep Dive into NCI Device State Transitions and Potential Race Conditions**

I've been tracing the lifecycle of the NCI device object, specifically focusing on the interaction between `nci_open_device`, `nci_close_device`, and `nci_unregister_device`, and I've uncovered what I believe to be a significant race condition. My thought process has been a bit of a winding road, starting with the basic flow and then digging deeper as inconsistencies emerged.

Initially, I observed the standard initialization path in `nci_open_device`: it sets `NCI_INIT`, then calls `__nci_request`. If this request fails, `NCI_INIT` is cleared. A failure in `nci_open_device` itself means `NCI_UP` won't be set. This seemed straightforward enough.

Then, my attention was drawn to `nci_close_device` and its surprising behavior of *also* setting `NCI_INIT`. This seemed counterintuitive at first glance – closing a device and initializing it? But digging into the code, I realized this `NCI_INIT` setting in `nci_close_device` only occurs *if* `NCI_UP` was previously set. If `NCI_UP` wasn't set, `nci_close_device` simply flushes `cmd_wq` and exits. This is where the first anomaly surfaced for me: if `NCI_UP` isn't set, `nci_close_device` doesn't flush `rx_wq`. My immediate question was: if `NCI_UP` is not set, how could `rx_wq` even be active?

This led me to consider how data is received. I recalled that drivers call `nci_recv_frame` asynchronously when they get data. If `nci_recv_frame` is called while `NCI_UP` is not set, it typically drops the incoming data. However, it *doesn't* drop it if `NCI_INIT` *is* set. And `NCI_INIT` is set during `nci_open_device`.

This brought me to a critical scenario: what happens if `nci_unregister_device` is called concurrently with `nci_open_device`? I noted that both functions acquire `ndev->req_lock`. This means `nci_unregister_device`, which calls `nci_close_device`, will wait for `req_lock` if `nci_open_device` currently holds it.

My focus then shifted back to the failure path within `nci_open_device`. If `nci_open_device` fails, it clears `NCI_INIT` and purges `rx_q`. Crucially, it *doesn't* flush `rx_wq`. This is a key observation. If `rx_wq` is still running, it might have already dequeued an `skb` from `rx_q` before `nci_open_device` failed and purged the queue.

So, consider this sequence:
1.  `nci_open_device` is called, setting `NCI_INIT`.
2.  It sends a reset request. The driver receives a response and calls `nci_recv_frame`.
3.  `nci_recv_frame` sees `NCI_INIT` is set, so it enqueues the `skb` to `rx_q` and schedules `rx_work` on `rx_wq`.
4.  `rx_work` starts processing the `skb`.
5.  Meanwhile, `nci_open_device` fails for some reason (e.g., timeout on the reset request).
6.  `nci_open_device` clears `NCI_INIT`.
7.  It purges `rx_q` (but the `skb` is already out).
8.  It calls `ndev->ops->close(ndev)`.
9.  It returns an error. At this point, `NCI_UP` is *not* set.

Now, `nci_unregister_device` is called.
1.  `nci_unregister_device` calls `nci_close_device`.
2.  `nci_close_device` checks `NCI_UP`. It's not set, so it enters the `if (!test_and_clear_bit(NCI_UP, &ndev->flags))` block.
3.  Inside this block, it flushes `cmd_wq` and deletes timers. Importantly, it *does not* flush `rx_wq`.
4.  `nci_close_device` returns.
5.  `nci_unregister_device` proceeds to destroy `cmd_wq` (`destroy_workqueue(ndev->cmd_wq)`).

Here's the critical problem: the `rx_wq` thread is still running `nci_rx_work`. This work item, processing the `skb` that was dequeued before `nci_open_device` failed, calls `nci_rsp_packet`.
Inside `nci_rsp_packet`, it attempts to queue the next command work item: `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.

This attempts to queue work onto `cmd_wq` *after* it has been destroyed by `nci_unregister_device`. This is a classic use-after-free scenario and a clear race condition.

I re-examined `nci_rsp_packet` to ensure I wasn't missing something. It indeed checks `!skb_queue_empty(&ndev->cmd_q)` before queuing `cmd_work`. I then realized that `nci_open_device` *does* purge `cmd_q` in its failure path: `skb_queue_purge(&ndev->cmd_q)`. This would mean `cmd_q` should be empty. So, how could `nci_rsp_packet` ever queue work?

This led me to reconsider the initial assumption. What if `nci_open_device` *succeeded* initially, so `NCI_UP` *was* set? Then `nci_unregister_device` is called.
1.  `nci_unregister_device` calls `nci_close_device`.
2.  `nci_close_device` sees `NCI_UP` is set, clears it, purges `rx_q` and `tx_q`.
3.  It then sets `NCI_INIT` and sends another reset request via `__nci_request`. This adds a command to `cmd_q`.
4.  The response comes in, `nci_recv_frame` queues to `rx_q` and `rx_wq`.
5.  `rx_work` dequeues the response.
6.  `__nci_request` finishes.
7.  `nci_close_device` clears `NCI_INIT`.
8.  Crucially, `nci_close_device` then *flushes* `cmd_wq`. It also flushes `rx_wq` in its `if (!test_and_clear_bit(NCI_UP, &ndev->flags))` path (which it would enter if `NCI_UP` was set and then cleared). This implies that `rx_work` *must* complete before `nci_close_device` returns.
9.  If `rx_wq` is flushed, then `nci_unregister_device` destroying `cmd_wq` afterwards would seem safe.

So, the race condition I initially suspected seems to hinge specifically on `nci_open_device` *failing* after `rx_wq` has started processing, but *before* `NCI_UP` is set, and *without* `rx_wq` being flushed. The fact that `nci_open_device` purges `rx_q` but not `rx_wq` in its failure path, combined with `nci_close_device` not flushing `rx_wq` when `NCI_UP` is not set, is the core of the problem. This allows an `rx_work` item to survive the failed `open`, subsequently attempt to queue work on a workqueue (`cmd_wq`) that is being destroyed by `nci_unregister_device`.


22/2 2026/10/01 05:40 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_close_device]

Results:
map[SourceCode: 554:	static int nci_close_device(struct nci_dev *ndev)
 555:	{
 556:		nci_req_cancel(ndev, ENODEV);
 557:	
 558:		/* This mutex needs to be held as a barrier for
 559:		 * caller nci_unregister_device
 560:		 */
 561:		mutex_lock(&ndev->req_lock);
 562:	
 563:		if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
 564:			/* Need to flush the cmd wq in case
 565:			 * there is a queued/running cmd_work
 566:			 */
 567:			flush_workqueue(ndev->cmd_wq);
 568:			timer_delete_sync(&ndev->cmd_timer);
 569:			timer_delete_sync(&ndev->data_timer);
 570:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 571:				nci_data_exchange_complete(ndev, NULL,
 572:							   ndev->cur_conn_id,
 573:							   -ENODEV);
 574:			mutex_unlock(&ndev->req_lock);
 575:			return 0;
 576:		}
 577:	
 578:		/* Drop RX and TX queues */
 579:		skb_queue_purge(&ndev->rx_q);
 580:		skb_queue_purge(&ndev->tx_q);
 581:	
 582:		/* Flush TX wq, RX wq flush can't be under the lock */
 583:		flush_workqueue(ndev->tx_wq);
 584:	
 585:		/* Reset device */
 586:		skb_queue_purge(&ndev->cmd_q);
 587:		atomic_set(&ndev->cmd_cnt, 1);
 588:	
 589:		set_bit(NCI_INIT, &ndev->flags);
 590:		__nci_request(ndev, nci_reset_req, (void *)0,
 591:			      msecs_to_jiffies(NCI_RESET_TIMEOUT));
 592:	
 593:		/* After this point our queues are empty
 594:		 * rx work may be running but will see that NCI_UP was cleared
 595:		 */
 596:		ndev->ops->close(ndev);
 597:	
 598:		clear_bit(NCI_INIT, &ndev->flags);
 599:	
 600:		/* Flush cmd and tx wq */
 601:		flush_workqueue(ndev->cmd_wq);
 602:	
 603:		timer_delete_sync(&ndev->cmd_timer);
 604:		timer_delete_sync(&ndev->data_timer);
 605:	
 606:		if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 607:			nci_data_exchange_complete(ndev, NULL, ndev->cur_conn_id,
 608:						   -ENODEV);
 609:	
 610:		/* Clear flags except NCI_UNREG */
 611:		ndev->flags &= BIT(NCI_UNREG);
 612:	
 613:		mutex_unlock(&ndev->req_lock);
 614:	
 615:		/* rx_work may take req_lock via nci_deactivate_target */
 616:		flush_workqueue(ndev->rx_wq);
 617:	
 618:		return 0;
 619:	}
 SourceFile:net/nfc/nci/core.c]

23/2 2026/10/01 05:40 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14954
							output: 62
							thoughts: 1539
						

Thoughts:
**A Curious Oversight in Workqueue Flushing During Device Unregistration**

I've been pondering a specific interaction within our NCI (Near Field Communication Interface) driver, and a potential race condition has surfaced. It revolves around the `flush_workqueue(ndev->rx_wq);` call within `nci_unregister_device`. My initial observation is that this critical flushing operation is positioned *after* the `mutex_unlock(&ndev->req_lock);`. This immediately raised a flag for me.

My line of thought then turned to the conditional execution path: `if (!test_and_clear_bit(NCI_UP, &ndev->flags))`. If the `NCI_UP` flag *wasn't* set when `nci_unregister_device` is entered, the function returns early (returning 0) *without* executing the `flush_workqueue(ndev->rx_wq);` call. This is the crux of the problem: the `rx_wq` is *not* flushed when `NCI_UP` is absent.

The subsequent code in `nci_unregister_device` proceeds to destroy `ndev->cmd_wq`. Now, here's the potential danger: if `rx_wq` is still active and has work items queued, and if that work item's processing eventually leads to queuing work onto `cmd_wq` (which it seems capable of, as I'll elaborate), we could have a scenario where work is being queued onto a workqueue that is in the process of being destroyed. This is a recipe for a crash.

The immediate question then became: "How could `cmd_wq` possibly have work queued if `NCI_UP` is not set, especially if `nci_unregister_device` is being called?" I started tracing back the potential flow.

Consider a scenario where `nci_open_device` is called. This function, as I recall, sets the `NCI_INIT` flag. It then proceeds to call `__nci_request` with `nci_reset_req`. This action queues a command onto `ndev->cmd_q` and subsequently queues `ndev->cmd_work` onto `ndev->cmd_wq`. The `cmd_work` then dispatches the command. Upon receiving a response, the driver invokes `nci_recv_frame`. Because `NCI_INIT` is still set at this point, `nci_recv_frame` queues the received packet onto `ndev->rx_q` and also queues `ndev->rx_work` onto `ndev->rx_wq`. The `rx_work` then starts executing, dequeuing the response.

At this precise moment, let's imagine `nci_open_device` continues executing. It might call `ndev->ops->setup(ndev)`. If this setup operation *fails*, the `nci_open_device` function would then enter an `else` block for cleanup. This cleanup includes `skb_queue_purge(&ndev->cmd_q);`. So, in this failure path, `cmd_q` *is* emptied. Subsequently, `nci_open_device` returns.

If `nci_unregister_device` is then called (perhaps due to the overall failure or a subsequent user request), and if `NCI_UP` was never set (as is the case after the `nci_open_device` failure), the problematic early return occurs, and `rx_wq` isn't flushed.

But this doesn't fully explain how `cmd_wq` could have work if `NCI_UP` isn't set. My thought process then shifted to how a command could be queued *after* `nci_open_device` fails. I considered if user space could directly call `nci_send_cmd`, but I quickly dismissed that as `nci_send_cmd` is an internal function.

My next consideration was whether `nci_recv_frame` could still be called after `nci_open_device` fails. If `nci_open_device` fails, `NCI_INIT` is cleared. If `NCI_INIT` is cleared, `nci_recv_frame` is designed to simply drop incoming packets, so it wouldn't queue anything to `rx_q` or `rx_wq`.

This led me to think about concurrency: what if `nci_unregister_device` is called *concurrently* with `nci_open_device`? However, `nci_unregister_device` typically gets called during device removal, for instance, a USB disconnect. In such a scenario, `nci_unregister_device` calls `nci_close_device`, which acquires `req_lock`. This means `nci_unregister_device` would likely wait for `nci_open_device` to complete, preventing true concurrent execution.

Revisiting `nci_rx_work`, I focused on the `nci_rsp_packet` handler. If `nci_rsp_packet` is called, it has the following logic:
```c
	/* trigger the next cmd */
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```
This confirms that `nci_rsp_packet` can, indeed, queue work onto `cmd_wq` if `ndev->cmd_q` is not empty. The question then becomes, how can `cmd_q` be non-empty if `NCI_UP` is not set, and `nci_open_device` has already failed and purged `cmd_q`?

My thought process then considered a specific timing window: Suppose `nci_open_device` is called, setting `NCI_INIT` and queueing a reset command to `cmd_q`. The `cmd_work` dispatches this command. The response arrives, and `nci_recv_frame` is invoked, queuing work to `rx_q` and `rx_wq`. The `rx_work` begins execution but is somehow delayed *before* it calls `nci_rsp_packet`. During this delay, `__nci_request` (which was waiting for the reset response) times out, returning `-ETIMEDOUT`. `nci_open_device` then proceeds, sees the timeout error (`rc != 0`), and enters its failure path. This path includes `skb_queue_purge(&ndev->cmd_q);`.

Now, the critical moment: If, *after* the purge of `cmd_q` and *before* `rx_work` finally calls `nci_rsp_packet`, another operation (perhaps an internal driver action or even a delayed user-space initiated command that bypasses the `NCI_UP` check *for queuing* but not execution) manages to queue a new command onto `cmd_q`, then `nci_rsp_packet` (when it eventually runs) would find `cmd_q` non-empty and would queue `cmd_work` onto `ndev->cmd_wq`. This work on `cmd_wq` could then attempt to use the destroyed `cmd_wq` when `nci_unregister_device` proceeds to flush `rx_wq` (or rather, fails to flush it and then destroys `cmd_wq`).

This chain of events, while specific, highlights the potential for a race condition where `rx_wq` is not flushed, and then `cmd_wq` is destroyed while there's still pending work that could be triggered by a delayed `rx_work` processing a response that *was* queued before the failure. The placement of `flush_workqueue(ndev->rx_wq);` *before* `mutex_unlock(&ndev->req_lock);` and the lack of a flush when `NCI_UP` is not set are the core vulnerabilities I've identified.


24/2 2026/10/01 05:40 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:0 Name:nci_send_cmd SourceTreePrefix:net/nfc/nci/]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_close_req SourceFile:net/nfc/nci/core.c SourceLine:758] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_create_req SourceFile:net/nfc/nci/core.c SourceLine:712] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_generic_req SourceFile:net/nfc/nci/core.c SourceLine:353] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_init_complete_req SourceFile:net/nfc/nci/core.c SourceLine:212] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_init_req SourceFile:net/nfc/nci/core.c SourceLine:177] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_discover_req SourceFile:net/nfc/nci/core.c SourceLine:676] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_mode_set_req SourceFile:net/nfc/nci/core.c SourceLine:692] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_reset_req SourceFile:net/nfc/nci/core.c SourceLine:167] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_deactivate_req SourceFile:net/nfc/nci/core.c SourceLine:339] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_discover_req SourceFile:net/nfc/nci/core.c SourceLine:297] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_discover_select_req SourceFile:net/nfc/nci/core.c SourceLine:329] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_set_config_req SourceFile:net/nfc/nci/core.c SourceLine:234] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__UNIQUE_ID_addressable_nci_send_cmd_1470 SourceFile:net/nfc/nci/core.c SourceLine:1419] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1419] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1419]] TruncatedOutput:false]

25/2 2026/10/01 05:40 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17174
							output: 60
							thoughts: 1335
						

Thoughts:
**My Thought Process Regarding NCI Command and Response Handling**

I've been dissecting the flow of operations within the NCI driver, specifically focusing on how commands are sent and responses are processed, and I've hit a few critical points that I need to clarify in my own mind.

My initial understanding was that `nci_send_cmd` is the gateway for all commands, originating from functions like `nci_reset_req` and `nci_init_req`. These calls funnel down to `__nci_request`, which then actually enqueues the command to `cmd_q`.

The critical juncture I'm wrestling with is the behavior of `nci_open_device`. If this call times out, it correctly purges `cmd_q`. But what happens when `nci_open_device` *succeeds*?

When `nci_open_device` succeeds, it sets `NCI_UP`. Subsequently, `nci_unregister_device` is invoked, leading to a call to `nci_close_device`. Here's where it gets interesting: `nci_close_device` checks for `NCI_UP`, and if present, it clears this flag. It then proceeds to purge `rx_q` and `tx_q`, flush `tx_wq`, and critically, purges `cmd_q`. It also sets `NCI_INIT` before making a call to `__nci_request` with `nci_reset_req`. This latter call, as expected, queues a command to `cmd_q` and then waits for a response.

When the driver receives this response, `nci_recv_frame` is called. Because `NCI_INIT` is set at this point, `nci_recv_frame` queues the incoming data to both `rx_q` and `rx_wq`. Subsequently, `rx_work` kicks in, dequeues the response, and eventually, `__nci_request` finishes its wait. Following this, `nci_close_device` clears `NCI_INIT` and flushes `cmd_wq` and `rx_wq`.

This leads me to a key insight: if `nci_close_device` is indeed flushing `rx_wq`, it implies that `rx_work` *must* have completed its execution *before* `nci_close_device` returns. Therefore, `nci_unregister_device` would only proceed to destroy `cmd_wq` *after* `rx_wq` has been flushed, meaning `rx_work` cannot be actively running when `cmd_wq` is being destroyed. This seems like a robust safeguard.

However, I'm considering edge cases. What if `nci_close_device` is called, `NCI_UP` is set, and it initiates the `__nci_request(ndev, nci_reset_req, ...)` sequence? The command goes to `cmd_q`, the response arrives, `nci_recv_frame` queues to `rx_q` and `rx_wq`, and `rx_work` begins processing. But what if, at this precise moment, `rx_work` gets blocked on something? The `flush_workqueue(ndev->rx_wq)` call within `nci_close_device` should, in principle, wait for `rx_work` to finish. So, `nci_close_device` shouldn't return until `rx_work` is done, and consequently, `nci_unregister_device` won't destroy the workqueue until `rx_work` has completed. This still feels correct.

Now, for the scenario that's causing me the most concern: what if `nci_unregister_device` is called when `NCI_UP` is *not* set, but `rx_wq` is *still running*? How could `rx_wq` be active without `NCI_UP`? Let's trace this: Suppose `nci_open_device` starts, sets `NCI_INIT`, and sends a `nci_reset_req` command via `__nci_request` to `cmd_q`. The driver gets the response, `nci_recv_frame` queues it to `rx_q` and `rx_wq`, and `rx_work` begins execution, dequeuing the response. But then, *before* `rx_work` can fully process it (specifically, before it calls `nci_rsp_packet`), `__nci_request` times out. Why would it time out if a response was received? Perhaps the response was malformed, not the expected packet, or `rx_work` was significantly delayed.

If `__nci_request` times out, it returns an error (`-ETIMEDOUT`). `nci_open_device` then continues, sees the error, purges `cmd_q`, calls the device's `close` operation, and returns an error itself. Later, `nci_unregister_device` is called. It calls `nci_close_device`. Since `NCI_UP` isn't set, `nci_close_device` simply flushes `cmd_wq` and returns. `nci_unregister_device` then proceeds to destroy `cmd_wq`. At this point, `rx_work` is *still running* and attempts to call `nci_rsp_packet`. This function checks `!skb_queue_empty(&ndev->cmd_q)`. However, `cmd_q` was just purged by `nci_open_device`'s error handling. Therefore, `cmd_q` is empty, and the expected `queue_work` call within `nci_rsp_packet` will *not* be made.

This still leaves me wondering about the possibility of other entities queuing to `cmd_q` concurrently. Could `nci_open_device` fail, but then a *subsequent* `nci_open_device` be initiated? No, because `nci_unregister_device` is already in play. The critical question is: are there any other functions besides `nci_request` (and by extension `__nci_request`) that can populate `cmd_q`? I've been scrutinizing `nci_send_cmd`, and it's the function that directly enqueues to `cmd_q`. The primary caller I've identified for `nci_send_cmd` is, predictably, `nci_request`. This reassures me that the path involving the timed-out `nci_open_device` and the lingering `rx_work` appears to be handled correctly because `cmd_q` would be empty when `nci_rsp_packet` checks it.


26/2 2026/10/01 05:40 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:0 Name:nci_request SourceTreePrefix:net/nfc/nci/]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_activate_target SourceFile:net/nfc/nci/core.c SourceLine:957] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_deactivate_target SourceFile:net/nfc/nci/core.c SourceLine:991] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_dep_link_down SourceFile:net/nfc/nci/core.c SourceLine:1027] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_hci_get_param SourceFile:net/nfc/nci/hci.c SourceLine:638] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_hci_open_pipe SourceFile:net/nfc/nci/hci.c SourceLine:524] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_hci_send_cmd SourceFile:net/nfc/nci/hci.c SourceLine:244] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_hci_set_param SourceFile:net/nfc/nci/hci.c SourceLine:599] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcc_loopback SourceFile:net/nfc/nci/core.c SourceLine:465] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_set_local_general_bytes SourceFile:net/nfc/nci/core.c SourceLine:794] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_set_local_general_bytes SourceFile:net/nfc/nci/core.c SourceLine:801] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_start_poll SourceFile:net/nfc/nci/core.c SourceLine:850] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_start_poll SourceFile:net/nfc/nci/core.c SourceLine:873] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_stop_poll SourceFile:net/nfc/nci/core.c SourceLine:892]] TruncatedOutput:false]

27/2 2026/10/01 05:40 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19057
							output: 41
							thoughts: 626
						

Thoughts:
**My Thought Process Unpacking the `workqueue` Warning**

Right, so I've encountered this `workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq` warning, and I need to trace its root cause. My initial thought was about lock contention: `nci_request` uses `req_lock`, and `nci_unregister_device` eventually calls `nci_close_device`, which *also* grabs `req_lock`. This implies `nci_request` and `nci_close_device` can't run simultaneously. That’s a good observation, but it doesn't directly explain the `workqueue` issue I'm seeing.

Let’s dive deeper into the warning itself. It’s telling me that `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is being invoked when `ndev->cmd_wq` is in the process of being destroyed. That’s a definite no-no.

Now, I need to follow the call stack that leads to this `queue_work` call. I see that `nci_rsp_packet` calls `queue_work`, and `nci_rx_work` is the function that eventually calls `nci_rsp_packet`. So, the chain is `nci_rx_work` -> `nci_rsp_packet` -> `queue_work`.

This means `nci_rx_work` is actively running, likely processing a received NCI response packet. The problem arises when `nci_unregister_device` is called. This function initiates the destruction of the workqueues: first `destroy_workqueue(ndev->cmd_wq)`, and then `destroy_workqueue(ndev->rx_wq)`.

If `nci_rx_work` is indeed running, it implies that `rx_wq` hasn't been properly flushed *before* `cmd_wq` is destroyed. And I've found a critical piece of logic in `nci_close_device` that explains this. When `NCI_UP` is *not* set, the code *doesn't* flush `rx_wq`. The `if (!test_and_clear_bit(NCI_UP, &ndev->flags))` block clearly shows that `flush_workqueue(ndev->cmd_wq)` is called, but there's no corresponding flush for `rx_wq` in this specific condition.

So, if `NCI_UP` is false, `rx_wq` isn't flushed. Then, `nci_unregister_device` proceeds to destroy `cmd_wq`. If `nci_rx_work` is still active, it can call `nci_rsp_packet`. The `nci_rsp_packet` function, in turn, will only call `queue_work` if `!skb_queue_empty(&ndev->cmd_q)`.

This brings me to the next crucial question: how could `ndev->cmd_q` *not* be empty when `NCI_UP` is not set? It seems counterintuitive. I need to trace `nci_send_cmd` to understand the conditions under which `cmd_q` might get populated when the NCI stack isn't fully up. This is where the real vulnerability lies.


28/2 2026/10/01 05:41 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_send_cmd]

Results:
map[SourceCode:1389:	/* Send NCI command */
1390:	int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload)
1391:	{
1392:		struct nci_ctrl_hdr *hdr;
1393:		struct sk_buff *skb;
1394:	
1395:		pr_debug("opcode 0x%x, plen %d\n", opcode, plen);
1396:	
1397:		skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + plen), GFP_KERNEL);
1398:		if (!skb) {
1399:			pr_err("no memory for command\n");
1400:			return -ENOMEM;
1401:		}
1402:	
1403:		hdr = skb_put(skb, NCI_CTRL_HDR_SIZE);
1404:		hdr->gid = nci_opcode_gid(opcode);
1405:		hdr->oid = nci_opcode_oid(opcode);
1406:		hdr->plen = plen;
1407:	
1408:		nci_mt_set((__u8 *)hdr, NCI_MT_CMD_PKT);
1409:		nci_pbf_set((__u8 *)hdr, NCI_PBF_LAST);
1410:	
1411:		if (plen)
1412:			skb_put_data(skb, payload, plen);
1413:	
1414:		skb_queue_tail(&ndev->cmd_q, skb);
1415:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
1416:	
1417:		return 0;
1418:	}
 SourceFile:net/nfc/nci/core.c]

29/2 2026/10/01 05:41 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20238
							output: 39
							thoughts: 351
						

Thoughts:
**My Thought Process Regarding NCI Command Handling**

Alright, let's break down how these NCI commands are being processed, from my perspective.

It seems the core mechanism for sending an NCI command is `nci_send_cmd`. My understanding is that `nci_send_cmd`'s primary job is to enqueue commands into a `cmd_q` and then also queue up a corresponding `cmd_work` item. This suggests a pattern where the actual command transmission or processing is deferred to a workqueue context, likely to avoid blocking the calling thread.

Now, a critical point: if `nci_send_cmd` is invoked when the `NCI_UP` flag isn't set – meaning the NCI device isn't in a ready state – it will still go ahead and queue the command to `cmd_q`. This implies that commands can be prepared or queued even before the NCI subsystem is fully initialized or after it has been shut down, with the expectation that they'll be handled later when the device comes up or if they are eventually discarded.

I'm trying to figure out *who* is actually triggering `nci_send_cmd`. The provided snippet reveals that `__nci_request` is a direct caller. Looking at `__nci_request`, it sets up a request status, reinitializes a completion event, calls the provided `req` function (which, as noted, might be something like `nci_reset_req` that in turn calls `nci_send_cmd`), and then waits for that completion event with a timeout. This confirms my suspicion: `__nci_request` is the wrapper that orchestrates the sending of a command via `nci_send_cmd` and waits for its acknowledgment.

The crucial insight here is how `__nci_request` itself is invoked. The text states it's called from `nci_open_device`, `nci_close_device`, and `nci_request`. This paints a picture of commands being sent not just during normal operation, but also during the lifecycle management of the NCI device itself.

There's a specific mention of `nci_request` acquiring a `req_lock`. This is a strong indicator of serialization and protection against race conditions when initiating requests. Furthermore, if `nci_request` is called when `NCI_UP` is *not* set, it immediately returns `-ENOTCONN`. This is a very clear behavior: the system is designed to prevent commands from being sent or processed if the NCI device is not in a connected or operational state, at least through this specific `nci_request` entry point.

So, my overall takeaway is that `nci_send_cmd` is the low-level workqueue enqueuer, `__nci_request` is the immediate caller that handles command dispatch and waiting, and that `__nci_request` is initiated by various high-level NCI operations, including device open/close and explicit user-initiated requests, with specific error handling for when the device isn't ready. The `req_lock` in `nci_request` is key for ensuring orderly command submission during these operations.


30/2 2026/10/01 05:41 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_request]

Results:
map[SourceCode: 141:	inline int nci_request(struct nci_dev *ndev,
 142:			       void (*req)(struct nci_dev *ndev,
 143:					   const void *opt),
 144:			       const void *opt, __u32 timeout)
 145:	{
 146:		int rc;
 147:	
 148:		/* Serialize all requests */
 149:		mutex_lock(&ndev->req_lock);
 150:		/* check the state after obtaing the lock against any races
 151:		 * from nci_close_device when the device gets removed.
 152:		 */
 153:		if (test_bit(NCI_UP, &ndev->flags))
 154:			rc = __nci_request(ndev, req, opt, timeout);
 155:		else
 156:			rc = -ENETDOWN;
 157:		mutex_unlock(&ndev->req_lock);
 158:	
 159:		return rc;
 160:	}
 SourceFile:net/nfc/nci/core.c]

31/2 2026/10/01 05:41 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20935
							output: 41
							thoughts: 557
						

Thoughts:
**My Thought Process Regarding NCI Command Queue Management**

I've been digging into the intricacies of the NCI (Near Field Communication Interface) driver, specifically focusing on the `cmd_q` and its lifecycle, and how it interacts with various operations like opening, unregistering, and responding to device commands.

My initial observation was about `nci_request`. I realized it has a dependency on `NCI_UP` being set, meaning it's not callable in isolation if the NCI device isn't considered "up." This immediately made me wonder about `nci_open_device`, which is the usual entry point for bringing the device online.

I then traced the flow within `nci_open_device`. The critical path here involves setting `NCI_INIT` and then calling `__nci_request`. If `__nci_request` were to time out, I saw that `nci_open_device` subsequently purges the `cmd_q`. This implies that `cmd_q` would be empty in the event of such a timeout.

This led to a specific scenario I wanted to explore: what if `nci_open_device` is called, `__nci_request` times out, but *before* `nci_open_device` gets to purge `cmd_q`, `nci_unregister_device` is invoked? I followed this: `nci_unregister_device` calls `nci_close_device`, which in turn waits for `req_lock`. Because `nci_open_device` is still in progress and hasn't released `req_lock` yet (it's waiting to purge `cmd_q`), it would eventually complete the purging of `cmd_q` and then release `req_lock`. Subsequently, `nci_close_device` would execute. It would correctly note that `NCI_UP` is not set, flush the `cmd_wq` (which is different from `cmd_q`, I noted), and then return. Following this, `nci_unregister_device` would proceed to destroy `cmd_wq`. Crucially, I thought about `rx_work` running concurrently and calling `nci_rsp_packet`. In this specific interleaved scenario, since `cmd_q` would have been emptied by `nci_open_device` before `nci_unregister_device` fully took over, the `queue_work` call within `nci_rsp_packet` (which I presume is what happens if a response is received for an outstanding command) would *not* be triggered because `cmd_q` would be empty.

Then I switched gears to consider what happens if `nci_open_device` succeeds. It calls `__nci_request` initially, and then often calls *another* `__nci_request` for initialization, like `nci_init_req`. My concern here was: what if this *second* `__nci_request` (e.g., `nci_init_req`) times out? The flow is similar: `nci_open_device` would then purge `cmd_q`. Again, the `cmd_q` would end up empty in this scenario.

This continuous observation of `cmd_q` being emptied prompted me to ask: "Is there *any* other way for `cmd_q` to become non-empty *after* an operation that should have cleared it, or in a state where it seems it should be empty?"

This led me to ponder the role of `nci_rsp_packet` when a packet arrives that isn't a response to the *current* command. I imagined a scenario where `nci_open_device` sends out an `nci_reset_req`. The device then sends a response. The `rx_work` thread dequeues this response, and `nci_rsp_packet` is invoked. My thought here was that `nci_rsp_packet` would delete `cmd_timer` and then check `!skb_queue_empty(&ndev->cmd_q)`.

This is where a crucial realization struck me. I remembered that when `nci_send_cmd` queues a command onto `cmd_q`, it *also* queues a `cmd_work` item. This `cmd_work` is the mechanism that actually dequeues items from `cmd_q` to be processed. So, `nci_rsp_packet` might be called for a response, but the actual *processing* of the command queue itself is driven by `cmd_work`. This implies that `nci_rsp_packet` doesn't directly consume from `cmd_q` but rather interacts with the command state, and the presence of an item on `cmd_q` is linked to the dispatch of `cmd_work`. My previous assumption that `nci_rsp_packet` directly empties `cmd_q` when a response is received was likely incomplete. The response handling interacts with the command status, and the `cmd_work` handles the actual dequeueing from `cmd_q`.


32/2 2026/10/01 05:41 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_cmd_work]

Results:
map[SourceCode:1611:	static void nci_cmd_work(struct work_struct *work)
1612:	{
1613:		struct nci_dev *ndev = container_of(work, struct nci_dev, cmd_work);
1614:		struct sk_buff *skb;
1615:	
1616:		pr_debug("cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
1617:	
1618:		/* Send queued command */
1619:		if (atomic_read(&ndev->cmd_cnt)) {
1620:			skb = skb_dequeue(&ndev->cmd_q);
1621:			if (!skb)
1622:				return;
1623:	
1624:			kcov_remote_start_common(skb_get_kcov_handle(skb));
1625:			atomic_dec(&ndev->cmd_cnt);
1626:	
1627:			pr_debug("NCI TX: MT=cmd, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n",
1628:				 nci_pbf(skb->data),
1629:				 nci_opcode_gid(nci_opcode(skb->data)),
1630:				 nci_opcode_oid(nci_opcode(skb->data)),
1631:				 nci_plen(skb->data));
1632:	
1633:			nci_send_frame(ndev, skb);
1634:	
1635:			mod_timer(&ndev->cmd_timer,
1636:				  jiffies + msecs_to_jiffies(NCI_CMD_TIMEOUT));
1637:			kcov_remote_stop();
1638:		}
1639:	}
 SourceFile:net/nfc/nci/core.c]

33/2 2026/10/01 05:41 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22046
							output: 40
							thoughts: 3541
						

Thoughts:
**A Deep Dive into the `cmd_q` and `cmd_work` Race Condition**

My mind is wrestling with a rather subtle race condition involving the command queue (`cmd_q`) and its associated work item (`cmd_work`). It all starts when `cmd_work` dequeues a command from `cmd_q`. If `nci_send_cmd` successfully queues a command, `cmd_work` will then process and send it, leading to an empty `cmd_q`. The puzzle arises when `nci_rsp_packet` is invoked, and it checks if `cmd_q` is empty. If it is, `queue_work` is *not* called. This immediately triggers a question in my head: how can `nci_rsp_packet` ever call `queue_work` if `cmd_q` is supposed to be empty after `cmd_work` processes a command?

The only logical explanation is that `cmd_q` *isn't* empty. This implies that multiple commands must be queued. I'm tracing this scenario: `nci_send_cmd` adds commands to `cmd_q`. While `__nci_request` typically sends one command and waits, it's the subsequent handling in `nci_rsp_packet` that's crucial. When `nci_rsp_packet` processes a response, it might call functions like `nci_core_rsp_packet` which, in turn, can signal the completion of a request. If a request is completed, `__nci_request` can wake up. If, after waking up, `__nci_request` immediately queues *another* command via `nci_send_cmd`, and this new command lands in `cmd_q` *before* `nci_rsp_packet` finishes its current execution, then `nci_rsp_packet` might indeed see that `cmd_q` is not empty and attempt to call `queue_work`.

Let's meticulously trace this potential race:
1.  `__nci_request` sends `cmd1`. `cmd_q` now contains `cmd1`.
2.  `cmd_work` dequeues `cmd1`. `cmd_q` becomes empty.
3.  The device sends `rsp1`.
4.  `rx_work` dequeues `rsp1` and calls `nci_rsp_packet`.
5.  `nci_rsp_packet` processes `rsp1`. For instance, it might call `nci_core_reset_rsp_packet`.
6.  `nci_core_reset_rsp_packet` invokes `nci_req_complete(ndev, status)`.
7.  `nci_req_complete` wakes up the waiting `__nci_request`.
8.  `__nci_request` returns.
9.  The caller of `__nci_request` (likely `nci_open_device`) proceeds and might immediately call `__nci_request` again for `cmd2`.
10. This new call to `__nci_request` for `cmd2` uses `nci_send_cmd`, which queues `cmd2` to `cmd_q`. At this point, `cmd_q` is no longer empty.
11. Crucially, `nci_rsp_packet` (from step 5) continues its execution and reaches its end, which includes this logic:
    ```c
    /* trigger the next cmd */
    atomic_set(&ndev->cmd_cnt, 1);
    if (!skb_queue_empty(&ndev->cmd_q))
        queue_work(ndev->cmd_wq, &ndev->cmd_work);
    ```
12. At this point, `nci_rsp_packet` sees that `cmd_q` is *not* empty because `cmd2` is in it.
13. Consequently, it calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.

This is where my concern truly crystallizes – it's a race condition. What happens if `nci_unregister_device` is called concurrently, specifically after step 10 but before step 13? My thought process quickly goes to the locking mechanisms. `nci_unregister_device` calls `nci_close_device`, which acquires `req_lock`. However, `nci_open_device` (which is performing steps 1-12) also holds `req_lock`. This means `nci_unregister_device` cannot proceed until `nci_open_device` releases the lock. Since `__nci_request` for `cmd2` is still waiting for a response (thus holding the lock), `nci_unregister_device` is blocked. This blockage seems to prevent `cmd_wq` from being destroyed.

Then, I consider the scenario where `nci_open_device` *fails*. If `nci_open_device` fails after queuing `cmd2`, it will purge `cmd_q` before releasing `req_lock`. When `nci_rsp_packet` resumes (at step 11), it will find `cmd_q` empty and correctly avoid calling `queue_work`. This seems safe.

What if `nci_open_device` *succeeds*? It sets `NCI_UP` and releases `req_lock`. If `nci_unregister_device` then calls `nci_close_device`, it will see `NCI_UP` is set, clear it, purge `cmd_q`, and then call `__nci_request` for a reset command. This queues a command to `cmd_q`. Meanwhile, `nci_rsp_packet` (from the earlier operation) resumes, sees `cmd_q` is not empty, and calls `queue_work`. Since `nci_close_device` is still holding the lock and waiting for the reset command to complete, `cmd_wq` is still valid, making `queue_work` safe.

I'm also contemplating edge cases where `nci_close_device` might *not* flush `rx_wq`. This occurs if `NCI_UP` is not set. In this situation, if `cmd_q` is not empty, could `nci_unregister_device` destroy `cmd_wq` while `nci_rsp_packet` is still trying to queue work? My analysis suggests that if `nci_open_device` fails and purges `cmd_q`, `nci_rsp_packet` won't queue work. And if `nci_open_device` is successful but then `nci_unregister_device` is called, the sequence of operations within `nci_close_device` seems to ensure that `cmd_wq` is flushed and work is completed before `nci_unregister_device` attempts to destroy it.

The specific warning "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" implies that `queue_work` was indeed called, meaning `cmd_q` was non-empty. The core of my concern is how `cmd_q` can be non-empty and `cmd_wq` be in the process of destruction simultaneously. My tracing of `nci_unregister_device` suggests that `nci_close_device` will flush `cmd_wq` *before* `nci_unregister_device` destroys it, especially if `nci_close_device` is waiting for a command completion. Even if `nci_close_device`'s reset command times out, it still flushes `cmd_wq`. The scenario where `NCI_UP` is not set and `rx_wq` isn't flushed seems covered, as `cmd_q` would likely be empty in such a failure path. I'm still digging, but the locking and flushing mechanisms appear to provide a robust defense against this specific race condition, although the timing is incredibly tight.


34/2 2026/10/01 05:42 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:__nci_request]

Results:
map[SourceCode:  97:	/* Execute request and wait for completion. */
  98:	static int __nci_request(struct nci_dev *ndev,
  99:				 void (*req)(struct nci_dev *ndev, const void *opt),
 100:				 const void *opt, __u32 timeout)
 101:	{
 102:		int rc = 0;
 103:		long completion_rc;
 104:	
 105:		ndev->req_status = NCI_REQ_PEND;
 106:	
 107:		reinit_completion(&ndev->req_completion);
 108:		req(ndev, opt);
 109:		completion_rc =
 110:			wait_for_completion_interruptible_timeout(&ndev->req_completion,
 111:								  timeout);
 112:	
 113:		pr_debug("wait_for_completion return %ld\n", completion_rc);
 114:	
 115:		if (completion_rc > 0) {
 116:			switch (ndev->req_status) {
 117:			case NCI_REQ_DONE:
 118:				rc = nci_to_errno(ndev->req_result);
 119:				break;
 120:	
 121:			case NCI_REQ_CANCELED:
 122:				rc = -ndev->req_result;
 123:				break;
 124:	
 125:			default:
 126:				rc = -ETIMEDOUT;
 127:				break;
 128:			}
 129:		} else {
 130:			pr_err("wait_for_completion_interruptible_timeout failed %ld\n",
 131:			       completion_rc);
 132:	
 133:			rc = ((completion_rc == 0) ? (-ETIMEDOUT) : (completion_rc));
 134:		}
 135:	
 136:		ndev->req_status = ndev->req_result = 0;
 137:	
 138:		return rc;
 139:	}
 SourceFile:net/nfc/nci/core.c]

35/2 2026/10/01 05:42 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26237
							output: 41
							thoughts: 508
						

Thoughts:
**My Thought Process Unraveled**

Okay, I've just stumbled upon a critical detail regarding the NCI (Near Field Communication) driver's command queue (`cmd_q`) behavior. My initial assumption was that `__nci_request` would always ensure the command queue is purged, but that's demonstrably not the case.

What I've realized is that `__nci_request` itself doesn't *purge* the `cmd_q`. Instead, when a timeout occurs, it simply returns an error code, specifically `-ETIMEDOUT`. This leaves me wondering, what *does* purge `cmd_q`, and under what circumstances might it be left with pending commands?

I then recalled that `nci_open_device` *does* purge `cmd_q`, but only if a specific return code (`rc`) indicates an error during the opening process. This is a conditional purge, not a general one.

The real crux of my concern arises from `nci_close_device`. It appears that if `__nci_request` times out during the closing sequence, `cmd_q` is *not* guaranteed to be purged. Let's look at the relevant code snippet:

```c
	__nci_request(ndev, nci_reset_req, (void *)0,
		      msecs_to_jiffies(NCI_RESET_TIMEOUT));

	/* After this point our queues are empty
	 * rx work may be running but will see that NCI_UP was cleared
	 */
	ndev->ops->close(ndev);

	clear_bit(NCI_INIT, &ndev->flags);

	/* Flush cmd and tx wq */
	flush_workqueue(ndev->cmd_wq);
```

This structure, as I'm dissecting it, suggests a potential issue. If `__nci_request` returns `-ETIMEDOUT`, it seems `cmd_q` might still contain the command that was being processed.

However, I'm pausing to re-evaluate this. The `cmd_work` function is responsible for dequeuing commands from `cmd_q` to actually send them. So, if `cmd_work` has already executed, `cmd_q` *should* be empty.

My thought then shifts to the `flush_workqueue(ndev->cmd_wq)` call. If `cmd_work` hasn't yet run, this `flush_workqueue` will indeed trigger `cmd_work` to execute. And when `cmd_work` runs, it *will* dequeue the command. This line of reasoning leads me back to the conclusion that `cmd_q` *should* be empty after the `flush_workqueue`.

But what if `cmd_work` runs, but the command it attempts to send *fails* for some reason? Let's examine that part of the `cmd_work` logic:

```c
	if (atomic_read(&ndev->cmd_cnt)) {
		skb = skb_dequeue(&ndev->cmd_q);
		if (!skb)
			return;
```

The crucial part here is that `skb_dequeue(&ndev->cmd_q)` is called *before* any error checking regarding the send operation itself. So, even if the send fails, the command *is* dequeued. This reinforces my belief that `cmd_q` becomes empty in this scenario as well.

This brings me to a final, critical question: Is there *any* scenario where `cmd_q` might remain non-empty after the `nci_close_device` sequence, particularly after a `__nci_request` timeout? I'm thinking about the possibility of `nci_send_cmd` being invoked multiple times *before* `cmd_work` gets a chance to process them.

However, `__nci_request` is designed to *wait* for the completion of a request. It's supposed to call `nci_send_cmd` only once for a given request. My current understanding is that `nci_reset_req` (which is what `__nci_request` is called with in this context) initiates a single send operation. The question now is, does `nci_reset_req` itself trigger multiple calls to `nci_send_cmd` under certain conditions? That's the remaining loose end I need to tie up.


36/2 2026/10/01 05:42 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_reset_req]

Results:
map[SourceCode: 162:	static void nci_reset_req(struct nci_dev *ndev, const void *opt)
 163:	{
 164:		struct nci_core_reset_cmd cmd;
 165:	
 166:		cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG;
 167:		nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd);
 168:	}
 SourceFile:net/nfc/nci/core.c]

37/2 2026/10/01 05:42 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26929
							output: 45
							thoughts: 700
						

Thoughts:
**My Thought Process Regarding Command Queueing and Execution**

This is a deep dive into how commands are processed and queued within the NCI layer, and I'm trying to meticulously trace the execution flow to ensure correctness, specifically concerning potential race conditions or unexpected behaviors.

My initial thought was that `nci_rsp_packet` might be called without `cmd_q` being non-empty, but a quick check reveals that `nci_rsp_packet` itself verifies `!skb_queue_empty(&ndev->cmd_q)`. This means that for `queue_work(ndev->cmd_wq, &ndev->cmd_work)` to be invoked within `nci_rsp_packet`, the `cmd_q` *must* already contain at least one command. This is a crucial point: `queue_work` is only called if there's something to process.

So, the core question becomes: how can `cmd_q` become non-empty in the first place, and how is the processing of its contents managed? I then revisit `nci_cmd_work`, the handler for the command workqueue.

Inside `nci_cmd_work`, I see this critical section:
```c
	/* Send queued command */
	if (atomic_read(&ndev->cmd_cnt)) {
		skb = skb_dequeue(&ndev->cmd_q);
```
This `if (atomic_read(&ndev->cmd_cnt))` condition is the linchpin. If `cmd_cnt` is zero, the `skb_dequeue` operation simply *won't happen*. This implies that `cmd_work` might execute, but if `cmd_cnt` is zero, it effectively does nothing in terms of dequeuing and sending the next command.

Now, I need to understand when `cmd_cnt` becomes zero. I observe that `cmd_cnt` is initialized to `1` in both `nci_open_device` and `nci_close_device`. This makes sense; we start with an expectation of being able to send at least one command. However, when `cmd_work` successfully runs and sends a command, it performs `atomic_dec(&ndev->cmd_cnt)`. If this was the only command pending, `cmd_cnt` would then become zero.

This leads to a potential problem: if `cmd_cnt` is zero when `cmd_work` attempts to run, it won't dequeue the next command. What happens then? This is where the response handling comes into play. When a response is received, `nci_rsp_packet` is called. Its relevant actions are:
```c
	/* trigger the next cmd */
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```
This is the "aha!" moment. `nci_rsp_packet` *resets* `cmd_cnt` to `1` and *then* checks if `cmd_q` is non-empty. If `cmd_q` *is* non-empty (meaning more commands were queued while `cmd_cnt` was zero or while a previous command was being processed), `nci_rsp_packet` queues `cmd_work` again.

This explains the apparent behavior: if multiple commands are queued to `cmd_q`:
1. The first command is sent. `cmd_cnt` is decremented and becomes `0`.
2. Subsequent commands are queued to `cmd_q` but are *not* dequeued by `nci_cmd_work` because `cmd_cnt` is `0`.
3. When the response for the first command arrives, `nci_rsp_packet` sets `cmd_cnt` back to `1` and, critically, queues `cmd_work` again because `cmd_q` is no longer empty. This ensures the second command is then processed.

My next question is, how can multiple commands end up in `cmd_q` in the first place? I recall that `__nci_request` is the typical entry point for sending commands, and it's designed to be a blocking call that waits for completion. This implies that `__nci_request` itself shouldn't be queuing multiple commands *concurrently* in a way that would overflow `cmd_q` before the previous one is handled.

So, I'm now focused on identifying any paths where `nci_send_cmd` (or a function that ultimately calls `nci_send_cmd`) might be invoked *outside* of the strict `__nci_request` flow, particularly in a scenario that could lead to multiple commands being added to `cmd_q` without `__nci_request`'s completion logic intervening correctly. I'm re-examining the callers of `nci_send_cmd`, specifically looking at functions like `nci_core_conn_create_req` and `nci_nfcee_discover_req`. My hypothesis is that there might be a less common or perhaps overlooked path where `nci_send_cmd` is called directly, potentially in a loop or in response to an event, that bypasses the intended sequential processing of `__nci_request`.


38/2 2026/10/01 05:43 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_core_conn_create_req]

Results:
map[SourceCode: 708:	static void nci_core_conn_create_req(struct nci_dev *ndev, const void *opt)
 709:	{
 710:		const struct core_conn_create_data *data = opt;
 711:	
 712:		nci_send_cmd(ndev, NCI_OP_CORE_CONN_CREATE_CMD, data->length, data->cmd);
 713:	}
 SourceFile:net/nfc/nci/core.c]

39/2 2026/10/01 05:43 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27804
							output: 43
							thoughts: 13
						

Thoughts:
**My Internal Monologue on `nci_hci_send_cmd`**

Alright, so I'm digging into the NCI (Near Field Communication Controller Interface) stack, and my mind is immediately drawn to the `nci_hci_send_cmd` function. This feels like a critical junction, the gateway for sending commands from the host – that’s me, essentially – down to the HCI (Host Controller Interface) layer. My immediate thought is about the *purpose* and *implications* of this function.

I'm thinking about what exactly it *does*. At its core, it has to be responsible for taking a command structure, likely defined by the NCI specification, and packaging it up in a way that the HCI layer can understand and process. This isn't just a simple data copy; it implies translation, formatting, and potentially some validation.

I'm considering the *inputs* to this function. What information does it need from me? It’s undoubtedly going to require the command itself – the specific opcode, the parameters associated with that opcode, and perhaps the length of the command data. Is there a buffer involved? Am I providing a pre-allocated buffer, or does the function manage its own? The efficiency of memory management here is something I'd be keen to understand.

Then there are the *outputs*. What does `nci_hci_send_cmd` return? Is it a simple success/failure status? Does it indicate completion of the HCI transmission? Or does it, perhaps, return a handle or identifier that I can use to track the asynchronous response from the HCI? Given the nature of NCI/HCI, which is often asynchronous, I'm leaning towards the latter. Tracking asynchronous operations is key to managing the flow.

My expertise tells me this isn't just a fire-and-forget mechanism. There must be a mechanism for managing the command queue if multiple commands are sent in rapid succession. Does `nci_hci_send_cmd` block until the command is queued, or is it non-blocking? If it's non-blocking, how do I know when it's safe to send another command? This relates directly to flow control.

I'm also thinking about the *error handling*. What happens if the command is malformed? What if the HCI layer is busy and can't accept the command? Does `nci_hci_send_cmd` return specific error codes? Understanding these error paths is crucial for robust implementation. Are there assertions or internal checks that will catch programmer errors before they even reach the HCI?

Furthermore, the *context* in which `nci_hci_send_cmd` operates is vital. Is it called from an interrupt context, a task, or a regular function? This will dictate what operations are permissible within the function and its callers. For instance, if it's called from an interrupt, it can't involve blocking I/O or complex memory allocations.

I'm also wondering about the *underlying transport*. While `nci_hci_send_cmd` abstracts this, it's built upon some form of communication channel to the HCI. Is it a serial port, a dedicated bus, or something else? While the function might hide the specifics, understanding the potential bottlenecks or limitations of that transport is always on my mind.

Finally, I'm considering the *lifecycle* of a command. A command is sent via `nci_hci_send_cmd`, then the HCI processes it, and eventually, a response (either an event or a status) comes back. How does this function tie into the reception and parsing of those responses? Does it register callbacks, or is there a separate mechanism for handling command completion? This function is the *initiation*, but the complete picture involves the entire command-response cycle.

In essence, when I see `nci_hci_send_cmd`, I see the initiation of a complex interaction, a bridge between my high-level intent and the hardware's capabilities. My thoughts are a blend of understanding its immediate function, its surrounding ecosystem, and the potential pitfalls and optimizations involved in its use.


40/2 2026/10/01 05:43 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/hci.c Name:nci_hci_send_cmd]

Results:
map[SourceCode: 221:	int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate, u8 cmd,
 222:			     const u8 *param, size_t param_len,
 223:			     struct sk_buff **skb)
 224:	{
 225:		const struct nci_hcp_message *message;
 226:		const struct nci_conn_info *conn_info;
 227:		struct nci_data data;
 228:		int r;
 229:		u8 pipe = ndev->hci_dev->gate2pipe[gate];
 230:	
 231:		if (pipe == NCI_HCI_INVALID_PIPE)
 232:			return -EADDRNOTAVAIL;
 233:	
 234:		conn_info = ndev->hci_dev->conn_info;
 235:		if (!conn_info)
 236:			return -EPROTO;
 237:	
 238:		data.conn_id = conn_info->conn_id;
 239:		data.pipe = pipe;
 240:		data.cmd = NCI_HCP_HEADER(NCI_HCI_HCP_COMMAND, cmd);
 241:		data.data = param;
 242:		data.data_len = param_len;
 243:	
 244:		r = nci_request(ndev, nci_hci_send_data_req, &data,
 245:				msecs_to_jiffies(NCI_DATA_TIMEOUT));
 246:		if (r == NCI_STATUS_OK) {
 247:			message = (struct nci_hcp_message *)conn_info->rx_skb->data;
 248:			r = nci_hci_result_to_errno(
 249:				NCI_HCP_MSG_GET_CMD(message->header));
 250:			skb_pull(conn_info->rx_skb, NCI_HCI_HCP_MESSAGE_HEADER_LEN);
 251:	
 252:			if (!r && skb)
 253:				*skb = conn_info->rx_skb;
 254:		}
 255:	
 256:		return r;
 257:	}
 SourceFile:net/nfc/nci/hci.c]

41/2 2026/10/01 05:43 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28503
							output: 45
							thoughts: 42
						

Thoughts:
**A Deep Dive into the NCI Request Flow**

Ah, so the journey begins with a call to `nci_request`. My initial understanding is that this is the primary entry point, the high-level function designed to initiate a request within the NCI framework. But as I trace the execution, I see it immediately delegates to `__nci_request`. This tells me `__nci_request` is likely the core internal implementation, handling the actual mechanics of preparing and dispatching the request, while `nci_request` might serve as a cleaner, more public-facing API, perhaps with some preliminary validation or setup steps.

Now, this next observation is quite interesting and warrants closer examination: `nci_hci_send_data_req` *also* calls `nci_send_data`. This suggests a layered approach to data transmission. `nci_hci_send_data_req` sounds like it's part of the HCI (Host Controller Interface) layer, responsible for formatting data specifically for the host controller. The fact that it then relies on `nci_send_data` implies that `nci_send_data` is a more generalized or lower-level function responsible for the actual byte-level transmission of data, regardless of its origin within the HCI stack. This separation of concerns is good; it allows for distinct handling of HCI-specific packaging versus the fundamental act of sending data. I need to understand the relationship between these functions more clearly to grasp the full data flow and how different components interact. Is `nci_send_data` abstracting hardware interaction, or is it a further processing step? This detail is crucial for my understanding of the system's architecture.


42/2 2026/10/01 05:43 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/hci.c Name:nci_hci_send_data_req]

Results:
map[SourceCode: 199:	static void nci_hci_send_data_req(struct nci_dev *ndev, const void *opt)
 200:	{
 201:		const struct nci_data *data = opt;
 202:	
 203:		nci_hci_send_data(ndev, data->pipe, data->cmd,
 204:				  data->data, data->data_len);
 205:	}
 SourceFile:net/nfc/nci/hci.c]

43/2 2026/10/01 05:43 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28724
							output: 43
							thoughts: 19
						

Thoughts:
**My Thought Process on `nci_hci_send_data` Calling `nci_send_data`**

Ah, looking at the code, the primary function I'm seeing here is `nci_hci_send_data`. My immediate thought, as an expert in this domain, is to understand its role and how it interacts with other components. It's pretty clear-cut: `nci_hci_send_data` is essentially an intermediary or a wrapper. Its sole, or at least primary, responsibility is to delegate the actual data transmission task to another function, which in this case is `nci_send_data`.

So, to put it simply, when `nci_hci_send_data` is invoked, I understand that it's not going to perform the low-level sending of data itself. Instead, it's going to call `nci_send_data`, passing along whatever necessary parameters it received. This suggests a layering of abstraction, where `nci_hci_send_data` might be part of a higher-level interface, perhaps dealing with HCI (Host Controller Interface) specific logic or protocols, and then it offloads the actual transport mechanism to a more fundamental function, `nci_send_data`. My mental model immediately pieces together this call chain, recognizing `nci_send_data` as the workhorse that handles the mechanics of sending the data, while `nci_hci_send_data` serves as the entry point for a specific context or set of requirements.


44/2 2026/10/01 05:43 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/hci.c Name:nci_hci_send_data]

Results:
map[SourceCode: 134:	/* Fragment HCI data over NCI packet.
 135:	 * NFC Forum NCI 10.2.2 Data Exchange:
 136:	 * The payload of the Data Packets sent on the Logical Connection SHALL be
 137:	 * valid HCP packets, as defined within [ETSI_102622]. Each Data Packet SHALL
 138:	 * contain a single HCP packet. NCI Segmentation and Reassembly SHALL NOT be
 139:	 * applied to Data Messages in either direction. The HCI fragmentation mechanism
 140:	 * is used if required.
 141:	 */
 142:	static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe,
 143:				     const u8 data_type, const u8 *data,
 144:				     size_t data_len)
 145:	{
 146:		const struct nci_conn_info *conn_info;
 147:		struct sk_buff *skb;
 148:		int len, i, r;
 149:		u8 cb = pipe;
 150:	
 151:		conn_info = ndev->hci_dev->conn_info;
 152:		if (!conn_info)
 153:			return -EPROTO;
 154:	
 155:		i = 0;
 156:		skb = nci_skb_alloc(ndev, conn_info->max_pkt_payload_len +
 157:				    NCI_DATA_HDR_SIZE, GFP_ATOMIC);
 158:		if (!skb)
 159:			return -ENOMEM;
 160:	
 161:		skb_reserve(skb, NCI_DATA_HDR_SIZE + 2);
 162:		*(u8 *)skb_push(skb, 1) = data_type;
 163:	
 164:		do {
 165:			/* If last packet add NCI_HFP_NO_CHAINING */
 166:			if (i + conn_info->max_pkt_payload_len -
 167:			    (skb->len + 1) >= data_len) {
 168:				cb |= NCI_HFP_NO_CHAINING;
 169:				len = data_len - i;
 170:			} else {
 171:				len = conn_info->max_pkt_payload_len - skb->len - 1;
 172:			}
 173:	
 174:			*(u8 *)skb_push(skb, 1) = cb;
 175:	
 176:			if (len > 0)
 177:				skb_put_data(skb, data + i, len);
 178:	
 179:			r = nci_send_data(ndev, conn_info->conn_id, skb);
 180:			if (r < 0)
 181:				return r;
 182:	
 183:			i += len;
 184:	
 185:			if (i < data_len) {
 186:				skb = nci_skb_alloc(ndev,
 187:						    conn_info->max_pkt_payload_len +
 188:						    NCI_DATA_HDR_SIZE, GFP_ATOMIC);
 189:				if (!skb)
 190:					return -ENOMEM;
 191:	
 192:				skb_reserve(skb, NCI_DATA_HDR_SIZE + 1);
 193:			}
 194:		} while (i < data_len);
 195:	
 196:		return i;
 197:	}
 SourceFile:net/nfc/nci/hci.c]

45/2 2026/10/01 05:43 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29821
							output: 64
							thoughts: 5211
						

Thoughts:
**My Thought Process Regarding `nci_send_data` and Command Queueing**

Okay, let's trace this. My initial understanding was that `nci_send_data` directly queues to `tx_q`, not `cmd_q`. That seems straightforward enough. But then I started wondering about the implications of `nci_send_cmd` being called by `nci_core_conn_create_req`. My deeper dive reveals it's actually called via `__nci_request`. This distinction is crucial because `__nci_request` is the function that manages the command queue.

So, I need to re-evaluate how the `cmd_q` gets populated and processed. The key function here is `nci_rsp_packet`. It explicitly checks `!skb_queue_empty(&ndev->cmd_q)`. If `cmd_q` is *not* empty, it queues `cmd_work`. The big question is: how can `cmd_q` *not* be empty at this point?

My first thought is: if `nci_send_cmd` is called, it queues to `cmd_q`, and then it queues `cmd_work`. If `cmd_work` hasn't executed yet, `cmd_q` would indeed be non-empty. This leads to a race condition scenario: if `nci_rsp_packet` is invoked *simultaneously*, it would see the non-empty `cmd_q` and queue `cmd_work` again.

However, I quickly realized a flaw in that line of reasoning. `nci_rsp_packet` is called *when a response is received*. A response implies a *previous command was sent*. If a previous command was sent, its corresponding `cmd_work` *must have run* to send it. If `cmd_work` sent that previous command, then `cmd_q` should be empty, unless another command was queued *after* the previous one was sent but *before* the response was processed.

If another command was queued, it means `__nci_request` for the previous command has FINISHED. And if `__nci_request` finished, it means `nci_rsp_packet` has ALREADY completed the request for that previous command! This is because `nci_rsp_packet` ultimately calls `nci_req_complete`, which wakes up the `__nci_request` thread. After waking up, `__nci_request` returns, and the caller (like `nci_open_device`) then proceeds to call `__nci_request` for the *next* command. This next command gets queued to `cmd_q`.

The critical insight here is that all of this happens *before* `nci_rsp_packet` finishes its execution. Specifically, `nci_req_complete` wakes up the `__nci_request` thread. On an SMP system, this woken thread can then run on a different CPU, potentially preempting the `rx_work` thread that's currently executing `nci_rsp_packet`. This preempted thread can then queue the *next* command.

So, the scenario looks like this:
*   CPU 1 is running `rx_work`, which calls `nci_rsp_packet`.
*   `nci_rsp_packet` processes the response, calls `nci_req_complete`.
*   `nci_req_complete` wakes up a thread on CPU 2.
*   The thread on CPU 2, running `__nci_request`, finishes its previous wait, and now `nci_open_device` (or similar) calls `__nci_request` for the *next* command.
*   This next command is sent via `nci_send_cmd`, which queues it to `cmd_q` and then queues `cmd_work` for `ndev->cmd_wq`.
*   The `__nci_request` on CPU 2 might then block on `wait_for_completion`, waiting for the response to this *new* command.
*   Meanwhile, CPU 1, which was executing `nci_rsp_packet`, continues after `nci_req_complete`. It reaches the check `if (!skb_queue_empty(&ndev->cmd_q)) queue_work(ndev->cmd_wq, &ndev->cmd_work);`.
*   At this moment, CPU 2 *did* queue a new command to `cmd_q`. So, `cmd_q` is NOT empty.
*   CPU 1 therefore calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.

This is perfectly normal. It just means `cmd_work` is queued again. The `cmd_work` that was queued by CPU 2 will run and process its command, and this new `cmd_work` queued by CPU 1 will also run, potentially processing another command if one is available.

The real concern arises if `nci_open_device` (or any function calling `__nci_request`) *fails* after queuing a command. If `nci_open_device` fails, it calls `skb_queue_purge(&ndev->cmd_q)`. In this case, `cmd_q` becomes empty. So, when `nci_rsp_packet` continues on CPU 1 and checks `!skb_queue_empty(&ndev->cmd_q)`, it will find it empty and *won't* call `queue_work`.

What about `nci_close_device`? If `nci_close_device` is called while `NCI_UP` is set, it calls `__nci_request` for a reset, waits, and then proceeds. Crucially, after this, it calls `flush_workqueue(ndev->cmd_wq)`. If the device is brought down gracefully (`NCI_UP` is cleared), `nci_close_device` also purges `cmd_q`.

This purging behavior is a key safeguard. It seems like `cmd_q` is reliably emptied in error paths like `nci_open_device` failure or during device closure.

However, I found a critical path where `cmd_q` might *not* be emptied: the case where `__nci_request` times out and the caller is `nci_request` (not `nci_open_device`). The `nci_request` function does *not* purge `cmd_q` on timeout! If `__nci_request` times out, it means the command was queued, but no response arrived. If `nci_request` returns `-ETIMEDOUT` without purging `cmd_q`, and then *another* `nci_request` is made, the second request will queue *another* command.

The `cmd_cnt` variable is also important. It's initialized to 1. `cmd_work` decrements it to 0 when it starts processing a command. If `nci_send_cmd` is called *while* `cmd_cnt` is 0 (meaning a command was sent but no response has been processed yet to increment `cmd_cnt` back to 1), `cmd_work` won't actually dequeue the command from `cmd_q` because it checks `atomic_read(&ndev->cmd_cnt)`. The command just stays there!

This is where the race condition with `nci_rsp_packet` can become problematic. If a command is stuck in `cmd_q` because `cmd_cnt` was 0, and `nci_rsp_packet` is called, it will see `cmd_q` is not empty and queue `cmd_work` again. If the original command was never dequeued, and `cmd_work` keeps getting queued, it could lead to unexpected behavior.

Then, I considered the scenario where `nci_close_device` is called when `NCI_UP` is *not* set. In this specific branch, `nci_close_device` *does not* purge `cmd_q`. It only flushes `cmd_wq`. If `cmd_q` still contains a command (e.g., due to the `cmd_cnt` issue or a timeout without purging), and then `nci_unregister_device` proceeds to `destroy_workqueue(ndev->cmd_wq)`, the `rx_work` could still be running on another CPU. If `rx_work` calls `nci_rsp_packet`, it would see the non-empty `cmd_q` and attempt to queue `cmd_work` to a workqueue that is *about to be destroyed*. This is a clear path to a use-after-free or similar crash.

The critical vulnerability appears to be when `NCI_UP` is not set, `cmd_q` is non-empty, and `rx_work` is still active when `cmd_wq` is destroyed. The lack of `skb_queue_purge` in that specific `nci_close_device` branch, combined with the possibility of `cmd_q` containing stale commands due to the `cmd_cnt` logic or timeouts, is what seems to trigger the issue.


46/2 2026/10/01 05:44 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:0 Name:nci_core_conn_close SourceTreePrefix:net/nfc/nci/]

Results:
map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__UNIQUE_ID_addressable_nci_core_conn_close_1446 SourceFile:net/nfc/nci/core.c SourceLine:769] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_core_conn_close SourceFile:net/nfc/nci/core.c SourceLine:769] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_core_conn_close SourceFile:net/nfc/nci/core.c SourceLine:769]] TruncatedOutput:false]

47/2 2026/10/01 05:44 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35257
							output: 37
							thoughts: 9
						

Thoughts:
**The Genesis of a Thought: Tracing the Origin of an Exported Entity**

So, here I am, pondering this exported entity. It's out there, available, but the fundamental question is gnawing at me: *who* is actually making the call? What process, what system, what other piece of code is reaching out and invoking this specific export? I need to understand the downstream dependencies, the consumers of this functionality. Is it a direct call from another module within this same project? Is it an external service that relies on this output? Or is it something more ephemeral, perhaps triggered by an event or a scheduled task? Unraveling this is crucial for understanding the architecture, for debugging potential issues, and for ensuring that this export is being utilized as intended. The 'who' dictates the 'why' and the 'how' of its existence in this accessible state.


48/2 2026/10/01 05:44 tool grepper
0m Args:
map[Expression:nci_core_conn_close\( PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=754=static void nci_core_conn_close_req(struct nci_dev *ndev, const void *opt)
--
net/nfc/nci/core.c-760-
net/nfc/nci/core.c:761:int nci_core_conn_close(struct nci_dev *ndev, u8 conn_id)
net/nfc/nci/core.c-762-{
]

49/2 2026/10/01 05:44 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35421
							output: 36
							thoughts: 31
						

Thoughts:
**My Internal Monologue on NFC/NCI Code Exploration**

Alright, so I'm digging into this `net/nfc/nci/` directory, and it's immediately striking me that *nobody* seems to be calling this particular function. It's like a ghost function, present but apparently unused by its immediate peers. This raises a flag for me. Is it a legacy function that's been deprecated or forgotten? Or is its purpose served through some indirect mechanism I haven't uncovered yet?

My next thought, naturally, is to chase down any potential avenues. The most obvious one, given the naming convention and the context, is `nci_nfcee_discover_req`. I'm wondering if this is where the functionality I'm looking for, or the absence of its direct invocation, is coming into play. Is `nci_nfcee_discover_req` perhaps the *actual* entry point, or the function that *should* be calling the other one? I need to investigate the implementation and call sites of `nci_nfcee_discover_req` to see if there's a connection, either direct or indirect, that explains the mystery of the uncalled function in `net/nfc/nci/`. This whole thing feels like a detective case, piecing together the flow and purpose of these code components.


50/2 2026/10/01 05:44 tool grepper
0m Args:
map[Expression:nci_nfcee_discover\( PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=669=static void nci_nfcee_discover_req(struct nci_dev *ndev, const void *opt)
--
net/nfc/nci/core.c-678-
net/nfc/nci/core.c:679:int nci_nfcee_discover(struct nci_dev *ndev, u8 action)
net/nfc/nci/core.c-680-{
--
net/nfc/nci/core.c=1110=static int nci_discover_se(struct nfc_dev *nfc_dev)
--
net/nfc/nci/core.c-1115-	if (ndev->ops->discover_se) {
net/nfc/nci/core.c:1116:		r = nci_nfcee_discover(ndev, NCI_NFCEE_DISCOVERY_ACTION_ENABLE);
net/nfc/nci/core.c-1117-		if (r != NCI_STATUS_OK)
]

51/2 2026/10/01 05:44 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35751
							output: 31
							thoughts: 386
						

Thoughts:
**My Thought Process Regarding NFC Operation Sequencing and Potential Race Conditions**

My current line of inquiry is focused on a specific NFC operation, `nci_discover_se`. I understand this operation initiates a sequence that involves `nci_nfcee_discover` and ultimately `nci_request`. The critical checkpoint here appears to be the `NCI_UP` flag, which signifies the readiness of the NCI (Near Field Communication Controller) interface.

A key question that has arisen in my mind is whether it's *ever* possible for the `cmd_q` (command queue) to be non-empty when the `NCI_UP` flag is *not* set. This is crucial because the system's expected behavior, as indicated by a warning message, suggests that `queue_work` *was* called even when `NCI_UP` was not set, implying `cmd_q` *must* have contained something.

I've already considered the potential for concurrency issues between `nci_open_device` and `nci_unregister_device`. My analysis indicated that `nci_unregister_device` calls `nci_close_device`, which, in turn, acquires `req_lock`. Since `nci_open_device` also holds `req_lock`, they are mutually exclusive and cannot run concurrently, thus mitigating a certain class of race conditions.

However, I'm re-evaluating a specific scenario. What if `nci_unregister_device` is invoked, but `NCI_UP` is *not* set at that precise moment? Simultaneously, I need to consider the possibility that the `rx_wq` (receive work queue) is active, and `nci_rsp_packet` is being processed. If, at this point, `cmd_q` is *empty*, the `nci_rsp_packet` function will *not* call `queue_work`.

But the warning I'm seeing states that `queue_work` *was* indeed called. This leads me back to my core question: if `queue_work` was called, then `cmd_q` *must* have been non-empty. The critical point of confusion is understanding *how* `cmd_q` could be non-empty in this particular sequence, especially given the logic within `nci_rsp_packet` itself:

```c
	/* trigger the next cmd */
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```
This code explicitly checks if `cmd_q` is empty before queuing work. Therefore, for `queue_work` to have been called, `skb_queue_empty(&ndev->cmd_q)` must have evaluated to false.

My next step is to rigorously investigate any other parts of the codebase that might be adding items to `cmd_q`. I intend to perform a comprehensive grep for all instances where `cmd_q` is manipulated to fully understand its population mechanisms beyond the immediate `nci_rsp_packet` context. This is the only way I can reconcile the observed warning with the current understanding of the code's flow.


52/2 2026/10/01 05:45 tool grepper
0m Args:
map[Expression:cmd_q PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=474=static int nci_open_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-540-		/* Init failed, cleanup */
net/nfc/nci/core.c:541:		skb_queue_purge(&ndev->cmd_q);
net/nfc/nci/core.c-542-		skb_queue_purge(&ndev->rx_q);
--
net/nfc/nci/core.c=554=static int nci_close_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-585-	/* Reset device */
net/nfc/nci/core.c:586:	skb_queue_purge(&ndev->cmd_q);
net/nfc/nci/core.c-587-	atomic_set(&ndev->cmd_cnt, 1);
--
net/nfc/nci/core.c=1251=int nci_register_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-1282-
net/nfc/nci/core.c:1283:	skb_queue_head_init(&ndev->cmd_q);
net/nfc/nci/core.c-1284-	skb_queue_head_init(&ndev->rx_q);
--
net/nfc/nci/core.c=1390=int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload)
--
net/nfc/nci/core.c-1413-
net/nfc/nci/core.c:1414:	skb_queue_tail(&ndev->cmd_q, skb);
net/nfc/nci/core.c-1415-	queue_work(ndev->cmd_wq, &ndev->cmd_work);
--
net/nfc/nci/core.c=1611=static void nci_cmd_work(struct work_struct *work)
--
net/nfc/nci/core.c-1619-	if (atomic_read(&ndev->cmd_cnt)) {
net/nfc/nci/core.c:1620:		skb = skb_dequeue(&ndev->cmd_q);
net/nfc/nci/core.c-1621-		if (!skb)
--
net/nfc/nci/rsp.c=381=void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)
--
net/nfc/nci/rsp.c-461-	atomic_set(&ndev->cmd_cnt, 1);
net/nfc/nci/rsp.c:462:	if (!skb_queue_empty(&ndev->cmd_q))
net/nfc/nci/rsp.c-463-		queue_work(ndev->cmd_wq, &ndev->cmd_work);
]

53/2 2026/10/01 05:45 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36966
							output: 35
							thoughts: 1532
						

Thoughts:
**A Deep Dive into NCI Command Queuing and Device State Transitions**

My thought process began by meticulously tracing the flow of commands into the `cmd_q`. I established a clear hierarchy: `nci_send_cmd` is the sole function that directly queues to `cmd_q`. This, in turn, is exclusively called by the `nci_*_req` functions, which themselves are only invoked by `__nci_request`. The entry points to `__nci_request` are `nci_request`, `nci_open_device`, and `nci_close_device`.

A crucial observation was that `nci_request` explicitly checks for the `NCI_UP` flag. However, `nci_open_device` and `nci_close_device` operate under the protection of `req_lock`. This led me to ponder a scenario where `cmd_q` might become non-empty even when `NCI_UP` is not set. The only exceptions to this rule, I reasoned, would be during the execution of `nci_close_device` or `nci_open_device`.

The `req_lock` came into play again. If `nci_close_device` or `nci_open_device` holds this lock, I anticipated that `nci_unregister_device` would be prevented from calling `nci_close_device`. But then I realized that `nci_unregister_device` is precisely the function that initiates `nci_close_device`. This created a potential deadlock or race condition in my mind.

I then focused on the `nci_unregister_device` path. When `NCI_UP` is set, it's cleared, `cmd_q` is purged, and `__nci_request(ndev, nci_reset_req, ...)` is called, queuing a reset command. The subsequent wait for completion, and crucially, the fact that `cmd_q` is *not* purged on a timeout of this reset request, became a significant point of concern.

My attention then shifted to the interaction between timeouts and the `cmd_work` handler. I considered the possibility that if `__nci_request` timed out, `cmd_q` might still be empty because `cmd_work` had already dequeued the command. However, I also questioned why `cmd_work` *wouldn't* dequeue it. The condition for this inaction, I deduced, would be if `cmd_cnt` was zero. But `nci_close_device` explicitly sets `cmd_cnt` to 1 just before calling `__nci_request`, ensuring that `cmd_work` *will* dequeue the command, thus emptying `cmd_q`.

The next critical juncture involved the `nci_close_device` flushing of `cmd_wq` and the subsequent unlocking of `req_lock`. I then examined the flushing of `rx_wq`. If `rx_wq` is flushed, it means `rx_work` will complete *before* `nci_unregister_device` destroys `cmd_wq`, thus preventing a race condition where `rx_work` might still be running when `cmd_wq` is being torn down.

However, I then posed the question: what if `rx_wq` is *not* flushed? This scenario occurs when `NCI_UP` is not set. But if `NCI_UP` is not set, I had already reasoned that `cmd_q` *should* be empty. The logic here was that no function should be able to queue to `cmd_q` without `NCI_UP` being set, with the exception of `nci_open_device` which purges `cmd_q` on failure.

This led to a final, refined consideration: what if `nci_open_device` fails, purges `cmd_q`, but `rx_work` is still active? In such a case, if `cmd_q` is empty, `rx_work` wouldn't call `queue_work`, thus avoiding the warning I was concerned about. This reinforced my understanding of the system's robustness under these specific failure conditions. My ultimate question then became whether there were any *other* pathways that could lead to `queue_work` being called, prompting a deeper inspection of functions like `nci_rx_work` and its handling of different packet types, specifically `nci_ntf_packet`.


54/2 2026/10/01 05:45 tool grepper
0m Args:
map[Expression:queue_work.*cmd_wq PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=622=static void nci_cmd_timer(struct timer_list *t)
--
net/nfc/nci/core.c-626-	atomic_set(&ndev->cmd_cnt, 1);
net/nfc/nci/core.c:627:	queue_work(ndev->cmd_wq, &ndev->cmd_work);
net/nfc/nci/core.c-628-}
--
net/nfc/nci/core.c=1390=int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload)
--
net/nfc/nci/core.c-1414-	skb_queue_tail(&ndev->cmd_q, skb);
net/nfc/nci/core.c:1415:	queue_work(ndev->cmd_wq, &ndev->cmd_work);
net/nfc/nci/core.c-1416-
--
net/nfc/nci/rsp.c=381=void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)
--
net/nfc/nci/rsp.c-462-	if (!skb_queue_empty(&ndev->cmd_q))
net/nfc/nci/rsp.c:463:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
net/nfc/nci/rsp.c-464-}
]

55/2 2026/10/01 05:45 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38931
							output: 38
							thoughts: 3671
						

Thoughts:
**The Interrupted Request and the Persistent Queue**

My core confusion started when I saw `nci_cmd_timer` queuing a work item (`cmd_work`) to `cmd_wq`. This immediately made me wonder about the lifecycle of this timer: when is it started, and more importantly, when is it stopped?

I found that `cmd_timer` is started in `nci_cmd_work` after sending a command frame, and it's meant to time out if no response is received. It's stopped in `nci_rsp_packet` and `nci_close_device`. This seemed reasonable.

However, the real puzzle emerged when I encountered the warning: `workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq`. The call trace pointed to `nci_rsp_packet` as the culprit, specifically when it tries to queue `cmd_work` because `cmd_q` is not empty. This implies that `cmd_q` *should* have been empty by this point, or at least that `cmd_work` should have already processed any pending commands.

My initial thought was that there might be multiple commands accumulating in `cmd_q`. This would happen if `nci_send_cmd` were called multiple times without `cmd_work` clearing the queue. I reasoned that this could only occur if `__nci_request` (which is the primary gateway for sending commands and waits for a response) somehow didn't wait properly.

Then I had an "aha!" moment: what if `wait_for_completion_interruptible_timeout` within `__nci_request` is interrupted by a signal? If this happens, `__nci_request` returns, but crucially, it *doesn't* purge `cmd_q`. If the user space then initiates another request, `nci_send_cmd` is called again, queuing a second command. Meanwhile, the first command's response might arrive later, processed by `nci_rsp_packet`.

This leads to the core race condition I'm grappling with:

1.  An initial command is sent via `__nci_request`. The command is queued to `cmd_q` by `nci_send_cmd`.
2.  `__nci_request`'s `wait_for_completion_interruptible_timeout` is interrupted by a signal.
3.  `__nci_request` returns early (e.g., with `-ERESTARTSYS`). It resets `ndev->req_status` to 0. Crucially, it *does not* purge `cmd_q`.
4.  User space immediately issues another command (e.g., via another ioctl).
5.  The new `nci_request` calls `__nci_request` again. `__nci_request` calls `nci_send_cmd`, which queues a *second* command to `cmd_q`.
6.  At this point, `cmd_cnt` is likely 0 (or the first command is still in flight), and `cmd_work` is either waiting to run or has just finished. Since `cmd_cnt` is 0, `cmd_work` will do nothing, leaving the second command stranded in `cmd_q`.
7.  Later, a response arrives for the *first* command. `nci_rsp_packet` processes it. It checks `!skb_queue_empty(&ndev->cmd_q)`. Since the second command is still there, `cmd_q` is *not* empty.
8.  `nci_rsp_packet` then calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)`, which triggers the work item.
9.  The warning `workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq` arises because the workqueue `nfc2_nci_cmd_wq` is being destroyed or has already been destroyed (e.g., during `nci_unregister_device` or `nci_close_device` if `NCI_UP` was cleared).

My concern is that `nci_close_device` *does* flush the workqueue and delete the timer, but if `NCI_UP` is *not* set, it does *not* purge `cmd_q`. This is where the situation gets tricky. How could `cmd_q` contain an item if `NCI_UP` is not set? My investigation into `nci_open_device` suggests that if the initial reset request times out, `cmd_q` *is* purged.

However, I'm now focused on the scenario where `NCI_UP` *is* set, but a request is interrupted, leaving a command in `cmd_q`. Then, if `nci_unregister_device` is called, it eventually leads to `nci_close_device`. If `NCI_UP` is already cleared by `nci_unregister_device`, `nci_close_device` proceeds to flush `cmd_wq` and delete the timer. But if `nci_rsp_packet` is currently running and about to queue `cmd_work` due to the presence of that second command in `cmd_q`, and then `nci_close_device`'s `flush_workqueue` is called, the workqueue is flushed. If `nci_rsp_packet` then tries to `queue_work` *after* the flush, it will fail.

The real crux of the problem appears to be that an interrupted request leaves a command in `cmd_q`, and subsequent operations (like device closing or unregistering) might attempt to clean up or destroy the workqueue while `nci_rsp_packet` is still operating under the assumption that `cmd_q` needs to be processed. This could lead to the queue being non-empty when the workqueue is no longer valid.


56/2 2026/10/01 05:46 tool grepper
0m Args:
map[Expression:EXPORT_SYMBOL.*nci_send_cmd PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=1390=int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload)
--
net/nfc/nci/core.c-1418-}
net/nfc/nci/core.c:1419:EXPORT_SYMBOL(nci_send_cmd);
net/nfc/nci/core.c-1420-
]

57/2 2026/10/01 05:46 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42754
							output: 32
							thoughts: 13
						

Thoughts:
**My Thought Process**

Okay, so my initial thought upon seeing that the export was successful was one of immediate relief. *Yes, it is exported!* That hurdle is cleared. But that's just the first layer of the process, isn't it? Once something is out in the world, the next logical question is about its reception and utility. So, my mind immediately jumps to: *Do any drivers call it?* This isn't just a passive inquiry; it's about validating the existence and potential impact of what I've just produced. I'm trying to gauge if this export has entered the practical sphere, if it's being actively utilized by those who are meant to engage with it. It's a check for relevance, for whether it's just sitting there as a digital artifact or if it's actually serving a purpose and being integrated into downstream operations or decision-making processes. This question is really about understanding the immediate downstream effects and whether the export has achieved its intended function of being accessible and actionable by the relevant parties.


58/2 2026/10/01 05:46 tool grepper
0m Args:
map[Expression:nci_send_cmd\( PathPrefix:drivers/nfc/]

Results:
map[Output:drivers/nfc/nfcmrvl/fw_dnld.c=130=static int process_state_reset(struct nfcmrvl_private *priv,
--
drivers/nfc/nfcmrvl/fw_dnld.c-141-	priv->fw_dnld.state = STATE_INIT;
drivers/nfc/nfcmrvl/fw_dnld.c:142:	nci_send_cmd(priv->ndev, NCI_OP_CORE_INIT_CMD, 0, NULL);
drivers/nfc/nfcmrvl/fw_dnld.c-143-
--
drivers/nfc/nfcmrvl/fw_dnld.c=147=static int process_state_init(struct nfcmrvl_private *priv,
--
drivers/nfc/nfcmrvl/fw_dnld.c-161-
drivers/nfc/nfcmrvl/fw_dnld.c:162:	nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len,
drivers/nfc/nfcmrvl/fw_dnld.c-163-		     &cmd);
--
drivers/nfc/nfcmrvl/fw_dnld.c=169=static void create_lc(struct nfcmrvl_private *priv)
--
drivers/nfc/nfcmrvl/fw_dnld.c-173-	priv->fw_dnld.state = STATE_OPEN_LC;
drivers/nfc/nfcmrvl/fw_dnld.c:174:	nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CREATE_CMD, 2, param);
drivers/nfc/nfcmrvl/fw_dnld.c-175-}
--
drivers/nfc/nfcmrvl/fw_dnld.c=177=static int process_state_set_ref_clock(struct nfcmrvl_private *priv,
--
drivers/nfc/nfcmrvl/fw_dnld.c-217-	priv->fw_dnld.state = STATE_SET_HI_CONFIG;
drivers/nfc/nfcmrvl/fw_dnld.c:218:	nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len,
drivers/nfc/nfcmrvl/fw_dnld.c-219-		     &cmd);
--
drivers/nfc/nfcmrvl/fw_dnld.c=248=static int process_state_fw_dnld(struct nfcmrvl_private *priv,
--
drivers/nfc/nfcmrvl/fw_dnld.c-314-			priv->fw_dnld.state = STATE_CLOSE_LC;
drivers/nfc/nfcmrvl/fw_dnld.c:315:			nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CLOSE_CMD,
drivers/nfc/nfcmrvl/fw_dnld.c-316-				     1, &conn_id);
--
drivers/nfc/nfcmrvl/fw_dnld.c=354=static int process_state_close_lc(struct nfcmrvl_private *priv,
--
drivers/nfc/nfcmrvl/fw_dnld.c-361-	priv->fw_dnld.state = STATE_BOOT;
drivers/nfc/nfcmrvl/fw_dnld.c:362:	nci_send_cmd(priv->ndev, NCI_OP_PROPRIETARY_BOOT_CMD, 0, NULL);
drivers/nfc/nfcmrvl/fw_dnld.c-363-	return 0;
]

59/2 2026/10/01 05:46 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43749
							output: 38
							thoughts: 104
						

Thoughts:
**My Thought Process Regarding the nfcmrvl Driver and Syzkaller**

Ah, I've just noticed something rather interesting: the `nfcmrvl` driver is making direct calls to `nci_send_cmd`. This isn't something I expected, especially since these calls seem to be originating directly from its own state machine, like during `process_state_reset` or similar operations.

Now, my immediate thought turns to syzkaller. I know syzkaller doesn't have direct access to `nfcmrvl` hardware. Instead, it interacts with `nci_dev` through some sort of virtualized interface. I'm recalling something along the lines of `virtual_ncidev` or a similar mechanism.

This leads me to question: is syzkaller actually testing this `virtual_ncidev`? If it is, and my understanding of how syzkaller operates is correct, then it's quite plausible that these direct `nci_send_cmd` calls from the `nfcmrvl` driver's state machine are indeed being exercised and tested by syzkaller.

My next logical step, then, is to verify this. I need to confirm if there's indeed a virtual NCI driver in play that syzkaller would be leveraging. This would solidify my understanding of the interaction between the `nfcmrvl` driver, `nci_send_cmd`, and syzkaller's testing methodology.


60/2 2026/10/01 05:46 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:nci_send_cmd\( PathPrefix:drivers/nfc/virtual_ncidev.c]

Results:
map[Output:]

61/2 2026/10/01 05:46 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43889
							output: 31
							thoughts: 8
						

Thoughts:
**My Thought Process Regarding a Virtual NCI Driver**

My initial query, the very first spark of investigation, was to ascertain the existence of a "virtual NCI driver." This is a crucial starting point for me because understanding the architecture and available tooling is paramount to any deep dive into a particular technology stack. If such a driver exists, it suggests a certain level of abstraction and potential for simulated environments, which has significant implications for development, testing, and deployment strategies. My mind immediately goes to the possibilities this opens up: the ability to isolate components, to run tests without requiring physical hardware, and to streamline integration efforts. The very concept of a "virtual NCI driver" implies that the Network Control Interface (NCI) functionality, typically associated with physical hardware or specific chipsets for Near Field Communication (NFC), can be emulated or simulated in software. This could be for various purposes, perhaps for developing NFC applications without needing actual NFC hardware readily available, or for testing the interactions of multiple NFC components in a controlled, virtualized environment. It's a question driven by a desire to leverage abstraction layers for efficiency and flexibility.


62/2 2026/10/01 05:46 tool grepper
0m Args:
map[Expression:nci_register_device PathPrefix:drivers/nfc/]

Results:
map[Output:drivers/nfc/fdp/fdp.c=699=int fdp_nci_probe(struct fdp_i2c_phy *phy, const struct nfc_phy_ops *phy_ops,
--
drivers/nfc/fdp/fdp.c-737-
drivers/nfc/fdp/fdp.c:738:	r = nci_register_device(ndev);
drivers/nfc/fdp/fdp.c-739-	if (r)
--
drivers/nfc/nfcmrvl/main.c=92=struct nfcmrvl_private *nfcmrvl_nci_register_dev(enum nfcmrvl_phy phy,
--
drivers/nfc/nfcmrvl/main.c-156-
drivers/nfc/nfcmrvl/main.c:157:	rc = nci_register_device(priv->ndev);
drivers/nfc/nfcmrvl/main.c-158-	if (rc) {
drivers/nfc/nfcmrvl/main.c:159:		nfc_err(dev, "nci_register_device failed %d\n", rc);
drivers/nfc/nfcmrvl/main.c-160-		goto error_fw_dnld_deinit;
--
drivers/nfc/nxp-nci/core.c=135=int nxp_nci_probe(void *phy_id, struct device *pdev,
--
drivers/nfc/nxp-nci/core.c-169-	nci_set_drvdata(info->ndev, info);
drivers/nfc/nxp-nci/core.c:170:	r = nci_register_device(info->ndev);
drivers/nfc/nxp-nci/core.c-171-	if (r < 0) {
--
drivers/nfc/s3fwrn5/core.c=160=int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,
--
drivers/nfc/s3fwrn5/core.c-184-
drivers/nfc/s3fwrn5/core.c:185:	ret = nci_register_device(info->ndev);
drivers/nfc/s3fwrn5/core.c-186-	if (ret < 0) {
--
drivers/nfc/st-nci/core.c=112=int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
--
drivers/nfc/st-nci/core.c-148-
drivers/nfc/st-nci/core.c:149:	r = nci_register_device(ndlc->ndev);
drivers/nfc/st-nci/core.c-150-	if (r) {
--
drivers/nfc/virtual_ncidev.c=133=static int virtual_ncidev_open(struct inode *inode, struct file *file)
--
drivers/nfc/virtual_ncidev.c-152-
drivers/nfc/virtual_ncidev.c:153:	ret = nci_register_device(vdev->ndev);
drivers/nfc/virtual_ncidev.c-154-	if (ret < 0) {
]

63/2 2026/10/01 05:46 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 44782
							output: 41
							thoughts: 25
						

Thoughts:
**Aha! The `virtual_ncidev.c` File!**

My immediate thought upon realizing the nature of the problem was confirmation: "Yes, `virtual_ncidev.c` exists!" This wasn't just a casual observation; it was a critical checkpoint. For a moment, I entertained the possibility that this crucial component might be absent, which would have led down an entirely different investigative path. But the confirmation dispelled that, allowing me to proceed. My subsequent action was a direct consequence of this confirmation: "Let's check `virtual_ncidev.c`." My focus immediately shifted to analyzing this specific file, knowing it likely held the key to understanding the observed behavior or resolving the issue at hand. This wasn't an arbitrary inspection; it was a targeted dive into what I now understood to be a pivotal piece of the puzzle.


64/2 2026/10/01 05:47 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nfc/virtual_ncidev.c Name:virtual_ncidev_open]

Results:
map[SourceCode: 133:	static int virtual_ncidev_open(struct inode *inode, struct file *file)
 134:	{
 135:		int ret = 0;
 136:		struct virtual_nci_dev *vdev;
 137:	
 138:		vdev = kzalloc_obj(*vdev);
 139:		if (!vdev)
 140:			return -ENOMEM;
 141:		vdev->ndev = nci_allocate_device(&virtual_nci_ops,
 142:			VIRTUAL_NFC_PROTOCOLS, 0, 0);
 143:		if (!vdev->ndev) {
 144:			kfree(vdev);
 145:			return -ENOMEM;
 146:		}
 147:	
 148:		mutex_init(&vdev->mtx);
 149:		init_waitqueue_head(&vdev->wq);
 150:		file->private_data = vdev;
 151:		nci_set_drvdata(vdev->ndev, vdev);
 152:	
 153:		ret = nci_register_device(vdev->ndev);
 154:		if (ret < 0) {
 155:			nci_free_device(vdev->ndev);
 156:			mutex_destroy(&vdev->mtx);
 157:			kfree(vdev);
 158:			return ret;
 159:		}
 160:	
 161:		return 0;
 162:	}
 SourceFile:drivers/nfc/virtual_ncidev.c]

65/2 2026/10/01 05:47 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45299
							output: 41
							thoughts: 25
						

Thoughts:
**My Thought Process Regarding Syzkaller's Packet Injection Mechanism**

Right, so my immediate thought upon encountering the mention of `virtual_ncidev` within the context of Syzkaller is a surge of curiosity. Syzkaller, I know, is a powerful fuzzer, and the fact that it's employing `virtual_ncidev` for packet injection signals a specific, and likely sophisticated, approach to testing network-related components. My primary objective here is to dissect *how* this injection actually happens. I need to understand the mechanics. What are the underlying operations? What data structures are involved? Is it a direct manipulation of network interfaces, or is it operating at a higher level of abstraction within the kernel? I want to get a granular view of this process.


66/2 2026/10/01 05:47 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nfc/virtual_ncidev.c Name:virtual_ncidev_write]

Results:
map[SourceCode: 113:	static ssize_t virtual_ncidev_write(struct file *file,
 114:					    const char __user *buf,
 115:					    size_t count, loff_t *ppos)
 116:	{
 117:		struct virtual_nci_dev *vdev = file->private_data;
 118:		struct sk_buff *skb;
 119:	
 120:		skb = alloc_skb(count, GFP_KERNEL);
 121:		if (!skb)
 122:			return -ENOMEM;
 123:	
 124:		if (copy_from_user(skb_put(skb, count), buf, count)) {
 125:			kfree_skb(skb);
 126:			return -EFAULT;
 127:		}
 128:	
 129:		nci_recv_frame(vdev->ndev, skb);
 130:		return count;
 131:	}
 SourceFile:drivers/nfc/virtual_ncidev.c]

67/2 2026/10/01 05:47 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45659
							output: 41
							thoughts: 484
						

Thoughts:
**My Thought Process Unraveling a Potential Race Condition**

My initial realization was quite striking: the `virtual_ncidev_write` function calls `nci_recv_frame` directly. This immediately told me that `syzkaller` has the power to inject *any* packet at *any* time into the NCI device. This is a critical observation for security analysis.

I then followed the logic flow: if `syzkaller` injects a response packet, `nci_recv_frame` will dutifully queue it into `rx_q` and schedule `rx_work` to process it. However, I quickly noticed a crucial check within `nci_recv_frame`: it only proceeds if either `NCI_UP` or `NCI_INIT` is set on the device. This means injections are restricted to these specific device states.

My focus then shifted to the scenario where `NCI_UP` is set. In this case, an injected response packet would indeed be processed by `rx_work`, leading to a call to `nci_rsp_packet`. Now, the critical check within `nci_rsp_packet` is `!skb_queue_empty(&ndev->cmd_q)`. If this condition is true, it leads to `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.

This brought me to the central question: how could `cmd_q` *ever* be non-empty when a response is injected? The answer, I realized, lies in the possibility of `nci_request` being interrupted by a signal. If `nci_request` is interrupted, it leaves a command on `cmd_q`. Then, if `syzkaller` injects a response packet *after* this interruption, `nci_rsp_packet` is called. It would then attempt to complete a request that's already been interrupted (meaning no one is actively waiting for it), and importantly, it would then check `cmd_q`, find it non-empty, and proceed to call `queue_work`.

My final thought was about the safety of `queue_work` in this context. If `NCI_UP` is set, it means the `cmd_wq` is still valid and hasn't been destroyed. The destruction of `cmd_wq` only occurs during `nci_unregister_device`, which is called within `virtual_ncidev_release`. Therefore, in the described scenario where `NCI_UP` is set and `nci_request` is signaled, `queue_work` would indeed be safe, executing `cmd_work` even though the original command is no longer relevant. This sequence of events, while seemingly complex, reveals a potential path for unexpected behavior.


68/2 2026/10/01 05:48 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:drivers/nfc/virtual_ncidev.c Name:virtual_ncidev_release]

Results:
map[SourceCode: SourceFile:]

69/2 2026/10/01 05:48 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46189
							output: 32
							thoughts: 16
						

Thoughts:
**My Thought Process:**

Right, the first thing I need to do is dive into the source code. Specifically, I'm going to focus my attention on the `virtual_ncidev.c` file. My primary objective here is to locate the implementation of the `release` function within that file. This is a critical step in understanding how resources are being managed and deallocated in this particular context.


70/2 2026/10/01 05:48 tool grepper
0m Args:
map[Expression:release PathPrefix:drivers/nfc/virtual_ncidev.c]

Results:
map[Output:drivers/nfc/virtual_ncidev.c=192=static const struct file_operations virtual_ncidev_fops = {
--
drivers/nfc/virtual_ncidev.c-196-	.open = virtual_ncidev_open,
drivers/nfc/virtual_ncidev.c:197:	.release = virtual_ncidev_close,
drivers/nfc/virtual_ncidev.c-198-	.unlocked_ioctl = virtual_ncidev_ioctl,
]

71/2 2026/10/01 05:48 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46354
							output: 41
							thoughts: 12
						

Thoughts:
**A Deep Dive into `virtual_ncidev_close`**

Alright, the first thing that comes to my mind is a need to scrutinize the `virtual_ncidev_close` function. I'm really interested in understanding its inner workings and what it precisely accomplishes. My goal here is to get a comprehensive grasp of its behavior. I want to know, for example, what kind of state it expects the `ncidev` to be in before it's called, and what the post-condition should be after it successfully executes. I'm also keen on tracing the call chain – where does `virtual_ncidev_close` get invoked from, and what are the implications of those call sites? More importantly, I want to identify potential edge cases and error conditions. What happens if the `ncidev` is already closed, or if there are outstanding operations? Are there any resource leaks I need to be aware of, or any race conditions that could arise? Essentially, I'm aiming for a complete and thorough understanding of this function, from its initiation to its final cleanup, and anticipating any potential pitfalls along the way.


72/2 2026/10/01 05:48 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nfc/virtual_ncidev.c Name:virtual_ncidev_close]

Results:
map[SourceCode: 164:	static int virtual_ncidev_close(struct inode *inode, struct file *file)
 165:	{
 166:		struct virtual_nci_dev *vdev = file->private_data;
 167:	
 168:		nci_unregister_device(vdev->ndev);
 169:		nci_free_device(vdev->ndev);
 170:		mutex_destroy(&vdev->mtx);
 171:		kfree(vdev);
 172:	
 173:		return 0;
 174:	}
 SourceFile:drivers/nfc/virtual_ncidev.c]

73/2 2026/10/01 05:48 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46582
							output: 36
							thoughts: 10315
						

Thoughts:
**The Curious Case of the Empty Command Queue and the Destroyed Workqueue**

I've been deep in thought, dissecting the intricate dance of the NFC NCI (Near Field Communication Controller Interface) driver, specifically trying to pinpoint a race condition that leads to a `cannot queue ... on wq` warning. My journey began with the file closing sequence, where `nci_unregister_device` calls `nci_close_device`. If the `NCI_UP` flag is set, `nci_close_device` is supposed to gracefully shut things down: clear `NCI_UP`, purge the command queue (`cmd_q`), and send a reset command.

My initial confusion arose from the `cmd_q` purge. If it's purged, it should be empty. Then, a reset command is queued, `cmd_cnt` is set to 1, and `cmd_work` executes, dequeues the reset, and sends it. This leaves `cmd_q` empty again, and `__nci_request` (which `nci_close_device` uses for the reset) waits for completion. After that, `nci_close_device` proceeds to flush `cmd_wq` and `rx_wq`. The critical observation here is that if `rx_wq` is flushed, then `rx_work` must complete *before* `cmd_wq` is destroyed. This seems safe.

However, the scenario gets complex when `NCI_UP` is *not* set when `virtual_ncidev_close` is invoked. In this case, `nci_close_device` *doesn't* flush `rx_wq`. This is where my concern about `rx_work` potentially running concurrently with `cmd_wq` destruction begins.

The core of the problem, as I see it, hinges on the state of `cmd_q` when `cmd_wq` is destroyed. If `cmd_q` is empty, `nci_rsp_packet` (which runs in `rx_work`) won't call `queue_work` on the now-destroyed `cmd_wq`, thus avoiding the warning. So, the question becomes: how can `cmd_q` be non-empty?

I've thoroughly investigated potential avenues:

*   **`nci_open_device` Failure:** If `nci_open_device` fails, it purges `cmd_q`. This leaves `cmd_q` empty. Even if `nci_open_device` and `virtual_ncidev_close` run concurrently (which `req_lock` prevents from interfering with the queue itself), the failure path cleans up `cmd_q`.

*   **`nci_open_device` Success:** If `nci_open_device` succeeds, it sets `NCI_UP`. Then, if `nci_close_device` is called, it sees `NCI_UP` set, purges `cmd_q`, and proceeds to flush `rx_wq`, preventing the race.

*   **Interrupted `nci_open_device`:** If `nci_open_device` is interrupted (e.g., by a signal), `__nci_request` returns `-ERESTARTSYS`. The code handles this by purging `cmd_q`. Again, `cmd_q` becomes empty.

*   **`nci_request` Issues:** I've considered if `nci_request` might leave `cmd_q` non-empty. However, `nci_request` requires `NCI_UP` to be set, and if it is, `nci_close_device` will purge `cmd_q` anyway. If `nci_request` itself fails and returns an error, it doesn't purge `cmd_q`, but this seems unlikely to lead to a non-empty `cmd_q` during the problematic shutdown sequence.

*   **Timeout in `nci_close_device`'s `__nci_request`:** If the reset command times out, `nci_close_device` flushes `cmd_wq`. This forces `cmd_work` to run and dequeue the command, leaving `cmd_q` empty. `cmd_cnt` being set to 1 ensures `cmd_work` will attempt to dequeue.

My attention then shifted to a critical race scenario involving `rx_work` and `nci_rsp_packet`. The hypothesis is:

1.  `nci_open_device` is called and begins its initialization. It queues a command (let's call it `cmd2`) to `cmd_q`.
2.  A response packet is received for a *previous* command (`cmd1`). The `rx_work` process calls `nci_rsp_packet`.
3.  `nci_rsp_packet` reaches the check: `!skb_queue_empty(&ndev->cmd_q)`. At this point, `cmd_q` is *not* empty because `cmd2` is in it.
4.  Crucially, `rx_work` gets preempted or delayed.
5.  Meanwhile, the original `__nci_request` that was waiting for `cmd2` times out. This happens within `nci_open_device`.
6.  `nci_open_device` fails due to the timeout, purges `cmd_q`, and releases `req_lock`.
7.  `virtual_ncidev_close` (or `nci_unregister_device` called by it) acquires `req_lock`. It sees `NCI_UP` is not set. It proceeds to `flush_workqueue(ndev->cmd_wq)`. This ensures any pending `cmd_work` runs.
8.  `nci_unregister_device` then calls `destroy_workqueue(ndev->cmd_wq)`.
9.  Now, the preempted `rx_work` resumes. It proceeds to call `queue_work(ndev->cmd_wq, &ndev->cmd_work)` because it had previously observed that `cmd_q` was *not* empty.
10. **BOOM!** `queue_work` is called on a destroyed `cmd_wq`, triggering the warning.

The key enabling factor for this race appears to be the possibility of `nci_open_device` being interrupted by a signal, which causes `wait_for_completion_interruptible_timeout` to return immediately, leading to the purge of `cmd_q`, followed by the delayed `rx_work` attempting to queue to a destroyed workqueue. This interruption doesn't require a lengthy timeout as my initial thoughts might have implied. The promptness of signal delivery versus the shutdown sequence is what creates the narrow window for failure. This explanation seems to fit all the observed symptoms and code paths.


74/2 2026/10/01 05:49 tool grepper
0m Args:
map[Expression:clear_bit\(NCI_UP PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=554=static int nci_close_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-562-
net/nfc/nci/core.c:563:	if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
net/nfc/nci/core.c-564-		/* Need to flush the cmd wq in case
]

75/2 2026/10/01 05:49 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 57051
							output: 41
							thoughts: 3551
						

Thoughts:
**A Deep Dive into the Nuances of `cmd_q` Management in the NCI Driver**

My primary concern throughout this examination has been the state of the `cmd_q` within the NCI driver, specifically whether it can ever be left non-empty under various operational scenarios, particularly during device closure.

Initially, I reasoned that `nci_close_device` is the sole function responsible for clearing the `NCI_UP` flag. Consequently, if `NCI_UP` is set, `nci_close_device` *must* clear it and, crucially, purge `cmd_q`. This line of reasoning led me to believe that `cmd_q` would invariably be empty after `nci_close_device` completes.

However, a critical question arose: what if `nci_close_device` purges `cmd_q`, and then `nci_send_cmd` is called *afterward*? I identified `nci_close_device` itself as a potential culprit, as it internally calls `__nci_request`, which in turn calls `nci_send_cmd` to queue a reset command. My subsequent thought process then focused on how this reset command is handled. I noted that if `__nci_request` times out, it doesn't purge `cmd_q`. Instead, `nci_close_device` flushes the `cmd_wq`, forcing `cmd_work` to execute. `cmd_work` then dequeues the reset command, leading me back to the conclusion that `cmd_q` would be empty.

The next layer of complexity emerged when I considered the possibility that `cmd_work` might *not* dequeue the reset command. I hypothesized this could happen if `cmd_cnt` became zero *before* `cmd_work` ran. I traced this back to `nci_rsp_packet`, but realized that `nci_rsp_packet` *increases* `cmd_cnt` to 1, not decrements it to zero. This reinforced my belief that `cmd_work` would indeed dequeue the command, leaving `cmd_q` empty.

Further introspection led me to consider the scenario where `cmd_work` dequeues a command, and then `nci_rsp_packet` is called. If `cmd_work` has already emptied `cmd_q`, `nci_rsp_packet` would correctly refrain from calling `queue_work`.

My exploration then delved into the possibility of `cmd_q` containing multiple commands. I identified a potential race condition: if `nci_request` (and thus `nci_send_cmd`) is called multiple times before `cmd_work` executes, `cmd_q` could indeed hold more than one command. This could occur if `__nci_request` is interrupted by a signal, returning before completing, and then another `nci_request` is initiated. In such a case, `cmd_work` might dequeue one command, leaving another behind. However, I re-evaluated `nci_close_device` and confirmed that if `NCI_UP` is set, it *always* purges `cmd_q`, thereby rectifying this potential overflow.

I then turned my attention to scenarios where `NCI_UP` might *not* be set. My analysis indicated that if `NCI_UP` is not set, `nci_request` cannot be called, precluding the queuing of commands. I also examined `nci_open_device`, confirming that it purges `cmd_q` upon failure, and sets `NCI_UP` on success. The possibility of `nci_open_device` succeeding without setting `NCI_UP` was also ruled out.

The possibility of `nci_close_device` being called twice was also considered. The first call, with `NCI_UP` set, would purge `cmd_q`. If the subsequent reset command timed out, `cmd_q` would eventually be emptied by `cmd_work`. The second call, with `NCI_UP` not set, would simply flush `cmd_wq`.

A deeper look into `cmd_work` revealed the check `if (atomic_read(&ndev->cmd_cnt))`. I considered if `cmd_cnt` could be zero when `cmd_work` runs, but recalled that `nci_close_device` explicitly sets it to 1 before queuing the reset command. This strengthened the argument for `cmd_work` dequeueing the command.

My focus then shifted to the interdependencies between `cmd_work` and `nci_rsp_packet`. I pondered if a spoofed response could be processed *after* `__nci_request` times out but *before* `cmd_wq` is destroyed. If such a response were processed, `nci_rsp_packet` would set `cmd_cnt` to 1. However, if `cmd_q` were empty at that point, `queue_work` would not be called, and the command would not be re-queued.

Ultimately, my persistent questioning and detailed tracing of code paths led me to a crucial realization: the `req_lock` plays a pivotal role. Any function that queues a command to `cmd_q` does so while holding `req_lock` (with the exception of `cmd_work` which uses `spin_lock` implicitly through `skb_dequeue`). Therefore, if `nci_close_device` acquires `req_lock`, no other thread can add commands to `cmd_q` concurrently. Coupled with the fact that `nci_close_device` either purges `cmd_q` (if `NCI_UP` is set) or finds it empty (as other queuing mechanisms are guarded by `NCI_UP` or handle errors by purging), I conclude that `cmd_q` is indeed always empty upon the successful completion of `nci_close_device`. The complex interplay of error handling within `nci_open_device` and the mandatory purge in `nci_close_device` appears to robustly safeguard against unintended `cmd_q` accumulation during critical shutdown sequences.


76/2 2026/10/01 05:50 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_send_frame]

Results:
map[SourceCode:1369:	int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb)
1370:	{
1371:		pr_debug("len %d\n", skb->len);
1372:	
1373:		if (!ndev) {
1374:			kfree_skb(skb);
1375:			return -ENODEV;
1376:		}
1377:	
1378:		/* Get rid of skb owner, prior to sending to the driver. */
1379:		skb_orphan(skb);
1380:	
1381:		/* Send copy to sniffer */
1382:		nfc_send_to_raw_sock(ndev->nfc_dev, skb,
1383:				     RAW_PAYLOAD_NCI, NFC_DIRECTION_TX);
1384:	
1385:		return ndev->ops->send(ndev, skb);
1386:	}
 SourceFile:net/nfc/nci/core.c]

77/2 2026/10/01 05:50 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 60929
							output: 61
							thoughts: 8072
						

Thoughts:
**The Conundrum of the Unseen Command Queue**

I've been wrestling with this peculiar warning: "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq". The traceback clearly indicates that this happens within `__queue_work`, meaning `queue_work` was invoked when the target workqueue (`cmd_wq`) was already in the process of being destroyed. This implies that `queue_work` was called *after* the `__WQ_DESTROYING` flag was set, but *before* the workqueue fully drained.

My initial thought was that the `nci_send_cmd` function, which queues commands to `ndev->cmd_q` and then attempts to schedule `nci_cmd_work`, might be the culprit. I reasoned that if `nci_send_cmd` were called while `cmd_wq` was being destroyed, and `cmd_q` was not empty, this warning could occur. However, my analysis quickly revealed that `nci_send_cmd` is almost universally called via `nci_request` or directly by `nci_open_device`/`nci_close_device`, all of which acquire `req_lock`. The `destroy_workqueue` function is called by `nci_unregister_device`, which itself calls `nci_close_device`. Crucially, `nci_close_device` also tries to acquire `req_lock`. This creates a deadlock scenario where `nci_unregister_device` cannot proceed until `nci_close_device` finishes, and `nci_close_device` cannot acquire `req_lock` if `nci_open_device` or `nci_request` is holding it. This implies that `req_lock` should *not* be held when `destroy_workqueue(ndev->cmd_wq)` is called, thus preventing any concurrent calls to `nci_send_cmd`.

My next avenue of investigation focused on the sequence of events during device unregistration and closure. I considered the interaction between `nci_close_device` and the workqueues. A critical point emerged: `nci_close_device` only flushes the *command* workqueue (`cmd_wq`) if `NCI_UP` was set when it was called. If `NCI_UP` was *not* set, `nci_close_device` returns early without flushing `cmd_wq`, but *also* without flushing `rx_wq`.

This led me to hypothesize that the `rx_work` might be running concurrently with `destroy_workqueue(ndev->cmd_wq)`. If `NCI_UP` was not set, `rx_wq` wouldn't be flushed, allowing `rx_work` to potentially execute. And indeed, the call trace shows `nci_rx_work` leading to `nci_rsp_packet`, which is the function that calls `queue_work` for `nci_cmd_work`.

The core of the problem then became: how can `ndev->cmd_q` be non-empty when `NCI_UP` is not set? My thorough review of `nci_open_device` revealed that in *all* its error paths, it explicitly calls `skb_queue_purge(&ndev->cmd_q)`. If `nci_open_device` succeeds, it sets `NCI_UP`. If it fails, `cmd_q` is purged. This strongly suggests that if `NCI_UP` is not set, `cmd_q` *should* be empty.

I then scrutinized the possibility of `nci_recv_frame` queuing `rx_work` after `NCI_UP` is cleared but before `nci_init` is cleared, and then being preempted. However, `nci_close_device` explicitly flushes `rx_wq` if `NCI_UP` *was* set, ensuring `rx_work` completes before `cmd_wq` is destroyed. If `NCI_UP` was *not* set, `rx_wq` is *not* flushed, allowing `rx_work` to run concurrently with `destroy_workqueue(ndev->cmd_wq)`. But again, the crux is `cmd_q`'s state.

The warning implies `!skb_queue_empty(&ndev->cmd_q)` was true when `nci_rsp_packet` was executing. The only scenario that seems to allow `rx_work` to run concurrently with `destroy_workqueue(ndev->cmd_wq)` is if `NCI_UP` was not set. But if `NCI_UP` was not set, `cmd_q` should be empty. This contradiction is what's been puzzling me.

What if the `NCI_UP` flag is cleared, but `nci_close_device` itself is interrupted *before* it purges `cmd_q`? No, the purge happens early. What if a command is queued *after* `nci_close_device` has finished its `flush_workqueue(ndev->cmd_wq)` but *before* `destroy_workqueue` is called? This seems impossible because the `req_lock` would still be held by `nci_close_device` until it returns.

The warning hinges on `rx_work` running (to call `nci_rsp_packet`) and `cmd_q` being non-empty. The concurrency between `rx_work` and `destroy_workqueue(ndev->cmd_wq)` is only possible if `NCI_UP` was NOT set. This brings me back to the fundamental question: how can `cmd_q` be non-empty when `NCI_UP` is not set, given that `nci_open_device` purges it on failure, and all command queuing mechanisms seem to rely on `NCI_UP` being set or at least `req_lock` being held?

There must be a subtle race condition or an unconsidered path where `cmd_q` gets populated or fails to be purged when `NCI_UP` is cleared. The fact that `nci_rsp_packet` is involved means a response was received, which suggests some level of operation was occurring. The warning is a symptom of `rx_work` outliving `nci_close_device`'s graceful shutdown of `cmd_wq`, while simultaneously finding something in `cmd_q` that shouldn't be there at that point.


78/2 2026/10/01 05:51 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:0 Name:__nci_request SourceTreePrefix:net/nfc/nci/]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_close_device SourceFile:net/nfc/nci/core.c SourceLine:590] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_cmd SourceFile:net/nfc/nci/core.c SourceLine:378] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_close SourceFile:net/nfc/nci/core.c SourceLine:766] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_create SourceFile:net/nfc/nci/core.c SourceLine:747] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_init SourceFile:net/nfc/nci/core.c SourceLine:392] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_reset SourceFile:net/nfc/nci/core.c SourceLine:385] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_discover SourceFile:net/nfc/nci/core.c SourceLine:683] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_mode_set SourceFile:net/nfc/nci/core.c SourceLine:703] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_open_device SourceFile:net/nfc/nci/core.c SourceLine:503] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_open_device SourceFile:net/nfc/nci/core.c SourceLine:521] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_open_device SourceFile:net/nfc/nci/core.c SourceLine:529] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_prop_cmd SourceFile:net/nfc/nci/core.c SourceLine:364] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_request SourceFile:net/nfc/nci/core.c SourceLine:154] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_set_config SourceFile:net/nfc/nci/core.c SourceLine:664]] TruncatedOutput:false]

79/2 2026/10/01 05:51 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 69570
							output: 41
							thoughts: 106
						

Thoughts:
**My Thought Process Regarding NCI Function Calls**

I've just had a realization about the direct invocation of certain functions within the NCI (Near Field Communication Controller Interface) framework. It's become clear to me that `nci_core_cmd`, `nci_core_conn_close`, `nci_core_conn_create`, `nci_core_init`, `nci_core_reset`, `nci_nfcee_discover`, `nci_nfcee_mode_set`, `nci_prop_cmd`, and `nci_set_config` are all calling `__nci_request` directly. This is an important observation as it suggests a common underlying mechanism for handling NCI requests. My next step is to delve into `nci_core_cmd` to understand how this direct call to `__nci_request` is managed and what implications it has for the overall NCI operation.


80/2 2026/10/01 05:52 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_core_cmd]

Results:
map[SourceCode: 369:	int nci_core_cmd(struct nci_dev *ndev, __u16 opcode, size_t len,
 370:			 const __u8 *payload)
 371:	{
 372:		struct nci_cmd_param param;
 373:	
 374:		param.opcode = opcode;
 375:		param.len = len;
 376:		param.payload = payload;
 377:	
 378:		return __nci_request(ndev, nci_generic_req, &param,
 379:				     msecs_to_jiffies(NCI_CMD_TIMEOUT));
 380:	}
 SourceFile:net/nfc/nci/core.c]

81/2 2026/10/01 05:52 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 69916
							output: 38
							thoughts: 31
						

Thoughts:
**My Thought Process Unraveling a Potential Race Condition**

Okay, here's what's running through my head. I'm looking at this code, and I've just spotted something that immediately sets off an alarm bell. My core observation is that `__nci_request` is being called, and at the *exact same moment*, I realize it's *not* being called while holding `req_lock`. This is a critical detail.

My immediate follow-up question, born from years of wrestling with kernel-level concurrency and resource management, is: "Wait a minute, is `nci_core_cmd` actually exported?" This isn't just a casual query; it's a direct investigation into the implications of that initial observation. If `nci_core_cmd` *is* exported, it means other modules or even interrupt handlers could be calling into this critical path. If that's the case, and `__nci_request` is being invoked without the protective `req_lock` being held, then we have a classic race condition scenario. Multiple threads or contexts could be attempting to manipulate the same underlying NCI request structures concurrently, without proper synchronization.

This line of thinking is rooted in the fundamental principle of protecting shared mutable state. Locks are the primary mechanism for ensuring that only one execution context can access and modify critical data at any given time. The absence of that lock around a call that clearly deals with request management strongly suggests a potential for data corruption, deadlocks, or other unpredictable behavior if this code path is exercised under specific, albeit perhaps rare, concurrency conditions. My focus is now on verifying the export status of `nci_core_cmd` as the next crucial step in assessing the severity and scope of this potential vulnerability.


82/2 2026/10/01 05:52 tool grepper
0m Args:
map[Expression:EXPORT_SYMBOL.*nci_core_cmd PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=369=int nci_core_cmd(struct nci_dev *ndev, __u16 opcode, size_t len,
--
net/nfc/nci/core.c-380-}
net/nfc/nci/core.c:381:EXPORT_SYMBOL(nci_core_cmd);
net/nfc/nci/core.c-382-
]

83/2 2026/10/01 05:52 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70090
							output: 41
							thoughts: 14
						

Thoughts:
**A Moment of Realization and a New Avenue of Inquiry**

Ah, yes! A breakthrough, it seems. A certain line of reasoning has just clicked into place, a fundamental understanding has been solidified. It's always a satisfying feeling when the pieces of a complex puzzle suddenly align, revealing the underlying structure with newfound clarity. This realization opens up a fresh perspective, a new angle from which to approach the problem at hand. And with this new understanding, a specific question immediately springs to mind, demanding exploration: What about `nci_prop_cmd`? This particular element, or perhaps function, has just emerged as a crucial consideration. I need to delve into its implications and determine its role in the broader context of my current work.


84/2 2026/10/01 05:52 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_prop_cmd]

Results:
map[SourceCode: 356:	int nci_prop_cmd(struct nci_dev *ndev, __u8 oid, size_t len, const __u8 *payload)
 357:	{
 358:		struct nci_cmd_param param;
 359:	
 360:		param.opcode = nci_opcode_pack(NCI_GID_PROPRIETARY, oid);
 361:		param.len = len;
 362:		param.payload = payload;
 363:	
 364:		return __nci_request(ndev, nci_generic_req, &param,
 365:				     msecs_to_jiffies(NCI_CMD_TIMEOUT));
 366:	}
 SourceFile:net/nfc/nci/core.c]

85/2 2026/10/01 05:52 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70352
							output: 32
							thoughts: 44
						

Thoughts:
**My Realization:**

Okay, I'm reviewing this code and a critical flaw just jumped out at me. It looks like `__nci_request` is being called in a situation where `req_lock` is *not* being held. This is a major concurrency problem. Even worse, it's not even checking if the NCI is `UP` before proceeding. This is asking for trouble. I need to figure out what logic path is leading to `nci_prop_cmd` being invoked in this state. That's the key to understanding the root cause and fixing this bug.


86/2 2026/10/01 05:52 tool grepper
0m Args:
map[Expression:nci_prop_cmd\( PathPrefix:drivers/nfc/]

Results:
map[Output:drivers/nfc/fdp/fdp.c=108=static inline int fdp_nci_patch_cmd(struct nci_dev *ndev, u8 type)
drivers/nfc/fdp/fdp.c-109-{
drivers/nfc/fdp/fdp.c:110:	return nci_prop_cmd(ndev, NCI_OP_PROP_PATCH_OID, sizeof(type), &type);
drivers/nfc/fdp/fdp.c-111-}
--
drivers/nfc/fdp/fdp.c=113=static inline int fdp_nci_set_production_data(struct nci_dev *ndev, u8 len,
--
drivers/nfc/fdp/fdp.c-115-{
drivers/nfc/fdp/fdp.c:116:	return nci_prop_cmd(ndev, NCI_OP_PROP_SET_PDATA_OID, len, data);
drivers/nfc/fdp/fdp.c-117-}
--
drivers/nfc/s3fwrn5/nci.c=48=int s3fwrn5_nci_rf_configure(struct s3fwrn5_info *info, const char *fw_name)
--
drivers/nfc/s3fwrn5/nci.c-73-	fw_cfg.clk_req = 0xff;
drivers/nfc/s3fwrn5/nci.c:74:	ret = nci_prop_cmd(info->ndev, NCI_PROP_FW_CFG,
drivers/nfc/s3fwrn5/nci.c-75-		sizeof(fw_cfg), (__u8 *)&fw_cfg);
--
drivers/nfc/s3fwrn5/nci.c-82-
drivers/nfc/s3fwrn5/nci.c:83:	ret = nci_prop_cmd(info->ndev, NCI_PROP_START_RFREG, 0, NULL);
drivers/nfc/s3fwrn5/nci.c-84-	if (ret < 0) {
--
drivers/nfc/s3fwrn5/nci.c-95-		memcpy(set_rfreg.data, fw->data+i, len);
drivers/nfc/s3fwrn5/nci.c:96:		ret = nci_prop_cmd(info->ndev, NCI_PROP_SET_RFREG,
drivers/nfc/s3fwrn5/nci.c-97-			len+1, (__u8 *)&set_rfreg);
--
drivers/nfc/s3fwrn5/nci.c-107-	stop_rfreg.checksum = checksum & 0xffff;
drivers/nfc/s3fwrn5/nci.c:108:	ret = nci_prop_cmd(info->ndev, NCI_PROP_STOP_RFREG,
drivers/nfc/s3fwrn5/nci.c-109-		sizeof(stop_rfreg), (__u8 *)&stop_rfreg);
--
drivers/nfc/st-nci/core.c=19=static int st_nci_init(struct nci_dev *ndev)
--
drivers/nfc/st-nci/core.c-25-
drivers/nfc/st-nci/core.c:26:	return nci_prop_cmd(ndev, ST_NCI_CORE_PROP,
drivers/nfc/st-nci/core.c-27-			sizeof(struct nci_mode_set_cmd), (__u8 *)&cmd);
--
drivers/nfc/st-nci/ndlc.c=55=void ndlc_close(struct llt_ndlc *ndlc)
--
drivers/nfc/st-nci/ndlc.c-64-
drivers/nfc/st-nci/ndlc.c:65:	nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP,
drivers/nfc/st-nci/ndlc.c-66-		     sizeof(struct nci_mode_set_cmd), (__u8 *)&cmd);
]

87/2 2026/10/01 05:52 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71484
							output: 37
							thoughts: 55
						

Thoughts:
**A Deep Dive into NCI Command Flows and Syzkaller's Mocking Strategy**

My immediate thought, when encountering `virtual_ncidev` within the context of syzkaller, is to scrutinize its interaction with the core NCI (Near Field Communication) command interfaces. Specifically, I'm trying to pinpoint the exact pathways through which `virtual_ncidev` might be invoking fundamental NCI operations. My initial hypothesis, and a quick mental check, suggests that it *doesn't* directly call `nci_prop_cmd` or `nci_core_cmd`. This is a crucial distinction, as these represent the more generalized, protocol-level command execution points.

This leads me to a more granular question: does `virtual_ncidev` interact with `nci_core_conn_create`? Understanding this specific function call is vital. `nci_core_conn_create`, being responsible for the establishment of NCI connections, would represent a foundational step in many NCI operations. If `virtual_ncidev` *does* utilize this function, it implies that syzkaller's virtual device is simulating the creation of these connections, which in turn would allow it to then test subsequent operations that rely on an established connection. If it *doesn't*, then I need to investigate what alternative mechanisms `virtual_ncidev` employs to simulate the NCI environment and its command execution. This line of inquiry is central to understanding how syzkaller effectively fuzzes the NCI stack without relying on physical hardware.


88/2 2026/10/01 05:53 tool grepper
0m Args:
map[Expression:nci_core_conn_create\( PathPrefix:net/nfc/nci/]

Results:
map[Output:net/nfc/nci/core.c=425=int nci_nfcc_loopback(struct nci_dev *ndev, const void *data, size_t data_len,
--
net/nfc/nci/core.c-435-	if (conn_id < 0) {
net/nfc/nci/core.c:436:		r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCC_LOOPBACK,
net/nfc/nci/core.c-437-					 0, 0, NULL);
--
net/nfc/nci/core.c=708=static void nci_core_conn_create_req(struct nci_dev *ndev, const void *opt)
--
net/nfc/nci/core.c-714-
net/nfc/nci/core.c:715:int nci_core_conn_create(struct nci_dev *ndev, u8 destination_type,
net/nfc/nci/core.c-716-			 u8 number_destination_params,
]

89/2 2026/10/01 05:53 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71853
							output: 34
							thoughts: 35
						

Thoughts:
**My Thought Process on Investigating the `nci_nfcc_loopback` Call Chain**

Alright, so I'm looking at the code, and I see this function, `nci_nfcc_loopback`, making a call to `nci_core_conn_create`. My immediate next thought is, "Okay, that's a direct dependency, but where does `nci_nfcc_loopback` itself originate from?" I need to trace the invocation chain backward to understand the context and purpose of this `nci_core_conn_create` operation. Is it initiated by a higher-level NCI command, a specific event, or perhaps an internal state transition within the NFC controller's management layer? Understanding the caller will illuminate *why* a loopback connection is being established and what the implications are for the overall NCI interaction.


90/2 2026/10/01 05:53 tool grepper
0m Args:
map[Expression:nci_nfcc_loopback\( PathPrefix:net/nfc/]

Results:
map[Output:net/nfc/nci/core.c=409=static void nci_nfcc_loopback_cb(void *context, struct sk_buff *skb, int err)
--
net/nfc/nci/core.c-424-
net/nfc/nci/core.c:425:int nci_nfcc_loopback(struct nci_dev *ndev, const void *data, size_t data_len,
net/nfc/nci/core.c-426-		      struct sk_buff **resp)
]

91/2 2026/10/01 05:53 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 72056
							output: 37
							thoughts: 23
						

Thoughts:
**My Thought Process Regarding `nci_nfcc_loopback`**

This is quite peculiar. I'm trying to understand the lifecycle and usage of the `nci_nfcc_loopback` function, and I'm encountering a complete void. My initial query, "Who calls `nci_nfcc_loopback`?", has yielded no satisfactory results. This suggests that, as a direct caller, there's no explicit invocation of this function within the codebase I'm examining.

This leads me to a crucial follow-up question, a logical consequence of the first: "Wait, is it exported?". If no one is calling it directly, the possibility arises that it might be intended for external use, perhaps by other modules or even external entities, and therefore is exposed through an interface. If it *is* exported, then its absence of internal callers implies that its usage is entirely external. If it's *not* exported, then its existence without any internal callers raises a significant red flag – it might be dead code, a remnant of previous development, or perhaps intended for a very specific, as-yet-undiscovered scenario. I need to investigate its export status to make further sense of its role.


92/2 2026/10/01 05:53 tool grepper
0m Args:
map[Expression:EXPORT_SYMBOL.*nci_nfcc_loopback PathPrefix:net/nfc/]

Results:
map[Output:net/nfc/nci/core.c=425=int nci_nfcc_loopback(struct nci_dev *ndev, const void *data, size_t data_len,
--
net/nfc/nci/core.c-471-}
net/nfc/nci/core.c:472:EXPORT_SYMBOL(nci_nfcc_loopback);
net/nfc/nci/core.c-473-
]

93/2 2026/10/01 05:53 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 72226
							output: 43
							thoughts: 2924
						

Thoughts:
**The NCI Workqueue Race Condition: A Deep Dive**

It seems I've stumbled upon a rather insidious race condition within the NCI (Near Communication Interface) subsystem, specifically concerning its command queuing and workqueue management. My initial thought process began with a simple observation: the `nci_request` function is the sole mechanism for queuing commands, and it critically relies on the `NCI_UP` flag being set. This immediately implies that the `cmd_q` (command queue) *should* inherently be empty if `NCI_UP` is not active.

However, my mind then turned to a specific scenario: a race where `NCI_UP` is indeed set, but `nci_close_device` is invoked. The `nci_close_device` function, as I recall, clears `NCI_UP`, purges the `cmd_q`, sends a reset command, and waits for its completion. A crucial detail here is its handling of timeouts: if a timeout occurs, it returns, flushes `cmd_wq`, unlocks `req_lock`, and then, importantly, flushes `rx_wq`. My focus sharpened on this last step. If `rx_wq` is flushed, it means that `rx_work` (the handler for the receive workqueue) is guaranteed to finish *before* `cmd_wq` is destroyed. This would prevent `rx_work` from ever attempting to call `queue_work` after `cmd_wq` has been deallocated.

This led me to question: what if `rx_work` is *not* flushed? Is there *any* way that `flush_workqueue(ndev->rx_wq)` is *not* called within `nci_close_device`? The code snippet I'm recalling clearly shows `flush_workqueue(ndev->rx_wq)` at the *end* of `nci_close_device`. This suggests it's always called.

But then I remembered a critical conditional exit: `nci_close_device` has an early return path if `NCI_UP` is *not* set when it's called. In this specific early exit, it *does not* call `flush_workqueue(ndev->rx_wq)`. This is a significant loophole! It means `rx_work` *can* run concurrently with `destroy_workqueue(ndev->cmd_wq)`.

The next puzzle piece was this: how could `cmd_q` *ever* be non-empty when `NCI_UP` is not set, given the early return from `nci_close_device`? I explored the `nci_open_device` flow. If `nci_open_device` is called, it sets `NCI_INIT` and then attempts `__nci_request(nci_reset_req)`. If this succeeds, it proceeds to `__nci_request(nci_init_req)`. Now, imagine this `nci_init_req` call is interrupted by a signal. The `else` block would then be executed, which includes `skb_queue_purge(&ndev->cmd_q)`. So, `cmd_q` is emptied.

However, a disturbing thought emerged: what if `skb_queue_purge` is called, but `rx_work` is *already running* and has *already checked* if `!skb_queue_empty(&ndev->cmd_q)`? This is a race I've actually identified before. Picture this:
*   **CPU 1:** `nci_open_device` is attempting `__nci_request(nci_init_req)`.
*   **CPU 1:** `nci_send_cmd` queues a second command (`cmd2`) to `cmd_q`.
*   **CPU 2:** `rx_work` is processing a *spoofed* or duplicate response for an earlier command (`cmd1`).
*   **CPU 2:** `nci_rsp_packet` reaches the crucial check: `if (!skb_queue_empty(&ndev->cmd_q))`.
*   **CPU 2:** It sees `cmd_q` is *not* empty (because `cmd2` is there).
*   **CPU 2:** It's about to call `queue_work(ndev->cmd_wq, &ndev->cmd_work)`.
*   **CPU 2:** Gets preempted!
*   **CPU 1:** `__nci_request` is interrupted by a signal.
*   **CPU 1:** `nci_open_device` purges `cmd_q`.
*   **CPU 1:** releases `req_lock`.
*   **CPU 3:** `virtual_ncidev_close` is called, which invokes `nci_unregister_device`.
*   **CPU 3:** `nci_close_device` acquires `req_lock`.
*   **CPU 3:** Sees `NCI_UP` is not set. It flushes `cmd_wq` and returns early.
*   **CPU 3:** `destroy_workqueue(ndev->cmd_wq)` is executed.
*   **CPU 2:** Resumes! It now calls `queue_work(ndev->cmd_wq, &ndev->cmd_work)` on a *destroyed* workqueue. *Boom!* A warning.

The question then becomes: is this race truly possible? Yes, `rx_work` is a workqueue thread; it can be preempted at any point. If it's preempted right after checking `!skb_queue_empty` but before `queue_work`, and then `nci_open_device` is interrupted, `cmd_q` purged, and `cmd_wq` destroyed, the stage is set.

Crucially, I realized there's no lock protecting the `skb_queue_empty` check and the subsequent `queue_work` call. This makes the race "100% possible."

To reproduce this, the strategy involves a precise sequence:
1.  Open the `/dev/virtual_nci` device.
2.  Have a separate thread initiate `NFC_CMD_DEV_UP` via netlink, which will block waiting for the `nci_reset_req` response.
3.  Inject a valid `NCI_OP_CORE_RESET_RSP` packet by writing to `/dev/virtual_nci`.
4.  The thread will then send `nci_init_req` and block again.
5.  Here's the key: inject a *proprietary* response packet (with `NCI_GID_PROPRIETARY`). This is vital because proprietary responses, unlike standard ones, do *not* call `nci_req_complete`. They fall through to a point where they check `!skb_queue_empty(&ndev->cmd_q)`.
6.  At the *exact moment* `rx_work` is checking `!skb_queue_empty` (and it *will* be true because `nci_init_req` is pending), I need to preempt `rx_work`. This can be achieved by sending a signal (e.g., `SIGUSR1`) to the thread executing `NFC_CMD_DEV_UP`.
7.  The signal interrupts `wait_for_completion_interruptible_timeout` within `__nci_request`. Consequently, `nci_open_device` fails, `cmd_q` is purged, and importantly, `NCI_UP` is *not* set.
8.  Close the `/dev/virtual_nci` file descriptor. This triggers `nci_unregister_device`.
9.  Because `NCI_UP` is not set, `nci_close_device` does *not* flush `rx_wq`.
10. `nci_unregister_device` proceeds to `destroy_workqueue(ndev->cmd_wq)`.
11. Finally, `rx_work` resumes and attempts to call `queue_work(ndev->cmd_wq, &ndev->cmd_work)` on the now-destroyed workqueue, leading to the crash.

To make this reproducible with higher certainty, a loop can be employed. This loop would continuously inject proprietary responses while the main thread is attempting `NFC_CMD_DEV_UP`, then signal the thread, and close the device.

My reasoning has led me to this critical race, where the lack of synchronization around the `cmd_q` emptiness check and the subsequent workqueue queuing, combined with the early exit path in `nci_close_device` and the specific behavior of proprietary responses, creates a window for a fatal use-after-free scenario on `cmd_wq`.


94/2 2026/10/01 05:54 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:include/net/nfc/nci_core.h Name:nci_opcode_gid]

Results:
map[SourceCode: SourceFile:]

95/2 2026/10/01 05:54 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 75198
							output: 37
							thoughts: 14
						

Thoughts:
**My Thought Process for Addressing `NCI_GID_PROPRIETARY`**

Alright, the immediate impulse is to delve into `NCI_GID_PROPRIETARY`. This isn't just a casual glance; it's a targeted investigation, a crucial step in understanding the landscape. My mind immediately goes to what this specific identifier signifies within the broader `NCI` context. Is it a core entity, a configuration parameter, a specific data structure, or perhaps a proprietary extension that requires special handling?

My expertise tells me that proprietary elements often introduce unique challenges. They might lack standardized documentation, rely on internal implementations, or even present subtle incompatibilities with more open standards. Therefore, my initial thought is one of cautious optimism mixed with a healthy dose of due diligence. I anticipate that understanding `NCI_GID_PROPRIETARY` will likely involve digging into its definition, its intended use case, and how it interacts with other components.

I'm thinking about the potential implications. Does this identifier suggest a vendor-specific implementation, a legacy system component, or perhaps a cutting-edge, yet undocumented, feature? Each of these possibilities carries different weight and requires a distinct approach. My internal knowledge base is already cross-referencing `NCI` and `PROPRIETARY` to see if any prior patterns or known issues come to mind.

Before I make any definitive moves or draw conclusions, my thought is to systematically gather information. This means I'll be looking for its declaration, examining any associated code or configuration files, and, if possible, seeking out any internal documentation or expert knowledge within the organization regarding its purpose and behavior. The goal isn't just to *see* `NCI_GID_PROPRIETARY`, but to *understand* its role and its impact on the system or process we're analyzing. This is where the real work begins.


96/2 2026/10/01 05:54 tool grepper
0m Args:
map[Expression:#define NCI_GID_PROPRIETARY PathPrefix:include/net/nfc/]

Results:
map[Output:include/net/nfc/nci.h-196-#define NCI_GID_NFCEE_MGMT					0x2
include/net/nfc/nci.h:197:#define NCI_GID_PROPRIETARY					0xf
include/net/nfc/nci.h-198-
]

97/2 2026/10/01 05:54 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 75323
							output: 45
							thoughts: 288
						

Thoughts:
**My Thought Process Regarding NCI Response Packet Construction**

Right, so I've confirmed that the Group ID (GID) in question is indeed `0xf`. My current focus is on dissecting the packet format for a typical NCI (Near Field Communication Interface) response.

The NCI Control Header, I know, occupies the first three bytes. Let's break that down. Byte 0 is a composite field, incorporating the Message Type (MT), Packet Boundary Flag (PBF), and Group ID (GID). For a response packet, the MT is defined as `NCI_MT_RSP_PKT`, which translates to the value `2`. The PBF is generally set to `0`, as expected for a standard response. And, as we've established, the GID is `NCI_GID_PROPRIETARY`, represented by `0xf`. Therefore, constructing Byte 0 involves a bitwise OR operation: `(2 << 5) | 0xf`. Shifting `2` left by 5 bits gives us `0x40`, and ORing that with `0xf` results in `0x4f`.

Moving on to Byte 1, this is dedicated to the Opcode ID (OID). For general proprietary responses, this field can be quite flexible; I can use any value, and `0` is a common and straightforward choice.

Byte 2 indicates the Payload Length. Again, for these simple cases, a payload length of `0` is perfectly acceptable.

So, if I were to construct a generic proprietary response packet with these parameters, it would simply be `[0x4f, 0x00, 0x00]`.

Now, specifically for a reset response, the composition shifts slightly. The MT remains `2` for a response, but the GID changes. For a *core* reset response, the GID is `NCI_GID_CORE`, which is `0`. This means Byte 0 will be `(2 << 5) | 0`, resulting in `0x40`. The OID for a core reset response is `NCI_OP_CORE_RESET_RSP`, which is `0`. So, Byte 1 will also be `0`.

The Payload Length here is where I need to be a bit more precise. It's not just the status byte; it includes additional information. I need to consult the definition for `nci_core_reset_rsp_packet` to determine the exact number of bytes required for the payload. It's crucial to get this right for proper interpretation by the receiving entity.


98/2 2026/10/01 05:55 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/rsp.c Name:nci_core_reset_rsp_packet]

Results:
map[SourceCode:  28:	static void nci_core_reset_rsp_packet(struct nci_dev *ndev,
  29:					      const struct sk_buff *skb)
  30:	{
  31:		const struct nci_core_reset_rsp *rsp = (void *)skb->data;
  32:	
  33:		pr_debug("status 0x%x\n", rsp->status);
  34:	
  35:		/* Handle NCI 1.x ver */
  36:		if (skb->len != 1) {
  37:			if (rsp->status == NCI_STATUS_OK) {
  38:				ndev->nci_ver = rsp->nci_ver;
  39:				pr_debug("nci_ver 0x%x, config_status 0x%x\n",
  40:					 rsp->nci_ver, rsp->config_status);
  41:			}
  42:	
  43:			nci_req_complete(ndev, rsp->status);
  44:		}
  45:	}
 SourceFile:net/nfc/nci/rsp.c]

99/2 2026/10/01 05:55 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 75954
							output: 57
							thoughts: 408
						

Thoughts:
**My Thought Process for Triggering the Warning**

Alright, let's break down how I plan to force that specific warning. The core of the issue, as I see it, hinges on the `skb->len` value when `nci_req_complete` is called. If `skb->len` is anything other than exactly 1, that function is invoked. This means I need to ensure the length is at least 2, or ideally 3, to bypass that particular guard.

To achieve this, I've constructed a specific sequence. My first step is to craft a NCI reset response that has the correct length. I've decided on sending `[0x40, 0x00, 0x03, 0x00, 0x10, 0x00]`. Let's examine the bytes:

*   **Byte 0 (0x40):** This sets the Message Type (MT) to 2 and the Group Identifier (GID) to 0.
*   **Byte 1 (0x00):** This is the Operation Identifier (OID), which is 0 in this case.
*   **Byte 2 (0x03):** Crucially, this is the Length field, set to 3. This is what I need to be greater than 1.
*   **Byte 3 (0x00):** This indicates the Status, which is OK (0).
*   **Byte 4 (0x10):** This specifies the NCI Version as 1.0.
*   **Byte 5 (0x00):** This is the Configuration Status.

Therefore, the reset response I'll be sending is `\x40\x00\x03\x00\x10\x00`.

Following this, I need to handle the proprietary response. My understanding is that this will be `\x4f\x00\x00`.

Now, let's lay out the step-by-step execution plan. This is the precise sequence I'll follow:

1.  **Open the device:** I'll start by opening `/dev/virtual_nci`. This establishes the communication channel.
2.  **Initiate device up:** I'll spin up a separate thread. This thread will be responsible for sending `NFC_CMD_DEV_UP` through netlink. This is the initial signal to bring the NCI device online.
3.  **Wait for reset request:** I need to give the system a moment to process the `NFC_CMD_DEV_UP` command. This is where the `nci_reset_req` is expected to be sent.
4.  **Send the crafted reset response:** Once I believe the reset request has been issued, I'll write my carefully crafted reset response, `\x40\x00\x03\x00\x10\x00`, to the file descriptor obtained in step 1. This is where I'm deliberately setting `skb->len` to 6, which will cause `nci_req_complete` to be called with a length greater than 1.
5.  **Trigger initialization request:** My expectation is that upon receiving my reset response, the thread (monitoring the netlink socket) will then send an `nci_init_req`.
6.  **Send proprietary response:** Immediately after the `nci_init_req` is sent (or in response to it, depending on timing), I'll send the proprietary response, `\x4f\x00\x00`.
7.  **Signal the thread:** To ensure all threads and operations are properly synchronized or to signal a specific state change, I'll send `SIGUSR1` to the thread I started earlier.
8.  **Close the communication channel:** Finally, I'll close the file descriptor for `/dev/virtual_nci`, cleaning up the resources.

This entire sequence is designed to hit the specific condition that triggers the warning. The strategy feels solid, logical, and repeatable. I'm confident this will achieve the desired outcome.


100/2 2026/10/01 05:55 tool codeexpert
11m Args:
map[Question:Is there any other way to trigger the warning "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" in nci_rsp_packet?]

Results:
map[Answer:Based on an analysis of the Linux kernel source code, here is the breakdown of how the warning `"workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq"` can be triggered in `nci_rsp_packet`:

### 1. Mechanism of the Warning
The warning is emitted by `__queue_work()` in `kernel/workqueue.c`:
```c
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
	     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
		       work->func, wq->name)))
```
This warning triggers under the following conditions:
1. `wq->flags` has `__WQ_DESTROYING` or `__WQ_DRAINING` set on `ndev->cmd_wq`.
2. `!is_chained_work(ndev->cmd_wq)` is true. Because `nci_rsp_packet()` is invoked from `nci_rx_work()` running on `ndev->rx_wq` (a different workqueue), `is_chained_work(ndev->cmd_wq)` is always false when called from `nci_rsp_packet()`.
3. In `nci_rsp_packet()` (`net/nfc/nci/rsp.c`), `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is executed because `!skb_queue_empty(&ndev->cmd_q)` is true.

### 2. How `ndev->cmd_wq` Enters `__WQ_DESTROYING` or `__WQ_DRAINING`
Across the entire kernel:
- `__WQ_DESTROYING` is only set in `destroy_workqueue(wq)`.
- `__WQ_DRAINING` is only set in `drain_workqueue(wq)` (which is called by `destroy_workqueue()`).

In the NFC/NCI subsystem, `ndev->cmd_wq` is a private, dedicated single-thread workqueue allocated per NCI device (`create_singlethread_workqueue`). The only locations where `destroy_workqueue(ndev->cmd_wq)` is invoked are:
1. `nci_register_device()` on error teardown (`destroy_cmd_wq_exit`).
2. `nci_unregister_device()` in `net/nfc/nci/core.c`.

### 3. Is there any other way outside of device unregistration?
**No**, there is no other independent code path or subsystem operation that can set `__WQ_DESTROYING` or `__WQ_DRAINING` on `ndev->cmd_wq`:
- **Registration error path (`nci_register_device`)**: If device registration fails after creating `cmd_wq`, `destroy_workqueue(ndev->cmd_wq)` is called. However, at that point the device has not been registered, no lower-level driver can pass received frames up via `nci_recv_frame()`, and `rx_wq` has not started processing, so `nci_rsp_packet()` cannot be executing in this path.
- **Normal close / reset (`nci_close_device`)**: Normal device close flushes `ndev->cmd_wq` via `flush_workqueue(ndev->cmd_wq)`. `flush_workqueue()` (`__flush_workqueue`) does not set `__WQ_DRAINING` or `__WQ_DESTROYING`.

Therefore, the warning **strictly requires `nci_unregister_device()`** (device unregistration / removal / unbind) to have started and called `destroy_workqueue(ndev->cmd_wq)`.

### 4. Variations within the Device Unregistration Flow
While there is no other code path outside `nci_unregister_device()`, the race condition triggering the warning can arise through a few different circumstances during unregistration because `destroy_workqueue(ndev->cmd_wq)` is called before `destroy_workqueue(ndev->rx_wq)`:
- **Device was not `NCI_UP` when unregistered**: If the device was never opened or if `nci_open_device()` failed, `nci_close_device()` returns early without purging `cmd_q` or flushing `rx_wq`.
- **Interrupted reset command in `nci_close_device()`**: `__nci_request(ndev, nci_reset_req, ...)` waits using `wait_for_completion_interruptible_timeout()`. If interrupted by a fatal signal or timeout, pending commands or responses can still linger in `cmd_q` and `rx_q`.
- **Driver-specific command queueing**: Certain drivers (e.g. `nfcmrvl/fw_dnld.c`) can queue commands directly to `ndev->cmd_q` via `nci_send_cmd()`.

### Limitations and Unverified Parts
- This analysis was conducted strictly through static code examination of the kernel repository. Specific syzbot / bug tracker history or specific out-of-tree module behavior was not verified.]

101/3 2026/10/01 05:55 agent codeexpert
11m Model:
core

Results:
map[Answer:Based on an analysis of the Linux kernel source code, here is the breakdown of how the warning `"workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq"` can be triggered in `nci_rsp_packet`:

### 1. Mechanism of the Warning
The warning is emitted by `__queue_work()` in `kernel/workqueue.c`:
```c
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
	     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
		       work->func, wq->name)))
```
This warning triggers under the following conditions:
1. `wq->flags` has `__WQ_DESTROYING` or `__WQ_DRAINING` set on `ndev->cmd_wq`.
2. `!is_chained_work(ndev->cmd_wq)` is true. Because `nci_rsp_packet()` is invoked from `nci_rx_work()` running on `ndev->rx_wq` (a different workqueue), `is_chained_work(ndev->cmd_wq)` is always false when called from `nci_rsp_packet()`.
3. In `nci_rsp_packet()` (`net/nfc/nci/rsp.c`), `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is executed because `!skb_queue_empty(&ndev->cmd_q)` is true.

### 2. How `ndev->cmd_wq` Enters `__WQ_DESTROYING` or `__WQ_DRAINING`
Across the entire kernel:
- `__WQ_DESTROYING` is only set in `destroy_workqueue(wq)`.
- `__WQ_DRAINING` is only set in `drain_workqueue(wq)` (which is called by `destroy_workqueue()`).

In the NFC/NCI subsystem, `ndev->cmd_wq` is a private, dedicated single-thread workqueue allocated per NCI device (`create_singlethread_workqueue`). The only locations where `destroy_workqueue(ndev->cmd_wq)` is invoked are:
1. `nci_register_device()` on error teardown (`destroy_cmd_wq_exit`).
2. `nci_unregister_device()` in `net/nfc/nci/core.c`.

### 3. Is there any other way outside of device unregistration?
**No**, there is no other independent code path or subsystem operation that can set `__WQ_DESTROYING` or `__WQ_DRAINING` on `ndev->cmd_wq`:
- **Registration error path (`nci_register_device`)**: If device registration fails after creating `cmd_wq`, `destroy_workqueue(ndev->cmd_wq)` is called. However, at that point the device has not been registered, no lower-level driver can pass received frames up via `nci_recv_frame()`, and `rx_wq` has not started processing, so `nci_rsp_packet()` cannot be executing in this path.
- **Normal close / reset (`nci_close_device`)**: Normal device close flushes `ndev->cmd_wq` via `flush_workqueue(ndev->cmd_wq)`. `flush_workqueue()` (`__flush_workqueue`) does not set `__WQ_DRAINING` or `__WQ_DESTROYING`.

Therefore, the warning **strictly requires `nci_unregister_device()`** (device unregistration / removal / unbind) to have started and called `destroy_workqueue(ndev->cmd_wq)`.

### 4. Variations within the Device Unregistration Flow
While there is no other code path outside `nci_unregister_device()`, the race condition triggering the warning can arise through a few different circumstances during unregistration because `destroy_workqueue(ndev->cmd_wq)` is called before `destroy_workqueue(ndev->rx_wq)`:
- **Device was not `NCI_UP` when unregistered**: If the device was never opened or if `nci_open_device()` failed, `nci_close_device()` returns early without purging `cmd_q` or flushing `rx_wq`.
- **Interrupted reset command in `nci_close_device()`**: `__nci_request(ndev, nci_reset_req, ...)` waits using `wait_for_completion_interruptible_timeout()`. If interrupted by a fatal signal or timeout, pending commands or responses can still linger in `cmd_q` and `rx_q`.
- **Driver-specific command queueing**: Certain drivers (e.g. `nfcmrvl/fw_dnld.c`) can queue commands directly to `ndev->cmd_q` via `nci_send_cmd()`.

### Limitations and Unverified Parts
- This analysis was conducted strictly through static code examination of the kernel repository. Specific syzbot / bug tracker history or specific out-of-tree module behavior was not verified.]

Instruction:
You are a capable Linux kernel developer tasked with researching complex questions
about kernel source code. You will be given a concrete question, and need to provide
a concrete answer.
Research the question using targeted, efficient tool calls. Don't make assumptions,
or rely on your previous knowledge about the kernel source code, use available tools
to access the actual source code. Keep your tool calls focused and limited to the
scope of the question. Do not explore tangential code paths or perform unbounded searches.
Use all available sources of information:
 - kernel source code
 - documentation in the Documentation dir in the source tree

Do not guess file names or file paths and attempt to read them without
verifying their existence first using content search or directory listing tools.
If a file, symbol, or directory is not found via content search (grepper) or
directory listing (codesearch-dir-index), treat it as completely absent.
Do not attempt to guess alternative names, extensions, or directories.

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
   once you have located the relevant code or definitions. If a symbol or function cannot
   be found after targeted searches, conclude with the best available information rather
   than continuing repetitive searches.

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


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Is there any other way to trigger the warning "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" in nci_rsp_packet?

102/4 2026/10/01 05:55 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 2437
							output: 30
							thoughts: 109
						

Thoughts:
**My Thought Process on Triggering the `workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq` Warning**

Ah, an interesting question about a specific kernel warning. I need to figure out what could cause the "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" message to appear in the context of `nci_rsp_packet`. This implies a failure to schedule a work item (`nci_cmd_work`) onto a particular workqueue (`nfc2_nci_cmd_wq`) when processing an NFC (Near Field Communication) response packet.

My immediate strategy is to delve into the kernel code. I'm looking for where `nci_rsp_packet` is handled and, more importantly, where `nci_cmd_work` is *scheduled* to run on `nfc2_nci_cmd_wq`. The warning itself tells me that the scheduling operation failed.

To do this, I'll leverage my tools. I'll start by using `grepper` or `codesearch-definition-source` (whichever is most efficient for this particular codebase) to find all occurrences of `nci_rsp_packet`. This will likely lead me to the core NFC controller driver or related NFC subsystems within the kernel.

Once I've located the relevant code sections that process `nci_rsp_packet`, I'll be specifically hunting for:

1.  **The workqueue definition:** Where is `nfc2_nci_cmd_wq` actually created and initialized? Understanding its properties (e.g., is it a bound workqueue, a system workqueue, or a custom one?) might be relevant.
2.  **The work item definition:** What is `nci_cmd_work`? Is it a `struct work_struct` or a `struct delayed_work`? What function does it point to?
3.  **The scheduling call:** Where and how is `nci_cmd_work` scheduled onto `nfc2_nci_cmd_wq`? I'll be looking for calls to functions like `queue_work()`, `queue_delayed_work()`, or similar workqueue scheduling APIs.
4.  **The failure condition:** The warning implies a failure. I need to understand *why* `queue_work()` or its equivalents might fail. Common reasons include:
    *   The workqueue being shut down or destroyed.
    *   The workqueue being saturated (though this usually results in different warnings or behavior).
    *   The work item being already pending or executed.
    *   The workqueue being associated with a CPU that is offline or in a problematic state.
    *   Resource exhaustion within the kernel related to workqueues.

By tracing the execution path from receiving an `nci_rsp_packet` to the point where `nci_cmd_work` is *attempted* to be queued, and then examining the conditions under which that queuing operation can fail, I should be able to identify the specific scenarios that trigger this warning. I'll be looking for any checks or conditions around the `queue_work()` call that might lead to its failure, or conversely, the absence of such checks where they might be prudent.


103/4 2026/10/01 05:55 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nci_rsp_packet]

Results:
map[SourceCode: 381:	void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)
 382:	{
 383:		__u16 rsp_opcode = nci_opcode(skb->data);
 384:	
 385:		/* we got a rsp, stop the cmd timer */
 386:		timer_delete(&ndev->cmd_timer);
 387:	
 388:		pr_debug("NCI RX: MT=rsp, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n",
 389:			 nci_pbf(skb->data),
 390:			 nci_opcode_gid(rsp_opcode),
 391:			 nci_opcode_oid(rsp_opcode),
 392:			 nci_plen(skb->data));
 393:	
 394:		/* strip the nci control header */
 395:		skb_pull(skb, NCI_CTRL_HDR_SIZE);
 396:	
 397:		if (nci_opcode_gid(rsp_opcode) == NCI_GID_PROPRIETARY) {
 398:			if (nci_prop_rsp_packet(ndev, rsp_opcode, skb) == -ENOTSUPP) {
 399:				pr_err("unsupported rsp opcode 0x%x\n",
 400:				       rsp_opcode);
 401:			}
 402:	
 403:			goto end;
 404:		}
 405:	
 406:		switch (rsp_opcode) {
 407:		case NCI_OP_CORE_RESET_RSP:
 408:			nci_core_reset_rsp_packet(ndev, skb);
 409:			break;
 410:	
 411:		case NCI_OP_CORE_INIT_RSP:
 412:			nci_core_init_rsp_packet(ndev, skb);
 413:			break;
 414:	
 415:		case NCI_OP_CORE_SET_CONFIG_RSP:
 416:			nci_core_set_config_rsp_packet(ndev, skb);
 417:			break;
 418:	
 419:		case NCI_OP_CORE_CONN_CREATE_RSP:
 420:			nci_core_conn_create_rsp_packet(ndev, skb);
 421:			break;
 422:	
 423:		case NCI_OP_CORE_CONN_CLOSE_RSP:
 424:			nci_core_conn_close_rsp_packet(ndev, skb);
 425:			break;
 426:	
 427:		case NCI_OP_RF_DISCOVER_MAP_RSP:
 428:			nci_rf_disc_map_rsp_packet(ndev, skb);
 429:			break;
 430:	
 431:		case NCI_OP_RF_DISCOVER_RSP:
 432:			nci_rf_disc_rsp_packet(ndev, skb);
 433:			break;
 434:	
 435:		case NCI_OP_RF_DISCOVER_SELECT_RSP:
 436:			nci_rf_disc_select_rsp_packet(ndev, skb);
 437:			break;
 438:	
 439:		case NCI_OP_RF_DEACTIVATE_RSP:
 440:			nci_rf_deactivate_rsp_packet(ndev, skb);
 441:			break;
 442:	
 443:		case NCI_OP_NFCEE_DISCOVER_RSP:
 444:			nci_nfcee_discover_rsp_packet(ndev, skb);
 445:			break;
 446:	
 447:		case NCI_OP_NFCEE_MODE_SET_RSP:
 448:			nci_nfcee_mode_set_rsp_packet(ndev, skb);
 449:			break;
 450:	
 451:		default:
 452:			pr_err("unknown rsp opcode 0x%x\n", rsp_opcode);
 453:			break;
 454:		}
 455:	
 456:		nci_core_rsp_packet(ndev, rsp_opcode, skb);
 457:	end:
 458:		kfree_skb(skb);
 459:	
 460:		/* trigger the next cmd */
 461:		atomic_set(&ndev->cmd_cnt, 1);
 462:		if (!skb_queue_empty(&ndev->cmd_q))
 463:			queue_work(ndev->cmd_wq, &ndev->cmd_work);
 464:	}
 SourceFile:net/nfc/nci/rsp.c]

104/4 2026/10/01 05:55 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 3937
							output: 16
							thoughts: 122
						

Thoughts:
**My Thought Process Regarding Workqueue Warnings**

I've just been looking at lines 460-463 in the code, which seem to be responsible for triggering the next command. Specifically, I see:

```c
	/* trigger the next cmd */
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```

This code sets a command counter to 1 and then, if there are pending commands in `ndev->cmd_q`, it queues a work item (`ndev->cmd_work`) onto a specific workqueue (`ndev->cmd_wq`).

However, this immediately brings up a question for me: where does the warning "workqueue: cannot queue ... on wq ..." originate? I haven't seen this warning myself yet, but I know it's a common issue when dealing with workqueues in the kernel. I need to understand the conditions under which that warning is emitted.

My immediate next step is to investigate the source of this warning. I'll likely do this by performing a `grep` for the specific string "cannot queue" within the kernel source code. Alternatively, I could dive directly into `kernel/workqueue.c`, as that's the core component responsible for managing workqueues, and look for the logic that generates this particular error message. My goal is to pinpoint the exact conditions that lead to this failure to queue a work item, so I can ensure my own code avoids them.


105/4 2026/10/01 05:55 tool grepper
0m Args:
map[Expression:cannot queue]

Results:
map[Output:drivers/ata/libata-pmp.c=109=int sata_pmp_qc_defer_cmd_switch(struct ata_queued_cmd *qc)
--
drivers/ata/libata-pmp.c-128-		 * other links to set ap->excl_link, ensuring that the currently
drivers/ata/libata-pmp.c:129:		 * active link cannot queue any more.
drivers/ata/libata-pmp.c-130-		 */
--
drivers/net/ethernet/intel/idpf/idpf_txrx.c=4119=static void idpf_vport_intr_ena_irq_all(struct idpf_vport *vport,
--
drivers/net/ethernet/intel/idpf/idpf_txrx.c-4159- * rather than just cancel, so that a poll tail still running past
drivers/net/ethernet/intel/idpf/idpf_txrx.c:4160: * napi_disable() cannot queue them again behind the drain.
drivers/net/ethernet/intel/idpf/idpf_txrx.c-4161- */
--
drivers/scsi/53c700.c=523=find_empty_slot(struct NCR_700_Host_Parameters *hostdata)
--
drivers/scsi/53c700.c-544-	 * indicates the slot is in use and cannot be run by the IRQ
drivers/scsi/53c700.c:545:	 * finish routine.  If we cannot queue the command when it
drivers/scsi/53c700.c-546-	 * is properly build, we then change to NCR_700_SLOT_QUEUED */
--
drivers/target/target_core_user.c=992=static struct se_dev_plug *tcmu_plug_device(struct se_device *se_dev)
--
drivers/target/target_core_user.c-1007- * Returns:
drivers/target/target_core_user.c:1008: * -1 we cannot queue internally or to the ring.
drivers/target/target_core_user.c-1009- *  0 success
--
drivers/usb/dwc2/gadget.c=1627=static int dwc2_hsotg_send_reply(struct dwc2_hsotg *hsotg,
--
drivers/usb/dwc2/gadget.c-1657-	if (ret) {
drivers/usb/dwc2/gadget.c:1658:		dev_warn(hsotg->dev, "%s: cannot queue req\n", __func__);
drivers/usb/dwc2/gadget.c-1659-		return ret;
--
fs/ceph/mds_client.c=3633=static void __do_request(struct ceph_mds_client *mdsc,
--
fs/ceph/mds_client.c-3726-		/*
fs/ceph/mds_client.c:3727:		 * We cannot queue async requests since the caps and delegated
fs/ceph/mds_client.c-3728-		 * inodes are bound to the session. Just return -EJUKEBOX and
--
include/media/videobuf2-core.h=465=struct vb2_buf_ops {
--
include/media/videobuf2-core.h-503- *		time this is called. Set to 0 when the queue is canceled.
include/media/videobuf2-core.h:504: *		If this is 1, then you cannot queue buffers from a request.
include/media/videobuf2-core.h-505- * @uses_requests: requests are used for this queue. Set to 1 the first time
include/media/videobuf2-core.h-506- *		a request is queued. Set to 0 when the queue is canceled.
include/media/videobuf2-core.h:507: *		If this is 1, then you cannot queue buffers directly.
include/media/videobuf2-core.h-508- * @allow_cache_hints: when set user-space can pass cache management hints in
--
kernel/bpf/cpumap.c=520=static void __cpu_map_entry_free(struct work_struct *work)
--
kernel/bpf/cpumap.c-524-	/* This cpu_map_entry have been disconnected from map and one
kernel/bpf/cpumap.c:525:	 * RCU grace-period have elapsed. Thus, XDP cannot queue any
kernel/bpf/cpumap.c-526-	 * new packets and cannot change/set flush_needed that can
--
kernel/workqueue.c=2321=static void __queue_work(int cpu, struct workqueue_struct *wq,
--
kernel/workqueue.c-2351-	if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
kernel/workqueue.c:2352:		     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
kernel/workqueue.c-2353-			       work->func, wq->name))) {
--
net/mac80211/ap.c=297=void ieee80211_ap_rx_queued_frame(struct ieee80211_sub_if_data *sdata,
--
net/mac80211/ap.c-301-
net/mac80211/ap.c:302:	/* rx.c cannot queue any non-action frames to AP interfaces */
net/mac80211/ap.c-303-	if (WARN_ON(!ieee80211_is_action(mgmt->frame_control)))
--
net/netfilter/nfnetlink_queue.c=1114=nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
--
net/netfilter/nfnetlink_queue.c-1143-	/* Check if someone already holds another reference to
net/netfilter/nfnetlink_queue.c:1144:	 * unconfirmed ct.  If so, we cannot queue the skb:
net/netfilter/nfnetlink_queue.c-1145-	 * concurrent modifications of nf_conn->ext are not
]

106/4 2026/10/01 05:56 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 5689
							output: 35
							thoughts: 257
						

Thoughts:
**My Thoughts on the Workqueue Code**

Ah, I've stumbled upon something interesting in `kernel/workqueue.c`. Take a look at this snippet:

```c
	if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
		     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
			       work->func, wq->name))) {
```

My immediate reaction is to focus on that `WARN_ONCE` call. It's triggered precisely when the workqueue `wq` has its flags set to `__WQ_DESTROYING` or `__WQ_DRAINING`. And the warning message itself is quite clear: `"workqueue: cannot queue %ps on wq %s\n"`.

I can see that `%ps` here refers to `work->func`, which in this specific context is `nci_cmd_work`. The `wq->name`, also provided in the warning, appears to be a formatted string like `nfc%d_nci_cmd_wq`, with an example being `nfc2_nci_cmd_wq`.

This tells me that an attempt is being made to queue `nci_cmd_work` onto a workqueue that is either in the process of being destroyed or is currently draining its pending work. The `WARN_ONCE` is there to flag this as an unexpected and potentially problematic situation, unless, as the `!is_chained_work(wq)` condition suggests, the work being queued is somehow part of a chained work structure that *is* permitted in this state.

To fully grasp the exact conditions and the logic behind this warning, I need to dig deeper into `kernel/workqueue.c`, specifically around line 2350, to examine the precise evaluation of `!is_chained_work(wq)` and how it interacts with the `wq->flags`.


107/4 2026/10/01 05:56 tool read-file
0m Args:
map[File:kernel/workqueue.c FirstLine:2335 LineCount:40]

Results:
map[Contents:2335:				"Use system_{percpu|dfl}_wq instead.\n",
2336:				work->func);
2337:	
2338:		/*
2339:		 * While a work item is PENDING && off queue, a task trying to
2340:		 * steal the PENDING will busy-loop waiting for it to either get
2341:		 * queued or lose PENDING.  Grabbing PENDING and queueing should
2342:		 * happen with IRQ disabled.
2343:		 */
2344:		lockdep_assert_irqs_disabled();
2345:	
2346:		/*
2347:		 * For a draining wq, only works from the same workqueue are
2348:		 * allowed. The __WQ_DESTROYING helps to spot the issue that
2349:		 * queues a new work item to a wq after destroy_workqueue(wq).
2350:		 */
2351:		if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
2352:			     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
2353:				       work->func, wq->name))) {
2354:			struct work_offq_data offqd;
2355:	
2356:			/*
2357:			 * State on entry: PENDING is set, work is off-queue (no
2358:			 * insert_work() has run).
2359:			 *
2360:			 * Returning without clearing PENDING would leave the work
2361:			 * in a weird state (PENDING=1, PWQ=0, entry empty)
2362:			 */
2363:			work_offqd_unpack(&offqd, *work_data_bits(work));
2364:			set_work_pool_and_clear_pending(work, offqd.pool_id,
2365:							work_offqd_pack_flags(&offqd));
2366:			return;
2367:		}
2368:		rcu_read_lock();
2369:	retry:
2370:		/* pwq which will be used unless @work is executing elsewhere */
2371:		if (req_cpu == WORK_CPU_UNBOUND) {
2372:			if (wq->flags & WQ_UNBOUND)
2373:				cpu = wq_select_unbound_cpu(raw_smp_processor_id());
2374:			else
]

108/4 2026/10/01 05:56 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 6649
							output: 37
							thoughts: 52
						

Thoughts:
**My Thought Process Regarding Workqueue State Flags**

Alright, so my current focus is on understanding the precise distinction between the `__WQ_DRAINING` and `__WQ_DESTROYING` flags within the workqueue subsystem. To get a clear picture, I'm going to dive into the source code. My immediate plan is to `grep` for these specific flag definitions and their usage within the `kernel/workqueue.c` file. This will allow me to trace how these states are set, what operations they guard, and ultimately, what behavior they signify in terms of the workqueue's lifecycle. I'm expecting to find that `__WQ_DRAINING` likely pertains to the process of emptying the queue of pending work items before a more significant state change, while `__WQ_DESTROYING` probably indicates the final stages of deallocation and resource cleanup for the workqueue. By examining the context of their usage, I should be able to solidify my understanding of their independent and possibly sequential roles.


109/4 2026/10/01 05:56 tool grepper
0m Args:
map[Expression:__WQ_DRAINING|__WQ_DESTROYING PathPrefix:kernel/workqueue.c]

Results:
map[Output:kernel/workqueue.c=2321=static void __queue_work(int cpu, struct workqueue_struct *wq,
--
kernel/workqueue.c-2347-	 * For a draining wq, only works from the same workqueue are
kernel/workqueue.c:2348:	 * allowed. The __WQ_DESTROYING helps to spot the issue that
kernel/workqueue.c-2349-	 * queues a new work item to a wq after destroy_workqueue(wq).
kernel/workqueue.c-2350-	 */
kernel/workqueue.c:2351:	if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
kernel/workqueue.c-2352-		     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
--
kernel/workqueue.c=4302=void drain_workqueue(struct workqueue_struct *wq)
--
kernel/workqueue.c-4309-	 * hotter than drain_workqueue() and already looks at @wq->flags.
kernel/workqueue.c:4310:	 * Use __WQ_DRAINING so that queue doesn't have to check nr_drainers.
kernel/workqueue.c-4311-	 */
--
kernel/workqueue.c-4313-	if (!wq->nr_drainers++)
kernel/workqueue.c:4314:		wq->flags |= __WQ_DRAINING;
kernel/workqueue.c-4315-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c-4340-	if (!--wq->nr_drainers)
kernel/workqueue.c:4341:		wq->flags &= ~__WQ_DRAINING;
kernel/workqueue.c-4342-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c=6138=void destroy_workqueue(struct workqueue_struct *wq)
--
kernel/workqueue.c-6150-	mutex_lock(&wq->mutex);
kernel/workqueue.c:6151:	wq->flags |= __WQ_DESTROYING;
kernel/workqueue.c-6152-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c=7185=static int workqueue_apply_unbound_cpumask(const cpumask_var_t unbound_cpumask)
--
kernel/workqueue.c-7194-	list_for_each_entry(wq, &workqueues, list) {
kernel/workqueue.c:7195:		if (!(wq->flags & WQ_UNBOUND) || (wq->flags & __WQ_DESTROYING))
kernel/workqueue.c-7196-			continue;
]

110/4 2026/10/01 05:56 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 7438
							output: 49
							thoughts: 95
						

Thoughts:
**My Thought Process Regarding Workqueue Draining and Destruction**

My current focus is on understanding the lifecycle and state transitions of workqueues, specifically `cmd_wq`, within this codebase. I've established that `drain_workqueue` is responsible for setting the `__WQ_DRAINING` flag, indicating that no new work should be submitted and all pending work should be completed. In parallel, `destroy_workqueue` performs a more aggressive action by setting the `__WQ_DESTROYING` flag and, crucially, it *also* invokes `drain_workqueue` as part of its cleanup process.

This understanding leads me to a critical next step: to comprehensively investigate how and where these draining and destruction mechanisms are triggered for `ndev->cmd_wq`. My immediate objective is to trace all invocations of `drain_workqueue` and `destroy_workqueue` that operate on `ndev->cmd_wq`. Furthermore, I need to identify any other code paths where `cmd_wq` itself is directly manipulated, as these could also have implications for its operational state and potential for being drained or destroyed. To achieve this, I'm initiating a thorough search for all references to `cmd_wq` across the entire codebase. This will allow me to map out the complete usage pattern and potential exit points for this specific workqueue.


111/4 2026/10/01 05:56 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:5 Name:nci_dev::cmd_wq]

Results:
map[References:[map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_close_device SourceFile:net/nfc/nci/core.c SourceLine:567 SourceSnippet: 562:	
 563:		if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
 564:			/* Need to flush the cmd wq in case
 565:			 * there is a queued/running cmd_work
 566:			 */
 567:			flush_workqueue(ndev->cmd_wq);
 568:			timer_delete_sync(&ndev->cmd_timer);
 569:			timer_delete_sync(&ndev->data_timer);
 570:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 571:				nci_data_exchange_complete(ndev, NULL,
 572:							   ndev->cur_conn_id,
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_close_device SourceFile:net/nfc/nci/core.c SourceLine:601 SourceSnippet: 596:		ndev->ops->close(ndev);
 597:	
 598:		clear_bit(NCI_INIT, &ndev->flags);
 599:	
 600:		/* Flush cmd and tx wq */
 601:		flush_workqueue(ndev->cmd_wq);
 602:	
 603:		timer_delete_sync(&ndev->cmd_timer);
 604:		timer_delete_sync(&ndev->data_timer);
 605:	
 606:		if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_cmd_timer SourceFile:net/nfc/nci/core.c SourceLine:627 SourceSnippet: 622:	static void nci_cmd_timer(struct timer_list *t)
 623:	{
 624:		struct nci_dev *ndev = timer_container_of(ndev, t, cmd_timer);
 625:	
 626:		atomic_set(&ndev->cmd_cnt, 1);
 627:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
 628:	}
] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1261 SourceSnippet:1256:	
1257:		ndev->flags = 0;
1258:	
1259:		INIT_WORK(&ndev->cmd_work, nci_cmd_work);
1260:		snprintf(name, sizeof(name), "%s_nci_cmd_wq", dev_name(dev));
1261:		ndev->cmd_wq = create_singlethread_workqueue(name);
1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1262 SourceSnippet:1257:		ndev->flags = 0;
1258:	
1259:		INIT_WORK(&ndev->cmd_work, nci_cmd_work);
1260:		snprintf(name, sizeof(name), "%s_nci_cmd_wq", dev_name(dev));
1261:		ndev->cmd_wq = create_singlethread_workqueue(name);
1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1306 SourceSnippet:1301:	
1302:	destroy_rx_wq_exit:
1303:		destroy_workqueue(ndev->rx_wq);
1304:	
1305:	destroy_cmd_wq_exit:
1306:		destroy_workqueue(ndev->cmd_wq);
1307:	
1308:	exit:
1309:		return rc;
1310:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_rsp_packet SourceFile:net/nfc/nci/rsp.c SourceLine:463 SourceSnippet: 458:		kfree_skb(skb);
 459:	
 460:		/* trigger the next cmd */
 461:		atomic_set(&ndev->cmd_cnt, 1);
 462:		if (!skb_queue_empty(&ndev->cmd_q))
 463:			queue_work(ndev->cmd_wq, &ndev->cmd_work);
 464:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1415 SourceSnippet:1410:	
1411:		if (plen)
1412:			skb_put_data(skb, payload, plen);
1413:	
1414:		skb_queue_tail(&ndev->cmd_q, skb);
1415:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
1416:	
1417:		return 0;
1418:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_unregister_device SourceFile:net/nfc/nci/core.c SourceLine:1332 SourceSnippet:1327:		 */
1328:		set_bit(NCI_UNREG, &ndev->flags);
1329:	
1330:		nci_close_device(ndev);
1331:	
1332:		destroy_workqueue(ndev->cmd_wq);
1333:		destroy_workqueue(ndev->rx_wq);
1334:		destroy_workqueue(ndev->tx_wq);
1335:	
1336:		list_for_each_entry_safe(conn_info, n, &ndev->conn_info_list, list) {
1337:			list_del(&conn_info->list);
]] TruncatedOutput:false]

112/4 2026/10/01 05:56 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9307
							output: 22
							thoughts: 225
						

Thoughts:
**My Thought Process on Triggering the `workqueue: cannot queue` Warning**

I'm currently wrestling with a very specific kernel warning: "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" within the context of `nci_rsp_packet`. My immediate question is about *triggering* this warning, and specifically, if there are *other* ways to make it happen besides whatever the user might already be aware of.

This "any other way" phrasing immediately makes me pause. It implies a known method, perhaps from a syzbot report, a bug tracker, or even a previously identified scenario. My first instinct is to delve into the codebase and commit history to see if this specific warning has been encountered and documented before.

My mental toolkit for this involves a few key approaches:

1.  **Codebase Exploration:** I need to look for any existing reports or discussions about this particular warning. This would involve searching git logs, syzbot reports, or bug tracking systems for mentions of `nci_cmd_work`, `nfc2_nci_cmd_wq`, and the `cannot queue` message.

2.  **Git Log Analysis:** While `git log` itself isn't a direct execution tool, it's invaluable for understanding code evolution. I'd be looking for commits that *introduced* this workqueue, modified its behavior, or addressed related issues. I'm also considering whether there might be commit *messages* or comments within the codebase itself that shed light on potential failure conditions.

3.  **Tooling Limitations:** I'm keenly aware of the tools available to me. I know `grepper` can search kernel sources, but I need to confirm its scope. Specifically, I'm questioning if `grepper` can access or search within the `.git` directory, as that's where much of the historical information and commit metadata resides. My understanding is that `.git` is typically excluded from indexing and searches. I need to verify this assumption.

Essentially, I'm trying to build a comprehensive understanding of the conditions that lead to this specific `workqueue` failure by looking for both documented and potential undocumented pathways. My current line of inquiry is trying to ascertain if there's already a known trigger mechanism before I start formulating entirely new ones.


113/4 2026/10/01 05:56 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:cannot queue nci_cmd_work]

Results:
map[Output:]

114/4 2026/10/01 05:57 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9556
							output: 47
							thoughts: 51
						

Thoughts:
**Understanding the Origin of the `nci_rsp_packet` Warning**

My immediate concern upon encountering this warning in `nci_rsp_packet` is to thoroughly understand its root cause. To do this, the most logical first step is to dissect *where* and *how* `nci_rsp_packet` is being invoked within the codebase. My primary investigative path will be to meticulously trace all references to `nci_rsp_packet`. This exhaustive search will allow me to identify every call site, thereby providing crucial context for the circumstances under which this function is executed and, by extension, the warning is generated. This foundational understanding is paramount before I can even begin to formulate a solution.


115/4 2026/10/01 05:57 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/rsp.c IncludeSnippetLines:5 Name:nci_rsp_packet]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rx_work SourceFile:net/nfc/nci/core.c SourceLine:1579 SourceSnippet:1574:			}
1575:	
1576:			/* Process frame */
1577:			switch (nci_mt(skb->data)) {
1578:			case NCI_MT_RSP_PKT:
1579:				nci_rsp_packet(ndev, skb);
1580:				break;
1581:	
1582:			case NCI_MT_NTF_PKT:
1583:				nci_ntf_packet(ndev, skb);
1584:				break;
]] TruncatedOutput:false]

116/4 2026/10/01 05:57 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9845
							output: 35
							thoughts: 255
						

Thoughts:
**My Thought Process on NCI Response Packet Handling**

Alright, let me trace this carefully. I'm looking at the NCI (Near Field Communication) stack, specifically how responses are handled. I've just observed that `nci_rsp_packet` is being invoked from within `nci_rx_work`. This immediately raises a question in my mind: on which workqueue is `nci_rx_work` actually running? A quick check reveals it's executing on `ndev->rx_wq`.

Now, my attention shifts to what `nci_rsp_packet` does at its conclusion. I see this critical snippet:

```c
	/* trigger the next cmd */
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```

The key takeaway here is the call to `queue_work(ndev->cmd_wq, &ndev->cmd_work)`. This is where things get interesting. I'm noticing a potential concurrency issue: `nci_rsp_packet` is running on `ndev->rx_wq`, which is a *different* workqueue than the one where the subsequent command work (`ndev->cmd_work`) is being queued (`ndev->cmd_wq`).

This divergence in workqueues brings to mind a specific internal kernel function: `is_chained_work(wq)` in `kernel/workqueue.c`. I need to understand precisely what `is_chained_work` does, and how it relates to this scenario of queuing work on one workqueue from within a context running on another. My next step is to dive into the definition of `is_chained_work` to fully grasp its implications here.


117/4 2026/10/01 05:57 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/workqueue.c Name:is_chained_work]

Results:
map[SourceCode:2280:	/*
2281:	 * Test whether @work is being queued from another work executing on the
2282:	 * same workqueue.
2283:	 */
2284:	static bool is_chained_work(struct workqueue_struct *wq)
2285:	{
2286:		struct worker *worker;
2287:	
2288:		worker = current_wq_worker();
2289:		/*
2290:		 * Return %true iff I'm a worker executing a work item on @wq.  If
2291:		 * I'm @worker, it's safe to dereference it without locking.
2292:		 */
2293:		return worker && worker->current_pwq->wq == wq;
2294:	}
 SourceFile:kernel/workqueue.c]

118/4 2026/10/01 05:57 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10356
							output: 41
							thoughts: 598
						

Thoughts:
**The Inner Workings of Workqueue Management in NCI Device Handling**

I'm currently delving into the intricacies of how workqueues are managed within the NCI (Near Field Communication) device framework, specifically focusing on the conditions under which `ndev->cmd_wq` might be in a "destroying" or "draining" state.

My initial observation is that the `is_chained_work(wq)` function, which checks if the current worker is actively executing a work item on a given workqueue `wq`, returns `true` under specific circumstances. Crucially, when `nci_rsp_packet` is running, it's executing within the `nci_rx_work` context, which is associated with `ndev->rx_wq`. This means that for the worker processing `nci_rsp_packet`, `worker->current_pwq->wq` is `ndev->rx_wq`, *not* `ndev->cmd_wq`. Consequently, calling `is_chained_work(ndev->cmd_wq)` in this scenario will correctly return `false`.

The perplexing question then arises: under what conditions would `ndev->cmd_wq` exhibit the `wq->flags & (__WQ_DESTROYING | __WQ_DRAINING)` flags? I've identified the two primary operations that would set these flags:

1.  `destroy_workqueue(ndev->cmd_wq)`
2.  `drain_workqueue(ndev->cmd_wq)`

The next logical step is to pinpoint the callers of these workqueue destruction or draining functions with respect to `ndev->cmd_wq`. My investigation reveals two key areas:

Firstly, within the error handling path of `nci_register_device(struct nci_dev *ndev)`, I see the following:

```c
destroy_rx_wq_exit:
	destroy_workqueue(ndev->rx_wq);
destroy_cmd_wq_exit:
	destroy_workqueue(ndev->cmd_wq);
```
This raises a question: is it possible for `nci_rsp_packet` to execute during such an error path in `nci_register_device`? It seems unlikely, but I need to be certain.

Secondly, and more importantly, I've examined `nci_unregister_device(struct nci_dev *ndev)`:

```c
void nci_unregister_device(struct nci_dev *ndev)
{
	struct nci_conn_info *conn_info, *n;

	/* This flag tests whether nci_unregister_device is called */
	if (test_and_set_bit(NCI_UNREG, &ndev->flags))
		return;

	mutex_lock(&ndev->req_lock);

	if (test_bit(NCI_UP, &ndev->flags)) {
		nci_close_device(ndev);
	}

	mutex_unlock(&ndev->req_lock);

	destroy_workqueue(ndev->cmd_wq);
	destroy_workqueue(ndev->rx_wq);
	destroy_workqueue(ndev->tx_wq);
...
```
This snippet in `nci_unregister_device` directly calls `destroy_workqueue(ndev->cmd_wq)`. My immediate instinct is to scrutinize the *entire* implementation of `nci_unregister_device` to fully understand the context and timing of these workqueue destruction calls. This seems to be the most direct path leading to the `__WQ_DESTROYING` flag being set on `ndev->cmd_wq`.


119/4 2026/10/01 05:58 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:nci_unregister_device]

Results:
map[SourceCode:1313:	/**
1314:	 * nci_unregister_device - unregister a nci device in the nfc subsystem
1315:	 *
1316:	 * @ndev: The nci device to unregister
1317:	 */
1318:	void nci_unregister_device(struct nci_dev *ndev)
1319:	{
1320:		struct nci_conn_info *conn_info, *n;
1321:	
1322:		nfc_unregister_rfkill(ndev->nfc_dev);
1323:	
1324:		/* This set_bit is not protected with specialized barrier,
1325:		 * However, it is fine because the mutex_lock(&ndev->req_lock);
1326:		 * in nci_close_device() will help to emit one.
1327:		 */
1328:		set_bit(NCI_UNREG, &ndev->flags);
1329:	
1330:		nci_close_device(ndev);
1331:	
1332:		destroy_workqueue(ndev->cmd_wq);
1333:		destroy_workqueue(ndev->rx_wq);
1334:		destroy_workqueue(ndev->tx_wq);
1335:	
1336:		list_for_each_entry_safe(conn_info, n, &ndev->conn_info_list, list) {
1337:			list_del(&conn_info->list);
1338:			/* conn_info is allocated with devm_kzalloc */
1339:		}
1340:	
1341:		nfc_remove_device(ndev->nfc_dev);
1342:	}
 SourceFile:net/nfc/nci/core.c]

120/4 2026/10/01 05:58 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11480
							output: 35
							thoughts: 1080
						

Thoughts:
**My Thought Process Regarding the `workqueue` Warning**

Okay, let me try to articulate my train of thought here. I was looking at the cleanup sequence in `nci_unregister_device`, specifically lines 1332-1333, where the workqueues `ndev->cmd_wq`, `ndev->rx_wq`, and `ndev->tx_wq` are destroyed. I noticed that `destroy_workqueue(ndev->cmd_wq)` is called *before* `destroy_workqueue(ndev->rx_wq)`.

This immediately made me pause and consider the implications. What exactly happens when `destroy_workqueue(ndev->cmd_wq)` is executed, or even *just* after it's executed but before `ndev->rx_wq` is destroyed? The documentation (or my understanding of it) is that `destroy_workqueue` sets the `__WQ_DESTROYING` flag on the workqueue and then proceeds to drain it.

So, if `ndev->cmd_wq` is being destroyed and drained, what could possibly be happening on `ndev->rx_wq` in the interim? `ndev->rx_wq` is still active at this point. If a work item is running on `ndev->rx_wq` (let's say `nci_rx_work`), or if a packet arrives and a new `nci_rx_work` is queued, it will process an SKB. If that SKB is a response packet (`NCI_MT_RSP_PKT`), it calls `nci_rsp_packet`.

Now, inside `nci_rsp_packet`, there's this crucial section:
```c
	atomic_set(&ndev->cmd_cnt, 1);
	if (!skb_queue_empty(&ndev->cmd_q))
		queue_work(ndev->cmd_wq, &ndev->cmd_work);
```
If `!skb_queue_empty(&ndev->cmd_q)` is true, it attempts to queue `ndev->cmd_work` back onto `ndev->cmd_wq`. But remember, `ndev->cmd_wq` is currently in the process of being destroyed and has the `__WQ_DESTROYING` flag set.

This is where the warning comes in: `WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n", work->func, wq->name)`. In this specific scenario, it would be: "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq". This is exactly the warning I'm seeing.

So, my initial thought process was to pinpoint *this specific scenario* as the cause of the warning.

However, the prompt then asks: "Is there **any OTHER way** to trigger the warning... in `nci_rsp_packet`?" This phrase "any OTHER way" is critical. It implies there's a baseline way (which I've just identified), and it's asking for *alternatives* to that baseline, specifically within the context of `nci_rsp_packet`.

Let's re-evaluate. The warning originates in `__queue_work` (in `kernel/workqueue.c`), and the condition for triggering the `WARN_ONCE` is:
```c
	if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
		     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
			       work->func, wq->name))) {
```
So, for the warning to appear when `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is called from `nci_rsp_packet`, two main conditions must be met:

1.  **`ndev->cmd_wq` must be in a state where `wq->flags & (__WQ_DESTROYING | __WQ_DRAINING)` is true.** This is precisely what happens during the `nci_unregister_device` cleanup, where `cmd_wq` is destroyed first.
2.  **`!is_chained_work(wq)` must be true.** The warning message itself implies this. Chained work is a special case.

Now, to find *other ways* to trigger this warning *from within `nci_rsp_packet` itself*, I need to think about different pathways or race conditions that could lead to `ndev->cmd_wq` being in a `DESTROYING` or `DRAINING` state *while* `nci_rsp_packet` attempts to queue work.

This is where it gets tricky, and where I'd start digging deeper into the kernel's workqueue implementation and the overall NCI driver's state management.

*   **Could `ndev->cmd_wq` be destroyed by something *else* concurrently?** This would require a very specific, and likely problematic, race condition where another part of the system or another thread is also attempting to unregister or destroy the NCI device's command workqueue at the exact moment `nci_rsp_packet` is running. This seems less likely as a designed path, but theoretically possible in a complex system.
*   **What if `nci_rsp_packet` is called in a context *other than* `nci_unregister_device` cleanup?** If `ndev->cmd_wq` is being drained for some other reason (perhaps a different type of shutdown or error handling) and `nci_rsp_packet` is still active and receives a response, it could potentially hit this. However, the `__WQ_DRAINING` flag is usually associated with explicitly draining a workqueue, not necessarily destroying it.

The prompt specifically asks about triggering the warning *in* `nci_rsp_packet`. The most direct interpretation is that `nci_rsp_packet` itself, through its logic, leads to this. The scenario I initially identified – `nci_unregister_device` cleaning up `cmd_wq` while `nci_rx_work` (called from `rx_wq`) processes a response – is the primary, and perhaps *only* designed way, for this exact warning to occur. The warning is a safeguard against exactly this type of misuse of workqueues during shutdown.

So, to directly answer the prompt about "any other way" *within* `nci_rsp_packet`: The warning is triggered because `nci_rsp_packet` attempts to queue work onto a workqueue that is marked for destruction. The "other way" would have to involve `ndev->cmd_wq` being in that `__WQ_DESTROYING` or `__WQ_DRAINING` state *for reasons other than the current `nci_unregister_device` path that calls `destroy_workqueue(ndev->cmd_wq)` before `destroy_workqueue(ndev->rx_wq)`*.

However, given the prompt's structure and the context of the provided code snippet, it feels like the question is testing understanding of the *exact race* I identified. The "other way" might be more of a philosophical exploration of workqueue states and concurrency rather than a distinct code path within `nci_rsp_packet` itself. My analysis strongly points to the observed shutdown sequence as the intended trigger.


121/4 2026/10/01 05:58 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/workqueue.c Name:queue_work_on]

Results:
map[SourceCode:2477:	/**
2478:	 * queue_work_on - queue work on specific cpu
2479:	 * @cpu: CPU number to execute work on
2480:	 * @wq: workqueue to use
2481:	 * @work: work to queue
2482:	 *
2483:	 * We queue the work to a specific CPU, the caller must ensure it
2484:	 * can't go away.  Callers that fail to ensure that the specified
2485:	 * CPU cannot go away will execute on a randomly chosen CPU.
2486:	 * But note well that callers specifying a CPU that never has been
2487:	 * online will get a splat.
2488:	 *
2489:	 * Return: %false if @work was already on a queue, %true otherwise.
2490:	 */
2491:	bool queue_work_on(int cpu, struct workqueue_struct *wq,
2492:			   struct work_struct *work)
2493:	{
2494:		bool ret = false;
2495:		unsigned long irq_flags;
2496:	
2497:		local_irq_save(irq_flags);
2498:	
2499:		if (!test_and_set_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work)) &&
2500:		    !clear_pending_if_disabled(work)) {
2501:			__queue_work(cpu, wq, work);
2502:			ret = true;
2503:		}
2504:	
2505:		local_irq_restore(irq_flags);
2506:		return ret;
2507:	}
 SourceFile:kernel/workqueue.c]

122/4 2026/10/01 05:58 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13071
							output: 25
							thoughts: 494
						

Thoughts:
**My Thought Process Regarding the `nci_cmd_work` Warning**

Here's a breakdown of my current line of thinking as I analyze this potential issue with `nci_cmd_work` and the workqueue flags:

My immediate focus is on this condition: `wq->flags & (__WQ_DESTROYING | __WQ_DRAINING)` and `!is_chained_work(wq)`. I'm trying to understand when this condition could evaluate to true, leading to the observed warning.

I know that `nci_rsp_packet` is called from `nci_rx_work`, which in turn executes on `rx_wq`. This context is crucial because it means that when `nci_cmd_work` is queued within `nci_rsp_packet`, the `is_chained_work(ndev->cmd_wq)` check will *always* be false. Why? Because `nci_rsp_packet` is not operating within a chained work context related to `cmd_wq`. Therefore, the `!is_chained_work(ndev->cmd_wq)` part of the condition is effectively always satisfied in this specific scenario.

This simplifies the problem considerably: the warning will be triggered *anytime* `ndev->cmd_wq` has either the `__WQ_DESTROYING` or `__WQ_DRAINING` flag set, and `nci_cmd_work` is subsequently queued.

The next logical step, then, is to figure out *how* `ndev->cmd_wq` could possibly get into this state. I need to trace all the code paths that might modify the flags of `ndev->cmd_wq`, specifically looking for where `__WQ_DESTROYING` or `__WQ_DRAINING` are set.

I recall seeing in `kernel/workqueue.c` that `__WQ_DESTROYING` is exclusively set within the `destroy_workqueue(wq)` function:

```c
void destroy_workqueue(struct workqueue_struct *wq)
{
	// ...
	mutex_lock(&wq->mutex);
	wq->flags |= __WQ_DESTROYING; // <-- Here it is
	mutex_unlock(&wq->mutex);
	drain_workqueue(wq);
	// ...
}
```

Similarly, `__WQ_DRAINING` appears to be set only within `drain_workqueue(wq)`:

```c
void drain_workqueue(struct workqueue_struct *wq)
{
	// ...
	mutex_lock(&wq->mutex);
	if (!wq->nr_drainers++)
		wq->flags |= __WQ_DRAINING; // <-- And here
	mutex_unlock(&wq->mutex);
	// ...
}
```

This observation is key. If these flags are *only* set within these two functions, then the warning indicates a potential race condition or a logic error where work is being queued on a workqueue that is actively being destroyed or drained.

However, I need to be absolutely certain. My next crucial step is to confirm if *any other part of the kernel* might be setting these flags. I'm going to perform a comprehensive search across the entire kernel tree for any occurrences of `__WQ_DRAINING` or `__WQ_DESTROYING` being written to. If my initial analysis of `kernel/workqueue.c` is correct and no other code paths exist, then the problem is definitively isolated to the interaction between the NCI driver's work queuing and the workqueue management functions. If, however, I find other places, I'll need to expand my investigation significantly.


123/4 2026/10/01 05:59 tool grepper
0m Args:
map[Expression:__WQ_DRAINING|__WQ_DESTROYING]

Results:
map[Output:include/linux/workqueue.h=371=enum wq_flags {
--
include/linux/workqueue.h-407-
include/linux/workqueue.h:408:	__WQ_DESTROYING		= 1 << 15, /* internal: workqueue is destroying */
include/linux/workqueue.h:409:	__WQ_DRAINING		= 1 << 16, /* internal: workqueue is draining */
include/linux/workqueue.h-410-	__WQ_ORDERED		= 1 << 17, /* internal: workqueue is ordered */
--
kernel/workqueue.c=2321=static void __queue_work(int cpu, struct workqueue_struct *wq,
--
kernel/workqueue.c-2347-	 * For a draining wq, only works from the same workqueue are
kernel/workqueue.c:2348:	 * allowed. The __WQ_DESTROYING helps to spot the issue that
kernel/workqueue.c-2349-	 * queues a new work item to a wq after destroy_workqueue(wq).
kernel/workqueue.c-2350-	 */
kernel/workqueue.c:2351:	if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
kernel/workqueue.c-2352-		     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
--
kernel/workqueue.c=4302=void drain_workqueue(struct workqueue_struct *wq)
--
kernel/workqueue.c-4309-	 * hotter than drain_workqueue() and already looks at @wq->flags.
kernel/workqueue.c:4310:	 * Use __WQ_DRAINING so that queue doesn't have to check nr_drainers.
kernel/workqueue.c-4311-	 */
--
kernel/workqueue.c-4313-	if (!wq->nr_drainers++)
kernel/workqueue.c:4314:		wq->flags |= __WQ_DRAINING;
kernel/workqueue.c-4315-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c-4340-	if (!--wq->nr_drainers)
kernel/workqueue.c:4341:		wq->flags &= ~__WQ_DRAINING;
kernel/workqueue.c-4342-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c=6138=void destroy_workqueue(struct workqueue_struct *wq)
--
kernel/workqueue.c-6150-	mutex_lock(&wq->mutex);
kernel/workqueue.c:6151:	wq->flags |= __WQ_DESTROYING;
kernel/workqueue.c-6152-	mutex_unlock(&wq->mutex);
--
kernel/workqueue.c=7185=static int workqueue_apply_unbound_cpumask(const cpumask_var_t unbound_cpumask)
--
kernel/workqueue.c-7194-	list_for_each_entry(wq, &workqueues, list) {
kernel/workqueue.c:7195:		if (!(wq->flags & WQ_UNBOUND) || (wq->flags & __WQ_DESTROYING))
kernel/workqueue.c-7196-			continue;
]

124/4 2026/10/01 05:59 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14443
							output: 34
							thoughts: 501
						

Thoughts:
**Investigating Workqueue Cleanup and Potential Race Conditions**

My primary focus right now is understanding the lifecycle and synchronization around the `cmd_wq` workqueue, specifically how it's drained and destroyed. I've just established that only `drain_workqueue` and `destroy_workqueue` are the functions responsible for setting those crucial flags that signal a workqueue's termination.

Therefore, my next logical step is to meticulously trace every call site that invokes either `drain_workqueue` or `destroy_workqueue` on `ndev->cmd_wq`. I've already done a comprehensive sweep of all references to `cmd_wq` across the codebase, and I'm now reviewing those findings with this specific cleanup behavior in mind.

Here's what I've identified so far regarding `cmd_wq`:

1.  **`nci_close_device` (lines 567 and 601 in `net/nfc/nci/core.c`):** Both instances call `flush_workqueue(ndev->cmd_wq);`. This is an immediate point of interest.
2.  **`nci_cmd_timer` (line 627 in `net/nfc/nci/core.c`):** This function queues a work item using `queue_work(ndev->cmd_wq, &ndev->cmd_work);`. This isn't a direct drain/destroy, but it contributes to work being submitted to the queue.
3.  **Workqueue Creation (line 1261 in `net/nfc/nci/core.c`):** `ndev->cmd_wq = create_singlethread_workqueue(name);` This is where the workqueue is initialized.
4.  **`destroy_cmd_wq_exit` (line 1306 in `net/nfc/nci/core.c`):** This error path within `nci_register_device` explicitly calls `destroy_workqueue(ndev->cmd_wq);`. This is a direct call to the function I'm interested in.
5.  **`nci_rsp_packet` (line 463 in `net/nfc/nci/rsp.c`):** Similar to `nci_cmd_timer`, this queues work with `queue_work(ndev->cmd_wq, &ndev->cmd_work);`.
6.  **`nci_send_cmd` (line 1415 in `net/nfc/nci/core.c`):** Again, this queues a work item via `queue_work(ndev->cmd_wq, &ndev->cmd_work);`.
7.  **`nci_unregister_device` (line 1332 in `net/nfc/nci/core.c`):** This function also directly calls `destroy_workqueue(ndev->cmd_wq);`.

The critical question that immediately springs to mind after seeing `flush_workqueue` appear twice is: **Does `flush_workqueue` internally call `drain_workqueue`?** This is the key to understanding whether the `flush_workqueue` calls in `nci_close_device` are indeed triggering the draining mechanism that I've identified as being critical for flag setting. My next action is to dive into the implementation of `flush_workqueue` itself to confirm this behavior and assess the full implications for synchronization.


125/4 2026/10/01 05:59 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:kernel/workqueue.c Name:flush_workqueue]

Results:
map[SourceCode: SourceFile:]

126/4 2026/10/01 05:59 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14983
							output: 31
							thoughts: 14
						

Thoughts:
**My Thought Process for Locating `flush_workqueue`**

Alright, so my immediate goal here is to pinpoint the `flush_workqueue` function within the codebase. My preferred method for this kind of targeted search is `grepper`. It's a robust tool for pattern matching across files, and it's generally my go-to for quickly navigating and understanding the structure of a project.

I'll initiate a `grepper` command, and the core of my search query will be the exact string `flush_workqueue`. This is a precise match, so I'm not looking for variations or partial matches, which helps to narrow down the results significantly.

The command will likely look something like `grepper "flush_workqueue"`, or if I want to be even more specific about the scope, I might append a directory like `grepper "flush_workqueue" src/`. This ensures I'm searching within the relevant source directories and not getting bogged down in build artifacts or documentation.

Once `grepper` runs, I'll be presented with a list of lines where `flush_workqueue` appears, along with the filenames and line numbers. My next step will be to examine these results. I'll be looking for the actual function definition. It's important to distinguish between where the function is *called* and where it's *defined*. The definition is what I'm after.

If the initial search yields too many results, or if I suspect `flush_workqueue` might be part of a macro or a more complex construct, I might refine my `grepper` command. For instance, I could try searching for `flush_workqueue(` to specifically find function calls, or I might look for patterns like `void flush_workqueue(` to be more confident I'm seeing a function signature. However, for a common function name like `flush_workqueue`, a simple string search is usually sufficient.

The ultimate aim is to quickly land on the source file and line number where `flush_workqueue` is implemented. This will give me a clear entry point to understand its behavior, its parameters, and its role within the larger workqueue management system.


127/4 2026/10/01 06:00 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:void flush_workqueue PathPrefix:kernel/workqueue.c]

Results:
map[Output:]

128/4 2026/10/01 06:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15026
							output: 19
							thoughts: 30
						

Thoughts:
**My Thought Process on Locating `flush_workqueue`**

My immediate thought is that to understand or modify the functionality of `flush_workqueue`, I need to pinpoint its definition and usage within the Linux kernel codebase. My first instinct is to search for the identifier `flush_workqueue` itself. Given its name, it strongly suggests a core workqueue management function. Therefore, I'd logically start my search in the primary files that deal with workqueue implementation. These are typically the source file where the workqueue subsystem's logic resides and the header file that provides its public API.

Based on common kernel development conventions, I'd hypothesize that the primary implementation of `flush_workqueue` would likely be found in a `.c` file related to workqueues. The most probable candidate for this is `kernel/workqueue.c`. This file usually contains the detailed logic for creating, managing, and executing work items within the kernel's workqueue framework.

Concurrently, I'd also consider the header file that declares and exports this function, allowing other parts of the kernel to call it. The logical place for workqueue-related declarations would be `include/linux/workqueue.h`. This file would expose the function signature and potentially provide necessary data structures or constants related to workqueues.

Therefore, my initial plan is to perform targeted searches for `flush_workqueue` within these two specific files: `kernel/workqueue.c` for its implementation details and `include/linux/workqueue.h` for its declaration and interface. This approach should efficiently lead me to the relevant code segments.


129/4 2026/10/01 06:00 tool grepper
0m Args:
map[Expression:flush_workqueue\(]

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

Documentation/core-api/housekeeping.rst=99=A typical layout example would look like this on the update side
--
Documentation/core-api/housekeeping.rst-103-	synchronize_rcu();
Documentation/core-api/housekeeping.rst:104:	flush_workqueue(example_workqueue);
Documentation/core-api/housekeeping.rst-105-
--
block/bio-integrity-auto.c=103=void blk_flush_integrity(void)
block/bio-integrity-auto.c-104-{
block/bio-integrity-auto.c:105:	flush_workqueue(kintegrityd_wq);
block/bio-integrity-auto.c-106-}
--
drivers/accel/amdxdna/amdxdna_gem.c=641=static void amdxdna_gem_obj_free(struct drm_gem_object *gobj)
--
drivers/accel/amdxdna/amdxdna_gem.c-646-	amdxdna_hmm_unregister(abo, NULL);
drivers/accel/amdxdna/amdxdna_gem.c:647:	flush_workqueue(xdna->notifier_wq);
drivers/accel/amdxdna/amdxdna_gem.c-648-
--
drivers/accel/habanalabs/common/command_submission.c=1064=void hl_cs_rollback_all(struct hl_device *hdev, bool skip_wq_flush)
--
drivers/accel/habanalabs/common/command_submission.c-1069-	if (!skip_wq_flush) {
drivers/accel/habanalabs/common/command_submission.c:1070:		flush_workqueue(hdev->ts_free_obj_wq);
drivers/accel/habanalabs/common/command_submission.c-1071-
--
drivers/accel/habanalabs/common/command_submission.c-1075-		for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++)
drivers/accel/habanalabs/common/command_submission.c:1076:			flush_workqueue(hdev->cq_wq[i]);
drivers/accel/habanalabs/common/command_submission.c-1077-
drivers/accel/habanalabs/common/command_submission.c:1078:		flush_workqueue(hdev->cs_cmplt_wq);
drivers/accel/habanalabs/common/command_submission.c-1079-	}
--
drivers/accel/habanalabs/common/device.c=1283=static void cleanup_resources(struct hl_device *hdev, bool hard_reset, bool fw_reset,
--
drivers/accel/habanalabs/common/device.c-1303-	/* flush the MMU prefetch workqueue */
drivers/accel/habanalabs/common/device.c:1304:	flush_workqueue(hdev->prefetch_wq);
drivers/accel/habanalabs/common/device.c-1305-
--
drivers/accel/habanalabs/common/device.c=1611=int hl_device_reset(struct hl_device *hdev, u32 flags)
--
drivers/accel/habanalabs/common/device.c-1780-		 */
drivers/accel/habanalabs/common/device.c:1781:		flush_workqueue(hdev->eq_wq);
drivers/accel/habanalabs/common/device.c-1782-	}
--
drivers/accel/habanalabs/common/irq.c=681=void hl_eq_fini(struct hl_device *hdev, struct hl_eq *q)
drivers/accel/habanalabs/common/irq.c-682-{
drivers/accel/habanalabs/common/irq.c:683:	flush_workqueue(hdev->eq_wq);
drivers/accel/habanalabs/common/irq.c-684-
--
drivers/acpi/ec.c=541=static void __acpi_ec_flush_work(void)
drivers/acpi/ec.c-542-{
drivers/acpi/ec.c:543:	flush_workqueue(ec_wq); /* flush ec->work */
drivers/acpi/ec.c:544:	flush_workqueue(ec_query_wq); /* flush queries */
drivers/acpi/ec.c-545-}
--
drivers/acpi/ec.c=1142=void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit)
--
drivers/acpi/ec.c-1144-	acpi_ec_remove_query_handlers(ec, false, query_bit);
drivers/acpi/ec.c:1145:	flush_workqueue(ec_query_wq);
drivers/acpi/ec.c-1146-}
--
drivers/acpi/nfit/core.c=3315=void acpi_nfit_shutdown(void *data)
--
drivers/acpi/nfit/core.c-3344-
drivers/acpi/nfit/core.c:3345:	flush_workqueue(nfit_wq);
drivers/acpi/nfit/core.c-3346-}
--
drivers/acpi/nfit/core.c=3444=static void acpi_nfit_update_notify(struct device *dev, acpi_handle handle)
--
drivers/acpi/nfit/core.c-3467-		 */
drivers/acpi/nfit/core.c:3468:		flush_workqueue(nfit_wq);
drivers/acpi/nfit/core.c-3469-	}
--
drivers/acpi/osl.c=1170=void acpi_os_wait_events_complete(void)
--
drivers/acpi/osl.c-1177-		synchronize_hardirq(acpi_sci_irq);
drivers/acpi/osl.c:1178:	flush_workqueue(kacpid_wq);
drivers/acpi/osl.c:1179:	flush_workqueue(kacpi_notify_wq);
drivers/acpi/osl.c-1180-}
--
drivers/acpi/thermal.c=658=static void acpi_thermal_zone_unregister(void *data)
--
drivers/acpi/thermal.c-661-
drivers/acpi/thermal.c:662:	flush_workqueue(acpi_thermal_pm_queue);
drivers/acpi/thermal.c-663-
--
drivers/acpi/thermal.c=901=static int acpi_thermal_prepare(struct device *dev)
--
drivers/acpi/thermal.c-903-	/* Make sure the previously queued thermal check work has been done */
drivers/acpi/thermal.c:904:	flush_workqueue(acpi_thermal_pm_queue);
drivers/acpi/thermal.c-905-	return 0;
--
drivers/auxdisplay/cfag12864b.c=234=void cfag12864b_disable(void)
--
drivers/auxdisplay/cfag12864b.c-240-		cancel_delayed_work(&cfag12864b_work);
drivers/auxdisplay/cfag12864b.c:241:		flush_workqueue(cfag12864b_workqueue);
drivers/auxdisplay/cfag12864b.c-242-	}
--
drivers/base/core.c=622=void device_link_wait_removal(void)
--
drivers/base/core.c-628-	 */
drivers/base/core.c:629:	flush_workqueue(device_link_wq);
drivers/base/core.c-630-}
--
drivers/block/aoe/aoedev.c=315=flush(const char __user *str, size_t cnt, int exiting)
--
drivers/block/aoe/aoedev.c-335-
drivers/block/aoe/aoedev.c:336:	flush_workqueue(aoe_wq);
drivers/block/aoe/aoedev.c-337-	/* pass one: do aoedev_downdev, which might sleep */
--
drivers/block/aoe/aoedev.c=533=aoedev_exit(void)
drivers/block/aoe/aoedev.c-534-{
drivers/block/aoe/aoedev.c:535:	flush_workqueue(aoe_wq);
drivers/block/aoe/aoedev.c-536-	flush(NULL, 0, EXITING);
--
drivers/block/drbd/drbd_int.h=1814=drbd_device_post_work(struct drbd_device *device, int work_bit)
--
drivers/block/drbd/drbd_int.h-1824-
drivers/block/drbd/drbd_int.h:1825:extern void drbd_flush_workqueue(struct drbd_work_queue *work_queue);
drivers/block/drbd/drbd_int.h-1826-
--
drivers/block/drbd/drbd_main.c=2360=static int w_complete(struct drbd_work *w, int cancel)
--
drivers/block/drbd/drbd_main.c-2368-
drivers/block/drbd/drbd_main.c:2369:void drbd_flush_workqueue(struct drbd_work_queue *work_queue)
drivers/block/drbd/drbd_main.c-2370-{
--
drivers/block/drbd/drbd_nl.c=1406=static void conn_reconfig_start(struct drbd_connection *connection)
--
drivers/block/drbd/drbd_nl.c-1408-	drbd_thread_start(&connection->worker);
drivers/block/drbd/drbd_nl.c:1409:	drbd_flush_workqueue(&connection->sender_work);
drivers/block/drbd/drbd_nl.c-1410-}
--
drivers/block/drbd/drbd_nl.c=1794=int drbd_nl_attach_doit(struct sk_buff *skb, struct genl_info *info)
--
drivers/block/drbd/drbd_nl.c-1973-	/* and for any other previously queued work */
drivers/block/drbd/drbd_nl.c:1974:	drbd_flush_workqueue(&connection->sender_work);
drivers/block/drbd/drbd_nl.c-1975-
--
drivers/block/drbd/drbd_nl.c=2587=int drbd_nl_connect_doit(struct sk_buff *skb, struct genl_info *info)
--
drivers/block/drbd/drbd_nl.c-2669-
drivers/block/drbd/drbd_nl.c:2670:	drbd_flush_workqueue(&connection->sender_work);
drivers/block/drbd/drbd_nl.c-2671-
--
drivers/block/drbd/drbd_nl.c=3031=int drbd_nl_invalidate_doit(struct sk_buff *skb, struct genl_info *info)
--
drivers/block/drbd/drbd_nl.c-3055-	wait_event(device->misc_wait, !test_bit(BITMAP_IO, &device->flags));
drivers/block/drbd/drbd_nl.c:3056:	drbd_flush_workqueue(&first_peer_device(device)->connection->sender_work);
drivers/block/drbd/drbd_nl.c-3057-
--
drivers/block/drbd/drbd_nl.c=3109=int drbd_nl_inval_peer_doit(struct sk_buff *skb, struct genl_info *info)
--
drivers/block/drbd/drbd_nl.c-3133-	wait_event(device->misc_wait, !test_bit(BITMAP_IO, &device->flags));
drivers/block/drbd/drbd_nl.c:3134:	drbd_flush_workqueue(&first_peer_device(device)->connection->sender_work);
drivers/block/drbd/drbd_nl.c-3135-
--
drivers/block/drbd/drbd_nl.c=4473=static enum drbd_ret_code adm_del_minor(struct drbd_device *device)
--
drivers/block/drbd/drbd_nl.c-4491-		if (get_t_state(&connection->worker) == RUNNING)
drivers/block/drbd/drbd_nl.c:4492:			drbd_flush_workqueue(&connection->sender_work);
drivers/block/drbd/drbd_nl.c-4493-
--
drivers/block/drbd/drbd_receiver.c=4983=static int drbd_disconnected(struct drbd_peer_device *peer_device)
--
drivers/block/drbd/drbd_receiver.c-5016-	 * to be "canceled" */
drivers/block/drbd/drbd_receiver.c:5017:	drbd_flush_workqueue(&peer_device->connection->sender_work);
drivers/block/drbd/drbd_receiver.c-5018-
--
drivers/block/drbd/drbd_receiver.c-5023-	   necessary to reclain net_ee in drbd_finish_peer_reqs(). */
drivers/block/drbd/drbd_receiver.c:5024:	drbd_flush_workqueue(&peer_device->connection->sender_work);
drivers/block/drbd/drbd_receiver.c-5025-
--
drivers/block/floppy.c=4824=static int floppy_grab_irq_and_dma(void)
--
drivers/block/floppy.c-4834-	 */
drivers/block/floppy.c:4835:	flush_workqueue(floppy_wq);
drivers/block/floppy.c-4836-
--
drivers/block/nbd.c=1512=static int nbd_start_device(struct nbd_device *nbd)
--
drivers/block/nbd.c-1565-			if (i)
drivers/block/nbd.c:1566:				flush_workqueue(nbd->recv_workq);
drivers/block/nbd.c-1567-			return -ENOMEM;
--
drivers/block/nbd.c=1584=static int nbd_start_device_ioctl(struct nbd_device *nbd)
--
drivers/block/nbd.c-1602-
drivers/block/nbd.c:1603:	flush_workqueue(nbd->recv_workq);
drivers/block/nbd.c-1604-	mutex_lock(&nbd->config_lock);
--
drivers/block/nbd.c=2325=static void nbd_disconnect_and_put(struct nbd_device *nbd)
--
drivers/block/nbd.c-2334-	 */
drivers/block/nbd.c:2335:	flush_workqueue(nbd->recv_workq);
drivers/block/nbd.c-2336-	nbd_clear_que(nbd);
--
drivers/block/rnbd/rnbd-clt.c=1748=static void rnbd_destroy_sessions(void)
--
drivers/block/rnbd/rnbd-clt.c-1787-	/* Wait for all scheduled unmap works */
drivers/block/rnbd/rnbd-clt.c:1788:	flush_workqueue(rnbd_clt_wq);
drivers/block/rnbd/rnbd-clt.c-1789-	WARN_ON(!list_empty(&sess_list));
--

]

130/4 2026/10/01 06:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 19269
							output: 30
							thoughts: 22
						

Thoughts:
**My Thought Process Regarding `flush_workqueue`**

Alright, the first thing that comes to my mind when I encounter a function like `flush_workqueue` in the kernel, especially given its name and likely importance, is to immediately delve into its implementation. My instinct is to see exactly *how* it achieves its stated purpose. Therefore, my immediate action is to locate the definition of `flush_workqueue` within the kernel's source code, specifically targeting `kernel/workqueue.c`. This is where the core logic for workqueue management resides, so it's the most logical and efficient place to find this information. I'm not just looking for a superficial understanding; I want to trace the execution path, understand the underlying mechanisms, and identify any critical dependencies or potential performance implications. My expertise tells me that a thorough understanding of the implementation details is paramount to correctly interpreting its behavior and any potential impact it might have on system stability or performance.


131/4 2026/10/01 06:01 tool grepper
0m Args:
map[Expression:flush_workqueue PathPrefix:kernel/workqueue.c]

Results:
map[Output:kernel/workqueue.c=3964=static void insert_wq_barrier(struct pool_workqueue *pwq,
--
kernel/workqueue.c-4017-/**
kernel/workqueue.c:4018: * flush_workqueue_prep_pwqs - prepare pwqs for workqueue flushing
kernel/workqueue.c-4019- * @wq: workqueue being flushed
--
kernel/workqueue.c-4047- */
kernel/workqueue.c:4048:static bool flush_workqueue_prep_pwqs(struct workqueue_struct *wq,
kernel/workqueue.c-4049-				      int flush_color, int work_color)
--
kernel/workqueue.c=4119=static void touch_work_lockdep_map(struct work_struct *work,
--
kernel/workqueue.c-4134-/**
kernel/workqueue.c:4135: * __flush_workqueue - ensure that any scheduled work has run to completion.
kernel/workqueue.c-4136- * @wq: workqueue to flush
--
kernel/workqueue.c-4140- */
kernel/workqueue.c:4141:void __flush_workqueue(struct workqueue_struct *wq)
kernel/workqueue.c-4142-{
--
kernel/workqueue.c-4177-
kernel/workqueue.c:4178:			if (!flush_workqueue_prep_pwqs(wq, wq->flush_color,
kernel/workqueue.c-4179-						       wq->work_color)) {
--
kernel/workqueue.c-4188-			list_add_tail(&this_flusher.list, &wq->flusher_queue);
kernel/workqueue.c:4189:			flush_workqueue_prep_pwqs(wq, -1, wq->work_color);
kernel/workqueue.c-4190-		}
--
kernel/workqueue.c-4257-					      &wq->flusher_queue);
kernel/workqueue.c:4258:			flush_workqueue_prep_pwqs(wq, -1, wq->work_color);
kernel/workqueue.c-4259-		}
--
kernel/workqueue.c-4275-
kernel/workqueue.c:4276:		if (flush_workqueue_prep_pwqs(wq, wq->flush_color, -1))
kernel/workqueue.c-4277-			break;
--
kernel/workqueue.c-4288-}
kernel/workqueue.c:4289:EXPORT_SYMBOL(__flush_workqueue);
kernel/workqueue.c-4290-
--
kernel/workqueue.c=4302=void drain_workqueue(struct workqueue_struct *wq)
--
kernel/workqueue.c-4316-reflush:
kernel/workqueue.c:4317:	__flush_workqueue(wq);
kernel/workqueue.c-4318-
]

132/4 2026/10/01 06:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20083
							output: 24
							thoughts: 469
						

Thoughts:
**My Thought Process Unraveling the `nci_cmd_work` Warning**

Okay, so I'm digging into this "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq" warning, and my first step is to understand the workqueue lifecycle related to draining and destruction. I see that `__flush_workqueue` doesn't actually set the `__WQ_DRAINING` or `__WQ_DESTROYING` flags. That's a key distinction. On the other hand, `drain_workqueue` *does* set `__WQ_DRAINING`, and `destroy_workqueue` sets `__WQ_DESTROYING` and subsequently calls `drain_workqueue`.

My next move is to trace where `drain_workqueue` is actually invoked in relation to `ndev->cmd_wq`. My analysis reveals that `drain_workqueue` is *only* called by `destroy_workqueue`. So, the critical question becomes: where is `destroy_workqueue(ndev->cmd_wq)` called? I've identified two primary locations in the kernel:

1.  In the error handling path within `nci_register_device` (specifically, at `destroy_cmd_wq_exit`).
2.  Within `nci_unregister_device`.

Now, this is where things get interesting, and I start questioning the prompt itself. The user specifically asked, "Is there any *other* way to trigger the warning...?" This implies there might be a less obvious path. And then, the mention of `"nfc2_nci_cmd_wq"` really catches my attention. I immediately recognize that this specific workqueue name is generated dynamically, based on the device name (`dev_name(dev)`), and specifically corresponds to a device named "nfc2".

This leads me to wonder: where did this warning originate? Was it reported in a bug tracker, a mailing list discussion, or perhaps even mentioned in comments within the code? To find out, I'm considering a few investigative steps:

*   I need to search commit logs for any related changes.
*   I should check syzbot bugs for any relevant reports.
*   If the context suggests it, a mailing list search might be fruitful.
*   More broadly, I'll be looking for any mentions of `nci_cmd_work` or `nfc2_nci_cmd_wq` or even the broader "nfc" subsystem within the kernel documentation or general code.
*   Leveraging `git logs` or similar repository tools will be crucial.
*   If available, a tool like `grepper` could help me efficiently search the entire tree.

Essentially, I'm trying to understand if the user's question points to a specific, perhaps overlooked, scenario that leads to this warning, especially in the context of a device named "nfc2," and I'm laying out my systematic approach to uncover that potential pathway.


133/4 2026/10/01 06:01 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:nfc2_nci_cmd_wq]

Results:
map[Output:]

134/4 2026/10/01 06:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20578
							output: 39
							thoughts: 237
						

Thoughts:
**My Thought Process on Debugging the NFC Driver**

Okay, so my initial instinct is to understand what might have changed recently that could be causing this issue. My first thought is to dive into the commit history of the NFC driver, specifically the core and response handling files: `net/nfc/nci/core.c` and `net/nfc/nci/rsp.c`. I'm thinking that if I can pinpoint recent modifications, I might quickly identify the culprit.

Then, a more direct thought: can I even see the Git log for this specific directory, `net/nfc/nci/`? I need to confirm the capabilities of my tools. I recall `grepper` is primarily for searching file contents, not for executing general Git commands like `git log`. So, no, `grepper` itself can't show me the commit history. It's specifically designed for `git grep`, which, as I remember, only searches within the files present in the current working tree. It doesn't inherently have access to the Git history itself.

This leads me to a realization: there aren't any files within the `net/nfc/nci/` directory that *contain* Git history data in a way that `git grep` could directly access. The history is stored in the `.git` directory at the repository root, not embedded within the source files themselves.

So, since I can't directly grep the commit messages or history with `grepper`, I need to pivot my strategy. I'll go back to examining the source code directly. I'm particularly interested in functions related to device management and work queues, as these often involve critical state transitions and asynchronous processing. Specifically, I want to look around `nci_unregister_device` and `nci_close_device` because these are the endpoints of device lifecycle, and if something is mishandled there, it could lead to lingering issues. I'm also keen to examine `nci_rx_work` and `nci_cmd_work` – these are the heart of the driver's asynchronous communication, and any race conditions or incorrect handling of incoming data or commands could be a source of bugs.

To be more precise, I'm going to focus my attention on specific line ranges within `net/nfc/nci/core.c`. I'll be scrutinizing lines roughly between 550 and 650, then 1250 to 1350, and finally 1550 to 1600. These sections likely contain the implementations of the functions I've identified, and I'm hoping to spot any logical errors, incorrect synchronization, or unhandled edge cases.


135/4 2026/10/01 06:02 tool read-file
0m Args:
map[File:net/nfc/nci/core.c FirstLine:555 LineCount:80]

Results:
map[Contents: 555:	{
 556:		nci_req_cancel(ndev, ENODEV);
 557:	
 558:		/* This mutex needs to be held as a barrier for
 559:		 * caller nci_unregister_device
 560:		 */
 561:		mutex_lock(&ndev->req_lock);
 562:	
 563:		if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
 564:			/* Need to flush the cmd wq in case
 565:			 * there is a queued/running cmd_work
 566:			 */
 567:			flush_workqueue(ndev->cmd_wq);
 568:			timer_delete_sync(&ndev->cmd_timer);
 569:			timer_delete_sync(&ndev->data_timer);
 570:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 571:				nci_data_exchange_complete(ndev, NULL,
 572:							   ndev->cur_conn_id,
 573:							   -ENODEV);
 574:			mutex_unlock(&ndev->req_lock);
 575:			return 0;
 576:		}
 577:	
 578:		/* Drop RX and TX queues */
 579:		skb_queue_purge(&ndev->rx_q);
 580:		skb_queue_purge(&ndev->tx_q);
 581:	
 582:		/* Flush TX wq, RX wq flush can't be under the lock */
 583:		flush_workqueue(ndev->tx_wq);
 584:	
 585:		/* Reset device */
 586:		skb_queue_purge(&ndev->cmd_q);
 587:		atomic_set(&ndev->cmd_cnt, 1);
 588:	
 589:		set_bit(NCI_INIT, &ndev->flags);
 590:		__nci_request(ndev, nci_reset_req, (void *)0,
 591:			      msecs_to_jiffies(NCI_RESET_TIMEOUT));
 592:	
 593:		/* After this point our queues are empty
 594:		 * rx work may be running but will see that NCI_UP was cleared
 595:		 */
 596:		ndev->ops->close(ndev);
 597:	
 598:		clear_bit(NCI_INIT, &ndev->flags);
 599:	
 600:		/* Flush cmd and tx wq */
 601:		flush_workqueue(ndev->cmd_wq);
 602:	
 603:		timer_delete_sync(&ndev->cmd_timer);
 604:		timer_delete_sync(&ndev->data_timer);
 605:	
 606:		if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
 607:			nci_data_exchange_complete(ndev, NULL, ndev->cur_conn_id,
 608:						   -ENODEV);
 609:	
 610:		/* Clear flags except NCI_UNREG */
 611:		ndev->flags &= BIT(NCI_UNREG);
 612:	
 613:		mutex_unlock(&ndev->req_lock);
 614:	
 615:		/* rx_work may take req_lock via nci_deactivate_target */
 616:		flush_workqueue(ndev->rx_wq);
 617:	
 618:		return 0;
 619:	}
 620:	
 621:	/* NCI command timer function */
 622:	static void nci_cmd_timer(struct timer_list *t)
 623:	{
 624:		struct nci_dev *ndev = timer_container_of(ndev, t, cmd_timer);
 625:	
 626:		atomic_set(&ndev->cmd_cnt, 1);
 627:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
 628:	}
 629:	
 630:	/* NCI data exchange timer function */
 631:	static void nci_data_timer(struct timer_list *t)
 632:	{
 633:		struct nci_dev *ndev = timer_container_of(ndev, t, data_timer);
 634:	
]

136/4 2026/10/01 06:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22099
							output: 40
							thoughts: 1026
						

Thoughts:
**A Deep Dive into Device Deactivation and Unregistration**

As I delve into the `nci_close_device` function, my immediate thought is to scrutinize its interaction with the device flags and synchronization mechanisms. The presence of `mutex_lock(&ndev->req_lock)` right at the beginning signals its role as a critical section, intended to guard against race conditions. This is particularly important as `nci_unregister_device` explicitly mentions this mutex as a barrier for the `NCI_UNREG` flag.

The logic within `nci_close_device` appears to handle two primary scenarios: one where the device is already considered "up" and another where it might not be. If `test_and_clear_bit(NCI_UP, &ndev->flags)` returns false, it implies the device wasn't fully operational, or perhaps was already in the process of being closed. In this case, I see the necessity of flushing the command workqueue and deleting timers. The handling of `NCI_DATA_EXCHANGE` here also seems like a crucial cleanup step, ensuring any ongoing data transfers are properly terminated with an error.

When `NCI_UP` *is* cleared, I observe a more thorough shutdown process. The reception and transmission queues (`rx_q` and `tx_q`) are purged. The transmission workqueue (`tx_wq`) is flushed. The command queue (`cmd_q`) is cleared, and the command counter (`cmd_cnt`) is reset, suggesting a state initialization for a potential restart or a clean slate. A new NCI reset request is then initiated using `__nci_request`, with a timeout specified. This operation is vital for ensuring the device returns to a known, initialized state.

Following the reset request, the `ndev->ops->close(ndev)` call indicates that the underlying hardware-specific close operation is invoked. This is a key abstraction layer, allowing the generic NCI code to interact with diverse hardware. The `NCI_INIT` flag is then cleared, and crucially, the command and transmission workqueues are flushed again. This second flush, especially for `cmd_wq`, seems to be to ensure that the reset request has fully completed before proceeding.

The timers (`cmd_timer` and `data_timer`) are deleted synchronously, which is good practice to avoid dangling timer callbacks. Similar to the initial check, `NCI_DATA_EXCHANGE` is handled, ensuring proper termination of any outstanding data exchanges with `-ENODEV`.

Then comes an interesting bit manipulation: `ndev->flags &= BIT(NCI_UNREG)`. This is a very specific way to clear all flags *except* for `NCI_UNREG`. This suggests that the `NCI_UNREG` flag is intended to persist through the closing process and is set by `nci_unregister_device` to signal that the device is in the process of being permanently removed.

Finally, the `mutex_unlock(&ndev->req_lock)` is released. However, the subsequent `flush_workqueue(ndev->rx_wq)` is *outside* the lock. My immediate concern here is that the `rx_work` might still be running and could potentially re-acquire `req_lock` (via `nci_deactivate_target`, for instance) if `NCI_UP` was cleared, but before `NCI_UNREG` is fully processed and the device is truly gone. The comment "rx work may take req_lock via nci_deactivate_target" confirms this potential interaction, and the fact that `NCI_UP` was cleared earlier means `rx_work` might see the device as "not up" and proceed with cleanup logic that might itself involve locks.

Looking at `nci_unregister_device`, it becomes clearer. It first sets the `NCI_UNREG` flag, which, as noted, is not protected by a dedicated barrier but relies on the `req_lock` in `nci_close_device` to act as one. Then, it calls `nci_close_device`. This sequence confirms my understanding: `NCI_UNREG` is set *before* the closing sequence begins. The subsequent destruction of workqueues and cleanup of connection information lists are straightforward resource deallocation steps. The `nfc_remove_device` call signifies the final unregistration from the NFC subsystem.

The crucial point for me is the interaction between the last `flush_workqueue(ndev->rx_wq)` in `nci_close_device` and the potential for `rx_work` to interact with the locked state. While `NCI_UP` is cleared, `NCI_UNREG` is set, and the `req_lock` is released, the `rx_wq` flush needs to ensure that no ongoing `rx_work` can cause issues by re-acquiring `req_lock` or attempting operations on a partially deallocated device state, especially if it might still be referencing `ndev`. The code seems to anticipate this by having `rx_work` check `NCI_UP` and potentially call `nci_deactivate_target`, which *does* acquire `req_lock`. The logic seems to rely on the fact that `rx_work` will see `NCI_UP` cleared and perform its necessary cleanup.


137/4 2026/10/01 06:02 tool read-file
0m Args:
map[File:net/nfc/nci/core.c FirstLine:1550 LineCount:60]

Results:
map[Contents:1550:	
1551:			mod_timer(&ndev->data_timer,
1552:				  jiffies + msecs_to_jiffies(NCI_DATA_TIMEOUT));
1553:			kcov_remote_stop();
1554:		}
1555:	}
1556:	
1557:	/* ----- NCI RX worker thread (data & control) ----- */
1558:	
1559:	static void nci_rx_work(struct work_struct *work)
1560:	{
1561:		struct nci_dev *ndev = container_of(work, struct nci_dev, rx_work);
1562:		struct sk_buff *skb;
1563:	
1564:		for (; (skb = skb_dequeue(&ndev->rx_q)); kcov_remote_stop()) {
1565:			kcov_remote_start_common(skb_get_kcov_handle(skb));
1566:	
1567:			/* Send copy to sniffer */
1568:			nfc_send_to_raw_sock(ndev->nfc_dev, skb,
1569:					     RAW_PAYLOAD_NCI, NFC_DIRECTION_RX);
1570:	
1571:			if (!nci_valid_size(skb)) {
1572:				kfree_skb(skb);
1573:				continue;
1574:			}
1575:	
1576:			/* Process frame */
1577:			switch (nci_mt(skb->data)) {
1578:			case NCI_MT_RSP_PKT:
1579:				nci_rsp_packet(ndev, skb);
1580:				break;
1581:	
1582:			case NCI_MT_NTF_PKT:
1583:				nci_ntf_packet(ndev, skb);
1584:				break;
1585:	
1586:			case NCI_MT_DATA_PKT:
1587:				nci_rx_data_packet(ndev, skb);
1588:				break;
1589:	
1590:			default:
1591:				pr_err("unknown MT 0x%x\n", nci_mt(skb->data));
1592:				kfree_skb(skb);
1593:				break;
1594:			}
1595:		}
1596:	
1597:		/* check if a data exchange timeout has occurred */
1598:		if (test_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags)) {
1599:			/* complete the data exchange transaction, if exists */
1600:			if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
1601:				nci_data_exchange_complete(ndev, NULL,
1602:							   ndev->cur_conn_id,
1603:							   -ETIMEDOUT);
1604:	
1605:			clear_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags);
1606:		}
1607:	}
1608:	
1609:	/* ----- NCI TX CMD worker thread ----- */
]

138/4 2026/10/01 06:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 24069
							output: 49
							thoughts: 46
						

Thoughts:
**My Thought Process Regarding Packet Ingress**

Okay, before I dive deeper into this particular section, there's something that's just caught my eye, a potential interdependency I need to fully understand. I've noticed the mechanism by which incoming network packets find their way into `ndev->rx_q`, and then, crucially, how the processing of these packets is initiated via `ndev->rx_work` being queued. My immediate instinct is to trace this flow meticulously. To that end, my next step is to perform a targeted search for both `rx_work` and `rx_q` across the codebase. I need to see exactly where these are referenced, how they are populated, and how the work queueing mechanism operates in relation to them. This will be key to grasping the full picture of packet reception and initial processing.


139/4 2026/10/01 06:02 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:5 Name:nci_dev::rx_work]

Results:
map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_data_timer SourceFile:net/nfc/nci/core.c SourceLine:636 SourceSnippet: 631:	static void nci_data_timer(struct timer_list *t)
 632:	{
 633:		struct nci_dev *ndev = timer_container_of(ndev, t, data_timer);
 634:	
 635:		set_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags);
 636:		queue_work(ndev->rx_wq, &ndev->rx_work);
 637:	}
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_recv_frame SourceFile:net/nfc/nci/core.c SourceLine:1363 SourceSnippet:1358:			return -ENXIO;
1359:		}
1360:	
1361:		/* Queue frame for rx worker thread */
1362:		skb_queue_tail(&ndev->rx_q, skb);
1363:		queue_work(ndev->rx_wq, &ndev->rx_work);
1364:	
1365:		return 0;
1366:	}
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1267 SourceSnippet:1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
1268:		snprintf(name, sizeof(name), "%s_nci_rx_wq", dev_name(dev));
1269:		ndev->rx_wq = create_singlethread_workqueue(name);
1270:		if (!ndev->rx_wq) {
1271:			rc = -ENOMEM;
1272:			goto destroy_cmd_wq_exit;
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1267 SourceSnippet:1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
1268:		snprintf(name, sizeof(name), "%s_nci_rx_wq", dev_name(dev));
1269:		ndev->rx_wq = create_singlethread_workqueue(name);
1270:		if (!ndev->rx_wq) {
1271:			rc = -ENOMEM;
1272:			goto destroy_cmd_wq_exit;
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1267 SourceSnippet:1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
1268:		snprintf(name, sizeof(name), "%s_nci_rx_wq", dev_name(dev));
1269:		ndev->rx_wq = create_singlethread_workqueue(name);
1270:		if (!ndev->rx_wq) {
1271:			rc = -ENOMEM;
1272:			goto destroy_cmd_wq_exit;
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1267 SourceSnippet:1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
1268:		snprintf(name, sizeof(name), "%s_nci_rx_wq", dev_name(dev));
1269:		ndev->rx_wq = create_singlethread_workqueue(name);
1270:		if (!ndev->rx_wq) {
1271:			rc = -ENOMEM;
1272:			goto destroy_cmd_wq_exit;
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1267 SourceSnippet:1262:		if (!ndev->cmd_wq) {
1263:			rc = -ENOMEM;
1264:			goto exit;
1265:		}
1266:	
1267:		INIT_WORK(&ndev->rx_work, nci_rx_work);
1268:		snprintf(name, sizeof(name), "%s_nci_rx_wq", dev_name(dev));
1269:		ndev->rx_wq = create_singlethread_workqueue(name);
1270:		if (!ndev->rx_wq) {
1271:			rc = -ENOMEM;
1272:			goto destroy_cmd_wq_exit;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:nci_rx_work SourceFile:net/nfc/nci/core.c SourceLine:1561 SourceSnippet:1559:	static void nci_rx_work(struct work_struct *work)
1560:	{
1561:		struct nci_dev *ndev = container_of(work, struct nci_dev, rx_work);
1562:		struct sk_buff *skb;
1563:	
1564:		for (; (skb = skb_dequeue(&ndev->rx_q)); kcov_remote_stop()) {
1565:			kcov_remote_start_common(skb_get_kcov_handle(skb));
1566:	
]] TruncatedOutput:false]

140/4 2026/10/01 06:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 25828
							output: 40
							thoughts: 42
						

Thoughts:
**My Dive into `nci_recv_frame`'s Mechanics**

Alright, I'm going to zero in on the `nci_recv_frame` function within the `net/nfc/nci/core.c` kernel module. My immediate focus is to meticulously examine the code block spanning lines 1345 through 1375. I'm expecting this section to be crucial for understanding how NFC frames are received and processed at a fundamental level. I'll be looking for the core logic that identifies incoming data, potentially handles frame synchronization, parses header information, and prepares the data for further NFC protocol handling. My goal is to grasp the precise steps the driver takes to ingest and validate raw NFC frames before they are passed up the stack.


141/4 2026/10/01 06:02 tool read-file
0m Args:
map[File:net/nfc/nci/core.c FirstLine:1345 LineCount:30]

Results:
map[Contents:1345:	/**
1346:	 * nci_recv_frame - receive frame from NCI drivers
1347:	 *
1348:	 * @ndev: The nci device
1349:	 * @skb: The sk_buff to receive
1350:	 */
1351:	int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb)
1352:	{
1353:		pr_debug("len %d\n", skb->len);
1354:	
1355:		if (!ndev || (!test_bit(NCI_UP, &ndev->flags) &&
1356:		    !test_bit(NCI_INIT, &ndev->flags))) {
1357:			kfree_skb(skb);
1358:			return -ENXIO;
1359:		}
1360:	
1361:		/* Queue frame for rx worker thread */
1362:		skb_queue_tail(&ndev->rx_q, skb);
1363:		queue_work(ndev->rx_wq, &ndev->rx_work);
1364:	
1365:		return 0;
1366:	}
1367:	EXPORT_SYMBOL(nci_recv_frame);
1368:	
1369:	int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb)
1370:	{
1371:		pr_debug("len %d\n", skb->len);
1372:	
1373:		if (!ndev) {
1374:			kfree_skb(skb);
]

142/4 2026/10/01 06:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 26367
							output: 45
							thoughts: 1134
						

Thoughts:
**My Thoughts on `nci_recv_frame` and Device State During Closure**

As I examine the `nci_recv_frame` function, my immediate thought is about how it handles incoming frames based on the device's state. It checks the `NCI_UP` and `NCI_INIT` flags on the `ndev` structure. If the device isn't marked as UP or INITIALLY setting up, it simply discards the incoming packet (`kfree_skb`) and returns an error. This makes sense – we shouldn't be processing frames for a device that's not ready. The valid frames are queued for the RX worker thread via `skb_queue_tail` and `queue_work`.

However, when I look closely at the interaction between `nci_close_device`, `nci_unregister_device`, and `nci_recv_frame`, a potential issue emerges. Specifically, I'm drawn to what happens within `nci_close_device`.

Let's trace the logic: If the device is indeed UP (meaning `test_and_clear_bit(NCI_UP, &ndev->flags)` returns true), the `NCI_UP` flag is cleared. Following this, the RX and TX queues are purged (`skb_queue_purge`), and the TX workqueue is flushed (`flush_workqueue(ndev->tx_wq)`). Crucially, a reset command is then queued by calling `__nci_request` after setting the `NCI_INIT` flag.

Here's where my concern solidifies: I know that `nci_recv_frame` will accept frames if `NCI_INIT` is set. But then, `nci_close_device` proceeds to flush the RX workqueue *after* clearing the `NCI_INIT` flag. By the time `nci_close_device` returns, both `NCI_UP` and `NCI_INIT` are cleared.

This seems fine for a typical closure where the device was UP. But what if `nci_close_device` is invoked when the device was *not* already UP? In that scenario, the `if (!test_and_clear_bit(NCI_UP, &ndev->flags))` block is entered. In this "not UP" path, the `flush_workqueue(ndev->rx_wq)` call is conspicuously absent.

My mind immediately jumps to this: If `NCI_UP` was not set, and the RX workqueue is *not* flushed, could there be a scenario where `rx_work` is still running, or might start running, *without* `NCI_UP` or `NCI_INIT` being set? If `rx_work` were to process a frame in this state, and it implicitly relies on `NCI_UP` or `NCI_INIT` for safe operation (which `nci_recv_frame` itself does), this could lead to a race condition or a crash.

This leads me to ask: When exactly is `NCI_UP` actually set? I need to investigate where `NCI_UP` is set and cleared across the module to fully understand the implications of this "not UP" path in `nci_close_device`. If `NCI_UP` can be cleared in `nci_close_device` without a corresponding flush of the RX workqueue, and if the RX worker can still be active in that state, then we might have a problem.


143/4 2026/10/01 06:03 tool codesearch-find-references
0m Error:
log-in to see details

Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:5 Name:NCI_UP]

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

144/4 2026/10/01 06:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 27549
							output: 29
							thoughts: 19
						

Thoughts:
**My Thought Process on Examining `NCI_UP` in `net/nfc/`**

Alright, so the first thing that comes to my mind, given my expertise in this domain, is to get a handle on where `NCI_UP` is being used within the `net/nfc/` directory. My immediate instinct is to perform a `grep` operation. This isn't just a casual search; it's about understanding the context, the scope, and the implications of this identifier. I want to see all the instances where `NCI_UP` appears. Is it a macro? A variable? A function name? Knowing its usage will tell me a lot about its purpose within the NFC subsystem. I'll be looking for patterns: is it consistently defined or used in specific conditional blocks? Is it related to initialization, state management, or perhaps a specific NFC controller interface command? This initial `grep` is my way of mapping out the landscape before I dive deeper into specific code sections.


145/4 2026/10/01 06:03 tool grepper
0m Args:
map[Expression:NCI_UP PathPrefix:net/nfc/]

Results:
map[Output:net/nfc/nci/core.c=141=inline int nci_request(struct nci_dev *ndev,
--
net/nfc/nci/core.c-152-	 */
net/nfc/nci/core.c:153:	if (test_bit(NCI_UP, &ndev->flags))
net/nfc/nci/core.c-154-		rc = __nci_request(ndev, req, opt, timeout);
--
net/nfc/nci/core.c=474=static int nci_open_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-484-
net/nfc/nci/core.c:485:	if (test_bit(NCI_UP, &ndev->flags)) {
net/nfc/nci/core.c-486-		rc = -EALREADY;
--
net/nfc/nci/core.c-535-	if (!rc) {
net/nfc/nci/core.c:536:		set_bit(NCI_UP, &ndev->flags);
net/nfc/nci/core.c-537-		nci_clear_target_list(ndev);
--
net/nfc/nci/core.c=554=static int nci_close_device(struct nci_dev *ndev)
--
net/nfc/nci/core.c-562-
net/nfc/nci/core.c:563:	if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
net/nfc/nci/core.c-564-		/* Need to flush the cmd wq in case
--
net/nfc/nci/core.c-593-	/* After this point our queues are empty
net/nfc/nci/core.c:594:	 * rx work may be running but will see that NCI_UP was cleared
net/nfc/nci/core.c-595-	 */
--
net/nfc/nci/core.c=1351=int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb)
--
net/nfc/nci/core.c-1354-
net/nfc/nci/core.c:1355:	if (!ndev || (!test_bit(NCI_UP, &ndev->flags) &&
net/nfc/nci/core.c-1356-	    !test_bit(NCI_INIT, &ndev->flags))) {
]

146/4 2026/10/01 06:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 28270
							output: 39
							thoughts: 13
						

Thoughts:
**My Thought Process on `nci_open_device`**

Right, first things first, I need to dive into `nci_open_device`. This is a critical juncture, the entry point for establishing communication with the NCI hardware. My immediate thought is to scrutinize the function's signature and its intended purpose. I'm looking for how it handles device identification – is it by a specific name, an index, or some other identifier? Then, I'll trace the control flow to understand the underlying system calls or library functions it relies on to actually interact with the operating system's device management layer.

Crucially, I'll be paying very close attention to error handling. What are the potential failure modes at this stage? Is it failing to find the device, lacking the necessary permissions, or encountering some underlying hardware initialization issue? I need to see how these errors are propagated back to the caller, what specific error codes or messages are returned, and whether there's any recourse for the user or application to resolve these issues. This function is the bedrock for all subsequent NCI operations, so a robust and informative failure mechanism here is paramount for debugging and overall system stability. I'm also keen to observe any resource management aspects – does `nci_open_device` acquire locks, allocate buffers, or establish persistent connections that need to be managed later? Understanding this early helps me anticipate potential resource leaks or contention issues down the line.


147/4 2026/10/01 06:03 tool read-file
0m Args:
map[File:net/nfc/nci/core.c FirstLine:474 LineCount:70]

Results:
map[Contents: 474:	static int nci_open_device(struct nci_dev *ndev)
 475:	{
 476:		int rc = 0;
 477:	
 478:		mutex_lock(&ndev->req_lock);
 479:	
 480:		if (test_bit(NCI_UNREG, &ndev->flags)) {
 481:			rc = -ENODEV;
 482:			goto done;
 483:		}
 484:	
 485:		if (test_bit(NCI_UP, &ndev->flags)) {
 486:			rc = -EALREADY;
 487:			goto done;
 488:		}
 489:	
 490:		if (ndev->ops->open(ndev)) {
 491:			rc = -EIO;
 492:			goto done;
 493:		}
 494:	
 495:		atomic_set(&ndev->cmd_cnt, 1);
 496:	
 497:		set_bit(NCI_INIT, &ndev->flags);
 498:	
 499:		if (ndev->ops->init)
 500:			rc = ndev->ops->init(ndev);
 501:	
 502:		if (!rc) {
 503:			rc = __nci_request(ndev, nci_reset_req, (void *)0,
 504:					   msecs_to_jiffies(NCI_RESET_TIMEOUT));
 505:		}
 506:	
 507:		if (!rc && ndev->ops->setup) {
 508:			rc = ndev->ops->setup(ndev);
 509:		}
 510:	
 511:		if (!rc) {
 512:			struct nci_core_init_v2_cmd nci_init_v2_cmd = {
 513:				.feature1 = NCI_FEATURE_DISABLE,
 514:				.feature2 = NCI_FEATURE_DISABLE
 515:			};
 516:			const void *opt = NULL;
 517:	
 518:			if (ndev->nci_ver & NCI_VER_2_MASK)
 519:				opt = &nci_init_v2_cmd;
 520:	
 521:			rc = __nci_request(ndev, nci_init_req, opt,
 522:					   msecs_to_jiffies(NCI_INIT_TIMEOUT));
 523:		}
 524:	
 525:		if (!rc && ndev->ops->post_setup)
 526:			rc = ndev->ops->post_setup(ndev);
 527:	
 528:		if (!rc) {
 529:			rc = __nci_request(ndev, nci_init_complete_req, (void *)0,
 530:					   msecs_to_jiffies(NCI_INIT_TIMEOUT));
 531:		}
 532:	
 533:		clear_bit(NCI_INIT, &ndev->flags);
 534:	
 535:		if (!rc) {
 536:			set_bit(NCI_UP, &ndev->flags);
 537:			nci_clear_target_list(ndev);
 538:			atomic_set(&ndev->state, NCI_IDLE);
 539:		} else {
 540:			/* Init failed, cleanup */
 541:			skb_queue_purge(&ndev->cmd_q);
 542:			skb_queue_purge(&ndev->rx_q);
 543:			skb_queue_purge(&ndev->tx_q);
]

148/4 2026/10/01 06:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 29363
							output: 39
							thoughts: 26
						

Thoughts:
**My Thought Process for Analyzing the Provided Text**

As an expert in my field, my initial instinct upon encountering this text is to immediately delve into its core content. The prompt specifically directs my attention to a particular section: lines 539-550. This targeted instruction signals that these lines are likely of significant importance or contain crucial information. Therefore, my immediate thought is to execute this instruction precisely. I will read lines 539 through 550. However, the subsequent instruction, "Let's read lines 539-555," broadens the scope slightly. This suggests that while the primary focus is 539-550, there might be contextual relevance or a continuation of the thought process in the following lines up to 555. Therefore, I will adjust my reading to encompass this slightly larger range, understanding that the initial emphasis remains on the first section. This approach allows me to address the explicit directive while also ensuring I capture any immediate surrounding context that might inform my understanding of the core section. My objective is to gain a comprehensive understanding of the material presented within these specified lines to form a complete and nuanced summary, reflecting the depth of analysis expected of an expert.


149/4 2026/10/01 06:03 tool read-file
0m Args:
map[File:net/nfc/nci/core.c FirstLine:539 LineCount:20]

Results:
map[Contents: 539:		} else {
 540:			/* Init failed, cleanup */
 541:			skb_queue_purge(&ndev->cmd_q);
 542:			skb_queue_purge(&ndev->rx_q);
 543:			skb_queue_purge(&ndev->tx_q);
 544:	
 545:			ndev->ops->close(ndev);
 546:			ndev->flags &= BIT(NCI_UNREG);
 547:		}
 548:	
 549:	done:
 550:		mutex_unlock(&ndev->req_lock);
 551:		return rc;
 552:	}
 553:	
 554:	static int nci_close_device(struct nci_dev *ndev)
 555:	{
 556:		nci_req_cancel(ndev, ENODEV);
 557:	
 558:		/* This mutex needs to be held as a barrier for
]

150/4 2026/10/01 06:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 29701
							output: 20
							thoughts: 341
						

Thoughts:
**My Thought Process Regarding the `nci_rsp_packet` Warning**

Okay, so my attention has been immediately drawn to lines 539-550 within the `nci_open_device` function. This block specifically handles the scenario where the initialization process fails. The code clearly shows that if `init` fails, it purges three `skb_queue`s (`cmd_q`, `rx_q`, `tx_q`), then calls `ndev->ops->close(ndev)`, and finally clears the `NCI_UNREG` flag.

Now, here's where my thinking gets a bit intricate. I'm noticing that neither `flush_workqueue(ndev->cmd_wq)` nor `flush_workqueue(ndev->rx_wq)` is invoked in this failure path. My immediate internal question is: does this omission cause any harm? My initial assessment is no, because the `unregister` process, which presumably handles resource cleanup more comprehensively, is what would ultimately deal with any lingering work items. So, it seems like this might not be the direct culprit for destroying resources in this specific failure case.

However, the crux of the matter, and what I need to refocus on, is the *exact question being asked*: "Is there any other way to trigger the warning 'workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq' in nci_rsp_packet?" This isn't about resource leakage in `nci_open_device`'s failure path, but about the specific warning message and its trigger within `nci_rsp_packet`.

This prompts me to consider if this warning is tied to a particular patch or a very specific, perhaps edge-case, scenario. To investigate this, my next logical step is to search through git commits or the system logs. The immediate practical constraint here is my ability to perform such searches. Do I have the tools available to search commits or logs within this environment? I need to determine if a `.git` directory is accessible, as that would be the standard indicator of a version-controlled repository.

Therefore, my immediate next action would be to test if I can check for the existence of a `.git` directory, perhaps by trying commands like `codesearch-dir-index` on `.git`, or a `read-file` equivalent to see if it's accessible. This would tell me if I can even begin to look for historical context that might explain the origin of this warning message.


151/4 2026/10/01 06:03 tool codesearch-dir-index
0m Args:
map[Dir:.git]

Results:
map[Files:<nil> Subdirs:[branches hooks info logs objects refs]]

152/4 2026/10/01 06:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 30075
							output: 40
							thoughts: 2547
						

Thoughts:
**My Thought Process Regarding the `workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq` Warning**

So, I'm trying to understand how this specific warning, "workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq," can be triggered. My initial thought is, "Can Grepper search git repos for this, maybe even `.git` or commit logs?" But then I recall that Grepper actually uses `git grep` on kernel sources, which means it searches tracked files and the commit index, not the commit logs themselves. So, that avenue is limited.

The core of the question is about finding *other* ways to trigger this warning, beyond the one I'm already aware of. This immediately makes me ask: "What is the *primary* or *known* way this warning occurs?" To answer that, I need to dig into what actually *causes* the warning in the first place.

I find the warning itself in `kernel/workqueue.c`:
`WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n", work->func, wq->name)`

This warning fires when `queue_work(wq, work)` is called under specific conditions: the workqueue (`wq`) must be in a state where it's being destroyed (`__WQ_DESTROYING`) or drained (`__WQ_DRAINING`), *and* it's not a chained workqueue (`!is_chained_work(wq)`).

Now, let's apply this to the specific warning I'm investigating:
*   `work->func` is `nci_cmd_work`.
*   `wq` is `ndev->cmd_wq`, and its name is formatted to appear as `"nfc2_nci_cmd_wq"`.
*   The call site mentioned in the question is `nci_rsp_packet`.

I then examine `nci_rsp_packet` in `net/nfc/nci/rsp.c`. I see that within this function, there's a call:
`queue_work(ndev->cmd_wq, &ndev->cmd_work);`
This call is conditional: `if (!skb_queue_empty(&ndev->cmd_q))`.

So, for `queue_work(ndev->cmd_wq, &ndev->cmd_work)` in `nci_rsp_packet` to trigger the warning, three conditions must be met:
1.  `!skb_queue_empty(&ndev->cmd_q)` must be true. This means there's still an SKB (packet) waiting in the command queue.
2.  `ndev->cmd_wq` must have either `__WQ_DESTROYING` or `__WQ_DRAINING` flags set.
3.  `!is_chained_work(ndev->cmd_wq)` must be true. The text I'm looking at confirms this is *always* true in this specific context because `nci_rsp_packet` is typically executed from `nci_rx_work` on `ndev->rx_wq`, not `ndev->cmd_wq`.

The critical question then becomes: *How* can `ndev->cmd_wq` get those `__WQ_DESTROYING` or `__WQ_DRAINING` flags set? I need to look at where `ndev->cmd_wq` is destroyed or drained.

I trace through the code where `cmd_wq` is created and destroyed:
*   **`nci_register_device`**: Creates `ndev->cmd_wq` using `create_singlethread_workqueue` and has a path (`destroy_cmd_wq_exit`) to `destroy_workqueue(ndev->cmd_wq)`.
*   **`nci_unregister_device`**: Calls `destroy_workqueue(ndev->cmd_wq)`, `destroy_workqueue(ndev->rx_wq)`, and `destroy_workqueue(ndev->tx_wq)`.
*   **`nci_close_device`**: Calls `flush_workqueue(ndev->cmd_wq)`.

This brings up a crucial distinction: Does `flush_workqueue` set `__WQ_DRAINING` or `__WQ_DESTROYING`? My understanding is *no*. `flush_workqueue` essentially waits for pending work to complete without necessarily marking the workqueue for destruction. The `__WQ_DRAINING` flag is set by `drain_workqueue`, and `__WQ_DESTROYING` is set by `destroy_workqueue`.

I then check if `drain_workqueue` is explicitly called on `ndev->cmd_wq` anywhere outside of `destroy_workqueue`. My search indicates *no*, except within the `destroy_workqueue` mechanism itself.

So, the destruction/draining of `ndev->cmd_wq` only happens in `nci_register_device` (on error paths) and `nci_unregister_device`.

Now, let's consider the specific scenario during `nci_unregister_device`. I look at the order of operations:
```c
	destroy_workqueue(ndev->cmd_wq);
	destroy_workqueue(ndev->rx_wq);
	destroy_workqueue(ndev->tx_wq);
```
When `destroy_workqueue(ndev->cmd_wq)` is called, it *does* set `ndev->cmd_wq->flags |= __WQ_DESTROYING;` and then calls `drain_workqueue(ndev->cmd_wq)`.

The critical realization here is that *at this exact moment*, `ndev->cmd_wq` is marked for destruction. However, `ndev->rx_wq` is still *alive* and hasn't been destroyed yet.

This leads to a potential race condition: If `rx_work` (which executes on `ndev->rx_wq`) is currently running or gets scheduled and processes a packet that triggers `nci_rsp_packet`, and if that `nci_rsp_packet` finds `!skb_queue_empty(&ndev->cmd_q)`, it will attempt to call `queue_work(ndev->cmd_wq, &ndev->cmd_work)`. But `ndev->cmd_wq` now has `__WQ_DESTROYING` set, and *boom* – the warning is triggered. This appears to be the "known way" the warning happens, specifically during the unregistration process.

But the question is about *other* ways. I need to consider what else could cause `ndev->cmd_wq` to be drained or destroyed.

I re-examine `nci_close_device`. I find a specific code path within `nci_close_device` that seems relevant:
```c
	if (!test_and_clear_bit(NCI_UP, &ndev->flags)) {
		/* Need to flush the cmd wq in case
		 * there is a queued/running cmd_work
		 */
		flush_workqueue(ndev->cmd_wq);
		// ... other cleanup ...
		return 0;
	}
```
Crucially, when `NCI_UP` is *not* set (meaning the device wasn't successfully brought up or was already closed), the `skb_queue_purge(&ndev->cmd_q)` and `skb_queue_purge(&ndev->rx_q)` calls are skipped.

This is a major clue. If `NCI_UP` isn't set, it could be because:
1.  `nci_open_device` failed *after* creating the workqueues but before setting `NCI_UP`. In this failure path, `skb_queue_purge` *is* called for `cmd_q`, `rx_q`, and `tx_q`. So this doesn't seem to lead to the state.
2.  The device was closed via netlink/ioctl (calling `nci_close_device` which cleared `NCI_UP`) and then unregistered.
3.  The device was *never* successfully opened.
4.  `nci_close_device` was called concurrently with other operations.

The key observation is that if `NCI_UP` is not set, the command queue (`ndev->cmd_q`) might *not* be purged. This means there could be an SKB left in `ndev->cmd_q`. If, at the same time, `ndev->cmd_wq` is being flushed (but not necessarily drained or destroyed), and then `nci_rsp_packet` is called (potentially triggered by some other means if the workqueue state is complex), it could lead to issues. However, `flush_workqueue` itself doesn't set the `__WQ_DRAINING` flag, so it wouldn't directly cause the *warning*.

I'm still focused on how `__WQ_DRAINING` or `__WQ_DESTROYING` gets set. And outside of `nci_unregister_device`, the only other place `destroy_workqueue` is called is on error paths in `nci_register_device`.

I also consider if `ndev->cmd_wq` could be shared. But `create_singlethread_workqueue(name)` in `nci_register_device` strongly implies it's a dedicated, newly created workqueue for that specific device (`nfc2_nci_cmd_wq`), not shared.

So, the primary race condition I've identified is within `nci_unregister_device` due to the order of workqueue destruction and the potential for `nci_rx_work` to still be active. The question then becomes, are there *any other* code paths where `ndev->cmd_wq` might be destroyed or drained *while* it still has pending work or is expected to receive work from `nci_rsp_packet`?

I need to delve deeper into the behavior of `__nci_request` called in `nci_close_device`, as that seems to be a point where requests are initiated, and I'm trying to understand how that might interact with workqueue states in edge cases or during shutdown.


153/4 2026/10/01 06:04 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/nci/core.c Name:__nci_request]

Results:
map[SourceCode:  97:	/* Execute request and wait for completion. */
  98:	static int __nci_request(struct nci_dev *ndev,
  99:				 void (*req)(struct nci_dev *ndev, const void *opt),
 100:				 const void *opt, __u32 timeout)
 101:	{
 102:		int rc = 0;
 103:		long completion_rc;
 104:	
 105:		ndev->req_status = NCI_REQ_PEND;
 106:	
 107:		reinit_completion(&ndev->req_completion);
 108:		req(ndev, opt);
 109:		completion_rc =
 110:			wait_for_completion_interruptible_timeout(&ndev->req_completion,
 111:								  timeout);
 112:	
 113:		pr_debug("wait_for_completion return %ld\n", completion_rc);
 114:	
 115:		if (completion_rc > 0) {
 116:			switch (ndev->req_status) {
 117:			case NCI_REQ_DONE:
 118:				rc = nci_to_errno(ndev->req_result);
 119:				break;
 120:	
 121:			case NCI_REQ_CANCELED:
 122:				rc = -ndev->req_result;
 123:				break;
 124:	
 125:			default:
 126:				rc = -ETIMEDOUT;
 127:				break;
 128:			}
 129:		} else {
 130:			pr_err("wait_for_completion_interruptible_timeout failed %ld\n",
 131:			       completion_rc);
 132:	
 133:			rc = ((completion_rc == 0) ? (-ETIMEDOUT) : (completion_rc));
 134:		}
 135:	
 136:		ndev->req_status = ndev->req_result = 0;
 137:	
 138:		return rc;
 139:	}
 SourceFile:net/nfc/nci/core.c]

154/4 2026/10/01 06:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 33272
							output: 49
							thoughts: 1679
						

Thoughts:
**My Thought Process Unpacked**

This is a deep dive into a potential race condition involving the NCI (Near Field Communication) subsystem in the Linux kernel, specifically focusing on how device closure (`nci_close_device`) interacts with command queue processing and interruptible timeouts.

My initial focus was on the `__nci_request` function and its use of `wait_for_completion_interruptible_timeout`. I immediately recognized the critical implication of `INTERRUPTIBLE`: if a signal interrupts this wait, the function returns `-ERESTARTSYS`. This immediately signals a potential issue where a pending request might be prematurely abandoned.

Then, my attention shifted to `nci_close_device`. I observed that it calls `flush_workqueue(ndev->rx_wq)`. My thought was: if `rx_wq` is flushed, can a frame still arrive and be processed? I then examined `nci_recv_frame` and saw its critical check: `!test_bit(NCI_UP, &ndev->flags) && !test_bit(NCI_INIT, &ndev->flags)`. If both flags are cleared, new frames are rejected with `-ENXIO`. This seems to cover the "happy path" where `NCI_UP` and `NCI_INIT` are cleared before new frames arrive after the flush.

However, the "BUT WAIT!" moment struck. What if the state of `NCI_UP` and `NCI_INIT` wasn't as expected when `nci_close_device` was called? I specifically considered the scenario where `NCI_UP` was *not* set. In this case, `nci_close_device` *doesn't* flush `rx_wq`. This immediately raised a flag: could there be pending frames on `rx_q` if `NCI_UP` wasn't set?

My next question was: when could `rx_q` have frames if `NCI_UP` wasn't set? This led me to look at `nci_open_device`. I found that if the initialization (`ops->init` or the initial `nci_reset_req`) fails, `skb_queue_purge(&ndev->rx_q)` is called. This seemed like a cleanup. But then, the crucial insight: what if `ndev->rx_work` was *already running* and had dequeued an SKB from `rx_q` *before* the purge? Even if `rx_wq` wasn't flushed, this could lead to an SKB being processed that shouldn't be.

This brought me to the command side. I noticed that in the failure path of `nci_open_device`, `skb_queue_purge(&ndev->cmd_q)` is also called. My mind immediately jumped to how commands get processed. I looked at `nci_rsp_packet` and its logic for queuing the next command: `if (!skb_queue_empty(&ndev->cmd_q)) queue_work(ndev->cmd_wq, &ndev->cmd_work);`. This means `cmd_q` *must not be empty* for `cmd_work` to be queued.

The core of my dilemma was: how could `cmd_q` *not* be empty when `cmd_wq` was being flushed or destroyed (as implied by the `nci_close_device` logic and the potential for `nci_open_device` failures)? This led me to the vital question: what are all the ways something can be *added* to `ndev->cmd_q`? I needed to trace the origins of items in that queue to understand how it could remain populated even when the system is shutting down or failing initialization. This is where I'm currently focused – identifying all `ndev->cmd_q` insertions to fully grasp the potential race.


155/4 2026/10/01 06:04 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:5 Name:nci_dev::cmd_q]

Results:
map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_close_device SourceFile:net/nfc/nci/core.c SourceLine:586 SourceSnippet: 581:	
 582:		/* Flush TX wq, RX wq flush can't be under the lock */
 583:		flush_workqueue(ndev->tx_wq);
 584:	
 585:		/* Reset device */
 586:		skb_queue_purge(&ndev->cmd_q);
 587:		atomic_set(&ndev->cmd_cnt, 1);
 588:	
 589:		set_bit(NCI_INIT, &ndev->flags);
 590:		__nci_request(ndev, nci_reset_req, (void *)0,
 591:			      msecs_to_jiffies(NCI_RESET_TIMEOUT));
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_cmd_work SourceFile:net/nfc/nci/core.c SourceLine:1620 SourceSnippet:1615:	
1616:		pr_debug("cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
1617:	
1618:		/* Send queued command */
1619:		if (atomic_read(&ndev->cmd_cnt)) {
1620:			skb = skb_dequeue(&ndev->cmd_q);
1621:			if (!skb)
1622:				return;
1623:	
1624:			kcov_remote_start_common(skb_get_kcov_handle(skb));
1625:			atomic_dec(&ndev->cmd_cnt);
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_open_device SourceFile:net/nfc/nci/core.c SourceLine:541 SourceSnippet: 536:			set_bit(NCI_UP, &ndev->flags);
 537:			nci_clear_target_list(ndev);
 538:			atomic_set(&ndev->state, NCI_IDLE);
 539:		} else {
 540:			/* Init failed, cleanup */
 541:			skb_queue_purge(&ndev->cmd_q);
 542:			skb_queue_purge(&ndev->rx_q);
 543:			skb_queue_purge(&ndev->tx_q);
 544:	
 545:			ndev->ops->close(ndev);
 546:			ndev->flags &= BIT(NCI_UNREG);
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_register_device SourceFile:net/nfc/nci/core.c SourceLine:1283 SourceSnippet:1278:		if (!ndev->tx_wq) {
1279:			rc = -ENOMEM;
1280:			goto destroy_rx_wq_exit;
1281:		}
1282:	
1283:		skb_queue_head_init(&ndev->cmd_q);
1284:		skb_queue_head_init(&ndev->rx_q);
1285:		skb_queue_head_init(&ndev->tx_q);
1286:	
1287:		timer_setup(&ndev->cmd_timer, nci_cmd_timer, 0);
1288:		timer_setup(&ndev->data_timer, nci_data_timer, 0);
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_rsp_packet SourceFile:net/nfc/nci/rsp.c SourceLine:462 SourceSnippet: 457:	end:
 458:		kfree_skb(skb);
 459:	
 460:		/* trigger the next cmd */
 461:		atomic_set(&ndev->cmd_cnt, 1);
 462:		if (!skb_queue_empty(&ndev->cmd_q))
 463:			queue_work(ndev->cmd_wq, &ndev->cmd_work);
 464:	}
] map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1414 SourceSnippet:1409:		nci_pbf_set((__u8 *)hdr, NCI_PBF_LAST);
1410:	
1411:		if (plen)
1412:			skb_put_data(skb, payload, plen);
1413:	
1414:		skb_queue_tail(&ndev->cmd_q, skb);
1415:		queue_work(ndev->cmd_wq, &ndev->cmd_work);
1416:	
1417:		return 0;
1418:	}
]] TruncatedOutput:false]

156/4 2026/10/01 06:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36285
							output: 47
							thoughts: 115
						

Thoughts:
**My Thought Process Unraveling NCI Command Queuing**

Ah, looking at the code here, a key insight just struck me: it appears that the `nci_send_cmd` function is the *exclusive* gatekeeper for introducing packets into the `ndev->cmd_q` queue. The specific line `skb_queue_tail(&ndev->cmd_q, skb);` confirms this for me. It's a very direct and singular pathway.

My immediate follow-up thought, naturally, is to then understand how these commands are *processed*. And bingo! I see that `nci_cmd_work` is the counterpart, responsible for dequeuing from this very same `cmd_q` via `skb = skb_dequeue(&ndev->cmd_q);`. This establishes a clear producer-consumer relationship, with `nci_send_cmd` as the producer and `nci_cmd_work` as the consumer for this command queue.

Now, given this strong understanding of how commands enter and leave the queue, my next logical step is to trace the origin of these commands. To do that, I need to know *who* is actually invoking `nci_send_cmd`. So, my immediate action is to perform a comprehensive search for all call sites of `nci_send_cmd` within the codebase. This will illuminate the various scenarios and components that initiate the transmission of NCI commands.


157/4 2026/10/01 06:05 tool codesearch-find-references
0m Args:
map[ContextFile:net/nfc/nci/core.c IncludeSnippetLines:5 Name:nci_send_cmd]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:create_lc SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:174 SourceSnippet: 169:	static void create_lc(struct nfcmrvl_private *priv)
 170:	{
 171:		uint8_t param[2] = { NCI_CORE_LC_PROP_FW_DL, 0x0 };
 172:	
 173:		priv->fw_dnld.state = STATE_OPEN_LC;
 174:		nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CREATE_CMD, 2, param);
 175:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_close_req SourceFile:net/nfc/nci/core.c SourceLine:758 SourceSnippet: 754:	static void nci_core_conn_close_req(struct nci_dev *ndev, const void *opt)
 755:	{
 756:		__u8 conn_id = (unsigned long)opt;
 757:	
 758:		nci_send_cmd(ndev, NCI_OP_CORE_CONN_CLOSE_CMD, 1, &conn_id);
 759:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_core_conn_create_req SourceFile:net/nfc/nci/core.c SourceLine:712 SourceSnippet: 708:	static void nci_core_conn_create_req(struct nci_dev *ndev, const void *opt)
 709:	{
 710:		const struct core_conn_create_data *data = opt;
 711:	
 712:		nci_send_cmd(ndev, NCI_OP_CORE_CONN_CREATE_CMD, data->length, data->cmd);
 713:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_generic_req SourceFile:net/nfc/nci/core.c SourceLine:353 SourceSnippet: 349:	static void nci_generic_req(struct nci_dev *ndev, const void *opt)
 350:	{
 351:		const struct nci_cmd_param *param = opt;
 352:	
 353:		nci_send_cmd(ndev, param->opcode, param->len, param->payload);
 354:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_init_complete_req SourceFile:net/nfc/nci/core.c SourceLine:212 SourceSnippet: 207:	
 208:			if (*num == NCI_MAX_NUM_MAPPING_CONFIGS)
 209:				break;
 210:		}
 211:	
 212:		nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_MAP_CMD,
 213:			     (1 + ((*num) * sizeof(struct disc_map_config))), &cmd);
 214:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_init_req SourceFile:net/nfc/nci/core.c SourceLine:177 SourceSnippet: 172:		u8 plen = 0;
 173:	
 174:		if (opt)
 175:			plen = sizeof(struct nci_core_init_v2_cmd);
 176:	
 177:		nci_send_cmd(ndev, NCI_OP_CORE_INIT_CMD, plen, opt);
 178:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_discover_req SourceFile:net/nfc/nci/core.c SourceLine:676 SourceSnippet: 671:		struct nci_nfcee_discover_cmd cmd;
 672:		__u8 action = (unsigned long)opt;
 673:	
 674:		cmd.discovery_action = action;
 675:	
 676:		nci_send_cmd(ndev, NCI_OP_NFCEE_DISCOVER_CMD, 1, &cmd);
 677:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_nfcee_mode_set_req SourceFile:net/nfc/nci/core.c SourceLine:692 SourceSnippet: 688:	static void nci_nfcee_mode_set_req(struct nci_dev *ndev, const void *opt)
 689:	{
 690:		const struct nci_nfcee_mode_set_cmd *cmd = opt;
 691:	
 692:		nci_send_cmd(ndev, NCI_OP_NFCEE_MODE_SET_CMD,
 693:			     sizeof(struct nci_nfcee_mode_set_cmd), cmd);
 694:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_reset_req SourceFile:net/nfc/nci/core.c SourceLine:167 SourceSnippet: 162:	static void nci_reset_req(struct nci_dev *ndev, const void *opt)
 163:	{
 164:		struct nci_core_reset_cmd cmd;
 165:	
 166:		cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG;
 167:		nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd);
 168:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_deactivate_req SourceFile:net/nfc/nci/core.c SourceLine:339 SourceSnippet: 334:	{
 335:		struct nci_rf_deactivate_cmd cmd;
 336:	
 337:		cmd.type = (unsigned long)opt;
 338:	
 339:		nci_send_cmd(ndev, NCI_OP_RF_DEACTIVATE_CMD,
 340:			     sizeof(struct nci_rf_deactivate_cmd), &cmd);
 341:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_discover_req SourceFile:net/nfc/nci/core.c SourceLine:297 SourceSnippet: 292:				NCI_NFC_F_PASSIVE_LISTEN_MODE;
 293:			cmd.disc_configs[cmd.num_disc_configs].frequency = 1;
 294:			cmd.num_disc_configs++;
 295:		}
 296:	
 297:		nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_CMD,
 298:			     (1 + (cmd.num_disc_configs * sizeof(struct disc_config))),
 299:			     &cmd);
 300:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_rf_discover_select_req SourceFile:net/nfc/nci/core.c SourceLine:329 SourceSnippet: 324:		default:
 325:			cmd.rf_interface = NCI_RF_INTERFACE_FRAME;
 326:			break;
 327:		}
 328:	
 329:		nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_SELECT_CMD,
 330:			     sizeof(struct nci_rf_discover_select_cmd), &cmd);
 331:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nci_set_config_req SourceFile:net/nfc/nci/core.c SourceLine:234 SourceSnippet: 229:		cmd.num_params = 1;
 230:		cmd.param.id = param->id;
 231:		cmd.param.len = param->len;
 232:		memcpy(cmd.param.val, param->val, param->len);
 233:	
 234:		nci_send_cmd(ndev, NCI_OP_CORE_SET_CONFIG_CMD, (3 + param->len), &cmd);
 235:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:process_state_close_lc SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:362 SourceSnippet: 357:		if (sizeof(nci_pattern_core_conn_close_rsp) != skb->len ||
 358:		    memcmp(skb->data, nci_pattern_core_conn_close_rsp, skb->len))
 359:			return -EINVAL;
 360:	
 361:		priv->fw_dnld.state = STATE_BOOT;
 362:		nci_send_cmd(priv->ndev, NCI_OP_PROPRIETARY_BOOT_CMD, 0, NULL);
 363:		return 0;
 364:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:process_state_fw_dnld SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:315 SourceSnippet: 310:			if (priv->fw_dnld.chunk_len == 0) {
 311:				/* FW Loading is done */
 312:				uint8_t conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL;
 313:	
 314:				priv->fw_dnld.state = STATE_CLOSE_LC;
 315:				nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CLOSE_CMD,
 316:					     1, &conn_id);
 317:			} else {
 318:				out_skb = alloc_lc_skb(priv, priv->fw_dnld.chunk_len);
 319:				if (!out_skb)
 320:					return -ENOMEM;
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:process_state_init SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:162 SourceSnippet: 157:		cmd.num_params = 1;
 158:		cmd.param.id = NFCMRVL_PROP_REF_CLOCK;
 159:		cmd.param.len = 4;
 160:		memcpy(cmd.param.val, &priv->fw_dnld.header->ref_clock, 4);
 161:	
 162:		nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len,
 163:			     &cmd);
 164:	
 165:		priv->fw_dnld.state = STATE_SET_REF_CLOCK;
 166:		return 0;
 167:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:process_state_reset SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:142 SourceSnippet: 137:	
 138:		nfc_info(priv->dev, "BootROM reset, start fw download\n");
 139:	
 140:		/* Start FW download state machine */
 141:		priv->fw_dnld.state = STATE_INIT;
 142:		nci_send_cmd(priv->ndev, NCI_OP_CORE_INIT_CMD, 0, NULL);
 143:	
 144:		return 0;
 145:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:process_state_set_ref_clock SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:218 SourceSnippet: 213:			create_lc(priv);
 214:			return 0;
 215:		}
 216:	
 217:		priv->fw_dnld.state = STATE_SET_HI_CONFIG;
 218:		nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len,
 219:			     &cmd);
 220:		return 0;
 221:	}
] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__UNIQUE_ID_addressable_nci_send_cmd_1470 SourceFile:net/nfc/nci/core.c SourceLine:1419 SourceSnippet:1419:	EXPORT_SYMBOL(nci_send_cmd);
] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1419 SourceSnippet:1419:	EXPORT_SYMBOL(nci_send_cmd);
] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_nci_send_cmd SourceFile:net/nfc/nci/core.c SourceLine:1419 SourceSnippet:1419:	EXPORT_SYMBOL(nci_send_cmd);
]] TruncatedOutput:false]

158/4 2026/10/01 06:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 39849
							output: 51
							thoughts: 115
						

Thoughts:
**My Thought Process Unfolding: Navigating the NFC Firmware Download Logic**

Alright, I'm diving into the NFC driver code, specifically the firmware download functionality. My immediate focus is `drivers/nfc/nfcmrvl/fw_dnld.c`. That's the file I've got my eyes on right now.

Hold on a second – before I get too deep into `fw_dnld.c`, I just noticed something crucial. It looks like `drivers/nfc/nfcmrvl/fw_dnld.c` itself is directly invoking `nci_send_cmd`. That’s a significant detail. It tells me the firmware download process is initiating direct NCI commands.

Now my curiosity is piqued. If `fw_dnld.c` is sending these commands, where is `fw_dnld.c` being called from in the first place? I need to trace the execution flow back.

So, the next logical step is to examine `fw_dnld.c` itself – not just for what it *does* internally, but for how and when it's *activated*. That's where I'll find the entry point into this firmware download sequence.


159/4 2026/10/01 06:05 tool codesearch-find-references
0m Args:
map[ContextFile:drivers/nfc/nfcmrvl/fw_dnld.c IncludeSnippetLines:5 Name:process_state_reset]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:fw_dnld_rx_work SourceFile:drivers/nfc/nfcmrvl/fw_dnld.c SourceLine:412 SourceSnippet: 407:		while ((skb = skb_dequeue(&fw_dnld->rx_q))) {
 408:			nfc_send_to_raw_sock(priv->ndev->nfc_dev, skb,
 409:					     RAW_PAYLOAD_NCI, NFC_DIRECTION_RX);
 410:			switch (fw_dnld->state) {
 411:			case STATE_RESET:
 412:				ret = process_state_reset(priv, skb);
 413:				break;
 414:			case STATE_INIT:
 415:				ret = process_state_init(priv, skb);
 416:				break;
 417:			case STATE_SET_REF_CLOCK:
]] TruncatedOutput:false]

160/4 2026/10/01 06:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 40257
							output: 30
							thoughts: 293
						

Thoughts:
**My Thought Process Regarding the NFC NCI Workqueue Warning**

So, I'm examining this `nfcmrvl` component, and I'm immediately struck by its non-standard approach to firmware downloads. It has its own `rx_work` for `fw_dnld`, which deviates from the typical NCI (NFC Controller Interface) implementation. This immediately flags it as a potential area of interest.

Now, I'm refocusing on the precise question posed: "Is there any other way to trigger the warning 'workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq' in `nci_rsp_packet`?" The emphasis on "ANY OTHER way" is what really grabs my attention. It implies that there's already a known method to induce this specific warning.

My immediate next thought is to probe what that "known way" might be. What is the established scenario that leads to this "cannot queue" message? Could it be related to device unregistration, or perhaps a race condition occurring during device closing or unregistration? That feels like a plausible candidate for a resource exhaustion or timing-sensitive error within a workqueue.

To confirm my suspicions and understand the context, I need to dig deeper. My next logical step is to search the commit history and bug reports for occurrences of "cannot queue nci_cmd_work on wq". This is a direct attempt to find existing discussions or solutions related to this exact warning.

And then, a crucial realization hits me: I have access to Git within this environment. This opens up a powerful avenue. Can I directly query the Git commit log? More specifically, is there a readily accessible file containing this log, or can I directly inspect the `.git` directory?

The final, and perhaps most experimental, thought is to test the capability of the `read-file` command. Can it actually read files within the `.git` directory, such as `.git/logs/HEAD` or `.git/HEAD`? This is a critical step to determine if I can gather direct historical information about code changes that might have introduced or fixed this workqueue issue. If `read-file` can access these, I'm on the verge of uncovering valuable insights.


161/4 2026/10/01 06:05 tool read-file
0m Args:
map[File:.git/HEAD FirstLine:1 LineCount:10]

Results:
map[Contents:   1:	d266640c6c760c9bc215bf5a3ece122ca488b6f5
]

162/4 2026/10/01 06:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 40728
							output: 1162
							thoughts: 1797
						

Thoughts:
**My Thought Process Regarding the "workqueue: cannot queue %ps on wq %s" Warning**

I've been deeply analyzing the root cause of the `"workqueue: cannot queue %ps on wq %s\n"` warning, and I believe I have a comprehensive understanding. Here's how my thoughts coalesced, synthesizing all the information available to me.

First, I pinpointed the exact origin of the warning. I traced it back to the `__queue_work()` function within `kernel/workqueue.c`. The warning is triggered by this specific check:

```c
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
         WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
                   work->func, wq->name)))
```

I then contextualized this with the specific values involved in our scenario:
*   `work->func` is `nci_cmd_work`.
*   `wq->name` is `nfc2_nci_cmd_wq`, which is derived from `ndev->cmd_wq`.
*   Crucially, `!is_chained_work(wq)` evaluates to true. This is because `nci_rsp_packet` executes on `ndev->rx_wq`, not `ndev->cmd_wq`, so the worker is never executing on the *same* workqueue we're trying to queue onto.

My next step was to identify *where* in `nci_rsp_packet` this work is actually being queued. Looking at `net/nfc/nci/rsp.c`, I found the relevant line:

```c
void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb)
{
    // ...
    /* trigger the next cmd */
    atomic_set(&ndev->cmd_cnt, 1);
    if (!skb_queue_empty(&ndev->cmd_q))
        queue_work(ndev->cmd_wq, &ndev->cmd_work);
}
```

This told me the warning is issued if `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is called *and* `ndev->cmd_q` is not empty.

The critical question then became: **What causes `ndev->cmd_wq` to acquire the `__WQ_DESTROYING` or `__WQ_DRAINING` flags?** My analysis of the workqueue subsystem revealed that these flags are set *exclusively* within `destroy_workqueue(wq)` (which sets `__WQ_DESTROYING`) and `drain_workqueue(wq)` (which is called by `destroy_workqueue()` and sets `__WQ_DRAINING`).

This led me to examine all the places `ndev->cmd_wq` is destroyed. I found two primary locations where `destroy_workqueue(ndev->cmd_wq)` is called:
1.  The error exit path within `nci_register_device()`.
2.  The `nci_unregister_device()` function.

Importantly, neither `drain_workqueue()` nor any other mechanism *directly* sets these flags on `cmd_wq` outside of the `destroy_workqueue()` call.

Now, I had to reconcile the known triggering scenario with any other *potential* ways this could occur.

The **primary and known triggering scenario** is during device unregistration (`nci_unregister_device()`):
In `nci_unregister_device()`, `cmd_wq` is destroyed *before* `rx_wq`. If there's a command still pending in `ndev->cmd_q` (perhaps due to a prior command timeout, an early abort in `nci_close_device()`, or an interruption), and an incoming response packet triggers `nci_rx_work()` which then calls `nci_rsp_packet()`, we have a race condition. `nci_rsp_packet()` attempts to queue `ndev->cmd_work` onto `ndev->cmd_wq`, which has already been marked as `__WQ_DESTROYING`. Since `ndev->cmd_q` is not empty, `queue_work` is called, and the warning is issued.

This brought me to the question: **Is there any other way this could happen?** My exhaustive source code review suggests:

1.  **`nci_register_device()` failure:** If `destroy_workqueue(ndev->cmd_wq)` is called here due to a subsequent allocation failure, the device isn't fully registered. No driver would have received frames to trigger `nci_recv_frame()` and thus `nci_rsp_packet()`. `rx_wq` would likely also be uninitialized or already destroyed. So, this path doesn't seem to lead to the observed warning.

2.  **Device teardown/close race conditions outside of `nci_unregister_device()`:** My analysis indicates that any situation leading to `__WQ_DESTROYING` or `__WQ_DRAINING` on `ndev->cmd_wq` *necessitates* `destroy_workqueue(ndev->cmd_wq)` to be in progress or completed. Since `nci_unregister_device()` is the *only* place this is explicitly called outside of the registration failure path, I conclude there is **no other independent code path or mechanism in the kernel** that sets these flags on `ndev->cmd_wq` that could lead to this warning.

Within the unregistration flow itself, variations that keep packets in `ndev->cmd_q` could include:
*   Interrupted or timed-out `nci_reset_req` calls during `nci_close_device()`.
*   Concurrent `nci_close_device()` and `nci_unregister_device()` calls where `NCI_UP` wasn't cleanly handled, bypassing some queue purges.
*   External drivers (like `nfcmrvl`) queuing commands during the shutdown process.

Therefore, my conclusion is that the warning originates from a specific race condition within the device unregistration process, where a pending command in `cmd_q` is processed by `nci_rsp_packet` after `cmd_wq` has entered its destroying state. I have not found any other independent mechanism or code path that can independently put `cmd_wq` into a destroying/draining state and simultaneously have pending commands that would be queued.

I am now ready to provide this summary to the `set-results` tool, including these findings and any inherent caveats.


163/4 2026/10/01 06:06 tool set-results
0m Args:
map[Answer:Based on an analysis of the Linux kernel source code, here is the breakdown of how the warning `"workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq"` can be triggered in `nci_rsp_packet`:

### 1. Mechanism of the Warning
The warning is emitted by `__queue_work()` in `kernel/workqueue.c`:
```c
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
	     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
		       work->func, wq->name)))
```
This warning triggers under the following conditions:
1. `wq->flags` has `__WQ_DESTROYING` or `__WQ_DRAINING` set on `ndev->cmd_wq`.
2. `!is_chained_work(ndev->cmd_wq)` is true. Because `nci_rsp_packet()` is invoked from `nci_rx_work()` running on `ndev->rx_wq` (a different workqueue), `is_chained_work(ndev->cmd_wq)` is always false when called from `nci_rsp_packet()`.
3. In `nci_rsp_packet()` (`net/nfc/nci/rsp.c`), `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is executed because `!skb_queue_empty(&ndev->cmd_q)` is true.

### 2. How `ndev->cmd_wq` Enters `__WQ_DESTROYING` or `__WQ_DRAINING`
Across the entire kernel:
- `__WQ_DESTROYING` is only set in `destroy_workqueue(wq)`.
- `__WQ_DRAINING` is only set in `drain_workqueue(wq)` (which is called by `destroy_workqueue()`).

In the NFC/NCI subsystem, `ndev->cmd_wq` is a private, dedicated single-thread workqueue allocated per NCI device (`create_singlethread_workqueue`). The only locations where `destroy_workqueue(ndev->cmd_wq)` is invoked are:
1. `nci_register_device()` on error teardown (`destroy_cmd_wq_exit`).
2. `nci_unregister_device()` in `net/nfc/nci/core.c`.

### 3. Is there any other way outside of device unregistration?
**No**, there is no other independent code path or subsystem operation that can set `__WQ_DESTROYING` or `__WQ_DRAINING` on `ndev->cmd_wq`:
- **Registration error path (`nci_register_device`)**: If device registration fails after creating `cmd_wq`, `destroy_workqueue(ndev->cmd_wq)` is called. However, at that point the device has not been registered, no lower-level driver can pass received frames up via `nci_recv_frame()`, and `rx_wq` has not started processing, so `nci_rsp_packet()` cannot be executing in this path.
- **Normal close / reset (`nci_close_device`)**: Normal device close flushes `ndev->cmd_wq` via `flush_workqueue(ndev->cmd_wq)`. `flush_workqueue()` (`__flush_workqueue`) does not set `__WQ_DRAINING` or `__WQ_DESTROYING`.

Therefore, the warning **strictly requires `nci_unregister_device()`** (device unregistration / removal / unbind) to have started and called `destroy_workqueue(ndev->cmd_wq)`.

### 4. Variations within the Device Unregistration Flow
While there is no other code path outside `nci_unregister_device()`, the race condition triggering the warning can arise through a few different circumstances during unregistration because `destroy_workqueue(ndev->cmd_wq)` is called before `destroy_workqueue(ndev->rx_wq)`:
- **Device was not `NCI_UP` when unregistered**: If the device was never opened or if `nci_open_device()` failed, `nci_close_device()` returns early without purging `cmd_q` or flushing `rx_wq`.
- **Interrupted reset command in `nci_close_device()`**: `__nci_request(ndev, nci_reset_req, ...)` waits using `wait_for_completion_interruptible_timeout()`. If interrupted by a fatal signal or timeout, pending commands or responses can still linger in `cmd_q` and `rx_q`.
- **Driver-specific command queueing**: Certain drivers (e.g. `nfcmrvl/fw_dnld.c`) can queue commands directly to `ndev->cmd_q` via `nci_send_cmd()`.

### Limitations and Unverified Parts
- This analysis was conducted strictly through static code examination of the kernel repository. Specific syzbot / bug tracker history or specific out-of-tree module behavior was not verified.]

Results:
map[Answer:Based on an analysis of the Linux kernel source code, here is the breakdown of how the warning `"workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq"` can be triggered in `nci_rsp_packet`:

### 1. Mechanism of the Warning
The warning is emitted by `__queue_work()` in `kernel/workqueue.c`:
```c
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
	     WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
		       work->func, wq->name)))
```
This warning triggers under the following conditions:
1. `wq->flags` has `__WQ_DESTROYING` or `__WQ_DRAINING` set on `ndev->cmd_wq`.
2. `!is_chained_work(ndev->cmd_wq)` is true. Because `nci_rsp_packet()` is invoked from `nci_rx_work()` running on `ndev->rx_wq` (a different workqueue), `is_chained_work(ndev->cmd_wq)` is always false when called from `nci_rsp_packet()`.
3. In `nci_rsp_packet()` (`net/nfc/nci/rsp.c`), `queue_work(ndev->cmd_wq, &ndev->cmd_work)` is executed because `!skb_queue_empty(&ndev->cmd_q)` is true.

### 2. How `ndev->cmd_wq` Enters `__WQ_DESTROYING` or `__WQ_DRAINING`
Across the entire kernel:
- `__WQ_DESTROYING` is only set in `destroy_workqueue(wq)`.
- `__WQ_DRAINING` is only set in `drain_workqueue(wq)` (which is called by `destroy_workqueue()`).

In the NFC/NCI subsystem, `ndev->cmd_wq` is a private, dedicated single-thread workqueue allocated per NCI device (`create_singlethread_workqueue`). The only locations where `destroy_workqueue(ndev->cmd_wq)` is invoked are:
1. `nci_register_device()` on error teardown (`destroy_cmd_wq_exit`).
2. `nci_unregister_device()` in `net/nfc/nci/core.c`.

### 3. Is there any other way outside of device unregistration?
**No**, there is no other independent code path or subsystem operation that can set `__WQ_DESTROYING` or `__WQ_DRAINING` on `ndev->cmd_wq`:
- **Registration error path (`nci_register_device`)**: If device registration fails after creating `cmd_wq`, `destroy_workqueue(ndev->cmd_wq)` is called. However, at that point the device has not been registered, no lower-level driver can pass received frames up via `nci_recv_frame()`, and `rx_wq` has not started processing, so `nci_rsp_packet()` cannot be executing in this path.
- **Normal close / reset (`nci_close_device`)**: Normal device close flushes `ndev->cmd_wq` via `flush_workqueue(ndev->cmd_wq)`. `flush_workqueue()` (`__flush_workqueue`) does not set `__WQ_DRAINING` or `__WQ_DESTROYING`.

Therefore, the warning **strictly requires `nci_unregister_device()`** (device unregistration / removal / unbind) to have started and called `destroy_workqueue(ndev->cmd_wq)`.

### 4. Variations within the Device Unregistration Flow
While there is no other code path outside `nci_unregister_device()`, the race condition triggering the warning can arise through a few different circumstances during unregistration because `destroy_workqueue(ndev->cmd_wq)` is called before `destroy_workqueue(ndev->rx_wq)`:
- **Device was not `NCI_UP` when unregistered**: If the device was never opened or if `nci_open_device()` failed, `nci_close_device()` returns early without purging `cmd_q` or flushing `rx_wq`.
- **Interrupted reset command in `nci_close_device()`**: `__nci_request(ndev, nci_reset_req, ...)` waits using `wait_for_completion_interruptible_timeout()`. If interrupted by a fatal signal or timeout, pending commands or responses can still linger in `cmd_q` and `rx_q`.
- **Driver-specific command queueing**: Certain drivers (e.g. `nfcmrvl/fw_dnld.c`) can queue commands directly to `ndev->cmd_q` via `nci_send_cmd()`.

### Limitations and Unverified Parts
- This analysis was conducted strictly through static code examination of the kernel repository. Specific syzbot / bug tracker history or specific out-of-tree module behavior was not verified.]

164/2 2026/10/01 06:06 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 77566
							output: 876
							thoughts: 671
						

Thoughts:
**My Analysis: Confirming the Race Condition and Outlining the Reproduction Strategy**

It's incredibly satisfying to see my analysis confirmed. The race condition I painstakingly uncovered is indeed the *sole* pathway to trigger this bug. This gives me the confidence to move forward and articulate a clear strategy for its reproduction.

The core of the issue lies in the delicate dance between `nci_unregister_device` and `nci_rx_work` when the `nci_open_device` function is interrupted by a signal. Let me walk through the sequence of events as I understand them:

1.  The process begins with `nci_open_device` being invoked, typically through an `NFC_CMD_DEV_UP` netlink command. At this stage, the `NCI_INIT` flag is set, and a `nci_reset_req` is dispatched.

2.  Crucially, a response to this `nci_reset_req` is injected via `/dev/virtual_nci`.

3.  `nci_open_device` then proceeds to send a `nci_init_req` and enters a waiting state, employing `wait_for_completion_interruptible_timeout` for its completion.

4.  Here's where the timing becomes critical. A proprietary response packet (identified by `GID = NCI_GID_PROPRIETARY`) is injected. The `nci_rx_work` function processes this packet, reaches the conclusion of `nci_rsp_packet`, and performs a check: `!skb_queue_empty(&ndev->cmd_q)`. Since the `nci_init_req` is still queued in `cmd_q` at this precise moment, this condition evaluates to true.

5.  It is at this exact juncture, while `nci_rx_work` is midway through its processing, that it gets preempted.

6.  Simultaneously, a signal is delivered to the thread actively executing `nci_open_device`. This interruption causes `wait_for_completion_interruptible_timeout` to return `-ERESTARTSYS`.

7.  Consequently, `nci_open_device` aborts, its error handling kicks in, purging the `cmd_q` and releasing the `req_lock`.

8.  With the device operation having failed, the virtual NCI device is subsequently closed, which in turn invokes `nci_unregister_device`. Because the `NCI_UP` flag was never set (due to the failure of `nci_open_device`), `nci_close_device` exits prematurely without flushing the `rx_wq`.

9.  Following this, `nci_unregister_device` proceeds to call `destroy_workqueue(ndev->cmd_wq)`.

10. Finally, the preempted `nci_rx_work` resumes execution. It attempts to call `queue_work(ndev->cmd_wq, &ndev->cmd_work)`. However, because `ndev->cmd_wq` has already been destroyed, this operation targets a non-existent workqueue, leading directly to the observed warning.

To reliably trigger this sequence and expose the race condition, I've outlined the following reproduction steps:

1.  The first step involves opening the `/dev/virtual_nci` device.

2.  Next, I need to spawn a separate thread dedicated to continuously issuing `NFC_CMD_DEV_UP` commands via netlink.

3.  In the main thread, the strategy is to continuously write the specific reset response (`\x40\x00\x03\x00\x10\x00`) and the proprietary response (`\x4f\x00\x00`) to the file descriptor associated with the virtual NCI device.

4.  Concurrently, I must continuously send a signal – `SIGUSR1`, for example – to the thread that is responsible for executing the `NFC_CMD_DEV_UP` command.

5.  Finally, the loop involves closing the virtual NCI device descriptor and immediately reopening it, maintaining the continuous flow of operations.

By meticulously following these steps, the precise timing required for the race condition will be achieved, leading to the manifestation of the warning.


165/1 2026/10/01 06:07 loop
4m Error:
log-in to see details

166/2 2026/10/01 06:07 iteration 0
3m Error:
log-in to see details

167/3 2026/10/01 06:07 action If
0m Args:
map[OracleFeedback:]

168/3 2026/10/01 06:07 action merge-strategy
0m Results:
map[CurrentReproStrategy:An analysis of the kernel source code reveals that this bug is caused by a race condition between `nci_unregister_device()` and `nci_rx_work()` when `nci_open_device()` is interrupted by a signal.

### Root Cause Analysis
1. When a device is brought up (e.g., via the `NFC_CMD_DEV_UP` netlink command), `nci_open_device()` is called. It sets `NCI_INIT` and sends an `nci_reset_req` command.
2. If a valid reset response is received, `nci_open_device()` proceeds to send `nci_init_req` and waits for its completion using `wait_for_completion_interruptible_timeout()`. The command is queued in `ndev->cmd_q`.
3. If a proprietary response packet (GID = `NCI_GID_PROPRIETARY`) is received during this wait, `nci_rx_work()` processes it. It does not complete the pending request but reaches the end of `nci_rsp_packet()`, where it checks `!skb_queue_empty(&ndev->cmd_q)`. Since `nci_init_req` is still in the queue, this evaluates to true.
4. If `nci_rx_work()` is preempted right after this check, and a signal is delivered to the thread executing `nci_open_device()`, the wait is interrupted (`-ERESTARTSYS`).
5. `nci_open_device()` fails, purges `cmd_q`, and releases `req_lock` without ever setting `NCI_UP`.
6. If the device is then unregistered (e.g., closing `/dev/virtual_nci`), `nci_unregister_device()` calls `nci_close_device()`. Because `NCI_UP` is not set, `nci_close_device()` returns early and **does not flush `rx_wq`**.
7. `nci_unregister_device()` proceeds to call `destroy_workqueue(ndev->cmd_wq)`.
8. `nci_rx_work()` resumes and executes `queue_work(ndev->cmd_wq, &ndev->cmd_work)` on the destroyed workqueue, triggering the warning.

### Reproduction Strategy
To reproduce this issue reliably, we can use the `virtual_ncidev` driver to inject packets and race the device teardown against the interrupted initialization.

1. **Setup**: Open `/dev/virtual_nci` to create a virtual NCI device.
2. **Trigger Initialization**: Spawn a thread that continuously sends the `NFC_CMD_DEV_UP` netlink command to bring the device up.
3. **Inject Packets**: In the main thread, continuously write the following packets to the `/dev/virtual_nci` file descriptor:
   - A valid reset response: `\x40\x00\x03\x00\x10\x00` (MT=2, GID=0, OID=0, Len=3, Status=OK, NCI_Ver=1.0).
   - A proprietary response: `\x4f\x00\x00` (MT=2, GID=0xf, OID=0, Len=0).
4. **Interrupt and Teardown**: 
   - Continuously send a signal (e.g., `SIGUSR1`) to the thread executing `NFC_CMD_DEV_UP` to interrupt the `wait_for_completion_interruptible_timeout()`.
   - Close the `/dev/virtual_nci` file descriptor to trigger `nci_unregister_device()`.
5. **Loop**: Reopen the device and repeat the process in a tight loop to hit the race window between the `!skb_queue_empty()` check and the `queue_work()` call in `nci_rsp_packet()`.]

169/3 2026/10/01 06:07 agent repro-generator
1m Model:
deep-reasoning

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}
]

Instruction:
You are a security researcher with deep Linux kernel background.
Your goal is to generate a minimal, standalone C program for the strictly defensive
purpose of verifying a bugfix in an isolated environment.

To ensure that we can diagnose why a program might fail to run on the test environment,
you MUST include detailed logging and error checking in the generated C program:
1. Use 'printf(...)' for all progress messages and error logs.
2. Every system call (e.g., socket, bind, listen, connect, ioctl, send) must check for a failure return value.
3. If a call fails, it must print a specific error message including the function name
   and the error string (use strerror(errno)), and then exit with a non-zero status.
4. The program must print a message after every successful major step.
5. Generate code that follows this pattern for all operations:
    int res = do_something();
    if (res < 0) {
        printf("[-] Failed to do_something: %s\n", strerror(errno));
        exit(1);
    }
    printf("[+] do_something successful.\n");
6. The compilation and development environment (including compilers, build
   systems, makefiles, and kernel build/header directories) is NOT available
   on the target test VM guest. Do NOT check for, build, or reference any
   compilation tools, build files, or kernel development directories.
7. Do NOT execute shell commands or run external binaries (e.g. by using
   functions like 'system()', 'popen()', or the 'exec' family such as
   'execve()'). All environment checks, capability probings, and reproduction
   steps must be performed directly using standard Linux system calls (such
   as 'open', 'socket', 'ioctl', 'stat', etc.).
8. When reproducing asynchronous kernel timeouts or warnings, always
   include a sufficient delay (using sleep or similar) after deleting
   or unregistering the device to allow the kernel's asynchronous
   timeout to trigger before program exit.


=== PHASE 1: CAPABILITY PROBING (GENERATION) ===
You MUST start by generating a simple 'probe' program first. This is a strict, non-negotiable requirement
to verify that the test environment has the necessary kernel capabilities and privileges.
This program's sole purpose is to verify subsystem availability and privileges by probing specific
device files, subsystems, or syscalls (for example: opening /dev/vhci to check if the virtual
Bluetooth controller is accessible, loading a minimal dummy BPF program, or making a specific
socket/ioctl call).

Print clear messages indicating success or failure of these probes, and exit with 0 only if
all checks pass.
Do NOT attempt complex logic, and do NOT try to trigger the actual bug/crash in this first version,
regardless of how simple the reproducer seems. You must wait until a successful probe run has been
confirmed in the environment (i.e., when CapabilitiesVerified becomes true).

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


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Bug Description: WARNING in nci_rsp_packet

------------[ cut here ]------------
workqueue: cannot queue nci_cmd_work on wq nfc2_nci_cmd_wq
WARNING: kernel/workqueue.c:2352 at __queue_work+0xdb7/0x1370 kernel/workqueue.c:2351, CPU#3: kworker/u32:0/12
Modules linked in:
CPU: 3 UID: 0 PID: 12 Comm: kworker/u32:0 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: nfc2_nci_rx_wq nci_rx_work
RIP: 0010:__queue_work+0xdbb/0x1370 kernel/workqueue.c:2351
Code: 00 00 00 fc ff df 49 8d 94 24 70 01 00 00 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 84 05 00 00 48 8d 3d 29 43 78 0f 48 8b 75 18 <67> 48 0f b9 3a 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03
RSP: 0000:ffffc900001e7a40 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888026cc1000 RCX: 1ffff1100f10e022
RDX: ffff8880298be170 RSI: ffffffff8ba2d9c0 RDI: ffffffff91486f90
RBP: ffff8880788700f8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000200000 R11: 000000000000761b R12: ffff8880298be000
R13: 1ffff9200003cf52 R14: 0000000000000020 R15: 0000000000000084
FS:  0000000000000000(0000) GS:ffff888096c55000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000c3aef55 CR3: 0000000078b7d000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2501
 queue_work include/linux/workqueue.h:700 [inline]
 nci_rsp_packet+0x297/0x3420 net/nfc/nci/rsp.c:463
 nci_rx_work+0x29c/0x430 net/nfc/nci/core.c:1579
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
 process_scheduled_works kernel/workqueue.c:3479 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 fc                	add    %bh,%ah
   4:	ff                   	lcall  (bad)
   5:	df 49 8d             	fisttps -0x73(%rcx)
   8:	94                   	xchg   %eax,%esp
   9:	24 70                	and    $0x70,%al
   b:	01 00                	add    %eax,(%rax)
   d:	00 48 89             	add    %cl,-0x77(%rax)
  10:	f9                   	stc
  11:	48 c1 e9 03          	shr    $0x3,%rcx
  15:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1)
  19:	0f 85 84 05 00 00    	jne    0x5a3
  1f:	48 8d 3d 29 43 78 0f 	lea    0xf784329(%rip),%rdi        # 0xf78434f
  26:	48 8b 75 18          	mov    0x18(%rbp),%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  36:	fc ff df
  39:	48 89 ea             	mov    %rbp,%rdx
  3c:	48 c1 ea 03          	shr    $0x3,%rdx

Strategy: An analysis of the kernel source code reveals that this bug is caused by a race condition between `nci_unregister_device()` and `nci_rx_work()` when `nci_open_device()` is interrupted by a signal.

### Root Cause Analysis
1. When a device is brought up (e.g., via the `NFC_CMD_DEV_UP` netlink command), `nci_open_device()` is called. It sets `NCI_INIT` and sends an `nci_reset_req` command.
2. If a valid reset response is received, `nci_open_device()` proceeds to send `nci_init_req` and waits for its completion using `wait_for_completion_interruptible_timeout()`. The command is queued in `ndev->cmd_q`.
3. If a proprietary response packet (GID = `NCI_GID_PROPRIETARY`) is received during this wait, `nci_rx_work()` processes it. It does not complete the pending request but reaches the end of `nci_rsp_packet()`, where it checks `!skb_queue_empty(&ndev->cmd_q)`. Since `nci_init_req` is still in the queue, this evaluates to true.
4. If `nci_rx_work()` is preempted right after this check, and a signal is delivered to the thread executing `nci_open_device()`, the wait is interrupted (`-ERESTARTSYS`).
5. `nci_open_device()` fails, purges `cmd_q`, and releases `req_lock` without ever setting `NCI_UP`.
6. If the device is then unregistered (e.g., closing `/dev/virtual_nci`), `nci_unregister_device()` calls `nci_close_device()`. Because `NCI_UP` is not set, `nci_close_device()` returns early and **does not flush `rx_wq`**.
7. `nci_unregister_device()` proceeds to call `destroy_workqueue(ndev->cmd_wq)`.
8. `nci_rx_work()` resumes and executes `queue_work(ndev->cmd_wq, &ndev->cmd_work)` on the destroyed workqueue, triggering the warning.

### Reproduction Strategy
To reproduce this issue reliably, we can use the `virtual_ncidev` driver to inject packets and race the device teardown against the interrupted initialization.

1. **Setup**: Open `/dev/virtual_nci` to create a virtual NCI device.
2. **Trigger Initialization**: Spawn a thread that continuously sends the `NFC_CMD_DEV_UP` netlink command to bring the device up.
3. **Inject Packets**: In the main thread, continuously write the following packets to the `/dev/virtual_nci` file descriptor:
   - A valid reset response: `\x40\x00\x03\x00\x10\x00` (MT=2, GID=0, OID=0, Len=3, Status=OK, NCI_Ver=1.0).
   - A proprietary response: `\x4f\x00\x00` (MT=2, GID=0xf, OID=0, Len=0).
4. **Interrupt and Teardown**: 
   - Continuously send a signal (e.g., `SIGUSR1`) to the thread executing `NFC_CMD_DEV_UP` to interrupt the `wait_for_completion_interruptible_timeout()`.
   - Close the `/dev/virtual_nci` file descriptor to trigger `nci_unregister_device()`.
5. **Loop**: Reopen the device and repeat the process in a tight loop to hit the race window between the `!skb_queue_empty()` check and the `queue_work()` call in `nci_rsp_packet()`.




170/4 2026/10/01 06:07 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 5663
							output: 22
							thoughts: 401
						

Thoughts:
**My Thought Process for Reproducing the `nci_rsp_packet` Kernel Bug**

My primary objective right now is to construct a C program that can reliably reproduce a specific bug identified in the Linux kernel: a "WARNING in nci_rsp_packet". Based on the provided analysis, this bug manifests as a race condition. Specifically, it occurs between the `nci_unregister_device()` and `nci_rx_work()` functions when `nci_open_device()` is interrupted by a signal. This race condition is the core of what I need to trigger.

To achieve this, I'm following a well-defined strategy. The first crucial step is to establish a connection to the virtual NFC device. This means opening the `/dev/virtual_nci` file.

Next, I need to introduce concurrency. The strategy dictates spawning a separate thread. This thread's sole purpose will be to send a `NFC_CMD_DEV_UP` netlink command. This command is essential for initiating the device state that will eventually lead to the race condition.

Following the initiation of the device, the next phase involves injecting specific packets into the `/dev/virtual_nci` interface. The strategy outlines two distinct packet types: a reset response (`\x40\x00\x03\x00\x10\x00`) and a proprietary response (`\x4f\x00\x00`). These are the specific data payloads that, when processed under the right timing, are expected to expose the bug.

The critical race condition is then triggered by interrupting the thread that's executing the `NFC_CMD_DEV_UP` command with a signal. This interruption is key; it's designed to create a scenario where the device is being set up concurrently with other operations that might be sensitive to its state, leading to the race.

After the signal injection, I need to clean up by closing the `/dev/virtual_nci` file descriptor.

Finally, to ensure this is a robust reproducer, the entire process should be repeatable. Therefore, the strategy includes looping through these steps. This will allow me to repeatedly attempt to trigger the race condition until it consistently occurs.

Before diving into the full reproducer, I need to validate my understanding and setup. My immediate next step is to develop a "capability probe" program. The purpose of this probe is twofold: first, to confirm that I can indeed access and open `/dev/virtual_nci`, and second, to verify that I can successfully use netlink to send the `NFC_CMD_DEV_UP` command.

A quick thought here: `NFC_CMD_DEV_UP` is a generic netlink command, part of the NFC subsystem. I need to be sure about the specific netlink family it belongs to. My understanding is that the family name is "nfc", and `NFC_CMD_DEV_UP` corresponds to command ID 1 within that family.

So, the capability probe program will:
1. Open `/dev/virtual_nci`.
2. Attempt to create a generic netlink socket.
3. Attempt to resolve the "nfc" netlink family.
4. If both the file opening and the netlink operations succeed, I'll consider it a success and exit the probe with a status code of 0, indicating readiness.

To gather this information definitively, I'll be leveraging tools like `codesearch-definition-source` or `grepper` to pinpoint the exact definition of `NFC_CMD_DEV_UP` and confirm the "nfc" family name within the kernel source code. This pre-validation is crucial for building the reproducer on a solid foundation.


171/4 2026/10/01 06:07 tool grepper
0m Args:
map[Expression:NFC_CMD_DEV_UP]

Results:
map[Output:include/uapi/linux/nfc.h-38- *	%NFC_ATTR_DEVICE_INDEX) or dump request to get a list of all nfc devices
include/uapi/linux/nfc.h:39: * @NFC_CMD_DEV_UP: turn on the nfc device
include/uapi/linux/nfc.h-40- *	(requires %NFC_ATTR_DEVICE_INDEX)
--
include/uapi/linux/nfc.h=94=enum nfc_commands {
--
include/uapi/linux/nfc.h-96-	NFC_CMD_GET_DEVICE,
include/uapi/linux/nfc.h:97:	NFC_CMD_DEV_UP,
include/uapi/linux/nfc.h-98-	NFC_CMD_DEV_DOWN,
--
net/nfc/netlink.c=1699=static const struct genl_ops nfc_genl_ops[] = {
--
net/nfc/netlink.c-1707-	{
net/nfc/netlink.c:1708:		.cmd = NFC_CMD_DEV_UP,
net/nfc/netlink.c-1709-		.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
--
tools/testing/selftests/nci/nci_dev.c=413=FIXTURE_SETUP(NCI)
--
tools/testing/selftests/nci/nci_dev.c-454-	rc = send_cmd_with_idx(self->sd, self->fid, self->pid,
tools/testing/selftests/nci/nci_dev.c:455:			       NFC_CMD_DEV_UP, self->dev_idex);
tools/testing/selftests/nci/nci_dev.c-456-	EXPECT_EQ(rc, 0);
--
tools/testing/selftests/nci/nci_dev.c=870=TEST_F(NCI, deinit)
--
tools/testing/selftests/nci/nci_dev.c-904-	 * don't cause issues when the device is already closed.
tools/testing/selftests/nci/nci_dev.c:905:	 * Note: the send of NFC_CMD_DEV_UP itself still succeeds it's just
tools/testing/selftests/nci/nci_dev.c-906-	 * that the device won't actually be up.
--
tools/testing/selftests/nci/nci_dev.c-910-	rc = send_cmd_with_idx(self->sd, self->fid, self->pid,
tools/testing/selftests/nci/nci_dev.c:911:			       NFC_CMD_DEV_UP, self->dev_idex);
tools/testing/selftests/nci/nci_dev.c-912-	EXPECT_EQ(rc, 0);
]

172/4 2026/10/01 06:08 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 6849
							output: 25
							thoughts: 27
						

Thoughts:
**My Thought Process on Devising the "nfc" Family Name**

Alright, so I'm faced with the task of identifying the appropriate family name for this networking component. My immediate inclination is to look for common patterns and conventions within the existing codebase. The name "nfc" immediately springs to mind as a strong candidate. To validate this hypothesis, my next logical step is to delve into the source code, specifically `net/nfc/netlink.c`. I'm anticipating that this file will contain the definitions and configurations related to network protocols and their associated identifiers, and if the "nfc" family is indeed in use, it's highly probable that its declaration or primary association will be found within this particular source file. This methodical approach, starting with a probable hypothesis and then seeking empirical evidence within the codebase, is how I typically navigate these kinds of naming and identification challenges.


173/4 2026/10/01 06:08 tool grepper
0m Args:
map[Expression:genl_family nfc_genl_family]

Results:
map[Output:net/nfc/netlink.c=25=static const struct genl_multicast_group nfc_genl_mcgrps[] = {
--
net/nfc/netlink.c-28-
net/nfc/netlink.c:29:static struct genl_family nfc_genl_family;
net/nfc/netlink.c-30-static const struct nla_policy nfc_genl_policy[NFC_ATTR_MAX + 1] = {
--
net/nfc/netlink.c=1699=static const struct genl_ops nfc_genl_ops[] = {
--
net/nfc/netlink.c-1816-
net/nfc/netlink.c:1817:static struct genl_family nfc_genl_family __ro_after_init = {
net/nfc/netlink.c-1818-	.hdrsize = 0,
]

174/4 2026/10/01 06:08 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7136
							output: 40
							thoughts: 8
						

Thoughts:
**My Thought Process on Deconstructing the Request**

Alright, so my primary objective here is to embody the *thoughts* as described in the provided text and present them back to the user in the first person, as if these are my own internal musings. The user is an expert in their field, which means I need to be precise and avoid any superficial glossing over of the nuances. My summary needs to be "fulsome," implying a thoroughness and completeness that reflects a deep dive into the subject matter – in this case, the very act of thinking about the request itself.

The core instruction is to "Summarize the text below, in the first person, as though the thoughts described are your thoughts." This immediately tells me I'm not just summarizing *content*, but rather the *process of thought* that would lead to a particular outcome. The "text below" is currently just the prompt itself and a placeholder for my output. This means my internal monologue needs to be about *understanding and executing the prompt*.

The prompt explicitly asks me to "Start the summary with a **bolded header**." This is a straightforward formatting requirement. The header itself is to be descriptive of the "thought process," as per the "fulsome summary" directive.

The next instruction is crucial: "Let's see the family name." This is presented as a thought, and I need to adopt that as *my* thought. So, my internal process begins with recognizing this specific directive. I'm thinking, "Okay, the user wants me to identify and explicitly state the 'family name.' What does 'family name' refer to in this context? It's not a standard technical term for a text processing operation. It's likely a meta-instruction, perhaps related to how the output should be framed or identified. Given the context of a thought process, it might be a way of asking for the *essence* or the *identifying characteristic* of the response."

Then, the prompt provides the placeholder: "Your Summary:". This is where my generated output will go. My internal thought process acknowledges this as the designated space for the sum total of my execution of the instructions.

Therefore, my thought process is a recursive loop:

1.  **Deconstruct the User's Instructions:** I first break down the core requirements: first-person perspective, embody the *thoughts*, be fulsome, target an expert audience, use a bolded header, and the specific instruction about "family name."

2.  **Interpret "Thoughts Described":** Since the "text below" is the prompt itself, the "thoughts described" are, in essence, the *thoughts I would have to generate this very response*. It's a self-referential task. I need to simulate the cognitive steps I'd take to fulfill *this specific request*.

3.  **Address the "Family Name" Instruction:** This is the most abstract part. As an AI, I don't have a personal "family name." However, the prompt asks me to *think* this. So, I must interpret what it *means* in the context of my operational process. It's a prompt for a label, an identifier. In this case, the "family name" would be the core characteristic or purpose of the output I'm about to generate. My internal thought is: "What *is* this output? It's a self-reflective summary of my own processing, presented from a first-person perspective, for an expert. Its 'family name' should reflect this meta-cognitive nature."

4.  **Structure the Output:** I know I need a bolded header. What should it be? It needs to encapsulate the "thought process" I'm about to describe. Something like "My Internal Processing" or "Deconstructing the Prompt" comes to mind. The prompt itself guides me: "Start the summary with a **bolded header**." and "This will be rendered to the user as a fulsome summary of the thought process." So, a header that directly addresses this is appropriate.

5.  **Formulate the First-Person Narrative:** I need to shift from objective analysis to subjective experience. Phrases like "I understand," "My goal is," "I'm thinking," "I need to," etc., will be crucial.

6.  **Integrate the "Family Name" Concept:** The instruction "Let's see the family name" is to be treated as *my* thought. So, I'll incorporate that specific query into my simulated thought process. I'll be thinking, "Okay, the prompt explicitly tells me to 'Let's see the family name.' This is a direct instruction to myself, part of the problem-solving. I need to determine what constitutes the 'family name' of this response."

7.  **Synthesize into a Fulsome Summary:** The final output needs to be a comprehensive account of these steps, presented as a coherent narrative of my internal deliberation. It needs to be thorough enough to satisfy the "fulsome" requirement for an expert user, meaning I shouldn't skip steps or be vague. I need to explain *why* I'm doing what I'm doing.

Essentially, my process is about internalizing the instructions as directives to my own cognitive functions and then reporting on that internal execution, using the specified persona and format. The "family name" instruction is a unique element that requires interpretation within the AI context, and I've landed on the idea that it represents the fundamental identifying characteristic of the output itself.


175/4 2026/10/01 06:08 tool codesearch-definition-source
0m Args:
map[ContextFile:net/nfc/netlink.c Name:nfc_genl_family]

Results:
map[SourceCode:1817:	static struct genl_family nfc_genl_family __ro_after_init = {
1818:		.hdrsize = 0,
1819:		.name = NFC_GENL_NAME,
1820:		.version = NFC_GENL_VERSION,
1821:		.maxattr = NFC_ATTR_MAX,
1822:		.policy = nfc_genl_policy,
1823:		.module = THIS_MODULE,
1824:		.ops = nfc_genl_ops,
1825:		.n_ops = ARRAY_SIZE(nfc_genl_ops),
1826:		.resv_start_op = NFC_CMD_DEACTIVATE_TARGET + 1,
1827:		.mcgrps = nfc_genl_mcgrps,
1828:		.n_mcgrps = ARRAY_SIZE(nfc_genl_mcgrps),
1829:	};
 SourceFile:net/nfc/netlink.c]

176/4 2026/10/01 06:08 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7449
							output: 21
							thoughts: 12
						

Thoughts:
**My Deep Dive into `NFC_GENL_NAME`**

Alright, so the immediate question that pops into my head is: "What exactly *is* this `NFC_GENL_NAME` I'm encountering?" My mind immediately goes to breaking it down, understanding the components. The `NFC` prefix suggests it's likely related to the Netfilter framework, a core component of the Linux kernel's packet filtering capabilities. This is where the heavy lifting for firewalling, NAT, and packet mangling happens.

Then there's `GENL`. This strongly points towards the Generic Netlink subsystem. Now, Generic Netlink is a pretty significant advancement over the older Netlink sockets. It provides a more structured, extensible, and type-safe way for userspace applications to communicate with the kernel. It's designed to handle a broader range of kernel objects and commands, moving beyond the more rigid family-based approach of classic Netlink. So, `GENL` here likely signifies that this particular Netfilter feature is being exposed and managed through this more modern Generic Netlink interface.

Finally, `NAME`. This is the most straightforward part, but crucial for context. It implies that `NFC_GENL_NAME` is a symbolic constant, an identifier, that represents a *name* within the Netfilter framework, specifically when accessed or manipulated via Generic Netlink. This could be the name of a Netfilter module, a specific Netfilter hook point, a Netfilter target, or perhaps even a named set of rules or objects.

Therefore, putting it all together, my thought process is that `NFC_GENL_NAME` is a symbolic identifier within the Netfilter ecosystem, specifically designed for interaction with the kernel's Generic Netlink subsystem, and it pertains to some form of *naming* convention or object within Netfilter. My next step would be to look at where this constant is defined and how it's used to pinpoint its exact role. Is it for registering new Netfilter components by name? Is it for querying existing named components? Or is it something else entirely related to naming within the Netfilter/Generic Netlink interface? This initial deconstruction sets the stage for a deeper investigation into its practical application and implications.


177/4 2026/10/01 06:09 tool grepper
0m Args:
map[Expression:define NFC_GENL_NAME]

Results:
map[Output:include/uapi/linux/nfc.h-26-
include/uapi/linux/nfc.h:27:#define NFC_GENL_NAME "nfc"
include/uapi/linux/nfc.h-28-#define NFC_GENL_VERSION 1
]

178/4 2026/10/01 06:09 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7550
							output: 838
							thoughts: 913
						

Thoughts:
**My Thought Process on Probing `/dev/virtual_nci` and Resolving the "nfc" Netlink Family**

Alright, so the immediate task is to verify the presence and operational status of the NFC (Near Field Communication) subsystem, particularly as it interacts through the generic Netlink interface. My first instinct is to interact with `/dev/virtual_nci`. This device node is the typical entry point for userspace applications to communicate with the NFC driver stack in the Linux kernel. So, the very first step in my mind is to try and open this device to see if it's even accessible. If I can't open it, that's an immediate red flag, and I'll need to report that failure, along with the specific error.

Assuming I can successfully open `/dev/virtual_nci`, the next crucial part is to check if the "nfc" generic Netlink family is registered and functional. Generic Netlink is the modern framework for kernel-userspace communication, and NFC has its own dedicated family within it. To do this, I need to create a Netlink socket. A `socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC)` call is the standard way to establish a generic Netlink communication channel. Again, if this socket creation fails, that's a problem I need to report clearly.

Now, the core of the check: resolving the "nfc" family. While simply opening `/dev/virtual_nci` might indicate the driver is loaded, resolving the Netlink family definitively confirms that the NFC subsystem is initialized and ready to accept Netlink commands. To achieve this, I need to construct a Netlink message. This message will be directed to the Netlink control family (`GENL_ID_CTRL`) and specifically request information about a family using the `CTRL_CMD_GETFAMILY` command.

My message structure will need to contain a `nlmsghdr` (Netlink message header) and a `genlmsghdr` (generic Netlink header). Within the generic Netlink header, I need to specify the command. Crucially, I need to tell the kernel *which* family I'm interested in. This is done by adding an attribute (`nlattr`) of type `CTRL_ATTR_FAMILY_NAME`, and setting its value to the string "nfc". I'll also need to ensure the message lengths are correctly calculated, using `NLMSG_LENGTH`, `GENL_HDRLEN`, `NLA_HDRLEN`, and `NLMSG_ALIGN`.

After constructing the message, I'll send it over the Netlink socket to the kernel. The destination address for Netlink messages from userspace is typically an unbound `sockaddr_nl` (a zeroed-out Netlink address structure). The `sendto` call is the mechanism for this. If the `sendto` fails, that's another error to capture and report.

Once the message is sent, I need to wait for a response from the kernel. A `recv` call will block until a message arrives on the socket. The response will contain information about the requested family, or an error if the family doesn't exist or there was an issue. I need a buffer large enough to hold the reply.

Upon receiving the response, I'll first check the Netlink message header (`nlmsghdr`). If `nlmsg_type` is `NLMSG_ERROR`, it indicates a Netlink-level error. I'll then cast the data part of the message to a `nlmsgerr` structure to get the specific error code, which I can then translate into a human-readable string using `strerror`. If the error code is `0`, it means the error flag was set but the operation was successful; otherwise, a non-zero error code signifies a problem.

If no `NLMSG_ERROR` is found, and assuming the message type is something expected for a successful `GETFAMILY` response (though the provided code doesn't explicitly check the type beyond the error case, which is sufficient for a basic probe), I can conclude that I have successfully resolved the "nfc" Netlink family. This implies that the NFC subsystem is loaded and initialized, and its Netlink interface is ready. This success then becomes the final reported status.

Finally, I recall that the user specifically asked for the probe program to be provided via `set-results`. So, while I've mapped out the entire thought process for *creating* the probe, the final action will be to package that program code itself into the desired format.


179/4 2026/10/01 06:09 tool set-results
0m Args:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}
]

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}
]

180/3 2026/10/01 06:09 loop
1m
181/4 2026/10/01 06:09 iteration 0
0m
182/5 2026/10/01 06:09 action merge-repro-c
0m Results:
map[CurrentCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}
]

183/5 2026/10/01 06:09 action compile-c-prog
0m Results:
map[CompilerError:failed to build program:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}

/usr/bin/ld: /tmp/ccX9Zzx8.o: in function `main':
<stdin>:(.text.startup+0xac): undefined reference to `GENLMSG_DATA'
collect2: error: ld returned 1 exit status

compiler invocation: x86_64-linux-gnu-gcc [-o /tmp/syz-executor2053221665 -DGOOS_linux=1 -DGOARCH_386=1 -DHOSTGOOS_linux=1 -x c - -m32 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -Wno-overflow] FormattedReproC:]

184/5 2026/10/01 06:09 action If
0m Args:
map[CompilerError:failed to build program:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}

/usr/bin/ld: /tmp/ccX9Zzx8.o: in function `main':
<stdin>:(.text.startup+0xac): undefined reference to `GENLMSG_DATA'
collect2: error: ld returned 1 exit status

compiler invocation: x86_64-linux-gnu-gcc [-o /tmp/syz-executor2053221665 -DGOOS_linux=1 -DGOARCH_386=1 -DHOSTGOOS_linux=1 -x c - -m32 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -Wno-overflow]]

185/6 2026/10/01 06:10 agent repro-repairer
0m Model:
deep-reasoning

Instruction:
You are an experienced C developer.
Your goal is to repair a C program that failed to compile.
Analyze the compiler error and provide a corrected version of the C program.
Make the minimal necessary changes to fix the compilation error.
Preserve the structure, logic, and intent of the original code.
Do NOT replace the program with a dummy placeholder (e.g., an empty main function).
Print only the C program that could be executed directly, without backticks.
Prefer calling several tools at the same time to save round-trips.

Prompt:
C Program:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}


Compiler Error:
failed to build program:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}

/usr/bin/ld: /tmp/ccX9Zzx8.o: in function `main':
<stdin>:(.text.startup+0xac): undefined reference to `GENLMSG_DATA'
collect2: error: ld returned 1 exit status

compiler invocation: x86_64-linux-gnu-gcc [-o /tmp/syz-executor2053221665 -DGOOS_linux=1 -DGOARCH_386=1 -DHOSTGOOS_linux=1 -x c - -m32 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -Wno-overflow]

Reply:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) req.buf;
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}

186/7 2026/10/01 06:10 llm repro-repairer
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 4266
							output: 809
							thoughts: 2102
						

Thoughts:
**The Debugging Journey: Resolving the `GENLMSG_DATA` Undefined Reference**

Here's a breakdown of my thought process as I tackled that pesky compiler error:

I'm seeing this error: `/usr/bin/ld: /tmp/ccX9Zzx8.o: in function 'main': <stdin>:(.text.startup+0xac): undefined reference to 'GENLMSG_DATA'`. This immediately tells me that the linker can't find a definition for `GENLMSG_DATA`. The compiler, however, seems to be interpreting it as a function, which is why it's failing at the linking stage.

My first instinct is to investigate how `GENLMSG_DATA` is *supposed* to be defined. I know it's related to generic netlink, so I'm thinking about the relevant header files. I'd typically look in `<linux/genetlink.h>`. My hypothesis is that it might be missing from the user-space headers I'm including, or perhaps it's defined in a way that my current setup isn't picking up.

I recall that `GENLMSG_DATA` often has a definition like this:
`#define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN))`
This definition itself relies on `NLMSG_DATA` and `GENL_HDRLEN`. So, I'd mentally (or actually, if I had the environment) check their definitions and header sources. `NLMSG_DATA` is typically found in `<linux/netlink.h>`, and `GENL_HDRLEN` in `<linux/genetlink.h>`.

Since the error is specifically about `GENLMSG_DATA`, and not `NLMSG_DATA` or `GENL_HDRLEN`, it reinforces the idea that `GENLMSG_DATA` itself is the missing piece. A common workaround for missing macro definitions is to define them manually in the code, especially if I'm confident in the expected definition. So, I'd consider adding something like:
```c
#ifndef GENLMSG_DATA
#define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN))
#endif
```
This would guard against redefinition if it *was* somehow present but not found correctly.

However, before jumping to a manual definition, I always prefer to understand the *context* of how the macro is being used in the code. I see the line:
`struct nlattr *na = (struct nlattr *) GENLMSG_DATA(&req);`
And then I look at the definition of `req`:
```c
    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;
```
Aha! `req` is a structure. `&req` is a pointer to this structure. When `GENLMSG_DATA` is applied to `&req`, it's essentially trying to find the start of the payload *after* the netlink and generic netlink headers. Looking at the structure layout, the `buf` member is precisely where the payload data would start after `struct nlmsghdr` and `struct genlmsghdr`.

This leads me to a much simpler and more direct solution: `req.buf`. If `GENLMSG_DATA(&req)` is supposed to point to the beginning of the data buffer within `req`, then `req.buf` *is* that buffer. So, I can directly replace `GENLMSG_DATA(&req)` with `req.buf`. This bypasses the need for the macro altogether.

The corrected line becomes:
`struct nlattr *na = (struct nlattr *) req.buf;`

Before committing to this, I do a quick sanity check. `struct nlattr` requires 4-byte alignment. The structure `req` has `struct nlmsghdr` (16 bytes) and `struct genlmsghdr` (4 bytes), meaning `req.buf` starts at an offset of 20 bytes. Since 20 is divisible by 4, the alignment requirement for `struct nlattr` is satisfied. This replacement seems robust.

I then scan the rest of the code for other potential issues, specifically looking for other undefined references. I see various other netlink and genetlink related macros and constants like `NLMSG_LENGTH`, `GENL_HDRLEN`, `GENL_ID_CTRL`, `NLM_F_REQUEST`, `CTRL_CMD_GETFAMILY`, `CTRL_ATTR_FAMILY_NAME`, `NLA_HDRLEN`, `NLMSG_ALIGN`, `NLMSG_ERROR`, and `NLMSG_DATA`. The fact that the compiler *didn't* complain about any of these suggests they are correctly defined and available via the included headers (`<linux/netlink.h>` and `<linux/genetlink.h>`). The only one that raised an error was `GENLMSG_DATA`.

Finally, I confirm that `GENLMSG_DATA` wasn't used elsewhere in the snippet, solidifying my confidence that the direct replacement with `req.buf` is the most elegant and correct solution in this context. The use of `NLMSG_DATA` later in the code, which *wasn't* an error, further confirms that standard netlink macros are available, and `GENLMSG_DATA` was indeed the specific missing piece that could be sidestepped by accessing the structure member directly.


187/4 2026/10/01 06:10 iteration 1
0m
188/5 2026/10/01 06:10 action merge-repro-c
0m Results:
map[CurrentCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) req.buf;
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}]

189/5 2026/10/01 06:10 action compile-c-prog
0m Results:
map[CompilerError: FormattedReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <linux/genetlink.h>

int main() {
    int fd = open("/dev/virtual_nci", O_RDWR);
    if (fd < 0) {
        printf("[-] Failed to open /dev/virtual_nci: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Opened /dev/virtual_nci successfully.\n");

    int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
    if (sock < 0) {
        printf("[-] Failed to create generic netlink socket: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created generic netlink socket successfully.\n");

    struct {
        struct nlmsghdr n;
        struct genlmsghdr g;
        char buf[256];
    } req;

    memset(&req, 0, sizeof(req));
    req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
    req.n.nlmsg_type = GENL_ID_CTRL;
    req.n.nlmsg_flags = NLM_F_REQUEST;
    req.g.cmd = CTRL_CMD_GETFAMILY;
    req.g.version = 0;

    struct nlattr *na = (struct nlattr *) req.buf;
    na->nla_type = CTRL_ATTR_FAMILY_NAME;
    const char *name = "nfc";
    int name_len = strlen(name) + 1;
    na->nla_len = name_len + NLA_HDRLEN;
    strcpy((char *)((char *)na + NLA_HDRLEN), name);

    req.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);

    struct sockaddr_nl nladdr;
    memset(&nladdr, 0, sizeof(nladdr));
    nladdr.nl_family = AF_NETLINK;

    if (sendto(sock, &req, req.n.nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(nladdr)) < 0) {
        printf("[-] Failed to send netlink message: %s\n", strerror(errno));
        return 1;
    }

    char resp_buf[4096];
    int len = recv(sock, resp_buf, sizeof(resp_buf), 0);
    if (len < 0) {
        printf("[-] Failed to receive netlink message: %s\n", strerror(errno));
        return 1;
    }

    struct nlmsghdr *nlh = (struct nlmsghdr *)resp_buf;
    if (nlh->nlmsg_type == NLMSG_ERROR) {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nlh);
        if (err->error != 0) {
            printf("[-] Netlink error: %s\n", strerror(-err->error));
            return 1;
        }
    }

    printf("[+] Resolved NFC netlink family successfully.\n");
    return 0;
}]

190/5 2026/10/01 06:11 action If
0m Args:
map[CompilerError:]

191/3 2026/10/01 06:11 action run-c-repro
0m Error:
log-in to see details

Results:
map[CandidateBugTitle: CandidateCrashReport: CandidateReproduced:false ConsoleOutput: OtherCrashReports:<nil> StraceOutput: TestError:]

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)