ID Workflow Result Correct Bug Created Started Finished Revision
25978da1 patching 💥 KASAN: null-ptr-deref Write in fput 2026/09/28 17:01 2026/09/28 17:01 2026/09/28 18:29 58f15308
Agent: prod-syz-agent-4
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle KASAN: null-ptr-deref Write in fput
CrashLogID 5802630896418816
CrashReportID 5975380655079424
KernelCommit 848acc8ffe1b7cd5f1bf427b93069becfebc2c9d
KernelConfig
Show (280087 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_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_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_CC_HAS_INT128=y
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
CONFIG_CC_MS_EXTENSIONS="-fms-extensions"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_CC_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_CC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_NUMA_BALANCING=y
CONFIG_SCHED_CACHE=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
CONFIG_MEMCG=y
CONFIG_MEMCG_V1=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_GROUP_SCHED_BANDWIDTH=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_SCHED_MM_CID=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
# CONFIG_CGROUP_DMEM is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
# CONFIG_CPUSETS_V1 is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_BPF is not set
CONFIG_CGROUP_MISC=y
CONFIG_CGROUP_DEBUG=y
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_TIME_NS=y
CONFIG_TIME_NS_VDSO=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not set
CONFIG_CMDLINE_LOG_WRAP_IDEAL_LEN=1021
CONFIG_INITRAMFS_PRESERVE_MTIME=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_LD_ORPHAN_WARN=y
CONFIG_LD_ORPHAN_WARN_LEVEL="warn"
CONFIG_SYSCTL=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_SYSFS_SYSCALL=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_FHANDLE=y
CONFIG_POSIX_TIMERS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_PCSPKR_PLATFORM=y
# CONFIG_BASE_SMALL is not set
CONFIG_FUTEX=y
CONFIG_FUTEX_PI=y
CONFIG_FUTEX_PRIVATE_HASH=y
CONFIG_FUTEX_MPOL=y
CONFIG_HAVE_FUTEX_ROBUST_UNLOCK=y
CONFIG_FUTEX_ROBUST_UNLOCK=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
CONFIG_IO_URING_MOCK_FILE=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
CONFIG_RSEQ_SLICE_EXTENSION=y
# CONFIG_RSEQ_STATS is not set
# CONFIG_RSEQ_DEBUG_DEFAULT_ENABLE is not set
CONFIG_CACHESTAT_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_GUEST_PERF_EVENTS=y
CONFIG_PERF_GUEST_MEDIATED_PMU=y

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

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

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

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

CONFIG_RT_MUTEXES=y
CONFIG_MODULE_SIG_FORMAT=y
CONFIG_MODULES=y
# CONFIG_MODULE_DEBUG is not set
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_UNLOAD_TAINT_TRACKING is not set
CONFIG_MODVERSIONS=y
# CONFIG_GENKSYMS is not set
CONFIG_GENDWARFKSYMS=y
CONFIG_ASM_MODVERSIONS=y
# CONFIG_EXTENDED_MODVERSIONS is not set
# CONFIG_BASIC_MODVERSIONS is not set
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
# CONFIG_MODULE_SIG_ALL is not set
CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set
# CONFIG_MODULE_SIG_SHA3_256 is not set
# CONFIG_MODULE_SIG_SHA3_384 is not set
# CONFIG_MODULE_SIG_SHA3_512 is not set
CONFIG_MODULE_SIG_HASH="sha256"
# CONFIG_MODULE_COMPRESS is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLOCK_LEGACY_AUTOLOAD=y
CONFIG_BLK_RQ_ALLOC_TIME=y
CONFIG_BLK_CGROUP_RWSTAT=y
CONFIG_BLK_CGROUP_PUNT_BIO=y
CONFIG_BLK_DEV_BSG_COMMON=y
CONFIG_BLK_ICQ=y
CONFIG_BLK_DEV_BSGLIB=y
CONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_WRITE_MOUNTED is not set
CONFIG_BLK_DEV_ZONED=y
CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BLK_WBT=y
CONFIG_BLK_WBT_MQ=y
CONFIG_BLK_CGROUP_IOLATENCY=y
# CONFIG_BLK_CGROUP_FC_APPID is not set
CONFIG_BLK_CGROUP_IOCOST=y
CONFIG_BLK_CGROUP_IOPRIO=y
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
CONFIG_BLK_INLINE_ENCRYPTION=y
CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
CONFIG_ACORN_PARTITION=y
CONFIG_ACORN_PARTITION_CUMANA=y
CONFIG_ACORN_PARTITION_EESOX=y
CONFIG_ACORN_PARTITION_ICS=y
CONFIG_ACORN_PARTITION_ADFS=y
CONFIG_ACORN_PARTITION_POWERTEC=y
CONFIG_ACORN_PARTITION_RISCIX=y
CONFIG_AIX_PARTITION=y
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
CONFIG_ATARI_PARTITION=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
CONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not set
CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_SYSV68_PARTITION=y
CONFIG_CMDLINE_PARTITION=y
# CONFIG_OF_PARTITION is not set
# end of Partition Types

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

#
# IO Schedulers
#
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y
CONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers

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

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

#
# Memory Management options
#
CONFIG_SWAP=y
CONFIG_ZSWAP=y
CONFIG_ZSWAP_DEFAULT_ON=y
CONFIG_ZSWAP_SHRINKER_DEFAULT_ON=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT="842"
CONFIG_ZSMALLOC=y

#
# Zsmalloc allocator options
#

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

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

# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not set
CONFIG_SPARSEMEM=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_SPARSEMEM_VMEMMAP_PREINIT=y
CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=y
CONFIG_ARCH_WANT_HUGETLB_VMEMMAP_PREINIT=y
CONFIG_HAVE_GUP_FAST=y
CONFIG_NUMA_KEEP_MEMINFO=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_HAVE_BOOTMEM_INFO_NODE=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE is not set
CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL is not set
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE is not set
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_MHP_MEMMAP_ON_MEMORY=y
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
CONFIG_SPLIT_PTE_PTLOCKS=y
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_SPLIT_PMD_PTLOCKS=y
CONFIG_BALLOON=y
# CONFIG_BALLOON_MIGRATION is not set
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
CONFIG_PAGE_REPORTING=y
CONFIG_NUMA_MIGRATION=y
CONFIG_MIGRATION=y
CONFIG_DEVICE_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_ARCH_ENABLE_THP_MIGRATION=y
CONFIG_CONTIG_ALLOC=y
CONFIG_PCP_BATCH_SCALE_MAX=5
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_MMU_NOTIFIER=y
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_WANTS_THP_SWAP=y
# CONFIG_PERSISTENT_HUGE_ZERO_FOLIO is not set
CONFIG_MM_ID=y
CONFIG_TRANSPARENT_HUGEPAGE=y
# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ADVISE=y
CONFIG_THP_SWAP=y
# CONFIG_NO_PAGE_MAPCOUNT is not set
CONFIG_PAGE_MAPCOUNT=y
CONFIG_PGTABLE_HAS_HUGE_LEAVES=y
CONFIG_HAVE_GIGANTIC_FOLIOS=y
CONFIG_ASYNC_KERNEL_PGTABLE_FREE=y
CONFIG_ARCH_SUPPORTS_HUGE_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PMD_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PUD_PFNMAP=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_CMA=y
# CONFIG_CMA_DEBUGFS is not set
# CONFIG_CMA_SYSFS is not set
CONFIG_CMA_AREAS=20
CONFIG_PAGE_BLOCK_MAX_ORDER=10
CONFIG_MEM_SOFT_DIRTY=y
CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
CONFIG_PAGE_IDLE_FLAG=y
# CONFIG_IDLE_PAGE_TRACKING is not set
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_ARCH_HAS_CURRENT_STACK_POINTER=y
CONFIG_ARCH_HAS_ZONE_DMA_SET=y
CONFIG_ZONE_DMA=y
CONFIG_ZONE_DMA32=y
CONFIG_ZONE_DEVICE=y
CONFIG_HMM_MIRROR=y
CONFIG_GET_FREE_REGION=y
CONFIG_DEVICE_PRIVATE=y
CONFIG_VMAP_PFN=y
CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_ARCH_USES_PG_ARCH_2=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PERCPU_STATS=y
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_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=y
# CONFIG_PTE_MARKER_UFFD_WP is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
CONFIG_LRU_GEN_WALKS_MMU=y
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
CONFIG_PER_VMA_LOCK=y
CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
CONFIG_NUMA_EMU=y
CONFIG_ARCH_HAS_USER_SHADOW_STACK=y
CONFIG_PT_RECLAIM=y

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

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

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

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

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

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

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

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

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

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

#
# IPVS SH scheduler
#
CONFIG_IP_VS_SH_TAB_BITS=8

#
# IPVS MH scheduler
#
CONFIG_IP_VS_MH_TAB_INDEX=12

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

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

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

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

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

#
# Classification
#
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_FW=y
CONFIG_NET_CLS_U32=y
CONFIG_CLS_U32_PERF=y
CONFIG_CLS_U32_MARK=y
CONFIG_NET_CLS_FLOW=y
CONFIG_NET_CLS_CGROUP=y
CONFIG_NET_CLS_BPF=y
CONFIG_NET_CLS_FLOWER=y
CONFIG_NET_CLS_MATCHALL=y
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
CONFIG_NET_EMATCH_CMP=y
CONFIG_NET_EMATCH_NBYTE=y
CONFIG_NET_EMATCH_U32=y
CONFIG_NET_EMATCH_META=y
CONFIG_NET_EMATCH_TEXT=y
CONFIG_NET_EMATCH_CANID=y
CONFIG_NET_EMATCH_IPSET=y
CONFIG_NET_EMATCH_IPT=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_POLICE=y
CONFIG_NET_ACT_GACT=y
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=y
CONFIG_NET_ACT_SAMPLE=y
CONFIG_NET_ACT_NAT=y
CONFIG_NET_ACT_PEDIT=y
CONFIG_NET_ACT_SIMP=y
CONFIG_NET_ACT_SKBEDIT=y
CONFIG_NET_ACT_CSUM=y
CONFIG_NET_ACT_MPLS=y
CONFIG_NET_ACT_VLAN=y
CONFIG_NET_ACT_BPF=y
CONFIG_NET_ACT_CONNMARK=y
CONFIG_NET_ACT_CTINFO=y
CONFIG_NET_ACT_SKBMOD=y
CONFIG_NET_ACT_IFE=y
CONFIG_NET_ACT_TUNNEL_KEY=y
CONFIG_NET_ACT_CT=y
CONFIG_NET_ACT_GATE=y
CONFIG_NET_IFE_SKBMARK=y
CONFIG_NET_IFE_SKBPRIO=y
CONFIG_NET_IFE_SKBTCINDEX=y
CONFIG_NET_TC_SKB_EXT=y
CONFIG_NET_SCH_FIFO=y
CONFIG_DCB=y
CONFIG_DNS_RESOLVER=y
CONFIG_BATMAN_ADV=y
CONFIG_BATMAN_ADV_BATMAN_V=y
CONFIG_BATMAN_ADV_BLA=y
CONFIG_BATMAN_ADV_DAT=y
CONFIG_BATMAN_ADV_MCAST=y
# CONFIG_BATMAN_ADV_DEBUG is not set
# CONFIG_BATMAN_ADV_TRACING is not set
CONFIG_OPENVSWITCH=y
CONFIG_OPENVSWITCH_GRE=y
CONFIG_OPENVSWITCH_VXLAN=y
CONFIG_OPENVSWITCH_GENEVE=y
CONFIG_VSOCKETS=y
CONFIG_VSOCKETS_DIAG=y
CONFIG_VSOCKETS_LOOPBACK=y
# CONFIG_VMWARE_VMCI_VSOCKETS is not set
CONFIG_VIRTIO_VSOCKETS=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
CONFIG_NETLINK_DIAG=y
CONFIG_MPLS=y
CONFIG_NET_MPLS_GSO=y
CONFIG_MPLS_ROUTING=y
CONFIG_MPLS_IPTUNNEL=y
CONFIG_NET_NSH=y
CONFIG_HSR=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_QRTR=y
CONFIG_QRTR_TUN=y
# CONFIG_QRTR_MHI is not set
CONFIG_NET_NCSI=y
# CONFIG_NCSI_OEM_CMD_GET_MAC is not set
# CONFIG_NCSI_OEM_CMD_KEEP_PHY is not set
# CONFIG_PCPU_DEV_REFCNT is not set
CONFIG_MAX_SKB_FRAGS=17
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_NET_FLOW_LIMIT=y

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

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

#
# 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_DMA_FENCE_TRACE is not set
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options

#
# Bus devices
#
# CONFIG_MOXTET is not set
CONFIG_MHI_BUS=y
# CONFIG_MHI_BUS_DEBUG is not set
# CONFIG_MHI_BUS_PCI_GENERIC is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Firmware Drivers
#

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

# CONFIG_EDD is not set
CONFIG_FIRMWARE_MEMMAP=y
CONFIG_DMIID=y
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not set
CONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_GOOGLE_FIRMWARE=y
# CONFIG_GOOGLE_SMI is not set
# CONFIG_GOOGLE_CBMEM is not set
CONFIG_GOOGLE_COREBOOT_TABLE=y
CONFIG_GOOGLE_MEMCONSOLE=y
# CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set
# CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT is not set
CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=y
CONFIG_GOOGLE_VPD=y

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

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

# CONFIG_FWCTL is not set
CONFIG_GNSS=y
# CONFIG_GNSS_MTK_SERIAL is not set
# CONFIG_GNSS_SIRF_SERIAL is not set
# CONFIG_GNSS_UBX_SERIAL is not set
CONFIG_GNSS_USB=y
CONFIG_MTD=y
# CONFIG_MTD_TESTS is not set

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

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

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

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

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

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

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

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

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

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

# CONFIG_MTD_SPI_NOR is not set
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
# CONFIG_MTD_UBI_BLOCK is not set
# CONFIG_MTD_UBI_FAULT_INJECTION is not set
# CONFIG_MTD_UBI_NVMEM is not set
# CONFIG_MTD_HYPERBUS is not set
CONFIG_DTC=y
CONFIG_OF=y
# CONFIG_OF_UNITTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_KOBJ=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_OF_OVERLAY is not set
CONFIG_OF_NUMA=y
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PARPORT_NOT_PC=y
CONFIG_PNP=y
CONFIG_PNP_DEBUG_MESSAGES=y

#
# Protocols
#
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_NULL_BLK=y
CONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=y
# CONFIG_BLK_DEV_FD is not set
CONFIG_CDROM=y
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
CONFIG_ZRAM=y
# CONFIG_ZRAM_BACKEND_LZ4 is not set
# CONFIG_ZRAM_BACKEND_LZ4HC is not set
# CONFIG_ZRAM_BACKEND_ZSTD is not set
# CONFIG_ZRAM_BACKEND_DEFLATE is not set
# CONFIG_ZRAM_BACKEND_842 is not set
CONFIG_ZRAM_BACKEND_FORCE_LZO=y
CONFIG_ZRAM_BACKEND_LZO=y
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
CONFIG_ZRAM_DEF_COMP_LZO=y
CONFIG_ZRAM_DEF_COMP="lzo"
# CONFIG_ZRAM_WRITEBACK is not set
# CONFIG_ZRAM_TRACK_ENTRY_ACTIME is not set
# CONFIG_ZRAM_MEMORY_TRACKING is not set
# CONFIG_ZRAM_MULTI_COMP is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_ATA_OVER_ETH=y
CONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_RBD is not set
CONFIG_BLK_DEV_UBLK=y
CONFIG_BLKDEV_UBLK_LEGACY_OPCODES=y
CONFIG_BLK_DEV_RNBD=y
CONFIG_BLK_DEV_RNBD_CLIENT=y
# CONFIG_BLK_DEV_ZONED_LOOP is not set

#
# NVME Support
#
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=y
CONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
CONFIG_NVME_FABRICS=y
CONFIG_NVME_RDMA=y
CONFIG_NVME_FC=y
CONFIG_NVME_TCP=y
# CONFIG_NVME_TCP_TLS is not set
# CONFIG_NVME_HOST_AUTH is not set
CONFIG_NVME_TARGET=y
# CONFIG_NVME_TARGET_DEBUGFS is not set
# CONFIG_NVME_TARGET_PASSTHRU is not set
CONFIG_NVME_TARGET_LOOP=y
CONFIG_NVME_TARGET_RDMA=y
CONFIG_NVME_TARGET_FC=y
CONFIG_NVME_TARGET_FCLOOP=y
CONFIG_NVME_TARGET_TCP=y
# CONFIG_NVME_TARGET_TCP_TLS is not set
# CONFIG_NVME_TARGET_AUTH is not set
# CONFIG_NVME_TARGET_PCI_EPF is not set
# end of NVME Support

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
CONFIG_NET_VENDOR_ALIBABA=y
# CONFIG_ALIBABA_EEA is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
CONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_CX_ECAT is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_NET_VENDOR_CORTINA is not set
CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set
CONFIG_NET_VENDOR_GOOGLE=y
CONFIG_GVE=y
CONFIG_NET_VENDOR_HISILICON=y
# CONFIG_HIBMCGE is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_E100=y
CONFIG_E1000=y
CONFIG_E1000E=y
CONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not set
# CONFIG_IDPF is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_ADI is not set
CONFIG_NET_VENDOR_LITEX=y
# CONFIG_LITEX_LITEETH is not set
# CONFIG_NET_VENDOR_MARVELL is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
CONFIG_MLX4_CORE=y
# CONFIG_MLX4_DEBUG is not set
# CONFIG_MLX4_CORE_GEN2 is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set
CONFIG_NET_VENDOR_META=y
# CONFIG_FBNIC is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
CONFIG_NET_VENDOR_MICROSOFT=y
CONFIG_NET_VENDOR_MUCSE=y
# CONFIG_MGBE is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
CONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not set
# CONFIG_NET_VENDOR_VIA is not set
CONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not set
# CONFIG_TXGBEVF is not set
# CONFIG_NGBEVF is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_NET_VENDOR_XILINX is not set
# CONFIG_NET_VENDOR_XIRCOM is not set
CONFIG_FDDI=y
# CONFIG_DEFXX is not set
# CONFIG_SKFP is not set
CONFIG_PHYLINK=y
CONFIG_PHYLIB=y
CONFIG_SWPHY=y
CONFIG_PHY_PACKAGE=y
# CONFIG_LED_TRIGGER_PHY is not set
CONFIG_PHYLIB_LEDS=y
CONFIG_FIXED_PHY=y
# CONFIG_SFP is not set

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

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

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

# CONFIG_CAN_DEBUG_DEVICES is not set

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

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

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

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

# CONFIG_PLIP is not set
CONFIG_PPP=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_MPPE=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPPOATM=y
CONFIG_PPPOX=y
CONFIG_PPPOE=y
CONFIG_PPPOE_HASH_BITS_1=y
# CONFIG_PPPOE_HASH_BITS_2 is not set
# CONFIG_PPPOE_HASH_BITS_4 is not set
# CONFIG_PPPOE_HASH_BITS_8 is not set
CONFIG_PPPOE_HASH_BITS=1
CONFIG_PPTP=y
CONFIG_PPPOL2TP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_SLIP=y
CONFIG_SLHC=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
CONFIG_USB_NET_DRIVERS=y
CONFIG_USB_CATC=y
CONFIG_USB_KAWETH=y
CONFIG_USB_PEGASUS=y
CONFIG_USB_RTL8150=y
CONFIG_USB_RTL8152=y
CONFIG_USB_LAN78XX=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_AX8817X=y
CONFIG_USB_NET_AX88179_178A=y
CONFIG_USB_NET_CDCETHER=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_NCM=y
CONFIG_USB_NET_HUAWEI_CDC_NCM=y
CONFIG_USB_NET_CDC_MBIM=y
CONFIG_USB_NET_DM9601=y
CONFIG_USB_NET_SR9700=y
CONFIG_USB_NET_SR9800=y
CONFIG_USB_NET_SMSC75XX=y
CONFIG_USB_NET_SMSC95XX=y
CONFIG_USB_NET_GL620A=y
CONFIG_USB_NET_NET1080=y
CONFIG_USB_NET_PLUSB=y
CONFIG_USB_NET_MCS7830=y
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_NET_CDC_SUBSET_ENABLE=y
CONFIG_USB_NET_CDC_SUBSET=y
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_BELKIN=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_KC2190=y
CONFIG_USB_NET_ZAURUS=y
CONFIG_USB_NET_CX82310_ETH=y
CONFIG_USB_NET_KALMIA=y
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_USB_HSO=y
CONFIG_USB_NET_INT51X1=y
CONFIG_USB_CDC_PHONET=y
CONFIG_USB_IPHETH=y
CONFIG_USB_SIERRA_NET=y
CONFIG_USB_VL600=y
CONFIG_USB_NET_CH9200=y
CONFIG_USB_NET_AQC111=y
CONFIG_USB_RTL8153_ECM=y
CONFIG_WLAN=y
CONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not set
CONFIG_ATH_COMMON=y
CONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
CONFIG_ATH9K_HW=y
CONFIG_ATH9K_COMMON=y
CONFIG_ATH9K_COMMON_DEBUG=y
CONFIG_ATH9K_BTCOEX_SUPPORT=y
CONFIG_ATH9K=y
CONFIG_ATH9K_PCI=y
CONFIG_ATH9K_AHB=y
CONFIG_ATH9K_DEBUGFS=y
# CONFIG_ATH9K_STATION_STATISTICS is not set
CONFIG_ATH9K_DYNACK=y
# CONFIG_ATH9K_WOW is not set
CONFIG_ATH9K_RFKILL=y
CONFIG_ATH9K_CHANNEL_CONTEXT=y
CONFIG_ATH9K_PCOEM=y
# CONFIG_ATH9K_PCI_NO_EEPROM is not set
CONFIG_ATH9K_HTC=y
CONFIG_ATH9K_HTC_DEBUGFS=y
# CONFIG_ATH9K_HWRNG is not set
CONFIG_ATH9K_COMMON_SPECTRAL=y
CONFIG_CARL9170=y
CONFIG_CARL9170_LEDS=y
# CONFIG_CARL9170_DEBUGFS is not set
CONFIG_CARL9170_WPC=y
CONFIG_CARL9170_HWRNG=y
CONFIG_ATH6KL=y
# CONFIG_ATH6KL_SDIO is not set
CONFIG_ATH6KL_USB=y
# CONFIG_ATH6KL_DEBUG is not set
# CONFIG_ATH6KL_TRACING is not set
CONFIG_AR5523=y
# CONFIG_WIL6210 is not set
CONFIG_ATH10K=y
CONFIG_ATH10K_CE=y
CONFIG_ATH10K_PCI=y
# CONFIG_ATH10K_AHB is not set
# CONFIG_ATH10K_SDIO is not set
CONFIG_ATH10K_USB=y
# CONFIG_ATH10K_DEBUG is not set
# CONFIG_ATH10K_DEBUGFS is not set
CONFIG_ATH10K_LEDS=y
# CONFIG_ATH10K_TRACING is not set
# CONFIG_WCN36XX is not set
CONFIG_ATH11K=y
# CONFIG_ATH11K_PCI is not set
# CONFIG_ATH11K_DEBUG is not set
# CONFIG_ATH11K_DEBUGFS is not set
# CONFIG_ATH11K_TRACING is not set
# CONFIG_ATH12K is not set
# CONFIG_WLAN_VENDOR_ATMEL is not set
# CONFIG_WLAN_VENDOR_BROADCOM is not set
# CONFIG_WLAN_VENDOR_INTEL is not set
# CONFIG_WLAN_VENDOR_INTERSIL is not set
# CONFIG_WLAN_VENDOR_MARVELL is not set
# CONFIG_WLAN_VENDOR_MEDIATEK is not set
# CONFIG_WLAN_VENDOR_MICROCHIP is not set
CONFIG_WLAN_VENDOR_PURELIFI=y
CONFIG_PLFXLC=y
# CONFIG_WLAN_VENDOR_RALINK is not set
# CONFIG_WLAN_VENDOR_REALTEK is not set
# CONFIG_WLAN_VENDOR_RSI is not set
CONFIG_WLAN_VENDOR_SILABS=y
# CONFIG_WFX is not set
# CONFIG_WLAN_VENDOR_ST is not set
# CONFIG_WLAN_VENDOR_TI is not set
# CONFIG_WLAN_VENDOR_ZYDAS is not set
# CONFIG_WLAN_VENDOR_QUANTENNA is not set
CONFIG_MAC80211_HWSIM=y
CONFIG_VIRT_WIFI=y
CONFIG_WAN=y
CONFIG_HDLC=y
CONFIG_HDLC_RAW=y
CONFIG_HDLC_RAW_ETH=y
CONFIG_HDLC_CISCO=y
CONFIG_HDLC_FR=y
CONFIG_HDLC_PPP=y
CONFIG_HDLC_X25=y
# CONFIG_FRAMER is not set
# CONFIG_PCI200SYN is not set
# CONFIG_WANXL is not set
# CONFIG_PC300TOO is not set
# CONFIG_FARSYNC is not set
CONFIG_LAPBETHER=y
CONFIG_IEEE802154_DRIVERS=y
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
CONFIG_IEEE802154_ATUSB=y
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
CONFIG_IEEE802154_HWSIM=y

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

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

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

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=y

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

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

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_LEGACY_TIOCSTI=y
CONFIG_LDISC_AUTOLOAD=y

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

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

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

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

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

CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_SMBUS=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

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

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

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

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

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

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

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

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

#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Watchdog Pretimeout Governors
#

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

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

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

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

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

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

CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_SUPPORT_FILTER=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set

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

CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_DVB_CORE=y

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

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

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

#
# Media drivers
#

#
# Drivers filtered as selected at 'Filter media drivers'
#

#
# Media drivers
#
CONFIG_MEDIA_USB_SUPPORT=y

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

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

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

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

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

#
# Software defined radio USB devices
#
CONFIG_USB_AIRSPY=y
CONFIG_USB_HACKRF=y
CONFIG_USB_MSI2500=y
# CONFIG_MEDIA_PCI_SUPPORT is not set
CONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SAA7706H is not set
CONFIG_RADIO_SHARK=y
CONFIG_RADIO_SHARK2=y
CONFIG_RADIO_SI4713=y
CONFIG_RADIO_TEA575X=y
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_TEF6862 is not set
CONFIG_USB_DSBR=y
CONFIG_USB_KEENE=y
CONFIG_USB_MA901=y
CONFIG_USB_MR800=y
CONFIG_USB_RAREMONO=y
CONFIG_RADIO_SI470X=y
CONFIG_USB_SI470X=y
# CONFIG_I2C_SI470X is not set
CONFIG_USB_SI4713=y
# CONFIG_PLATFORM_SI4713 is not set
CONFIG_I2C_SI4713=y
# CONFIG_MEDIA_PLATFORM_DRIVERS is not set

#
# MMC/SDIO DVB adapters
#
CONFIG_SMS_SDIO_DRV=y
CONFIG_V4L_TEST_DRIVERS=y
CONFIG_VIDEO_VIM2M=y
CONFIG_VIDEO_VICODEC=y
CONFIG_VIDEO_VIMC=y
CONFIG_VIDEO_VIVID=y
CONFIG_VIDEO_VIVID_CEC=y
# CONFIG_VIDEO_VIVID_OSD is not set
CONFIG_VIDEO_VIVID_MAX_DEVS=64
# CONFIG_VIDEO_VISL is not set
CONFIG_DVB_TEST_DRIVERS=y
CONFIG_DVB_VIDTV=y

#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV is not set
CONFIG_MEDIA_COMMON_OPTIONS=y

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

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

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

# CONFIG_VIDEO_CAMERA_LENS is not set

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_MEDIA_TUNER=y

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

#
# Customise DVB Frontends
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_VGASTATE=y
CONFIG_VIDEOMODE_HELPERS=y
CONFIG_HDMI=y
# CONFIG_FIRMWARE_EDID is not set

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

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

# CONFIG_DRM_ACCEL is not set
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_UMP=y
CONFIG_SND_UMP_LEGACY_RAWMIDI=y
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_HRTIMER=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_CTL_FAST_LOOKUP=y
CONFIG_SND_DEBUG=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_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_RT5659 is not set
# CONFIG_SND_SOC_RT5682_SDW is not set
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW is not set
# CONFIG_SND_SOC_RT721_SDCA_SDW is not set
# CONFIG_SND_SOC_RT722_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_RT9123 is not set
# CONFIG_SND_SOC_RT9123P is not set
# CONFIG_SND_SOC_RTQ9124 is not set
# CONFIG_SND_SOC_RTQ9128 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not set
# CONFIG_SND_SOC_SGTL5000 is not set
# CONFIG_SND_SOC_SIMPLE_AMPLIFIER is not set
# CONFIG_SND_SOC_SIMPLE_MUX is not set
# CONFIG_SND_SOC_SMA1303 is not set
# CONFIG_SND_SOC_SMA1307 is not set
# CONFIG_SND_SOC_SPDIF is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2305 is not set
# CONFIG_SND_SOC_SSM2518 is not set
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM3515 is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not set
# CONFIG_SND_SOC_STA350 is not set
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not set
# CONFIG_SND_SOC_TAS2562 is not set
# CONFIG_SND_SOC_TAS2764 is not set
# CONFIG_SND_SOC_TAS2770 is not set
# CONFIG_SND_SOC_TAS2780 is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TAS5086 is not set
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TAS675X is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not set
# CONFIG_SND_SOC_TFA989X is not set
# CONFIG_SND_SOC_TLV320ADC3XXX is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not set
# CONFIG_SND_SOC_TLV320ADCX140 is not set
# CONFIG_SND_SOC_TS3A227E is not set
# CONFIG_SND_SOC_TSCS42XX is not set
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_UDA1334 is not set
# CONFIG_SND_SOC_UDA1342 is not set
# CONFIG_SND_SOC_UDA1380 is not set
# CONFIG_SND_SOC_WCD937X_SDW is not set
# CONFIG_SND_SOC_WCD938X_SDW is not set
# CONFIG_SND_SOC_WCD939X_SDW is not set
# CONFIG_SND_SOC_WM8510 is not set
# CONFIG_SND_SOC_WM8523 is not set
# CONFIG_SND_SOC_WM8524 is not set
# CONFIG_SND_SOC_WM8580 is not set
# CONFIG_SND_SOC_WM8711 is not set
# CONFIG_SND_SOC_WM8728 is not set
# CONFIG_SND_SOC_WM8731_I2C is not set
# CONFIG_SND_SOC_WM8731_SPI is not set
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not set
# CONFIG_SND_SOC_WM8750 is not set
# CONFIG_SND_SOC_WM8753 is not set
# CONFIG_SND_SOC_WM8770 is not set
# CONFIG_SND_SOC_WM8776 is not set
# CONFIG_SND_SOC_WM8782 is not set
# CONFIG_SND_SOC_WM8804_I2C is not set
# CONFIG_SND_SOC_WM8804_SPI is not set
# CONFIG_SND_SOC_WM8903 is not set
# CONFIG_SND_SOC_WM8904 is not set
# CONFIG_SND_SOC_WM8940 is not set
# CONFIG_SND_SOC_WM8960 is not set
# CONFIG_SND_SOC_WM8961 is not set
# CONFIG_SND_SOC_WM8962 is not set
# CONFIG_SND_SOC_WM8974 is not set
# CONFIG_SND_SOC_WM8978 is not set
# CONFIG_SND_SOC_WM8985 is not set
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_WSA883X is not set
# CONFIG_SND_SOC_WSA884X is not set
# CONFIG_SND_SOC_ZL38060 is not set
# CONFIG_SND_SOC_MAX9759 is not set
# CONFIG_SND_SOC_MT6351 is not set
# CONFIG_SND_SOC_MT6357 is not set
# CONFIG_SND_SOC_MT6358 is not set
# CONFIG_SND_SOC_MT6660 is not set
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_NAU8325 is not set
# CONFIG_SND_SOC_NAU8540 is not set
# CONFIG_SND_SOC_NAU8810 is not set
# CONFIG_SND_SOC_NAU8821 is not set
# CONFIG_SND_SOC_NAU8822 is not set
# CONFIG_SND_SOC_NAU8824 is not set
# CONFIG_SND_SOC_NTP8918 is not set
# CONFIG_SND_SOC_NTP8835 is not set
# CONFIG_SND_SOC_TPA6130A2 is not set
# CONFIG_SND_SOC_LPASS_WSA_MACRO is not set
# CONFIG_SND_SOC_LPASS_VA_MACRO is not set
# CONFIG_SND_SOC_LPASS_RX_MACRO is not set
# CONFIG_SND_SOC_LPASS_TX_MACRO is not set
# end of CODEC drivers

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

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

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

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

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

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

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

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

CONFIG_SURFACE_HID_CORE=y

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

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

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

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

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

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

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

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

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

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

#
# Platform Glue Layer
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Flash and Torch LED drivers
#

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

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

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

#
# Simatic LED drivers
#
# CONFIG_ACCESSIBILITY is not set
CONFIG_INFINIBAND=y
CONFIG_INFINIBAND_USER_MAD=y
CONFIG_INFINIBAND_USER_ACCESS=y
CONFIG_INFINIBAND_USER_ACCESS_CORE=y
CONFIG_INFINIBAND_USER_MEM=y
CONFIG_INFINIBAND_ON_DEMAND_PAGING=y
CONFIG_INFINIBAND_ADDR_TRANS=y
CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y
CONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_EFA is not set
# CONFIG_INFINIBAND_ERDMA is not set
CONFIG_MLX4_INFINIBAND=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_VMWARE_PVRDMA is not set
# CONFIG_INFINIBAND_RDMAVT is not set
CONFIG_RDMA_RXE=y
CONFIG_RDMA_SIW=y
CONFIG_INFINIBAND_IPOIB=y
CONFIG_INFINIBAND_IPOIB_CM=y
CONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
CONFIG_INFINIBAND_SRP=y
# CONFIG_INFINIBAND_SRPT is not set
CONFIG_INFINIBAND_ISER=y
CONFIG_INFINIBAND_RTRS=y
CONFIG_INFINIBAND_RTRS_CLIENT=y
# CONFIG_INFINIBAND_RTRS_SERVER is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_DECODE_MCE is not set
# CONFIG_EDAC_SCRUB is not set
# CONFIG_EDAC_ECS is not set
# CONFIG_EDAC_MEM_REPAIR is not set
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not set
# CONFIG_EDAC_I3000 is not set
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not set
# CONFIG_EDAC_X38 is not set
# CONFIG_EDAC_I5400 is not set
# CONFIG_EDAC_I7CORE is not set
# CONFIG_EDAC_I5100 is not set
# CONFIG_EDAC_I7300 is not set
# CONFIG_EDAC_SBRIDGE is not set
# CONFIG_EDAC_SKX is not set
# CONFIG_EDAC_I10NM is not set
# CONFIG_EDAC_IMH is not set
# CONFIG_EDAC_PND2 is not set
# CONFIG_EDAC_IGEN6 is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_MC146818_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
# CONFIG_RTC_NVMEM is not set

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

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

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

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

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

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

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

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

#
# DMA Clients
#
CONFIG_ASYNC_TX_DMA=y
# CONFIG_DMATEST is not set
CONFIG_DMA_ENGINE_RAID=y

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

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

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

CONFIG_IRQ_BYPASS_MANAGER=y
# CONFIG_VIRT_DRIVERS is not set
CONFIG_VIRTIO_ANCHOR=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI_LIB=y
CONFIG_VIRTIO_PCI_LIB_LEGACY=y
CONFIG_VIRTIO_MENU=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_ADMIN_LEGACY=y
CONFIG_VIRTIO_PCI_LEGACY=y
CONFIG_VIRTIO_VDPA=y
CONFIG_VIRTIO_PMEM=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_MEM=y
CONFIG_VIRTIO_INPUT=y
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
CONFIG_VIRTIO_DMA_SHARED_BUFFER=y
# CONFIG_VIRTIO_DEBUG is not set
# CONFIG_VIRTIO_RTC is not set
CONFIG_VDPA=y
CONFIG_VDPA_SIM=y
CONFIG_VDPA_SIM_NET=y
CONFIG_VDPA_SIM_BLOCK=y
# CONFIG_VDPA_USER is not set
# CONFIG_IFCVF is not set
# CONFIG_MLX5_VDPA_STEERING_DEBUG is not set
CONFIG_VP_VDPA=y
# CONFIG_ALIBABA_ENI_VDPA is not set
# CONFIG_SNET_VDPA is not set
# CONFIG_OCTEONEP_VDPA is not set
CONFIG_VHOST_IOTLB=y
CONFIG_VHOST_RING=y
CONFIG_VHOST_TASK=y
CONFIG_VHOST=y
CONFIG_VHOST_MENU=y
CONFIG_VHOST_NET=y
# CONFIG_VHOST_SCSI is not set
CONFIG_VHOST_VSOCK=y
CONFIG_VHOST_VDPA=y
CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
CONFIG_VHOST_ENABLE_FORK_OWNER_CONTROL=y

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

CONFIG_GREYBUS=y
# CONFIG_GREYBUS_BEAGLEPLAY is not set
CONFIG_GREYBUS_ES2=y
CONFIG_COMEDI=y
# CONFIG_COMEDI_DEBUG is not set
CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048
CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480
CONFIG_COMEDI_MISC_DRIVERS=y
CONFIG_COMEDI_BOND=y
CONFIG_COMEDI_TEST=y
CONFIG_COMEDI_PARPORT=y
CONFIG_COMEDI_ISA_DRIVERS=y
CONFIG_COMEDI_PCL711=y
CONFIG_COMEDI_PCL724=y
CONFIG_COMEDI_PCL726=y
CONFIG_COMEDI_PCL730=y
CONFIG_COMEDI_PCL812=y
CONFIG_COMEDI_PCL816=y
CONFIG_COMEDI_PCL818=y
CONFIG_COMEDI_PCM3724=y
CONFIG_COMEDI_AMPLC_DIO200_ISA=y
CONFIG_COMEDI_AMPLC_PC236_ISA=y
CONFIG_COMEDI_AMPLC_PC263_ISA=y
CONFIG_COMEDI_RTI800=y
CONFIG_COMEDI_RTI802=y
CONFIG_COMEDI_DAC02=y
CONFIG_COMEDI_DAS16M1=y
CONFIG_COMEDI_DAS08_ISA=y
# CONFIG_COMEDI_DAS16 is not set
CONFIG_COMEDI_DAS800=y
CONFIG_COMEDI_DAS1800=y
CONFIG_COMEDI_DAS6402=y
CONFIG_COMEDI_DT2801=y
CONFIG_COMEDI_DT2811=y
CONFIG_COMEDI_DT2814=y
CONFIG_COMEDI_DT2815=y
CONFIG_COMEDI_DT2817=y
CONFIG_COMEDI_DT282X=y
CONFIG_COMEDI_DMM32AT=y
CONFIG_COMEDI_FL512=y
CONFIG_COMEDI_AIO_AIO12_8=y
CONFIG_COMEDI_AIO_IIRO_16=y
# CONFIG_COMEDI_II_PCI20KC is not set
CONFIG_COMEDI_C6XDIGIO=y
CONFIG_COMEDI_MPC624=y
CONFIG_COMEDI_ADQ12B=y
CONFIG_COMEDI_NI_AT_A2150=y
CONFIG_COMEDI_NI_AT_AO=y
# CONFIG_COMEDI_NI_ATMIO is not set
CONFIG_COMEDI_NI_ATMIO16D=y
CONFIG_COMEDI_NI_LABPC_ISA=y
CONFIG_COMEDI_PCMAD=y
CONFIG_COMEDI_PCMDA12=y
CONFIG_COMEDI_PCMMIO=y
CONFIG_COMEDI_PCMUIO=y
CONFIG_COMEDI_MULTIQ3=y
CONFIG_COMEDI_S526=y
CONFIG_COMEDI_PCI_DRIVERS=y
CONFIG_COMEDI_8255_PCI=y
# CONFIG_COMEDI_ADDI_APCI_1032 is not set
# CONFIG_COMEDI_ADDI_APCI_1500 is not set
# CONFIG_COMEDI_ADDI_APCI_1516 is not set
# CONFIG_COMEDI_ADDI_APCI_1564 is not set
# CONFIG_COMEDI_ADDI_APCI_16XX is not set
# CONFIG_COMEDI_ADDI_APCI_2032 is not set
# CONFIG_COMEDI_ADDI_APCI_2200 is not set
# CONFIG_COMEDI_ADDI_APCI_3120 is not set
# CONFIG_COMEDI_ADDI_APCI_3501 is not set
# CONFIG_COMEDI_ADDI_APCI_3XXX is not set
# CONFIG_COMEDI_ADL_PCI6208 is not set
# CONFIG_COMEDI_ADL_PCI7250 is not set
# CONFIG_COMEDI_ADL_PCI7X3X is not set
# CONFIG_COMEDI_ADL_PCI8164 is not set
# CONFIG_COMEDI_ADL_PCI9111 is not set
CONFIG_COMEDI_ADL_PCI9118=y
# CONFIG_COMEDI_ADV_PCI1710 is not set
# CONFIG_COMEDI_ADV_PCI1720 is not set
# CONFIG_COMEDI_ADV_PCI1723 is not set
# CONFIG_COMEDI_ADV_PCI1724 is not set
# CONFIG_COMEDI_ADV_PCI1760 is not set
# CONFIG_COMEDI_ADV_PCI_DIO is not set
# CONFIG_COMEDI_AMPLC_DIO200_PCI is not set
# CONFIG_COMEDI_AMPLC_PC236_PCI is not set
# CONFIG_COMEDI_AMPLC_PC263_PCI is not set
# CONFIG_COMEDI_AMPLC_PCI224 is not set
# CONFIG_COMEDI_AMPLC_PCI230 is not set
# CONFIG_COMEDI_CONTEC_PCI_DIO is not set
# CONFIG_COMEDI_DAS08_PCI is not set
# CONFIG_COMEDI_DT3000 is not set
# CONFIG_COMEDI_DYNA_PCI10XX is not set
# CONFIG_COMEDI_GSC_HPDI is not set
# CONFIG_COMEDI_MF6X4 is not set
# CONFIG_COMEDI_ICP_MULTI is not set
# CONFIG_COMEDI_DAQBOARD2000 is not set
# CONFIG_COMEDI_JR3_PCI is not set
# CONFIG_COMEDI_KE_COUNTER is not set
# CONFIG_COMEDI_CB_PCIDAS64 is not set
# CONFIG_COMEDI_CB_PCIDAS is not set
# CONFIG_COMEDI_CB_PCIDDA is not set
# CONFIG_COMEDI_CB_PCIMDAS is not set
# CONFIG_COMEDI_CB_PCIMDDA is not set
# CONFIG_COMEDI_ME4000 is not set
# CONFIG_COMEDI_ME_DAQ is not set
# CONFIG_COMEDI_NI_6527 is not set
# CONFIG_COMEDI_NI_65XX is not set
# CONFIG_COMEDI_NI_660X is not set
# CONFIG_COMEDI_NI_670X is not set
CONFIG_COMEDI_NI_LABPC_PCI=y
# CONFIG_COMEDI_NI_PCIDIO is not set
# CONFIG_COMEDI_NI_PCIMIO is not set
# CONFIG_COMEDI_RTD520 is not set
# CONFIG_COMEDI_S626 is not set
CONFIG_COMEDI_PCMCIA_DRIVERS=y
# CONFIG_COMEDI_CB_DAS16_CS is not set
# CONFIG_COMEDI_DAS08_CS is not set
CONFIG_COMEDI_NI_DAQ_700_CS=y
# CONFIG_COMEDI_NI_DAQ_DIO24_CS is not set
CONFIG_COMEDI_NI_LABPC_CS=y
# CONFIG_COMEDI_NI_MIO_CS is not set
# CONFIG_COMEDI_QUATECH_DAQP_CS is not set
CONFIG_COMEDI_USB_DRIVERS=y
CONFIG_COMEDI_DT9812=y
CONFIG_COMEDI_NI_USB6501=y
CONFIG_COMEDI_USBDUX=y
CONFIG_COMEDI_USBDUXFAST=y
CONFIG_COMEDI_USBDUXSIGMA=y
CONFIG_COMEDI_VMK80XX=y
CONFIG_COMEDI_8254=y
CONFIG_COMEDI_8255=y
CONFIG_COMEDI_8255_SA=y
CONFIG_COMEDI_KCOMEDILIB=y
CONFIG_COMEDI_AMPLC_DIO200=y
CONFIG_COMEDI_AMPLC_PC236=y
CONFIG_COMEDI_DAS08=y
CONFIG_COMEDI_ISADMA=y
CONFIG_COMEDI_NI_LABPC=y
CONFIG_COMEDI_NI_LABPC_ISADMA=y
# CONFIG_COMEDI_TESTS is not set
# CONFIG_GPIB is not set
CONFIG_STAGING=y
# CONFIG_RTL8723BS is not set

#
# IIO staging drivers
#

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

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

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

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

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

# CONFIG_FB_SM750 is not set
# CONFIG_STAGING_MEDIA is not set
# CONFIG_FB_TFT is not set
# CONFIG_MOST_COMPONENTS is not set
# CONFIG_GREYBUS_AUDIO is not set
# CONFIG_GREYBUS_BOOTROM is not set
# CONFIG_GREYBUS_FIRMWARE is not set
CONFIG_GREYBUS_HID=y
# CONFIG_GREYBUS_LOG is not set
# CONFIG_GREYBUS_LOOPBACK is not set
# CONFIG_GREYBUS_POWER is not set
# CONFIG_GREYBUS_RAW is not set
# CONFIG_GREYBUS_VIBRATOR is not set
CONFIG_GREYBUS_BRIDGED_PHY=y
# CONFIG_GREYBUS_GPIO is not set
# CONFIG_GREYBUS_I2C is not set
# CONFIG_GREYBUS_SDIO is not set
# CONFIG_GREYBUS_SPI is not set
# CONFIG_GREYBUS_UART is not set
CONFIG_GREYBUS_USB=y
# CONFIG_XIL_AXIS_FIFO is not set
# CONFIG_VME_BUS is not set
# CONFIG_GOLDFISH is not set
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not set
CONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_ACPI_NOTIFY is not set
# CONFIG_SURFACE_AGGREGATOR_CDEV is not set
# CONFIG_SURFACE_AGGREGATOR_HUB is not set
CONFIG_SURFACE_AGGREGATOR_REGISTRY=y
# CONFIG_SURFACE_AGGREGATOR_TABLET_SWITCH is not set
# CONFIG_SURFACE_DTX is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PLATFORM_PROFILE is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
CONFIG_SURFACE_AGGREGATOR=y
CONFIG_SURFACE_AGGREGATOR_BUS=y
CONFIG_X86_PLATFORM_DEVICES=y
CONFIG_WMI_BMOF=y
# CONFIG_HUAWEI_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_UNIWILL is not set
# CONFIG_MXM_WMI is not set
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_REDMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
# CONFIG_BITLAND_MIFS_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_ACER_WMI is not set

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

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

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

# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not set
# CONFIG_INTEL_WMI_THUNDERBOLT is not set

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

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

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

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

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

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

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

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

CONFIG_SOUNDWIRE=y

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

#
# SOC (System On Chip) specific Drivers
#

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

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

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

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

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

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

# CONFIG_WPCM450_SOC is not set

#
# Qualcomm SoC drivers
#
CONFIG_QCOM_QMI_HELPERS=y
# end of Qualcomm SoC drivers

# CONFIG_SOC_TI is not set

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

#
# PM Domains
#

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

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

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

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

# CONFIG_PM_DEVFREQ is not set
CONFIG_EXTCON=y

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Frequency Synthesizers DDS/PLL
#

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

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

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

#
# Health Sensors
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# CONFIG_NTB is not set
# CONFIG_PWM is not set

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

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

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

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

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

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

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

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

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

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

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

# CONFIG_NVMEM_RMEM is not set
# CONFIG_NVMEM_U_BOOT_ENV is not set

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

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

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_VALIDATE_FS_PARSER=y
CONFIG_FS_IOMAP=y
CONFIG_FS_STACK=y
CONFIG_BUFFER_HEAD=y
CONFIG_LEGACY_DIRECT_IO=y
# CONFIG_EXT2_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_SUPPORT_V4 is not set
# CONFIG_XFS_SUPPORT_ASCII_CI is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DRAIN_INTENTS=y
CONFIG_XFS_LIVE_HOOKS=y
CONFIG_XFS_MEMORY_BUFS=y
CONFIG_XFS_BTREE_IN_MEM=y
CONFIG_XFS_ONLINE_SCRUB=y
# CONFIG_XFS_ONLINE_SCRUB_STATS is not set
CONFIG_XFS_ONLINE_REPAIR=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_NILFS2_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
CONFIG_F2FS_FAULT_INJECTION=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not set
# CONFIG_F2FS_UNFAIR_RWSEM is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_ENCRYPTION_INLINE_CRYPT is not set
CONFIG_FS_VERITY=y
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
CONFIG_FUSE_FS=y
CONFIG_CUSE=y
CONFIG_VIRTIO_FS=y
CONFIG_FUSE_DAX=y
# CONFIG_FUSE_PASSTHROUGH is not set
CONFIG_FUSE_IO_URING=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
# CONFIG_CACHEFILES_ONDEMAND is not set
# end of Caches

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

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

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

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

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

#
# No trust source selected!
#
CONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
CONFIG_KEY_DH_OPERATIONS=y
CONFIG_KEY_NOTIFICATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_PROC_MEM_ALWAYS_FORCE is not set
CONFIG_PROC_MEM_FORCE_PTRACE=y
# CONFIG_PROC_MEM_NO_FORCE is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
CONFIG_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_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 is not set
CONFIG_CRYPTO_PCRYPT=y
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=y
CONFIG_CRYPTO_KRB5ENC=y
# CONFIG_CRYPTO_BENCHMARK is not set
CONFIG_CRYPTO_ENGINE=y
# end of Crypto core or helper

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

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

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

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

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

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

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

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

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

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

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

#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
# CONFIG_MODULE_SIG_KEY_TYPE_RSA is not set
CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_44=y
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_65 is not set
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_87 is not set
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
CONFIG_SECONDARY_TRUSTED_KEYRING=y
# CONFIG_SECONDARY_TRUSTED_KEYRING_SIGNED_BY_BUILTIN is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
CONFIG_OPENSSL_SUPPORTS_ML_DSA=y
# end of Certificates for signature checking

CONFIG_CRYPTO_KRB5=y
# CONFIG_CRYPTO_KRB5_SELFTESTS is not set
CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
CONFIG_CRC8=y
CONFIG_CRC16=y
CONFIG_CRC_CCITT=y
CONFIG_CRC_ITU_T=y
CONFIG_CRC_T10DIF=y
CONFIG_CRC_T10DIF_ARCH=y
CONFIG_CRC32=y
CONFIG_CRC32_ARCH=y
CONFIG_CRC64=y
CONFIG_CRC64_ARCH=y
CONFIG_CRC_OPTIMIZATIONS=y
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_LIB_UTILS=y
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_LIB_AES_ARCH=y
CONFIG_CRYPTO_LIB_AES_CBC_MACS=y
CONFIG_CRYPTO_LIB_ARC4=y
CONFIG_CRYPTO_LIB_GF128MUL=y
CONFIG_CRYPTO_LIB_BLAKE2B=y
CONFIG_CRYPTO_LIB_BLAKE2S_ARCH=y
CONFIG_CRYPTO_LIB_CHACHA=y
CONFIG_CRYPTO_LIB_CHACHA_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_CURVE25519_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_LIB_GF128HASH=y
CONFIG_CRYPTO_LIB_GF128HASH_ARCH=y
CONFIG_CRYPTO_LIB_MD5=y
CONFIG_CRYPTO_LIB_MLDSA=y
CONFIG_CRYPTO_LIB_NH=y
CONFIG_CRYPTO_LIB_NH_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305=y
CONFIG_CRYPTO_LIB_POLY1305_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
CONFIG_CRYPTO_LIB_SHA1=y
CONFIG_CRYPTO_LIB_SHA1_ARCH=y
CONFIG_CRYPTO_LIB_SHA256=y
CONFIG_CRYPTO_LIB_SHA256_ARCH=y
CONFIG_CRYPTO_LIB_SHA512=y
CONFIG_CRYPTO_LIB_SHA512_ARCH=y
CONFIG_CRYPTO_LIB_SHA3=y
CONFIG_XOR_BLOCKS=y
CONFIG_XOR_BLOCKS_ARCH=y
CONFIG_RAID6_PQ=y
CONFIG_RAID6_PQ_ARCH=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_ARM64=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_RISCV=y
# CONFIG_XZ_DEC_MICROLZMA is not set
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_DECOMPRESS_ZSTD=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_REED_SOLOMON=y
CONFIG_REED_SOLOMON_DEC8=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=y
CONFIG_TEXTSEARCH_BM=y
CONFIG_TEXTSEARCH_FSM=y
CONFIG_INTERVAL_TREE=y
CONFIG_INTERVAL_TREE_SPAN_ITER=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_CLOSURES=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DMA_OPS_HELPERS=y
CONFIG_NEED_SG_DMA_FLAGS=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_DMA_DECLARE_COHERENT=y
CONFIG_SWIOTLB=y
# CONFIG_SWIOTLB_DYNAMIC is not set
CONFIG_DMA_NEED_SYNC=y
# CONFIG_DMA_RESTRICTED_POOL is not set
CONFIG_DMA_CMA=y
# CONFIG_DMA_NUMA_CMA is not set

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_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_HAVE_GENERIC_VDSO=y
CONFIG_GENERIC_GETTIMEOFDAY=y
CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT=y
CONFIG_VDSO_GETRANDOM=y
CONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_MEMREGION=y
CONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=y
CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y
CONFIG_ARCH_HAS_COPY_MC=y
CONFIG_ARCH_STACKWALK=y
CONFIG_STACKDEPOT=y
CONFIG_STACKDEPOT_ALWAYS_INIT=y
CONFIG_STACKDEPOT_MAX_FRAMES=64
CONFIG_REF_TRACKER=y
CONFIG_SBITMAP=y
# CONFIG_LWQ_TEST is not set
# end of Library routines

CONFIG_FIRMWARE_TABLE=y
CONFIG_UNION_FIND=y

#
# Kernel hacking
#

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

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y

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

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

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

#
# Memory Debugging
#
CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_SLUB_RCU_DEBUG=y
CONFIG_PAGE_OWNER=y
CONFIG_PAGE_TABLE_CHECK=y
CONFIG_PAGE_TABLE_CHECK_ENFORCED=y
CONFIG_PAGE_POISONING=y
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_ARCH_HAS_DEBUG_WX=y
CONFIG_DEBUG_WX=y
CONFIG_ARCH_HAS_PTDUMP=y
CONFIG_PTDUMP=y
CONFIG_PTDUMP_DEBUGFS=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_PER_VMA_LOCK_STATS is not set
CONFIG_DEBUG_OBJECTS=y
# CONFIG_DEBUG_OBJECTS_SELFTEST is not set
CONFIG_DEBUG_OBJECTS_FREE=y
CONFIG_DEBUG_OBJECTS_TIMERS=y
CONFIG_DEBUG_OBJECTS_WORK=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SHRINKER_DEBUG is not set
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_SCHED_STACK_END_CHECK=y
CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
CONFIG_DEBUG_VFS=y
CONFIG_DEBUG_VM_IRQSOFF=y
CONFIG_DEBUG_VM=y
CONFIG_DEBUG_VM_MAPLE_TREE=y
CONFIG_DEBUG_VM_RB=y
CONFIG_DEBUG_VM_PGFLAGS=y
CONFIG_DEBUG_VM_PGTABLE=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_DEBUG_VIRTUAL=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_PER_CPU_MAPS=y
CONFIG_DEBUG_KMAP_LOCAL=y
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y
# CONFIG_MEM_ALLOC_PROFILING is not set
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_HAVE_ARCH_KASAN_VMALLOC=y
CONFIG_CC_HAS_KASAN_GENERIC=y
CONFIG_CC_HAS_KASAN_SW_TAGS=y
CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
CONFIG_KASAN=y
CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX=y
CONFIG_KASAN_GENERIC=y
# CONFIG_KASAN_OUTLINE is not set
CONFIG_KASAN_INLINE=y
CONFIG_KASAN_STACK=y
CONFIG_KASAN_VMALLOC=y
# CONFIG_KASAN_EXTRA_INFO is not set
CONFIG_HAVE_ARCH_KFENCE=y
CONFIG_KFENCE=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_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_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_CONTEXT_ANALYSIS_TEST is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_HMM is not set
# CONFIG_TEST_FREE_PAGES is not set
# CONFIG_TEST_CLOCKSOURCE_WATCHDOG is not set
# CONFIG_TEST_OBJPOOL is not set
CONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage

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

CONFIG_IO_URING_ZCRX=y
CONFIG_IO_URING_BPF=y
KernelRepo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 5925810172592128
ReproOpts
Show (105 bytes)
{"repeat":true,"procs":5,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false,"callcomments":true}
ReproSyzID 6725080299601920
SyzkallerCommit d4abbeacd53add822a563e66a8ca9e64929b96ab
TargetArch amd64
TargetOS linux
TargetVMArch amd64

Error:
log-in to see details

Outputs:

Crash report:
(syz-executor157,5664,1):o2hb_bio_end_io:499 ERROR: IO Error 10
(syz-executor157,5664,1):o2hb_region_dev_store:1850 ERROR: status = -5
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:112 [inline]
BUG: KASAN: null-ptr-deref in atomic_long_dec_return include/linux/atomic/atomic-instrumented.h:3766 [inline]
BUG: KASAN: null-ptr-deref in file_ref_put include/linux/file_ref.h:157 [inline]
BUG: KASAN: null-ptr-deref in fput+0x2e/0x100 fs/file_table.c:588
Write of size 8 at addr 0000000000000158 by task syz-executor157/5664

CPU: 1 UID: 0 PID: 5664 Comm: syz-executor157 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 check_region_inline mm/kasan/generic.c:186 [inline]
 kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200
 instrument_atomic_read_write include/linux/instrumented.h:112 [inline]
 atomic_long_dec_return include/linux/atomic/atomic-instrumented.h:3766 [inline]
 file_ref_put include/linux/file_ref.h:157 [inline]
 fput+0x2e/0x100 fs/file_table.c:588
 o2hb_region_dev_store+0x1230/0x1bc0 fs/ocfs2/cluster/heartbeat.c:1935
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x302/0x4e0 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x6ac/0x1050 fs/read_write.c:687
 ksys_write+0x12a/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd8eccb5ab9
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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc7d881e78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000540 RCX: 00007fd8eccb5ab9
RDX: 0000000000000001 RSI: 00002000000005c0 RDI: 0000000000000004
RBP: 0030706f6f6c2f2e R08: 0000000000000009 R09: 0000000000000009
R10: 0000000000000009 R11: 0000000000000246 R12: 000000000001009b
R13: 00007ffc7d881e8c R14: 00007ffc7d881ea0 R15: 0000200000000008
 </TASK>
==================================================================

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/28 17:01 flow patching
1h28m Error:
log-in to see details

1/1 2026/09/28 17:01 action base-commit-picker
0m Results:
map[KernelBranch:master KernelCommit:72d3fcf802c45d00b300f25b848a93c3a2bd7c7e KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git]

2/1 2026/09/28 17:01 action syz-repro-to-c-repro
0m Results:
map[SimplifiedCRepro:// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE 

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

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

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 00} (length 0x9)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000000, "./config\000", 9);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000000ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  mount arguments: [
//    src: nil
//    dst: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 00} (length 0x9)
//    }
//    type: ptr[in, buffer] {
//      buffer: {63 6f 6e 66 69 67 66 73 00} (length 0x9)
//    }
//    flags: mount_flags = 0x0 (8 bytes)
//    data: nil
//  ]
memcpy((void*)0x200000000000, "./config\000", 9);
memcpy((void*)0x200000000040, "configfs\000", 9);
	syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000000ul, /*type=*/0x200000000040ul, /*flags=*/0ul, /*data=*/0ul);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 00} (length 0x1b)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000080, "./config/cluster/mycluster\000", 27);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000080ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 00} (length 0x27)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000100, "./config/cluster/mycluster/node/mynode\000", 39);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000100ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 69 70 76 34 5f 61 64 64 72 65 73 73 00} (length 0x34)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000140, "./config/cluster/mycluster/node/mynode/ipv4_address\000", 52);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000140ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 32 37 2e 30 2e 30 2e 31 00} (length 0xa)
//    }
//    count: len = 0x9 (8 bytes)
//  ]
memcpy((void*)0x200000000180, "127.0.0.1\000", 10);
	syscall(__NR_write, /*fd=*/r[0], /*buf=*/0x200000000180ul, /*count=*/9ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[0]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 69 70 76 34 5f 70 6f 72 74 00} (length 0x31)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x2000000001c0, "./config/cluster/mycluster/node/mynode/ipv4_port\000", 49);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000001c0ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[1] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {37 37 37 37 00} (length 0x5)
//    }
//    count: len = 0x4 (8 bytes)
//  ]
memcpy((void*)0x200000000200, "7777\000", 5);
	syscall(__NR_write, /*fd=*/r[1], /*buf=*/0x200000000200ul, /*count=*/4ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[1]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 6e 75 6d 00} (length 0x2b)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000240, "./config/cluster/mycluster/node/mynode/num\000", 43);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[2] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {30 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x200000000280, "0\000", 2);
	syscall(__NR_write, /*fd=*/r[2], /*buf=*/0x200000000280ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[2]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 6c 6f 63 61 6c 00} (length 0x2d)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x2000000002c0, "./config/cluster/mycluster/node/mynode/local\000", 45);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000002c0ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[3] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x200000000300, "1\000", 2);
	syscall(__NR_write, /*fd=*/r[3], /*buf=*/0x200000000300ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[3]);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 00} (length 0x2e)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000340, "./config/cluster/mycluster/heartbeat/myregion\000", 46);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000340ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 62 6c 6f 63 6b 5f 62 79 74 65 73 00} (length 0x3a)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000380, "./config/cluster/mycluster/heartbeat/myregion/block_bytes\000", 58);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000380ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[4] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {35 31 32 00} (length 0x4)
//    }
//    count: len = 0x3 (8 bytes)
//  ]
memcpy((void*)0x2000000003c0, "512\000", 4);
	syscall(__NR_write, /*fd=*/r[4], /*buf=*/0x2000000003c0ul, /*count=*/3ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[4]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 62 6c 6f 63 6b 73 00} (length 0x35)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000400, "./config/cluster/mycluster/heartbeat/myregion/blocks\000", 53);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000400ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[5] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {32 35 35 00} (length 0x4)
//    }
//    count: len = 0x3 (8 bytes)
//  ]
memcpy((void*)0x200000000440, "255\000", 4);
	syscall(__NR_write, /*fd=*/r[5], /*buf=*/0x200000000440ul, /*count=*/3ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[5]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 73 74 61 72 74 5f 62 6c 6f 63 6b 00} (length 0x3a)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000480, "./config/cluster/mycluster/heartbeat/myregion/start_block\000", 58);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000480ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[6] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x2000000004c0, "1\000", 2);
	syscall(__NR_write, /*fd=*/r[6], /*buf=*/0x2000000004c0ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[6]);
//  mknodat arguments: [
//    dirfd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 6c 6f 6f 70 30 00} (length 0x8)
//    }
//    mode: mknod_mode = 0x61c0 (8 bytes)
//    dev: int32 = 0x700 (4 bytes)
//  ]
memcpy((void*)0x200000000540, "./loop0\000", 8);
	syscall(__NR_mknodat, /*dirfd=*/0xffffff9c, /*file=*/0x200000000540ul, /*mode=S_IFBLK|0x1c0*/0x61c0ul, /*dev=*/0x700);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 6c 6f 6f 70 30 00} (length 0x8)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000540, "./loop0\000", 8);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000540ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[7] = res;
//  ioctl$LOOP_SET_FD arguments: [
//    fd: fd_loop (resource)
//    cmd: const = 0x4c00 (4 bytes)
//    arg: fd (resource)
//  ]
	syscall(__NR_ioctl, /*fd=*/r[7], /*cmd=*/0x4c00, /*arg=*/(intptr_t)-1);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 64 65 76 00} (length 0x32)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000580, "./config/cluster/mycluster/heartbeat/myregion/dev\000", 50);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000580ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[8] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {33 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x2000000005c0, "3\000", 2);
	syscall(__NR_write, /*fd=*/r[8], /*buf=*/0x2000000005c0ul, /*count=*/1ul);
	return 0;
}
]

3/1 2026/09/28 17:01 action kernel-checkouter
0m Results:
map[KernelSrc:/app/workdir/cache/src/693ab9fd8f54d449ba077358fc32edb140d91bb2]

4/1 2026/09/28 17:02 action kernel-builder
17m Results:
map[KernelObj:/app/workdir/cache/build/1d503d6c5c537839f7de6decf2840da57716f1f7]

5/1 2026/09/28 17:19 action crash-reproducer
1m Results:
map[OtherCrashReports:<nil> ReproducedBugTitle:kernel BUG in ___free_pages ReproducedCrashReport: new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 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
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1846!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 6520 Comm: syz.2.112 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
RIP: 0010:put_page_testzero include/linux/mm.h:1846 [inline]
RIP: 0010:___free_pages+0x1a5/0x1b0 mm/page_alloc.c:5528
Code: 8e ea 02 e9 49 ff ff ff 48 89 df 48 c7 c6 20 fc fd 8b e8 9e 1f 00 ff 90 0f 0b 48 89 df 48 c7 c6 40 23 fe 8b e8 8c 1f 00 ff 90 <0f> 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004a9fa00 EFLAGS: 00010246
RAX: 5189c4f302aeb300 RBX: ffffea000454cf80 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e5e49e6 RDI: ffff888113e22580
RBP: 0000000000000000 R08: ffff88827be24713 R09: 1ffff1104f7c48e2
R10: dffffc0000000000 R11: ffffed104f7c48e3 R12: 017ff00000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea000454cfb4
FS:  00007fd31b1fe6c0(0000) GS:ffff8882e845c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000005a711f48000 CR3: 00000001142f1000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 o2hb_unmap_slot_data+0xf8/0x2c0 fs/ocfs2/cluster/heartbeat.c:1592
 o2hb_region_dev_store+0x732/0x11f0 fs/ocfs2/cluster/heartbeat.c:2027
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x337/0x430 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 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:0x7fd31bb9e159
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:00007fd31b1fe028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd31be25fa0 RCX: 00007fd31bb9e159
RDX: 0000000000000001 RSI: 00002000000005c0 RDI: 0000000000000004
RBP: 00007fd31bc3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd31be26038 R14: 00007fd31be25fa0 R15: 00007ffdcbcf4698
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:put_page_testzero include/linux/mm.h:1846 [inline]
RIP: 0010:___free_pages+0x1a5/0x1b0 mm/page_alloc.c:5528
Code: 8e ea 02 e9 49 ff ff ff 48 89 df 48 c7 c6 20 fc fd 8b e8 9e 1f 00 ff 90 0f 0b 48 89 df 48 c7 c6 40 23 fe 8b e8 8c 1f 00 ff 90 <0f> 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004a9fa00 EFLAGS: 00010246
RAX: 5189c4f302aeb300 RBX: ffffea000454cf80 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e5e49e6 RDI: ffff888113e22580
RBP: 0000000000000000 R08: ffff88827be24713 R09: 1ffff1104f7c48e2
R10: dffffc0000000000 R11: ffffed104f7c48e3 R12: 017ff00000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea000454cfb4
FS:  00007fd31b1fe6c0(0000) GS:ffff8882e845c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa02135da08 CR3: 00000001142f1000 CR4: 0000000000352ef0
 ReproducedFaultInjection:]

6/1 2026/09/28 17:21 action codesearch-prepare
11m Results:
map[Index:codesearch-index]

7/1 2026/09/28 17:33 agent debugger
56m Model:
deep-reasoning

Error:
log-in to see details

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



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

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

Prompt:
The crash is:

 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 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
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1846!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 6520 Comm: syz.2.112 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
RIP: 0010:put_page_testzero include/linux/mm.h:1846 [inline]
RIP: 0010:___free_pages+0x1a5/0x1b0 mm/page_alloc.c:5528
Code: 8e ea 02 e9 49 ff ff ff 48 89 df 48 c7 c6 20 fc fd 8b e8 9e 1f 00 ff 90 0f 0b 48 89 df 48 c7 c6 40 23 fe 8b e8 8c 1f 00 ff 90 <0f> 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004a9fa00 EFLAGS: 00010246
RAX: 5189c4f302aeb300 RBX: ffffea000454cf80 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e5e49e6 RDI: ffff888113e22580
RBP: 0000000000000000 R08: ffff88827be24713 R09: 1ffff1104f7c48e2
R10: dffffc0000000000 R11: ffffed104f7c48e3 R12: 017ff00000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea000454cfb4
FS:  00007fd31b1fe6c0(0000) GS:ffff8882e845c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000005a711f48000 CR3: 00000001142f1000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 o2hb_unmap_slot_data+0xf8/0x2c0 fs/ocfs2/cluster/heartbeat.c:1592
 o2hb_region_dev_store+0x732/0x11f0 fs/ocfs2/cluster/heartbeat.c:2027
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x337/0x430 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_write+0x150/0x270 fs/read_write.c:739
 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:0x7fd31bb9e159
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:00007fd31b1fe028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd31be25fa0 RCX: 00007fd31bb9e159
RDX: 0000000000000001 RSI: 00002000000005c0 RDI: 0000000000000004
RBP: 00007fd31bc3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd31be26038 R14: 00007fd31be25fa0 R15: 00007ffdcbcf4698
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:put_page_testzero include/linux/mm.h:1846 [inline]
RIP: 0010:___free_pages+0x1a5/0x1b0 mm/page_alloc.c:5528
Code: 8e ea 02 e9 49 ff ff ff 48 89 df 48 c7 c6 20 fc fd 8b e8 9e 1f 00 ff 90 0f 0b 48 89 df 48 c7 c6 40 23 fe 8b e8 8c 1f 00 ff 90 <0f> 0b 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004a9fa00 EFLAGS: 00010246
RAX: 5189c4f302aeb300 RBX: ffffea000454cf80 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e5e49e6 RDI: ffff888113e22580
RBP: 0000000000000000 R08: ffff88827be24713 R09: 1ffff1104f7c48e2
R10: dffffc0000000000 R11: ffffed104f7c48e3 R12: 017ff00000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea000454cfb4
FS:  00007fd31b1fe6c0(0000) GS:ffff8882e845c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa02135da08 CR3: 00000001142f1000 CR4: 0000000000352ef0


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

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

#define _GNU_SOURCE 

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

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

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 00} (length 0x9)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000000, "./config\000", 9);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000000ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  mount arguments: [
//    src: nil
//    dst: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 00} (length 0x9)
//    }
//    type: ptr[in, buffer] {
//      buffer: {63 6f 6e 66 69 67 66 73 00} (length 0x9)
//    }
//    flags: mount_flags = 0x0 (8 bytes)
//    data: nil
//  ]
memcpy((void*)0x200000000000, "./config\000", 9);
memcpy((void*)0x200000000040, "configfs\000", 9);
	syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000000ul, /*type=*/0x200000000040ul, /*flags=*/0ul, /*data=*/0ul);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 00} (length 0x1b)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000080, "./config/cluster/mycluster\000", 27);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000080ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 00} (length 0x27)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000100, "./config/cluster/mycluster/node/mynode\000", 39);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000100ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 69 70 76 34 5f 61 64 64 72 65 73 73 00} (length 0x34)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000140, "./config/cluster/mycluster/node/mynode/ipv4_address\000", 52);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000140ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 32 37 2e 30 2e 30 2e 31 00} (length 0xa)
//    }
//    count: len = 0x9 (8 bytes)
//  ]
memcpy((void*)0x200000000180, "127.0.0.1\000", 10);
	syscall(__NR_write, /*fd=*/r[0], /*buf=*/0x200000000180ul, /*count=*/9ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[0]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 69 70 76 34 5f 70 6f 72 74 00} (length 0x31)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x2000000001c0, "./config/cluster/mycluster/node/mynode/ipv4_port\000", 49);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000001c0ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[1] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {37 37 37 37 00} (length 0x5)
//    }
//    count: len = 0x4 (8 bytes)
//  ]
memcpy((void*)0x200000000200, "7777\000", 5);
	syscall(__NR_write, /*fd=*/r[1], /*buf=*/0x200000000200ul, /*count=*/4ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[1]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 6e 75 6d 00} (length 0x2b)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000240, "./config/cluster/mycluster/node/mynode/num\000", 43);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[2] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {30 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x200000000280, "0\000", 2);
	syscall(__NR_write, /*fd=*/r[2], /*buf=*/0x200000000280ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[2]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 6e 6f 64 65 2f 6d 79 6e 6f 64 65 2f 6c 6f 63 61 6c 00} (length 0x2d)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x2000000002c0, "./config/cluster/mycluster/node/mynode/local\000", 45);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000002c0ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[3] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x200000000300, "1\000", 2);
	syscall(__NR_write, /*fd=*/r[3], /*buf=*/0x200000000300ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[3]);
//  mkdirat arguments: [
//    fd: fd_dir (resource)
//    path: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 00} (length 0x2e)
//    }
//    mode: open_mode = 0x1ff (8 bytes)
//  ]
memcpy((void*)0x200000000340, "./config/cluster/mycluster/heartbeat/myregion\000", 46);
	syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000340ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/0x1fful);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 62 6c 6f 63 6b 5f 62 79 74 65 73 00} (length 0x3a)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000380, "./config/cluster/mycluster/heartbeat/myregion/block_bytes\000", 58);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000380ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[4] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {35 31 32 00} (length 0x4)
//    }
//    count: len = 0x3 (8 bytes)
//  ]
memcpy((void*)0x2000000003c0, "512\000", 4);
	syscall(__NR_write, /*fd=*/r[4], /*buf=*/0x2000000003c0ul, /*count=*/3ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[4]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 62 6c 6f 63 6b 73 00} (length 0x35)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000400, "./config/cluster/mycluster/heartbeat/myregion/blocks\000", 53);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000400ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[5] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {32 35 35 00} (length 0x4)
//    }
//    count: len = 0x3 (8 bytes)
//  ]
memcpy((void*)0x200000000440, "255\000", 4);
	syscall(__NR_write, /*fd=*/r[5], /*buf=*/0x200000000440ul, /*count=*/3ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[5]);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 73 74 61 72 74 5f 62 6c 6f 63 6b 00} (length 0x3a)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000480, "./config/cluster/mycluster/heartbeat/myregion/start_block\000", 58);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000480ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[6] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {31 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x2000000004c0, "1\000", 2);
	syscall(__NR_write, /*fd=*/r[6], /*buf=*/0x2000000004c0ul, /*count=*/1ul);
//  close arguments: [
//    fd: fd (resource)
//  ]
	syscall(__NR_close, /*fd=*/r[6]);
//  mknodat arguments: [
//    dirfd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 6c 6f 6f 70 30 00} (length 0x8)
//    }
//    mode: mknod_mode = 0x61c0 (8 bytes)
//    dev: int32 = 0x700 (4 bytes)
//  ]
memcpy((void*)0x200000000540, "./loop0\000", 8);
	syscall(__NR_mknodat, /*dirfd=*/0xffffff9c, /*file=*/0x200000000540ul, /*mode=S_IFBLK|0x1c0*/0x61c0ul, /*dev=*/0x700);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 6c 6f 6f 70 30 00} (length 0x8)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000540, "./loop0\000", 8);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000540ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[7] = res;
//  ioctl$LOOP_SET_FD arguments: [
//    fd: fd_loop (resource)
//    cmd: const = 0x4c00 (4 bytes)
//    arg: fd (resource)
//  ]
	syscall(__NR_ioctl, /*fd=*/r[7], /*cmd=*/0x4c00, /*arg=*/(intptr_t)-1);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 63 6f 6e 66 69 67 2f 63 6c 75 73 74 65 72 2f 6d 79 63 6c 75 73 74 65 72 2f 68 65 61 72 74 62 65 61 74 2f 6d 79 72 65 67 69 6f 6e 2f 64 65 76 00} (length 0x32)
//    }
//    flags: open_flags = 0x2 (4 bytes)
//    mode: open_mode = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000580, "./config/cluster/mycluster/heartbeat/myregion/dev\000", 50);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000580ul, /*flags=O_RDWR*/2, /*mode=*/0);
	if (res != -1)
		r[8] = res;
//  write arguments: [
//    fd: fd (resource)
//    buf: ptr[in, buffer] {
//      buffer: {33 00} (length 0x2)
//    }
//    count: len = 0x1 (8 bytes)
//  ]
memcpy((void*)0x2000000005c0, "3\000", 2);
	syscall(__NR_write, /*fd=*/r[8], /*buf=*/0x2000000005c0ul, /*count=*/1ul);
	return 0;
}





8/2 2026/09/28 17:33 llm debugger
3m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13442
							output: 42
							thoughts: 166
						

Thoughts:
**Debugging a Kernel Crash in OCFS2 Heartbeat Code**

Okay, here's what I'm seeing: we have a nasty kernel crash, and it's happening inside `put_page_testzero`. The call stack looks like `put_page_testzero` is being called from `___free_pages`, which is in turn triggered by `o2hb_unmap_slot_data`, which itself is coming from `o2hb_region_dev_store`. The kernel is throwing a `BUG` at `include/linux/mm.h:1846!`.

Given the OCFS2 context, and the nature of the crash, my gut feeling is that we've got a memory management issue in the heartbeat code. Let's start by digging into `fs/ocfs2/cluster/heartbeat.c`, specifically around the `o2hb_unmap_slot_data` function. That seems like the most likely entry point given the call stack.

Ah, right, `put_page_testzero` is an inline function defined in `include/linux/mm.h`. That makes debugging a little trickier, but it doesn't change the fact that we're seeing a problem. Now I need to check `fs/ocfs2/cluster/heartbeat.c:1592`. Let's see what's happening there!



9/2 2026/09/28 17:37 tool grepper
0m Args:
map[Expression:o2hb_unmap_slot_data PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1578=static struct o2hb_region *to_o2hb_region(struct config_item *item)
--
fs/ocfs2/cluster/heartbeat.c-1582-
fs/ocfs2/cluster/heartbeat.c:1583:static void o2hb_unmap_slot_data(struct o2hb_region *reg)
fs/ocfs2/cluster/heartbeat.c-1584-{
--
fs/ocfs2/cluster/heartbeat.c=1611=static void o2hb_region_release(struct config_item *item)
--
fs/ocfs2/cluster/heartbeat.c-1618-	o2net_unregister_and_flush_handler_list(&reg->hr_handler_list);
fs/ocfs2/cluster/heartbeat.c:1619:	o2hb_unmap_slot_data(reg);
fs/ocfs2/cluster/heartbeat.c-1620-
--
fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1830-out:
fs/ocfs2/cluster/heartbeat.c:1831:	o2hb_unmap_slot_data(reg);
fs/ocfs2/cluster/heartbeat.c-1832-	return ret;
--
fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-2026-
fs/ocfs2/cluster/heartbeat.c:2027:		o2hb_unmap_slot_data(reg);
fs/ocfs2/cluster/heartbeat.c-2028-
]

10/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14455
							output: 41
							thoughts: 31
						

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

**Diving into `o2hb_unmap_slot_data`**

Alright, let's get down to brass tacks. I'm thinking about `o2hb_unmap_slot_data` function. That's in `fs/ocfs2/cluster/heartbeat.c`, right? Right. So I need to refresh my memory on the intricacies of the heartbeat process within OCFS2, specifically how it handles slot deallocation. This function is crucial, of course, because it's responsible for safely and correctly removing metadata associated with a node's heartbeat slot when that node is, for whatever reason, leaving the cluster, or perhaps going offline. We've got to ensure the shared resources are cleaned up properly to avoid corruption or stale data. Now, let's see what's what. I'm going to quickly skim the surrounding code for any potential race conditions or locking issues that I may have overlooked during previous reviews. I'll pay close attention to the interaction with the recovery process because this part is always challenging.



11/2 2026/09/28 17:37 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1580 LineCount:40]

Results:
map[Contents:1580:		return item ? container_of(item, struct o2hb_region, hr_item) : NULL;
1581:	}
1582:	
1583:	static void o2hb_unmap_slot_data(struct o2hb_region *reg)
1584:	{
1585:		int i;
1586:		struct page *page;
1587:	
1588:		if (reg->hr_slot_data) {
1589:			for (i = 0; i < reg->hr_num_pages; i++) {
1590:				page = reg->hr_slot_data[i];
1591:				if (page) {
1592:					__free_page(page);
1593:					reg->hr_slot_data[i] = NULL;
1594:				}
1595:			}
1596:			kfree(reg->hr_slot_data);
1597:			reg->hr_slot_data = NULL;
1598:		}
1599:	
1600:		kfree(reg->hr_slots);
1601:		reg->hr_slots = NULL;
1602:	
1603:		kfree(reg->hr_tmp_block);
1604:		reg->hr_tmp_block = NULL;
1605:	}
1606:	
1607:	/* drop_item only drops its ref after killing the thread, nothing should
1608:	 * be using the region anymore.  this has to clean up any state that
1609:	 * attributes might have built up.
1610:	 */
1611:	static void o2hb_region_release(struct config_item *item)
1612:	{
1613:		struct o2hb_region *reg = to_o2hb_region(item);
1614:	
1615:		mlog(ML_HEARTBEAT, "hb region release (%pg)\n", reg_bdev(reg));
1616:	
1617:		o2hb_quiesce_timeout(reg);
1618:		o2net_unregister_and_flush_handler_list(&reg->hr_handler_list);
1619:		o2hb_unmap_slot_data(reg);
]

12/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15396
							output: 37
							thoughts: 43
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in the weeds of debugging a kernel-level memory management issue, as requested:

**Deconstructing a Kernel Memory Corruption Crash**

Alright, the crash is pinpointed at `__free_page(page)` within the `o2hb_unmap_slot_data` function. That's a classic sign of double-freeing or corrupt metadata. Now, I need to figure out how `reg->hr_slot_data` is being populated. This likely holds the pointer that's being improperly released, or at least, the metadata associated with it. My focus shifts to tracing the path of that `reg->hr_slot_data` variable. I need to understand where the memory pointed to by the structure is allocated and, crucially, *when* and *how* it's deallocated, because that's where the bug must be. Time to dig into the call stacks and variable traces. It's probably a race condition, or some subtle off-by-one error in my memory management logic, but I can't be sure yet. Let's see if the allocation of the slot data has a corresponding free operation. That's the first step.



13/2 2026/09/28 17:37 tool grepper
0m Args:
map[Expression:hr_slot_data PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=203=struct o2hb_region {
--
fs/ocfs2/cluster/heartbeat.c-225-
fs/ocfs2/cluster/heartbeat.c:226:	struct page             **hr_slot_data;
fs/ocfs2/cluster/heartbeat.c-227-	struct file		*hr_bdev_file;
--
fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-600-		current_page = cs / spp;
fs/ocfs2/cluster/heartbeat.c:601:		page = reg->hr_slot_data[current_page];
fs/ocfs2/cluster/heartbeat.c-602-
--
fs/ocfs2/cluster/heartbeat.c=642=static int o2hb_issue_node_write(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-668-
fs/ocfs2/cluster/heartbeat.c:669:	page = reg->hr_slot_data[slot / spp];
fs/ocfs2/cluster/heartbeat.c-670-	vec_start = (slot << bits) % PAGE_SIZE;
--
fs/ocfs2/cluster/heartbeat.c=1583=static void o2hb_unmap_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1587-
fs/ocfs2/cluster/heartbeat.c:1588:	if (reg->hr_slot_data) {
fs/ocfs2/cluster/heartbeat.c-1589-		for (i = 0; i < reg->hr_num_pages; i++) {
fs/ocfs2/cluster/heartbeat.c:1590:			page = reg->hr_slot_data[i];
fs/ocfs2/cluster/heartbeat.c-1591-			if (page) {
fs/ocfs2/cluster/heartbeat.c-1592-				__free_page(page);
fs/ocfs2/cluster/heartbeat.c:1593:				reg->hr_slot_data[i] = NULL;
fs/ocfs2/cluster/heartbeat.c-1594-			}
fs/ocfs2/cluster/heartbeat.c-1595-		}
fs/ocfs2/cluster/heartbeat.c:1596:		kfree(reg->hr_slot_data);
fs/ocfs2/cluster/heartbeat.c:1597:		reg->hr_slot_data = NULL;
fs/ocfs2/cluster/heartbeat.c-1598-	}
--
fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1801-
fs/ocfs2/cluster/heartbeat.c:1802:	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
fs/ocfs2/cluster/heartbeat.c:1803:	if (!reg->hr_slot_data)
fs/ocfs2/cluster/heartbeat.c-1804-		goto out;
--
fs/ocfs2/cluster/heartbeat.c-1810-
fs/ocfs2/cluster/heartbeat.c:1811:		reg->hr_slot_data[i] = page;
fs/ocfs2/cluster/heartbeat.c-1812-
]

14/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16714
							output: 41
							thoughts: 27
						

Thoughts:
Okay, here's my take on those two data structures, thinking as an expert in this field:

**Diving into the Data Structures: `o2hb_map_slot_data` and `o2hb_region_dev_store`**

Alright, let's pull up the mental schematic of the O2 Heartbeat code and see what we're dealing with. I need to get a clear picture of these structures. The names alone are fairly descriptive, but I need to understand their roles within the broader architecture.

First, `o2hb_map_slot_data`. This screams "map" and "slot," so I'm immediately thinking of a key-value store, probably with a fixed number of slots to manage some kind of replicated heartbeat data for a specific O2 resource. The "data" part implies the *content* of the heartbeat, likely timestamps, statuses, or some kind of versioning info for the resource state. Given it's within the heartbeat context, it would need to be frequently updated and efficiently accessed. Is this structure local to a particular node in a cluster, or is it designed for cross-node sharing? That's what I want to know. I'm suspecting that it is per node but shared in a distributed manner via other mechanisms.

Next, `o2hb_region_dev_store`. This sounds broader, "region" suggesting a larger scope than a single "slot". "Dev" hints at being related to a device or a low-level resource. "Store" confirms some kind of persistent mechanism. So, is this *the* device store for O2, managing persistent device metadata for heartbeats? Maybe it tracks physical device information that is used for the heartbeat. Is this the place where resource configurations, or even the device's persistent state, is kept? This probably contains a collection of persistent metadata about a particular device, and how the O2 system interacts with it. This is probably related to heartbeats regarding device availability.
Is it a more general store that is used across devices? That is an important question. I really need to know the scope of this one. It's likely involved in keeping track of vital information necessary for cluster operation and recovery. I'd need to examine how these structures interact and are accessed; how they’re protected by locks, what kind of concurrency control is in place, and how the data is handled. A deep dive is needed to fully grok the implications!



15/2 2026/09/28 17:37 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1772 LineCount:50]

Results:
map[Contents:1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
1774:		int i, j;
1775:		int ret = -ENOMEM;
1776:		unsigned int last_slot;
1777:		unsigned int spp = reg->hr_slots_per_page;
1778:		struct page *page;
1779:		char *raw;
1780:		struct o2hb_disk_slot *slot;
1781:	
1782:		reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
1783:		if (!reg->hr_tmp_block)
1784:			goto out;
1785:	
1786:		reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
1787:		if (!reg->hr_slots)
1788:			goto out;
1789:	
1790:		for (i = 0; i < reg->hr_blocks; i++) {
1791:			slot = &reg->hr_slots[i];
1792:			slot->ds_node_num = i;
1793:			INIT_LIST_HEAD(&slot->ds_live_item);
1794:			slot->ds_raw_block = NULL;
1795:		}
1796:	
1797:		reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
1798:		mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
1799:				   "at %u blocks per page\n",
1800:		     reg->hr_num_pages, reg->hr_blocks, spp);
1801:	
1802:		reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
1803:		if (!reg->hr_slot_data)
1804:			goto out;
1805:	
1806:		for (i = 0; i < reg->hr_num_pages; i++) {
1807:			page = alloc_page(GFP_KERNEL);
1808:			if (!page)
1809:				goto out;
1810:	
1811:			reg->hr_slot_data[i] = page;
1812:	
1813:			last_slot = i * spp;
1814:			raw = page_address(page);
1815:			for (j = 0;
1816:			     (j < spp) && ((j + last_slot) < reg->hr_blocks);
1817:			     j++) {
1818:				BUG_ON((j + last_slot) >= reg->hr_blocks);
1819:	
1820:				slot = &reg->hr_slots[j + last_slot];
1821:				slot->ds_raw_block =
]

16/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18122
							output: 41
							thoughts: 28
						

Thoughts:
Okay, here's my interpretation of what's going through my mind as I approach this code.

**Diving Deeper into Data Structures**

Alright, time to dig back in. I'm going to keep my focus on the data structures associated with `o2hb_map_slot_data` and `o2hb_region_dev_store`. My expertise tells me that these are likely core components within the heart beat mechanism, and they almost certainly hold critical information regarding the mapping of regions and their associated devices within the O2 (or whatever context we're in). I need to understand how these structures relate to each other, how they are populated, and how they are used, so I can understand the underlying algorithm and reasoning behind the heartbeat management. I'm specifically looking for any hints on locking, data consistency and synchronization, along with any error handling implications. I expect to be able to ascertain how devices and regions are represented at a low level.



17/2 2026/09/28 17:37 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1822 LineCount:50]

Results:
map[Contents:1822:					(struct o2hb_disk_heartbeat_block *) raw;
1823:	
1824:				raw += reg->hr_block_bytes;
1825:			}
1826:		}
1827:	
1828:		return 0;
1829:	
1830:	out:
1831:		o2hb_unmap_slot_data(reg);
1832:		return ret;
1833:	}
1834:	
1835:	/* Read in all the slots available and populate the tracking
1836:	 * structures so that we can start with a baseline idea of what's
1837:	 * there. */
1838:	static int o2hb_populate_slot_data(struct o2hb_region *reg)
1839:	{
1840:		int ret, i;
1841:		struct o2hb_disk_slot *slot;
1842:		struct o2hb_disk_heartbeat_block *hb_block;
1843:	
1844:		ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
1845:		if (ret)
1846:			goto out;
1847:	
1848:		/* We only want to get an idea of the values initially in each
1849:		 * slot, so we do no verification - o2hb_check_slot will
1850:		 * actually determine if each configured slot is valid and
1851:		 * whether any values have changed. */
1852:		for(i = 0; i < reg->hr_blocks; i++) {
1853:			slot = &reg->hr_slots[i];
1854:			hb_block = (struct o2hb_disk_heartbeat_block *) slot->ds_raw_block;
1855:	
1856:			/* Only fill the values that o2hb_check_slot uses to
1857:			 * determine changing slots */
1858:			slot->ds_last_time = le64_to_cpu(hb_block->hb_seq);
1859:			slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation);
1860:		}
1861:	
1862:	out:
1863:		return ret;
1864:	}
1865:	
1866:	/*
1867:	 * this is acting as commit; we set up all of hr_bdev_file and hr_task or
1868:	 * nothing
1869:	 */
1870:	static ssize_t o2hb_region_dev_store(struct config_item *item,
1871:					     const char *page,
]

18/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19149
							output: 42
							thoughts: 15
						

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

**Analyzing the `o2hb_region_dev_store`**

Alright, let's dive into this. The initial thought, "Let's read `o2hb_region_dev_store`," signals an intent to understand a specific component, likely within an O2HB (Object-to-Hardware Bridge) context. The designation "region_dev_store" strongly suggests this element pertains to device-specific storage or a region-based memory management strategy for device resources, which I'll immediately start correlating with my existing knowledge of O2HB architectures. I'm already anticipating a discussion of memory mapping, cache coherency, and potentially DMA interaction if this is hardware-accelerated. The "dev" implies it's either an early implementation, a development environment module, or specifically used for device interactions. My priority will be pinpointing its location within the entire architecture to understand where it fits in the hierarchy. I'll need to determine its dependencies, its purpose, and its influence over other processes. My goal is to figure out whether it is related to a device driver, configuration interface, or a storage layer. I would be looking for the structure definitions, data structures, and associated operations to get a better idea of how it functions. The context of O2HB will be key. Time to get started.



19/2 2026/09/28 17:37 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1872 LineCount:100]

Results:
map[Contents:1872:					     size_t count)
1873:	{
1874:		struct o2hb_region *reg = to_o2hb_region(item);
1875:		struct task_struct *hb_task;
1876:		long fd;
1877:		int sectsize;
1878:		char *p = (char *)page;
1879:		ssize_t ret = -EINVAL;
1880:		int live_threshold;
1881:	
1882:		if (reg->hr_bdev_file)
1883:			return -EINVAL;
1884:	
1885:		/* We can't heartbeat without having had our node number
1886:		 * configured yet. */
1887:		reg->hr_node_num = o2nm_this_node();
1888:		if (reg->hr_node_num == O2NM_MAX_NODES)
1889:			return -EINVAL;
1890:	
1891:		ret = kstrtol(p, 0, &fd);
1892:		if (ret < 0)
1893:			return -EINVAL;
1894:	
1895:		if (fd < 0 || fd >= INT_MAX)
1896:			return -EINVAL;
1897:	
1898:		CLASS(fd, f)(fd);
1899:		if (fd_empty(f))
1900:			return -EINVAL;
1901:	
1902:		if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
1903:		    reg->hr_block_bytes == 0)
1904:			return -EINVAL;
1905:	
1906:		if (!S_ISBLK(fd_file(f)->f_mapping->host->i_mode))
1907:			return -EINVAL;
1908:	
1909:		reg->hr_bdev_file = bdev_file_open_by_dev(fd_file(f)->f_mapping->host->i_rdev,
1910:				BLK_OPEN_WRITE | BLK_OPEN_READ, NULL, NULL);
1911:		if (IS_ERR(reg->hr_bdev_file)) {
1912:			ret = PTR_ERR(reg->hr_bdev_file);
1913:			reg->hr_bdev_file = NULL;
1914:			return ret;
1915:		}
1916:	
1917:		sectsize = bdev_logical_block_size(reg_bdev(reg));
1918:		if (sectsize != reg->hr_block_bytes) {
1919:			mlog(ML_ERROR,
1920:			     "blocksize %u incorrect for device, expected %d",
1921:			     reg->hr_block_bytes, sectsize);
1922:			ret = -EINVAL;
1923:			goto out;
1924:		}
1925:	
1926:		reg->hr_aborted_start = 0;
1927:		reg->hr_node_deleted = 0;
1928:		o2hb_init_region_params(reg);
1929:	
1930:		/* Generation of zero is invalid */
1931:		do {
1932:			get_random_bytes(&reg->hr_generation,
1933:					 sizeof(reg->hr_generation));
1934:		} while (reg->hr_generation == 0);
1935:	
1936:		ret = o2hb_map_slot_data(reg);
1937:		if (ret) {
1938:			mlog_errno(ret);
1939:			goto out;
1940:		}
1941:	
1942:		ret = o2hb_populate_slot_data(reg);
1943:		if (ret) {
1944:			mlog_errno(ret);
1945:			goto out;
1946:		}
1947:	
1948:		/*
1949:		 * A node is considered live after it has beat LIVE_THRESHOLD
1950:		 * times.  We're not steady until we've given them a chance
1951:		 * _after_ our first read.
1952:		 * The default threshold is bare minimum so as to limit the delay
1953:		 * during mounts. For global heartbeat, the threshold doubled for the
1954:		 * first region.
1955:		 */
1956:		live_threshold = O2HB_LIVE_THRESHOLD;
1957:		if (o2hb_global_heartbeat_active()) {
1958:			spin_lock(&o2hb_live_lock);
1959:			if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1)
1960:				live_threshold <<= 1;
1961:			spin_unlock(&o2hb_live_lock);
1962:		}
1963:		++live_threshold;
1964:		atomic_set(&reg->hr_steady_iterations, live_threshold);
1965:		/* unsteady_iterations is triple the steady_iterations */
1966:		atomic_set(&reg->hr_unsteady_iterations, (live_threshold * 3));
1967:		o2hb_set_region_stopping(reg, false);
1968:	
1969:		hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
1970:				      reg->hr_item.ci_name);
1971:		if (IS_ERR(hb_task)) {
]

20/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21072
							output: 41
							thoughts: 126
						

Thoughts:
Okay, let me think this through.

**Analyzing the Memory Allocation and Deallocation in `o2hb`**

Alright, so `o2hb_map_slot_data` allocates both `reg->hr_slot_data` and `reg->hr_num_pages` worth of memory. Essentially, we're talking about multiple pages here, which is significant. Now, if `o2hb_populate_slot_data` bombs out—meaning it encounters an error—it jumps to the `out` label. And that `out` label, importantly, calls `o2hb_unmap_slot_data(reg)`. So, the error path is properly cleaning up.

But here's a subtle point that needs further scrutiny. I need to make sure I'm not overlooking something crucial. Wait, `o2hb_map_slot_data` itself also calls `o2hb_unmap_slot_data(reg)` in *its* failure path. That's good defensive programming, but I need to ensure there are no subtle double-frees or leaks in the error handling. Right, let me go back to `o2hb_map_slot_data` to ensure all paths are covered.



21/2 2026/09/28 17:37 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1772 LineCount:65]

Results:
map[Contents:1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
1774:		int i, j;
1775:		int ret = -ENOMEM;
1776:		unsigned int last_slot;
1777:		unsigned int spp = reg->hr_slots_per_page;
1778:		struct page *page;
1779:		char *raw;
1780:		struct o2hb_disk_slot *slot;
1781:	
1782:		reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
1783:		if (!reg->hr_tmp_block)
1784:			goto out;
1785:	
1786:		reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
1787:		if (!reg->hr_slots)
1788:			goto out;
1789:	
1790:		for (i = 0; i < reg->hr_blocks; i++) {
1791:			slot = &reg->hr_slots[i];
1792:			slot->ds_node_num = i;
1793:			INIT_LIST_HEAD(&slot->ds_live_item);
1794:			slot->ds_raw_block = NULL;
1795:		}
1796:	
1797:		reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
1798:		mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
1799:				   "at %u blocks per page\n",
1800:		     reg->hr_num_pages, reg->hr_blocks, spp);
1801:	
1802:		reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
1803:		if (!reg->hr_slot_data)
1804:			goto out;
1805:	
1806:		for (i = 0; i < reg->hr_num_pages; i++) {
1807:			page = alloc_page(GFP_KERNEL);
1808:			if (!page)
1809:				goto out;
1810:	
1811:			reg->hr_slot_data[i] = page;
1812:	
1813:			last_slot = i * spp;
1814:			raw = page_address(page);
1815:			for (j = 0;
1816:			     (j < spp) && ((j + last_slot) < reg->hr_blocks);
1817:			     j++) {
1818:				BUG_ON((j + last_slot) >= reg->hr_blocks);
1819:	
1820:				slot = &reg->hr_slots[j + last_slot];
1821:				slot->ds_raw_block =
1822:					(struct o2hb_disk_heartbeat_block *) raw;
1823:	
1824:				raw += reg->hr_block_bytes;
1825:			}
1826:		}
1827:	
1828:		return 0;
1829:	
1830:	out:
1831:		o2hb_unmap_slot_data(reg);
1832:		return ret;
1833:	}
1834:	
1835:	/* Read in all the slots available and populate the tracking
1836:	 * structures so that we can start with a baseline idea of what's
]

22/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22505
							output: 41
							thoughts: 61
						

Thoughts:
Okay, let's break this down.

**Investigating the Dependency of `reg->hr_num_pages` on `reg->hr_slots_per_page`**

Right, so `reg->hr_slots_per_page` plays a key role in the calculation of `reg->hr_num_pages`. My immediate concern is, where exactly is that crucial variable, `reg->hr_slots_per_page`, being initialized? It’s fundamental to understand its value to grasp the derived `hr_num_pages`. The logic around this relationship is important for the overall performance, and it's key to identify any potential issues in the setup. Let's trace it back to its source. My first hunch is that it's initialized within the region parameter initialization function. Let's jump into `o2hb_init_region_params(reg)` and see what's going on there.



23/2 2026/09/28 17:37 tool grepper
0m Args:
map[Expression:o2hb_init_region_params PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1749=static ssize_t o2hb_region_dev_show(struct config_item *item, char *page)
--
fs/ocfs2/cluster/heartbeat.c-1758-
fs/ocfs2/cluster/heartbeat.c:1759:static void o2hb_init_region_params(struct o2hb_region *reg)
fs/ocfs2/cluster/heartbeat.c-1760-{
--
fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1927-	reg->hr_node_deleted = 0;
fs/ocfs2/cluster/heartbeat.c:1928:	o2hb_init_region_params(reg);
fs/ocfs2/cluster/heartbeat.c-1929-
]

24/2 2026/09/28 17:37 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23064
							output: 41
							thoughts: 15
						

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

**Initial Thoughts on `o2hb_init_region_params`**

Alright, let's dive into `o2hb_init_region_params`. My first instinct is to think about the broader context. "o2hb" likely refers to Oracle to Host Bus, or some similar high-bandwidth interconnect, and the "init_region_params" part screams memory initialization or configuration. I'm immediately picturing the data structures involved, the target hardware, and potential memory layout complexities. Is this for a specific NUMA node, or a more global initialization? What kind of memory are we dealing with – regular DRAM, persistent memory, or something more exotic?

I'm starting to think through the typical parameters. I expect to see things like:

*   **Base address(es):** Where in the physical or virtual address space this region will reside.
*   **Size:** The overall amount of memory allocated.
*   **Permissions:** Read/write/execute flags, caching attributes, memory coherency settings.
*   **Alignment requirements:** Are we dealing with page boundaries, cache line boundaries, or something more specific?
*   **Error handling mechanisms:** Parity, ECC, or some other reliability features.
*   **Device-specific registers:** Configuration settings passed to the hardware controller.
*   **Interrupt vectors:** if applicable

I'm also wondering about the intended use of this region. Is it for DMA buffers, shared memory, kernel data structures, or something else entirely? The intended usage greatly impacts which parameters would be relevant. I need to keep this in mind as I start to parse the code. Any interaction with hardware implies considering how the CPU or accelerator is configured, and any interactions with software will be linked to associated data structures.



25/2 2026/09/28 17:38 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1759 LineCount:15]

Results:
map[Contents:1759:	static void o2hb_init_region_params(struct o2hb_region *reg)
1760:	{
1761:		reg->hr_slots_per_page = PAGE_SIZE >> reg->hr_block_bits;
1762:		reg->hr_timeout_ms = O2HB_REGION_TIMEOUT_MS;
1763:	
1764:		mlog(ML_HEARTBEAT, "hr_start_block = %llu, hr_blocks = %u\n",
1765:		     reg->hr_start_block, reg->hr_blocks);
1766:		mlog(ML_HEARTBEAT, "hr_block_bytes = %u, hr_block_bits = %u\n",
1767:		     reg->hr_block_bytes, reg->hr_block_bits);
1768:		mlog(ML_HEARTBEAT, "hr_timeout_ms = %u\n", reg->hr_timeout_ms);
1769:		mlog(ML_HEARTBEAT, "dead threshold = %u\n", o2hb_dead_threshold);
1770:	}
1771:	
1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
]

26/2 2026/09/28 17:38 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23868
							output: 37
							thoughts: 37
						

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

**Tracing Down a Variable's Definition**

Okay, so I see `reg->hr_block_bits` is being used. That immediately sets off a flag. I need to understand where this thing is being initialized, because if it's not set correctly, the whole thing could be garbage. Right, so I need to find the source. Let's see... the most likely place, given the name, is probably related to the *o2hb* subsystem or something related to handling the region's block sizes, and *hb* meaning "heartbeat" is highly likely. I'll start by checking where `o2hb_region_block_bytes_store` is defined, since that seems like the most logical location for a setting that should influence the number of bits in a block. That should give me the initial value, or at least the process that sets the value. From there, I can trace back if necessary.



27/2 2026/09/28 17:38 tool grepper
0m Args:
map[Expression:hr_block_bits PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=203=struct o2hb_region {
--
fs/ocfs2/cluster/heartbeat.c-219-
fs/ocfs2/cluster/heartbeat.c:220:	unsigned int		hr_block_bits;
fs/ocfs2/cluster/heartbeat.c-221-	unsigned int		hr_block_bytes;
--
fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-579-	unsigned int vec_len, vec_start;
fs/ocfs2/cluster/heartbeat.c:580:	unsigned int bits = reg->hr_block_bits;
fs/ocfs2/cluster/heartbeat.c-581-	unsigned int spp = reg->hr_slots_per_page;
--
fs/ocfs2/cluster/heartbeat.c=642=static int o2hb_issue_node_write(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-645-	unsigned int slot;
fs/ocfs2/cluster/heartbeat.c:646:	unsigned int bits = reg->hr_block_bits;
fs/ocfs2/cluster/heartbeat.c-647-	unsigned int spp = reg->hr_slots_per_page;
--
fs/ocfs2/cluster/heartbeat.c=1670=static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1687-	reg->hr_block_bytes = (unsigned int)block_bytes;
fs/ocfs2/cluster/heartbeat.c:1688:	reg->hr_block_bits = block_bits;
fs/ocfs2/cluster/heartbeat.c-1689-
--
fs/ocfs2/cluster/heartbeat.c=1759=static void o2hb_init_region_params(struct o2hb_region *reg)
fs/ocfs2/cluster/heartbeat.c-1760-{
fs/ocfs2/cluster/heartbeat.c:1761:	reg->hr_slots_per_page = PAGE_SIZE >> reg->hr_block_bits;
fs/ocfs2/cluster/heartbeat.c-1762-	reg->hr_timeout_ms = O2HB_REGION_TIMEOUT_MS;
--
fs/ocfs2/cluster/heartbeat.c-1765-	     reg->hr_start_block, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c:1766:	mlog(ML_HEARTBEAT, "hr_block_bytes = %u, hr_block_bits = %u\n",
fs/ocfs2/cluster/heartbeat.c:1767:	     reg->hr_block_bytes, reg->hr_block_bits);
fs/ocfs2/cluster/heartbeat.c-1768-	mlog(ML_HEARTBEAT, "hr_timeout_ms = %u\n", reg->hr_timeout_ms);
]

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

Tokens:
							input: 24984
							output: 41
							thoughts: 17
						

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

**Analyzing the o2hb_region_block_bytes_store**

Alright, let's dive into this `o2hb_region_block_bytes_store`. My initial thought is to immediately understand its function. Given the naming convention – "o2hb," likely referencing a specific system or library – this looks like a critical component for managing byte storage related to an "o2hb region" or memory segment within a specific system. I'm immediately trying to connect this to the overall architecture I'm familiar with. Is this for on-disk persistence, in-memory caching, inter-process communication, or something else entirely? The "block_bytes" part points towards a fundamental data structure - potentially a dedicated store for physical storage of byte chunks within the "region."

I'll be looking to identify what kind of access patterns this data structure supports. Is it append-only, random access, or something more complex? I need to understand its relationship to the surrounding memory management framework. Are there any potential implications for performance, scalability, or data consistency? And since it's a store, I'm expecting some indexing mechanisms, or at least a structure which allows for location-based storage.

The "bytes" part is significant as it tells me that it’s likely a low-level block that operates on bytes, without knowing or caring about the data it contains. This suggests a focus on raw data transfer and storage efficiency. I'll need to look at how these byte stores are composed to understand how the system manages larger objects and how these blocks are ultimately handled. Time to dig in!



29/2 2026/09/28 17:38 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1670 LineCount:25]

Results:
map[Contents:1670:	static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
1671:						     const char *page,
1672:						     size_t count)
1673:	{
1674:		struct o2hb_region *reg = to_o2hb_region(item);
1675:		int status;
1676:		unsigned long block_bytes;
1677:		unsigned int block_bits;
1678:	
1679:		if (reg->hr_bdev_file)
1680:			return -EINVAL;
1681:	
1682:		status = o2hb_read_block_input(reg, page, &block_bytes,
1683:					       &block_bits);
1684:		if (status)
1685:			return status;
1686:	
1687:		reg->hr_block_bytes = (unsigned int)block_bytes;
1688:		reg->hr_block_bits = block_bits;
1689:	
1690:		return count;
1691:	}
1692:	
1693:	static ssize_t o2hb_region_start_block_show(struct config_item *item,
1694:						    char *page)
]

30/2 2026/09/28 17:38 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25770
							output: 41
							thoughts: 15
						

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

**Analyzing the o2hb_read_block_input Function**

Alright, let's dive into this `o2hb_read_block_input` function. My initial thought process is to understand its role. Based on the naming, it seems to be involved in reading block input, likely related to some form of I/O within the system. The "o2hb" prefix immediately suggests this is within the context of some oxygen-based project or module – a memory manager, perhaps, or related to some low-level hardware interaction or buffering.

I’m immediately looking for context. What layer is this in? What's the surrounding code doing? Is it part of a driver, a file system, or perhaps a custom block device handler? The "read_block_input" portion suggests data is being read from a block-oriented device – a disk, flash, or even a virtual block device. I need to understand the characteristics of that block. Its size? How the buffer is handled? What are the error handling mechanisms? What is the input type - what kind of structures are being expected or produced by the data in this call?

I'm mentally stepping through potential scenarios. Is it a synchronous or asynchronous read? Are there any concurrency considerations here? What locking mechanisms, if any, are in place to protect the data being read, or the I/O operation itself? Are we dealing with cached data, or raw device access?

Finally, are there any potential security implications? Are we validating the input parameters? Could this function be a potential vulnerability point, leading to buffer overflows, denial of service, or other security exploits? And, of course, does the context inform anything about the implementation - the structure, error handling, etc. - in the case that the context is not immediately obvious.



31/2 2026/09/28 17:38 tool grepper
0m Args:
map[Expression:o2hb_read_block_input PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1611=static void o2hb_region_release(struct config_item *item)
--
fs/ocfs2/cluster/heartbeat.c-1636-
fs/ocfs2/cluster/heartbeat.c:1637:static int o2hb_read_block_input(struct o2hb_region *reg,
fs/ocfs2/cluster/heartbeat.c-1638-				 const char *page,
--
fs/ocfs2/cluster/heartbeat.c=1670=static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1681-
fs/ocfs2/cluster/heartbeat.c:1682:	status = o2hb_read_block_input(reg, page, &block_bytes,
fs/ocfs2/cluster/heartbeat.c-1683-				       &block_bits);
]

32/2 2026/09/28 17:38 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26493
							output: 41
							thoughts: 15
						

Thoughts:
Okay, let's dive into this code.

**Diving into `o2hb_read_block_input`**

Alright, I see we're looking at `o2hb_read_block_input`. This function's name suggests it's involved in reading data, probably in blocks, and it's likely related to the O2 (or whatever `o2hb` stands for) heartbeat mechanism. This immediately sets my expectations: I'm looking for how this handles I/O, error conditions, and potentially buffering. I'll need to pay close attention to the data structures involved, what kind of locking (if any) is present, and how it interacts with the underlying storage layer, or network. The name implies it is reading input, so I'll be looking for where the data is coming from and what it is trying to read. Is it reading a file? From the network? I'll be looking for clues in the function's parameters and internal logic. Let's see how it handles those read operations and how it copes with failures or partial reads. Hopefully, it is well-written and handles errors gracefully!



33/2 2026/09/28 17:38 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1637 LineCount:30]

Results:
map[Contents:1637:	static int o2hb_read_block_input(struct o2hb_region *reg,
1638:					 const char *page,
1639:					 unsigned long *ret_bytes,
1640:					 unsigned int *ret_bits)
1641:	{
1642:		unsigned long bytes;
1643:		char *p = (char *)page;
1644:		int ret;
1645:	
1646:		ret = kstrtoul(p, 0, &bytes);
1647:		if (ret)
1648:			return ret;
1649:	
1650:		/* Heartbeat and fs min / max block sizes are the same. */
1651:		if (bytes > 4096 || bytes < 512)
1652:			return -ERANGE;
1653:		if (hweight16(bytes) != 1)
1654:			return -EINVAL;
1655:	
1656:		if (ret_bytes)
1657:			*ret_bytes = bytes;
1658:		if (ret_bits)
1659:			*ret_bits = ffs(bytes) - 1;
1660:	
1661:		return 0;
1662:	}
1663:	
1664:	static ssize_t o2hb_region_block_bytes_show(struct config_item *item,
1665:						    char *page)
1666:	{
]

34/2 2026/09/28 17:38 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27216
							output: 35
							thoughts: 1383
						

Thoughts:
**Analyzing Heartbeat Region Allocation**

Okay, so I'm digging into this heartbeat region setup. It looks like `block_bytes` is the size of each block, a power of two between 512 and 4096 bytes.  That means `block_bits` is between 9 and 12. Then `hr_slots_per_page` gets calculated by shifting the `PAGE_SIZE` right by `hr_block_bits`.  If the `PAGE_SIZE` is the usual 4KB (4096), I'm getting 8 slots per page for 512-byte blocks, or just 1 slot per page if the blocks are 4KB each. I see, but what if `PAGE_SIZE` isn't 4KB? Say it's a larger page size like 64KB?  Then `hr_slots_per_page` would be 128 for 512-byte blocks. That's good to consider for NUMA systems with larger memory pages.

Now, let's go over the slot data mapping function, `o2hb_map_slot_data`. I have to figure out the number of pages needed for the region. The logic divides the number of blocks by the slots per page, taking the ceiling (rounding up). Then it allocates a `struct page **` array to hold the page pointers, and calls `alloc_page` for each page. Each page is mapped and each block is associated with its correct offset within the page. If `alloc_page` fails at any point, it's supposed to jump to the `out` label.  From there, `o2hb_unmap_slot_data` gets called to clean up.

But here's a potential gotcha: `o2hb_unmap_slot_data` will be called twice if `o2hb_map_slot_data` fails. I have to make sure that's safe. It releases pages, frees the `hr_slot_data` array, frees `hr_slots`, and the tmp block. The crucial point is that it sets `reg->hr_slot_data = NULL;` after freeing it. This is probably to account for the possibility of another call.

Checking the code flow, if `o2hb_region_dev_store` fails, it calls `o2hb_unmap_slot_data` again. Okay, but if `o2hb_map_slot_data` fails, it calls `o2hb_unmap_slot_data` and returns to the caller. Then the caller, `o2hb_region_dev_store`, sees a failure and goes to `out`, which *also* calls `o2hb_unmap_slot_data`. But the second call to `o2hb_unmap_slot_data` is safe because `reg->hr_slot_data` is NULL, so it just skips freeing pages. Excellent, so it's handled safely.

What happens if `o2hb_populate_slot_data` fails in the middle of this process?  If it returns an error, `o2hb_region_dev_store` goes to `out`, which, again, triggers `o2hb_unmap_slot_data`. That should clean up everything, setting `hr_slot_data` to NULL. That's important.

So, if I write to the device again after a failure, `hr_bdev_file` will be NULL, so it should proceed with the re-initialization.  It calls `o2hb_init_region_params(reg)` again. The key question is, what happens if `reg->hr_blocks` was changed between these calls? `reg->hr_blocks` is set by `o2hb_region_blocks_store`. That's where I need to focus to ensure a consistent region setup, even after failures. I need to make sure the number of blocks doesn't change after a failed region setup and before a re-init. Okay, I think I've got a handle on the key points to watch.



35/2 2026/09/28 17:38 tool grepper
0m Args:
map[Expression:hr_blocks PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=203=struct o2hb_region {
--
fs/ocfs2/cluster/heartbeat.c-216-
fs/ocfs2/cluster/heartbeat.c:217:	unsigned int		hr_blocks;
fs/ocfs2/cluster/heartbeat.c-218-	unsigned long long	hr_start_block;
--
fs/ocfs2/cluster/heartbeat.c=1262=static int o2hb_thread(void *data)
--
fs/ocfs2/cluster/heartbeat.c-1315-	/* unclean stop is only used in very bad situation */
fs/ocfs2/cluster/heartbeat.c:1316:	for(i = 0; !reg->hr_unclean_stop && i < reg->hr_blocks; i++)
fs/ocfs2/cluster/heartbeat.c-1317-		o2hb_shutdown_slot(&reg->hr_slots[i]);
--
fs/ocfs2/cluster/heartbeat.c=1720=static ssize_t o2hb_region_blocks_show(struct config_item *item, char *page)
fs/ocfs2/cluster/heartbeat.c-1721-{
fs/ocfs2/cluster/heartbeat.c:1722:	return sprintf(page, "%d\n", to_o2hb_region(item)->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1723-}
--
fs/ocfs2/cluster/heartbeat.c=1725=static ssize_t o2hb_region_blocks_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1743-
fs/ocfs2/cluster/heartbeat.c:1744:	reg->hr_blocks = (unsigned int)tmp;
fs/ocfs2/cluster/heartbeat.c-1745-
--
fs/ocfs2/cluster/heartbeat.c=1759=static void o2hb_init_region_params(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1763-
fs/ocfs2/cluster/heartbeat.c:1764:	mlog(ML_HEARTBEAT, "hr_start_block = %llu, hr_blocks = %u\n",
fs/ocfs2/cluster/heartbeat.c:1765:	     reg->hr_start_block, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1766-	mlog(ML_HEARTBEAT, "hr_block_bytes = %u, hr_block_bits = %u\n",
--
fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1785-
fs/ocfs2/cluster/heartbeat.c:1786:	reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1787-	if (!reg->hr_slots)
--
fs/ocfs2/cluster/heartbeat.c-1789-
fs/ocfs2/cluster/heartbeat.c:1790:	for (i = 0; i < reg->hr_blocks; i++) {
fs/ocfs2/cluster/heartbeat.c-1791-		slot = &reg->hr_slots[i];
--
fs/ocfs2/cluster/heartbeat.c-1796-
fs/ocfs2/cluster/heartbeat.c:1797:	reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
fs/ocfs2/cluster/heartbeat.c-1798-	mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
fs/ocfs2/cluster/heartbeat.c-1799-			   "at %u blocks per page\n",
fs/ocfs2/cluster/heartbeat.c:1800:	     reg->hr_num_pages, reg->hr_blocks, spp);
fs/ocfs2/cluster/heartbeat.c-1801-
--
fs/ocfs2/cluster/heartbeat.c-1815-		for (j = 0;
fs/ocfs2/cluster/heartbeat.c:1816:		     (j < spp) && ((j + last_slot) < reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1817-		     j++) {
fs/ocfs2/cluster/heartbeat.c:1818:			BUG_ON((j + last_slot) >= reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1819-
--
fs/ocfs2/cluster/heartbeat.c=1838=static int o2hb_populate_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1843-
fs/ocfs2/cluster/heartbeat.c:1844:	ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1845-	if (ret)
--
fs/ocfs2/cluster/heartbeat.c-1851-	 * whether any values have changed. */
fs/ocfs2/cluster/heartbeat.c:1852:	for(i = 0; i < reg->hr_blocks; i++) {
fs/ocfs2/cluster/heartbeat.c-1853-		slot = &reg->hr_slots[i];
--
fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1901-
fs/ocfs2/cluster/heartbeat.c:1902:	if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
fs/ocfs2/cluster/heartbeat.c-1903-	    reg->hr_block_bytes == 0)
]

36/2 2026/09/28 17:38 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31163
							output: 42
							thoughts: 1886
						

Thoughts:
**Analyzing the O2HB Region Device Store and Unmapping Logic**

Okay, let's break this down. My initial thought process is centered around how `o2hb_unmap_slot_data` works in conjunction with `o2hb_map_slot_data` and potential failure scenarios within `o2hb_region_dev_store`.

First, I looked at the straightforward unmapping function, `o2hb_unmap_slot_data`. It iterates through allocated pages in `reg->hr_slot_data`, frees them using `__free_page`, and then frees the `hr_slot_data` array itself. The key is that `hr_slot_data` can be `NULL` if allocation fails.

Now, if `o2hb_map_slot_data` fails, I see that it calls `o2hb_unmap_slot_data`. The question is *when* does it call it, and under what conditions does this protection hold? If `kzalloc_objs` fails to zero allocate `reg->hr_slot_data`, it will call `o2hb_unmap_slot_data` with a `NULL` pointer, which is safe. If `alloc_page` fails, it *might* call it with some pages allocated. Because `kzalloc_objs` zeroes the memory, it will only free the allocated pages and leave the remaining pages alone. This is correct.

I start thinking about `o2hb_region_dev_store`, and the case where `o2hb_map_slot_data` succeeds, but `o2hb_populate_slot_data` fails. The code goes to the `out` label, which calls `o2hb_unmap_slot_data(reg)`. This should clean up the allocated pages, and set `reg->hr_slot_data` to `NULL`, which is what you would expect. But, does it also reset `reg->hr_num_pages`? No. That is the key!

Now, the potential issue becomes clear. If the user then changes the number of blocks to a SMALLER value, and calls `o2hb_region_dev_store` again, `o2hb_map_slot_data` will be called, *but* the old `hr_num_pages` from the *larger* configuration remains. That's a problem, and this is where the bug *might* exist. 

What happens if `o2hb_map_slot_data` fails *before* updating `hr_num_pages`? This looks like a race condition!

Looking at the code for `o2hb_map_slot_data`, I see a path where `kmalloc` for `hr_tmp_block` might fail. This calls `o2hb_unmap_slot_data`. Since this is a failure after `o2hb_region_dev_store` has been run and cleaned up, `reg->hr_slot_data` is `NULL`, which is safe.

Now, I analyze what happens when everything succeeds: `o2hb_map_slot_data`, `o2hb_populate_slot_data`, and the thread is started. Then `o2hb_region_release` is called, which in turn calls `o2hb_unmap_slot_data`. But `o2hb_region_release` is called when the configfs item is dropped, meaning `reg->hr_slot_data` is freed, *but* not `hr_num_pages`. The same problem exists as the failing scenario. It's not possible to call `o2hb_unmap_slot_data` again, because the item is being released.

Finally, I'm examining a syzkaller reproducer to see how the code is invoked. It looks like we are trying to set up a loop device, set some parameters, and attempt to write to `dev` with `fd=3`. The error will be on the line `write 3 to dev` since the file descriptor `3` is not valid. The `ioctl LOOP_SET_FD` seems to be the culprit. I need to trace `o2hb_region_dev_store` with the loop device.

Okay, I've got a much clearer understanding now. It seems that the failure to reset `reg->hr_num_pages` after a successful region store, followed by a failure and a smaller block count, coupled with the cleanup logic, is the most likely location of a bug. I need to focus my debugging on the interactions between `o2hb_map_slot_data`, `o2hb_unmap_slot_data`, and `o2hb_region_dev_store`, specifically when block sizes are changed.


37/2 2026/09/28 17:39 tool grepper
0m Args:
map[Expression:bdev_file_open_by_dev PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1908-
fs/ocfs2/cluster/heartbeat.c:1909:	reg->hr_bdev_file = bdev_file_open_by_dev(fd_file(f)->f_mapping->host->i_rdev,
fs/ocfs2/cluster/heartbeat.c-1910-			BLK_OPEN_WRITE | BLK_OPEN_READ, NULL, NULL);
]

38/2 2026/09/28 17:39 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34283
							output: 39
							thoughts: 173
						

Thoughts:
**Analyzing the Block Device Initialization**

Okay, so I'm digging into this code and I've got a potential flow I need to unravel. It looks like `bdev_file_open_by_dev` *might* be successful, and that's the crucial first step. If that works, then the code calls `bdev_logical_block_size(reg_bdev(reg))`. That feels right, ensuring we have the block size before proceeding.

Now, if *that* call succeeds, things get interesting; the execution flow jumps to `o2hb_map_slot_data`. If *that* succeeds, it moves on to `o2hb_populate_slot_data`. And then, within `o2hb_populate_slot_data`, we hit `o2hb_read_slots`. This is where I'm starting to get concerned, because *this* is the function that actually reads from the block device.

My concern stems from a potential failure scenario. Specifically, if the block device isn't properly set up (e.g., if the `LOOP_SET_FD` operation failed), `o2hb_read_slots` could very well fail. So, the key is the `o2hb_read_slots`. I think I will need to focus my attention on this function.



39/2 2026/09/28 17:39 tool grepper
0m Args:
map[Expression:o2hb_read_slots PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-619-
fs/ocfs2/cluster/heartbeat.c:620:static int o2hb_read_slots(struct o2hb_region *reg,
fs/ocfs2/cluster/heartbeat.c-621-			   unsigned int begin_slot,
--
fs/ocfs2/cluster/heartbeat.c=1144=static int o2hb_do_disk_heartbeat(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1181-	 * best-effort. */
fs/ocfs2/cluster/heartbeat.c:1182:	ret = o2hb_read_slots(reg, lowest_node, highest_node + 1);
fs/ocfs2/cluster/heartbeat.c-1183-	if (ret < 0) {
--
fs/ocfs2/cluster/heartbeat.c=1838=static int o2hb_populate_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1843-
fs/ocfs2/cluster/heartbeat.c:1844:	ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1845-	if (ret)
]

40/2 2026/09/28 17:39 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35186
							output: 40
							thoughts: 13
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and presented as if it were my own internal monologue:

**Diving into `o2hb_read_slots`**

Alright, time to dig into `o2hb_read_slots`. Just the name itself tells me we're dealing with Open vSwitch and probably heartbeats, slot reading. I'm immediately picturing the data structures involved – likely some shared memory region or a similar mechanism for communicating the state of the OVS cluster. I need to understand how the slots are structured, what information they hold, and how this function actually extracts that data. The efficiency is going to be key here; this is likely on the critical path for cluster health monitoring, so I expect to see some highly optimized reads. Let's see if it's atomic reads or some kind of synchronization involved. I'm also curious about the error handling; what happens if the slot data is corrupted or unavailable? I'm going to be looking for defensive programming techniques here. Is there any validation? Let's get reading and see if I'm right.



41/2 2026/09/28 17:39 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:620 LineCount:25]

Results:
map[Contents: 620:	static int o2hb_read_slots(struct o2hb_region *reg,
 621:				   unsigned int begin_slot,
 622:				   unsigned int max_slots)
 623:	{
 624:		unsigned int current_slot = begin_slot;
 625:		struct o2hb_bio_wait_ctxt wc;
 626:		struct bio *bio;
 627:	
 628:		o2hb_bio_wait_init(&wc);
 629:	
 630:		while(current_slot < max_slots) {
 631:			bio = o2hb_setup_one_bio(reg, &wc, &current_slot, max_slots,
 632:						 REQ_OP_READ);
 633:			atomic_inc(&wc.wc_num_reqs);
 634:			submit_bio(bio);
 635:		}
 636:	
 637:		o2hb_wait_on_io(&wc);
 638:	
 639:		return wc.wc_error;
 640:	}
 641:	
 642:	static int o2hb_issue_node_write(struct o2hb_region *reg,
 643:					 struct o2hb_bio_wait_ctxt *write_wc)
 644:	{
]

42/2 2026/09/28 17:39 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35858
							output: 41
							thoughts: 1318
						

Thoughts:
**Analyzing a Potential Memory Corruption Issue in OCFS2 Heartbeat Code**

Okay, let's break this down. My initial thought process is tracing the error paths within `o2hb_region_dev_store` and the related functions. I start by observing that if `o2hb_read_slots` fails (which I presume is a likely point of failure), `o2hb_populate_slot_data` simply propagates the error, leading to the `out` label. From there, I see the calls to `bdev_fput` and `o2hb_unmap_slot_data`. I remember that `o2hb_unmap_slot_data` does the crucial work of freeing the allocated pages associated with the heartbeat region and that the important member variables `reg->hr_slot_data`, `reg->hr_slots`, and `reg->hr_tmp_block` are allocated by `o2hb_map_slot_data`.

I then meticulously trace the allocation and deallocation paths to make sure there are no leaks or double frees. First, I check that if `o2hb_map_slot_data` fails early (during the kzalloc calls for `reg->hr_slots`), it still correctly cleans up by going to `out` and calling `o2hb_unmap_slot_data`, which seems correct and protects `reg->hr_tmp_block`. I then carefully step through different scenarios, like what happens if `o2hb_map_slot_data` succeeds, but `o2hb_populate_slot_data` fails later on. The unmap function is still called, ensuring proper freeing of resources. It seems, based on my analysis of the code flow, that we are safe.

Now, let's get back to the crash. I'm focusing on the `__free_page(page)` call in `o2hb_unmap_slot_data` as indicated in the call trace. Clearly, the crash happens because the `page` pointer is invalid. I then look back at how `reg->hr_slot_data` is initialized in `o2hb_map_slot_data`. It's allocated as an array of `struct page *` pointers. Each entry in `reg->hr_slot_data` is populated in a loop with the results of `alloc_page(GFP_KERNEL)`.

A key consideration here is that `reg->hr_num_pages` is derived from `reg->hr_blocks`. If `alloc_page` fails during this loop, the function correctly goes to `out`, but `o2hb_unmap_slot_data` still gets called. I realize that in `o2hb_unmap_slot_data`, the code correctly iterates through the allocated pages, freeing only the valid pages. If `alloc_page` fails during allocation, then the corresponding `reg->hr_slot_data[i]` will be NULL, preventing a double free and protecting against garbage data. The page freeing loop seems safe and correct.

The last thing I need to think about is a race. I need to make sure that the calculation of `reg->hr_num_pages` and the allocation/deallocation in this process are not affected by an asynchronous change to `reg->hr_blocks`. A concurrent modification to `reg->hr_blocks`, which directly affects `reg->hr_num_pages`, could lead to issues. I need to check the code for `o2hb_region_blocks_store` to confirm that there is a lock or other mechanism to prevent this kind of concurrent access. I need to know if we are protected from a race condition here.



43/2 2026/09/28 17:39 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1725 LineCount:25]

Results:
map[Contents:1725:	static ssize_t o2hb_region_blocks_store(struct config_item *item,
1726:						const char *page,
1727:						size_t count)
1728:	{
1729:		struct o2hb_region *reg = to_o2hb_region(item);
1730:		unsigned long tmp;
1731:		char *p = (char *)page;
1732:		int ret;
1733:	
1734:		if (reg->hr_bdev_file)
1735:			return -EINVAL;
1736:	
1737:		ret = kstrtoul(p, 0, &tmp);
1738:		if (ret)
1739:			return ret;
1740:	
1741:		if (tmp > O2NM_MAX_NODES || tmp == 0)
1742:			return -ERANGE;
1743:	
1744:		reg->hr_blocks = (unsigned int)tmp;
1745:	
1746:		return count;
1747:	}
1748:	
1749:	static ssize_t o2hb_region_dev_show(struct config_item *item, char *page)
]

44/2 2026/09/28 17:39 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38356
							output: 33
							thoughts: 3930
						

Thoughts:
**Analyzing the Unbound Loop Device Crash**

Okay, here's the breakdown of my thinking. Initially, I was concerned about potential race conditions due to the lack of explicit locking in `o2hb_region_blocks_store`, but the reproducer turned out to be single-threaded, which eliminated that concern. So, the bug must reside elsewhere. I then started focusing on how configfs serializes the file writes, but the problem isn't in concurrent writes.

The reproducer’s syscalls configure a region and then write the block device file descriptor into the "dev" file. The core of the problem lies in an unbound loop device. I traced the execution, observing that the reproducer successfully sets `block_bytes`, `blocks`, and `start_block`. It then creates and opens a block device node using `mknodat` and `openat`. The loop device is created, but not attached to an image file. It then does an `ioctl(LOOP_SET_FD, -1)`, which probably fails. The reproducer then passes the file descriptor of the block device to the "dev" attribute.

The code in `o2hb_region_dev_store` is then executed, which opens the block device via `bdev_file_open_by_dev`. This will open `/dev/loop0`. I determined that the block size returned by `bdev_logical_block_size` is 512, matching the configured `hr_block_bytes`. So that part checks out. I worked through the calls to `o2hb_init_region_params` and `o2hb_map_slot_data` and confirmed that `reg->hr_num_pages` is correctly calculated as 32. This allocates `reg->hr_slot_data`, an array of 32 pages. Then `o2hb_populate_slot_data` gets called, and the error lies in here. `o2hb_read_slots` will be called to read 255 slots from the block device. Because `/dev/loop0` is unbound, `o2hb_read_slots` will likely return an error (e.g. `EIO` or `ENXIO`). This leads to the call to `o2hb_unmap_slot_data` because `o2hb_region_dev_store` sees that `o2hb_read_slots` returned an error, and it wants to unmap the data that was allocated. The crash then happens inside `o2hb_unmap_slot_data`, specifically during the `__free_page(page)` call for a page in `reg->hr_slot_data`. I confirmed that the pages are allocated, so they shouldn't be garbage, so `__free_page` should not cause a crash. It is really puzzling as to why we are crashing in free_page. It seems that somehow, a corrupted `page` is being passed into the function. There has to be a memory corruption, which is why we are crashing in the first place.



45/2 2026/09/28 17:40 tool grepper
0m Args:
map[Expression:put_page_testzero PathPrefix:include/linux/mm.h]

Results:
map[Output:include/linux/mm.h=1816=static inline void folio_reset_order(struct folio *folio)
--
include/linux/mm.h-1843- */
include/linux/mm.h:1844:static inline int put_page_testzero(struct page *page)
include/linux/mm.h-1845-{
--
include/linux/mm.h=1850=static inline int folio_put_testzero(struct folio *folio)
include/linux/mm.h-1851-{
include/linux/mm.h:1852:	return put_page_testzero(&folio->page);
include/linux/mm.h-1853-}
]

46/2 2026/09/28 17:40 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43159
							output: 36
							thoughts: 21
						

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

**Diving into the Memory Management Header**

Okay, I need to jog my memory on some `mm_struct` details, specifically regarding how memory maps are handled in the Linux kernel. Let's start with a focused dive. I'm going to pull up `include/linux/mm.h` and take a look around line 1846. I'm expecting to find some crucial macro definitions or structure declarations related to virtual memory management, possibly addressing the VM operations. That area should give me a good handle on how the kernel manipulates page tables and manages virtual address spaces. I'm hoping to refresh my understanding of the fundamental building blocks of memory management, likely focusing on the interaction between user and kernel space regarding memory mappings and protection.



47/2 2026/09/28 17:40 tool read-file
0m Args:
map[File:include/linux/mm.h FirstLine:1840 LineCount:15]

Results:
map[Contents:1840:	
1841:	/*
1842:	 * Drop a ref, return true if the refcount fell to zero (the page has no users)
1843:	 */
1844:	static inline int put_page_testzero(struct page *page)
1845:	{
1846:		VM_BUG_ON_PAGE(page_ref_count(page) == 0, page);
1847:		return page_ref_dec_and_test(page);
1848:	}
1849:	
1850:	static inline int folio_put_testzero(struct folio *folio)
1851:	{
1852:		return put_page_testzero(&folio->page);
1853:	}
1854:	
]

48/2 2026/09/28 17:40 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43613
							output: 40
							thoughts: 305
						

Thoughts:
**Double Free Detected!**

Right, here we go... This `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page);` is screaming at me. The page's reference count is *already* zero. That's a red flag. Why on earth would the reference count be zero when we're expecting it not to be? It means `__free_page(page)` got called on a page that's *already* been freed, or its refcount somehow went to zero before we even got here.

Okay, let's back up. When `alloc_page(GFP_KERNEL)` is called, it returns a page with a reference count of 1.  Then, when `__free_page(page)` is called, it decrements the refcount to 0 and, ideally, frees the page.  The problem is, if we call `__free_page(page)` *again* on the *same* page, we're going to hit this `VM_BUG_ON_PAGE` because the refcount will still be zero! We've got a double free situation here.  A real headache!

So, the next step is to figure out where this page could be getting freed. Let's start by looking at `o2hb_read_slots`. We have a loop there:
```c
	while(current_slot < max_slots) {
		bio = o2hb_setup_one_bio(reg, &wc, &current_slot, max_slots,
					 REQ_OP_READ);
		atomic_inc(&wc.wc_num_reqs);
		submit_bio(bio);
	}
```
Let's see what happens within `o2hb_setup_one_bio`.



49/2 2026/09/28 17:40 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:573 LineCount:45]

Results:
map[Contents: 573:	static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
 574:					      struct o2hb_bio_wait_ctxt *wc,
 575:					      unsigned int *current_slot,
 576:					      unsigned int max_slots, blk_opf_t opf)
 577:	{
 578:		int len, current_page;
 579:		unsigned int vec_len, vec_start;
 580:		unsigned int bits = reg->hr_block_bits;
 581:		unsigned int spp = reg->hr_slots_per_page;
 582:		unsigned int cs = *current_slot;
 583:		struct bio *bio;
 584:		struct page *page;
 585:	
 586:		/*
 587:		 * The heartbeat runs in process context and can sleep, so use
 588:		 * GFP_NOFS. It is backed by the fs_bio_set mempool and thus cannot
 589:		 * fail, while avoiding recursion back into the filesystem.
 590:		 */
 591:		bio = bio_alloc(reg_bdev(reg), 16, opf, GFP_NOFS);
 592:	
 593:		/* Must put everything in 512 byte sectors for the bio... */
 594:		bio->bi_iter.bi_sector = (reg->hr_start_block + cs) << (bits - 9);
 595:		bio->bi_private = wc;
 596:		bio->bi_end_io = o2hb_bio_end_io;
 597:	
 598:		vec_start = (cs << bits) % PAGE_SIZE;
 599:		while(cs < max_slots) {
 600:			current_page = cs / spp;
 601:			page = reg->hr_slot_data[current_page];
 602:	
 603:			vec_len = min(PAGE_SIZE - vec_start,
 604:				      (max_slots-cs) * (PAGE_SIZE/spp) );
 605:	
 606:			mlog(ML_HB_BIO, "page %d, vec_len = %u, vec_start = %u\n",
 607:			     current_page, vec_len, vec_start);
 608:	
 609:			len = bio_add_page(bio, page, vec_len, vec_start);
 610:			if (len != vec_len) break;
 611:	
 612:			cs += vec_len / (PAGE_SIZE/spp);
 613:			vec_start = 0;
 614:		}
 615:	
 616:		*current_slot = cs;
 617:		return bio;
]

50/2 2026/09/28 17:40 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45126
							output: 40
							thoughts: 71
						

Thoughts:
Okay, let me think this through.

**Analyzing the `bio_add_page` function and memory management in the O2HB layer**

Right, so `bio_add_page` doesn't get passed a reference to the page itself, which is a key point to understand the memory lifecycle here. That's unusual, and immediately raises a flag. When the bio finishes, we're supposed to get a call to `o2hb_bio_end_io`. Now, the crucial question is: Does that function, `o2hb_bio_end_io`, handle freeing the page? If it doesn't, we have a memory leak situation, or at least a situation where it's not immediately obvious when the page is released. We need to go verify the behavior of `o2hb_bio_end_io` directly to get a complete picture. Let me dive into that function and see what's happening.



51/2 2026/09/28 17:40 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:555 LineCount:15]

Results:
map[Contents: 555:	 * End I/O for the synchronous write path. The write bio is embedded in
 556:	 * the wait ctxt rather than allocated, so it must not be freed here; it
 557:	 * is torn down with bio_uninit() once the caller has waited on it.
 558:	 */
 559:	static void o2hb_write_bio_end_io(struct bio *bio)
 560:	{
 561:		struct o2hb_bio_wait_ctxt *wc = bio->bi_private;
 562:	
 563:		if (bio->bi_status) {
 564:			mlog(ML_ERROR, "IO Error %d\n", bio->bi_status);
 565:			wc->wc_error = blk_status_to_errno(bio->bi_status);
 566:		}
 567:	
 568:		o2hb_bio_wait_dec(wc, 1);
 569:	}
]

52/2 2026/09/28 17:40 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45715
							output: 41
							thoughts: 25
						

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

**Analyzing the Function Call**

Alright, let's see. The function name `o2hb_bio_end_io` rings a bell. My initial thought is, "Wait a minute, isn't that function involved in handling I/O completion for block devices, specifically within the O2HB layer?" Then I recall, and yeah, `o2hb_bio_end_io` is definitely used when a bio (block I/O request) completes *read* operations, primarily. Given that association, the next logical step is to delve into the code associated with this function. It warrants a closer inspection of its implementation to solidify my understanding of the read path.



53/2 2026/09/28 17:40 tool grepper
0m Args:
map[Expression:o2hb_bio_end_io PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=535=static void o2hb_wait_on_io(struct o2hb_bio_wait_ctxt *wc)
--
fs/ocfs2/cluster/heartbeat.c-540-
fs/ocfs2/cluster/heartbeat.c:541:static void o2hb_bio_end_io(struct bio *bio)
fs/ocfs2/cluster/heartbeat.c-542-{
--
fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-595-	bio->bi_private = wc;
fs/ocfs2/cluster/heartbeat.c:596:	bio->bi_end_io = o2hb_bio_end_io;
fs/ocfs2/cluster/heartbeat.c-597-
]

54/2 2026/09/28 17:40 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46204
							output: 40
							thoughts: 15
						

Thoughts:
Okay, here's my interpretation of that:

**Analyzing the Input: `o2hb_bio_end_io`**

Alright, let's dive right in. The instruction is to read `o2hb_bio_end_io`. Given my expertise, I'm already formulating hypotheses. Based on the naming convention, I'm expecting this is related to I/O operations and likely specific to oxygenated hemoglobin or a similar biological process, given the "bio" prefix. The "end" suggests this might be related to the completion or finalization of an I/O interaction. The underscore separation is also giving clues: is this code, documentation or log? Does `o2hb` represent an entity? I need more context to understand the scope and the specific data that will be presented. I'm primed to identify the function or data structure this reference is pointing to and anticipate its purpose. Time to dig in and confirm these first impressions.



55/2 2026/09/28 17:41 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:541 LineCount:15]

Results:
map[Contents: 541:	static void o2hb_bio_end_io(struct bio *bio)
 542:	{
 543:		struct o2hb_bio_wait_ctxt *wc = bio->bi_private;
 544:	
 545:		if (bio->bi_status) {
 546:			mlog(ML_ERROR, "IO Error %d\n", bio->bi_status);
 547:			wc->wc_error = blk_status_to_errno(bio->bi_status);
 548:		}
 549:	
 550:		o2hb_bio_wait_dec(wc, 1);
 551:		bio_put(bio);
 552:	}
 553:	
 554:	/*
 555:	 * End I/O for the synchronous write path. The write bio is embedded in
]

56/2 2026/09/28 17:41 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46706
							output: 36
							thoughts: 414
						

Thoughts:
**Heartbeat Region Data Management**

Okay, so `bio_put(bio)` is pretty straightforward; it releases the bio itself, but crucially, *not* the underlying pages. This is important to remember. That means `o2hb_read_slots` isn't responsible for freeing the pages, which makes sense.

But hold on... what happens if `o2hb_map_slot_data` gets called *twice*? Let's say `o2hb_region_dev_store` is called, and it fails *after* a successful `o2hb_map_slot_data`. That failure will lead to a call to `o2hb_unmap_slot_data`. Examining the code:

```c
static void o2hb_unmap_slot_data(struct o2hb_region *reg)
{
	int i;
	struct page *page;

	if (reg->hr_slot_data) {
		for (i = 0; i < reg->hr_num_pages; i++) {
			page = reg->hr_slot_data[i];
			if (page) {
				__free_page(page);
				reg->hr_slot_data[i] = NULL;
			}
		}
		kfree(reg->hr_slot_data);
		reg->hr_slot_data = NULL;
	}
```

Okay, so `o2hb_unmap_slot_data` *does* the cleanup: It iterates through `reg->hr_slot_data`, frees each page with `__free_page`, and then frees the `hr_slot_data` array itself and sets it to NULL.

Now, if `o2hb_region_dev_store` is called *again*, it will call `o2hb_map_slot_data` again. This means that it will allocate *new* pages, and store their pointers in a *new* `reg->hr_slot_data`. If this second attempt fails, it will free those *new* pages within itself. This scenario appears to be handled correctly and shouldn't have any memory leaks. It seems like the page allocation and deallocation is managed cleanly and independently for each attempt.

However, I need to double-check something. Is `__free_page` called anywhere else within `fs/ocfs2/cluster/heartbeat.c` that might complicate this? Let's search the codebase for `__free_page` just to be absolutely certain.



57/2 2026/09/28 17:41 tool grepper
0m Args:
map[Expression:__free_page PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1583=static void o2hb_unmap_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1591-			if (page) {
fs/ocfs2/cluster/heartbeat.c:1592:				__free_page(page);
fs/ocfs2/cluster/heartbeat.c-1593-				reg->hr_slot_data[i] = NULL;
]

58/2 2026/09/28 17:41 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47846
							output: 41
							thoughts: 3167
						

Thoughts:
**Analysis of Potential Double Free in o2hb_unmap_slot_data**

Alright, let's break this down. The core concern is a potential double-free within `o2hb_unmap_slot_data`. My initial thought was that it could be called twice without `reg->hr_slot_data` being set to `NULL` in between. However, a closer look at the code quickly eliminates this possibility. The `kfree` and nulling of `reg->hr_slot_data` are within an `if (reg->hr_slot_data)` block, meaning it's only freed if it's actually allocated. Thus, a straightforward double call won't cause the problem; the second call would simply skip the free operation.

The next concern was related to `reg->hr_num_pages` and potential out-of-bounds reads if it was larger than the actual allocated size of `reg->hr_slot_data`. I traced the value of `reg->hr_num_pages` and confirmed it's set in `o2hb_map_slot_data`, matching the size allocated. Importantly, `reg->hr_num_pages` is *only* updated in this function, so its value always reflects the correct size of the allocated array.

So I need to analyze how failures are handled. If `kzalloc_objs` *fails* in `o2hb_map_slot_data`, `reg->hr_slot_data` will be NULL, the code jumps to `out`, and `o2hb_unmap_slot_data` will be called, but it skips the free operation because of the check on `reg->hr_slot_data`. This also applies if there's a failure in `alloc_page` *within* the loop; the loop only frees valid pages and handles the rest. `o2hb_unmap_slot_data` ensures pages are correctly freed in the case of failures during allocation.

The scenario that triggered some concern was a successful allocation in `o2hb_map_slot_data`, followed by a failure in `o2hb_populate_slot_data`, then another failure down the line. However, the `o2hb_region_dev_store` function handles this, and calls `o2hb_unmap_slot_data`, which frees the memory and sets `reg->hr_slot_data` to `NULL`.

Then I investigated how the parameters are set for another call to this region. I realized that the logic in `o2hb_map_slot_data` updates `reg->hr_num_pages` *after* the initial allocation. However, another call to `o2hb_region_dev_store` first verifies that `reg->hr_bdev_file` is not NULL. Thus, if the first `o2hb_region_dev_store` call is successful, subsequent calls are blocked because `o2hb_region_dev_store` returns -EINVAL.

I dug further, looking for ways for `reg->hr_slot_data` to be allocated, but the size mismatched with `reg->hr_num_pages`. The code confirms that these two values are always kept in sync. Then I checked how `o2hb_region_release` would impact the region, and found that the region is de-allocated when it is called, after calling `o2hb_unmap_slot_data`, which removes any risk of future problems with the region.

In conclusion, I'm confident that the current implementation *prevents* a double-free situation. The code robustly handles allocation failures by correctly cleaning up resources and preventing subsequent operations on invalid or freed data. All failure paths call `o2hb_unmap_slot_data`, and the `reg->hr_slot_data` flag is reset to `NULL`, ensuring that the region is safely handled, and prevents any use-after-free conditions.



59/2 2026/09/28 17:42 tool grepper
0m Args:
map[Expression:o2hb_map_slot_data PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1759=static void o2hb_init_region_params(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1771-
fs/ocfs2/cluster/heartbeat.c:1772:static int o2hb_map_slot_data(struct o2hb_region *reg)
fs/ocfs2/cluster/heartbeat.c-1773-{
--
fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1935-
fs/ocfs2/cluster/heartbeat.c:1936:	ret = o2hb_map_slot_data(reg);
fs/ocfs2/cluster/heartbeat.c-1937-	if (ret) {
]

60/2 2026/09/28 17:42 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52154
							output: 36
							thoughts: 700
						

Thoughts:
**Debugging a Potential Double-Free in the O2HB Code**

Okay, so I'm trying to figure out how `__free_page` could be crashing. The trace points to `___free_pages`, which is called when a page is deallocated. The key question is, why is a page being freed when it shouldn't be? Specifically, it looks like a page's refcount could be zero, even though we believe it is still in use.

Looking at where `o2hb_map_slot_data` is called from (`o2hb_region_dev_store`), I need to trace the lifecycle of these pages. The problematic page is allocated using `alloc_page(GFP_KERNEL)`, then stored in `reg->hr_slot_data[i]`. This looks okay. It then seems that these pages are added to a `bio` within `o2hb_setup_one_bio`.

Aha! Here's a potential weak link. `bio_add_page` *doesn't* increment the page's reference count. The block layer expects the caller to maintain the reference. If the block layer *loses* its reference to the page, it can get freed by an innocent caller, but we continue to use it, this is what is likely causing the crash.

What if there's a problem in the block layer, such as with a loop device? If `submit_bio` fails immediately (e.g., if the loop device is unbound), `bio_endio` is called, which calls `o2hb_bio_end_io`. Then `bio_put(bio)` is called. But `bio_put` only frees the `bio` structure itself. It doesn't free the pages within the bio. This is important to understand.

So, where else could this page be freed? Let's trace it back to `o2hb_map_slot_data`. I need to review this code again, step by step. I am looking for a point where the page is passed to a function that might *also* free it.

Okay, let me trace `kzalloc_objs` as well, as that is a macro and there might be a call to free the page.

So, in summary, this crash is very likely due to a race condition or a missed reference count somewhere between allocation with `alloc_page` and its use in `bio`. I'm going to look more closely at the block device layer for potential issues and how the error paths handle page deallocation in the `bio` context.



61/2 2026/09/28 17:42 tool grepper
0m Args:
map[Expression:kzalloc_objs PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1785-
fs/ocfs2/cluster/heartbeat.c:1786:	reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
fs/ocfs2/cluster/heartbeat.c-1787-	if (!reg->hr_slots)
--
fs/ocfs2/cluster/heartbeat.c-1801-
fs/ocfs2/cluster/heartbeat.c:1802:	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
fs/ocfs2/cluster/heartbeat.c-1803-	if (!reg->hr_slot_data)
]

62/2 2026/09/28 17:42 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 53679
							output: 24
							thoughts: 20
						

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

**Investigating a Potentially Non-Standard Kernel Component**

Okay, hold on a second. This `kzalloc_objs` construct...it's not immediately familiar. It's not one of the standard kernel macros I'd expect to see, especially considering the context of memory allocation or object initialization. My immediate instinct is to figure out where it's defined and what specific functionality it encapsulates. I need to understand its behavior thoroughly before proceeding. Is this some project-specific macro, a helper from a particular subsystem, or perhaps a typo? The context it's used in will give me some hints, but I can't proceed without clarifying the origin of this seemingly non-standard element. I need to trace its definition.



63/2 2026/09/28 17:42 tool grepper
0m Args:
map[Expression:kzalloc_objs PathPrefix:]

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

Documentation/process/coding-style.rst=938=The kernel provides the following general purpose memory allocators:
Documentation/process/coding-style.rst:939:kmalloc(), kzalloc(), kmalloc_objs(), kzalloc_objs(), vmalloc(), and
Documentation/process/coding-style.rst-940-vzalloc().  Please refer to the API documentation for further information
--
Documentation/process/coding-style.rst=964=The preferred form for allocating a zeroed array is the following:
--
Documentation/process/coding-style.rst-967-
Documentation/process/coding-style.rst:968:	p = kzalloc_objs(*p, n, ...);
Documentation/process/coding-style.rst-969-
--
Documentation/process/deprecated.rst=398=become, respectively::
--
Documentation/process/deprecated.rst-402-	ptr = kmalloc_objs(*ptr, count [, gfp] );
Documentation/process/deprecated.rst:403:	ptr = kzalloc_objs(*ptr, count [, gfp] );
Documentation/process/deprecated.rst-404-	ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] );
--
Documentation/translations/it_IT/process/coding-style.rst=940=Il kernel fornisce i seguenti assegnatori ad uso generico:
Documentation/translations/it_IT/process/coding-style.rst:941:kmalloc(), kzalloc(), kmalloc_objs(), kzalloc_objs(), vmalloc(), e vzalloc().
Documentation/translations/it_IT/process/coding-style.rst-942-Per maggiori informazioni, consultate la documentazione dell'API:
--
Documentation/translations/it_IT/process/coding-style.rst=965=Il modo preferito per assegnare un vettore a zero è il seguente:
--
Documentation/translations/it_IT/process/coding-style.rst-968-
Documentation/translations/it_IT/process/coding-style.rst:969:	p = kzalloc_objs(*p, n, ...);
Documentation/translations/it_IT/process/coding-style.rst-970-
--
Documentation/translations/it_IT/process/deprecated.rst=441=diventano, rispettivamente::
--
Documentation/translations/it_IT/process/deprecated.rst-445-	ptr = kmalloc_objs(*ptr, count [, gfp] );
Documentation/translations/it_IT/process/deprecated.rst:446:	ptr = kzalloc_objs(*ptr, count [, gfp] );
Documentation/translations/it_IT/process/deprecated.rst-447-	ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] );
--
Documentation/translations/pt_BR/process/deprecated.rst=410=tornam-se, respectivamente::
--
Documentation/translations/pt_BR/process/deprecated.rst-414-        ptr = kmalloc_objs(*ptr, count [, gfp] );
Documentation/translations/pt_BR/process/deprecated.rst:415:        ptr = kzalloc_objs(*ptr, count [, gfp] );
Documentation/translations/pt_BR/process/deprecated.rst-416-        ptr = kmalloc_flex(*ptr, flex_member, count [, gfp] );
--
arch/alpha/kernel/module.c=64=module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
--
arch/alpha/kernel/module.c-95-	nsyms = symtab->sh_size / sizeof(Elf64_Sym);
arch/alpha/kernel/module.c:96:	chains = kzalloc_objs(struct got_entry, nsyms);
arch/alpha/kernel/module.c-97-	if (!chains) {
--
arch/arm/kernel/vdso.c=169=static int __init vdso_init(void)
--
arch/arm/kernel/vdso.c-181-	/* Allocate the VDSO text pagelist */
arch/arm/kernel/vdso.c:182:	vdso_text_pagelist = kzalloc_objs(struct page *, text_pages);
arch/arm/kernel/vdso.c-183-	if (vdso_text_pagelist == NULL)
--
arch/arm/mach-footbridge/dc21285.c=261=int __init dc21285_setup(int nr, struct pci_sys_data *sys)
--
arch/arm/mach-footbridge/dc21285.c-264-
arch/arm/mach-footbridge/dc21285.c:265:	res = kzalloc_objs(struct resource, 2);
arch/arm/mach-footbridge/dc21285.c-266-	if (!res) {
--
arch/arm/mach-omap1/mcbsp.c=292=static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
--
arch/arm/mach-omap1/mcbsp.c-296-
arch/arm/mach-omap1/mcbsp.c:297:	omap_mcbsp_devices = kzalloc_objs(struct platform_device *, size);
arch/arm/mach-omap1/mcbsp.c-298-	if (!omap_mcbsp_devices) {
--
arch/arm/mach-omap2/omap_device.c=131=static int omap_device_build_from_dt(struct platform_device *pdev)
--
arch/arm/mach-omap2/omap_device.c-158-
arch/arm/mach-omap2/omap_device.c:159:	hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt);
arch/arm/mach-omap2/omap_device.c-160-	if (!hwmods) {
--
arch/arm/mach-omap2/pm33xx-core.c=379=static int __init amx3_idle_init(struct device_node *cpu_node, int cpu)
--
arch/arm/mach-omap2/pm33xx-core.c-412-
arch/arm/mach-omap2/pm33xx-core.c:413:	idle_states = kzalloc_objs(*idle_states, state_count);
arch/arm/mach-omap2/pm33xx-core.c-414-	if (!idle_states)
--
arch/arm/mach-omap2/sr_device.c=30=static void __init sr_set_nvalues(struct omap_volt_data *volt_data,
--
arch/arm/mach-omap2/sr_device.c-41-
arch/arm/mach-omap2/sr_device.c:42:	nvalue_table = kzalloc_objs(*nvalue_table, count);
arch/arm/mach-omap2/sr_device.c-43-	if (!nvalue_table)
--
arch/arm/mach-versatile/spc.c=393=static int ve_spc_populate_opps(uint32_t cluster)
--
arch/arm/mach-versatile/spc.c-397-
arch/arm/mach-versatile/spc.c:398:	opps = kzalloc_objs(*opps, MAX_OPPS);
arch/arm/mach-versatile/spc.c-399-	if (!opps)
--
arch/arm/xen/enlighten.c=316=int __init arch_xen_unpopulated_init(struct resource **res)
--
arch/arm/xen/enlighten.c-343-
arch/arm/xen/enlighten.c:344:	regs = kzalloc_objs(*regs, nr_reg);
arch/arm/xen/enlighten.c-345-	if (!regs) {
--
arch/arm64/kernel/vdso.c=68=static int __init __vdso_init(enum vdso_abi abi)
--
arch/arm64/kernel/vdso.c-83-
arch/arm64/kernel/vdso.c:84:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info[abi].vdso_pages);
arch/arm64/kernel/vdso.c-85-	if (vdso_pagelist == NULL)
--
arch/arm64/kvm/vgic/vgic-init.c=208=static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis)
--
arch/arm64/kvm/vgic/vgic-init.c-217-	dist->active_spis = (atomic_t)ATOMIC_INIT(0);
arch/arm64/kvm/vgic/vgic-init.c:218:	dist->spis = kzalloc_objs(struct vgic_irq, nr_spis, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-init.c-219-	if (!dist->spis)
--
arch/arm64/kvm/vgic/vgic-init.c=320=static int vgic_allocate_private_irqs_locked(struct kvm_vcpu *vcpu, u32 type)
--
arch/arm64/kvm/vgic/vgic-init.c-335-
arch/arm64/kvm/vgic/vgic-init.c:336:	vgic_cpu->private_irqs = kzalloc_objs(struct vgic_irq,
arch/arm64/kvm/vgic/vgic-init.c-337-					      num_private_irqs,
--
arch/arm64/kvm/vgic/vgic-irqfd.c=142=int kvm_vgic_setup_default_irq_routing(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-irqfd.c-148-
arch/arm64/kvm/vgic/vgic-irqfd.c:149:	entries = kzalloc_objs(*entries, nr, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-irqfd.c-150-	if (!entries)
--
arch/arm64/kvm/vgic/vgic-v4.c=242=int vgic_v4_init(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-v4.c-258-
arch/arm64/kvm/vgic/vgic-v4.c:259:	dist->its_vm.vpes = kzalloc_objs(*dist->its_vm.vpes, nr_vcpus,
arch/arm64/kvm/vgic/vgic-v4.c-260-					 GFP_KERNEL_ACCOUNT);
--
arch/csky/kernel/vdso.c=17=static int __init vdso_init(void)
--
arch/csky/kernel/vdso.c-22-	vdso_pagelist =
arch/csky/kernel/vdso.c:23:		kzalloc_objs(struct page *, vdso_pages);
arch/csky/kernel/vdso.c-24-	if (unlikely(vdso_pagelist == NULL)) {
--
arch/loongarch/kernel/vdso.c=45=static int __init init_vdso(void)
--
arch/loongarch/kernel/vdso.c-55-	vdso_info.code_mapping.pages =
arch/loongarch/kernel/vdso.c:56:		kzalloc_objs(struct page *, vdso_info.size / PAGE_SIZE);
arch/loongarch/kernel/vdso.c-57-
--
arch/loongarch/kvm/intc/pch_pic.c=413=static int kvm_setup_default_irq_routing(struct kvm *kvm)
--
arch/loongarch/kvm/intc/pch_pic.c-418-
arch/loongarch/kvm/intc/pch_pic.c:419:	entries = kzalloc_objs(*entries, nr);
arch/loongarch/kvm/intc/pch_pic.c-420-	if (!entries)
--
arch/mips/alchemy/common/clock.c=754=static int __init alchemy_clk_init_fgens(int ctype)
--
arch/mips/alchemy/common/clock.c-777-
arch/mips/alchemy/common/clock.c:778:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-779-	if (!a)
--
arch/mips/alchemy/common/clock.c=960=static int __init alchemy_clk_setup_imux(int ctype)
--
arch/mips/alchemy/common/clock.c-998-
arch/mips/alchemy/common/clock.c:999:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-1000-	if (!a)
--
arch/mips/alchemy/common/dbdma.c=1056=static int __init dbdma_setup(unsigned int irq, dbdev_tab_t *idtable)
--
arch/mips/alchemy/common/dbdma.c-1059-
arch/mips/alchemy/common/dbdma.c:1060:	dbdev_tab = kzalloc_objs(dbdev_tab_t, DBDEV_TAB_SIZE);
arch/mips/alchemy/common/dbdma.c-1061-	if (!dbdev_tab)
--
arch/mips/alchemy/common/platform.c=203=static int __init _new_usbres(struct resource **r, struct platform_device **d)
arch/mips/alchemy/common/platform.c-204-{
arch/mips/alchemy/common/platform.c:205:	*r = kzalloc_objs(struct resource, 2);
arch/mips/alchemy/common/platform.c-206-	if (!*r)
--
arch/mips/alchemy/devboards/platform.c=70=int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start,
--
arch/mips/alchemy/devboards/platform.c-91-
arch/mips/alchemy/devboards/platform.c:92:	sr = kzalloc_objs(struct resource, cnt);
arch/mips/alchemy/devboards/platform.c-93-	if (!sr)
--
arch/mips/alchemy/devboards/platform.c=154=int __init db1x_register_norflash(unsigned long size, int width,
--
arch/mips/alchemy/devboards/platform.c-166-	ret = -ENOMEM;
arch/mips/alchemy/devboards/platform.c:167:	parts = kzalloc_objs(struct mtd_partition, 5);
arch/mips/alchemy/devboards/platform.c-168-	if (!parts)
--
arch/mips/bcm47xx/buttons.c=501=bcm47xx_buttons_add(const struct bcm47xx_gpio_key *buttons, int nbuttons)
--
arch/mips/bcm47xx/buttons.c-525-	const struct software_node **node_group __free(kfree) =
arch/mips/bcm47xx/buttons.c:526:		kzalloc_objs(*node_group, 1 + nbuttons + 1);
arch/mips/bcm47xx/buttons.c-527-	if (!node_group)
--
arch/mips/bcm47xx/buttons.c-531-	struct property_entry *props __free(kfree) =
arch/mips/bcm47xx/buttons.c:532:		kzalloc_objs(*props, nbuttons * 3);
arch/mips/bcm47xx/buttons.c-533-	if (!props)
--
arch/mips/bcm47xx/buttons.c-537-	struct software_node *nodes __free(kfree) =
arch/mips/bcm47xx/buttons.c:538:		kzalloc_objs(*nodes, 1 + nbuttons);
arch/mips/bcm47xx/buttons.c-539-	if (!nodes)
--
arch/mips/bcm47xx/buttons.c-542-	struct software_node_ref_args *ref_args __free(kfree) =
arch/mips/bcm47xx/buttons.c:543:		kzalloc_objs(*ref_args, nbuttons);
arch/mips/bcm47xx/buttons.c-544-	if (!ref_args)
--
arch/mips/kernel/smp-cps.c=295=static void __init cps_prepare_cpus(unsigned int max_cpus)
--
arch/mips/kernel/smp-cps.c-343-	nclusters = mips_cps_numclusters();
arch/mips/kernel/smp-cps.c:344:	mips_cps_cluster_bootcfg = kzalloc_objs(*mips_cps_cluster_bootcfg,
arch/mips/kernel/smp-cps.c-345-						nclusters);
--
arch/mips/kernel/smp-cps.c-354-		ncores = mips_cps_numcores(cl);
arch/mips/kernel/smp-cps.c:355:		core_bootcfg = kzalloc_objs(*core_bootcfg, ncores);
arch/mips/kernel/smp-cps.c-356-		if (!core_bootcfg)
--
arch/mips/kernel/smp-cps.c-369-			core_vpes = core_vpe_count(cl, c);
arch/mips/kernel/smp-cps.c:370:			core_bootcfg[c].vpe_config = kzalloc_objs(*core_bootcfg[c].vpe_config,
arch/mips/kernel/smp-cps.c-371-								  core_vpes);
--
arch/parisc/kernel/vdso.c=99=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/parisc/kernel/vdso.c-104-
arch/parisc/kernel/vdso.c:105:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/parisc/kernel/vdso.c-106-	if (!pagelist)
--
arch/parisc/net/bpf_jit_core.c=44=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/parisc/net/bpf_jit_core.c-71-	ctx->prog = prog;
arch/parisc/net/bpf_jit_core.c:72:	ctx->offset = kzalloc_objs(int, prog->len);
arch/parisc/net/bpf_jit_core.c-73-	if (!ctx->offset)
--
arch/powerpc/kernel/smp.c=1116=void __init smp_prepare_cpus(unsigned int max_cpus)
--
arch/powerpc/kernel/smp.c-1177-		 */
arch/powerpc/kernel/smp.c:1178:		chip_id_lookup_table = kzalloc_objs(int, idx);
arch/powerpc/kernel/smp.c-1179-		if (chip_id_lookup_table)
--
arch/powerpc/kernel/vdso.c=242=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/powerpc/kernel/vdso.c-247-
arch/powerpc/kernel/vdso.c:248:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/powerpc/kernel/vdso.c-249-	if (!pagelist)
--
arch/powerpc/kvm/e500_mmu.c=731=int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu,
--
arch/powerpc/kvm/e500_mmu.c-794-
arch/powerpc/kvm/e500_mmu.c:795:	privs[0] = kzalloc_objs(*privs[0], params.tlb_sizes[0]);
arch/powerpc/kvm/e500_mmu.c-796-	if (!privs[0]) {
--
arch/powerpc/kvm/e500_mmu.c-800-
arch/powerpc/kvm/e500_mmu.c:801:	privs[1] = kzalloc_objs(*privs[1], params.tlb_sizes[1]);
arch/powerpc/kvm/e500_mmu.c-802-	if (!privs[1]) {
--
arch/powerpc/kvm/e500_mmu.c=898=int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
--
arch/powerpc/kvm/e500_mmu.c-922-
arch/powerpc/kvm/e500_mmu.c:923:	vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-924-					       vcpu_e500->gtlb_params[0].entries);
--
arch/powerpc/kvm/e500_mmu.c-927-
arch/powerpc/kvm/e500_mmu.c:928:	vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-929-					       vcpu_e500->gtlb_params[1].entries);
--
arch/powerpc/mm/drmem.c=425=static void __init init_drmem_v1_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-432-
arch/powerpc/mm/drmem.c:433:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-434-	if (!drmem_info->lmbs)
--
arch/powerpc/mm/drmem.c=441=static void __init init_drmem_v2_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-459-
arch/powerpc/mm/drmem.c:460:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-461-	if (!drmem_info->lmbs)
--
arch/powerpc/perf/imc-pmu.c=221=static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu)
--
arch/powerpc/perf/imc-pmu.c-259-	/* Allocate memory for the events */
arch/powerpc/perf/imc-pmu.c:260:	pmu->events = kzalloc_objs(struct imc_events, ct);
arch/powerpc/perf/imc-pmu.c-261-	if (!pmu->events) {
--
arch/powerpc/perf/imc-pmu.c-290-	 */
arch/powerpc/perf/imc-pmu.c:291:	attrs = kzalloc_objs(struct attribute *, ((ct * 3) + 1));
arch/powerpc/perf/imc-pmu.c-292-	if (!attrs) {
--
arch/powerpc/perf/imc-pmu.c=1521=static int init_nest_pmu_ref(void)
--
arch/powerpc/perf/imc-pmu.c-1524-
arch/powerpc/perf/imc-pmu.c:1525:	nest_imc_refc = kzalloc_objs(*nest_imc_refc, num_possible_nodes());
arch/powerpc/perf/imc-pmu.c-1526-
--
arch/powerpc/perf/imc-pmu.c=1678=static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,
--
arch/powerpc/perf/imc-pmu.c-1695-		if (!per_nest_pmu_arr) {
arch/powerpc/perf/imc-pmu.c:1696:			per_nest_pmu_arr = kzalloc_objs(struct imc_pmu *,
arch/powerpc/perf/imc-pmu.c-1697-							get_max_nest_dev() + 1);
--
arch/powerpc/perf/imc-pmu.c-1709-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1710:		pmu_ptr->mem_info = kzalloc_objs(struct imc_mem_info, nr_cores);
arch/powerpc/perf/imc-pmu.c-1711-
--
arch/powerpc/perf/imc-pmu.c-1714-
arch/powerpc/perf/imc-pmu.c:1715:		core_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1716-
--
arch/powerpc/perf/imc-pmu.c-1747-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1748:		trace_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1749-		if (!trace_imc_refc)
--
arch/powerpc/perf/vpa-dtl.c=508=static void *vpa_dtl_setup_aux(struct perf_event *event, void **pages,
--
arch/powerpc/perf/vpa-dtl.c-525-
arch/powerpc/perf/vpa-dtl.c:526:	pglist = kzalloc_objs(*pglist, nr_pages);
arch/powerpc/perf/vpa-dtl.c-527-	if (!pglist)
--
arch/powerpc/platforms/44x/pci.c=1307=static int __init ppc4xx_pciex_check_core_init(struct device_node *np)
--
arch/powerpc/platforms/44x/pci.c-1341-		ppc4xx_pciex_ports =
arch/powerpc/platforms/44x/pci.c:1342:		       kzalloc_objs(struct ppc4xx_pciex_port, count);
arch/powerpc/platforms/44x/pci.c-1343-		if (ppc4xx_pciex_ports) {
--
arch/powerpc/platforms/powernv/idle.c=1323=static int __init pnv_parse_cpuidle_dt(void)
--
arch/powerpc/platforms/powernv/idle.c-1339-
arch/powerpc/platforms/powernv/idle.c:1340:	pnv_idle_states = kzalloc_objs(*pnv_idle_states, nr_idle_states);
arch/powerpc/platforms/powernv/idle.c-1341-	temp_u32 = kcalloc(nr_idle_states, sizeof(u32),  GFP_KERNEL);
--
arch/powerpc/platforms/powernv/memtrace.c=131=static int memtrace_init_regions_runtime(u64 size)
--
arch/powerpc/platforms/powernv/memtrace.c-135-
arch/powerpc/platforms/powernv/memtrace.c:136:	memtrace_array = kzalloc_objs(struct memtrace_entry, num_online_nodes());
arch/powerpc/platforms/powernv/memtrace.c-137-	if (!memtrace_array) {
--
arch/powerpc/platforms/powernv/opal-async.c=246=int __init opal_async_comp_init(void)
--
arch/powerpc/platforms/powernv/opal-async.c-267-	opal_max_async_tokens = be32_to_cpup(async);
arch/powerpc/platforms/powernv/opal-async.c:268:	opal_async_tokens = kzalloc_objs(*opal_async_tokens,
arch/powerpc/platforms/powernv/opal-async.c-269-					 opal_max_async_tokens);
--
arch/powerpc/platforms/powernv/opal-imc.c=82=static int imc_get_mem_addr_nest(struct device_node *node,
--
arch/powerpc/platforms/powernv/opal-imc.c-110-
arch/powerpc/platforms/powernv/opal-imc.c:111:	pmu_ptr->mem_info = kzalloc_objs(*pmu_ptr->mem_info, nr_chips + 1);
arch/powerpc/platforms/powernv/opal-imc.c-112-	if (!pmu_ptr->mem_info)
--
arch/powerpc/platforms/powernv/opal-irqchip.c=174=int __init opal_event_init(void)
--
arch/powerpc/platforms/powernv/opal-irqchip.c-223-	/* Allocate an IRQ resources array */
arch/powerpc/platforms/powernv/opal-irqchip.c:224:	opal_irqs = kzalloc_objs(struct resource, opal_irq_count);
arch/powerpc/platforms/powernv/opal-irqchip.c-225-	if (WARN_ON(!opal_irqs)) {
--
arch/powerpc/platforms/powernv/opal-powercap.c=138=void __init opal_powercap_init(void)
--
arch/powerpc/platforms/powernv/opal-powercap.c-148-
arch/powerpc/platforms/powernv/opal-powercap.c:149:	pcaps = kzalloc_objs(*pcaps, of_get_child_count(powercap));
arch/powerpc/platforms/powernv/opal-powercap.c-150-	if (!pcaps)
--
arch/powerpc/platforms/powernv/opal-powercap.c-179-
arch/powerpc/platforms/powernv/opal-powercap.c:180:		pcaps[i].pattrs = kzalloc_objs(struct powercap_attr, j);
arch/powerpc/platforms/powernv/opal-powercap.c-181-		if (!pcaps[i].pattrs)
--
arch/powerpc/platforms/powernv/opal-powercap.c-183-
arch/powerpc/platforms/powernv/opal-powercap.c:184:		pcaps[i].pg.attrs = kzalloc_objs(struct attribute *, j + 1);
arch/powerpc/platforms/powernv/opal-powercap.c-185-		if (!pcaps[i].pg.attrs) {
--
arch/powerpc/platforms/powernv/opal-psr.c=119=void __init opal_psr_init(void)
--
arch/powerpc/platforms/powernv/opal-psr.c-130-
arch/powerpc/platforms/powernv/opal-psr.c:131:	psr_attrs = kzalloc_objs(*psr_attrs, of_get_child_count(psr));
arch/powerpc/platforms/powernv/opal-psr.c-132-	if (!psr_attrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c=160=void __init opal_sensor_groups_init(void)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-170-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:171:	sgs = kzalloc_objs(*sgs, of_get_child_count(sg));
arch/powerpc/platforms/powernv/opal-sensor-groups.c-172-	if (!sgs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-192-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:193:		sgs[i].sgattrs = kzalloc_objs(*sgs[i].sgattrs, nr_attrs);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-194-		if (!sgs[i].sgattrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-196-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:197:		sgs[i].sg.attrs = kzalloc_objs(*sgs[i].sg.attrs, nr_attrs + 1);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-198-
--
arch/powerpc/platforms/powernv/opal-sysparam.c=143=void __init opal_sys_param_init(void)
--
arch/powerpc/platforms/powernv/opal-sysparam.c-224-
arch/powerpc/platforms/powernv/opal-sysparam.c:225:	attr = kzalloc_objs(*attr, count);
arch/powerpc/platforms/powernv/opal-sysparam.c-226-	if (!attr) {
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c=233=static int __init papr_init(void)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-295-
arch/powerpc/platforms/pseries/papr_platform_attributes.c:296:	papr_groups = kzalloc_objs(*papr_groups, num_attrs);
arch/powerpc/platforms/pseries/papr_platform_attributes.c-297-	if (!papr_groups)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-313-	for (idx = 0; idx < num_attrs; idx++) {
arch/powerpc/platforms/pseries/papr_platform_attributes.c:314:		papr_groups[idx].pg.attrs = kzalloc_objs(*papr_groups[idx].pg.attrs,
arch/powerpc/platforms/pseries/papr_platform_attributes.c-315-							 KOBJ_MAX_ATTRS + 1);
--
arch/powerpc/sysdev/mpic.c=542=static void __init mpic_scan_ht_pics(struct mpic *mpic)
--
arch/powerpc/sysdev/mpic.c-549-	/* Allocate fixups array */
arch/powerpc/sysdev/mpic.c:550:	mpic->fixups = kzalloc_objs(*mpic->fixups, 128);
arch/powerpc/sysdev/mpic.c-551-	BUG_ON(mpic->fixups == NULL);
--
arch/powerpc/sysdev/mpic_msgr.c=167=static int mpic_msgr_probe(struct platform_device *dev)
--
arch/powerpc/sysdev/mpic_msgr.c-190-
arch/powerpc/sysdev/mpic_msgr.c:191:		mpic_msgrs = kzalloc_objs(*mpic_msgrs, mpic_msgr_count);
arch/powerpc/sysdev/mpic_msgr.c-192-		if (!mpic_msgrs) {
--
arch/powerpc/sysdev/xive/common.c=1121=static int __init xive_init_ipis(void)
--
arch/powerpc/sysdev/xive/common.c-1136-
arch/powerpc/sysdev/xive/common.c:1137:	xive_ipis = kzalloc_objs(*xive_ipis, nr_node_ids);
arch/powerpc/sysdev/xive/common.c-1138-	if (!xive_ipis)
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c=13=static void test_kprobe_riscv(struct kunit *test)
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c-22-
arch/riscv/kernel/tests/kprobes/test-kprobes.c:23:	kp = kzalloc_objs(*kp, num_kprobe);
arch/riscv/kernel/tests/kprobes/test-kprobes.c-24-	KUNIT_EXPECT_TRUE(test, kp);
--
arch/riscv/kernel/unaligned_access_speed.c=148=static void __init check_unaligned_access_speed_all_cpus(void)
--
arch/riscv/kernel/unaligned_access_speed.c-151-	unsigned int cpu_count = num_possible_cpus();
arch/riscv/kernel/unaligned_access_speed.c:152:	struct page **bufs = kzalloc_objs(*bufs, cpu_count);
arch/riscv/kernel/unaligned_access_speed.c-153-
--
arch/riscv/kernel/vdso.c=44=static void __init __vdso_init(struct __vdso_info *vdso_info)
--
arch/riscv/kernel/vdso.c-57-
arch/riscv/kernel/vdso.c:58:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info->vdso_pages);
arch/riscv/kernel/vdso.c-59-	if (vdso_pagelist == NULL)
--
arch/riscv/kvm/vcpu_sbi_fwft.c=552=static int kvm_sbi_ext_fwft_init(struct kvm_vcpu *vcpu)
--
arch/riscv/kvm/vcpu_sbi_fwft.c-558-
arch/riscv/kvm/vcpu_sbi_fwft.c:559:	fwft->configs = kzalloc_objs(struct kvm_sbi_fwft_config,
arch/riscv/kvm/vcpu_sbi_fwft.c-560-				     ARRAY_SIZE(features), GFP_KERNEL_ACCOUNT);
--
arch/riscv/kvm/vm.c=93=int kvm_riscv_setup_default_irq_routing(struct kvm *kvm, u32 lines)
--
arch/riscv/kvm/vm.c-97-
arch/riscv/kvm/vm.c:98:	ents = kzalloc_objs(*ents, lines);
arch/riscv/kvm/vm.c-99-	if (!ents)
--
arch/s390/appldata/appldata_base.c=347=int appldata_register_ops(struct appldata_ops *ops)
--
arch/s390/appldata/appldata_base.c-351-
arch/s390/appldata/appldata_base.c:352:	ops->ctl_table = kzalloc_objs(struct ctl_table, 1);
arch/s390/appldata/appldata_base.c-353-	if (!ops->ctl_table)
--
arch/s390/include/asm/idals.h=88=static inline int set_normalized_cda(struct ccw1 *ccw, void *vaddr)
--
arch/s390/include/asm/idals.h-96-	if (nridaws > 0) {
arch/s390/include/asm/idals.h:97:		idal = kzalloc_objs(*idal, nridaws, GFP_ATOMIC | GFP_DMA);
arch/s390/include/asm/idals.h-98-		if (!idal)
--
arch/s390/kernel/cert_store.c=315=static int invalidate_keyring_keys(struct key *keyring)
--
arch/s390/kernel/cert_store.c-324-	num_keys = keyring_payload_len / sizeof(key_serial_t);
arch/s390/kernel/cert_store.c:325:	key_array = kzalloc_objs(key_serial_t, num_keys);
arch/s390/kernel/cert_store.c-326-	if (!key_array)
--
arch/s390/kernel/debug.c=309=static debug_info_t *debug_info_alloc(const char *name, int pages_per_area,
--
arch/s390/kernel/debug.c-318-		goto fail_malloc_rc;
arch/s390/kernel/debug.c:319:	rc->active_entries = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-320-	if (!rc->active_entries)
arch/s390/kernel/debug.c-321-		goto fail_malloc_active_entries;
arch/s390/kernel/debug.c:322:	rc->active_pages = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-323-	if (!rc->active_pages)
--
arch/s390/kernel/vdso.c=129=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/s390/kernel/vdso.c-134-
arch/s390/kernel/vdso.c:135:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/s390/kernel/vdso.c-136-	if (!pagelist)
--
arch/s390/kvm/s390/pci.c=120=int kvm_s390_pci_aen_init(u8 nisc)
--
arch/s390/kvm/s390/pci.c-128-	mutex_lock(&aift->aift_lock);
arch/s390/kvm/s390/pci.c:129:	aift->kzdev = kzalloc_objs(struct kvm_zdev *, ZPCI_NR_DEVICES);
arch/s390/kvm/s390/pci.c-130-	if (!aift->kzdev) {
--
arch/s390/pci/pci.c=1066=static int zpci_mem_init(void)
--
arch/s390/pci/pci.c-1077-
arch/s390/pci/pci.c:1078:	zpci_iomap_start = kzalloc_objs(*zpci_iomap_start, ZPCI_IOMAP_ENTRIES);
arch/s390/pci/pci.c-1079-	if (!zpci_iomap_start)
--
arch/s390/pci/pci_irq.c=552=static int __init zpci_directed_irq_init(void)
--
arch/s390/pci/pci_irq.c-565-
arch/s390/pci/pci_irq.c:566:	zpci_ibv = kzalloc_objs(*zpci_ibv, num_possible_cpus());
arch/s390/pci/pci_irq.c-567-	if (!zpci_ibv)
--
arch/s390/pci/pci_irq.c=590=static int __init zpci_floating_irq_init(void)
arch/s390/pci/pci_irq.c-591-{
arch/s390/pci/pci_irq.c:592:	zpci_ibv = kzalloc_objs(*zpci_ibv, ZPCI_NR_DEVICES);
arch/s390/pci/pci_irq.c-593-	if (!zpci_ibv)
--
arch/sh/drivers/dma/dmabrg.c=151=static int __init dmabrg_init(void)
--
arch/sh/drivers/dma/dmabrg.c-155-
arch/sh/drivers/dma/dmabrg.c:156:	dmabrg_handlers = kzalloc_objs(struct dmabrg_handler, 10);
arch/sh/drivers/dma/dmabrg.c-157-	if (!dmabrg_handlers)
--
arch/sh/drivers/pci/pcie-sh7786.c=545=static int __init sh7786_pcie_init(void)

]

64/2 2026/09/28 17:42 llm debugger
7m Model:
gemini-3.1-pro-preview

Tokens:
							input: 65686
							output: 26
							thoughts: 249
						

Thoughts:
Okay, here's my summary, taking on the persona you requested:

**Navigating the Labyrinth of `kzalloc_objs`**

Alright, let's see... I'm trying to figure out where `kzalloc_objs` is defined. My initial hunch was that it's probably in `include/linux/slab.h` since it sounds like a memory allocation thing, something along the lines of `kzalloc`. But wait, I need to be sure. Okay, I double checked, specifically in `fs/ocfs2/cluster/heartbeat.c` because I'm seeing this code in the context of the OCFS2 filesytem. It's *not* a macro there, which is odd.

Wait... am I missing something obvious? Perhaps it *is* in `include/linux/slab.h` after all, but I'm thinking I'd immediately recognize that one. No, hang on... the code style document? Nope. Wait, the `deprecated.rst` file? *Ah ha!* It looks like it *was* deprecated, meaning it might be an older construct. But wait, `kcalloc` is the *current* standard, and I'm pretty sure that's preferred in modern code. That seems like the likely path.

But wait, why am I struggling to locate the definition? Let me go back and re-confirm the obvious. I just grepped for it in `fs/ocfs2/cluster/heartbeat.c` just now and it wasn't there. Maybe I'm grepping wrong. So, to be *absolutely* sure, let's grep *specifically* in `include/` to see if that turns anything up. That should give me a definitive answer and hopefully, solve the issue.



65/2 2026/09/28 17:50 tool grepper
0m Args:
map[Expression:kzalloc_objs PathPrefix:include/]

Results:
map[Output:include/linux/slab.h=1073=void *kmalloc_nolock(size_t size, gfp_t gfp_flags, int node);
--
include/linux/slab.h-1156-	__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
include/linux/slab.h:1157:#define kzalloc_objs(P, COUNT, ...) \
include/linux/slab.h-1158-	__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), COUNT)
--
include/net/tc_act/tc_gate.h=118=static inline struct action_gate_entry
--
include/net/tc_act/tc_gate.h-135-
include/net/tc_act/tc_gate.h:136:	oe = kzalloc_objs(*oe, num_entries, GFP_ATOMIC);
include/net/tc_act/tc_gate.h-137-	if (!oe)
--
include/net/udp.h=285=static inline int udp_lib_init_sock(struct sock *sk)
--
include/net/udp.h-294-
include/net/udp.h:295:	up->udp_prod_queue = kzalloc_objs(*up->udp_prod_queue, nr_node_ids);
include/net/udp.h-296-	if (!up->udp_prod_queue)
]

66/2 2026/09/28 17:50 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 66725
							output: 37
							thoughts: 1201
						

Thoughts:
**Debugging a Potential Double-Free in o2hb**

Okay, let's break this down systematically. My initial thought is to analyze the `kzalloc_objs` macro. It looks like it's allocating an array of `struct page *` pointers, specifically `reg->hr_num_pages` of them, which seems correct based on the usage.

Now, I'm considering possible race conditions. Could `o2hb_unmap_slot_data` be running concurrently with `o2hb_map_slot_data`? The single-threaded reproducer rules that out, so concurrency is unlikely. I then considered a dangling pointer scenario: could `page` have been freed in a *previous* call to `o2hb_unmap_slot_data` but `reg->hr_slot_data[i]` was *not* set to `NULL`? But no, `o2hb_unmap_slot_data` explicitly sets the pointer to `NULL` *after* calling `__free_page`. So that can't be it. The code is explicit: `reg->hr_slot_data[i] = NULL;` after the free. The entire array is freed and set to `NULL` afterward. This eliminates that possibility.

Next I started wondering about the block layer. Could the pages be freed by something like a failed `submit_bio` call, which might be submitted by `o2hb_read_slots`? Specifically, if `/dev/loop0` is unbound, `submit_bio` will fail. If the bio fails, `bio_endio` is called and, eventually, `bio_put`. I know that `bio_put` doesn't actually *free* the pages associated with the bio. But, what if `/dev/loop0` *is* bound but the `ioctl(LOOP_SET_FD)` fails. Let's see... `ioctl(3, LOOP_SET_FD, -1)` will fail because `-1` isn't a valid file descriptor. This likely means it is unbound. So this path is unlikely. I then considered if another process bound it and that is ruled out by the fact that the reproducer runs in a fresh VM or namespace. In either of these cases, the `submit_bio` will fail. I know the block layer does *not* free pages added by `bio_add_page`, so it's not the block layer. And let's be realistic, `alloc_page` *can't* return a page that's already freed. It's the core memory allocator, it should return a page with a refcount of 1.

Back to scrutinizing `o2hb_unmap_slot_data`. I'm going through the code again:

```c
static void o2hb_unmap_slot_data(struct o2hb_region *reg)
{
	int i;
	struct page *page;

	if (reg->hr_slot_data) {
		for (i = 0; i < reg->hr_num_pages; i++) {
			page = reg->hr_slot_data[i];
			if (page) {
				__free_page(page);
				reg->hr_slot_data[i] = NULL;
			}
		}
		kfree(reg->hr_slot_data);
		reg->hr_slot_data = NULL;
	}
// ...
```

Hang on... what if `reg->hr_num_pages` is *larger* than the number of pages that were actually allocated in `reg->hr_slot_data`? How could this happen? Let me revisit `o2hb_map_slot_data`:

```c
	reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
// ...
	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
	if (!reg->hr_slot_data)
		goto out;

	for (i = 0; i < reg->hr_num_pages; i++) {
		page = alloc_page(GFP_KERNEL);
		if (!page)
			goto out;
```

Aha! If `alloc_page` fails, it jumps to `out`, which calls `o2hb_unmap_slot_data`. `o2hb_unmap_slot_data` then loops up to `reg->hr_num_pages`. Critically, `reg->hr_slot_data` *was* allocated with `reg->hr_num_pages` elements, but if the `alloc_page`


67/2 2026/09/28 17:50 tool grepper
0m Args:
map[Expression:hr_num_pages PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=203=struct o2hb_region {
--
fs/ocfs2/cluster/heartbeat.c-223-	unsigned int		hr_slots_per_page;
fs/ocfs2/cluster/heartbeat.c:224:	unsigned int		hr_num_pages;
fs/ocfs2/cluster/heartbeat.c-225-
--
fs/ocfs2/cluster/heartbeat.c=1583=static void o2hb_unmap_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1588-	if (reg->hr_slot_data) {
fs/ocfs2/cluster/heartbeat.c:1589:		for (i = 0; i < reg->hr_num_pages; i++) {
fs/ocfs2/cluster/heartbeat.c-1590-			page = reg->hr_slot_data[i];
--
fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1796-
fs/ocfs2/cluster/heartbeat.c:1797:	reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
fs/ocfs2/cluster/heartbeat.c-1798-	mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
fs/ocfs2/cluster/heartbeat.c-1799-			   "at %u blocks per page\n",
fs/ocfs2/cluster/heartbeat.c:1800:	     reg->hr_num_pages, reg->hr_blocks, spp);
fs/ocfs2/cluster/heartbeat.c-1801-
fs/ocfs2/cluster/heartbeat.c:1802:	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
fs/ocfs2/cluster/heartbeat.c-1803-	if (!reg->hr_slot_data)
--
fs/ocfs2/cluster/heartbeat.c-1805-
fs/ocfs2/cluster/heartbeat.c:1806:	for (i = 0; i < reg->hr_num_pages; i++) {
fs/ocfs2/cluster/heartbeat.c-1807-		page = alloc_page(GFP_KERNEL);
]

68/2 2026/09/28 17:50 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 69652
							output: 37
							thoughts: 2422
						

Thoughts:
**Analyzing Potential Double-Free and Memory Leak Vulnerabilities**

Okay, here's what I've got so far, thinking through this code. `hr_num_pages` seems to be the key variable, modified only in `o2hb_map_slot_data` and always set before `reg->hr_slot_data` gets allocated. The first thing that jumps out is the potential for `o2hb_map_slot_data` to be called *after* `reg->hr_slot_data` is already allocated. If that happens, it looks like the old memory is simply overwritten without being freed which is a memory leak.

However, `o2hb_map_slot_data` doesn't *directly* free, so let's track the call path. It's called from `o2hb_region_dev_store`. This function does an `if (reg->hr_bdev_file) return -EINVAL;` check at the beginning. If the check fails, `o2hb_region_dev_store` calls `o2hb_unmap_slot_data` which *does* free `reg->hr_slot_data` and set it to NULL.  If `o2hb_region_dev_store` succeeds, `reg->hr_bdev_file` is set, so subsequent calls should trigger -EINVAL. It seems `o2hb_map_slot_data` shouldn't be called when `reg->hr_slot_data` is already allocated, provided this logic holds.

But what about concurrency? Two threads could call `o2hb_region_dev_store` concurrently. Thread 1 might pass the check, set `reg->hr_bdev_file`. Thread 2 could also pass and set `reg->hr_bdev_file`.  Then Thread 1 allocates `hr_slot_data`.  Thread 2 then calls it overwriting Thread 1's allocation. This *could* cause a leak, depending on how they exit.

If both fail, `o2hb_unmap_slot_data` gets called twice. The first free is fine, the second should be a no-op because of the NULL check. BUT the original allocation from Thread 1 is leaked. However, the reproducer is single-threaded. There's no concurrency here.

Let's refocus on the single-threaded case. The reproducer calls `write` *once* to `dev`, calling `o2hb_region_dev_store` *once*. So, how could we get a double-free?

Could `o2hb_map_slot_data` itself fail? Let's check `alloc_page`. If `alloc_page` fails, it goes to `out`, calls `o2hb_unmap_slot_data`, which *should* free pages. Then, the `o2hb_region_dev_store` function will call it again, but `o2hb_unmap_slot_data` checks if the `hr_slot_data` pointer is NULL, and does nothing, so that's safe.

What if `o2hb_populate_slot_data` fails? That's after the allocation. It goes to `out`, calls `o2hb_unmap_slot_data`, freeing resources. Does it call free on the allocated pages? Let's look at it. No, it calls `o2hb_read_slots`. This leads to `o2hb_bio_wait_init` and `submit_bio`. `submit_bio` doesn't own the pages; the caller does. And I know `bio_put` doesn't usually free pages either.

What about `bio_alloc`? If `bio_alloc` fails, there *could* be a problem. But it says heartbeat runs in process context and can sleep, so it uses `GFP_NOFS`. It's backed by the fs_bio_set mempool, so it *cannot* fail. And if `bio_add_page` fails, the loop breaks, and it returns. So that's all good.

The only remaining question is: is `reg->hr_slot_data` used *anywhere else*? Let me check `o2hb_thread`.



69/2 2026/09/28 17:50 tool grepper
0m Args:
map[Expression:hr_slot_data PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=203=struct o2hb_region {
--
fs/ocfs2/cluster/heartbeat.c-225-
fs/ocfs2/cluster/heartbeat.c:226:	struct page             **hr_slot_data;
fs/ocfs2/cluster/heartbeat.c-227-	struct file		*hr_bdev_file;
--
fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-600-		current_page = cs / spp;
fs/ocfs2/cluster/heartbeat.c:601:		page = reg->hr_slot_data[current_page];
fs/ocfs2/cluster/heartbeat.c-602-
--
fs/ocfs2/cluster/heartbeat.c=642=static int o2hb_issue_node_write(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-668-
fs/ocfs2/cluster/heartbeat.c:669:	page = reg->hr_slot_data[slot / spp];
fs/ocfs2/cluster/heartbeat.c-670-	vec_start = (slot << bits) % PAGE_SIZE;
--
fs/ocfs2/cluster/heartbeat.c=1583=static void o2hb_unmap_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1587-
fs/ocfs2/cluster/heartbeat.c:1588:	if (reg->hr_slot_data) {
fs/ocfs2/cluster/heartbeat.c-1589-		for (i = 0; i < reg->hr_num_pages; i++) {
fs/ocfs2/cluster/heartbeat.c:1590:			page = reg->hr_slot_data[i];
fs/ocfs2/cluster/heartbeat.c-1591-			if (page) {
fs/ocfs2/cluster/heartbeat.c-1592-				__free_page(page);
fs/ocfs2/cluster/heartbeat.c:1593:				reg->hr_slot_data[i] = NULL;
fs/ocfs2/cluster/heartbeat.c-1594-			}
fs/ocfs2/cluster/heartbeat.c-1595-		}
fs/ocfs2/cluster/heartbeat.c:1596:		kfree(reg->hr_slot_data);
fs/ocfs2/cluster/heartbeat.c:1597:		reg->hr_slot_data = NULL;
fs/ocfs2/cluster/heartbeat.c-1598-	}
--
fs/ocfs2/cluster/heartbeat.c=1772=static int o2hb_map_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1801-
fs/ocfs2/cluster/heartbeat.c:1802:	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
fs/ocfs2/cluster/heartbeat.c:1803:	if (!reg->hr_slot_data)
fs/ocfs2/cluster/heartbeat.c-1804-		goto out;
--
fs/ocfs2/cluster/heartbeat.c-1810-
fs/ocfs2/cluster/heartbeat.c:1811:		reg->hr_slot_data[i] = page;
fs/ocfs2/cluster/heartbeat.c-1812-
]

70/2 2026/09/28 17:50 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74014
							output: 41
							thoughts: 770
						

Thoughts:
**Analyzing the `hr_slot_data` Usage and Tracing the Crash**

Okay, so I'm focusing on this `hr_slot_data` structure. My initial thought was that it's only touched in a few spots: `o2hb_setup_one_bio`, `o2hb_issue_node_write`, `o2hb_unmap_slot_data`, and `o2hb_map_slot_data`. But then, I had to consider the potential for calls to `o2hb_issue_node_write`. It's called from `o2hb_do_disk_heartbeat`. And, `o2hb_do_disk_heartbeat` runs in the `o2hb_thread`. Crucially, that thread only starts *after* `o2hb_populate_slot_data` succeeds. If that initial population fails, the heartbeat thread is *never* even launched, making the write impossible.

Now, let's revisit the crash. The stack trace points to `put_page_testzero` and `___free_pages`. This looks like a memory corruption issue, likely related to page management.

The trace shows `o2hb_unmap_slot_data` as the culprit. That's a key function! I need to see where this is being called. Looking at the code around line 1592 of `fs/ocfs2/cluster/heartbeat.c`, the trace mentions that `o2hb_unmap_slot_data` is called from `o2hb_region_dev_store` at line 2027. Time to check that line in `heartbeat.c` to see the context of the call and figure out the sequence of events.



71/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:2020 LineCount:15]

Results:
map[Contents:2020:			hb_task = reg->hr_task;
2021:			reg->hr_task = NULL;
2022:			spin_unlock(&o2hb_live_lock);
2023:	
2024:			if (hb_task)
2025:				kthread_stop(hb_task);
2026:	
2027:			o2hb_unmap_slot_data(reg);
2028:	
2029:			fput(reg->hr_bdev_file);
2030:			reg->hr_bdev_file = NULL;
2031:		}
2032:		return ret;
2033:	}
2034:	
]

72/2 2026/09/28 17:51 llm debugger-compressor
0m Model:
gemini-3.8-flash

Reply:
### 1. Approaches Tried and Results

- **Analyzed Crash Stack Trace:**
  - Call trace:
    ```
    VM_BUG_ON_PAGE(page_ref_count(page) == 0, page) at include/linux/mm.h:1846
    put_page_testzero include/linux/mm.h:1846 [inline]
    ___free_pages+0x1a5/0x1b0 mm/page_alloc.c:5528
    __free_page(page)
    o2hb_unmap_slot_data+0xf8/0x2c0 fs/ocfs2/cluster/heartbeat.c:1592
    o2hb_region_dev_store+0x732/0x11f0 fs/ocfs2/cluster/heartbeat.c:2027
    flush_write_buffer fs/configfs/file.c:207 [inline]
    configfs_write_iter+0x337/0x430 fs/configfs/file.c:229
    ```
  - Identified BUG assertion: `page_ref_count(page) == 0` triggered inside `put_page_testzero()`. This is a classic symptom of an unexpected page reference decrement or double free of `page` during `__free_page(page)` in `o2hb_unmap_slot_data()`.

- **Analyzed Syzkaller Reproducer:**
  - Mounts configfs at `./config`.
  - Creates cluster `/config/cluster/mycluster` and node `mynode` (`ipv4_address="127.0.0.1"`, `ipv4_port="7777"`, `num="0"`, `local="1"`).
  - Creates region `/config/cluster/mycluster/heartbeat/myregion`.
  - Sets `block_bytes = 512`.
  - Sets `blocks = 255`.
  - Sets `start_block = 1`.
  - Creates `./loop0` with `mknod(S_IFBLK, 0x700)` (major 7, minor 0).
  - Calls `ioctl(fd_loop, LOOP_SET_FD, -1)` (fails / unbound loop device).
  - Writes fd of `/dev/loop0` (`"3"`) to `/config/cluster/mycluster/heartbeat/myregion/dev`.

- **Inspected Code Paths in `fs/ocfs2/cluster/heartbeat.c`:**
  - `o2hb_region_dev_store()`:
    1. Validates node, parses fd, checks block device: `bdev_file_open_by_dev(...)`.
    2. Validates logical block size (512 bytes matches `hr_block_bytes`).
    3. Calls `o2hb_init_region_params(reg)`: calculates `hr_slots_per_page = PAGE_SIZE >> reg->hr_block_bits` (for 4KB page and 512B block: `4096 >> 9 = 8`).
    4. Calls `o2hb_map_slot_data(reg)`:
       - Allocates `reg->hr_num_pages = (255 + 8 - 1) / 8 = 32` pages.
       - Allocates `reg->hr_slot_data` (array of 32 `struct page *`).
       - Calls `alloc_page(GFP_KERNEL)` for each page (each returned page has refcount = 1).
    5. Calls `o2hb_populate_slot_data(reg)`:
       - Calls `o2hb_read_slots(reg, 0, reg->hr_blocks)`.
       - Loops over slots using `o2hb_setup_one_bio(...)`, which calls `bio_add_page(bio, page, vec_len, vec_start)`.
       - Submits BIOs via `submit_bio(bio)` with `bio->bi_end_io = o2hb_bio_end_io`.
       - Waits via `o2hb_wait_on_io(&wc)`.
       - On unbound loop device, I/O fails (`wc.wc_error != 0`).
       - `o2hb_populate_slot_data()` returns error (`ret != 0`).
    6. `o2hb_region_dev_store()` jumps to label `out:` on error:
       - Calls `o2hb_unmap_slot_data(reg)`.
    7. `o2hb_unmap_slot_data(reg)` loops `i` from `0` to `reg->hr_num_pages - 1`:
       - `page = reg->hr_slot_data[i];`
       - Calls `__free_page(page);` -> triggers `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` at `include/linux/mm.h:1846`.

### 2. Current Hypotheses / Active Lines of Investigation

- **Hypothesis: Reference count dropped by BIO layer or `o2hb_bio_end_io`:**
  - When BIO is submitted via `submit_bio()` or completed via `bio_put()` / `o2hb_bio_end_io()`, does something put the page reference? Or did `bio_put(bio)` decrement page references?
  - Need to check `o2hb_bio_end_io()` implementation: Does it call `bio_put(bio)`? What does `bio_put()` do with BIO pages added via `bio_add_page()`?
  - Check `bio_add_page()` semantics vs `alloc_page()` / `__free_page()`: `bio_add_page()` does NOT increment the page refcount. If anything in the bio completion/cleanup drops page refs, or if `bio_put()` doesn't, why is `page_ref_count(page) == 0`?
  - Alternative: Check `o2hb_bio_end_io()`. Does `o2hb_bio_end_io()` free or put pages?
  - Another possibility: Did `submit_bio()` or block layer error handling or something else touch the page? Or is the same page added multiple times or refcount decremented somewhere?
  - Let's check `o2hb_bio_end_io`: inspect lines 540-555 of `fs/ocfs2/cluster/heartbeat.c`.
  - Also check: How does `o2hb_setup_one_bio` allocate and free bios? In `o2hb_read_slots`, `bio = o2hb_setup_one_bio(...)`, `submit_bio(bio)`. Where is `bio_put(bio)` called?

### 3. Critical Code Snippets, File Paths, and Structs

- **`fs/ocfs2/cluster/heartbeat.c:1583` (`o2hb_unmap_slot_data`):**
```c
static void o2hb_unmap_slot_data(struct o2hb_region *reg)
{
	int i;
	struct page *page;

	if (reg->hr_slot_data) {
		for (i = 0; i < reg->hr_num_pages; i++) {
			page = reg->hr_slot_data[i];
			if (page) {
				__free_page(page);
				reg->hr_slot_data[i] = NULL;
			}
		}
		kfree(reg->hr_slot_data);
		reg->hr_slot_data = NULL;
	}

	kfree(reg->hr_slots);
	reg->hr_slots = NULL;

	kfree(reg->hr_tmp_block);
	reg->hr_tmp_block = NULL;
}
```

- **`fs/ocfs2/cluster/heartbeat.c:1772` (`o2hb_map_slot_data`):**
```c
reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
if (!reg->hr_slot_data)
    goto out;

for (i = 0; i < reg->hr_num_pages; i++) {
    page = alloc_page(GFP_KERNEL);
    if (!page)
        goto out;
    reg->hr_slot_data[i] = page;
    ...
}
```

- **`fs/ocfs2/cluster/heartbeat.c:573` (`o2hb_setup_one_bio`):**
```c
bio = bio_alloc(reg_bdev(reg), 16, opf, GFP_NOFS);
bio->bi_iter.bi_sector = (reg->hr_start_block + cs) << (bits - 9);
bio->bi_private = wc;
bio->bi_end_io = o2hb_bio_end_io;

vec_start = (cs << bits) % PAGE_SIZE;
while(cs < max_slots) {
    current_page = cs / spp;
    page = reg->hr_slot_data[current_page];
    vec_len = min(PAGE_SIZE - vec_start,
                  (max_slots-cs) * (PAGE_SIZE/spp) );
    len = bio_add_page(bio, page, vec_len, vec_start);
    if (len != vec_len) break;
    cs += vec_len / (PAGE_SIZE/spp);
    vec_start = 0;
}
*current_slot = cs;
return bio;
```

- **`include/linux/mm.h:1844` (`put_page_testzero`):**
```c
static inline int put_page_testzero(struct page *page)
{
	VM_BUG_ON_PAGE(page_ref_count(page) == 0, page);
	return page_ref_dec_and_test(page);
}
```

### 4. Watch-outs and Next Steps

- **Watch out for:**
  - Repetitive reading of already examined parts of `o2hb_region_dev_store` and `o2hb_map_slot_data`.
- **Immediate Next Steps:**
  1. Inspect `o2hb_bio_end_io` in `fs/ocfs2/cluster/heartbeat.c:541`.
  2. Inspect what happens to `bio` and pages when `o2hb_read_slots` fails or finishes.
  3. Determine exactly why `page_ref_count(page) == 0` when `o2hb_unmap_slot_data` calls `__free_page(page)`.

Tokens:
							input: 35882
							output: 2534
							thoughts: 0
						

73/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31207
							output: 41
							thoughts: 0
						

74/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1930 LineCount:40]

Results:
map[Contents:1930:		/* Generation of zero is invalid */
1931:		do {
1932:			get_random_bytes(&reg->hr_generation,
1933:					 sizeof(reg->hr_generation));
1934:		} while (reg->hr_generation == 0);
1935:	
1936:		ret = o2hb_map_slot_data(reg);
1937:		if (ret) {
1938:			mlog_errno(ret);
1939:			goto out;
1940:		}
1941:	
1942:		ret = o2hb_populate_slot_data(reg);
1943:		if (ret) {
1944:			mlog_errno(ret);
1945:			goto out;
1946:		}
1947:	
1948:		/*
1949:		 * A node is considered live after it has beat LIVE_THRESHOLD
1950:		 * times.  We're not steady until we've given them a chance
1951:		 * _after_ our first read.
1952:		 * The default threshold is bare minimum so as to limit the delay
1953:		 * during mounts. For global heartbeat, the threshold doubled for the
1954:		 * first region.
1955:		 */
1956:		live_threshold = O2HB_LIVE_THRESHOLD;
1957:		if (o2hb_global_heartbeat_active()) {
1958:			spin_lock(&o2hb_live_lock);
1959:			if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1)
1960:				live_threshold <<= 1;
1961:			spin_unlock(&o2hb_live_lock);
1962:		}
1963:		++live_threshold;
1964:		atomic_set(&reg->hr_steady_iterations, live_threshold);
1965:		/* unsteady_iterations is triple the steady_iterations */
1966:		atomic_set(&reg->hr_unsteady_iterations, (live_threshold * 3));
1967:		o2hb_set_region_stopping(reg, false);
1968:	
1969:		hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
]

75/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31889
							output: 41
							thoughts: 0
						

76/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1772 LineCount:45]

Results:
map[Contents:1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
1774:		int i, j;
1775:		int ret = -ENOMEM;
1776:		unsigned int last_slot;
1777:		unsigned int spp = reg->hr_slots_per_page;
1778:		struct page *page;
1779:		char *raw;
1780:		struct o2hb_disk_slot *slot;
1781:	
1782:		reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
1783:		if (!reg->hr_tmp_block)
1784:			goto out;
1785:	
1786:		reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
1787:		if (!reg->hr_slots)
1788:			goto out;
1789:	
1790:		for (i = 0; i < reg->hr_blocks; i++) {
1791:			slot = &reg->hr_slots[i];
1792:			slot->ds_node_num = i;
1793:			INIT_LIST_HEAD(&slot->ds_live_item);
1794:			slot->ds_raw_block = NULL;
1795:		}
1796:	
1797:		reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
1798:		mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
1799:				   "at %u blocks per page\n",
1800:		     reg->hr_num_pages, reg->hr_blocks, spp);
1801:	
1802:		reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
1803:		if (!reg->hr_slot_data)
1804:			goto out;
1805:	
1806:		for (i = 0; i < reg->hr_num_pages; i++) {
1807:			page = alloc_page(GFP_KERNEL);
1808:			if (!page)
1809:				goto out;
1810:	
1811:			reg->hr_slot_data[i] = page;
1812:	
1813:			last_slot = i * spp;
1814:			raw = page_address(page);
1815:			for (j = 0;
1816:			     (j < spp) && ((j + last_slot) < reg->hr_blocks);
]

77/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32675
							output: 41
							thoughts: 0
						

78/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1817 LineCount:45]

Results:
map[Contents:1817:			     j++) {
1818:				BUG_ON((j + last_slot) >= reg->hr_blocks);
1819:	
1820:				slot = &reg->hr_slots[j + last_slot];
1821:				slot->ds_raw_block =
1822:					(struct o2hb_disk_heartbeat_block *) raw;
1823:	
1824:				raw += reg->hr_block_bytes;
1825:			}
1826:		}
1827:	
1828:		return 0;
1829:	
1830:	out:
1831:		o2hb_unmap_slot_data(reg);
1832:		return ret;
1833:	}
1834:	
1835:	/* Read in all the slots available and populate the tracking
1836:	 * structures so that we can start with a baseline idea of what's
1837:	 * there. */
1838:	static int o2hb_populate_slot_data(struct o2hb_region *reg)
1839:	{
1840:		int ret, i;
1841:		struct o2hb_disk_slot *slot;
1842:		struct o2hb_disk_heartbeat_block *hb_block;
1843:	
1844:		ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
1845:		if (ret)
1846:			goto out;
1847:	
1848:		/* We only want to get an idea of the values initially in each
1849:		 * slot, so we do no verification - o2hb_check_slot will
1850:		 * actually determine if each configured slot is valid and
1851:		 * whether any values have changed. */
1852:		for(i = 0; i < reg->hr_blocks; i++) {
1853:			slot = &reg->hr_slots[i];
1854:			hb_block = (struct o2hb_disk_heartbeat_block *) slot->ds_raw_block;
1855:	
1856:			/* Only fill the values that o2hb_check_slot uses to
1857:			 * determine changing slots */
1858:			slot->ds_last_time = le64_to_cpu(hb_block->hb_seq);
1859:			slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation);
1860:		}
1861:	
]

79/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33422
							output: 41
							thoughts: 0
						

80/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1862 LineCount:45]

Results:
map[Contents:1862:	out:
1863:		return ret;
1864:	}
1865:	
1866:	/*
1867:	 * this is acting as commit; we set up all of hr_bdev_file and hr_task or
1868:	 * nothing
1869:	 */
1870:	static ssize_t o2hb_region_dev_store(struct config_item *item,
1871:					     const char *page,
1872:					     size_t count)
1873:	{
1874:		struct o2hb_region *reg = to_o2hb_region(item);
1875:		struct task_struct *hb_task;
1876:		long fd;
1877:		int sectsize;
1878:		char *p = (char *)page;
1879:		ssize_t ret = -EINVAL;
1880:		int live_threshold;
1881:	
1882:		if (reg->hr_bdev_file)
1883:			return -EINVAL;
1884:	
1885:		/* We can't heartbeat without having had our node number
1886:		 * configured yet. */
1887:		reg->hr_node_num = o2nm_this_node();
1888:		if (reg->hr_node_num == O2NM_MAX_NODES)
1889:			return -EINVAL;
1890:	
1891:		ret = kstrtol(p, 0, &fd);
1892:		if (ret < 0)
1893:			return -EINVAL;
1894:	
1895:		if (fd < 0 || fd >= INT_MAX)
1896:			return -EINVAL;
1897:	
1898:		CLASS(fd, f)(fd);
1899:		if (fd_empty(f))
1900:			return -EINVAL;
1901:	
1902:		if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
1903:		    reg->hr_block_bytes == 0)
1904:			return -EINVAL;
1905:	
1906:		if (!S_ISBLK(fd_file(f)->f_mapping->host->i_mode))
]

81/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34117
							output: 40
							thoughts: 0
						

82/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:573 LineCount:45]

Results:
map[Contents: 573:	static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
 574:					      struct o2hb_bio_wait_ctxt *wc,
 575:					      unsigned int *current_slot,
 576:					      unsigned int max_slots, blk_opf_t opf)
 577:	{
 578:		int len, current_page;
 579:		unsigned int vec_len, vec_start;
 580:		unsigned int bits = reg->hr_block_bits;
 581:		unsigned int spp = reg->hr_slots_per_page;
 582:		unsigned int cs = *current_slot;
 583:		struct bio *bio;
 584:		struct page *page;
 585:	
 586:		/*
 587:		 * The heartbeat runs in process context and can sleep, so use
 588:		 * GFP_NOFS. It is backed by the fs_bio_set mempool and thus cannot
 589:		 * fail, while avoiding recursion back into the filesystem.
 590:		 */
 591:		bio = bio_alloc(reg_bdev(reg), 16, opf, GFP_NOFS);
 592:	
 593:		/* Must put everything in 512 byte sectors for the bio... */
 594:		bio->bi_iter.bi_sector = (reg->hr_start_block + cs) << (bits - 9);
 595:		bio->bi_private = wc;
 596:		bio->bi_end_io = o2hb_bio_end_io;
 597:	
 598:		vec_start = (cs << bits) % PAGE_SIZE;
 599:		while(cs < max_slots) {
 600:			current_page = cs / spp;
 601:			page = reg->hr_slot_data[current_page];
 602:	
 603:			vec_len = min(PAGE_SIZE - vec_start,
 604:				      (max_slots-cs) * (PAGE_SIZE/spp) );
 605:	
 606:			mlog(ML_HB_BIO, "page %d, vec_len = %u, vec_start = %u\n",
 607:			     current_page, vec_len, vec_start);
 608:	
 609:			len = bio_add_page(bio, page, vec_len, vec_start);
 610:			if (len != vec_len) break;
 611:	
 612:			cs += vec_len / (PAGE_SIZE/spp);
 613:			vec_start = 0;
 614:		}
 615:	
 616:		*current_slot = cs;
 617:		return bio;
]

83/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34933
							output: 40
							thoughts: 0
						

84/2 2026/09/28 17:51 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:520 LineCount:20]

Results:
map[Contents: 520:	
 521:	/* Used in error paths too */
 522:	static inline void o2hb_bio_wait_dec(struct o2hb_bio_wait_ctxt *wc,
 523:					     unsigned int num)
 524:	{
 525:		/* sadly atomic_sub_and_test() isn't available on all platforms.  The
 526:		 * good news is that the fast path only completes one at a time */
 527:		while(num--) {
 528:			if (atomic_dec_and_test(&wc->wc_num_reqs)) {
 529:				BUG_ON(num > 0);
 530:				complete(&wc->wc_io_complete);
 531:			}
 532:		}
 533:	}
 534:	
 535:	static void o2hb_wait_on_io(struct o2hb_bio_wait_ctxt *wc)
 536:	{
 537:		o2hb_bio_wait_dec(wc, 1);
 538:		wait_for_completion(&wc->wc_io_complete);
 539:	}
]

85/2 2026/09/28 17:51 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35303
							output: 40
							thoughts: 0
						

86/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:490 LineCount:30]

Results:
map[Contents: 490:	
 491:		nego_msg = (struct o2hb_nego_msg *)msg->buf;
 492:		printk(KERN_NOTICE "o2hb: receive negotiate timeout message from node %d on region %s (%pg).\n",
 493:			nego_msg->node_num, config_item_name(&reg->hr_item),
 494:			reg_bdev(reg));
 495:		if (nego_msg->node_num < O2NM_MAX_NODES)
 496:			set_bit(nego_msg->node_num, reg->hr_nego_node_bitmap);
 497:		else
 498:			mlog(ML_ERROR, "got nego timeout message from bad node.\n");
 499:	
 500:		return 0;
 501:	}
 502:	
 503:	static int o2hb_nego_approve_handler(struct o2net_msg *msg, u32 len, void *data,
 504:					void **ret_data)
 505:	{
 506:		struct o2hb_region *reg = data;
 507:	
 508:		printk(KERN_NOTICE "o2hb: negotiate timeout approved by master node on region %s (%pg).\n",
 509:			config_item_name(&reg->hr_item), reg_bdev(reg));
 510:		o2hb_arm_timeout(reg);
 511:		return 0;
 512:	}
 513:	
 514:	static inline void o2hb_bio_wait_init(struct o2hb_bio_wait_ctxt *wc)
 515:	{
 516:		atomic_set(&wc->wc_num_reqs, 1);
 517:		init_completion(&wc->wc_io_complete);
 518:		wc->wc_error = 0;
 519:	}
]

87/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35875
							output: 40
							thoughts: 0
						

88/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:618 LineCount:25]

Results:
map[Contents: 618:	}
 619:	
 620:	static int o2hb_read_slots(struct o2hb_region *reg,
 621:				   unsigned int begin_slot,
 622:				   unsigned int max_slots)
 623:	{
 624:		unsigned int current_slot = begin_slot;
 625:		struct o2hb_bio_wait_ctxt wc;
 626:		struct bio *bio;
 627:	
 628:		o2hb_bio_wait_init(&wc);
 629:	
 630:		while(current_slot < max_slots) {
 631:			bio = o2hb_setup_one_bio(reg, &wc, &current_slot, max_slots,
 632:						 REQ_OP_READ);
 633:			atomic_inc(&wc.wc_num_reqs);
 634:			submit_bio(bio);
 635:		}
 636:	
 637:		o2hb_wait_on_io(&wc);
 638:	
 639:		return wc.wc_error;
 640:	}
 641:	
 642:	static int o2hb_issue_node_write(struct o2hb_region *reg,
]

89/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36282
							output: 35
							thoughts: 0
						

90/2 2026/09/28 17:52 tool grepper
0m Args:
map[Expression:bio_put PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=541=static void o2hb_bio_end_io(struct bio *bio)
--
fs/ocfs2/cluster/heartbeat.c-550-	o2hb_bio_wait_dec(wc, 1);
fs/ocfs2/cluster/heartbeat.c:551:	bio_put(bio);
fs/ocfs2/cluster/heartbeat.c-552-}
]

91/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36443
							output: 28
							thoughts: 0
						

92/2 2026/09/28 17:52 tool grepper
0m Args:
map[Expression:bio_put PathPrefix:block/bio.c]

Results:
map[Output:block/bio.c=125=static struct kmem_cache *bio_find_or_create_slab(struct bio_set *bs)
--
block/bio.c-142-
block/bio.c:143:static void bio_put_slab(struct bio_set *bs)
block/bio.c-144-{
--
block/bio.c=323=static struct bio *__bio_chain_endio(struct bio *bio)
--
block/bio.c-328-		parent->bi_status = bio->bi_status;
block/bio.c:329:	bio_put(bio);
block/bio.c-330-	return parent;
--
block/bio.c=782=static void bio_alloc_cache_destroy(struct bio_set *bs)
--
block/bio.c-799-
block/bio.c:800:static inline void bio_put_percpu_cache(struct bio *bio)
block/bio.c-801-{
--
block/bio.c-834-/**
block/bio.c:835: * bio_put - release a reference to a bio
block/bio.c-836- * @bio:   bio to release reference to
--
block/bio.c-841- **/
block/bio.c:842:void bio_put(struct bio *bio)
block/bio.c-843-{
--
block/bio.c-849-	if (bio->bi_opf & REQ_ALLOC_CACHE)
block/bio.c:850:		bio_put_percpu_cache(bio);
block/bio.c-851-	else
--
block/bio.c-853-}
block/bio.c:854:EXPORT_SYMBOL(bio_put);
block/bio.c-855-
--
block/bio.c=894=struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src,
--
block/bio.c-903-	if (__bio_clone(bio, bio_src, gfp) < 0) {
block/bio.c:904:		bio_put(bio);
block/bio.c-905-		return NULL;
--
block/bio.c=1728=void bio_set_pages_dirty(struct bio *bio)
--
block/bio.c-1745- * It is expected that bio_check_pages_dirty() will wholly own the BIO from
block/bio.c:1746: * here on.  It will unpin each page and will run one bio_put() against the
block/bio.c-1747- * BIO.
--
block/bio.c=1759=static void bio_dirty_fn(struct work_struct *work)
--
block/bio.c-1771-		bio_release_pages(bio, true);
block/bio.c:1772:		bio_put(bio);
block/bio.c-1773-	}
--
block/bio.c=1776=void bio_check_pages_dirty(struct bio *bio)
--
block/bio.c-1786-	bio_release_pages(bio, false);
block/bio.c:1787:	bio_put(bio);
block/bio.c-1788-	return;
--
block/bio.c=2039=void bioset_exit(struct bio_set *bs)
--
block/bio.c-2049-	if (bs->bio_slab)
block/bio.c:2050:		bio_put_slab(bs);
block/bio.c-2051-	bs->bio_slab = NULL;
]

93/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37428
							output: 30
							thoughts: 0
						

94/2 2026/09/28 17:52 tool grepper
0m Args:
map[Expression:bio_release_pages PathPrefix:block/bio.c]

Results:
map[Output:block/bio.c=1164=EXPORT_SYMBOL_GPL(bio_add_vmalloc);
block/bio.c-1165-
block/bio.c:1166:void __bio_release_pages(struct bio *bio, bool mark_dirty)
block/bio.c-1167-{
--
block/bio.c-1182-}
block/bio.c:1183:EXPORT_SYMBOL_GPL(__bio_release_pages);
block/bio.c-1184-
--
block/bio.c=1284=int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,
--
block/bio.c-1319-			if (ret == -EINVAL) {
block/bio.c:1320:				bio_release_pages(bio, false);
block/bio.c-1321-				bio_clear_flag(bio, BIO_PAGE_PINNED);
--
block/bio.c=1759=static void bio_dirty_fn(struct work_struct *work)
--
block/bio.c-1770-
block/bio.c:1771:		bio_release_pages(bio, true);
block/bio.c-1772-		bio_put(bio);
--
block/bio.c=1776=void bio_check_pages_dirty(struct bio *bio)
--
block/bio.c-1785-
block/bio.c:1786:	bio_release_pages(bio, false);
block/bio.c-1787-	bio_put(bio);
]

95/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37883
							output: 34
							thoughts: 0
						

96/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:1166 LineCount:20]

Results:
map[Contents:1166:	void __bio_release_pages(struct bio *bio, bool mark_dirty)
1167:	{
1168:		struct folio_iter fi;
1169:	
1170:		bio_for_each_folio_all(fi, bio) {
1171:			size_t nr_pages;
1172:	
1173:			if (mark_dirty) {
1174:				folio_lock(fi.folio);
1175:				folio_mark_dirty(fi.folio);
1176:				folio_unlock(fi.folio);
1177:			}
1178:			nr_pages = (fi.offset + fi.length - 1) / PAGE_SIZE -
1179:				   fi.offset / PAGE_SIZE + 1;
1180:			unpin_user_folio(fi.folio, nr_pages);
1181:		}
1182:	}
1183:	EXPORT_SYMBOL_GPL(__bio_release_pages);
1184:	
1185:	bool bio_iov_iter_set(struct bio *bio, const struct iov_iter *iter)
]

97/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38237
							output: 33
							thoughts: 0
						

98/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:835 LineCount:20]

Results:
map[Contents: 835:	 * bio_put - release a reference to a bio
 836:	 * @bio:   bio to release reference to
 837:	 *
 838:	 * Description:
 839:	 *   Put a reference to a &struct bio, either one you have gotten with
 840:	 *   bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it.
 841:	 **/
 842:	void bio_put(struct bio *bio)
 843:	{
 844:		if (unlikely(bio_flagged(bio, BIO_REFFED))) {
 845:			BUG_ON(!atomic_read(&bio->__bi_cnt));
 846:			if (!atomic_dec_and_test(&bio->__bi_cnt))
 847:				return;
 848:		}
 849:		if (bio->bi_opf & REQ_ALLOC_CACHE)
 850:			bio_put_percpu_cache(bio);
 851:		else
 852:			bio_free(bio);
 853:	}
 854:	EXPORT_SYMBOL(bio_put);
]

99/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38596
							output: 33
							thoughts: 0
						

100/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:800 LineCount:20]

Results:
map[Contents: 800:	static inline void bio_put_percpu_cache(struct bio *bio)
 801:	{
 802:		struct bio_alloc_cache *cache;
 803:	
 804:		cache = per_cpu_ptr(bio->bi_pool->cache, get_cpu());
 805:		if (READ_ONCE(cache->nr_irq) + cache->nr > ALLOC_CACHE_MAX)
 806:			goto out_free;
 807:	
 808:		if (in_task()) {
 809:			bio_uninit(bio);
 810:			bio->bi_next = cache->free_list;
 811:			/* Not necessary but helps not to iopoll already freed bios */
 812:			bio->bi_bdev = NULL;
 813:			cache->free_list = bio;
 814:			cache->nr++;
 815:			kmemleak_free(bio_slab_addr(bio));
 816:		} else if (in_hardirq()) {
 817:			lockdep_assert_irqs_disabled();
 818:	
 819:			bio_uninit(bio);
]

101/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38963
							output: 33
							thoughts: 0
						

102/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:750 LineCount:30]

Results:
map[Contents: 750:				       kmem_cache_size(bio->bi_pool->bio_slab),
 751:				       1, GFP_KERNEL);
 752:			bio_free(bio);
 753:			if (++i == nr)
 754:				break;
 755:		}
 756:		return i;
 757:	}
 758:	
 759:	static void bio_alloc_cache_prune(struct bio_alloc_cache *cache,
 760:					  unsigned int nr)
 761:	{
 762:		nr -= __bio_alloc_cache_prune(cache, nr);
 763:		if (!READ_ONCE(cache->free_list)) {
 764:			bio_alloc_irq_cache_splice(cache);
 765:			__bio_alloc_cache_prune(cache, nr);
 766:		}
 767:	}
 768:	
 769:	static int bio_cpu_dead(unsigned int cpu, struct hlist_node *node)
 770:	{
 771:		struct bio_set *bs;
 772:	
 773:		bs = hlist_entry_safe(node, struct bio_set, cpuhp_dead);
 774:		if (bs->cache) {
 775:			struct bio_alloc_cache *cache = per_cpu_ptr(bs->cache, cpu);
 776:	
 777:			bio_alloc_cache_prune(cache, -1U);
 778:		}
 779:		return 0;
]

103/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39446
							output: 33
							thoughts: 0
						

104/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:730 LineCount:20]

Results:
map[Contents: 730:		if (unlikely(bio->bi_iter.bi_sector >= maxsector))
 731:			return;
 732:	
 733:		maxsector -= bio->bi_iter.bi_sector;
 734:		if (likely((bio->bi_iter.bi_size >> 9) <= maxsector))
 735:			return;
 736:	
 737:		bio_truncate(bio, maxsector << 9);
 738:	}
 739:	
 740:	static int __bio_alloc_cache_prune(struct bio_alloc_cache *cache,
 741:					   unsigned int nr)
 742:	{
 743:		unsigned int i = 0;
 744:		struct bio *bio;
 745:	
 746:		while ((bio = cache->free_list) != NULL) {
 747:			cache->free_list = bio->bi_next;
 748:			cache->nr--;
 749:			kmemleak_alloc(bio_slab_addr(bio),
]

105/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39784
							output: 33
							thoughts: 0
						

106/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:710 LineCount:20]

Results:
map[Contents: 710:	 * This allows us to do IO even on the odd last sectors of a device, even if the
 711:	 * block size is some multiple of the physical sector size.
 712:	 *
 713:	 * We'll just truncate the bio to the size of the device, and clear the end of
 714:	 * the buffer head manually.  Truly out-of-range accesses will turn into actual
 715:	 * I/O errors, this only handles the "we need to be able to do I/O at the final
 716:	 * sector" case.
 717:	 */
 718:	void guard_bio_eod(struct bio *bio)
 719:	{
 720:		sector_t maxsector = bdev_nr_sectors(bio->bi_bdev);
 721:	
 722:		if (!maxsector)
 723:			return;
 724:	
 725:		/*
 726:		 * If the *whole* IO is past the end of the device,
 727:		 * let it through, and the IO layer will turn it into
 728:		 * an EIO.
 729:		 */
]

107/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40147
							output: 33
							thoughts: 0
						

108/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:690 LineCount:20]

Results:
map[Contents: 690:			}
 691:			done += bv.bv_len;
 692:		}
 693:	
 694:	 exit:
 695:		/*
 696:		 * Don't touch bvec table here and make it really immutable, since
 697:		 * fs bio user has to retrieve all pages via bio_for_each_segment_all
 698:		 * in its .end_bio() callback.
 699:		 *
 700:		 * It is enough to truncate bio by updating .bi_size since we can make
 701:		 * correct bvec with the updated .bi_size for drivers.
 702:		 */
 703:		bio->bi_iter.bi_size = new_size;
 704:	}
 705:	
 706:	/**
 707:	 * guard_bio_eod - truncate a BIO to fit the block device
 708:	 * @bio:	bio to truncate
 709:	 *
]

109/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40465
							output: 33
							thoughts: 0
						

110/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:670 LineCount:20]

Results:
map[Contents: 670:		unsigned int done = 0;
 671:		bool truncated = false;
 672:	
 673:		if (new_size >= bio->bi_iter.bi_size)
 674:			return;
 675:	
 676:		if (bio_op(bio) != REQ_OP_READ)
 677:			goto exit;
 678:	
 679:		bio_for_each_segment(bv, bio, iter) {
 680:			if (done + bv.bv_len > new_size) {
 681:				size_t offset;
 682:	
 683:				if (!truncated)
 684:					offset = new_size - done;
 685:				else
 686:					offset = 0;
 687:				memzero_page(bv.bv_page, bv.bv_offset + offset,
 688:					  bv.bv_len - offset);
 689:				truncated = true;
]

111/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40785
							output: 33
							thoughts: 0
						

112/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:650 LineCount:20]

Results:
map[Contents: 650:	
 651:		bio_for_each_segment(bv, bio, iter)
 652:			memzero_bvec(&bv);
 653:	}
 654:	EXPORT_SYMBOL(zero_fill_bio);
 655:	
 656:	/**
 657:	 * bio_truncate - truncate the bio to small size of @new_size
 658:	 * @bio:	the bio to be truncated
 659:	 * @new_size:	new size for truncating the bio
 660:	 *
 661:	 * Description:
 662:	 *   Truncate the bio to new size of @new_size. If bio_op(bio) is
 663:	 *   REQ_OP_READ, zero the truncated part. This function should only
 664:	 *   be used for handling corner cases, such as bio eod.
 665:	 */
 666:	static void bio_truncate(struct bio *bio, unsigned new_size)
 667:	{
 668:		struct bio_vec bv;
 669:		struct bvec_iter iter;
]

113/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41135
							output: 33
							thoughts: 0
						

114/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:630 LineCount:20]

Results:
map[Contents: 630:	 * function are not backed by a mempool can fail.  Do not use this function
 631:	 * for allocations in the file system I/O path.
 632:	 *
 633:	 * Returns: Pointer to new bio on success, NULL on failure.
 634:	 */
 635:	struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask)
 636:	{
 637:		struct bio *bio;
 638:	
 639:		if (nr_vecs > BIO_MAX_INLINE_VECS)
 640:			return NULL;
 641:		return kmalloc(sizeof(*bio) + nr_vecs * sizeof(struct bio_vec),
 642:				gfp_mask);
 643:	}
 644:	EXPORT_SYMBOL(bio_kmalloc);
 645:	
 646:	void zero_fill_bio(struct bio *bio)
 647:	{
 648:		struct bio_vec bv;
 649:		struct bvec_iter iter;
]

115/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41479
							output: 33
							thoughts: 0
						

116/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:610 LineCount:20]

Results:
map[Contents: 610:		if (nr_vecs && nr_vecs <= BIO_INLINE_VECS)
 611:			bio_init_inline(bio, bdev, nr_vecs, opf);
 612:		else
 613:			bio_init(bio, bdev, bvecs, nr_vecs, opf);
 614:		bio->bi_pool = bs;
 615:		return bio;
 616:	}
 617:	EXPORT_SYMBOL(bio_alloc_bioset);
 618:	
 619:	/**
 620:	 * bio_kmalloc - kmalloc a bio
 621:	 * @nr_vecs:	number of bio_vecs to allocate
 622:	 * @gfp_mask:   the GFP_* mask given to the slab allocator
 623:	 *
 624:	 * Use kmalloc to allocate a bio (including bvecs).  The bio must be initialized
 625:	 * using bio_init() before use.  To free a bio returned from this function use
 626:	 * kfree() after calling bio_uninit().  A bio returned from this function can
 627:	 * be reused by calling bio_uninit() before calling bio_init() again.
 628:	 *
 629:	 * Note that unlike bio_alloc() or bio_alloc_bioset() allocations from this
]

117/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41890
							output: 33
							thoughts: 0
						

118/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:590 LineCount:20]

Results:
map[Contents: 590:			 */
 591:			if (!(saved_gfp & __GFP_DIRECT_RECLAIM))
 592:				return NULL;
 593:	
 594:			punt_bios_to_rescuer(bs);
 595:	
 596:			/*
 597:			 * Don't rob the mempools by returning to the per-CPU cache if
 598:			 * we're tight on memory.
 599:			 */
 600:			opf &= ~REQ_ALLOC_CACHE;
 601:	
 602:			p = mempool_alloc(&bs->bio_pool, saved_gfp);
 603:			bio = p + bs->front_pad;
 604:			if (nr_vecs > BIO_INLINE_VECS) {
 605:				nr_vecs = BIO_MAX_VECS;
 606:				bvecs = mempool_alloc(&bs->bvec_pool, saved_gfp);
 607:			}
 608:		}
 609:	
]

119/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42221
							output: 33
							thoughts: 0
						

120/2 2026/09/28 17:52 tool read-file
0m Args:
map[File:block/bio.c FirstLine:570 LineCount:20]

Results:
map[Contents: 570:	
 571:		if (bio && nr_vecs > BIO_INLINE_VECS) {
 572:			struct biovec_slab *bvs = biovec_slab(nr_vecs);
 573:	
 574:			/*
 575:			 * Upgrade nr_vecs to take full advantage of the allocation.
 576:			 * We also rely on this in bio_free().
 577:			 */
 578:			nr_vecs = bvs->nr_vecs;
 579:			bvecs = kmem_cache_alloc(bvs->slab, gfp);
 580:			if (unlikely(!bvecs)) {
 581:				kmem_cache_free(bs->bio_slab, p);
 582:				bio = NULL;
 583:			}
 584:		}
 585:	
 586:		if (unlikely(!bio)) {
 587:			/*
 588:			 * Give up if we are not allow to sleep as non-blocking mempool
 589:			 * allocations just go back to the slab allocation.
]

121/2 2026/09/28 17:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42569
							output: 33
							thoughts: 0
						

122/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:550 LineCount:20]

Results:
map[Contents: 550:			/*
 551:			 * Set REQ_ALLOC_CACHE even if no cached bio is available to
 552:			 * return the allocated bio to the percpu cache when done.
 553:			 */
 554:			opf |= REQ_ALLOC_CACHE;
 555:			bio = bio_alloc_percpu_cache(bs);
 556:		} else {
 557:			opf &= ~REQ_ALLOC_CACHE;
 558:		}
 559:	
 560:		/*
 561:		 * For a bioset without a percpu cache, or when the percpu cache was
 562:		 * empty, try a slab allocation with optimistic GFP_ flags before
 563:		 * falling back to the mempool.
 564:		 */
 565:		if (!bio) {
 566:			p = kmem_cache_alloc(bs->bio_slab, gfp);
 567:			if (p)
 568:				bio = p + bs->front_pad;
 569:		}
]

123/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42900
							output: 33
							thoughts: 0
						

124/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:530 LineCount:20]

Results:
map[Contents: 530:	 * submit_bio_noacct() should be avoided - instead, use bio_set's front_pad
 531:	 * for per bio allocations.
 532:	 *
 533:	 * Returns: Pointer to new bio on success, NULL on failure.
 534:	 */
 535:	struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
 536:				     blk_opf_t opf, gfp_t gfp, struct bio_set *bs)
 537:	{
 538:		struct bio_vec *bvecs = NULL;
 539:		struct bio *bio = NULL;
 540:		gfp_t saved_gfp = gfp;
 541:		void *p;
 542:	
 543:		/* should not use nobvec bioset for nr_vecs > 0 */
 544:		if (WARN_ON_ONCE(!mempool_initialized(&bs->bvec_pool) && nr_vecs > 0))
 545:			return NULL;
 546:	
 547:		if (saved_gfp & __GFP_DIRECT_RECLAIM)
 548:			gfp = try_alloc_gfp(gfp);
 549:		if (bs->cache && nr_vecs <= BIO_INLINE_VECS) {
]

125/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43314
							output: 33
							thoughts: 0
						

126/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:510 LineCount:20]

Results:
map[Contents: 510:	 *
 511:	 * If %__GFP_DIRECT_RECLAIM is set then bio_alloc will always be able to
 512:	 * allocate a bio.  This is due to the mempool guarantees.  To make this work,
 513:	 * callers must never allocate more than 1 bio at a time from the general pool.
 514:	 * Callers that need to allocate more than 1 bio must always submit the
 515:	 * previously allocated bio for IO before attempting to allocate a new one.
 516:	 * Failure to do so can cause deadlocks under memory pressure.
 517:	 *
 518:	 * Note that when running under submit_bio_noacct() (i.e. any block driver),
 519:	 * bios are not submitted until after you return - see the code in
 520:	 * submit_bio_noacct() that converts recursion into iteration, to prevent
 521:	 * stack overflows.
 522:	 *
 523:	 * This would normally mean allocating multiple bios under submit_bio_noacct()
 524:	 * would be susceptible to deadlocks, but we have
 525:	 * deadlock avoidance code that resubmits any blocked bios from a rescuer
 526:	 * thread.
 527:	 *
 528:	 * However, we do not guarantee forward progress for allocations from other
 529:	 * mempools. Doing multiple allocations from the same mempool under
]

127/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43737
							output: 33
							thoughts: 0
						

128/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:490 LineCount:20]

Results:
map[Contents: 490:		bio = cache->free_list;
 491:		cache->free_list = bio->bi_next;
 492:		cache->nr--;
 493:		put_cpu();
 494:		bio->bi_pool = bs;
 495:	
 496:		kmemleak_alloc(bio_slab_addr(bio),
 497:			       kmem_cache_size(bs->bio_slab), 1, GFP_NOIO);
 498:		return bio;
 499:	}
 500:	
 501:	/**
 502:	 * bio_alloc_bioset - allocate a bio for I/O
 503:	 * @bdev:	block device to allocate the bio for (can be %NULL)
 504:	 * @nr_vecs:	number of bvecs to pre-allocate
 505:	 * @opf:	operation and flags for bio
 506:	 * @gfp:	the GFP_* mask given to the slab allocator
 507:	 * @bs:		the bio_set to allocate from.
 508:	 *
 509:	 * Allocate a bio from the mempools in @bs.
]

129/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 44102
							output: 33
							thoughts: 0
						

130/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:470 LineCount:20]

Results:
map[Contents: 470:		cache->free_list_irq = NULL;
 471:		cache->nr += cache->nr_irq;
 472:		cache->nr_irq = 0;
 473:		local_irq_restore(flags);
 474:	}
 475:	
 476:	static struct bio *bio_alloc_percpu_cache(struct bio_set *bs)
 477:	{
 478:		struct bio_alloc_cache *cache;
 479:		struct bio *bio;
 480:	
 481:		cache = per_cpu_ptr(bs->cache, get_cpu());
 482:		if (!cache->free_list) {
 483:			if (READ_ONCE(cache->nr_irq) >= ALLOC_CACHE_THRESHOLD)
 484:				bio_alloc_irq_cache_splice(cache);
 485:			if (!cache->free_list) {
 486:				put_cpu();
 487:				return NULL;
 488:			}
 489:		}
]

131/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 44443
							output: 33
							thoughts: 0
						

132/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:450 LineCount:20]

Results:
map[Contents: 450:			bio_list_add(bio->bi_pool == bs ? &punt : &nopunt, bio);
 451:		current->bio_list[1] = nopunt;
 452:	
 453:		spin_lock(&bs->rescue_lock);
 454:		bio_list_merge(&bs->rescue_list, &punt);
 455:		spin_unlock(&bs->rescue_lock);
 456:	
 457:		queue_work(bs->rescue_workqueue, &bs->rescue_work);
 458:	}
 459:	
 460:	static void bio_alloc_irq_cache_splice(struct bio_alloc_cache *cache)
 461:	{
 462:		unsigned long flags;
 463:	
 464:		/* cache->free_list must be empty */
 465:		if (WARN_ON_ONCE(cache->free_list))
 466:			return;
 467:	
 468:		local_irq_save(flags);
 469:		cache->free_list = cache->free_list_irq;
]

133/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 44796
							output: 33
							thoughts: 0
						

134/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:430 LineCount:20]

Results:
map[Contents: 430:		/*
 431:		 * In order to guarantee forward progress we must punt only bios that
 432:		 * were allocated from this bio_set; otherwise, if there was a bio on
 433:		 * there for a stacking driver higher up in the stack, processing it
 434:		 * could require allocating bios from this bio_set, and doing that from
 435:		 * our own rescuer would be bad.
 436:		 *
 437:		 * Since bio lists are singly linked, pop them all instead of trying to
 438:		 * remove from the middle of the list:
 439:		 */
 440:	
 441:		bio_list_init(&punt);
 442:		bio_list_init(&nopunt);
 443:	
 444:		while ((bio = bio_list_pop(&current->bio_list[0])))
 445:			bio_list_add(bio->bi_pool == bs ? &punt : &nopunt, bio);
 446:		current->bio_list[0] = nopunt;
 447:	
 448:		bio_list_init(&nopunt);
 449:		while ((bio = bio_list_pop(&current->bio_list[1])))
]

135/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45174
							output: 33
							thoughts: 0
						

136/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:410 LineCount:20]

Results:
map[Contents: 410:	 * This exposes us to a potential deadlock if we allocate multiple bios from the
 411:	 * same bio_set while running underneath submit_bio_noacct().  If we were to
 412:	 * allocate multiple bios (say a stacking block driver that was splitting bios),
 413:	 * we would deadlock if we exhausted the mempool's reserve.
 414:	 *
 415:	 * We solve this, and guarantee forward progress by punting the bios on
 416:	 * current->bio_list to a per bio_set rescuer workqueue before blocking to wait
 417:	 * for elements being returned to the mempool.
 418:	 */
 419:	static void punt_bios_to_rescuer(struct bio_set *bs)
 420:	{
 421:		struct bio_list punt, nopunt;
 422:		struct bio *bio;
 423:	
 424:		if (!current->bio_list || !bs->rescue_workqueue)
 425:			return;
 426:		if (bio_list_empty(&current->bio_list[0]) &&
 427:		    bio_list_empty(&current->bio_list[1]))
 428:			return;
 429:	
]

137/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45557
							output: 33
							thoughts: 0
						

138/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:390 LineCount:20]

Results:
map[Contents: 390:		struct bio_set *bs = container_of(work, struct bio_set, rescue_work);
 391:		struct bio *bio;
 392:	
 393:		while (1) {
 394:			spin_lock(&bs->rescue_lock);
 395:			bio = bio_list_pop(&bs->rescue_list);
 396:			spin_unlock(&bs->rescue_lock);
 397:	
 398:			if (!bio)
 399:				break;
 400:	
 401:			submit_bio_noacct(bio);
 402:		}
 403:	}
 404:	
 405:	/*
 406:	 * submit_bio_noacct() converts recursion to iteration; this means if we're
 407:	 * running beneath it, any bios we allocate and submit will not be submitted
 408:	 * (and thus freed) until after we return.
 409:	 *
]

139/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45875
							output: 33
							thoughts: 0
						

140/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:370 LineCount:20]

Results:
map[Contents: 370:	 * Return: @new.
 371:	 */
 372:	struct bio *bio_chain_and_submit(struct bio *prev, struct bio *new)
 373:	{
 374:		if (prev) {
 375:			bio_chain(prev, new);
 376:			submit_bio(prev);
 377:		}
 378:		return new;
 379:	}
 380:	
 381:	struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev,
 382:			unsigned int nr_pages, blk_opf_t opf, gfp_t gfp)
 383:	{
 384:		return bio_chain_and_submit(bio, bio_alloc(bdev, nr_pages, opf, gfp));
 385:	}
 386:	EXPORT_SYMBOL_GPL(blk_next_bio);
 387:	
 388:	static void bio_alloc_rescue(struct work_struct *work)
 389:	{
]

141/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46217
							output: 33
							thoughts: 0
						

142/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:350 LineCount:20]

Results:
map[Contents: 350:	 *
 351:	 * The caller must not set bi_private or bi_end_io in @bio.
 352:	 */
 353:	void bio_chain(struct bio *bio, struct bio *parent)
 354:	{
 355:		BUG_ON(bio->bi_private || bio->bi_end_io);
 356:	
 357:		bio->bi_private = parent;
 358:		bio->bi_end_io	= bio_chain_endio;
 359:		bio_inc_remaining(parent);
 360:	}
 361:	EXPORT_SYMBOL(bio_chain);
 362:	
 363:	/**
 364:	 * bio_chain_and_submit - submit a bio after chaining it to another one
 365:	 * @prev: bio to chain and submit
 366:	 * @new: bio to chain to
 367:	 *
 368:	 * If @prev is non-NULL, chain it to @new and submit it.
 369:	 *
]

143/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46554
							output: 33
							thoughts: 0
						

144/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:330 LineCount:20]

Results:
map[Contents: 330:		return parent;
 331:	}
 332:	
 333:	/*
 334:	 * This function should only be used as a flag and must never be called.
 335:	 * If execution reaches here, it indicates a serious programming error.
 336:	 */
 337:	static void bio_chain_endio(struct bio *bio)
 338:	{
 339:		BUG();
 340:	}
 341:	
 342:	/**
 343:	 * bio_chain - chain bio completions
 344:	 * @bio: the target bio
 345:	 * @parent: the parent bio of @bio
 346:	 *
 347:	 * The caller won't have a bi_end_io called when @bio completes - instead,
 348:	 * @parent's bi_end_io won't be called until both @parent and @bio have
 349:	 * completed; the chained bio will also be freed when it completes.
]

145/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 46877
							output: 33
							thoughts: 0
						

146/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:310 LineCount:20]

Results:
map[Contents: 310:		WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
 311:		WARN_ON_ONCE(bio_integrity(bio));
 312:		WARN_ON_ONCE(bio_has_crypt_ctx(bio));
 313:	
 314:		bio_reset(bio, bio->bi_bdev, opf);
 315:		for (i = 0; i < vcnt; i++)
 316:			bio->bi_iter.bi_size += bio->bi_io_vec[i].bv_len;
 317:		bio->bi_vcnt = vcnt;
 318:		bio->bi_private = private;
 319:		bio->bi_end_io = end_io;
 320:	}
 321:	EXPORT_SYMBOL_GPL(bio_reuse);
 322:	
 323:	static struct bio *__bio_chain_endio(struct bio *bio)
 324:	{
 325:		struct bio *parent = bio->bi_private;
 326:	
 327:		if (bio->bi_status && !parent->bi_status)
 328:			parent->bi_status = bio->bi_status;
 329:		bio_put(bio);
]

147/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47270
							output: 33
							thoughts: 0
						

148/2 2026/09/28 17:53 tool read-file
0m Args:
map[File:block/bio.c FirstLine:290 LineCount:20]

Results:
map[Contents: 290:	 * bio_reuse - reuse a bio with the payload left intact
 291:	 * @bio:	bio to reuse
 292:	 * @opf:	operation and flags for the next I/O
 293:	 *
 294:	 * Allow reusing an existing bio for another operation with all set up
 295:	 * fields including the payload, device and end_io handler left intact.
 296:	 *
 297:	 * Typically used when @bio is first used to read data which is then written
 298:	 * to another location without modification.  @bio must not be in-flight and
 299:	 * owned by the caller.  Can't be used for cloned bios.
 300:	 *
 301:	 * Note: Can't be used when @bio has integrity or blk-crypto contexts for now.
 302:	 * Feel free to add that support when you need it, though.
 303:	 */
 304:	void bio_reuse(struct bio *bio, blk_opf_t opf)
 305:	{
 306:		unsigned short vcnt = bio->bi_vcnt, i;
 307:		bio_end_io_t *end_io = bio->bi_end_io;
 308:		void *private = bio->bi_private;
 309:	
]

149/2 2026/09/28 17:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47672
							output: 33
							thoughts: 0
						

150/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:270 LineCount:20]

Results:
map[Contents: 270:	 *   allocated bio returned bio bio_alloc_bioset() - the only fields that are
 271:	 *   preserved are the ones that are initialized by bio_alloc_bioset(). See
 272:	 *   comment in struct bio.
 273:	 */
 274:	void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf)
 275:	{
 276:		struct bio_vec          *bv = bio->bi_io_vec;
 277:	
 278:		bio_uninit(bio);
 279:		memset(bio, 0, BIO_RESET_BYTES);
 280:		atomic_set(&bio->__bi_remaining, 1);
 281:		bio->bi_io_vec = bv;
 282:		bio->bi_bdev = bdev;
 283:		if (bio->bi_bdev)
 284:			bio_associate_blkg(bio);
 285:		bio->bi_opf = opf;
 286:	}
 287:	EXPORT_SYMBOL(bio_reset);
 288:	
 289:	/**
]

151/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48037
							output: 33
							thoughts: 0
						

152/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:250 LineCount:20]

Results:
map[Contents: 250:		bio->bi_vcnt = 0;
 251:	
 252:		atomic_set(&bio->__bi_remaining, 1);
 253:		atomic_set(&bio->__bi_cnt, 1);
 254:		bio->bi_cookie = BLK_QC_T_NONE;
 255:	
 256:		bio->bi_max_vecs = max_vecs;
 257:		bio->bi_io_vec = table;
 258:		bio->bi_pool = NULL;
 259:	}
 260:	EXPORT_SYMBOL(bio_init);
 261:	
 262:	/**
 263:	 * bio_reset - reinitialize a bio
 264:	 * @bio:	bio to reset
 265:	 * @bdev:	block device to use the bio for
 266:	 * @opf:	operation and flags for bio
 267:	 *
 268:	 * Description:
 269:	 *   After calling bio_reset(), @bio will be in the same state as a freshly
]

153/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48379
							output: 33
							thoughts: 0
						

154/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:230 LineCount:20]

Results:
map[Contents: 230:		bio->bi_iter.bi_size = 0;
 231:		bio->bi_iter.bi_idx = 0;
 232:		bio->bi_iter.bi_offset = 0;
 233:		bio->bi_end_io = NULL;
 234:		bio->bi_private = NULL;
 235:	#ifdef CONFIG_BLK_CGROUP
 236:		bio->bi_blkg = NULL;
 237:		bio->issue_time_ns = 0;
 238:		if (bdev)
 239:			bio_associate_blkg(bio);
 240:	#ifdef CONFIG_BLK_CGROUP_IOCOST
 241:		bio->bi_iocost_cost = 0;
 242:	#endif
 243:	#endif
 244:	#ifdef CONFIG_BLK_INLINE_ENCRYPTION
 245:		bio->bi_crypt_context = NULL;
 246:	#endif
 247:	#ifdef CONFIG_BLK_DEV_INTEGRITY
 248:		bio->bi_integrity = NULL;
 249:	#endif
]

155/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48738
							output: 33
							thoughts: 0
						

156/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:210 LineCount:20]

Results:
map[Contents: 210:	}
 211:	
 212:	/*
 213:	 * Users of this function have their own bio allocation. Subsequently,
 214:	 * they must remember to pair any call to bio_init() with bio_uninit()
 215:	 * when IO has completed, or when the bio is released.
 216:	 */
 217:	void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table,
 218:		      unsigned short max_vecs, blk_opf_t opf)
 219:	{
 220:		bio->bi_next = NULL;
 221:		bio->bi_bdev = bdev;
 222:		bio->bi_opf = opf;
 223:		bio->bi_flags = 0;
 224:		bio->bi_ioprio = 0;
 225:		bio->bi_write_hint = 0;
 226:		bio->bi_write_stream = 0;
 227:		bio->bi_status = 0;
 228:		bio->bi_bvec_gap_bit = 0;
 229:		bio->bi_iter.bi_sector = 0;
]

157/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49119
							output: 33
							thoughts: 0
						

158/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:190 LineCount:20]

Results:
map[Contents: 190:	
 191:		bio_crypt_free_ctx(bio);
 192:	}
 193:	EXPORT_SYMBOL(bio_uninit);
 194:	
 195:	static void bio_free(struct bio *bio)
 196:	{
 197:		struct bio_set *bs = bio->bi_pool;
 198:		void *p = bio;
 199:	
 200:		WARN_ON_ONCE(!bs);
 201:		WARN_ON_ONCE(bio->bi_max_vecs > BIO_MAX_VECS);
 202:	
 203:		bio_uninit(bio);
 204:		if (bio->bi_max_vecs == BIO_MAX_VECS)
 205:			mempool_free(bio->bi_io_vec, &bs->bvec_pool);
 206:		else if (bio->bi_max_vecs > BIO_INLINE_VECS)
 207:			kmem_cache_free(biovec_slab(bio->bi_max_vecs)->slab,
 208:					bio->bi_io_vec);
 209:		mempool_free(p - bs->front_pad, &bs->bio_pool);
]

159/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49507
							output: 33
							thoughts: 0
						

160/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:170 LineCount:20]

Results:
map[Contents: 170:	/*
 171:	 * Make the first allocation restricted and don't dump info on allocation
 172:	 * failures, since we'll fall back to the mempool in case of failure.
 173:	 */
 174:	static inline gfp_t try_alloc_gfp(gfp_t gfp)
 175:	{
 176:		return (gfp & ~(__GFP_DIRECT_RECLAIM | __GFP_IO)) |
 177:			__GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_NOWARN;
 178:	}
 179:	
 180:	void bio_uninit(struct bio *bio)
 181:	{
 182:	#ifdef CONFIG_BLK_CGROUP
 183:		if (bio->bi_blkg) {
 184:			blkg_put(bio->bi_blkg);
 185:			bio->bi_blkg = NULL;
 186:		}
 187:	#endif
 188:		if (bio_integrity(bio))
 189:			bio_integrity_free(bio);
]

161/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49859
							output: 33
							thoughts: 0
						

162/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:150 LineCount:20]

Results:
map[Contents: 150:		bslab = xa_load(&bio_slabs, slab_size);
 151:		if (WARN(!bslab, KERN_ERR "bio: unable to find slab!\n"))
 152:			goto out;
 153:	
 154:		WARN_ON_ONCE(bslab->slab != bs->bio_slab);
 155:	
 156:		WARN_ON(!bslab->slab_ref);
 157:	
 158:		if (--bslab->slab_ref)
 159:			goto out;
 160:	
 161:		xa_erase(&bio_slabs, slab_size);
 162:	
 163:		kmem_cache_destroy(bslab->slab);
 164:		kfree(bslab);
 165:	
 166:	out:
 167:		mutex_unlock(&bio_slab_lock);
 168:	}
 169:	
]

163/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50170
							output: 33
							thoughts: 0
						

164/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:130 LineCount:20]

Results:
map[Contents: 130:		mutex_lock(&bio_slab_lock);
 131:		bslab = xa_load(&bio_slabs, size);
 132:		if (bslab)
 133:			bslab->slab_ref++;
 134:		else
 135:			bslab = create_bio_slab(size);
 136:		mutex_unlock(&bio_slab_lock);
 137:	
 138:		if (bslab)
 139:			return bslab->slab;
 140:		return NULL;
 141:	}
 142:	
 143:	static void bio_put_slab(struct bio_set *bs)
 144:	{
 145:		struct bio_slab *bslab = NULL;
 146:		unsigned int slab_size = bs_bio_slab_size(bs);
 147:	
 148:		mutex_lock(&bio_slab_lock);
 149:	
]

165/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50481
							output: 33
							thoughts: 0
						

166/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:110 LineCount:20]

Results:
map[Contents: 110:	fail_alloc_slab:
 111:		kfree(bslab);
 112:		return NULL;
 113:	}
 114:	
 115:	static inline unsigned int bs_bio_slab_size(struct bio_set *bs)
 116:	{
 117:		return bs->front_pad + sizeof(struct bio) + bs->back_pad;
 118:	}
 119:	
 120:	static inline void *bio_slab_addr(struct bio *bio)
 121:	{
 122:		return (void *)bio - bio->bi_pool->front_pad;
 123:	}
 124:	
 125:	static struct kmem_cache *bio_find_or_create_slab(struct bio_set *bs)
 126:	{
 127:		unsigned int size = bs_bio_slab_size(bs);
 128:		struct bio_slab *bslab;
 129:	
]

167/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50803
							output: 37
							thoughts: 0
						

168/2 2026/09/28 17:54 tool grepper
0m Args:
map[Expression:bio_add_page PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=573=static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-608-
fs/ocfs2/cluster/heartbeat.c:609:		len = bio_add_page(bio, page, vec_len, vec_start);
fs/ocfs2/cluster/heartbeat.c-610-		if (len != vec_len) break;
--
fs/ocfs2/cluster/heartbeat.c=642=static int o2hb_issue_node_write(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-671-	vec_len = PAGE_SIZE / spp;
fs/ocfs2/cluster/heartbeat.c:672:	__bio_add_page(bio, page, vec_len, vec_start);
fs/ocfs2/cluster/heartbeat.c-673-
]

169/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51109
							output: 30
							thoughts: 0
						

170/2 2026/09/28 17:54 tool grepper
0m Args:
map[Expression:bio_add_page PathPrefix:block/bio.c]

Results:
map[Output:block/bio.c=982=bool bvec_try_merge_hw_page(struct request_queue *q, struct bio_vec *bv,
--
block/bio.c-996-/**
block/bio.c:997: * __bio_add_page - add page(s) to a bio in a new segment
block/bio.c-998- * @bio: destination bio
--
block/bio.c-1005- */
block/bio.c:1006:void __bio_add_page(struct bio *bio, struct page *page,
block/bio.c-1007-		unsigned int len, unsigned int off)
--
block/bio.c-1018-}
block/bio.c:1019:EXPORT_SYMBOL_GPL(__bio_add_page);
block/bio.c-1020-
--
block/bio.c=1031=void bio_add_virt_nofail(struct bio *bio, void *vaddr, unsigned len)
block/bio.c-1032-{
block/bio.c:1033:	__bio_add_page(bio, virt_to_page(vaddr), len, offset_in_page(vaddr));
block/bio.c-1034-}
block/bio.c=1035=EXPORT_SYMBOL_GPL(bio_add_virt_nofail);
--
block/bio.c-1037-/**
block/bio.c:1038: *	bio_add_page	-	attempt to add page(s) to bio
block/bio.c-1039- *	@bio: destination bio
--
block/bio.c-1046- */
block/bio.c:1047:int bio_add_page(struct bio *bio, struct page *page,
block/bio.c-1048-		 unsigned int len, unsigned int offset)
--
block/bio.c-1070-		return 0;
block/bio.c:1071:	__bio_add_page(bio, page, len, offset);
block/bio.c-1072-	return len;
block/bio.c-1073-}
block/bio.c:1074:EXPORT_SYMBOL(bio_add_page);
block/bio.c-1075-
block/bio.c=1076=void bio_add_folio_nofail(struct bio *bio, struct folio *folio, size_t len,
--
block/bio.c-1081-	WARN_ON_ONCE(len > BIO_MAX_SIZE);
block/bio.c:1082:	__bio_add_page(bio, folio_page(folio, nr), len, off % PAGE_SIZE);
block/bio.c-1083-}
block/bio.c=1084=EXPORT_SYMBOL_GPL(bio_add_folio_nofail);
--
block/bio.c-1093- * Filesystems that use folios can call this function instead of calling
block/bio.c:1094: * bio_add_page() for each page in the folio.  If @off is bigger than
block/bio.c-1095- * PAGE_SIZE, this function can create a bio_vec that starts in a page
--
block/bio.c=1100=bool bio_add_folio(struct bio *bio, struct folio *folio, size_t len,
--
block/bio.c-1106-		return false;
block/bio.c:1107:	return bio_add_page(bio, folio_page(folio, nr), len, off % PAGE_SIZE) > 0;
block/bio.c-1108-}
--
block/bio.c=1125=unsigned int bio_add_vmalloc_chunk(struct bio *bio, void *vaddr, unsigned len)
--
block/bio.c-1129-	len = min(len, PAGE_SIZE - offset);
block/bio.c:1130:	if (bio_add_page(bio, vmalloc_to_page(vaddr), len, offset) < len)
block/bio.c-1131-		return 0;
]

171/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52203
							output: 34
							thoughts: 0
						

172/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:1047 LineCount:20]

Results:
map[Contents:1047:	int bio_add_page(struct bio *bio, struct page *page,
1048:			 unsigned int len, unsigned int offset)
1049:	{
1050:		if (WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED)))
1051:			return 0;
1052:		if (WARN_ON_ONCE(len == 0))
1053:			return 0;
1054:		if (bio->bi_iter.bi_size > BIO_MAX_SIZE - len)
1055:			return 0;
1056:	
1057:		if (bio->bi_vcnt > 0) {
1058:			struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];
1059:	
1060:			if (!zone_device_pages_compatible(bv->bv_page, page))
1061:				return 0;
1062:			if (zone_device_pages_have_same_pgmap(bv->bv_page, page) &&
1063:			    bvec_try_merge_page(bv, page, len, offset)) {
1064:				bio->bi_iter.bi_size += len;
1065:				return len;
1066:			}
]

173/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52604
							output: 34
							thoughts: 0
						

174/2 2026/09/28 17:54 tool read-file
0m Args:
map[File:block/bio.c FirstLine:1006 LineCount:20]

Results:
map[Contents:1006:	void __bio_add_page(struct bio *bio, struct page *page,
1007:			unsigned int len, unsigned int off)
1008:	{
1009:		WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
1010:		WARN_ON_ONCE(bio_full(bio, len));
1011:	
1012:		if (is_pci_p2pdma_page(page))
1013:			bio->bi_opf |= REQ_NOMERGE;
1014:	
1015:		bvec_set_page(&bio->bi_io_vec[bio->bi_vcnt], page, len, off);
1016:		bio->bi_iter.bi_size += len;
1017:		bio->bi_vcnt++;
1018:	}
1019:	EXPORT_SYMBOL_GPL(__bio_add_page);
1020:	
1021:	/**
1022:	 * bio_add_virt_nofail - add data in the direct kernel mapping to a bio
1023:	 * @bio: destination bio
1024:	 * @vaddr: data to add
1025:	 * @len: length of the data to add, may cross pages
]

175/2 2026/09/28 17:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52992
							output: 405
							thoughts: 0
						

176/2 2026/09/28 17:54 tool codeexpert
27m Args:
map[Question:In the context of the `o2hb_region_dev_store` function in `fs/ocfs2/cluster/heartbeat.c`, the syzkaller reproducer triggers a `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` in `put_page_testzero` during `__free_page(page)` called from `o2hb_unmap_slot_data`.

The pages are allocated in `o2hb_map_slot_data` using `alloc_page(GFP_KERNEL)` and stored in `reg->hr_slot_data`.
Then `o2hb_populate_slot_data` is called, which calls `o2hb_read_slots`, which calls `o2hb_setup_one_bio`.
`o2hb_setup_one_bio` adds the pages to a bio using `bio_add_page`.
The bio is submitted with `submit_bio(bio)`.
The bio completion handler is `o2hb_bio_end_io`, which calls `bio_put(bio)`.

If the block device is an unbound loop device (as in the reproducer), the I/O fails.
Then `o2hb_populate_slot_data` returns an error, and `o2hb_region_dev_store` jumps to `out:` and calls `o2hb_unmap_slot_data`, which calls `__free_page(page)`.

Why is the page reference count 0 when `__free_page` is called? Does `bio_put` or the block layer decrement the page reference count for pages added with `bio_add_page`? Or does `bio_add_page` not increment the reference count, but something else decrements it?]

Results:
map[Answer:Based on analysis of the kernel source code in `fs/ocfs2/cluster/heartbeat.c`, `block/bio.c`, `block/blk-mq.c`, and `drivers/block/loop.c`:

### 1. Does `bio_put` or the block layer decrement the page reference count?
**No.**
- `bio_add_page()` (and `__bio_add_page()`) merely assigns the page pointer, offset, and length into the bio's `bio_vec` array (`bvec_set_page`). It does **not** call `get_page()` or take a reference. It assumes the caller already owns and will maintain the reference to the page across the lifespan of the bio.
- `bio_put()` only manages the reference count of the bio itself (`bio->__bi_cnt`). When the bio reference count drops to 0, `bio_free()` releases the `struct bio` and its `bio_vec` array back to their mempools/slabs via `bio_uninit()`. It does **not** touch or decrement the reference counts of the pages referenced in `bi_io_vec`.
- The block layer request/bio completion path (`blk_mq_end_request()`, `blk_update_request()`, `bio_endio()`) does **not** touch page reference counts. When an unbound loop device rejects the request (`loop_queue_rq()` returns `BLK_STS_IOERR`), the block layer ends the bio with that error status, invoking `o2hb_bio_end_io()`. That callback simply decrements the wait context counter and calls `bio_put(bio)`.

### 2. Why is the page reference count 0 when `__free_page` is called?
- When a page is allocated via `alloc_page(GFP_KERNEL)`, its reference count is initialized to 1.
- In a strictly sequential, single-threaded execution, since neither `bio_add_page()`, the block layer, nor `bio_put()` modifies the page reference count, the refcount remains 1 until `o2hb_unmap_slot_data()` calls `__free_page(page)`. There, `put_page_testzero()` decrements the count from 1 to 0 and frees the page cleanly.
- For `put_page_testzero(page)` to hit `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`, `__free_page()` (or `put_page()`) must have already been called on that page earlier, dropping its count to 0 (a double-free).
- In `o2hb_region_dev_store()`, there is no mutex or lock serializing concurrent operations on the same configfs heartbeat region item. If a syzkaller reproducer performs concurrent operations (e.g. concurrent writes to the `dev` attribute or concurrent configfs release / teardown via `rmdir` calling `o2hb_region_release()`):
  - Two threads can invoke `o2hb_unmap_slot_data()` on the same `reg->hr_slot_data` pages.
  - The first thread calls `__free_page(page)`, dropping the reference count from 1 to 0 and freeing the page.
  - The second thread (before or while `reg->hr_slot_data[i]` is cleared) calls `__free_page(page)` on the already-freed page, where `page_ref_count(page) == 0`, triggering `VM_BUG_ON_PAGE()`.

### Unverified Parts / Caveats
- The exact concurrency sequence in the specific syzkaller reproducer (e.g. concurrent `write` calls to `dev` vs. a race between `dev_store` failure and `o2hb_region_release` from item teardown) was inferred from the lack of locking in `heartbeat.c`, as the reproducer source code itself was not provided. However, the block layer and bio lifecycle behaviors were verified directly against the kernel source.]

177/3 2026/09/28 17:54 agent codeexpert
27m Model:
core

Results:
map[Answer:Based on analysis of the kernel source code in `fs/ocfs2/cluster/heartbeat.c`, `block/bio.c`, `block/blk-mq.c`, and `drivers/block/loop.c`:

### 1. Does `bio_put` or the block layer decrement the page reference count?
**No.**
- `bio_add_page()` (and `__bio_add_page()`) merely assigns the page pointer, offset, and length into the bio's `bio_vec` array (`bvec_set_page`). It does **not** call `get_page()` or take a reference. It assumes the caller already owns and will maintain the reference to the page across the lifespan of the bio.
- `bio_put()` only manages the reference count of the bio itself (`bio->__bi_cnt`). When the bio reference count drops to 0, `bio_free()` releases the `struct bio` and its `bio_vec` array back to their mempools/slabs via `bio_uninit()`. It does **not** touch or decrement the reference counts of the pages referenced in `bi_io_vec`.
- The block layer request/bio completion path (`blk_mq_end_request()`, `blk_update_request()`, `bio_endio()`) does **not** touch page reference counts. When an unbound loop device rejects the request (`loop_queue_rq()` returns `BLK_STS_IOERR`), the block layer ends the bio with that error status, invoking `o2hb_bio_end_io()`. That callback simply decrements the wait context counter and calls `bio_put(bio)`.

### 2. Why is the page reference count 0 when `__free_page` is called?
- When a page is allocated via `alloc_page(GFP_KERNEL)`, its reference count is initialized to 1.
- In a strictly sequential, single-threaded execution, since neither `bio_add_page()`, the block layer, nor `bio_put()` modifies the page reference count, the refcount remains 1 until `o2hb_unmap_slot_data()` calls `__free_page(page)`. There, `put_page_testzero()` decrements the count from 1 to 0 and frees the page cleanly.
- For `put_page_testzero(page)` to hit `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`, `__free_page()` (or `put_page()`) must have already been called on that page earlier, dropping its count to 0 (a double-free).
- In `o2hb_region_dev_store()`, there is no mutex or lock serializing concurrent operations on the same configfs heartbeat region item. If a syzkaller reproducer performs concurrent operations (e.g. concurrent writes to the `dev` attribute or concurrent configfs release / teardown via `rmdir` calling `o2hb_region_release()`):
  - Two threads can invoke `o2hb_unmap_slot_data()` on the same `reg->hr_slot_data` pages.
  - The first thread calls `__free_page(page)`, dropping the reference count from 1 to 0 and freeing the page.
  - The second thread (before or while `reg->hr_slot_data[i]` is cleared) calls `__free_page(page)` on the already-freed page, where `page_ref_count(page) == 0`, triggering `VM_BUG_ON_PAGE()`.

### Unverified Parts / Caveats
- The exact concurrency sequence in the specific syzkaller reproducer (e.g. concurrent `write` calls to `dev` vs. a race between `dev_store` failure and `o2hb_region_release` from item teardown) was inferred from the lack of locking in `heartbeat.c`, as the reproducer source code itself was not provided. However, the block layer and bio lifecycle behaviors were verified directly against the kernel source.]

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

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

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
   once you have located the relevant code or definitions. If a symbol or function cannot
   be found after targeted searches, conclude with the best available information rather
   than continuing repetitive searches.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.

Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.

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


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

Prompt:
In the context of the `o2hb_region_dev_store` function in `fs/ocfs2/cluster/heartbeat.c`, the syzkaller reproducer triggers a `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` in `put_page_testzero` during `__free_page(page)` called from `o2hb_unmap_slot_data`.

The pages are allocated in `o2hb_map_slot_data` using `alloc_page(GFP_KERNEL)` and stored in `reg->hr_slot_data`.
Then `o2hb_populate_slot_data` is called, which calls `o2hb_read_slots`, which calls `o2hb_setup_one_bio`.
`o2hb_setup_one_bio` adds the pages to a bio using `bio_add_page`.
The bio is submitted with `submit_bio(bio)`.
The bio completion handler is `o2hb_bio_end_io`, which calls `bio_put(bio)`.

If the block device is an unbound loop device (as in the reproducer), the I/O fails.
Then `o2hb_populate_slot_data` returns an error, and `o2hb_region_dev_store` jumps to `out:` and calls `o2hb_unmap_slot_data`, which calls `__free_page(page)`.

Why is the page reference count 0 when `__free_page` is called? Does `bio_put` or the block layer decrement the page reference count for pages added with `bio_add_page`? Or does `bio_add_page` not increment the reference count, but something else decrements it?

178/4 2026/09/28 17:54 llm codeexpert
22m Model:
gemini-3.8-flash

Tokens:
							input: 4537
							output: 179
							thoughts: 449
						

Thoughts:
**Analyzing a Subtle Memory Management Issue in OCFS2 Heartbeat**

Okay, this is an interesting one. The core of the problem, as I understand it, stems from a `VM_BUG_ON_PAGE` in `put_page_testzero` during a `__free_page` call within `o2hb_unmap_slot_data`. This happens in the context of the `o2hb_region_dev_store` function, triggered by a syzkaller reproducer. The reproducer seems to involve an unbound loop device, which is important. The immediate question is why the page's reference count is zero when it's being freed.

Let me break down the process in my mind. Pages are allocated using `alloc_page(GFP_KERNEL)` in `o2hb_map_slot_data` and stored in `reg->hr_slot_data`. Then `o2hb_populate_slot_data` is called. Within that, we have a chain of calls: `o2hb_read_slots`, and then `o2hb_setup_one_bio`. The crucial part is that `o2hb_setup_one_bio` adds these pages to a `bio` using `bio_add_page`. The `bio` is then submitted using `submit_bio(bio)`. The completion handler, `o2hb_bio_end_io`, calls `bio_put(bio)`.

The crucial detail is that because we're using an unbound loop device in the reproducer, the I/O fails. This leads to an error return from `o2hb_populate_slot_data`, and a jump to `out:` in `o2hb_region_dev_store`. This in turn leads to a call to `o2hb_unmap_slot_data`, which triggers the troublesome `__free_page(page)`.

So, the issue is that by the time `__free_page` is called, the reference count of the page is zero. This tells me I need to understand the lifecycle of pages added to a bio. Does `bio_put` decrement the page reference count? Does the block layer handle this? Or is `bio_add_page` not actually incrementing the count in the first place, and something else is responsible for the decrement? I need to clarify the interaction between `bio_add_page`, `submit_bio`, `o2hb_bio_end_io`, and `bio_put`, especially in the case of I/O failures. I will need to delve into the `fs/ocfs2/cluster/heartbeat.c` code to trace how those functions interact and identify what's mismanaging the page reference count. I'm going to start with the `bio_add_page` and `bio_put` functions and their surrounding context. I am going to use my tools like `codesearch-definition-source`, `read-file` or `grepper` to inspect the code more closely.



179/4 2026/09/28 18:16 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_region_dev_store]

Results:
map[SourceCode:1866:	/*
1867:	 * this is acting as commit; we set up all of hr_bdev_file and hr_task or
1868:	 * nothing
1869:	 */
1870:	static ssize_t o2hb_region_dev_store(struct config_item *item,
1871:					     const char *page,
1872:					     size_t count)
1873:	{
1874:		struct o2hb_region *reg = to_o2hb_region(item);
1875:		struct task_struct *hb_task;
1876:		long fd;
1877:		int sectsize;
1878:		char *p = (char *)page;
1879:		ssize_t ret = -EINVAL;
1880:		int live_threshold;
1881:	
1882:		if (reg->hr_bdev_file)
1883:			return -EINVAL;
1884:	
1885:		/* We can't heartbeat without having had our node number
1886:		 * configured yet. */
1887:		reg->hr_node_num = o2nm_this_node();
1888:		if (reg->hr_node_num == O2NM_MAX_NODES)
1889:			return -EINVAL;
1890:	
1891:		ret = kstrtol(p, 0, &fd);
1892:		if (ret < 0)
1893:			return -EINVAL;
1894:	
1895:		if (fd < 0 || fd >= INT_MAX)
1896:			return -EINVAL;
1897:	
1898:		CLASS(fd, f)(fd);
1899:		if (fd_empty(f))
1900:			return -EINVAL;
1901:	
1902:		if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
1903:		    reg->hr_block_bytes == 0)
1904:			return -EINVAL;
1905:	
1906:		if (!S_ISBLK(fd_file(f)->f_mapping->host->i_mode))
1907:			return -EINVAL;
1908:	
1909:		reg->hr_bdev_file = bdev_file_open_by_dev(fd_file(f)->f_mapping->host->i_rdev,
1910:				BLK_OPEN_WRITE | BLK_OPEN_READ, NULL, NULL);
1911:		if (IS_ERR(reg->hr_bdev_file)) {
1912:			ret = PTR_ERR(reg->hr_bdev_file);
1913:			reg->hr_bdev_file = NULL;
1914:			return ret;
1915:		}
1916:	
1917:		sectsize = bdev_logical_block_size(reg_bdev(reg));
1918:		if (sectsize != reg->hr_block_bytes) {
1919:			mlog(ML_ERROR,
1920:			     "blocksize %u incorrect for device, expected %d",
1921:			     reg->hr_block_bytes, sectsize);
1922:			ret = -EINVAL;
1923:			goto out;
1924:		}
1925:	
1926:		reg->hr_aborted_start = 0;
1927:		reg->hr_node_deleted = 0;
1928:		o2hb_init_region_params(reg);
1929:	
1930:		/* Generation of zero is invalid */
1931:		do {
1932:			get_random_bytes(&reg->hr_generation,
1933:					 sizeof(reg->hr_generation));
1934:		} while (reg->hr_generation == 0);
1935:	
1936:		ret = o2hb_map_slot_data(reg);
1937:		if (ret) {
1938:			mlog_errno(ret);
1939:			goto out;
1940:		}
1941:	
1942:		ret = o2hb_populate_slot_data(reg);
1943:		if (ret) {
1944:			mlog_errno(ret);
1945:			goto out;
1946:		}
1947:	
1948:		/*
1949:		 * A node is considered live after it has beat LIVE_THRESHOLD
1950:		 * times.  We're not steady until we've given them a chance
1951:		 * _after_ our first read.
1952:		 * The default threshold is bare minimum so as to limit the delay
1953:		 * during mounts. For global heartbeat, the threshold doubled for the
1954:		 * first region.
1955:		 */
1956:		live_threshold = O2HB_LIVE_THRESHOLD;
1957:		if (o2hb_global_heartbeat_active()) {
1958:			spin_lock(&o2hb_live_lock);
1959:			if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1)
1960:				live_threshold <<= 1;
1961:			spin_unlock(&o2hb_live_lock);
1962:		}
1963:		++live_threshold;
1964:		atomic_set(&reg->hr_steady_iterations, live_threshold);
1965:		/* unsteady_iterations is triple the steady_iterations */
1966:		atomic_set(&reg->hr_unsteady_iterations, (live_threshold * 3));
1967:		o2hb_set_region_stopping(reg, false);
1968:	
1969:		hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
1970:				      reg->hr_item.ci_name);
1971:		if (IS_ERR(hb_task)) {
1972:			ret = PTR_ERR(hb_task);
1973:			mlog_errno(ret);
1974:			goto out;
1975:		}
1976:	
1977:		spin_lock(&o2hb_live_lock);
1978:		reg->hr_task = hb_task;
1979:		spin_unlock(&o2hb_live_lock);
1980:	
1981:		ret = wait_event_interruptible(o2hb_steady_queue,
1982:					atomic_read(&reg->hr_steady_iterations) == 0 ||
1983:					reg->hr_node_deleted);
1984:		if (ret) {
1985:			atomic_set(&reg->hr_steady_iterations, 0);
1986:			reg->hr_aborted_start = 1;
1987:		}
1988:	
1989:		if (reg->hr_aborted_start) {
1990:			ret = -EIO;
1991:			goto out;
1992:		}
1993:	
1994:		if (reg->hr_node_deleted) {
1995:			ret = -EINVAL;
1996:			goto out;
1997:		}
1998:	
1999:		/* Ok, we were woken.  Make sure it wasn't by drop_item() */
2000:		spin_lock(&o2hb_live_lock);
2001:		hb_task = reg->hr_task;
2002:		if (o2hb_global_heartbeat_active())
2003:			set_bit(reg->hr_region_num, o2hb_live_region_bitmap);
2004:		spin_unlock(&o2hb_live_lock);
2005:	
2006:		if (hb_task)
2007:			ret = count;
2008:		else
2009:			ret = -EIO;
2010:	
2011:		if (hb_task && o2hb_global_heartbeat_active())
2012:			printk(KERN_NOTICE "o2hb: Heartbeat started on region %s (%pg)\n",
2013:			       config_item_name(&reg->hr_item), reg_bdev(reg));
2014:	
2015:	out:
2016:		if (ret < 0) {
2017:			o2hb_quiesce_timeout(reg);
2018:	
2019:			spin_lock(&o2hb_live_lock);
2020:			hb_task = reg->hr_task;
2021:			reg->hr_task = NULL;
2022:			spin_unlock(&o2hb_live_lock);
2023:	
2024:			if (hb_task)
2025:				kthread_stop(hb_task);
2026:	
2027:			o2hb_unmap_slot_data(reg);
2028:	
2029:			fput(reg->hr_bdev_file);
2030:			reg->hr_bdev_file = NULL;
2031:		}
2032:		return ret;
2033:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

180/4 2026/09/28 18:16 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_map_slot_data]

Results:
map[SourceCode:1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
1774:		int i, j;
1775:		int ret = -ENOMEM;
1776:		unsigned int last_slot;
1777:		unsigned int spp = reg->hr_slots_per_page;
1778:		struct page *page;
1779:		char *raw;
1780:		struct o2hb_disk_slot *slot;
1781:	
1782:		reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
1783:		if (!reg->hr_tmp_block)
1784:			goto out;
1785:	
1786:		reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
1787:		if (!reg->hr_slots)
1788:			goto out;
1789:	
1790:		for (i = 0; i < reg->hr_blocks; i++) {
1791:			slot = &reg->hr_slots[i];
1792:			slot->ds_node_num = i;
1793:			INIT_LIST_HEAD(&slot->ds_live_item);
1794:			slot->ds_raw_block = NULL;
1795:		}
1796:	
1797:		reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
1798:		mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
1799:				   "at %u blocks per page\n",
1800:		     reg->hr_num_pages, reg->hr_blocks, spp);
1801:	
1802:		reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
1803:		if (!reg->hr_slot_data)
1804:			goto out;
1805:	
1806:		for (i = 0; i < reg->hr_num_pages; i++) {
1807:			page = alloc_page(GFP_KERNEL);
1808:			if (!page)
1809:				goto out;
1810:	
1811:			reg->hr_slot_data[i] = page;
1812:	
1813:			last_slot = i * spp;
1814:			raw = page_address(page);
1815:			for (j = 0;
1816:			     (j < spp) && ((j + last_slot) < reg->hr_blocks);
1817:			     j++) {
1818:				BUG_ON((j + last_slot) >= reg->hr_blocks);
1819:	
1820:				slot = &reg->hr_slots[j + last_slot];
1821:				slot->ds_raw_block =
1822:					(struct o2hb_disk_heartbeat_block *) raw;
1823:	
1824:				raw += reg->hr_block_bytes;
1825:			}
1826:		}
1827:	
1828:		return 0;
1829:	
1830:	out:
1831:		o2hb_unmap_slot_data(reg);
1832:		return ret;
1833:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

181/4 2026/09/28 18:16 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_unmap_slot_data]

Results:
map[SourceCode:1583:	static void o2hb_unmap_slot_data(struct o2hb_region *reg)
1584:	{
1585:		int i;
1586:		struct page *page;
1587:	
1588:		if (reg->hr_slot_data) {
1589:			for (i = 0; i < reg->hr_num_pages; i++) {
1590:				page = reg->hr_slot_data[i];
1591:				if (page) {
1592:					__free_page(page);
1593:					reg->hr_slot_data[i] = NULL;
1594:				}
1595:			}
1596:			kfree(reg->hr_slot_data);
1597:			reg->hr_slot_data = NULL;
1598:		}
1599:	
1600:		kfree(reg->hr_slots);
1601:		reg->hr_slots = NULL;
1602:	
1603:		kfree(reg->hr_tmp_block);
1604:		reg->hr_tmp_block = NULL;
1605:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

182/4 2026/09/28 18:16 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_read_slots]

Results:
map[SourceCode: 620:	static int o2hb_read_slots(struct o2hb_region *reg,
 621:				   unsigned int begin_slot,
 622:				   unsigned int max_slots)
 623:	{
 624:		unsigned int current_slot = begin_slot;
 625:		struct o2hb_bio_wait_ctxt wc;
 626:		struct bio *bio;
 627:	
 628:		o2hb_bio_wait_init(&wc);
 629:	
 630:		while(current_slot < max_slots) {
 631:			bio = o2hb_setup_one_bio(reg, &wc, &current_slot, max_slots,
 632:						 REQ_OP_READ);
 633:			atomic_inc(&wc.wc_num_reqs);
 634:			submit_bio(bio);
 635:		}
 636:	
 637:		o2hb_wait_on_io(&wc);
 638:	
 639:		return wc.wc_error;
 640:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

183/4 2026/09/28 18:16 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10054
							output: 135
							thoughts: 28
						

Thoughts:
Okay, here's my interpretation of those prompts, presented as a personal thought process tailored for an expert audience:

**Analyzing the Function Call Landscape**

Alright, my initial scan immediately locks onto a family of functions: `o2hb_setup_one_bio`, `o2hb_bio_end_io`, and I expect there are similar entries. The naming convention is pretty clear. "o2hb" likely refers to a specific system, perhaps a hardware abstraction layer, a specific protocol, or a piece of proprietary technology related to I/O or storage handling. "bio" probably indicates something related to a block I/O structure or a biological process, so I'll need to remember that. "Setup" clearly means initialization or configuration, and "end_io" suggests completion or finalization of an input/output operation.

Essentially, I'm looking at the lifecycle management of I/O operations within this `o2hb` framework. I immediately want to understand the role of each. Is `o2hb_setup_one_bio` responsible for allocating and configuring a new bio structure? How does `o2hb_bio_end_io` handle error paths, completion notifications, and resource cleanup? I'd need to consider how these functions interact. Do they have a clear state machine? Are there any data races or locking issues to consider?

My next step is to examine the function signatures and determine how they interface with the broader system architecture. I'll be looking for shared data structures, global variables, or inter-process communication mechanisms. I'd need to consider where these functions are called from and what context they are executed in (interrupt context, process context, etc.). The goal is to fully understand their place within the flow of data and control.



184/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_setup_one_bio]

Results:
map[SourceCode: 571:	/* Setup a Bio to cover I/O against num_slots slots starting at
 572:	 * start_slot. */
 573:	static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
 574:					      struct o2hb_bio_wait_ctxt *wc,
 575:					      unsigned int *current_slot,
 576:					      unsigned int max_slots, blk_opf_t opf)
 577:	{
 578:		int len, current_page;
 579:		unsigned int vec_len, vec_start;
 580:		unsigned int bits = reg->hr_block_bits;
 581:		unsigned int spp = reg->hr_slots_per_page;
 582:		unsigned int cs = *current_slot;
 583:		struct bio *bio;
 584:		struct page *page;
 585:	
 586:		/*
 587:		 * The heartbeat runs in process context and can sleep, so use
 588:		 * GFP_NOFS. It is backed by the fs_bio_set mempool and thus cannot
 589:		 * fail, while avoiding recursion back into the filesystem.
 590:		 */
 591:		bio = bio_alloc(reg_bdev(reg), 16, opf, GFP_NOFS);
 592:	
 593:		/* Must put everything in 512 byte sectors for the bio... */
 594:		bio->bi_iter.bi_sector = (reg->hr_start_block + cs) << (bits - 9);
 595:		bio->bi_private = wc;
 596:		bio->bi_end_io = o2hb_bio_end_io;
 597:	
 598:		vec_start = (cs << bits) % PAGE_SIZE;
 599:		while(cs < max_slots) {
 600:			current_page = cs / spp;
 601:			page = reg->hr_slot_data[current_page];
 602:	
 603:			vec_len = min(PAGE_SIZE - vec_start,
 604:				      (max_slots-cs) * (PAGE_SIZE/spp) );
 605:	
 606:			mlog(ML_HB_BIO, "page %d, vec_len = %u, vec_start = %u\n",
 607:			     current_page, vec_len, vec_start);
 608:	
 609:			len = bio_add_page(bio, page, vec_len, vec_start);
 610:			if (len != vec_len) break;
 611:	
 612:			cs += vec_len / (PAGE_SIZE/spp);
 613:			vec_start = 0;
 614:		}
 615:	
 616:		*current_slot = cs;
 617:		return bio;
 618:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

185/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_bio_end_io]

Results:
map[SourceCode: 541:	static void o2hb_bio_end_io(struct bio *bio)
 542:	{
 543:		struct o2hb_bio_wait_ctxt *wc = bio->bi_private;
 544:	
 545:		if (bio->bi_status) {
 546:			mlog(ML_ERROR, "IO Error %d\n", bio->bi_status);
 547:			wc->wc_error = blk_status_to_errno(bio->bi_status);
 548:		}
 549:	
 550:		o2hb_bio_wait_dec(wc, 1);
 551:		bio_put(bio);
 552:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

186/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_populate_slot_data]

Results:
map[SourceCode:1835:	/* Read in all the slots available and populate the tracking
1836:	 * structures so that we can start with a baseline idea of what's
1837:	 * there. */
1838:	static int o2hb_populate_slot_data(struct o2hb_region *reg)
1839:	{
1840:		int ret, i;
1841:		struct o2hb_disk_slot *slot;
1842:		struct o2hb_disk_heartbeat_block *hb_block;
1843:	
1844:		ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
1845:		if (ret)
1846:			goto out;
1847:	
1848:		/* We only want to get an idea of the values initially in each
1849:		 * slot, so we do no verification - o2hb_check_slot will
1850:		 * actually determine if each configured slot is valid and
1851:		 * whether any values have changed. */
1852:		for(i = 0; i < reg->hr_blocks; i++) {
1853:			slot = &reg->hr_slots[i];
1854:			hb_block = (struct o2hb_disk_heartbeat_block *) slot->ds_raw_block;
1855:	
1856:			/* Only fill the values that o2hb_check_slot uses to
1857:			 * determine changing slots */
1858:			slot->ds_last_time = le64_to_cpu(hb_block->hb_seq);
1859:			slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation);
1860:		}
1861:	
1862:	out:
1863:		return ret;
1864:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

187/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12191
							output: 34
							thoughts: 42
						

Thoughts:
Okay, let's dive into this.

**Examining `bio_add_page`**

Right, time to check out how `bio_add_page` functions. My immediate concern is whether or not this function is responsible for incrementing the page reference count. This is a crucial detail for memory management and preventing premature deallocation, so I need to make *absolutely* sure it's handled correctly here. No point in relying on assumptions.

Let's pull up the definition of `bio_add_page` and get a clear picture of its internals.



188/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_add_page]

Results:
map[SourceCode:1037:	/**
1038:	 *	bio_add_page	-	attempt to add page(s) to bio
1039:	 *	@bio: destination bio
1040:	 *	@page: start page to add
1041:	 *	@len: vec entry length, may cross pages
1042:	 *	@offset: vec entry offset relative to @page, may cross pages
1043:	 *
1044:	 *	Attempt to add page(s) to the bio_vec maplist. This will only fail
1045:	 *	if either bio->bi_vcnt == bio->bi_max_vecs or it's a cloned bio.
1046:	 */
1047:	int bio_add_page(struct bio *bio, struct page *page,
1048:			 unsigned int len, unsigned int offset)
1049:	{
1050:		if (WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED)))
1051:			return 0;
1052:		if (WARN_ON_ONCE(len == 0))
1053:			return 0;
1054:		if (bio->bi_iter.bi_size > BIO_MAX_SIZE - len)
1055:			return 0;
1056:	
1057:		if (bio->bi_vcnt > 0) {
1058:			struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];
1059:	
1060:			if (!zone_device_pages_compatible(bv->bv_page, page))
1061:				return 0;
1062:			if (zone_device_pages_have_same_pgmap(bv->bv_page, page) &&
1063:			    bvec_try_merge_page(bv, page, len, offset)) {
1064:				bio->bi_iter.bi_size += len;
1065:				return len;
1066:			}
1067:		}
1068:	
1069:		if (bio->bi_vcnt >= bio->bi_max_vecs)
1070:			return 0;
1071:		__bio_add_page(bio, page, len, offset);
1072:		return len;
1073:	}
 SourceFile:block/bio.c]

189/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13044
							output: 35
							thoughts: 55
						

Thoughts:
Okay, let's break this down.

**Investigating Page Reference Counting in Block I/O.**

Alright, I need to understand how page refcounting works within the block I/O layer. I'm focusing on the `bio_add_page` function. Hmm, it appears that `bio_add_page` itself *doesn't* increment the page refcount, which is a bit unusual. This suggests the refcount increment might be happening elsewhere, likely in a related function. Let's see... I need to be certain. I'll check `__bio_add_page` next. That's the likely spot for the refcount manipulation. I need to confirm whether it is handled there, or if I'm missing something, because if it isn't then it means the page might not be accounted for as expected.



190/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:__bio_add_page]

Results:
map[SourceCode: 996:	/**
 997:	 * __bio_add_page - add page(s) to a bio in a new segment
 998:	 * @bio: destination bio
 999:	 * @page: start page to add
1000:	 * @len: length of the data to add, may cross pages
1001:	 * @off: offset of the data relative to @page, may cross pages
1002:	 *
1003:	 * Add the data at @page + @off to @bio as a new bvec.  The caller must ensure
1004:	 * that @bio has space for another bvec.
1005:	 */
1006:	void __bio_add_page(struct bio *bio, struct page *page,
1007:			unsigned int len, unsigned int off)
1008:	{
1009:		WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
1010:		WARN_ON_ONCE(bio_full(bio, len));
1011:	
1012:		if (is_pci_p2pdma_page(page))
1013:			bio->bi_opf |= REQ_NOMERGE;
1014:	
1015:		bvec_set_page(&bio->bi_io_vec[bio->bi_vcnt], page, len, off);
1016:		bio->bi_iter.bi_size += len;
1017:		bio->bi_vcnt++;
1018:	}
 SourceFile:block/bio.c]

191/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13743
							output: 32
							thoughts: 220
						

Thoughts:
**Debugging a `bio_add_page` Mystery**

Okay, so `bio_add_page` *doesn't* increment the page reference count. That's the first thing I need to drill down on. The question is, what *does* decrement it? This is critical. Let's trace the bio's life cycle in this specific failure case.

The reproducer shows a failure with an unbound loop device. The I/O fails, *of course*. Then, `o2hb_populate_slot_data` returns an error. This is fine. But then, `o2hb_region_dev_store` jumps to `out:` and calls `o2hb_unmap_slot_data`, which in turn calls `__free_page(page)`. And this is where it gets interesting, or maybe concerning...

Why is the page refcount zero when `__free_page` is called? That should not be the case. Is `bio_put` involved in decrementing the page refcount? Does the block layer handle that? Or is `bio_add_page` the culprit somehow? Is the refcount not incremented? 

Alright, I need to check `bio_put` immediately. I need to know exactly how it handles the page refcount. I'll check `bio_put` right away.



192/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_put]

Results:
map[SourceCode: 834:	/**
 835:	 * bio_put - release a reference to a bio
 836:	 * @bio:   bio to release reference to
 837:	 *
 838:	 * Description:
 839:	 *   Put a reference to a &struct bio, either one you have gotten with
 840:	 *   bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it.
 841:	 **/
 842:	void bio_put(struct bio *bio)
 843:	{
 844:		if (unlikely(bio_flagged(bio, BIO_REFFED))) {
 845:			BUG_ON(!atomic_read(&bio->__bi_cnt));
 846:			if (!atomic_dec_and_test(&bio->__bi_cnt))
 847:				return;
 848:		}
 849:		if (bio->bi_opf & REQ_ALLOC_CACHE)
 850:			bio_put_percpu_cache(bio);
 851:		else
 852:			bio_free(bio);
 853:	}
 SourceFile:block/bio.c]

193/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14618
							output: 32
							thoughts: 12
						

Thoughts:
Okay, here's my interpretation of "Let's see `bio_free(bio)`" rendered as a first-person expert summary, ready for your critical eye:

**Deconstructing `bio_free(bio)`**

Alright, so the call I'm looking at here is `bio_free(bio)`. Immediately, my mind jumps into action. I know `bio` is likely a pointer to a data structure, almost certainly a `bio` struct (or something equivalent based on context), probably representing a buffer or a block I/O context in a file system, networking stack, or database environment. The function call itself, `bio_free()`, screams "memory management." It's almost certainly designed to release the resources associated with that `bio` structure.

My first thought is always: *what's the underlying allocator?* Is this using `malloc`/`free` directly, or is there some custom allocator in play here? Understanding the allocator is crucial to prevent memory leaks and corruption. If it's custom, I need to know the allocation/deallocation strategies. Is it reference-counted? Does it use a pool? I need to think about how nested data structures within the `bio` might be handled. Are they freed with the call, or do they need to be handled separately?

Then I'm wondering, *what's the state of `bio` right now?* Is it still in use? What's the protocol for its lifecycle? Has it been properly initialized? Is it safe to call `bio_free()` at this point? Preconditions are key. I need to review any related documentation, or even, the surrounding code, to understand if I can call this function at this point in the program's lifecycle, since these kinds of calls can have dangerous side effects if not used correctly. The code surrounding the call is going to tell me a lot, such as any locks that need to be held, and any cleanup steps that might be required.

And finally, *what are the side effects, and are they documented?* Does `bio_free()` set `bio` to `NULL` to prevent double frees? Does it zero out the memory? Does it signal any other systems? Understanding the implications of releasing the resource is critical. Will any other structures depend on the information in `bio`? Are there other threads that need to be informed of the change? I will need to be very confident of any assumptions, and I need to be able to trace all the call's effects to ensure I understand everything the call could possibly do.

In summary, this seemingly simple function call is a launchpad to a whole host of questions about memory management, data structures, and the overall system design. Let's dig in and see exactly what's happening.



194/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_free]

Results:
map[SourceCode: 195:	static void bio_free(struct bio *bio)
 196:	{
 197:		struct bio_set *bs = bio->bi_pool;
 198:		void *p = bio;
 199:	
 200:		WARN_ON_ONCE(!bs);
 201:		WARN_ON_ONCE(bio->bi_max_vecs > BIO_MAX_VECS);
 202:	
 203:		bio_uninit(bio);
 204:		if (bio->bi_max_vecs == BIO_MAX_VECS)
 205:			mempool_free(bio->bi_io_vec, &bs->bvec_pool);
 206:		else if (bio->bi_max_vecs > BIO_INLINE_VECS)
 207:			kmem_cache_free(biovec_slab(bio->bi_max_vecs)->slab,
 208:					bio->bi_io_vec);
 209:		mempool_free(p - bs->front_pad, &bs->bio_pool);
 210:	}
 SourceFile:block/bio.c]

195/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15569
							output: 33
							thoughts: 28
						

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

**Unpacking `bio_free` and its Implications**

Alright, so `bio_free` kicks off by calling `bio_uninit(bio)`. Immediately, my brain flags that `bio_uninit` deserves a closer look. I'm assuming, given the naming, that `bio_uninit` is responsible for cleaning up the internal structures associated with the `bio` object before it's released back into whatever pool or allocation scheme is in place. I need to be sure this is handled properly so we don't leak resources or, worse, corrupt other data. My concerns center around things like: deallocating any dynamically allocated data pointers, potentially decrementing reference counts if we're using those, and, critically, ensuring no dangling pointers remain that could cause issues later. Let's delve into the specifics of `bio_uninit` to verify its implementation and make sure all the necessary clean-up tasks are being performed. We need to be on the lookout for any subtle edge cases in that function where it might miss freeing up an item or not properly accounting for a scenario and resulting in a memory leak.



196/4 2026/09/28 18:17 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_uninit]

Results:
map[SourceCode: 180:	void bio_uninit(struct bio *bio)
 181:	{
 182:	#ifdef CONFIG_BLK_CGROUP
 183:		if (bio->bi_blkg) {
 184:			blkg_put(bio->bi_blkg);
 185:			bio->bi_blkg = NULL;
 186:		}
 187:	#endif
 188:		if (bio_integrity(bio))
 189:			bio_integrity_free(bio);
 190:	
 191:		bio_crypt_free_ctx(bio);
 192:	}
 SourceFile:block/bio.c]

197/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 16090
							output: 33
							thoughts: 129
						

Thoughts:
**Investigating Page Refcount Management in Bio Operations**

Okay, so I'm digging into this `bio_put` function and just realized it *doesn't* decrement the page refcount. That's immediately a red flag. My immediate thought is, what's happening during the *execution* of the bio? Where is the refcount actually managed in the context of bio operations, especially when it comes to things like loop devices, and overall bio submission? I need to understand the full lifecycle here.

Alright, let's step through `submit_bio(bio)`. I need to figure out the interactions here, specifically what parts of the block layer, or the loop device driver, or the bio submission/completion process are responsible for the refcount modifications. Does something else entirely handle this? There has to be a refcount management strategy, and I need to identify it. I know that if I have a page and submit a bio that uses that page, at some point that page refcount MUST be decremented at some point.

Now, a broader approach is needed. I'm going to search through the `fs/ocfs2/cluster/heartbeat.c` files, specifically looking for uses of `put_page_testzero` or loop device functions. I want to see if this issue has been approached before in some manner, and what patterns might already exist for this situation. Let's start with `git log` on `fs/ocfs2/cluster/heartbeat.c`. Time to see what the commit history reveals.



198/4 2026/09/28 18:17 tool git-log
0m Args:
map[Count:20 PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:011291b70ba4 ocfs2: o2hb: quiesce negotiate handlers and timeout work
3e326f3bf165 ocfs2: synchronize heartbeat callbacks with o2net teardown
12c2ab42dbe2 ocfs2: cluster: fix o2hb_dependent_users leak on pin failure
cd789996db3c ocfs2: cluster: avoid lock order inversion in o2hb_region_pin() from drop_item
af09df89db9a ocfs2: cluster: don't sleep while holding o2hb_live_lock in o2hb_region_pin()
041c9d0ab53b ocfs2: cluster: use an on-stack bio for the heartbeat write
609d45af8310 ocfs2: cluster: use GFP_NOFS for heartbeat bio allocation
688bc88e2046 ocfs2/cluster: keep heartbeat local node stable
5686459423d0 ocfs2/heartbeat: fix slot mapping rollback leaks on error paths
32a92f8c8932 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
9677a51abd86 ocfs2: constify struct configfs_item_operations and configfs_group_operations
876a5b25d54d ocfs2: replace deprecated simple_strtol with kstrtol
a0f8a9a9636e ocfs2: miscellaneous spelling fixes
08de555ae59a ocfs2: heartbeat: replace simple_strtoul with kstrtoul
8152f8201088 fdget(), more trivial conversions
554ceb7a5e14 o2hb_region_dev_store(): avoid goto around fdget()/fdput()
1da91ea87aef introduce fd_file(), convert all accessors to it.
1d3aa0b97c55 ocfs2: port block device access to file
]

199/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 17134
							output: 27
							thoughts: 43
						

Thoughts:
Here's my analysis of the commit, delivered as requested:

**Diving into Commit 5686459423d0: 'ocfs2/heartbeat: fix slot mapping rollback leaks on error paths'**

Alright, let's get down to brass tacks. I need to take a look at commit `5686459423d0`. The description – "ocfs2/heartbeat: fix slot mapping rollback leaks on error paths" – immediately piques my interest. OCFS2 heartbeat, slot mapping, rollback, and error paths all point to potential concurrency issues or subtle resource management problems, the kind that can lurk for ages and then surface at the worst possible time. It's the bread and butter of our work.

My initial thought is to quickly identify the specific error paths the patch is addressing. Are we talking about a failure during slot allocation? During a heartbeat event? Is this related to a specific hardware configuration? Context is key. I'll need to understand the exact sequence of events that triggers this "leak".

Rollback leaks… That indicates that something is going wrong when the system attempts to restore its state after an error occurs. In a distributed filesystem, this is a dangerous scenario, where inconsistencies could be introduced, leading to data corruption or other nasty side effects. I need to figure out *what* exactly is being leaked. Is it memory, file descriptors, locks, or something else entirely? The description is quite general, so the code will have to do the talking.

Finally, I need to evaluate the fix itself. Is it a surgical correction, or a broader refactoring? How robust is the proposed solution? Does it address the root cause, or just a symptom? What are the potential performance implications? Have they accounted for all the corner cases? Time to dig in!



200/4 2026/09/28 18:17 tool git-show
0m Args:
map[Commit:5686459423d0]

Results:
map[Output:commit 5686459423d03d192134166f0ec45f98bb2d5d57
Author: Yufan Chen <ericterminal@gmail.com>
Date:   Mon Mar 30 23:34:28 2026 +0800

    ocfs2/heartbeat: fix slot mapping rollback leaks on error paths
    
    o2hb_map_slot_data() allocates hr_tmp_block, hr_slots, hr_slot_data, and
    pages in stages.  If a later allocation fails, the current code returns
    without unwinding the earlier allocations.
    
    o2hb_region_dev_store() also leaves slot mapping resources behind when
    setup aborts, and it keeps hr_aborted_start/hr_node_deleted set across
    retries.  That leaves stale state behind after a failed start.
    
    Factor the slot cleanup into o2hb_unmap_slot_data(), use it from both
    o2hb_map_slot_data() and o2hb_region_release(), and call it from the
    dev_store() rollback after stopping a started heartbeat thread.  While
    freeing pages, clear each hr_slot_data entry as it is released, and reset
    the start state before each new setup attempt.
    
    This closes the slot mapping leak on allocation/setup failure paths and
    keeps failed setup attempts retryable.
    
    Link: https://lkml.kernel.org/r/20260330153428.19586-1-yufan.chen@linux.dev
    Signed-off-by: Yufan Chen <ericterminal@gmail.com>
    Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
    Cc: Mark Fasheh <mark@fasheh.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Cc: Junxiao Bi <junxiao.bi@oracle.com>
    Cc: Changwei Ge <gechangwei@live.cn>
    Cc: Jun Piao <piaojun@huawei.com>
    Cc: Heming Zhao <heming.zhao@suse.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index fe1949578336..d12784aaaa4b 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -1488,33 +1488,45 @@ static struct o2hb_region *to_o2hb_region(struct config_item *item)
 	return item ? container_of(item, struct o2hb_region, hr_item) : NULL;
 }
 
-/* drop_item only drops its ref after killing the thread, nothing should
- * be using the region anymore.  this has to clean up any state that
- * attributes might have built up. */
-static void o2hb_region_release(struct config_item *item)
+static void o2hb_unmap_slot_data(struct o2hb_region *reg)
 {
 	int i;
 	struct page *page;
-	struct o2hb_region *reg = to_o2hb_region(item);
-
-	mlog(ML_HEARTBEAT, "hb region release (%pg)\n", reg_bdev(reg));
-
-	kfree(reg->hr_tmp_block);
 
 	if (reg->hr_slot_data) {
 		for (i = 0; i < reg->hr_num_pages; i++) {
 			page = reg->hr_slot_data[i];
-			if (page)
+			if (page) {
 				__free_page(page);
+				reg->hr_slot_data[i] = NULL;
+			}
 		}
 		kfree(reg->hr_slot_data);
+		reg->hr_slot_data = NULL;
 	}
 
+	kfree(reg->hr_slots);
+	reg->hr_slots = NULL;
+
+	kfree(reg->hr_tmp_block);
+	reg->hr_tmp_block = NULL;
+}
+
+/* drop_item only drops its ref after killing the thread, nothing should
+ * be using the region anymore.  this has to clean up any state that
+ * attributes might have built up.
+ */
+static void o2hb_region_release(struct config_item *item)
+{
+	struct o2hb_region *reg = to_o2hb_region(item);
+
+	mlog(ML_HEARTBEAT, "hb region release (%pg)\n", reg_bdev(reg));
+
+	o2hb_unmap_slot_data(reg);
+
 	if (reg->hr_bdev_file)
 		fput(reg->hr_bdev_file);
 
-	kfree(reg->hr_slots);
-
 	debugfs_remove_recursive(reg->hr_debug_dir);
 	kfree(reg->hr_db_livenodes);
 	kfree(reg->hr_db_regnum);
@@ -1667,6 +1679,7 @@ static void o2hb_init_region_params(struct o2hb_region *reg)
 static int o2hb_map_slot_data(struct o2hb_region *reg)
 {
 	int i, j;
+	int ret = -ENOMEM;
 	unsigned int last_slot;
 	unsigned int spp = reg->hr_slots_per_page;
 	struct page *page;
@@ -1674,14 +1687,14 @@ static int o2hb_map_slot_data(struct o2hb_region *reg)
 	struct o2hb_disk_slot *slot;
 
 	reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
-	if (reg->hr_tmp_block == NULL)
-		return -ENOMEM;
+	if (!reg->hr_tmp_block)
+		goto out;
 
 	reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
-	if (reg->hr_slots == NULL)
-		return -ENOMEM;
+	if (!reg->hr_slots)
+		goto out;
 
-	for(i = 0; i < reg->hr_blocks; i++) {
+	for (i = 0; i < reg->hr_blocks; i++) {
 		slot = &reg->hr_slots[i];
 		slot->ds_node_num = i;
 		INIT_LIST_HEAD(&slot->ds_live_item);
@@ -1695,12 +1708,12 @@ static int o2hb_map_slot_data(struct o2hb_region *reg)
 
 	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
 	if (!reg->hr_slot_data)
-		return -ENOMEM;
+		goto out;
 
-	for(i = 0; i < reg->hr_num_pages; i++) {
+	for (i = 0; i < reg->hr_num_pages; i++) {
 		page = alloc_page(GFP_KERNEL);
 		if (!page)
-			return -ENOMEM;
+			goto out;
 
 		reg->hr_slot_data[i] = page;
 
@@ -1720,6 +1733,10 @@ static int o2hb_map_slot_data(struct o2hb_region *reg)
 	}
 
 	return 0;
+
+out:
+	o2hb_unmap_slot_data(reg);
+	return ret;
 }
 
 /* Read in all the slots available and populate the tracking
@@ -1809,9 +1826,11 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 		     "blocksize %u incorrect for device, expected %d",
 		     reg->hr_block_bytes, sectsize);
 		ret = -EINVAL;
-		goto out3;
+		goto out;
 	}
 
+	reg->hr_aborted_start = 0;
+	reg->hr_node_deleted = 0;
 	o2hb_init_region_params(reg);
 
 	/* Generation of zero is invalid */
@@ -1823,13 +1842,13 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 	ret = o2hb_map_slot_data(reg);
 	if (ret) {
 		mlog_errno(ret);
-		goto out3;
+		goto out;
 	}
 
 	ret = o2hb_populate_slot_data(reg);
 	if (ret) {
 		mlog_errno(ret);
-		goto out3;
+		goto out;
 	}
 
 	INIT_DELAYED_WORK(&reg->hr_write_timeout_work, o2hb_write_timeout);
@@ -1860,7 +1879,7 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 	if (IS_ERR(hb_task)) {
 		ret = PTR_ERR(hb_task);
 		mlog_errno(ret);
-		goto out3;
+		goto out;
 	}
 
 	spin_lock(&o2hb_live_lock);
@@ -1877,12 +1896,12 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 
 	if (reg->hr_aborted_start) {
 		ret = -EIO;
-		goto out3;
+		goto out;
 	}
 
 	if (reg->hr_node_deleted) {
 		ret = -EINVAL;
-		goto out3;
+		goto out;
 	}
 
 	/* Ok, we were woken.  Make sure it wasn't by drop_item() */
@@ -1901,8 +1920,18 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
 		printk(KERN_NOTICE "o2hb: Heartbeat started on region %s (%pg)\n",
 		       config_item_name(&reg->hr_item), reg_bdev(reg));
 
-out3:
+out:
 	if (ret < 0) {
+		spin_lock(&o2hb_live_lock);
+		hb_task = reg->hr_task;
+		reg->hr_task = NULL;
+		spin_unlock(&o2hb_live_lock);
+
+		if (hb_task)
+			kthread_stop(hb_task);
+
+		o2hb_unmap_slot_data(reg);
+
 		fput(reg->hr_bdev_file);
 		reg->hr_bdev_file = NULL;
 	}
]

201/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20445
							output: 20
							thoughts: 135
						

Thoughts:
Okay, here's my breakdown of what's going on, thinking through this code history:

**Digging into a Potential Memory Leak**

Alright, this commit caught my eye. The implication is, pre-`5686459423d0`, we had a situation where `o2hb_unmap_slot_data` wasn't even defined and, critically, `o2hb_region_dev_store` wasn't cleaning up its slot data properly when things went south – when an error was encountered. A classic memory leak candidate! Now, the question is when this 'fix' landed.

Wait... 2026? Hold on a sec, there's something off about that date. 2026? Seems odd. Let me just confirm that the commit in question isn't off on its date. Alright, let me quickly run `git log 5686459423d0` or `git log HEAD` to see what is going on.



202/4 2026/09/28 18:17 tool git-show
0m Args:
map[Commit:HEAD Stat:true]

Results:
map[Output:commit 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sun Sep 27 13:55:01 2026 -0700

    Linux 7.3-rc5

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
]

203/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20952
							output: 36
							thoughts: 509
						

Thoughts:
**Debugging a `VM_BUG_ON_PAGE` in `o2hb_region_dev_store`**

Okay, so the syzkaller reproducer is hitting a `VM_BUG_ON_PAGE` in `put_page_testzero` during a `__free_page` call within `o2hb_unmap_slot_data`. This happens in the context of the `o2hb_region_dev_store` function, specifically when dealing with a failing I/O on an unbound loop device. The core issue is a page reference count of zero, and I need to figure out *why* it's zero when it shouldn't be.

Let's break down the flow. Pages are allocated using `alloc_page(GFP_KERNEL)` in `o2hb_map_slot_data` and stored in `reg->hr_slot_data`. Then `o2hb_populate_slot_data` takes over, which eventually leads to adding these pages to a `bio` using `bio_add_page` in `o2hb_setup_one_bio`. This `bio` is then submitted using `submit_bio(bio)`. The completion handler, `o2hb_bio_end_io`, calls `bio_put(bio)`. The critical point is that when I/O fails on an unbound loop device, `o2hb_populate_slot_data` returns an error, causing a jump to the `out:` label, and, crucially, a call to `o2hb_unmap_slot_data`, which frees the pages.

Now, the question is: what is decrementing the page reference count? Does `bio_put` or the block layer? Does `bio_add_page` increment it properly? Given the context of a failing I/O on an unbound loop device, I suspect the issue lies within how the block layer or the loop device driver interacts with the pages added to the `bio`. If the block device returns an error due to the unbound loop device, this is a likely cause of my issue.

So, where do the loop device and block layer come into play? Where do they touch the pages or the bio? Let's trace `submit_bio(bio)` to better understand how I/O submission works. I need to understand what happens to the pages when I/O fails or is processed by the loop device.

Specifically, I need to see how the loop device driver processes the `bio`. Let's search for the loop device driver in `drivers/block/loop.c` to understand how the loop device handles the `bio`.



204/4 2026/09/28 18:17 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:drivers/block/loop.c Name:loop_submit_bio]

Results:
map[SourceCode: SourceFile:]

205/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22078
							output: 30
							thoughts: 34
						

Thoughts:
Here's my analysis of the situation:

**Investigating Potential Block Device Interactions in Loopback Driver**

Okay, so I need to understand how the `loop` driver in the block subsystem interacts with the `submit_bio` function. This is a common pattern when you're looking for how a block device driver initiates I/O requests.

My plan is to dig into the `drivers/block/loop.c` file directly. I'll start by examining the source code itself to get a handle on the relationships of the various functions and data structures defined there, or I could use `grep` to quickly find calls to `submit_bio` within that specific file. Either way, this should quickly illuminate how the `loop` driver submits block I/O. Knowing the specific file and function calls will give me a base understanding of how to then explore the other subsystems that interacts with the `loop` driver.



206/4 2026/09/28 18:17 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:submit_bio PathPrefix:drivers/block/loop.c]

Results:
map[Output:]

207/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22347
							output: 33
							thoughts: 28
						

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

**Investigating Block Device Loop Driver Operations**

Okay, so I need to dive into the block loop driver, specifically the `loop.c` file. Given what I'm looking for, my initial thought is to zero in on the core operations. A good starting point would be searching for relevant function names.

Let's begin by using `grep`. I'll look for keywords that encapsulate the fundamental operations this driver handles. I should look for either `loop_ops` or `block_device_operations` within the source file `drivers/block/loop.c`. These should point me toward the structure or structures where the crucial read/write, open/close, and other device interactions are defined. That seems like the logical first step to understand how the loop device interacts with the block layer.



208/4 2026/09/28 18:17 tool grepper
0m Args:
map[Expression:struct block_device_operations PathPrefix:drivers/block/loop.c]

Results:
map[Output:drivers/block/loop.c=1778=static void lo_free_disk(struct gendisk *disk)
--
drivers/block/loop.c-1789-
drivers/block/loop.c:1790:static const struct block_device_operations lo_fops = {
drivers/block/loop.c-1791-	.owner =	THIS_MODULE,
]

209/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22698
							output: 36
							thoughts: 26
						

Thoughts:
Okay, here's my take on those lines in `drivers/block/loop.c`.

**Diving into the `loop.c` Code**

Alright, let's zero in on lines 1780 to 1820 within `drivers/block/loop.c`. I'm going to start by getting a sense of the surrounding context, of course, because just reading a snippet out of the blue is usually a recipe for confusion. I'll quickly scan above and below to understand the function or structure these lines are part of, and then look to get a sense of the goal. Is it error handling? Device setup? Data transfer?

I suspect this section probably involves either the creation or destruction of loop devices, or maybe it's involved with some form of I/O request handling. Depending on where those lines fall, and how the surrounding functions are defined, this could cover a fair bit of functionality. I'll need to figure out the variables being used and their types to better understand the operations being performed.
I need to check for comments in the code, because that often gives context on the goal.

I'm prepared to trace calls, if need be, to understand the interactions that may be happening with other parts of the kernel. This is pretty fundamental stuff, so it probably is related to a lower level I/O operations and device management, which likely has implications for performance and reliability.



210/4 2026/09/28 18:17 tool read-file
0m Args:
map[File:drivers/block/loop.c FirstLine:1785 LineCount:40]

Results:
map[Contents:1785:		timer_shutdown_sync(&lo->timer);
1786:		mutex_destroy(&lo->lo_mutex);
1787:		kfree(lo);
1788:	}
1789:	
1790:	static const struct block_device_operations lo_fops = {
1791:		.owner =	THIS_MODULE,
1792:		.open =         lo_open,
1793:		.release =	lo_release,
1794:		.ioctl =	lo_ioctl,
1795:	#ifdef CONFIG_COMPAT
1796:		.compat_ioctl =	lo_compat_ioctl,
1797:	#endif
1798:		.free_disk =	lo_free_disk,
1799:	};
1800:	
1801:	/*
1802:	 * And now the modules code and kernel interface.
1803:	 */
1804:	
1805:	/*
1806:	 * If max_loop is specified, create that many devices upfront.
1807:	 * This also becomes a hard limit. If max_loop is not specified,
1808:	 * the default isn't a hard limit (as before commit 85c50197716c
1809:	 * changed the default value from 0 for max_loop=0 reasons), just
1810:	 * create CONFIG_BLK_DEV_LOOP_MIN_COUNT loop devices at module
1811:	 * init time. Loop devices can be requested on-demand with the
1812:	 * /dev/loop-control interface, or be instantiated by accessing
1813:	 * a 'dead' device node.
1814:	 */
1815:	static int max_loop = CONFIG_BLK_DEV_LOOP_MIN_COUNT;
1816:	
1817:	#ifdef CONFIG_BLOCK_LEGACY_AUTOLOAD
1818:	static bool max_loop_specified;
1819:	
1820:	static int max_loop_param_set_int(const char *val,
1821:					  const struct kernel_param *kp)
1822:	{
1823:		int ret;
1824:	
]

211/4 2026/09/28 18:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 23665
							output: 30
							thoughts: 34
						

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

**Diving into the Loop Device's Request Handling**

Alright, let's get down to the nitty-gritty of how the loop device handles I/O requests. My immediate question is always about the data path and how it's optimized. Does the `loop` driver, specifically, utilize the `blk-mq` framework? It's the standard for modern block drivers, so it's a key point of interest for performance and scalability. To confirm this and fully understand its request processing flow, I'll need to dig into the source code. The obvious starting point is the `drivers/block/loop.c` file within the kernel source tree. That's where the core implementation for the loop device will reside. Time to break out the grep and start tracing through the code.



212/4 2026/09/28 18:18 tool grepper
0m Args:
map[Expression:blk_mq PathPrefix:drivers/block/loop.c]

Results:
map[Output:drivers/block/loop.c=48=struct loop_device {
--
drivers/block/loop.c-73-	struct request_queue	*lo_queue;
drivers/block/loop.c:74:	struct blk_mq_tag_set	tag_set;
drivers/block/loop.c-75-	struct gendisk		*lo_disk;
--
drivers/block/loop.c=285=static void lo_complete_rq(struct request *rq)
drivers/block/loop.c-286-{
drivers/block/loop.c:287:	struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
drivers/block/loop.c-288-	blk_status_t ret = BLK_STS_OK;
--
drivers/block/loop.c-303-		cmd->ret = 0;
drivers/block/loop.c:304:		blk_mq_requeue_request(rq, true);
drivers/block/loop.c-305-	} else {
--
drivers/block/loop.c-314-end_io:
drivers/block/loop.c:315:		blk_mq_end_request(rq, ret);
drivers/block/loop.c-316-	}
--
drivers/block/loop.c=319=static void lo_rw_aio_do_completion(struct loop_cmd *cmd)
drivers/block/loop.c-320-{
drivers/block/loop.c:321:	struct request *rq = blk_mq_rq_from_pdu(cmd);
drivers/block/loop.c-322-
--
drivers/block/loop.c-329-	if (likely(!blk_should_fake_timeout(rq->q)))
drivers/block/loop.c:330:		blk_mq_complete_request(rq);
drivers/block/loop.c-331-}
--
drivers/block/loop.c=341=static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,
--
drivers/block/loop.c-345-	struct req_iterator rq_iter;
drivers/block/loop.c:346:	struct request *rq = blk_mq_rq_from_pdu(cmd);
drivers/block/loop.c-347-	struct file *file = lo->lo_backing_file;
--
drivers/block/loop.c=410=static int do_req_filebacked(struct loop_device *lo, struct request *rq)
drivers/block/loop.c-411-{
drivers/block/loop.c:412:	struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
drivers/block/loop.c-413-	loff_t pos = ((loff_t) blk_rq_pos(rq) << 9) + lo->lo_offset;
--
drivers/block/loop.c=548=static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
--
drivers/block/loop.c-603-	disk_force_media_change(lo->lo_disk);
drivers/block/loop.c:604:	memflags = blk_mq_freeze_queue(lo->lo_queue);
drivers/block/loop.c-605-	mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask);
--
drivers/block/loop.c-607-	loop_update_dio(lo);
drivers/block/loop.c:608:	blk_mq_unfreeze_queue(lo->lo_queue, memflags);
drivers/block/loop.c-609-	partscan = lo->lo_flags & LO_FLAGS_PARTSCAN;
--
drivers/block/loop.c=1247=loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
--
drivers/block/loop.c-1269-	/* I/O needs to be drained before changing lo_offset or lo_sizelimit */
drivers/block/loop.c:1270:	memflags = blk_mq_freeze_queue(lo->lo_queue);
drivers/block/loop.c-1271-
--
drivers/block/loop.c-1285-out_unfreeze:
drivers/block/loop.c:1286:	blk_mq_unfreeze_queue(lo->lo_queue, memflags);
drivers/block/loop.c-1287-	if (partscan)
--
drivers/block/loop.c=1439=static int loop_set_dio(struct loop_device *lo, unsigned long arg)
--
drivers/block/loop.c-1457-	lim = queue_limits_start_update(lo->lo_queue);
drivers/block/loop.c:1458:	memflags = blk_mq_freeze_queue(lo->lo_queue);
drivers/block/loop.c-1459-	if (use_dio)
--
drivers/block/loop.c-1464-	queue_limits_commit_update(lo->lo_queue, &lim);
drivers/block/loop.c:1465:	blk_mq_unfreeze_queue(lo->lo_queue, memflags);
drivers/block/loop.c-1466-	return 0;
--
drivers/block/loop.c=1469=static int loop_set_block_size(struct loop_device *lo, blk_mode_t mode,
--
drivers/block/loop.c-1503-
drivers/block/loop.c:1504:	memflags = blk_mq_freeze_queue(lo->lo_queue);
drivers/block/loop.c-1505-	err = queue_limits_commit_update(lo->lo_queue, &lim);
drivers/block/loop.c-1506-	loop_update_dio(lo);
drivers/block/loop.c:1507:	blk_mq_unfreeze_queue(lo->lo_queue, memflags);
drivers/block/loop.c-1508-
--
drivers/block/loop.c=1873=MODULE_ALIAS_BLOCKDEV_MAJOR(LOOP_MAJOR);
drivers/block/loop.c-1874-
drivers/block/loop.c:1875:static blk_status_t loop_queue_rq(struct blk_mq_hw_ctx *hctx,
drivers/block/loop.c:1876:		const struct blk_mq_queue_data *bd)
drivers/block/loop.c-1877-{
drivers/block/loop.c-1878-	struct request *rq = bd->rq;
drivers/block/loop.c:1879:	struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
drivers/block/loop.c-1880-	struct loop_device *lo = rq->q->queuedata;
drivers/block/loop.c-1881-
drivers/block/loop.c:1882:	blk_mq_start_request(rq);
drivers/block/loop.c-1883-
--
drivers/block/loop.c=1918=static void loop_handle_cmd(struct loop_cmd *cmd)
--
drivers/block/loop.c-1921-	struct cgroup_subsys_state *cmd_memcg_css = cmd->memcg_css;
drivers/block/loop.c:1922:	struct request *rq = blk_mq_rq_from_pdu(cmd);
drivers/block/loop.c-1923-	const bool write = op_is_write(req_op(rq));
--
drivers/block/loop.c-1943-	/*
drivers/block/loop.c:1944:	 * do_req_filebacked() may call blk_mq_complete_request() synchronously
drivers/block/loop.c-1945-	 * or asynchronously if using aio. Hence, do not touch 'cmd' after
--
drivers/block/loop.c-1965-		if (likely(!blk_should_fake_timeout(rq->q)))
drivers/block/loop.c:1966:			blk_mq_complete_request(rq);
drivers/block/loop.c-1967-	}
--
drivers/block/loop.c=2011=static void loop_rootcg_workfn(struct work_struct *work)
--
drivers/block/loop.c-2017-
drivers/block/loop.c:2018:static const struct blk_mq_ops loop_mq_ops = {
drivers/block/loop.c-2019-	.queue_rq       = loop_queue_rq,
--
drivers/block/loop.c=2023=static int loop_add(int i)
--
drivers/block/loop.c-2068-
drivers/block/loop.c:2069:	err = blk_mq_alloc_tag_set(&lo->tag_set);
drivers/block/loop.c-2070-	if (err)
--
drivers/block/loop.c-2072-
drivers/block/loop.c:2073:	disk = lo->lo_disk = blk_mq_alloc_disk(&lo->tag_set, &lim, lo);
drivers/block/loop.c-2074-	if (IS_ERR(disk)) {
--
drivers/block/loop.c-2129-out_cleanup_tags:
drivers/block/loop.c:2130:	blk_mq_free_tag_set(&lo->tag_set);
drivers/block/loop.c-2131-out_free_idr:
--
drivers/block/loop.c=2141=static void loop_remove(struct loop_device *lo)
--
drivers/block/loop.c-2144-	del_gendisk(lo->lo_disk);
drivers/block/loop.c:2145:	blk_mq_free_tag_set(&lo->tag_set);
drivers/block/loop.c-2146-
]

213/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 26507
							output: 36
							thoughts: 35
						

Thoughts:
Here's my summary, as though I'm processing the code:

**Diving into the `loop_queue_rq` Function**

Okay, let's get down to it. I'm focusing on the `loop_queue_rq` function, and I've zeroed in on lines 1875 through 1915 of `drivers/block/loop.c`. I need to understand exactly how the loop device handles request queuing. This is where the core interaction with the block layer happens, so this section is critical for performance and resource management. I'm looking for the mechanism that the `loop` driver uses to interface with the block layer. Specifically, I'm keen to understand how incoming I/O requests are handled, prioritized, and subsequently passed to the underlying backing device. This involves the handling of the various data structures and locks involved in this function. I'm expecting this section to reveal the intricacies of request submission, merge operations (if any), and any specific loop device-related logic. I am also searching for ways to optimise the device in terms of I/O performance.



214/4 2026/09/28 18:18 tool read-file
0m Args:
map[File:drivers/block/loop.c FirstLine:1875 LineCount:45]

Results:
map[Contents:1875:	static blk_status_t loop_queue_rq(struct blk_mq_hw_ctx *hctx,
1876:			const struct blk_mq_queue_data *bd)
1877:	{
1878:		struct request *rq = bd->rq;
1879:		struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
1880:		struct loop_device *lo = rq->q->queuedata;
1881:	
1882:		blk_mq_start_request(rq);
1883:	
1884:		if (data_race(READ_ONCE(lo->lo_state)) != Lo_bound)
1885:			return BLK_STS_IOERR;
1886:	
1887:		switch (req_op(rq)) {
1888:		case REQ_OP_FLUSH:
1889:		case REQ_OP_DISCARD:
1890:		case REQ_OP_WRITE_ZEROES:
1891:			cmd->use_aio = false;
1892:			break;
1893:		default:
1894:			cmd->use_aio = lo->lo_flags & LO_FLAGS_DIRECT_IO;
1895:			break;
1896:		}
1897:	
1898:		/* always use the first bio's css */
1899:		cmd->blkcg_css = NULL;
1900:		cmd->memcg_css = NULL;
1901:	#ifdef CONFIG_BLK_CGROUP
1902:		if (rq->bio) {
1903:			cmd->blkcg_css = bio_blkcg_css(rq->bio);
1904:	#ifdef CONFIG_MEMCG
1905:			if (cmd->blkcg_css) {
1906:				cmd->memcg_css =
1907:					cgroup_get_e_css(cmd->blkcg_css->cgroup,
1908:							&memory_cgrp_subsys);
1909:			}
1910:	#endif
1911:		}
1912:	#endif
1913:		loop_queue_work(lo, cmd);
1914:	
1915:		return BLK_STS_OK;
1916:	}
1917:	
1918:	static void loop_handle_cmd(struct loop_cmd *cmd)
1919:	{
]

215/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 27493
							output: 26
							thoughts: 144
						

Thoughts:
Okay, let's break this down.

**Investigating Block Device Request Handling in blk-mq**

Right, so I'm looking at `loop_queue_rq` here. I see it starts a request with `blk_mq_start_request(rq)`. Makes sense. Then there's this `data_race` check on `lo->lo_state`. If that returns anything other than `Lo_bound`, `BLK_STS_IOERR` is returned. Okay, standard error handling.

The key question is, *what* does `blk-mq` do when `loop_queue_rq` returns `BLK_STS_IOERR`? Does it requeue the request? Drop it? Handle the bios? This is where things get interesting. I need to understand the failure path and what happens to the IO.

Alright, time to dive into `blk-mq` itself. I need to find where `queue_rq` is called in the `blk-mq` framework. I could search for callers of the `queue_rq` function pointer. Or, given what I'm looking for, I might be better off tracing the dispatch path - `blk_mq_dispatch_rq_list`. That's where requests are *actually* dealt with. Finding that will show me the context surrounding the error, and probably the clean-up routines. Let's start with finding that dispatch function.



216/4 2026/09/28 18:18 tool grepper
0m Args:
map[Expression:queue_rq\( PathPrefix:block/]

Results:
map[Output:block/blk-mq-sched.c=85=static int __blk_mq_do_dispatch_sched(struct blk_mq_hw_ctx *hctx)
--
block/blk-mq-sched.c-133-		 * Now this rq owns the budget which has to be released
block/blk-mq-sched.c:134:		 * if this rq won't be queued to driver via .queue_rq()
block/blk-mq-sched.c-135-		 * in blk_mq_dispatch_rq_list().
--
block/blk-mq-sched.c=213=static int blk_mq_do_dispatch_ctx(struct blk_mq_hw_ctx *hctx)
--
block/blk-mq-sched.c-253-		 * Now this rq owns the budget which has to be released
block/blk-mq-sched.c:254:		 * if this rq won't be queued to driver via .queue_rq()
block/blk-mq-sched.c-255-		 * in blk_mq_dispatch_rq_list().
--
block/blk-mq.c=2085=bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list,
--
block/blk-mq.c-2116-
block/blk-mq.c:2117:		ret = q->mq_ops->queue_rq(hctx, &bd);
block/blk-mq.c-2118-		switch (ret) {
--
block/blk-mq.c=2443=EXPORT_SYMBOL(blk_mq_delay_run_hw_queues);
--
block/blk-mq.c-2445-/*
block/blk-mq.c:2446: * This function is often used for pausing .queue_rq() by driver when
block/blk-mq.c-2447- * there isn't enough resource or some conditions aren't satisfied, and
--
block/blk-mq.c=2460=EXPORT_SYMBOL(blk_mq_stop_hw_queue);
--
block/blk-mq.c-2462-/*
block/blk-mq.c:2463: * This function is often used for pausing .queue_rq() by driver when
block/blk-mq.c-2464- * there isn't enough resource or some conditions aren't satisfied, and
--
block/blk-mq.c=2679=static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx,
--
block/blk-mq.c-2693-	 */
block/blk-mq.c:2694:	ret = q->mq_ops->queue_rq(hctx, &bd);
block/blk-mq.c-2695-	switch (ret) {
--
block/blk-mq.c=2938=void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule)
--
block/blk-mq.c-2943-	 * We may have been called recursively midway through handling
block/blk-mq.c:2944:	 * plug->mq_list via a schedule() in the driver's queue_rq() callback.
block/blk-mq.c-2945-	 * To avoid mq_list changing under our feet, clear rq_count early and
--
block/bsg-lib.c=232=static bool bsg_prepare_job(struct device *dev, struct request *req)
--
block/bsg-lib.c-271- */
block/bsg-lib.c:272:static blk_status_t bsg_queue_rq(struct blk_mq_hw_ctx *hctx,
block/bsg-lib.c-273-				 const struct blk_mq_queue_data *bd)
]

217/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 28952
							output: 36
							thoughts: 48
						

Thoughts:
Here's the summary, rendered in the first person:

**Diving into Block Layer Error Handling**

Okay, so I need to understand the error paths within the block layer a bit better. My focus right now is on how things work in `__blk_mq_issue_directly` and `blk_mq_dispatch_rq_list` when we're *not* getting a clean `BLK_STS_OK` or hitting a resource limit with `BLK_STS_RESOURCE`. I want to see what happens when something *goes wrong*. Where do we go, what do we do? What are the implications of those particular status codes in this context? Let's trace it through and see how the error propagates, what recovery mechanisms, if any, are in place, and how the overall queue management is impacted. I suspect there are a number of interesting interactions that are only triggered by these failure scenarios. Time to dig in.



218/4 2026/09/28 18:18 tool read-file
0m Args:
map[File:block/blk-mq.c FirstLine:2690 LineCount:35]

Results:
map[Contents:2690:		 * For OK queue, we are done. For error, caller may kill it.
2691:		 * Any other error (busy), just add it to our list as we
2692:		 * previously would have done.
2693:		 */
2694:		ret = q->mq_ops->queue_rq(hctx, &bd);
2695:		switch (ret) {
2696:		case BLK_STS_OK:
2697:			blk_mq_update_dispatch_busy(hctx, false);
2698:			break;
2699:		case BLK_STS_RESOURCE:
2700:		case BLK_STS_DEV_RESOURCE:
2701:			blk_mq_update_dispatch_busy(hctx, true);
2702:			__blk_mq_requeue_request(rq);
2703:			break;
2704:		default:
2705:			blk_mq_update_dispatch_busy(hctx, false);
2706:			break;
2707:		}
2708:	
2709:		return ret;
2710:	}
2711:	
2712:	static bool blk_mq_get_budget_and_tag(struct request *rq)
2713:	{
2714:		int budget_token;
2715:	
2716:		budget_token = blk_mq_get_dispatch_budget(rq->q);
2717:		if (budget_token < 0)
2718:			return false;
2719:		blk_mq_set_rq_budget_token(rq, budget_token);
2720:		if (!blk_mq_get_driver_tag(rq)) {
2721:			blk_mq_put_dispatch_budget(rq->q, budget_token);
2722:			return false;
2723:		}
2724:		return true;
]

219/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 29762
							output: 36
							thoughts: 28
						

Thoughts:
Okay, here's my attempt at summarizing those thoughts from an expert's perspective, using a first-person narrative:

**Digging into the Block Layer Dispatch**

Alright, so the task at hand is to understand how a block request actually gets dispatched. I need to trace the calling sequence that leads from somewhere "upstream" – the I/O submission – down to the point where the hardware sees it. The key functions I'm focusing on are `__blk_mq_issue_directly` and `blk_mq_dispatch_rq_list`. These seem to be the critical pieces in this puzzle. I know `__blk_mq_issue_directly` sounds like it handles the immediate push down to the hardware, or directly to a queue. And `blk_mq_dispatch_rq_list`... that one rings a bell as the one that takes a bunch of requests, a *list* of requests, and gets them lined up for the hardware. I suspect there is a relationship between the two, and the goal is to fully define the relationship from caller to callee. So, the question is, *who* is calling these functions, and *how* do they fit into the bigger picture of block I/O processing? I'll probably start with where each is called and see what structures get passed down to determine how requests are handled. I need to form a complete understanding of the block request execution paths.



220/4 2026/09/28 18:18 tool read-file
0m Args:
map[File:block/blk-mq.c FirstLine:2735 LineCount:40]

Results:
map[Contents:2735:	 * queue have higher priority.
2736:	 */
2737:	static void blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx,
2738:			struct request *rq)
2739:	{
2740:		blk_status_t ret;
2741:	
2742:		if (blk_mq_hctx_stopped(hctx) || blk_queue_quiesced(rq->q)) {
2743:			blk_mq_insert_request(rq, 0);
2744:			blk_mq_run_hw_queue(hctx, false);
2745:			return;
2746:		}
2747:	
2748:		if ((rq->rq_flags & RQF_USE_SCHED) || !blk_mq_get_budget_and_tag(rq)) {
2749:			blk_mq_insert_request(rq, 0);
2750:			blk_mq_run_hw_queue(hctx, rq->cmd_flags & REQ_NOWAIT);
2751:			return;
2752:		}
2753:	
2754:		ret = __blk_mq_issue_directly(hctx, rq, true);
2755:		switch (ret) {
2756:		case BLK_STS_OK:
2757:			break;
2758:		case BLK_STS_RESOURCE:
2759:		case BLK_STS_DEV_RESOURCE:
2760:			blk_mq_request_bypass_insert(rq, 0);
2761:			blk_mq_run_hw_queue(hctx, false);
2762:			break;
2763:		default:
2764:			blk_mq_end_request(rq, ret);
2765:			break;
2766:		}
2767:	}
2768:	
2769:	static blk_status_t blk_mq_request_issue_directly(struct request *rq, bool last)
2770:	{
2771:		struct blk_mq_hw_ctx *hctx = rq->mq_hctx;
2772:	
2773:		if (blk_mq_hctx_stopped(hctx) || blk_queue_quiesced(rq->q)) {
2774:			blk_mq_insert_request(rq, 0);
]

221/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 30787
							output: 38
							thoughts: 54
						

Thoughts:
Here's my analysis of what's going on, based on the `blk_mq_end_request(rq, ret)` call:

**Analyzing `blk_mq_end_request`**

Okay, so `blk_mq_end_request(rq, ret)` has been triggered. My immediate focus is on understanding the lifecycle of the request, `rq`, and the return code, `ret`. This function is pivotal; it signifies the completion of a block I/O request in the blk-mq framework. I need to dig deeper, specifically into how this function handles the associated bios, the fundamental units of I/O operations within the block layer. What's the state transition? Are the bios being freed, requeued, or processed in some other way? I need to understand how the `ret` value is used to signal either a success or a failure, and how that affects any further handling of the request and its associated bios. The nuances of this routine are key to understanding the performance and correctness of the I/O path. Time to jump into the code and start tracing the bios!



222/4 2026/09/28 18:18 tool codesearch-definition-source
0m Args:
map[ContextFile:block/blk-mq.c Name:blk_mq_end_request]

Results:
map[SourceCode:1145:	void blk_mq_end_request(struct request *rq, blk_status_t error)
1146:	{
1147:		if (blk_update_request(rq, error, blk_rq_bytes(rq)))
1148:			BUG();
1149:		__blk_mq_end_request(rq, error);
1150:	}
 SourceFile:block/blk-mq.c]

223/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 31245
							output: 36
							thoughts: 13
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, tailored for an expert like yourself:

**Diving into `blk_update_request`**

Alright, I'm going to take a look at `blk_update_request`. It's time to refresh my understanding of how requests are handled at this level. I want to dissect this function, and figure out the exact flow, the conditions, and the impact of the changes at play.



224/4 2026/09/28 18:18 tool codesearch-definition-source
0m Args:
map[ContextFile:block/blk-mq.c Name:blk_update_request]

Results:
map[SourceCode: 932:	/**
 933:	 * blk_update_request - Complete multiple bytes without completing the request
 934:	 * @req:      the request being processed
 935:	 * @error:    block status code
 936:	 * @nr_bytes: number of bytes to complete for @req
 937:	 *
 938:	 * Description:
 939:	 *     Ends I/O on a number of bytes attached to @req, but doesn't complete
 940:	 *     the request structure even if @req doesn't have leftover.
 941:	 *     If @req has leftover, sets it up for the next range of segments.
 942:	 *
 943:	 *     Passing the result of blk_rq_bytes() as @nr_bytes guarantees
 944:	 *     %false return from this function.
 945:	 *
 946:	 * Note:
 947:	 *	The RQF_SPECIAL_PAYLOAD flag is ignored on purpose in this function
 948:	 *      except in the consistency check at the end of this function.
 949:	 *
 950:	 * Return:
 951:	 *     %false - this request doesn't have any more data
 952:	 *     %true  - this request has more data
 953:	 **/
 954:	bool blk_update_request(struct request *req, blk_status_t error,
 955:			unsigned int nr_bytes)
 956:	{
 957:		bool is_flush = req->rq_flags & RQF_FLUSH_SEQ;
 958:		bool quiet = req->rq_flags & RQF_QUIET;
 959:		int total_bytes;
 960:	
 961:		trace_block_rq_complete(req, error, nr_bytes);
 962:	
 963:		if (!req->bio)
 964:			return false;
 965:	
 966:		if (blk_integrity_rq(req) && req_op(req) == REQ_OP_READ &&
 967:		    error == BLK_STS_OK)
 968:			blk_integrity_complete(req, nr_bytes);
 969:	
 970:		/*
 971:		 * Upper layers may call blk_crypto_evict_key() anytime after the last
 972:		 * bio_endio().  Therefore, the keyslot must be released before that.
 973:		 */
 974:		if (blk_crypto_rq_has_keyslot(req) && nr_bytes >= blk_rq_bytes(req))
 975:			__blk_crypto_rq_put_keyslot(req);
 976:	
 977:		if (unlikely(error && !blk_rq_is_passthrough(req) && !quiet) &&
 978:		    !test_bit(GD_DEAD, &req->q->disk->state)) {
 979:			blk_print_req_error(req, error);
 980:			trace_block_rq_error(req, error, nr_bytes);
 981:		}
 982:	
 983:		blk_account_io_completion(req, nr_bytes);
 984:	
 985:		total_bytes = 0;
 986:		while (req->bio) {
 987:			struct bio *bio = req->bio;
 988:			unsigned bio_bytes = min(bio->bi_iter.bi_size, nr_bytes);
 989:	
 990:			if (unlikely(error))
 991:				bio->bi_status = error;
 992:	
 993:			if (bio_bytes == bio->bi_iter.bi_size) {
 994:				req->bio = bio->bi_next;
 995:			} else if (bio_is_zone_append(bio) && error == BLK_STS_OK) {
 996:				/*
 997:				 * Partial zone append completions cannot be supported
 998:				 * as the BIO fragments may end up not being written
 999:				 * sequentially.
1000:				 */
1001:				bio->bi_status = BLK_STS_IOERR;
1002:			}
1003:	
1004:			/* Completion has already been traced */
1005:			bio_clear_flag(bio, BIO_TRACE_COMPLETION);
1006:			if (unlikely(quiet))
1007:				bio_set_flag(bio, BIO_QUIET);
1008:	
1009:			bio_advance(bio, bio_bytes);
1010:	
1011:			/* Don't actually finish bio if it's part of flush sequence */
1012:			if (!bio->bi_iter.bi_size) {
1013:				if (blk_req_bio_is_zone_append(req, bio))
1014:					blk_zone_append_update_request_bio(req, bio);
1015:				if (!is_flush)
1016:					bio_endio(bio);
1017:			}
1018:	
1019:			total_bytes += bio_bytes;
1020:			nr_bytes -= bio_bytes;
1021:	
1022:			if (!nr_bytes)
1023:				break;
1024:		}
1025:	
1026:		/*
1027:		 * completely done
1028:		 */
1029:		if (!req->bio) {
1030:			/*
1031:			 * Reset counters so that the request stacking driver
1032:			 * can find how many bytes remain in the request
1033:			 * later.
1034:			 */
1035:			req->__data_len = 0;
1036:			return false;
1037:		}
1038:	
1039:		req->__data_len -= total_bytes;
1040:	
1041:		/* update sector only for requests with clear definition of sector */
1042:		if (!blk_rq_is_passthrough(req))
1043:			req->__sector += total_bytes >> 9;
1044:	
1045:		/* mixed attributes always follow the first bio */
1046:		if (req->rq_flags & RQF_MIXED_MERGE) {
1047:			req->cmd_flags &= ~REQ_FAILFAST_MASK;
1048:			req->cmd_flags |= req->bio->bi_opf & REQ_FAILFAST_MASK;
1049:		}
1050:	
1051:		if (!(req->rq_flags & RQF_SPECIAL_PAYLOAD)) {
1052:			/*
1053:			 * If total number of sectors is less than the first segment
1054:			 * size, something has gone terribly wrong.
1055:			 */
1056:			if (blk_rq_bytes(req) < blk_rq_cur_bytes(req)) {
1057:				blk_dump_rq_flags(req, "request botched");
1058:				req->__data_len = blk_rq_cur_bytes(req);
1059:			}
1060:	
1061:			/* recalculate the number of segments */
1062:			req->nr_phys_segments = blk_recalc_rq_segments(req);
1063:		}
1064:	
1065:		return true;
1066:	}
 SourceFile:block/blk-mq.c]

225/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 33468
							output: 32
							thoughts: 36
						

Thoughts:
Okay, let's break this down.

**Analyzing `bio_endio(bio)`**

Wait a minute, I need to focus here. The core of this seems to revolve around `bio_endio(bio)`. *What* exactly does this function do? My immediate need is to understand its purpose and behavior.  I have to dive into `bio_endio(bio)` to see what's happening. I need to be sure that I have all the facts before I continue.



226/4 2026/09/28 18:18 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_endio]

Results:
map[SourceCode:1871:	/**
1872:	 * bio_endio - end I/O on a bio
1873:	 * @bio:	bio
1874:	 *
1875:	 * Description:
1876:	 *   bio_endio() will end I/O on the whole bio. bio_endio() is the preferred
1877:	 *   way to end I/O on a bio. No one should call bi_end_io() directly on a
1878:	 *   bio unless they own it and thus know that it has an end_io function.
1879:	 *
1880:	 *   bio_endio() can be called several times on a bio that has been chained
1881:	 *   using bio_chain().  The ->bi_end_io() function will only be called the
1882:	 *   last time.
1883:	 **/
1884:	void bio_endio(struct bio *bio)
1885:	{
1886:	again:
1887:		if (!bio_remaining_done(bio))
1888:			return;
1889:		if (!bio_integrity_endio(bio))
1890:			return;
1891:	
1892:		blk_zone_bio_endio(bio);
1893:	
1894:		rq_qos_done_bio(bio);
1895:	
1896:		if (bio->bi_bdev && bio_flagged(bio, BIO_TRACE_COMPLETION)) {
1897:			trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), bio);
1898:			bio_clear_flag(bio, BIO_TRACE_COMPLETION);
1899:		}
1900:	
1901:		/*
1902:		 * Need to have a real endio function for chained bios, otherwise
1903:		 * various corner cases will break (like stacking block devices that
1904:		 * save/restore bi_end_io) - however, we want to avoid unbounded
1905:		 * recursion and blowing the stack. Tail call optimization would
1906:		 * handle this, but compiling with frame pointers also disables
1907:		 * gcc's sibling call optimization.
1908:		 */
1909:		if (bio->bi_end_io == bio_chain_endio) {
1910:			bio = __bio_chain_endio(bio);
1911:			goto again;
1912:		}
1913:	
1914:	#ifdef CONFIG_BLK_CGROUP
1915:		/*
1916:		 * Release cgroup info.  We shouldn't have to do this here, but quite
1917:		 * a few callers of bio_init fail to call bio_uninit, so we cover up
1918:		 * for that here at least for now.
1919:		 */
1920:		if (bio->bi_blkg) {
1921:			blkg_put(bio->bi_blkg);
1922:			bio->bi_blkg = NULL;
1923:		}
1924:	#endif
1925:	
1926:		if (bio_flagged(bio, BIO_COMPLETE_IN_TASK) && bio_in_atomic())
1927:			__bio_complete_in_task(bio);
1928:		else if (bio->bi_end_io)
1929:			bio->bi_end_io(bio);
1930:	}
 SourceFile:block/bio.c]

227/4 2026/09/28 18:18 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 34605
							output: 35
							thoughts: 112
						

Thoughts:
Okay, here's the summary, framed as my thought process:

**Diving Deep into Page Refcounting and I/O Completion**

Right, something's not quite clicking here. I was just looking at `bio->bi_end_io(bio)`, and it's calling `o2hb_bio_end_io`. But that raises a red flag. Hold on, which function actually *decrements* the page reference count after I/O? I need to clarify this. Hmm... let me retrace my steps.

Wait a minute... I remember seeing `put_page_testzero` somewhere! Okay, let's zoom in on that. The critical question now is, where *is* `put_page_testzero` called from? I need to find its callers.

Aha! `__free_page(page)` is the key. It looks like it calls `put_page_testzero` directly. Excellent, that's what I needed. Now, let's just make absolutely sure, and double check the code. I need to understand this completely. I need to find the definition of `__free_page` now.



228/4 2026/09/28 18:19 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/page_alloc.c Name:__free_pages]

Results:
map[SourceCode:5545:	/**
5546:	 * __free_pages - Free pages allocated with alloc_pages().
5547:	 * @page: The page pointer returned from alloc_pages().
5548:	 * @order: The order of the allocation.
5549:	 *
5550:	 * This function can free multi-page allocations that are not compound
5551:	 * pages.  It does not check that the @order passed in matches that of
5552:	 * the allocation, so it is easy to leak memory.  Freeing more memory
5553:	 * than was allocated will probably emit a warning.
5554:	 *
5555:	 * If the last reference to this page is speculative, it will be released
5556:	 * by put_page() which only frees the first page of a non-compound
5557:	 * allocation.  To prevent the remaining pages from being leaked, we free
5558:	 * the subsequent pages here.  If you want to use the page's reference
5559:	 * count to decide when to free the allocation, you should allocate a
5560:	 * compound page, and use put_page() instead of __free_pages().
5561:	 *
5562:	 * Context: May be called in interrupt context or while holding a normal
5563:	 * spinlock, but not in NMI context or while holding a raw spinlock.
5564:	 */
5565:	void __free_pages(struct page *page, unsigned int order)
5566:	{
5567:		___free_pages(page, order, FPI_NONE);
5568:	}
 SourceFile:mm/page_alloc.c]

229/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 35455
							output: 35
							thoughts: 20
						

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

**Investigating `___free_pages` in `mm/page_alloc.c`**

Alright, time to get my hands dirty. I need to understand what's going on with the memory allocation process, specifically the freeing of pages. My focus is on the `___free_pages` function within `mm/page_alloc.c`. This is where the rubber meets the road, where allocated memory gets returned to the system. I know this is a core piece of the memory management puzzle, and any inefficiencies or bugs here can ripple outwards with significant consequences. I need to understand the control flow. How does it interact with the buddy allocator? How does it handle the page structures? What locks are involved? And, crucially, I need to know the conditions under which it can fail – and how the kernel handles those scenarios. Are there potential race conditions I should be looking out for? I'm anticipating delving into the details of the page flags, zone management, and the overall mechanics of how a physical page makes its way back into the free list. This is where I start to see the true nature of the memory management system.



230/4 2026/09/28 18:19 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/page_alloc.c Name:___free_pages]

Results:
map[SourceCode:5520:	static void ___free_pages(struct page *page, unsigned int order,
5521:				  fpi_t fpi_flags)
5522:	{
5523:		/* get PageHead before we drop reference */
5524:		int head = PageHead(page);
5525:		/* get alloc tag in case the page is released by others */
5526:		struct alloc_tag *tag = pgalloc_tag_get(page);
5527:	
5528:		if (put_page_testzero(page))
5529:			__free_frozen_pages(page, order, fpi_flags);
5530:		else if (!head) {
5531:			pgalloc_tag_sub_pages(tag, (1 << order) - 1);
5532:			while (order-- > 0) {
5533:				/*
5534:				 * The "tail" pages of this non-compound high-order
5535:				 * page will have no code tags, so to avoid warnings
5536:				 * mark them as empty.
5537:				 */
5538:				clear_page_tag_ref(page + (1 << order));
5539:				__free_frozen_pages(page + (1 << order), order,
5540:						    fpi_flags);
5541:			}
5542:		}
5543:	}
 SourceFile:mm/page_alloc.c]

231/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36178
							output: 37
							thoughts: 29
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in the weeds of some coding or debugging session.

**Diving into `put_page_testzero`**

Alright, I need to get my head around this `put_page_testzero(page)` function call. Time to zero in on that. First, my immediate instinct is to pinpoint *where* `put_page_testzero` actually *is* defined or used within the codebase. It's time to fire up my search tools and start looking for the definition or the most relevant calls. I'm going to start with a global search and trace the control flow.



232/4 2026/09/28 18:19 tool codesearch-definition-source
0m Args:
map[ContextFile:include/linux/mm.h Name:put_page_testzero]

Results:
map[SourceCode:1841:	/*
1842:	 * Drop a ref, return true if the refcount fell to zero (the page has no users)
1843:	 */
1844:	static inline int put_page_testzero(struct page *page)
1845:	{
1846:		VM_BUG_ON_PAGE(page_ref_count(page) == 0, page);
1847:		return page_ref_dec_and_test(page);
1848:	}
 SourceFile:include/linux/mm.h]

233/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36546
							output: 45
							thoughts: 1631
						

Thoughts:
**Debugging a Reference Count Issue in OCFS2 Heartbeat Region**

Okay, here's the situation: I'm staring at a `VM_BUG_ON_PAGE` triggered by a zero page reference count within `put_page_testzero` during a call to `__free_page`. The context is `o2hb_region_dev_store` in the OCFS2 heartbeat code, and it's being reproduced by syzkaller with an unbound loop device. The core issue is that the reference count on a page allocated for heartbeat data seems to be unexpectedly zero when it shouldn't be.

My initial reaction: Why is this happening? `page_ref_count(page) == 0` is the problem. This shouldn't be the case. The question makes it clear that we're dealing with pages allocated with `alloc_page(GFP_KERNEL)` in `o2hb_map_slot_data`, stored in `reg->hr_slot_data`, and then used by `o2hb_populate_slot_data`, which eventually leads to a bio being submitted through `o2hb_setup_one_bio`.

My immediate suspicion is that the bio completion handler, `o2hb_bio_end_io`, might be the culprit, calling `bio_put(bio)` and the block layer is decrementing the reference count or that `bio_add_page` doesn't increment the reference count as expected. But let's step back. Could it be that `__free_page` is being called more than once on the same page?

Let's re-examine the code in detail. The key is in `o2hb_region_dev_store`. This function calls `o2hb_map_slot_data` and then `o2hb_populate_slot_data`. If the latter fails (as in the reproducer), it goes to the `out:` label and calls `o2hb_unmap_slot_data`. That function calls `__free_page(page)`. So we know `o2hb_unmap_slot_data` is called.

The important question now is whether the `o2hb_unmap_slot_data` function is called more than once. If `dev_store` fails and returns `ret < 0`, what does configfs do? Does it destroy the item? Yes, it does via `drop_item` which eventually calls `o2hb_region_release`. Let's look at `o2hb_region_release`. Yes, it calls `o2hb_unmap_slot_data` again. Okay, but wait...does the second call to `o2hb_unmap_slot_data` actually do anything? Let's check. Yes, the first call to `o2hb_unmap_slot_data` sets `reg->hr_slot_data` to NULL. So, the second call *shouldn't* do anything. That means only the *first* call to `o2hb_unmap_slot_data` is the one freeing the pages.

So, the pages are allocated, they go into a bio, the bio fails on an unbound loop device, and we call `o2hb_unmap_slot_data` that releases the pages. But *how*? That leaves me again with the question: are the pages getting prematurely released *within* the bio lifecycle? Specifically, in `o2hb_setup_one_bio`. The important thing here is `bio_add_page`. Does `bio_add_page` do something that decrements the reference count? That's what I need to check.

The code in `o2hb_setup_one_bio` adds pages to the bio using `bio_add_page`. The number of slots per page will be important. `spp`! I need to know what `spp` is!



234/4 2026/09/28 18:19 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_init_region_params]

Results:
map[SourceCode:1759:	static void o2hb_init_region_params(struct o2hb_region *reg)
1760:	{
1761:		reg->hr_slots_per_page = PAGE_SIZE >> reg->hr_block_bits;
1762:		reg->hr_timeout_ms = O2HB_REGION_TIMEOUT_MS;
1763:	
1764:		mlog(ML_HEARTBEAT, "hr_start_block = %llu, hr_blocks = %u\n",
1765:		     reg->hr_start_block, reg->hr_blocks);
1766:		mlog(ML_HEARTBEAT, "hr_block_bytes = %u, hr_block_bits = %u\n",
1767:		     reg->hr_block_bytes, reg->hr_block_bits);
1768:		mlog(ML_HEARTBEAT, "hr_timeout_ms = %u\n", reg->hr_timeout_ms);
1769:		mlog(ML_HEARTBEAT, "dead threshold = %u\n", o2hb_dead_threshold);
1770:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

235/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 39398
							output: 35
							thoughts: 561
						

Thoughts:
**Analyzing Page Reference Counting in the OCFS2 Heartbeat Code**

Okay, hold on a second. I need to make sure I'm understanding this correctly. The question is about the page reference count being zero *before* `__free_page` is called, which shouldn't happen, and I need to figure out why.

My initial thought was, could the *same* page potentially be associated with multiple slots? Yes! If `spp` (slots per page) is greater than 1, like with a block size of 512 and a page size of 4096, `spp` would be 8. So each page has 8 slots. In `o2hb_map_slot_data` the following is happening:

```c
	reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
...
	reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
	if (!reg->hr_slot_data)
		goto out;

	for (i = 0; i < reg->hr_num_pages; i++) {
		page = alloc_page(GFP_KERNEL);
		if (!page)
			goto out;

		reg->hr_slot_data[i] = page;
...
```

I'm *allocating* `reg->hr_num_pages` *distinct* pages. Each index `i` of `reg->hr_slot_data[i]` gets a *different* page allocated. And in the `o2hb_unmap_slot_data` function, each of those pages is freed once:

```c
	if (reg->hr_slot_data) {
		for (i = 0; i < reg->hr_num_pages; i++) {
			page = reg->hr_slot_data[i];
			if (page) {
				__free_page(page);
				reg->hr_slot_data[i] = NULL;
			}
		}
```

So, that confirms each page is freed just once in this code path, which is as expected.

But that still doesn't explain the zero reference count. Could something *else* be freeing the page?

I need to go back to the question. Let's make sure I'm directly addressing the *actual* issue: "Why is the page reference count 0 when `__free_page` is called? Does `bio_put` or the block layer decrement the page reference count for pages added with `bio_add_page`? Or does `bio_add_page` not increment the reference count, but something else decrements it?" Okay, that's clear. The focus is specifically on whether `bio_put`, the block layer, or something else is decrementing the page's reference count.

Now, I'll need to use my expert knowledge and search for potential clues. I need to check the git logs for recent changes. I'll search for recent fixes or syzkaller bugs related to `o2hb`, `o2hb_unmap_slot_data`, `put_page_testzero`, `bio_add_page`, and the `fs/ocfs2/cluster/heartbeat.c` file. Searching with `"o2hb"` or `"heartbeat"` as regex should narrow the scope effectively. Let's start there.



236/4 2026/09/28 18:19 tool git-log
0m Args:
map[Count:20 MessageRegexps:[heartbeat] PathPrefix:fs/ocfs2]

Results:
map[Output:011291b70ba4 ocfs2: o2hb: quiesce negotiate handlers and timeout work
3e326f3bf165 ocfs2: synchronize heartbeat callbacks with o2net teardown
12c2ab42dbe2 ocfs2: cluster: fix o2hb_dependent_users leak on pin failure
cd789996db3c ocfs2: cluster: avoid lock order inversion in o2hb_region_pin() from drop_item
af09df89db9a ocfs2: cluster: don't sleep while holding o2hb_live_lock in o2hb_region_pin()
041c9d0ab53b ocfs2: cluster: use an on-stack bio for the heartbeat write
609d45af8310 ocfs2: cluster: use GFP_NOFS for heartbeat bio allocation
688bc88e2046 ocfs2/cluster: keep heartbeat local node stable
5686459423d0 ocfs2/heartbeat: fix slot mapping rollback leaks on error paths
9677a51abd86 ocfs2: constify struct configfs_item_operations and configfs_group_operations
08de555ae59a ocfs2: heartbeat: replace simple_strtoul with kstrtoul
ebc4185497ea ocfs2: Convert to use bdev_open_by_dev()
45ee6d1e935d ocfs2: fix a typo in a comment
e926d8a1e867 fs: ocfs: fix spelling mistake "hearbeating" -> "heartbeat"
cc725ef3cb20 ocfs2: fix a panic problem caused by o2cb_ctl
874b1ef0ef51 ocfs2: optimize the reading of heartbeat data
480bd56485b7 ocfs2: make several functions and variables static (and some const)
33496c3c3d7b ocfs2: o2hb: revert hb threshold to keep compatible
c62c38f6b91b ocfs2: replace CURRENT_TIME macro
88dbe98dc72f ocfs2: o2hb: don't negotiate if last hb fail
]

237/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 41310
							output: 25
							thoughts: 49
						

Thoughts:
Okay, here's the summary, expressed as though I'm the one having these thoughts, targeting an expert audience:

**Diving into the Heartbeat Optimization**

Wait a minute! Something's nagging at me. Let me go back and examine that commit... specifically, **commit 874b1ef0ef51**. Ah, here it is: "ocfs2: optimize the reading of heartbeat data". This warrants a closer look. Let's dissect the implementation details and understand how they've tackled this. I need to understand what trade-offs they made, and if there are any gotchas I should be aware of if I were to apply it in my own work.



238/4 2026/09/28 18:19 tool git-show
0m Args:
map[Commit:874b1ef0ef51]

Results:
map[Output:commit 874b1ef0ef5117c071f431fdebbf388eccbcc1f2
Author: Jia Guo <guojia12@huawei.com>
Date:   Fri Dec 28 00:32:35 2018 -0800

    ocfs2: optimize the reading of heartbeat data
    
    Reading heartbeat data from lowest node rather than from zero, in cases
    where the node is not defined from zero, can reduce the number of sectors
    read.
    
    Here is a simple test data obtained with 'iostat -dmx dm-5 2', with
    two nodes in the cluster, node number 10, 20, respectively.
    
    Before optimization:
    Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    dm-5              0.00     0.00    0.50    0.50     0.01     0.00    11.00     0.00    1.00    1.00    1.00   1.50   0.15
    
    After the optimization:
    Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    dm-5              0.00     0.00    0.50    0.50     0.00     0.00     6.00     0.00    0.50    1.00    0.00   0.50   0.05
    
    Link: http://lkml.kernel.org/r/99fe4988-69ac-3615-a218-3042fe6fbe72@huawei.com
    Signed-off-by: Jia Guo <guojia12@huawei.com>
    Reviewed-by: Jun Piao <piaojun@huawei.com>
    Reviewed-by: Yiwen Jiang <jiangyiwen@huawei.com>
    Acked-by: Joseph Qi <jiangqi903@gmail.com>
    Cc: Mark Fasheh <mark@fasheh.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Cc: Junxiao Bi <junxiao.bi@oracle.com>
    Cc: Changwei Ge <ge.changwei@h3c.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index 9b2ed62dd638..f3c20b279eb2 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -582,9 +582,10 @@ static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
 }
 
 static int o2hb_read_slots(struct o2hb_region *reg,
+			   unsigned int begin_slot,
 			   unsigned int max_slots)
 {
-	unsigned int current_slot=0;
+	unsigned int current_slot = begin_slot;
 	int status;
 	struct o2hb_bio_wait_ctxt wc;
 	struct bio *bio;
@@ -1093,9 +1094,14 @@ static int o2hb_highest_node(unsigned long *nodes, int numbits)
 	return find_last_bit(nodes, numbits);
 }
 
+static int o2hb_lowest_node(unsigned long *nodes, int numbits)
+{
+	return find_first_bit(nodes, numbits);
+}
+
 static int o2hb_do_disk_heartbeat(struct o2hb_region *reg)
 {
-	int i, ret, highest_node;
+	int i, ret, highest_node, lowest_node;
 	int membership_change = 0, own_slot_ok = 0;
 	unsigned long configured_nodes[BITS_TO_LONGS(O2NM_MAX_NODES)];
 	unsigned long live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
@@ -1120,7 +1126,8 @@ static int o2hb_do_disk_heartbeat(struct o2hb_region *reg)
 	}
 
 	highest_node = o2hb_highest_node(configured_nodes, O2NM_MAX_NODES);
-	if (highest_node >= O2NM_MAX_NODES) {
+	lowest_node = o2hb_lowest_node(configured_nodes, O2NM_MAX_NODES);
+	if (highest_node >= O2NM_MAX_NODES || lowest_node >= O2NM_MAX_NODES) {
 		mlog(ML_NOTICE, "o2hb: No configured nodes found!\n");
 		ret = -EINVAL;
 		goto bail;
@@ -1130,7 +1137,7 @@ static int o2hb_do_disk_heartbeat(struct o2hb_region *reg)
 	 * yet. Of course, if the node definitions have holes in them
 	 * then we're reading an empty slot anyway... Consider this
 	 * best-effort. */
-	ret = o2hb_read_slots(reg, highest_node + 1);
+	ret = o2hb_read_slots(reg, lowest_node, highest_node + 1);
 	if (ret < 0) {
 		mlog_errno(ret);
 		goto bail;
@@ -1801,7 +1808,7 @@ static int o2hb_populate_slot_data(struct o2hb_region *reg)
 	struct o2hb_disk_slot *slot;
 	struct o2hb_disk_heartbeat_block *hb_block;
 
-	ret = o2hb_read_slots(reg, reg->hr_blocks);
+	ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
 	if (ret)
 		goto out;
 
]

239/4 2026/09/28 18:19 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 43167
							output: 31
							thoughts: 1697
						

Thoughts:
**Analyzing the Heartbeat Code and the Page Reference Count Issue**

Okay, here's the breakdown of my thought process as I delve into this issue. First, I see `o2hb_setup_one_bio` is the key. Let's analyze it! It allocates a `bio` using `bio_alloc`. Then, the crucial part: `bio_add_page` adds pages to this `bio`.  `o2hb_read_slots` calls `o2hb_setup_one_bio`.

The prompt tells me this happens because of an unbound loop device, so the I/O fails. This means `o2hb_populate_slot_data` returns an error, triggering the clean up path.  That's where `o2hb_unmap_slot_data` gets called, leading to `__free_page(page)`. And the problem is: inside `__free_page`, `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` is triggered. That means, somehow the page refcount is zero before we try to free it. This is not normal behavior. `alloc_page` *should* increment the reference count! It should be 1.  When freeing a page, we use `put_page_testzero`. That should decrement the count to 0 and, if it was 1, free the page.

So, the refcount somehow becomes 0 *before* we get to `__free_page`. My brain is screaming, "Who is decrementing it?" I need to figure this out!

The prompt is specific and tells me that the pages were allocated via `alloc_page(GFP_KERNEL)` and stored in `reg->hr_slot_data`.  They are then added to the bio using `bio_add_page`. The bio is submitted using `submit_bio(bio)`. And the bio completion handler is `o2hb_bio_end_io`. Then `bio_put(bio)` gets called.

So I am asking: Does `bio_put` or the block layer, or something else, decrement the refcount of the page? Could the `submit_bio` call, or the loop driver, affect the page's reference count? Maybe the `bio_endio` routine, which gets called upon I/O completion, is the culprit.

Okay, let's carefully consider the questions. The root question: "Why is the page reference count 0?". Is it `bio_put`? Is it the block layer?  Does `bio_add_page` even increment the refcount?  The critical path to understand is: alloc -> add -> submit -> complete -> free. Who, in that path, is doing something that's making the page refcount zero *before* `__free_page`? I need to search the block layer code for `put_page`, or `folio_put` in order to see if something is going wrong.



240/4 2026/09/28 18:20 tool grepper
0m Args:
map[Expression:(put_page|folio_put) PathPrefix:block/]

Results:
map[Output:block/bio.c=1353=static void bio_free_folios(struct bio *bio)
--
block/bio.c-1361-		if (!is_zero_folio(folio) && !is_huge_zero_folio(folio))
block/bio.c:1362:			folio_put(folio);
block/bio.c-1363-	}
--
block/bio.c=1423=static int bio_iov_iter_bounce_read(struct bio *bio, struct iov_iter *iter,
--
block/bio.c-1438-			if (!bio->bi_vcnt)
block/bio.c:1439:				goto out_folio_put;
block/bio.c-1440-			break;
--
block/bio.c-1459-	if (ret)
block/bio.c:1460:		goto out_folio_put;
block/bio.c-1461-
--
block/bio.c-1465-
block/bio.c:1466:out_folio_put:
block/bio.c:1467:	folio_put(folio);
block/bio.c-1468-	return ret;
--
block/bio.c=1503=static void bio_iov_iter_unbounce_read(struct bio *bio, bool is_error,
--
block/bio.c-1527-
block/bio.c:1528:	folio_put(bvec_folio(&bio->bi_io_vec[0]));
block/bio.c-1529-}
--
block/partitions/check.h=32=static inline void put_dev_sector(Sector p)
block/partitions/check.h-33-{
block/partitions/check.h:34:	folio_put(p.v);
block/partitions/check.h-35-}
]

241/4 2026/09/28 18:20 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 46023
							output: 34
							thoughts: 61
						

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

**Investigating `bio_free_folios` in the Block Layer**

Alright, the block layer's caught my attention again. I need to take a look at `block/bio.c`. Specifically, I'm zeroing in on this function: `bio_free_folios(struct bio *bio)`. My immediate thought is, "What exactly *is* `bio_free_folios` doing?" Clearly, from the name, it's involved in freeing something associated with `bio` structures, but the particulars are always key. I need to understand its role within the larger I/O context.

So, the next logical question is, "Where is `bio_free_folios` actually *used*?". I need to trace its call sites to grasp its purpose in practice, not just in theory. Time to run a quick search; let's see where this function shows up in the kernel code and what other modules rely on it. A quick search should reveal the essential connections I'm after. This should start painting a clearer picture of how `bio_free_folios` fits into the kernel's I/O management scheme.



242/4 2026/09/28 18:20 tool codesearch-definition-source
0m Args:
map[ContextFile:block/bio.c Name:bio_free_folios]

Results:
map[SourceCode:1353:	static void bio_free_folios(struct bio *bio)
1354:	{
1355:		struct bio_vec *bv;
1356:		int i;
1357:	
1358:		bio_for_each_bvec_all(bv, bio, i) {
1359:			struct folio *folio = bvec_folio(bv);
1360:	
1361:			if (!is_zero_folio(folio) && !is_huge_zero_folio(folio))
1362:				folio_put(folio);
1363:		}
1364:	}
 SourceFile:block/bio.c]

243/4 2026/09/28 18:20 llm codeexpert
2m Model:
gemini-3.8-flash

Tokens:
							input: 46689
							output: 906
							thoughts: 13856
						

Thoughts:
**Analysis of the OCFS2 Heartbeat Slot Data and the `page_ref_count` Bug**

Alright, let's break down this issue. We're looking at a bug that triggers a `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` in `put_page_testzero` during the `__free_page` call within `o2hb_unmap_slot_data` in the OCFS2 heartbeat code. The reproducer leverages an unbound loop device, and I need to figure out *why* the page reference count is zero when it shouldn't be. The tools are restricted to reading code, analyzing known behavior and tracing.

First, let's establish the basics.  `o2hb_map_slot_data` allocates pages using `alloc_page(GFP_KERNEL)`, initializing their reference count to 1. These pages are stored in `reg->hr_slot_data`. Then, `o2hb_setup_one_bio` adds these pages to a `bio` using `bio_add_page`. The key here is the block layer's behavior: `bio_add_page` does *not* increment the page's reference count.  It simply *associates* the page with the bio.  The caller (`o2hb_map_slot_data` here) is responsible for managing the page lifecycle.

Now, where do the pages get freed? `bio_free_folios` and `bio_release_pages` come to mind, but they are generally for user buffers or direct I/O. In this case, `bio_put(bio)` and `bio_free(bio)` are called, but *they* don't decrement the page refcount. This is the common pattern: `bio_put` only frees the bio structure, not the data it references.

So, when does the reference count *get* decremented?  It isn't by `bio_put` or the block layer generally. `alloc_page` starts the refcount at 1, and so, the refcount should always be 1 until someone decrements it.

Let's look more closely at the code in the context of the unbound loop device. The core sequence is: `o2hb_map_slot_data` allocates, `o2hb_populate_slot_data` reads data,  `o2hb_read_slots` sets up I/O and then `o2hb_unmap_slot_data` is supposed to free the pages when things fail. The syzkaller reproducer triggers an error when the block device is an unbound loop device, making `o2hb_populate_slot_data` fail and calling `o2hb_unmap_slot_data` and triggering the bug on a failed I/O.

Now, the bug is that the refcount is 0 when `__free_page` is called. That shouldn't happen! The `alloc_page` gave the page a refcount of 1! *Unless* something else already decremented it.  Could `bio_add_page` do that? No, it doesn't touch the count. Could `bio_put` do that? No, it's just the bio data structure. What about loop device completion? In the failure case with an unbound device, the I/O fails, calling `o2hb_bio_end_io` which does `bio_put`... but the bio `bio_put` calls don't decrement refcount, but *only* frees the bio. So, the page refcount should remain at 1.

So the problem: There is clearly a double free or the pages got freed unexpectedly. The question is how to get the refcount to 0. It must be that *another* `__free_page` was called! Let's double check `o2hb_unmap_slot_data`, does the code call it twice? The logic clearly does not call it twice.

But wait. Could `o2hb_unmap_slot_data` be called *concurrently*? `o2hb_region_dev_store` is the entrypoint to the code. There is NO locking on the `dev` entrypoint!  *That's* the likely issue. A race! Another thread, or a configfs release operation, could call `o2hb_unmap_slot_data` *at the same time* as our error handler does. This would lead to a double free, where one thread decrements the page refcount from 1 to 0 and frees the page, and a second thread encounters the `page_ref_count(page) == 0` during the `__free_page


244/4 2026/09/28 18:22 tool set-results
0m Args:
map[Answer:Based on analysis of the kernel source code in `fs/ocfs2/cluster/heartbeat.c`, `block/bio.c`, `block/blk-mq.c`, and `drivers/block/loop.c`:

### 1. Does `bio_put` or the block layer decrement the page reference count?
**No.**
- `bio_add_page()` (and `__bio_add_page()`) merely assigns the page pointer, offset, and length into the bio's `bio_vec` array (`bvec_set_page`). It does **not** call `get_page()` or take a reference. It assumes the caller already owns and will maintain the reference to the page across the lifespan of the bio.
- `bio_put()` only manages the reference count of the bio itself (`bio->__bi_cnt`). When the bio reference count drops to 0, `bio_free()` releases the `struct bio` and its `bio_vec` array back to their mempools/slabs via `bio_uninit()`. It does **not** touch or decrement the reference counts of the pages referenced in `bi_io_vec`.
- The block layer request/bio completion path (`blk_mq_end_request()`, `blk_update_request()`, `bio_endio()`) does **not** touch page reference counts. When an unbound loop device rejects the request (`loop_queue_rq()` returns `BLK_STS_IOERR`), the block layer ends the bio with that error status, invoking `o2hb_bio_end_io()`. That callback simply decrements the wait context counter and calls `bio_put(bio)`.

### 2. Why is the page reference count 0 when `__free_page` is called?
- When a page is allocated via `alloc_page(GFP_KERNEL)`, its reference count is initialized to 1.
- In a strictly sequential, single-threaded execution, since neither `bio_add_page()`, the block layer, nor `bio_put()` modifies the page reference count, the refcount remains 1 until `o2hb_unmap_slot_data()` calls `__free_page(page)`. There, `put_page_testzero()` decrements the count from 1 to 0 and frees the page cleanly.
- For `put_page_testzero(page)` to hit `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`, `__free_page()` (or `put_page()`) must have already been called on that page earlier, dropping its count to 0 (a double-free).
- In `o2hb_region_dev_store()`, there is no mutex or lock serializing concurrent operations on the same configfs heartbeat region item. If a syzkaller reproducer performs concurrent operations (e.g. concurrent writes to the `dev` attribute or concurrent configfs release / teardown via `rmdir` calling `o2hb_region_release()`):
  - Two threads can invoke `o2hb_unmap_slot_data()` on the same `reg->hr_slot_data` pages.
  - The first thread calls `__free_page(page)`, dropping the reference count from 1 to 0 and freeing the page.
  - The second thread (before or while `reg->hr_slot_data[i]` is cleared) calls `__free_page(page)` on the already-freed page, where `page_ref_count(page) == 0`, triggering `VM_BUG_ON_PAGE()`.

### Unverified Parts / Caveats
- The exact concurrency sequence in the specific syzkaller reproducer (e.g. concurrent `write` calls to `dev` vs. a race between `dev_store` failure and `o2hb_region_release` from item teardown) was inferred from the lack of locking in `heartbeat.c`, as the reproducer source code itself was not provided. However, the block layer and bio lifecycle behaviors were verified directly against the kernel source.]

Results:
map[Answer:Based on analysis of the kernel source code in `fs/ocfs2/cluster/heartbeat.c`, `block/bio.c`, `block/blk-mq.c`, and `drivers/block/loop.c`:

### 1. Does `bio_put` or the block layer decrement the page reference count?
**No.**
- `bio_add_page()` (and `__bio_add_page()`) merely assigns the page pointer, offset, and length into the bio's `bio_vec` array (`bvec_set_page`). It does **not** call `get_page()` or take a reference. It assumes the caller already owns and will maintain the reference to the page across the lifespan of the bio.
- `bio_put()` only manages the reference count of the bio itself (`bio->__bi_cnt`). When the bio reference count drops to 0, `bio_free()` releases the `struct bio` and its `bio_vec` array back to their mempools/slabs via `bio_uninit()`. It does **not** touch or decrement the reference counts of the pages referenced in `bi_io_vec`.
- The block layer request/bio completion path (`blk_mq_end_request()`, `blk_update_request()`, `bio_endio()`) does **not** touch page reference counts. When an unbound loop device rejects the request (`loop_queue_rq()` returns `BLK_STS_IOERR`), the block layer ends the bio with that error status, invoking `o2hb_bio_end_io()`. That callback simply decrements the wait context counter and calls `bio_put(bio)`.

### 2. Why is the page reference count 0 when `__free_page` is called?
- When a page is allocated via `alloc_page(GFP_KERNEL)`, its reference count is initialized to 1.
- In a strictly sequential, single-threaded execution, since neither `bio_add_page()`, the block layer, nor `bio_put()` modifies the page reference count, the refcount remains 1 until `o2hb_unmap_slot_data()` calls `__free_page(page)`. There, `put_page_testzero()` decrements the count from 1 to 0 and frees the page cleanly.
- For `put_page_testzero(page)` to hit `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`, `__free_page()` (or `put_page()`) must have already been called on that page earlier, dropping its count to 0 (a double-free).
- In `o2hb_region_dev_store()`, there is no mutex or lock serializing concurrent operations on the same configfs heartbeat region item. If a syzkaller reproducer performs concurrent operations (e.g. concurrent writes to the `dev` attribute or concurrent configfs release / teardown via `rmdir` calling `o2hb_region_release()`):
  - Two threads can invoke `o2hb_unmap_slot_data()` on the same `reg->hr_slot_data` pages.
  - The first thread calls `__free_page(page)`, dropping the reference count from 1 to 0 and freeing the page.
  - The second thread (before or while `reg->hr_slot_data[i]` is cleared) calls `__free_page(page)` on the already-freed page, where `page_ref_count(page) == 0`, triggering `VM_BUG_ON_PAGE()`.

### Unverified Parts / Caveats
- The exact concurrency sequence in the specific syzkaller reproducer (e.g. concurrent `write` calls to `dev` vs. a race between `dev_store` failure and `o2hb_region_release` from item teardown) was inferred from the lack of locking in `heartbeat.c`, as the reproducer source code itself was not provided. However, the block layer and bio lifecycle behaviors were verified directly against the kernel source.]

245/2 2026/09/28 18:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54300
							output: 41
							thoughts: 0
						

246/2 2026/09/28 18:22 tool grepper
0m Args:
map[Expression:o2hb_region_dev_store PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1838=static int o2hb_populate_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1869- */
fs/ocfs2/cluster/heartbeat.c:1870:static ssize_t o2hb_region_dev_store(struct config_item *item,
fs/ocfs2/cluster/heartbeat.c-1871-				     const char *page,
]

247/2 2026/09/28 18:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54481
							output: 41
							thoughts: 0
						

248/2 2026/09/28 18:22 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:1870 LineCount:50]

Results:
map[Contents:1870:	static ssize_t o2hb_region_dev_store(struct config_item *item,
1871:					     const char *page,
1872:					     size_t count)
1873:	{
1874:		struct o2hb_region *reg = to_o2hb_region(item);
1875:		struct task_struct *hb_task;
1876:		long fd;
1877:		int sectsize;
1878:		char *p = (char *)page;
1879:		ssize_t ret = -EINVAL;
1880:		int live_threshold;
1881:	
1882:		if (reg->hr_bdev_file)
1883:			return -EINVAL;
1884:	
1885:		/* We can't heartbeat without having had our node number
1886:		 * configured yet. */
1887:		reg->hr_node_num = o2nm_this_node();
1888:		if (reg->hr_node_num == O2NM_MAX_NODES)
1889:			return -EINVAL;
1890:	
1891:		ret = kstrtol(p, 0, &fd);
1892:		if (ret < 0)
1893:			return -EINVAL;
1894:	
1895:		if (fd < 0 || fd >= INT_MAX)
1896:			return -EINVAL;
1897:	
1898:		CLASS(fd, f)(fd);
1899:		if (fd_empty(f))
1900:			return -EINVAL;
1901:	
1902:		if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
1903:		    reg->hr_block_bytes == 0)
1904:			return -EINVAL;
1905:	
1906:		if (!S_ISBLK(fd_file(f)->f_mapping->host->i_mode))
1907:			return -EINVAL;
1908:	
1909:		reg->hr_bdev_file = bdev_file_open_by_dev(fd_file(f)->f_mapping->host->i_rdev,
1910:				BLK_OPEN_WRITE | BLK_OPEN_READ, NULL, NULL);
1911:		if (IS_ERR(reg->hr_bdev_file)) {
1912:			ret = PTR_ERR(reg->hr_bdev_file);
1913:			reg->hr_bdev_file = NULL;
1914:			return ret;
1915:		}
1916:	
1917:		sectsize = bdev_logical_block_size(reg_bdev(reg));
1918:		if (sectsize != reg->hr_block_bytes) {
1919:			mlog(ML_ERROR,
]

249/2 2026/09/28 18:22 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 55323
							output: 351
							thoughts: 0
						

250/2 2026/09/28 18:22 tool codeexpert
6m Error:
log-in to see details

Args:
map[Question:In `fs/ocfs2/cluster/heartbeat.c`, `o2hb_region_dev_store` is a configfs store function.
Is there any locking that prevents concurrent execution of `o2hb_region_dev_store` on the same `config_item`?
If not, could two threads concurrently execute `o2hb_region_dev_store`?
If they do, they both might pass the `if (reg->hr_bdev_file)` check, and then both call `o2hb_map_slot_data(reg)`.
`o2hb_map_slot_data` allocates `reg->hr_slot_data` and pages. If called twice concurrently, it could leak memory or cause double frees.
Also, if one thread fails in `o2hb_populate_slot_data` and jumps to `out:`, it calls `o2hb_unmap_slot_data(reg)`.
`o2hb_unmap_slot_data` loops over `reg->hr_slot_data` and calls `__free_page(page)`.
If the second thread is also executing `o2hb_unmap_slot_data` or if the first thread frees pages that the second thread is using, it could lead to the `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` crash.

Please analyze the concurrency of `o2hb_region_dev_store` and `o2hb_unmap_slot_data`.]

251/3 2026/09/28 18:22 agent codeexpert
6m Model:
core

Error:
log-in to see details

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

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

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
   once you have located the relevant code or definitions. If a symbol or function cannot
   be found after targeted searches, conclude with the best available information rather
   than continuing repetitive searches.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.

Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.

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


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

Prompt:
In `fs/ocfs2/cluster/heartbeat.c`, `o2hb_region_dev_store` is a configfs store function.
Is there any locking that prevents concurrent execution of `o2hb_region_dev_store` on the same `config_item`?
If not, could two threads concurrently execute `o2hb_region_dev_store`?
If they do, they both might pass the `if (reg->hr_bdev_file)` check, and then both call `o2hb_map_slot_data(reg)`.
`o2hb_map_slot_data` allocates `reg->hr_slot_data` and pages. If called twice concurrently, it could leak memory or cause double frees.
Also, if one thread fails in `o2hb_populate_slot_data` and jumps to `out:`, it calls `o2hb_unmap_slot_data(reg)`.
`o2hb_unmap_slot_data` loops over `reg->hr_slot_data` and calls `__free_page(page)`.
If the second thread is also executing `o2hb_unmap_slot_data` or if the first thread frees pages that the second thread is using, it could lead to the `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)` crash.

Please analyze the concurrency of `o2hb_region_dev_store` and `o2hb_unmap_slot_data`.

252/4 2026/09/28 18:22 llm codeexpert
1m Model:
gemini-3.8-flash

Tokens:
							input: 4483
							output: 45
							thoughts: 605
						

Thoughts:
**Concurrency Analysis of `o2hb_region_dev_store` in OCFS2 Heartbeat**

Okay, so I'm digging into this concurrency concern around `o2hb_region_dev_store` in the OCFS2 heartbeat code. The user is asking a very valid question, and my brain is starting to churn on the implications. Essentially, they're worried about whether `o2hb_region_dev_store` can be executed concurrently on the same `config_item` within ConfigFS, and the potential for a race condition there.

My immediate thought is that ConfigFS, or VFS in general, *should* provide some kind of serialization for `store` operations on the same attribute or item, but I need to confirm that. I'll need to check the ConfigFS implementation specifically, and also understand how the OCFS2 code interacts with it. This is a classic concurrency vulnerability scenario – we're looking for whether there's sufficient locking to prevent multiple threads from stomping on each other.

If there *isn't* inherent protection from ConfigFS, then the worry is that two threads could execute `o2hb_region_dev_store` simultaneously. This would then lead to both threads potentially passing the `if (reg->hr_bdev_file)` check. From there, both could call `o2hb_map_slot_data(reg)`. This function is particularly concerning because it allocates `reg->hr_slot_data` and memory pages. If called twice concurrently, it would definitely lead to either memory leaks (the double allocation, but only one free), or double frees (one thread frees the structure, another threads has a dangling pointer, and crashes when it tries to also free it). We're talking about a classic race condition and potential double-free scenario, leading to a kernel crash (the dreaded `VM_BUG_ON_PAGE`).

Furthermore, the user is correct to be thinking about error paths. If one thread fails in `o2hb_populate_slot_data` and bails out via the `out:` label, it calls `o2hb_unmap_slot_data(reg)`. This function loops over `reg->hr_slot_data` and calls `__free_page(page)`. So, if a second thread is concurrently executing either `o2hb_region_dev_store`, or is concurrently executing `o2hb_unmap_slot_data`, this could lead to the classic kernel panic: `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`.

So, the focus is clear: I need to investigate how ConfigFS handles concurrency around these `store` methods. I will trace the execution path from `o2hb_region_dev_store` and `o2hb_unmap_slot_data`. I am going to see if any locking protects the execution paths. I need to understand whether ConfigFS/VFS has built-in serialization for store callbacks, or if OCFS2 must provide its own. If it's the latter, then I need to carefully examine what, if any, locking is in place. I will use the tools.



253/4 2026/09/28 18:24 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_region_dev_store]

Results:
map[SourceCode:1866:	/*
1867:	 * this is acting as commit; we set up all of hr_bdev_file and hr_task or
1868:	 * nothing
1869:	 */
1870:	static ssize_t o2hb_region_dev_store(struct config_item *item,
1871:					     const char *page,
1872:					     size_t count)
1873:	{
1874:		struct o2hb_region *reg = to_o2hb_region(item);
1875:		struct task_struct *hb_task;
1876:		long fd;
1877:		int sectsize;
1878:		char *p = (char *)page;
1879:		ssize_t ret = -EINVAL;
1880:		int live_threshold;
1881:	
1882:		if (reg->hr_bdev_file)
1883:			return -EINVAL;
1884:	
1885:		/* We can't heartbeat without having had our node number
1886:		 * configured yet. */
1887:		reg->hr_node_num = o2nm_this_node();
1888:		if (reg->hr_node_num == O2NM_MAX_NODES)
1889:			return -EINVAL;
1890:	
1891:		ret = kstrtol(p, 0, &fd);
1892:		if (ret < 0)
1893:			return -EINVAL;
1894:	
1895:		if (fd < 0 || fd >= INT_MAX)
1896:			return -EINVAL;
1897:	
1898:		CLASS(fd, f)(fd);
1899:		if (fd_empty(f))
1900:			return -EINVAL;
1901:	
1902:		if (reg->hr_blocks == 0 || reg->hr_start_block == 0 ||
1903:		    reg->hr_block_bytes == 0)
1904:			return -EINVAL;
1905:	
1906:		if (!S_ISBLK(fd_file(f)->f_mapping->host->i_mode))
1907:			return -EINVAL;
1908:	
1909:		reg->hr_bdev_file = bdev_file_open_by_dev(fd_file(f)->f_mapping->host->i_rdev,
1910:				BLK_OPEN_WRITE | BLK_OPEN_READ, NULL, NULL);
1911:		if (IS_ERR(reg->hr_bdev_file)) {
1912:			ret = PTR_ERR(reg->hr_bdev_file);
1913:			reg->hr_bdev_file = NULL;
1914:			return ret;
1915:		}
1916:	
1917:		sectsize = bdev_logical_block_size(reg_bdev(reg));
1918:		if (sectsize != reg->hr_block_bytes) {
1919:			mlog(ML_ERROR,
1920:			     "blocksize %u incorrect for device, expected %d",
1921:			     reg->hr_block_bytes, sectsize);
1922:			ret = -EINVAL;
1923:			goto out;
1924:		}
1925:	
1926:		reg->hr_aborted_start = 0;
1927:		reg->hr_node_deleted = 0;
1928:		o2hb_init_region_params(reg);
1929:	
1930:		/* Generation of zero is invalid */
1931:		do {
1932:			get_random_bytes(&reg->hr_generation,
1933:					 sizeof(reg->hr_generation));
1934:		} while (reg->hr_generation == 0);
1935:	
1936:		ret = o2hb_map_slot_data(reg);
1937:		if (ret) {
1938:			mlog_errno(ret);
1939:			goto out;
1940:		}
1941:	
1942:		ret = o2hb_populate_slot_data(reg);
1943:		if (ret) {
1944:			mlog_errno(ret);
1945:			goto out;
1946:		}
1947:	
1948:		/*
1949:		 * A node is considered live after it has beat LIVE_THRESHOLD
1950:		 * times.  We're not steady until we've given them a chance
1951:		 * _after_ our first read.
1952:		 * The default threshold is bare minimum so as to limit the delay
1953:		 * during mounts. For global heartbeat, the threshold doubled for the
1954:		 * first region.
1955:		 */
1956:		live_threshold = O2HB_LIVE_THRESHOLD;
1957:		if (o2hb_global_heartbeat_active()) {
1958:			spin_lock(&o2hb_live_lock);
1959:			if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1)
1960:				live_threshold <<= 1;
1961:			spin_unlock(&o2hb_live_lock);
1962:		}
1963:		++live_threshold;
1964:		atomic_set(&reg->hr_steady_iterations, live_threshold);
1965:		/* unsteady_iterations is triple the steady_iterations */
1966:		atomic_set(&reg->hr_unsteady_iterations, (live_threshold * 3));
1967:		o2hb_set_region_stopping(reg, false);
1968:	
1969:		hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
1970:				      reg->hr_item.ci_name);
1971:		if (IS_ERR(hb_task)) {
1972:			ret = PTR_ERR(hb_task);
1973:			mlog_errno(ret);
1974:			goto out;
1975:		}
1976:	
1977:		spin_lock(&o2hb_live_lock);
1978:		reg->hr_task = hb_task;
1979:		spin_unlock(&o2hb_live_lock);
1980:	
1981:		ret = wait_event_interruptible(o2hb_steady_queue,
1982:					atomic_read(&reg->hr_steady_iterations) == 0 ||
1983:					reg->hr_node_deleted);
1984:		if (ret) {
1985:			atomic_set(&reg->hr_steady_iterations, 0);
1986:			reg->hr_aborted_start = 1;
1987:		}
1988:	
1989:		if (reg->hr_aborted_start) {
1990:			ret = -EIO;
1991:			goto out;
1992:		}
1993:	
1994:		if (reg->hr_node_deleted) {
1995:			ret = -EINVAL;
1996:			goto out;
1997:		}
1998:	
1999:		/* Ok, we were woken.  Make sure it wasn't by drop_item() */
2000:		spin_lock(&o2hb_live_lock);
2001:		hb_task = reg->hr_task;
2002:		if (o2hb_global_heartbeat_active())
2003:			set_bit(reg->hr_region_num, o2hb_live_region_bitmap);
2004:		spin_unlock(&o2hb_live_lock);
2005:	
2006:		if (hb_task)
2007:			ret = count;
2008:		else
2009:			ret = -EIO;
2010:	
2011:		if (hb_task && o2hb_global_heartbeat_active())
2012:			printk(KERN_NOTICE "o2hb: Heartbeat started on region %s (%pg)\n",
2013:			       config_item_name(&reg->hr_item), reg_bdev(reg));
2014:	
2015:	out:
2016:		if (ret < 0) {
2017:			o2hb_quiesce_timeout(reg);
2018:	
2019:			spin_lock(&o2hb_live_lock);
2020:			hb_task = reg->hr_task;
2021:			reg->hr_task = NULL;
2022:			spin_unlock(&o2hb_live_lock);
2023:	
2024:			if (hb_task)
2025:				kthread_stop(hb_task);
2026:	
2027:			o2hb_unmap_slot_data(reg);
2028:	
2029:			fput(reg->hr_bdev_file);
2030:			reg->hr_bdev_file = NULL;
2031:		}
2032:		return ret;
2033:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

254/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 8389
							output: 22
							thoughts: 64
						

Thoughts:
Here's my take:

**Tracing the Configfs Store Callback**

Okay, so I'm looking at this `o2hb_region_dev_store` – right, it's a configfs store callback. Now I need to figure out how `configfs` actually *uses* this callback. How does the control flow work? Where exactly does `configfs` call the store attribute method? I need to trace this execution path to fully understand the interaction. Alright, time to dive into the `fs/configfs/` directory and start searching for where `configfs` is invoking store-related functions. Let's see what we can find.



255/4 2026/09/28 18:24 tool codesearch-dir-index
0m Args:
map[Dir:fs/configfs]

Results:
map[Files:[configfs_internal.h dir.c file.c inode.c item.c mount.c symlink.c] Subdirs:<nil>]

256/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 8674
							output: 29
							thoughts: 47
						

Thoughts:
Okay, let's dive into this.

**Examining ConfigFS Attribute Storage**

Alright, my first instinct is to zero in on `fs/configfs/file.c`. I need to understand exactly how ConfigFS implements the `write` operation, that is, how it stores attributes. The key here is to see how the system handles the attribute store mechanism.

Most importantly, I'm specifically looking for the locking strategy employed. I need to understand the concurrency control to ensure data integrity and prevent race conditions. The devil is in the details, so let's get reading and see what kind of synchronization primitives are in place.



257/4 2026/09/28 18:24 tool grepper
0m Args:
map[Expression:store PathPrefix:fs/configfs/file.c]

Results:
map[Output:fs/configfs/file.c=200=flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count)
--
fs/configfs/file.c-206-	if (!frag->frag_dead)
fs/configfs/file.c:207:		res = buffer->attr->store(buffer->item, buffer->page, count);
fs/configfs/file.c-208-	up_read(&frag->frag_sem);
--
fs/configfs/file.c=290=static int __configfs_open_file(struct inode *inode, struct file *file, int type)
--
fs/configfs/file.c-337-	 * The inode's perms must say it's ok,
fs/configfs/file.c:338:	 * and we must have a store method.
fs/configfs/file.c-339-	 */
--
fs/configfs/file.c-342-			goto out_put_module;
fs/configfs/file.c:343:		if ((type & CONFIGFS_ITEM_ATTR) && !attr->store)
fs/configfs/file.c-344-			goto out_put_module;
]

258/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9204
							output: 36
							thoughts: 64
						

Thoughts:
Here's my summary, tailored for an expert audience:

**Diving into ConfigFS File Operations**

Okay, so I'm thinking about how ConfigFS handles file writes, and the `fs/configfs/file.c` file is the key. Specifically, I need to focus on the area around line 200 – that's likely where the core write handling is happening. I need to refresh my memory on the write flow. I'll need to double check `configfs_write_iter` or `configfs_write_file`. So, to get a handle on what's going on, I'm going to scan through that section of code, roughly lines 150 to 300 in `fs/configfs/file.c`. This should give me a good overview of the write path and the relevant data structures.



259/4 2026/09/28 18:24 tool read-file
0m Args:
map[File:fs/configfs/file.c FirstLine:180 LineCount:80]

Results:
map[Contents: 180:	/* Fill @buffer with data coming from @from. */
 181:	static int fill_write_buffer(struct configfs_buffer *buffer,
 182:				     struct iov_iter *from)
 183:	{
 184:		int copied;
 185:	
 186:		if (!buffer->page)
 187:			buffer->page = kmalloc(PAGE_SIZE, GFP_KERNEL);
 188:		if (!buffer->page)
 189:			return -ENOMEM;
 190:	
 191:		copied = copy_from_iter(buffer->page, SIMPLE_ATTR_SIZE - 1, from);
 192:		buffer->needs_read_fill = 1;
 193:		/* if buf is assumed to contain a string, terminate it by \0,
 194:		 * so e.g. sscanf() can scan the string easily */
 195:		buffer->page[copied] = 0;
 196:		return copied ? : -EFAULT;
 197:	}
 198:	
 199:	static int
 200:	flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count)
 201:	{
 202:		struct configfs_fragment *frag = to_frag(file);
 203:		int res = -ENOENT;
 204:	
 205:		down_read(&frag->frag_sem);
 206:		if (!frag->frag_dead)
 207:			res = buffer->attr->store(buffer->item, buffer->page, count);
 208:		up_read(&frag->frag_sem);
 209:		return res;
 210:	}
 211:	
 212:	
 213:	/*
 214:	 * There is no easy way for us to know if userspace is only doing a partial
 215:	 * write, so we don't support them. We expect the entire buffer to come on the
 216:	 * first write.
 217:	 * Hint: if you're writing a value, first read the file, modify only the value
 218:	 * you're changing, then write entire buffer back.
 219:	 */
 220:	static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from)
 221:	{
 222:		struct file *file = iocb->ki_filp;
 223:		struct configfs_buffer *buffer = file->private_data;
 224:		int len;
 225:	
 226:		mutex_lock(&buffer->mutex);
 227:		len = fill_write_buffer(buffer, from);
 228:		if (len > 0)
 229:			len = flush_write_buffer(file, buffer, len);
 230:		if (len > 0)
 231:			iocb->ki_pos += len;
 232:		mutex_unlock(&buffer->mutex);
 233:		return len;
 234:	}
 235:	
 236:	static ssize_t configfs_bin_write_iter(struct kiocb *iocb,
 237:					       struct iov_iter *from)
 238:	{
 239:		struct file *file = iocb->ki_filp;
 240:		struct configfs_buffer *buffer = file->private_data;
 241:		void *tbuf = NULL;
 242:		size_t end_offset;
 243:		ssize_t len;
 244:	
 245:		mutex_lock(&buffer->mutex);
 246:	
 247:		/* we don't support switching read/write modes */
 248:		if (buffer->read_in_progress) {
 249:			len = -ETXTBSY;
 250:			goto out;
 251:		}
 252:		buffer->write_in_progress = true;
 253:	
 254:		/* buffer grows? */
 255:		end_offset = iocb->ki_pos + iov_iter_count(from);
 256:		if (end_offset > buffer->bin_buffer_size) {
 257:			if (buffer->cb_max_size && end_offset > buffer->cb_max_size) {
 258:				len = -EFBIG;
 259:				goto out;
]

260/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10725
							output: 36
							thoughts: 113
						

Thoughts:
**Investigating the Configuration File System Buffer Management**

Okay, let's dive into this `configfs_write_iter` function. First, I see they're grabbing the `struct configfs_buffer` with `file->private_data`. Interesting. A mutex is immediately locked on that buffer: `mutex_lock(&buffer->mutex);`. Right, this `buffer` is attached to the open file descriptor. Aha! That raises a question: is this buffer *specifically* allocated per `struct file *`, or is it shared at a higher level – per inode, or maybe even per configfs item? Gotta clarify this...

Time to dig deeper. I need to trace this back to the file opening process. Let me pull up `__configfs_open_file` – specifically, I'll need to check lines 280 to 360 in `fs/configfs/file.c`. That should clear up the relationship between the file, the inode, the item, and this buffer. This is a critical point to understanding the concurrency model here, so it's worth the extra effort to verify this.



261/4 2026/09/28 18:24 tool read-file
0m Args:
map[File:fs/configfs/file.c FirstLine:280 LineCount:80]

Results:
map[Contents: 280:		}
 281:	
 282:		len = copy_from_iter(buffer->bin_buffer + iocb->ki_pos,
 283:				     buffer->bin_buffer_size - iocb->ki_pos, from);
 284:		iocb->ki_pos += len;
 285:	out:
 286:		mutex_unlock(&buffer->mutex);
 287:		return len ? : -EFAULT;
 288:	}
 289:	
 290:	static int __configfs_open_file(struct inode *inode, struct file *file, int type)
 291:	{
 292:		struct dentry *dentry = file->f_path.dentry;
 293:		struct configfs_fragment *frag = to_frag(file);
 294:		struct configfs_attribute *attr;
 295:		struct configfs_buffer *buffer;
 296:		int error;
 297:	
 298:		error = -ENOMEM;
 299:		buffer = kzalloc_obj(struct configfs_buffer);
 300:		if (!buffer)
 301:			goto out;
 302:	
 303:		error = -ENOENT;
 304:		down_read(&frag->frag_sem);
 305:		if (unlikely(frag->frag_dead))
 306:			goto out_free_buffer;
 307:	
 308:		error = -EINVAL;
 309:		buffer->item = to_item(dentry->d_parent);
 310:		if (!buffer->item)
 311:			goto out_free_buffer;
 312:	
 313:		attr = to_attr(dentry);
 314:		if (!attr)
 315:			goto out_free_buffer;
 316:	
 317:		if (type & CONFIGFS_ITEM_BIN_ATTR) {
 318:			buffer->bin_attr = to_bin_attr(dentry);
 319:			buffer->cb_max_size = buffer->bin_attr->cb_max_size;
 320:		} else {
 321:			buffer->attr = attr;
 322:		}
 323:	
 324:		buffer->owner = attr->ca_owner;
 325:		/* Grab the module reference for this attribute if we have one */
 326:		error = -ENODEV;
 327:		if (!try_module_get(buffer->owner))
 328:			goto out_free_buffer;
 329:	
 330:		error = -EACCES;
 331:		if (!buffer->item->ci_type)
 332:			goto out_put_module;
 333:	
 334:		buffer->ops = buffer->item->ci_type->ct_item_ops;
 335:	
 336:		/* File needs write support.
 337:		 * The inode's perms must say it's ok,
 338:		 * and we must have a store method.
 339:		 */
 340:		if (file->f_mode & FMODE_WRITE) {
 341:			if (!(inode->i_mode & S_IWUGO))
 342:				goto out_put_module;
 343:			if ((type & CONFIGFS_ITEM_ATTR) && !attr->store)
 344:				goto out_put_module;
 345:			if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->write)
 346:				goto out_put_module;
 347:		}
 348:	
 349:		/* File needs read support.
 350:		 * The inode's perms must say it's ok, and we there
 351:		 * must be a show method for it.
 352:		 */
 353:		if (file->f_mode & FMODE_READ) {
 354:			if (!(inode->i_mode & S_IRUGO))
 355:				goto out_put_module;
 356:			if ((type & CONFIGFS_ITEM_ATTR) && !attr->show)
 357:				goto out_put_module;
 358:			if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->read)
 359:				goto out_put_module;
]

262/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12335
							output: 36
							thoughts: 56
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Analyzing `__configfs_open_file` and Object Allocation**

Alright, let's take a look at this snippet of code. Specifically, I'm focusing on the `__configfs_open_file` function. I see something interesting here – allocation of a `configfs_buffer` object. The code uses `kzalloc_obj`, which I believe is the kernel's zeroed memory allocator tailored for objects of a specific structure, `struct configfs_buffer` in this case.  It seems the intention is to allocate an instance of the buffer and associate it with a file.

The key lines are:

```c
buffer = kzalloc_obj(struct configfs_buffer);
...
file->private_data = buffer;
```

This immediately tells me that `configfs` uses a buffer object, allocated dynamically, and its pointer is then stored in the `private_data` field of the file structure. This is a pretty common pattern for attaching context to file operations. I need to verify that line 360 is exactly what is happening here, so I will now reference that specific line and evaluate the function's details.



263/4 2026/09/28 18:24 tool read-file
0m Args:
map[File:fs/configfs/file.c FirstLine:360 LineCount:25]

Results:
map[Contents: 360:		}
 361:	
 362:		mutex_init(&buffer->mutex);
 363:		buffer->needs_read_fill = 1;
 364:		buffer->read_in_progress = false;
 365:		buffer->write_in_progress = false;
 366:		file->private_data = buffer;
 367:		up_read(&frag->frag_sem);
 368:		return 0;
 369:	
 370:	out_put_module:
 371:		module_put(buffer->owner);
 372:	out_free_buffer:
 373:		up_read(&frag->frag_sem);
 374:		kfree(buffer);
 375:	out:
 376:		return error;
 377:	}
 378:	
 379:	static int configfs_release(struct inode *inode, struct file *filp)
 380:	{
 381:		struct configfs_buffer *buffer = filp->private_data;
 382:	
 383:		module_put(buffer->owner);
 384:		kfree(buffer->page);
]

264/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13028
							output: 36
							thoughts: 275
						

Thoughts:
**Analyzing Potential Concurrency Issues in `configfs` File Writing**

Okay, hold on a second! I need to really dig into this `frag->frag_sem` situation. Looking at the code in `flush_write_buffer`, specifically this:

```c
down_read(&frag->frag_sem);
if (!frag->frag_dead)
    res = buffer->attr->store(buffer->item, buffer->page, count);
up_read(&frag->frag_sem);
```

... I see `down_read(&frag->frag_sem)`.  Aha! That's a *read* semaphore! That means multiple threads can *concurrently* acquire `frag->frag_sem` for reads and writes, as long as no writer is active. This raises an immediate question about data integrity if we're not careful. This warrants further investigation.

Then there's `buffer->mutex`. Where is *that* allocated? Ah, right, `__configfs_open_file`! And that's associated with each *open* `struct file`. So if two separate processes (or threads) open the *same* configfs file, each gets its own `struct configfs_buffer`!  And with it, its own `buffer->mutex`. Even if two threads in the same process, using the *same* file descriptor open the attribute file separately, the mutex will be different!

Okay, this means concurrent access within the same process *is* possible.  We need to determine if we're properly protecting against race conditions when multiple file descriptors could be opened to the same attribute by multiple threads. It also means we need to consider how to protect access to the same attribute in different processes. 

Finally, I need to check how the inode lock plays into this. Is `inode_lock` held during `configfs_write_iter`? Let me go straight to the file operations in `fs/configfs/file.c` and make sure there are no obvious flaws in the locking strategy.



265/4 2026/09/28 18:24 tool read-file
0m Args:
map[File:fs/configfs/file.c FirstLine:460 LineCount:40]

Results:
map[Contents: 460:	
 461:	/**
 462:	 *	configfs_create_bin_file - create a binary attribute file for an item.
 463:	 *	@item:	item we're creating for.
 464:	 *	@bin_attr: atrribute descriptor.
 465:	 */
 466:	
 467:	int configfs_create_bin_file(struct config_item *item,
 468:			const struct configfs_bin_attribute *bin_attr)
 469:	{
 470:		struct dentry *dir = item->ci_dentry;
 471:		struct configfs_dirent *parent_sd = dir->d_fsdata;
 472:		umode_t mode = (bin_attr->cb_attr.ca_mode & S_IALLUGO) | S_IFREG;
 473:		int error = 0;
 474:	
 475:		inode_lock_nested(dir->d_inode, I_MUTEX_NORMAL);
 476:		error = configfs_make_dirent(parent_sd, NULL, (void *) bin_attr, mode,
 477:					     CONFIGFS_ITEM_BIN_ATTR, parent_sd->s_frag);
 478:		inode_unlock(dir->d_inode);
 479:	
 480:		return error;
 481:	}
]

266/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14161
							output: 30
							thoughts: 21
						

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

**Analyzing `file_operations` in `fs/configfs/file.c`**

Alright, time to get to the core of how ConfigFS handles file operations. I need to refresh my understanding of the `file_operations` struct implementation within `fs/configfs/file.c`. This is where the magic happens, defining what we can *do* with ConfigFS files – reading, writing, seeking, even more advanced behaviors like handling attributes. I need to refresh the key pointers; `open`, `read`, `write`, `release`, and probably some of the esoteric ones related to permissions and locking, to understand what each of those entries really does.

I'm thinking about how the specific file operations are defined and how they relate to the underlying ConfigFS structure. Are they dynamically assigned based on the file type, or is there a more global file operation map? I'm anticipating there'll be callbacks specific to ConfigFS objects. For example, creating a config file might link in a custom write function that triggers actions on the config directory.

Then, there's the nuance of how file attributes are represented. What are the read/write implementations for these? Are they handled directly or through some kind of intermediate layer? I'll be looking for how the file system maintains data consistency when concurrent read and write operations are happening. I'm keen to see if this code handles locking correctly, and if it's efficient for the expected use cases. It's also worth thinking about how different types of ConfigFS entries are treated and handled.

I also need to check how the file operations integrate with VFS, and where the necessary context switching is. I know this is a key part of the design, and I want to double-check my understanding.

Basically, I want to nail down the fundamental file operation implementation and see how it reflects in the design of the FS.



267/4 2026/09/28 18:24 tool grepper
0m Args:
map[Expression:configfs_file_operations PathPrefix:fs/configfs]

Results:
map[Output:fs/configfs/configfs_internal.h=85=extern const struct file_operations configfs_dir_operations;
fs/configfs/configfs_internal.h:86:extern const struct file_operations configfs_file_operations;
fs/configfs/configfs_internal.h-87-extern const struct file_operations configfs_bin_file_operations;
--
fs/configfs/dir.c=435=static struct dentry * configfs_lookup(struct inode *dir,
--
fs/configfs/dir.c-492-				inode->i_size = PAGE_SIZE;
fs/configfs/dir.c:493:				inode->i_fop = &configfs_file_operations;
fs/configfs/dir.c-494-			}
--
fs/configfs/file.c=400=static int configfs_release_bin_file(struct inode *inode, struct file *file)
--
fs/configfs/file.c-423-
fs/configfs/file.c:424:const struct file_operations configfs_file_operations = {
fs/configfs/file.c-425-	.read_iter	= configfs_read_iter,
]

268/4 2026/09/28 18:24 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14944
							output: 36
							thoughts: 24
						

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

**Diving into `fs/configfs/file.c`**

Alright, time to dig in. The problem's hinting at something file-system specific, so I'm going to jump straight into the heart of `fs/configfs/file.c`. Specifically, I want to zero in on lines 420-440. That region should cover operations related to file handling, and might provide clues about the problem's root. My intuition is telling me that the issue is likely tied to that level of the file system. It could be permissions, data corruption, or an issue related to caching. Let's start with this range and see where it leads.



269/4 2026/09/28 18:25 tool read-file
0m Args:
map[File:fs/configfs/file.c FirstLine:420 LineCount:25]

Results:
map[Contents: 420:		return 0;
 421:	}
 422:	
 423:	
 424:	const struct file_operations configfs_file_operations = {
 425:		.read_iter	= configfs_read_iter,
 426:		.write_iter	= configfs_write_iter,
 427:		.llseek		= generic_file_llseek,
 428:		.open		= configfs_open_file,
 429:		.release	= configfs_release,
 430:	};
 431:	
 432:	const struct file_operations configfs_bin_file_operations = {
 433:		.read_iter	= configfs_bin_read_iter,
 434:		.write_iter	= configfs_bin_write_iter,
 435:		.llseek		= NULL,		/* bin file is not seekable */
 436:		.open		= configfs_open_bin_file,
 437:		.release	= configfs_release_bin_file,
 438:	};
 439:	
 440:	/**
 441:	 *	configfs_create_file - create an attribute file for an item.
 442:	 *	@item:	item we're creating for.
 443:	 *	@attr:	atrribute descriptor.
 444:	 */
]

270/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15570
							output: 35
							thoughts: 76
						

Thoughts:
Okay, let me think this through.

**Analyzing the VFS Write Path and Locking Strategy**

Right, so I'm focusing on the Virtual File System (VFS) write path, particularly how `vfs_write` handles things. My understanding is that `vfs_write` eventually calls the filesystem-specific `write_iter` function via `file->f_op->write_iter`, or, potentially, it calls `new_sync_write` or `call_write_iter`. I want to drill down on the details here.

My question is, does the VFS itself take any inode locks *before* calling into the filesystem-specific write function? This is crucial for understanding concurrency and data integrity. I need to know at what point locks are acquired, and specifically if VFS performs any. To figure this out with certainty, I should go straight to the source. Let's start by examining the `vfs_write` function definition in `fs/read_write.c`. That should give me the answer.



271/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/read_write.c Name:vfs_write]

Results:
map[SourceCode: 667:	ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos)
 668:	{
 669:		ssize_t ret;
 670:	
 671:		if (!(file->f_mode & FMODE_WRITE))
 672:			return -EBADF;
 673:		if (!(file->f_mode & FMODE_CAN_WRITE))
 674:			return -EINVAL;
 675:		if (unlikely(!access_ok(buf, count)))
 676:			return -EFAULT;
 677:	
 678:		ret = rw_verify_area(WRITE, file, pos, count);
 679:		if (ret)
 680:			return ret;
 681:		if (count > MAX_RW_COUNT)
 682:			count =  MAX_RW_COUNT;
 683:		file_start_write(file);
 684:		if (file->f_op->write)
 685:			ret = file->f_op->write(file, buf, count, pos);
 686:		else if (file->f_op->write_iter)
 687:			ret = new_sync_write(file, buf, count, pos);
 688:		else
 689:			ret = -EINVAL;
 690:		if (ret > 0) {
 691:			fsnotify_modify(file);
 692:			add_wchar(current, ret);
 693:		}
 694:		inc_syscw(current);
 695:		file_end_write(file);
 696:		return ret;
 697:	}
 SourceFile:fs/read_write.c]

272/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 16401
							output: 27
							thoughts: 248
						

Thoughts:
**My Analysis of ConfigFS Write Operations**

Okay, so I'm digging into how `configfs` handles writes, and something important is jumping out at me. The Virtual File System (VFS) *doesn't* automatically grab the `inode_lock` during a write operation unless the filesystem's specific `write_iter` function explicitly acquires it. That's good to know – it's a critical detail for concurrency considerations.

Now, let's look at `configfs_write_iter`. I can see from the provided code snippet:

```c
static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from)
{
	struct file *file = iocb->ki_filp;
	struct configfs_buffer *buffer = file->private_data;
	int len;

	mutex_lock(&buffer->mutex);
	len = fill_write_buffer(buffer, from);
	if (len > 0)
		len = flush_write_buffer(file, buffer, len);
	if (len > 0)
		iocb->ki_pos += len;
	mutex_unlock(&buffer->mutex);
	return len;
}
```

...that `configfs_write_iter` *itself* doesn't seem to hold `inode_lock`. Instead, the write operation appears to be protected by two things: `buffer->mutex` and `down_read(&frag->frag_sem)`. The `buffer->mutex` is clearly a per-`struct file` mutex, so I see it protects access to a file's buffer. I need to understand what `frag->frag_sem` is protecting. Let me check the definition of `frag->frag_sem` now, to see what it's guarding. This is key to understanding the concurrency model in this part of the filesystem.



273/4 2026/09/28 18:25 tool grepper
0m Args:
map[Expression:frag_sem PathPrefix:fs/configfs]

Results:
map[Output:fs/configfs/configfs_internal.h=21=struct configfs_fragment {
fs/configfs/configfs_internal.h-22-	atomic_t frag_count;
fs/configfs/configfs_internal.h:23:	struct rw_semaphore frag_sem;
fs/configfs/configfs_internal.h-24-	bool frag_dead;
--
fs/configfs/dir.c=158=static struct configfs_fragment *new_fragment(void)
--
fs/configfs/dir.c-164-		atomic_set(&p->frag_count, 1);
fs/configfs/dir.c:165:		init_rwsem(&p->frag_sem);
fs/configfs/dir.c-166-		p->frag_dead = false;
--
fs/configfs/dir.c=1478=static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
--
fs/configfs/dir.c-1542-	frag = sd->s_frag;
fs/configfs/dir.c:1543:	if (down_write_killable(&frag->frag_sem)) {
fs/configfs/dir.c-1544-		spin_lock(&configfs_dirent_lock);
--
fs/configfs/dir.c-1550-	frag->frag_dead = true;
fs/configfs/dir.c:1551:	up_write(&frag->frag_sem);
fs/configfs/dir.c-1552-
--
fs/configfs/dir.c=1805=void configfs_unregister_group(struct config_group *group)
--
fs/configfs/dir.c-1812-
fs/configfs/dir.c:1813:	down_write(&frag->frag_sem);
fs/configfs/dir.c-1814-	frag->frag_dead = true;
fs/configfs/dir.c:1815:	up_write(&frag->frag_sem);
fs/configfs/dir.c-1816-
--
fs/configfs/dir.c=1943=void configfs_unregister_subsystem(struct configfs_subsystem *subsys)
--
fs/configfs/dir.c-1955-
fs/configfs/dir.c:1956:	down_write(&frag->frag_sem);
fs/configfs/dir.c-1957-	frag->frag_dead = true;
fs/configfs/dir.c:1958:	up_write(&frag->frag_sem);
fs/configfs/dir.c-1959-
--
fs/configfs/file.c=56=static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer)
--
fs/configfs/file.c-65-
fs/configfs/file.c:66:	down_read(&frag->frag_sem);
fs/configfs/file.c-67-	if (!frag->frag_dead)
fs/configfs/file.c-68-		count = buffer->attr->show(buffer->item, buffer->page);
fs/configfs/file.c:69:	up_read(&frag->frag_sem);
fs/configfs/file.c-70-
--
fs/configfs/file.c=106=static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to)
--
fs/configfs/file.c-124-		/* perform first read with buf == NULL to get extent */
fs/configfs/file.c:125:		down_read(&frag->frag_sem);
fs/configfs/file.c-126-		if (!frag->frag_dead)
--
fs/configfs/file.c-129-			len = -ENOENT;
fs/configfs/file.c:130:		up_read(&frag->frag_sem);
fs/configfs/file.c-131-		if (len <= 0) {
--
fs/configfs/file.c-149-		/* perform second read to fill buffer */
fs/configfs/file.c:150:		down_read(&frag->frag_sem);
fs/configfs/file.c-151-		if (!frag->frag_dead)
--
fs/configfs/file.c-155-			len = -ENOENT;
fs/configfs/file.c:156:		up_read(&frag->frag_sem);
fs/configfs/file.c-157-		if (len < 0) {
--
fs/configfs/file.c=200=flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count)
--
fs/configfs/file.c-204-
fs/configfs/file.c:205:	down_read(&frag->frag_sem);
fs/configfs/file.c-206-	if (!frag->frag_dead)
fs/configfs/file.c-207-		res = buffer->attr->store(buffer->item, buffer->page, count);
fs/configfs/file.c:208:	up_read(&frag->frag_sem);
fs/configfs/file.c-209-	return res;
--
fs/configfs/file.c=290=static int __configfs_open_file(struct inode *inode, struct file *file, int type)
--
fs/configfs/file.c-303-	error = -ENOENT;
fs/configfs/file.c:304:	down_read(&frag->frag_sem);
fs/configfs/file.c-305-	if (unlikely(frag->frag_dead))
--
fs/configfs/file.c-366-	file->private_data = buffer;
fs/configfs/file.c:367:	up_read(&frag->frag_sem);
fs/configfs/file.c-368-	return 0;
--
fs/configfs/file.c-372-out_free_buffer:
fs/configfs/file.c:373:	up_read(&frag->frag_sem);
fs/configfs/file.c-374-	kfree(buffer);
--
fs/configfs/file.c=400=static int configfs_release_bin_file(struct inode *inode, struct file *file)
--
fs/configfs/file.c-406-
fs/configfs/file.c:407:		down_read(&frag->frag_sem);
fs/configfs/file.c-408-		if (!frag->frag_dead) {
--
fs/configfs/file.c-413-		}
fs/configfs/file.c:414:		up_read(&frag->frag_sem);
fs/configfs/file.c-415-	}
]

274/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 18871
							output: 41
							thoughts: 358
						

Thoughts:
**Analyzing ConfigFS Concurrency and Potential OCFS2 Implications**

Okay, so I'm thinking about how ConfigFS handles concurrent access to attributes, specifically focusing on the `frag->frag_sem` rw_semaphore. It seems this semaphore is used to synchronize `rmdir`/unregister operations (writer) with attribute access/open operations (reader).  Each time an attribute file is opened (or opened twice) a new `configfs_buffer` is created, and, importantly, each of these buffers gets its own mutex.

The writing process looks like this, and it has me concerned: `mutex_lock(&buffer->mutex)`, which only serializes access *to its own buffer*. It then uses a reader lock, `down_read(&frag->frag_sem)`, which doesn't block other readers.  The crucial part is that the `store` function is then called.  And finally, an `up_read(&frag->frag_sem)` followed by `mutex_unlock(&buffer->mutex)`.

The implication here is that ConfigFS *doesn't* serialize `store` calls to the *same* attribute or item if they're accessed through *different* `struct file` instances!  My initial reaction is that this seems... problematic. It's only serialized if they are writing to the same file descriptor.

Now, I'm starting to think about *shared* file descriptors. If two threads use the *same* file descriptor, `buffer->mutex` will serialize them, that is, it will ensure they don't corrupt the buffer. However, the scenario that's concerning me is when two threads (or even separate processes) open the attribute independently. In this case, each gets its own `struct file` instance, and, critically, different `buffer`s!

Okay, so I need to know where the lock is, as this may be a problem to consider in our designs. We've got to investigate the larger ecosystem, specifically OCFS2. This all raises a flag... Are there any locks in OCFS2 or ConfigFS that will ensure proper semantics, or are we going to see data races? I need to check if there are any locks in `fs/ocfs2/cluster/heartbeat.c` or elsewhere that could potentially alleviate this issue.

Let's dig into `fs/ocfs2/cluster/heartbeat.c`. I need to start a thorough inspection there. I'll search for `o2hb_region_dev_store` and see what locks are in play there.



275/4 2026/09/28 18:25 tool grepper
0m Args:
map[Expression:o2hb_region_dev_store PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=1838=static int o2hb_populate_slot_data(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-1869- */
fs/ocfs2/cluster/heartbeat.c:1870:static ssize_t o2hb_region_dev_store(struct config_item *item,
fs/ocfs2/cluster/heartbeat.c-1871-				     const char *page,
]

276/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 19950
							output: 51
							thoughts: 33
						

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

**Tracing `o2hb_region_dev_store` References in Heartbeat Code**

Alright, let's dive in. I need to understand the usage of `o2hb_region_dev_store`. My immediate thought is to locate all its references within `fs/ocfs2/cluster/heartbeat.c`. This is where the core heartbeat logic resides, so it's the most likely place to find how that particular data store is being leveraged. I'm going to quickly grep or use my editor's search function for instances of that symbol within the file. I expect to see it used in initialization, possibly within data structures related to heartbeat regions, and, crucially, in any functions that interact with these regions for heartbeating or fencing purposes. Knowing these references will help me in understanding the data store's integration within the overall heartbeat functionality. From there I'll start analyzing the code around each reference to get the big picture of its usage in the system.



277/4 2026/09/28 18:25 tool codesearch-find-references
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c IncludeSnippetLines:5 Name:o2hb_region_dev_store]

Results:
map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:o2hb_region_attr_dev SourceFile:fs/ocfs2/cluster/heartbeat.c SourceLine:2054 SourceSnippet:2054:	CONFIGFS_ATTR(o2hb_region_, dev);
]] TruncatedOutput:false]

278/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20368
							output: 41
							thoughts: 26
						

Thoughts:
Okay, here's my interpretation of what's going through my mind, reading code at that specific location:

**Diving into `heartbeat.c` at Line 2050**

Alright, let's zero in on line 2050 within `fs/ocfs2/cluster/heartbeat.c`. I'm guessing this section is probably dealing with some core aspect of the OCFS2 heartbeat mechanism. Given the file name and location, it's highly likely we're in the thick of how the cluster monitors node health, manages membership, or perhaps responds to failures. I'll need to immediately discern the context surrounding line 2050. Is this related to beaconing, failure detection, quorum management, or node state transitions? Depending on the surrounding code, it could be a simple check, a more complex algorithm, or an interaction with some other part of the system like the lock manager or the fencing code. I expect I will see some important logic here.



279/4 2026/09/28 18:25 tool read-file
0m Args:
map[File:fs/ocfs2/cluster/heartbeat.c FirstLine:2040 LineCount:50]

Results:
map[Contents:2040:		spin_lock(&o2hb_live_lock);
2041:		if (reg->hr_task)
2042:			pid = task_pid_nr(reg->hr_task);
2043:		spin_unlock(&o2hb_live_lock);
2044:	
2045:		if (!pid)
2046:			return 0;
2047:	
2048:		return sprintf(page, "%u\n", pid);
2049:	}
2050:	
2051:	CONFIGFS_ATTR(o2hb_region_, block_bytes);
2052:	CONFIGFS_ATTR(o2hb_region_, start_block);
2053:	CONFIGFS_ATTR(o2hb_region_, blocks);
2054:	CONFIGFS_ATTR(o2hb_region_, dev);
2055:	CONFIGFS_ATTR_RO(o2hb_region_, pid);
2056:	
2057:	static struct configfs_attribute *o2hb_region_attrs[] = {
2058:		&o2hb_region_attr_block_bytes,
2059:		&o2hb_region_attr_start_block,
2060:		&o2hb_region_attr_blocks,
2061:		&o2hb_region_attr_dev,
2062:		&o2hb_region_attr_pid,
2063:		NULL,
2064:	};
2065:	
2066:	static const struct configfs_item_operations o2hb_region_item_ops = {
2067:		.release		= o2hb_region_release,
2068:	};
2069:	
2070:	static const struct config_item_type o2hb_region_type = {
2071:		.ct_item_ops	= &o2hb_region_item_ops,
2072:		.ct_attrs	= o2hb_region_attrs,
2073:		.ct_owner	= THIS_MODULE,
2074:	};
2075:	
2076:	/* heartbeat set */
2077:	
2078:	struct o2hb_heartbeat_group {
2079:		struct config_group hs_group;
2080:		/* some stuff? */
2081:	};
2082:	
2083:	static struct o2hb_heartbeat_group *to_o2hb_heartbeat_group(struct config_group *group)
2084:	{
2085:		return group ?
2086:			container_of(group, struct o2hb_heartbeat_group, hs_group)
2087:			: NULL;
2088:	}
2089:	
]

280/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 21406
							output: 35
							thoughts: 56
						

Thoughts:
Okay, let's break this down.

**Diving into the CONFIGFS_ATTR Macro**

Right, so I'm looking at `CONFIGFS_ATTR(o2hb_region_, dev);`. My initial thought is, what precisely is `CONFIGFS_ATTR` doing here? I immediately need to understand its definition to decipher the intent of this line of code. Time to dig into the `include/linux/configfs.h` header file. Let's see how `CONFIGFS_ATTR` is actually defined. That macro is the key.



281/4 2026/09/28 18:25 tool grepper
0m Args:
map[Expression:#define CONFIGFS_ATTR\( PathPrefix:include/linux/configfs.h]

Results:
map[Output:include/linux/configfs.h=124=static struct configfs_attribute _pfx##attr_##_name = {	\
--
include/linux/configfs.h-131-
include/linux/configfs.h:132:#define CONFIGFS_ATTR(_pfx, _name) CONFIGFS_ATTR_PERM(	\
include/linux/configfs.h-133-		_pfx, _name, S_IRUGO | S_IWUSR		\
]

282/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 21747
							output: 36
							thoughts: 21
						

Thoughts:
Here's a first-person summary, tailored for an expert audience, based on your instructions:

**Diving into configfs.h**

Okay, time to get my hands dirty. Let's start by zeroing in on `include/linux/configfs.h`, and specifically, I want to refresh my memory around line 120, give or take. I'm probably looking at the core data structures and likely the foundational definitions for the configfs object model. I expect to see the definition of, perhaps, `configfs_item`, or something of that nature - the base class from which all configfs entities derive. Or maybe the base `configfs_attribute` definition and how it's linked into the object model. I'm keen to see the various function pointers and associated data which dictate how attributes, files and directories behave. Might even be looking at the basic operations like create, release or even permission checks. What I'm really trying to get at is, I want to understand how the base layers are put together for a clear picture of its overall operation.



283/4 2026/09/28 18:25 tool read-file
0m Args:
map[File:include/linux/configfs.h FirstLine:115 LineCount:35]

Results:
map[Contents: 115:	struct configfs_attribute {
 116:		const char		*ca_name;
 117:		struct module 		*ca_owner;
 118:		umode_t			ca_mode;
 119:		ssize_t (*show)(struct config_item *, char *);
 120:		ssize_t (*store)(struct config_item *, const char *, size_t);
 121:	};
 122:	
 123:	#define CONFIGFS_ATTR_PERM(_pfx, _name, _perm)		\
 124:	static struct configfs_attribute _pfx##attr_##_name = {	\
 125:		.ca_name	= __stringify(_name),		\
 126:		.ca_mode	= _perm,			\
 127:		.ca_owner	= THIS_MODULE,			\
 128:		.show		= _pfx##_name##_show,		\
 129:		.store		= _pfx##_name##_store,		\
 130:	}
 131:	
 132:	#define CONFIGFS_ATTR(_pfx, _name) CONFIGFS_ATTR_PERM(	\
 133:			_pfx, _name, S_IRUGO | S_IWUSR		\
 134:	)
 135:	
 136:	#define CONFIGFS_ATTR_RO(_pfx, _name)			\
 137:	static struct configfs_attribute _pfx##attr_##_name = {	\
 138:		.ca_name	= __stringify(_name),		\
 139:		.ca_mode	= S_IRUGO,			\
 140:		.ca_owner	= THIS_MODULE,			\
 141:		.show		= _pfx##_name##_show,		\
 142:	}
 143:	
 144:	#define CONFIGFS_ATTR_WO(_pfx, _name)			\
 145:	static struct configfs_attribute _pfx##attr_##_name = {	\
 146:		.ca_name	= __stringify(_name),		\
 147:		.ca_mode	= S_IWUSR,			\
 148:		.ca_owner	= THIS_MODULE,			\
 149:		.store		= _pfx##_name##_store,		\
]

284/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22690
							output: 45
							thoughts: 816
						

Thoughts:
**Analyzing `o2hb_region_dev_store` and Related Functions**

Okay, let's break down this `o2hb_region_dev_store` function. The goal here is to establish the heartbeat region's backing device. First, I see a check that ensures we're not re-initializing an existing device. That's good defensive programming. It looks like it wants to know the device file descriptor, which will be passed in via `page`. Next, it calls `o2nm_this_node()` and assigns the node number to `hr_node_num`. Then, it converts the page, which is treated as a string, into an integer which should be the file descriptor.

I check that the file descriptor is non-negative and within reasonable bounds, then I need to ensure it's not empty, which the code checks with a series of calls. It then does a few checks to see if the region's blocks have been initialized with appropriate parameters. Makes sense, we need that info before we can work with a block device!

Now, the code confirms that the file is indeed a block device. Using that block device, the code will open the file descriptor. I need to make sure the open operation is successful. Then, it obtains the sector size of the device and validates that it matches the expected `hr_block_bytes`. A mismatch here is a serious problem, so that's a good check.

After setting up a few internal flags within the region, I see the calls to `o2hb_init_region_params`, which must initialize some region-specific parameters. A bit of randomness gets incorporated in the initialization of the heartbeat region through the assignment of a random generation number.

Then, importantly, it calls `o2hb_map_slot_data` and `o2hb_populate_slot_data`. I know these are critical. It seems like the core operations for setting up the region involve mapping and populating some sort of slot data. I need to understand what that data represents, so I'll need to look into those functions in detail: `o2hb_map_slot_data`, `o2hb_populate_slot_data`, and, since there's a mapping operation, likely, I need to check out `o2hb_unmap_slot_data`, too, for completeness. I need to track down the implementation of each of these three functions.



285/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_map_slot_data]

Results:
map[SourceCode:1772:	static int o2hb_map_slot_data(struct o2hb_region *reg)
1773:	{
1774:		int i, j;
1775:		int ret = -ENOMEM;
1776:		unsigned int last_slot;
1777:		unsigned int spp = reg->hr_slots_per_page;
1778:		struct page *page;
1779:		char *raw;
1780:		struct o2hb_disk_slot *slot;
1781:	
1782:		reg->hr_tmp_block = kmalloc(reg->hr_block_bytes, GFP_KERNEL);
1783:		if (!reg->hr_tmp_block)
1784:			goto out;
1785:	
1786:		reg->hr_slots = kzalloc_objs(struct o2hb_disk_slot, reg->hr_blocks);
1787:		if (!reg->hr_slots)
1788:			goto out;
1789:	
1790:		for (i = 0; i < reg->hr_blocks; i++) {
1791:			slot = &reg->hr_slots[i];
1792:			slot->ds_node_num = i;
1793:			INIT_LIST_HEAD(&slot->ds_live_item);
1794:			slot->ds_raw_block = NULL;
1795:		}
1796:	
1797:		reg->hr_num_pages = (reg->hr_blocks + spp - 1) / spp;
1798:		mlog(ML_HEARTBEAT, "Going to require %u pages to cover %u blocks "
1799:				   "at %u blocks per page\n",
1800:		     reg->hr_num_pages, reg->hr_blocks, spp);
1801:	
1802:		reg->hr_slot_data = kzalloc_objs(struct page *, reg->hr_num_pages);
1803:		if (!reg->hr_slot_data)
1804:			goto out;
1805:	
1806:		for (i = 0; i < reg->hr_num_pages; i++) {
1807:			page = alloc_page(GFP_KERNEL);
1808:			if (!page)
1809:				goto out;
1810:	
1811:			reg->hr_slot_data[i] = page;
1812:	
1813:			last_slot = i * spp;
1814:			raw = page_address(page);
1815:			for (j = 0;
1816:			     (j < spp) && ((j + last_slot) < reg->hr_blocks);
1817:			     j++) {
1818:				BUG_ON((j + last_slot) >= reg->hr_blocks);
1819:	
1820:				slot = &reg->hr_slots[j + last_slot];
1821:				slot->ds_raw_block =
1822:					(struct o2hb_disk_heartbeat_block *) raw;
1823:	
1824:				raw += reg->hr_block_bytes;
1825:			}
1826:		}
1827:	
1828:		return 0;
1829:	
1830:	out:
1831:		o2hb_unmap_slot_data(reg);
1832:		return ret;
1833:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

286/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 25044
							output: 46
							thoughts: 28
						

Thoughts:
Okay, here's my interpretation of what's going on, thinking through those functions as if they're relevant to a complex, perhaps clustered, storage environment:

**Thinking Through Data Slot Management**

Alright, so I'm focusing on `o2hb_unmap_slot_data` and `o2hb_populate_slot_data`. Immediately, I'm thinking about how these functions relate to maintaining data consistency and availability in a heartbeat environment, likely within a clustered file system or a distributed storage solution. "Slot" immediately makes me think of some kind of structured data container, maybe a block or a metadata entry, that we're managing across nodes.

With `o2hb_unmap_slot_data`, my mind jumps to the process of *invalidating* or *releasing* a slot.  This implies data is being removed or made inaccessible. Is this related to a failover scenario? Node failure? Maybe a graceful shutdown of a service instance? Perhaps we are releasing resources on the disk or in memory. I have to consider the implications on data consistency – if a slot is unmapped, what steps are taken to ensure the data is properly flushed, perhaps invalidated with some kind of version control or journaling to prevent conflicts in case of a crash? Are there locks involved?  Are we considering transactions or atomicity here?

Then I move to `o2hb_populate_slot_data`. This is the opposite – now we are talking about *populating* or *assigning* data to a slot. I'm imagining a situation where a node is taking ownership of a resource, restoring data from backup, recovering from a failure, or maybe even allocating new storage.  I have to ask myself, what are the source and destination here? Is this a full copy operation? Or, are we using a more sophisticated strategy like data re-balancing, where we might need to carefully orchestrate moving data across different nodes or storage tiers? How are contention issues handled here? Is this a blocking or non-blocking operation? What kind of error handling is implemented?

Finally, the `o2hb` prefix suggests the core of my questions are around maintaining heartbeats to determine the health of these slots. So, I need to understand how these functions, unmap/populate slot, are integrated in the context of health monitoring and failover in a highly available system, to determine if they are running in the correct timing context to keep data safe in the face of machine failure.



287/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_unmap_slot_data]

Results:
map[SourceCode:1583:	static void o2hb_unmap_slot_data(struct o2hb_region *reg)
1584:	{
1585:		int i;
1586:		struct page *page;
1587:	
1588:		if (reg->hr_slot_data) {
1589:			for (i = 0; i < reg->hr_num_pages; i++) {
1590:				page = reg->hr_slot_data[i];
1591:				if (page) {
1592:					__free_page(page);
1593:					reg->hr_slot_data[i] = NULL;
1594:				}
1595:			}
1596:			kfree(reg->hr_slot_data);
1597:			reg->hr_slot_data = NULL;
1598:		}
1599:	
1600:		kfree(reg->hr_slots);
1601:		reg->hr_slots = NULL;
1602:	
1603:		kfree(reg->hr_tmp_block);
1604:		reg->hr_tmp_block = NULL;
1605:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

288/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 25993
							output: 45
							thoughts: 15
						

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

**Analyzing the Function Call: `o2hb_populate_slot_data`**

Alright, so the internal workings of this module seem to revolve around the `o2hb_populate_slot_data` function. Immediately, my mind starts to race, assuming the "o2hb" likely refers to the "Open 2 Heartbeat" system, or something similar, given the context. The presence of "populate_slot_data" signals that its role will be filling in some sort of data structure, presumably a slot representing heartbeat information.

My first thought is around data structures. What's the target `slot` like? Is it a struct, a dictionary, a custom class? Knowing that will greatly inform what's going on within. What parameters does it take and what does it *do* with the incoming data? My secondary thought is around data source: where is this data *coming* from? Is it from monitoring system, an external database, another service? This will be very important in making sure the integrity of the data is maintained, and how it handles exceptions.

I'm now thinking about the potential pitfalls here, because this is probably an important part of the code base. How does it handle potential race conditions if multiple threads are populating slots simultaneously? Is there any kind of locking mechanism involved? What about error handling? Does it validate the data being populated? What happens if the data is corrupted or incomplete? Understanding the error handling strategy is crucial for debugging and maintaining system stability. I'm wondering if there is a logging mechanism to assist in debugging. I'll need to know.

Ultimately, I'm expecting this function to be a critical piece in the overall heartbeat mechanism. My next steps would be to dive into its implementation, paying close attention to data structure definitions, input validation, concurrency control, and error handling. I'll want to trace its execution and understand how the data flows in and out, and where it goes.



289/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_populate_slot_data]

Results:
map[SourceCode:1835:	/* Read in all the slots available and populate the tracking
1836:	 * structures so that we can start with a baseline idea of what's
1837:	 * there. */
1838:	static int o2hb_populate_slot_data(struct o2hb_region *reg)
1839:	{
1840:		int ret, i;
1841:		struct o2hb_disk_slot *slot;
1842:		struct o2hb_disk_heartbeat_block *hb_block;
1843:	
1844:		ret = o2hb_read_slots(reg, 0, reg->hr_blocks);
1845:		if (ret)
1846:			goto out;
1847:	
1848:		/* We only want to get an idea of the values initially in each
1849:		 * slot, so we do no verification - o2hb_check_slot will
1850:		 * actually determine if each configured slot is valid and
1851:		 * whether any values have changed. */
1852:		for(i = 0; i < reg->hr_blocks; i++) {
1853:			slot = &reg->hr_slots[i];
1854:			hb_block = (struct o2hb_disk_heartbeat_block *) slot->ds_raw_block;
1855:	
1856:			/* Only fill the values that o2hb_check_slot uses to
1857:			 * determine changing slots */
1858:			slot->ds_last_time = le64_to_cpu(hb_block->hb_seq);
1859:			slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation);
1860:		}
1861:	
1862:	out:
1863:		return ret;
1864:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

290/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 27020
							output: 43
							thoughts: 17
						

Thoughts:
Okay, let's dive into it.

**Analyzing `o2hb_read_slots` Functionality**

Alright, I'm thinking we need to shift focus to `o2hb_read_slots`. We've covered the other parts, but this one is crucial. It's often where we see subtle issues or performance bottlenecks related to heartbeats. Understanding this function's logic will give us a complete picture of how the system handles the reading of heartbeat slots. What is it looking for specifically? Are there any unexpected reads or delays? Let's take a closer look and ensure it's behaving as expected. It's essential we fully understand this to be sure the system works as intended.



291/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_read_slots]

Results:
map[SourceCode: 620:	static int o2hb_read_slots(struct o2hb_region *reg,
 621:				   unsigned int begin_slot,
 622:				   unsigned int max_slots)
 623:	{
 624:		unsigned int current_slot = begin_slot;
 625:		struct o2hb_bio_wait_ctxt wc;
 626:		struct bio *bio;
 627:	
 628:		o2hb_bio_wait_init(&wc);
 629:	
 630:		while(current_slot < max_slots) {
 631:			bio = o2hb_setup_one_bio(reg, &wc, &current_slot, max_slots,
 632:						 REQ_OP_READ);
 633:			atomic_inc(&wc.wc_num_reqs);
 634:			submit_bio(bio);
 635:		}
 636:	
 637:		o2hb_wait_on_io(&wc);
 638:	
 639:		return wc.wc_error;
 640:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

292/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 27568
							output: 45
							thoughts: 13
						

Thoughts:
Okay, here's my interpretation of what's going on, thinking through `o2hb_setup_one_bio`:

**Analyzing `o2hb_setup_one_bio` for Context and Significance**

Alright, let's dive into `o2hb_setup_one_bio`. My immediate goal is to understand its role and purpose within the larger system. I'm looking at this as a building block. My first thought is to trace its connections – what other functions or data structures does it interact with? I need to understand its inputs: what information does it receive, and how is that information prepped. What are its outputs, and where does that data go? Are there side effects? Is it responsible for a critical initialization, a configuration step, or data loading function?

I'm mentally creating a dependency graph. I'm focusing on the "one bio" aspect here. Is this function specific to a single biological entity or a broader group? The naming suggests a level of singularity which has obvious implications for data structure design, likely using an object-oriented approach for better scalability and modularity. I'm looking for patterns, like is this part of an iterative or recursive process? Is it related to some other bio-related setup function? What are the key variables involved? This is likely where the core logic resides, and I need to parse the nature of the data involved.

My expert instinct is already starting to form some hypotheses, what is the 'one bio' being set up? Is this associated with an organism? Is it related to a model organism? Is it associated with a specific assay? What are the implications of the configuration? What might go wrong? Is error handling a priority?

This is all context gathering. I need a solid understanding of this function's purpose, scope, and impact before I can properly assess its design, efficiency, or potential areas for improvement. Let's see what's what!



293/4 2026/09/28 18:25 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_setup_one_bio]

Results:
map[SourceCode: 571:	/* Setup a Bio to cover I/O against num_slots slots starting at
 572:	 * start_slot. */
 573:	static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg,
 574:					      struct o2hb_bio_wait_ctxt *wc,
 575:					      unsigned int *current_slot,
 576:					      unsigned int max_slots, blk_opf_t opf)
 577:	{
 578:		int len, current_page;
 579:		unsigned int vec_len, vec_start;
 580:		unsigned int bits = reg->hr_block_bits;
 581:		unsigned int spp = reg->hr_slots_per_page;
 582:		unsigned int cs = *current_slot;
 583:		struct bio *bio;
 584:		struct page *page;
 585:	
 586:		/*
 587:		 * The heartbeat runs in process context and can sleep, so use
 588:		 * GFP_NOFS. It is backed by the fs_bio_set mempool and thus cannot
 589:		 * fail, while avoiding recursion back into the filesystem.
 590:		 */
 591:		bio = bio_alloc(reg_bdev(reg), 16, opf, GFP_NOFS);
 592:	
 593:		/* Must put everything in 512 byte sectors for the bio... */
 594:		bio->bi_iter.bi_sector = (reg->hr_start_block + cs) << (bits - 9);
 595:		bio->bi_private = wc;
 596:		bio->bi_end_io = o2hb_bio_end_io;
 597:	
 598:		vec_start = (cs << bits) % PAGE_SIZE;
 599:		while(cs < max_slots) {
 600:			current_page = cs / spp;
 601:			page = reg->hr_slot_data[current_page];
 602:	
 603:			vec_len = min(PAGE_SIZE - vec_start,
 604:				      (max_slots-cs) * (PAGE_SIZE/spp) );
 605:	
 606:			mlog(ML_HB_BIO, "page %d, vec_len = %u, vec_start = %u\n",
 607:			     current_page, vec_len, vec_start);
 608:	
 609:			len = bio_add_page(bio, page, vec_len, vec_start);
 610:			if (len != vec_len) break;
 611:	
 612:			cs += vec_len / (PAGE_SIZE/spp);
 613:			vec_start = 0;
 614:		}
 615:	
 616:		*current_slot = cs;
 617:		return bio;
 618:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

294/4 2026/09/28 18:25 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 28873
							output: 37
							thoughts: 97
						

Thoughts:
**Analyzing Potential Concurrency Issues in the OCFS2 Heartbeat Subsystem**

Alright, let's dive into this. My initial concern is whether there's any form of locking mechanism, either within `heartbeat.c` specifically, or even broader in the `fs/ocfs2/cluster/` directory, that's responsible for serializing access to `o2hb_region_dev_store`. I need to ensure that modifications to `reg` are properly protected from concurrent operations. This is a critical area for potential data corruption or race conditions, so I want to be thorough.

My immediate next step is to examine `fs/ocfs2/cluster/heartbeat.c` with a fine-tooth comb, and then scan the associated files. Specifically, I need to look for any other potential locks implemented here.

To expedite this, I'll perform a quick and dirty search within `heartbeat.c` for any instances of "mutex" or "lock". This should quickly highlight any obvious synchronization primitives in use and help me form a clearer mental map of the current state of concurrency protection in that module. I'll need to go further, and verify the correct use of these primitives, as well as consider the locking order, but this will provide a good initial overview.



295/4 2026/09/28 18:25 tool grepper
0m Args:
map[Expression:(mutex|spin)_ PathPrefix:fs/ocfs2/cluster/heartbeat.c]

Results:
map[Output:fs/ocfs2/cluster/heartbeat.c=158=static void o2hb_dead_threshold_set(unsigned int threshold)
--
fs/ocfs2/cluster/heartbeat.c-160-	if (threshold > O2HB_MIN_DEAD_THRESHOLD) {
fs/ocfs2/cluster/heartbeat.c:161:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-162-		if (list_empty(&o2hb_all_regions))
fs/ocfs2/cluster/heartbeat.c-163-			o2hb_dead_threshold = threshold;
fs/ocfs2/cluster/heartbeat.c:164:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-165-	}
--
fs/ocfs2/cluster/heartbeat.c=168=static int o2hb_global_heartbeat_mode_set(unsigned int hb_mode)
--
fs/ocfs2/cluster/heartbeat.c-172-	if (hb_mode < O2HB_HEARTBEAT_NUM_MODES) {
fs/ocfs2/cluster/heartbeat.c:173:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-174-		if (list_empty(&o2hb_all_regions)) {
--
fs/ocfs2/cluster/heartbeat.c-177-		}
fs/ocfs2/cluster/heartbeat.c:178:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-179-	}
--
fs/ocfs2/cluster/heartbeat.c=303=static void o2hb_write_timeout(struct work_struct *work)
--
fs/ocfs2/cluster/heartbeat.c-314-	if (o2hb_global_heartbeat_active()) {
fs/ocfs2/cluster/heartbeat.c:315:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-316-		if (test_bit(reg->hr_region_num, o2hb_quorum_region_bitmap))
--
fs/ocfs2/cluster/heartbeat.c-321-					O2NM_MAX_REGIONS);
fs/ocfs2/cluster/heartbeat.c:322:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-323-
--
fs/ocfs2/cluster/heartbeat.c=338=static void o2hb_arm_timeout(struct o2hb_region *reg)
fs/ocfs2/cluster/heartbeat.c-339-{
fs/ocfs2/cluster/heartbeat.c:340:	mutex_lock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-341-
--
fs/ocfs2/cluster/heartbeat.c-352-	if (o2hb_global_heartbeat_active()) {
fs/ocfs2/cluster/heartbeat.c:353:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-354-		clear_bit(reg->hr_region_num, o2hb_failed_region_bitmap);
fs/ocfs2/cluster/heartbeat.c:355:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-356-	}
--
fs/ocfs2/cluster/heartbeat.c-367-out_unlock:
fs/ocfs2/cluster/heartbeat.c:368:	mutex_unlock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-369-}
--
fs/ocfs2/cluster/heartbeat.c=371=static void o2hb_queue_nego_timeout(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-373-{
fs/ocfs2/cluster/heartbeat.c:374:	mutex_lock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-375-	if (!reg->hr_stopping)
fs/ocfs2/cluster/heartbeat.c-376-		schedule_delayed_work(&reg->hr_nego_timeout_work, delay);
fs/ocfs2/cluster/heartbeat.c:377:	mutex_unlock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-378-}
--
fs/ocfs2/cluster/heartbeat.c=386=static void o2hb_set_region_stopping(struct o2hb_region *reg, bool stopping)
fs/ocfs2/cluster/heartbeat.c-387-{
fs/ocfs2/cluster/heartbeat.c:388:	mutex_lock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-389-	reg->hr_stopping = stopping;
fs/ocfs2/cluster/heartbeat.c:390:	mutex_unlock(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-391-}
--
fs/ocfs2/cluster/heartbeat.c=817=static void o2hb_run_event_list(struct o2hb_node_event *queued_event)
--
fs/ocfs2/cluster/heartbeat.c-826-
fs/ocfs2/cluster/heartbeat.c:827:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-828-	while (!list_empty(&o2hb_node_events)
--
fs/ocfs2/cluster/heartbeat.c-833-		list_del_init(&event->hn_item);
fs/ocfs2/cluster/heartbeat.c:834:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-835-
--
fs/ocfs2/cluster/heartbeat.c-848-
fs/ocfs2/cluster/heartbeat.c:849:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-850-	}
fs/ocfs2/cluster/heartbeat.c:851:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-852-
--
fs/ocfs2/cluster/heartbeat.c=856=static void o2hb_queue_node_event(struct o2hb_node_event *event,
--
fs/ocfs2/cluster/heartbeat.c-860-{
fs/ocfs2/cluster/heartbeat.c:861:	assert_spin_locked(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-862-
--
fs/ocfs2/cluster/heartbeat.c=875=static void o2hb_shutdown_slot(struct o2hb_disk_slot *slot)
--
fs/ocfs2/cluster/heartbeat.c-885-
fs/ocfs2/cluster/heartbeat.c:886:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-887-	if (!list_empty(&slot->ds_live_item)) {
--
fs/ocfs2/cluster/heartbeat.c-900-	}
fs/ocfs2/cluster/heartbeat.c:901:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-902-
--
fs/ocfs2/cluster/heartbeat.c=909=static void o2hb_set_quorum_device(struct o2hb_region *reg)
--
fs/ocfs2/cluster/heartbeat.c-921-
fs/ocfs2/cluster/heartbeat.c:922:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-923-
--
fs/ocfs2/cluster/heartbeat.c-948-unlock:
fs/ocfs2/cluster/heartbeat.c:949:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-950-}
--
fs/ocfs2/cluster/heartbeat.c=952=static int o2hb_check_slot(struct o2hb_region *reg,
--
fs/ocfs2/cluster/heartbeat.c-973-	if (!node) {
fs/ocfs2/cluster/heartbeat.c:974:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-975-		tmp = test_bit(slot->ds_node_num, o2hb_live_node_bitmap);
fs/ocfs2/cluster/heartbeat.c:976:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-977-		if (!tmp)
--
fs/ocfs2/cluster/heartbeat.c-983-		 * us. */
fs/ocfs2/cluster/heartbeat.c:984:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-985-
--
fs/ocfs2/cluster/heartbeat.c-1035-
fs/ocfs2/cluster/heartbeat.c:1036:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1037-
--
fs/ocfs2/cluster/heartbeat.c-1123-out:
fs/ocfs2/cluster/heartbeat.c:1124:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1125-
--
fs/ocfs2/cluster/heartbeat.c=1344=static int o2hb_debug_open(struct inode *inode, struct file *file)
--
fs/ocfs2/cluster/heartbeat.c-1365-	case O2HB_DB_TYPE_FAILEDREGIONS:
fs/ocfs2/cluster/heartbeat.c:1366:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1367-		memcpy(map, db->db_data, db->db_size);
fs/ocfs2/cluster/heartbeat.c:1368:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1369-		break;
--
fs/ocfs2/cluster/heartbeat.c-1371-	case O2HB_DB_TYPE_REGION_LIVENODES:
fs/ocfs2/cluster/heartbeat.c:1372:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1373-		reg = (struct o2hb_region *)db->db_data;
fs/ocfs2/cluster/heartbeat.c-1374-		memcpy(map, reg->hr_live_node_bitmap, db->db_size);
fs/ocfs2/cluster/heartbeat.c:1375:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1376-		break;
--
fs/ocfs2/cluster/heartbeat.c=1553=void o2hb_fill_node_map_locked(unsigned long *map, unsigned int bits)
fs/ocfs2/cluster/heartbeat.c-1554-{
fs/ocfs2/cluster/heartbeat.c:1555:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1556-	__o2hb_fill_node_map(map, bits);
fs/ocfs2/cluster/heartbeat.c:1557:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1558-}
--
fs/ocfs2/cluster/heartbeat.c=1611=static void o2hb_region_release(struct config_item *item)
--
fs/ocfs2/cluster/heartbeat.c-1629-
fs/ocfs2/cluster/heartbeat.c:1630:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1631-	list_del(&reg->hr_all_item);
fs/ocfs2/cluster/heartbeat.c:1632:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1633-
--
fs/ocfs2/cluster/heartbeat.c=1870=static ssize_t o2hb_region_dev_store(struct config_item *item,
--
fs/ocfs2/cluster/heartbeat.c-1957-	if (o2hb_global_heartbeat_active()) {
fs/ocfs2/cluster/heartbeat.c:1958:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1959-		if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1)
fs/ocfs2/cluster/heartbeat.c-1960-			live_threshold <<= 1;
fs/ocfs2/cluster/heartbeat.c:1961:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1962-	}
--
fs/ocfs2/cluster/heartbeat.c-1976-
fs/ocfs2/cluster/heartbeat.c:1977:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1978-	reg->hr_task = hb_task;
fs/ocfs2/cluster/heartbeat.c:1979:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-1980-
--
fs/ocfs2/cluster/heartbeat.c-1999-	/* Ok, we were woken.  Make sure it wasn't by drop_item() */
fs/ocfs2/cluster/heartbeat.c:2000:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2001-	hb_task = reg->hr_task;
--
fs/ocfs2/cluster/heartbeat.c-2003-		set_bit(reg->hr_region_num, o2hb_live_region_bitmap);
fs/ocfs2/cluster/heartbeat.c:2004:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2005-
--
fs/ocfs2/cluster/heartbeat.c-2018-
fs/ocfs2/cluster/heartbeat.c:2019:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2020-		hb_task = reg->hr_task;
fs/ocfs2/cluster/heartbeat.c-2021-		reg->hr_task = NULL;
fs/ocfs2/cluster/heartbeat.c:2022:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2023-
--
fs/ocfs2/cluster/heartbeat.c=2035=static ssize_t o2hb_region_pid_show(struct config_item *item, char *page)
--
fs/ocfs2/cluster/heartbeat.c-2039-
fs/ocfs2/cluster/heartbeat.c:2040:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2041-	if (reg->hr_task)
fs/ocfs2/cluster/heartbeat.c-2042-		pid = task_pid_nr(reg->hr_task);
fs/ocfs2/cluster/heartbeat.c:2043:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2044-
--
fs/ocfs2/cluster/heartbeat.c=2119=static struct config_item *o2hb_heartbeat_group_make_item(struct config_group *group,
--
fs/ocfs2/cluster/heartbeat.c-2134-
fs/ocfs2/cluster/heartbeat.c:2135:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2136-	reg->hr_region_num = 0;
--
fs/ocfs2/cluster/heartbeat.c-2140-		if (reg->hr_region_num >= O2NM_MAX_REGIONS) {
fs/ocfs2/cluster/heartbeat.c:2141:			spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2142-			ret = -EFBIG;
--
fs/ocfs2/cluster/heartbeat.c-2147-	list_add_tail(&reg->hr_all_item, &o2hb_all_regions);
fs/ocfs2/cluster/heartbeat.c:2148:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2149-
--
fs/ocfs2/cluster/heartbeat.c-2157-		name, strlen(name));
fs/ocfs2/cluster/heartbeat.c:2158:	mutex_init(&reg->hr_arming_mutex);
fs/ocfs2/cluster/heartbeat.c-2159-	reg->hr_stopping = true;
--
fs/ocfs2/cluster/heartbeat.c-2183-remove_item:
fs/ocfs2/cluster/heartbeat.c:2184:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2185-	list_del(&reg->hr_all_item);
--
fs/ocfs2/cluster/heartbeat.c-2187-		clear_bit(reg->hr_region_num, o2hb_region_bitmap);
fs/ocfs2/cluster/heartbeat.c:2188:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2189-free:
--
fs/ocfs2/cluster/heartbeat.c=2194=static void o2hb_heartbeat_group_drop_item(struct config_group *group,
--
fs/ocfs2/cluster/heartbeat.c-2203-	/* stop the thread when the user removes the region dir */
fs/ocfs2/cluster/heartbeat.c:2204:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2205-	hb_task = reg->hr_task;
--
fs/ocfs2/cluster/heartbeat.c-2207-	reg->hr_item_dropped = 1;
fs/ocfs2/cluster/heartbeat.c:2208:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2209-
--
fs/ocfs2/cluster/heartbeat.c-2213-	if (o2hb_global_heartbeat_active()) {
fs/ocfs2/cluster/heartbeat.c:2214:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2215-		clear_bit(reg->hr_region_num, o2hb_region_bitmap);
--
fs/ocfs2/cluster/heartbeat.c-2219-		clear_bit(reg->hr_region_num, o2hb_quorum_region_bitmap);
fs/ocfs2/cluster/heartbeat.c:2220:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2221-		printk(KERN_NOTICE "o2hb: Heartbeat %s on region %s (%pg)\n",
--
fs/ocfs2/cluster/heartbeat.c-2245-	 */
fs/ocfs2/cluster/heartbeat.c:2246:	mutex_lock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c:2247:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2248-
--
fs/ocfs2/cluster/heartbeat.c-2256-unlock:
fs/ocfs2/cluster/heartbeat.c:2257:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c:2258:	mutex_unlock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c-2259-}
--
fs/ocfs2/cluster/heartbeat.c=2396=static int o2hb_region_pin(const char *region_uuid, bool from_callback)
--
fs/ocfs2/cluster/heartbeat.c-2401-
fs/ocfs2/cluster/heartbeat.c:2402:	assert_spin_locked(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2403-
--
fs/ocfs2/cluster/heartbeat.c-2447-		 */
fs/ocfs2/cluster/heartbeat.c:2448:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2449-
--
fs/ocfs2/cluster/heartbeat.c-2455-
fs/ocfs2/cluster/heartbeat.c:2456:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2457-		if (!ret) {
--
fs/ocfs2/cluster/heartbeat.c-2470-				o2nm_undepend_item(&pinned->hr_item);
fs/ocfs2/cluster/heartbeat.c:2471:				spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2472-				config_item_put(&pinned->hr_item);
fs/ocfs2/cluster/heartbeat.c:2473:				spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2474-				break;
--
fs/ocfs2/cluster/heartbeat.c-2496-		 */
fs/ocfs2/cluster/heartbeat.c:2497:		spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2498-		config_item_put(&pinned->hr_item);
fs/ocfs2/cluster/heartbeat.c:2499:		spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2500-
--
fs/ocfs2/cluster/heartbeat.c=2514=static void o2hb_region_unpin(const char *region_uuid)
--
fs/ocfs2/cluster/heartbeat.c-2519-
fs/ocfs2/cluster/heartbeat.c:2520:	assert_spin_locked(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2521-
--
fs/ocfs2/cluster/heartbeat.c=2543=static int o2hb_region_inc_user(const char *region_uuid)
--
fs/ocfs2/cluster/heartbeat.c-2546-
fs/ocfs2/cluster/heartbeat.c:2547:	mutex_lock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c:2548:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2549-
--
fs/ocfs2/cluster/heartbeat.c-2573-unlock:
fs/ocfs2/cluster/heartbeat.c:2574:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c:2575:	mutex_unlock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c-2576-	return ret;
--
fs/ocfs2/cluster/heartbeat.c=2579=static void o2hb_region_dec_user(const char *region_uuid)
fs/ocfs2/cluster/heartbeat.c-2580-{
fs/ocfs2/cluster/heartbeat.c:2581:	mutex_lock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c:2582:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2583-
--
fs/ocfs2/cluster/heartbeat.c-2598-unlock:
fs/ocfs2/cluster/heartbeat.c:2599:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c:2600:	mutex_unlock(&o2hb_dependency_mutex);
fs/ocfs2/cluster/heartbeat.c-2601-}
--
fs/ocfs2/cluster/heartbeat.c=2670=int o2hb_check_node_heartbeating_no_sem(u8 node_num)
--
fs/ocfs2/cluster/heartbeat.c-2673-
fs/ocfs2/cluster/heartbeat.c:2674:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2675-	__o2hb_fill_node_map(testing_map, O2NM_MAX_NODES);
fs/ocfs2/cluster/heartbeat.c:2676:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2677-	if (!test_bit(node_num, testing_map)) {
--
fs/ocfs2/cluster/heartbeat.c=2708=void o2hb_stop_all_regions(void)
--
fs/ocfs2/cluster/heartbeat.c-2713-
fs/ocfs2/cluster/heartbeat.c:2714:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2715-
--
fs/ocfs2/cluster/heartbeat.c-2718-
fs/ocfs2/cluster/heartbeat.c:2719:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2720-}
--
fs/ocfs2/cluster/heartbeat.c=2723=int o2hb_get_all_regions(char *region_uuids, u8 max_regions)
--
fs/ocfs2/cluster/heartbeat.c-2728-
fs/ocfs2/cluster/heartbeat.c:2729:	spin_lock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2730-
--
fs/ocfs2/cluster/heartbeat.c-2744-
fs/ocfs2/cluster/heartbeat.c:2745:	spin_unlock(&o2hb_live_lock);
fs/ocfs2/cluster/heartbeat.c-2746-
]

296/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36606
							output: 28
							thoughts: 1068
						

Thoughts:
**Analyzing `o2hb_region_dev_store` for Potential Concurrency Issues**

Okay, let's carefully dissect `o2hb_region_dev_store`. My first observation is that there's no explicit locking within the function itself to protect the critical setup operations. It's concerning because we're modifying the `reg` structure directly without any mutual exclusion. Looking at the code, the only mentions of locking are within specific sections like checking the bitmap weight and assigning/un-assigning `hr_task`, and those aren't protecting the main entry point or the initial setup. There's `spin_lock(&o2hb_live_lock)` used, but it doesn't appear to extend to guarding the critical operations of this function.

This absence raises a red flag; race conditions could arise if multiple threads or processes try to access and modify the `reg` structure concurrently, especially during initialization. We are dealing with an important structure, `reg`, that is modified in the function.

Now, I need to investigate whether configfs or the VFS layer provide any implicit locking mechanisms that might mitigate this risk. Is there any inherent locking at the configfs attribute level or file system operations that this function leverages? I need to check the configfs documentation and explore any locking mechanisms within that subsystem, specifically the attributes. I will need to verify whether the VFS layer somehow provides sufficient guarantees here, even if it's not immediately obvious from the function itself. I need to check `fs/configfs/` or `Documentation/filesystems/configfs.rst` and related docs.



297/4 2026/09/28 18:26 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:store PathPrefix:Documentation/filesystems/configfs]

Results:
map[Output:]

298/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 38052
							output: 23
							thoughts: 11
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, tailored for an expert audience:

**Hunting Down ConfigFS Documentation**

Alright, let's get down to brass tacks. I need to refresh my memory on the specifics of `configfs`. It's been a while since I've dived deeply into the intricacies of its design and usage. So, the first step is always the same: locate the definitive source. I need to find the authoritative documentation. Is it in the kernel source tree itself? Perhaps there's a well-maintained man page somewhere, although those can sometimes be a bit… terse. Or maybe it's scattered across a wiki or some dedicated kernel documentation website. I'll need to know which one I should seek out. Let's start the hunt for the location of the definitive documentation.



299/4 2026/09/28 18:26 tool grepper
0m Args:
map[Expression:configfs PathPrefix:Documentation]

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

Documentation/ABI/testing/configfs-most=4=Description: 	Interface is used to configure and connect device channels
--
Documentation/ABI/testing/configfs-most-6-
Documentation/ABI/testing/configfs-most:7:		Attributes are visible only when configfs is mounted. To mount
Documentation/ABI/testing/configfs-most:8:		configfs in /sys/kernel/config directory use:
Documentation/ABI/testing/configfs-most:9:		# mount -t configfs none /sys/kernel/config/
Documentation/ABI/testing/configfs-most-10-
--
Documentation/ABI/testing/configfs-rdma_cm=4=Description: 	Interface is used to configure RDMA-cable HCAs in respect to
--
Documentation/ABI/testing/configfs-rdma_cm-6-
Documentation/ABI/testing/configfs-rdma_cm:7:		Attributes are visible only when configfs is mounted. To mount
Documentation/ABI/testing/configfs-rdma_cm:8:		configfs in /config directory use:
Documentation/ABI/testing/configfs-rdma_cm:9:		# mount -t configfs none /config/
Documentation/ABI/testing/configfs-rdma_cm-10-
--
Documentation/ABI/testing/configfs-rdma_cm-14-
Documentation/ABI/testing/configfs-rdma_cm:15:		Note: configfs has no network namespace support, so this
Documentation/ABI/testing/configfs-rdma_cm-16-		interface cannot represent two devices that share a name in
--
Documentation/ABI/testing/configfs-spear-pcie-gadget=5=Description:
--
Documentation/ABI/testing/configfs-spear-pcie-gadget-11-
Documentation/ABI/testing/configfs-spear-pcie-gadget:12:	Nodes are only visible when configfs is mounted. To mount configfs
Documentation/ABI/testing/configfs-spear-pcie-gadget-13-	in /config directory use::
Documentation/ABI/testing/configfs-spear-pcie-gadget-14-
Documentation/ABI/testing/configfs-spear-pcie-gadget:15:	  # mount -t configfs none /config/
Documentation/ABI/testing/configfs-spear-pcie-gadget-16-
--
Documentation/ABI/testing/configfs-thunderbolt_stream=49=Description:
Documentation/ABI/testing/configfs-thunderbolt_stream-50-		This matches the X in /dev/tbstreamX and allows userspace
Documentation/ABI/testing/configfs-thunderbolt_stream:51:		to map the configfs directory to the corresponding character
Documentation/ABI/testing/configfs-thunderbolt_stream-52-		device.
--
Documentation/ABI/testing/configfs-tsm-report=14=Description:
--
Documentation/ABI/testing/configfs-tsm-report-20-		This interface fails reads and sets errno to EFBIG when the
Documentation/ABI/testing/configfs-tsm-report:21:		report generated by @provider exceeds the configfs-tsm-report
Documentation/ABI/testing/configfs-tsm-report-22-		internal maximums. Contact the platform provider for the
--
Documentation/ABI/testing/configfs-usb-gadget-tcm=4=Description:
Documentation/ABI/testing/configfs-usb-gadget-tcm-5-		There are no attributes because all the configuration
Documentation/ABI/testing/configfs-usb-gadget-tcm:6:		is performed in the "target" subsystem of configfs.
--
Documentation/ABI/testing/configfs-usb-gadget-uvc=437=KernelVersion:	4.19
Documentation/ABI/testing/configfs-usb-gadget-uvc:438:Description:	UVC configfs function instance name
--
Documentation/PCI/endpoint/function/binding/pci-ntb.rst=4=PCI NTB Endpoint Function
--
Documentation/PCI/endpoint/function/binding/pci-ntb.rst-6-
Documentation/PCI/endpoint/function/binding/pci-ntb.rst:7:1) Create a subdirectory to pci_epf_ntb directory in configfs.
Documentation/PCI/endpoint/function/binding/pci-ntb.rst-8-
--
Documentation/PCI/endpoint/pci-endpoint-cfs.rst=4=Configuring PCI Endpoint Using CONFIGFS
--
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-8-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:9:The PCI Endpoint Core exposes configfs entry (pci_ep) to configure the
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-10-PCI endpoint function and to bind the endpoint function
--
Documentation/PCI/endpoint/pci-endpoint-cfs.rst=12=configure the PCI Endpoint Function refer to [1]).
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-13-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:14:Mounting configfs
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-15-=================
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-16-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:17:The PCI Endpoint Core layer creates pci_ep directory in the mounted configfs
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:18:directory. configfs can be mounted using the following command::
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-19-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:20:	mount -t configfs none /sys/kernel/config
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-21-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst=22=Directory Structure
--
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-24-
Documentation/PCI/endpoint/pci-endpoint-cfs.rst:25:The pci_ep configfs has two directories at its root: controllers and
Documentation/PCI/endpoint/pci-endpoint-cfs.rst-26-functions. Every EPC device present in the system will have an entry in
--
Documentation/PCI/endpoint/pci-endpoint.rst=5=This document is a guide to use the PCI Endpoint Framework in order to create
Documentation/PCI/endpoint/pci-endpoint.rst:6:endpoint controller driver, endpoint function driver, and using configfs
Documentation/PCI/endpoint/pci-endpoint.rst-7-interface to bind the function driver to the controller driver.
--
Documentation/PCI/endpoint/pci-endpoint.rst=27=The PCI Endpoint Core layer comprises 3 components: the Endpoint Controller
Documentation/PCI/endpoint/pci-endpoint.rst:28:library, the Endpoint Function library, and the configfs layer to bind the
Documentation/PCI/endpoint/pci-endpoint.rst-29-endpoint function with the endpoint controller.
--
Documentation/PCI/endpoint/pci-endpoint.rst=219=by the PCI endpoint function driver.
--
Documentation/PCI/endpoint/pci-endpoint.rst-226-	   device and EPF device
Documentation/PCI/endpoint/pci-endpoint.rst:227:	 * add_cfs: optional ops to create function specific configfs
Documentation/PCI/endpoint/pci-endpoint.rst-228-	   attributes
--
Documentation/PCI/endpoint/pci-ntb-howto.rst=49=Creating pci-epf-ntb Device
--
Documentation/PCI/endpoint/pci-ntb-howto.rst-51-
Documentation/PCI/endpoint/pci-ntb-howto.rst:52:PCI endpoint function device can be created using the configfs. To create
Documentation/PCI/endpoint/pci-ntb-howto.rst-53-pci-epf-ntb device, the following commands can be used::
Documentation/PCI/endpoint/pci-ntb-howto.rst-54-
Documentation/PCI/endpoint/pci-ntb-howto.rst:55:	# mount -t configfs none /sys/kernel/config
Documentation/PCI/endpoint/pci-ntb-howto.rst-56-	# cd /sys/kernel/config/pci_ep/
--
Documentation/PCI/endpoint/pci-ntb-howto.rst=81=Configuring pci-epf-ntb Device
--
Documentation/PCI/endpoint/pci-ntb-howto.rst-83-
Documentation/PCI/endpoint/pci-ntb-howto.rst:84:The user can configure the pci-epf-ntb device using its configfs entry. In order
Documentation/PCI/endpoint/pci-ntb-howto.rst-85-to change the vendorid and the deviceid, the following
--
Documentation/PCI/endpoint/pci-test-howto.rst=44=Creating pci-epf-test Device
--
Documentation/PCI/endpoint/pci-test-howto.rst-46-
Documentation/PCI/endpoint/pci-test-howto.rst:47:PCI endpoint function device can be created using the configfs. To create
Documentation/PCI/endpoint/pci-test-howto.rst-48-pci-epf-test device, the following commands can be used::
Documentation/PCI/endpoint/pci-test-howto.rst-49-
Documentation/PCI/endpoint/pci-test-howto.rst:50:	# mount -t configfs none /sys/kernel/config
Documentation/PCI/endpoint/pci-test-howto.rst-51-	# cd /sys/kernel/config/pci_ep/
--
Documentation/PCI/endpoint/pci-test-howto.rst=75=Configuring pci-epf-test Device
--
Documentation/PCI/endpoint/pci-test-howto.rst-77-
Documentation/PCI/endpoint/pci-test-howto.rst:78:The user can configure the pci-epf-test device using configfs entry. In order
Documentation/PCI/endpoint/pci-test-howto.rst-79-to change the vendorid and the number of MSI interrupts used by the function
--
Documentation/PCI/endpoint/pci-test-howto.rst=103=Note: Some endpoint controllers might have fixed-size BARs or reserved BARs;
Documentation/PCI/endpoint/pci-test-howto.rst:104:for such controllers, the corresponding BAR size in configfs will be ignored.
Documentation/PCI/endpoint/pci-test-howto.rst-105-
--
Documentation/PCI/endpoint/pci-test-howto.rst=110=In order for the endpoint function device to be useful, it has to be bound to
Documentation/PCI/endpoint/pci-test-howto.rst:111:a PCI endpoint controller driver. Use the configfs to bind the function
Documentation/PCI/endpoint/pci-test-howto.rst-112-device to one of the controller driver present in the system::
--
Documentation/PCI/endpoint/pci-vntb-howto.rst=45=Creating pci-epf-vntb Device
--
Documentation/PCI/endpoint/pci-vntb-howto.rst-47-
Documentation/PCI/endpoint/pci-vntb-howto.rst:48:PCI endpoint function device can be created using the configfs. To create
Documentation/PCI/endpoint/pci-vntb-howto.rst-49-pci-epf-vntb device, the following commands can be used::
Documentation/PCI/endpoint/pci-vntb-howto.rst-50-
Documentation/PCI/endpoint/pci-vntb-howto.rst:51:	# mount -t configfs none /sys/kernel/config
Documentation/PCI/endpoint/pci-vntb-howto.rst-52-	# cd /sys/kernel/config/pci_ep/
--
Documentation/PCI/endpoint/pci-vntb-howto.rst=77=Configuring pci-epf-vntb Device
--
Documentation/PCI/endpoint/pci-vntb-howto.rst-79-
Documentation/PCI/endpoint/pci-vntb-howto.rst:80:The user can configure the pci-epf-vntb device using its configfs entry. In order
Documentation/PCI/endpoint/pci-vntb-howto.rst-81-to change the vendorid and the deviceid, the following
--
Documentation/admin-guide/acpi/ssdt-overlays.rst=127=variable with the content from a given file::
--
Documentation/admin-guide/acpi/ssdt-overlays.rst-167-
Documentation/admin-guide/acpi/ssdt-overlays.rst:168:Loading ACPI SSDTs from configfs
Documentation/admin-guide/acpi/ssdt-overlays.rst-169-================================
Documentation/admin-guide/acpi/ssdt-overlays.rst-170-
Documentation/admin-guide/acpi/ssdt-overlays.rst:171:This option allows loading of user defined SSDTs from user space via the configfs
Documentation/admin-guide/acpi/ssdt-overlays.rst:172:interface. The CONFIG_ACPI_CONFIGFS option must be select and configfs must be
Documentation/admin-guide/acpi/ssdt-overlays.rst:173:mounted. In the following examples, we assume that configfs has been mounted in
Documentation/admin-guide/acpi/ssdt-overlays.rst-174-/sys/kernel/config.
--
Documentation/admin-guide/gpio/gpio-aggregator.rst=72=Aggregating GPIOs using Configfs
--
Documentation/admin-guide/gpio/gpio-aggregator.rst-76-
Documentation/admin-guide/gpio/gpio-aggregator.rst:77:    This is the root directory of the gpio-aggregator configfs tree.
Documentation/admin-guide/gpio/gpio-aggregator.rst-78-
--
Documentation/admin-guide/gpio/gpio-aggregator.rst-82-    name to ``<example-name>`` (e.g. ``agg0``), except names starting with
Documentation/admin-guide/gpio/gpio-aggregator.rst:83:    ``_sysfs`` prefix, which are reserved for auto-generated configfs
Documentation/admin-guide/gpio/gpio-aggregator.rst-84-    entries corresponding to devices created via Sysfs.
--
Documentation/admin-guide/gpio/gpio-aggregator.rst=144=case when you create it using sysfs ``new_device`` interface.
--
Documentation/admin-guide/gpio/gpio-aggregator.rst-147-
Documentation/admin-guide/gpio/gpio-aggregator.rst:148:   For aggregators created via Sysfs, the configfs entries are
Documentation/admin-guide/gpio/gpio-aggregator.rst-149-   auto-generated and appear as ``/config/gpio-aggregator/_sysfs.<N>/``. You
--
Documentation/admin-guide/gpio/gpio-sim.rst=3=Configfs GPIO Simulator
--
Documentation/admin-guide/gpio/gpio-sim.rst-5-
Documentation/admin-guide/gpio/gpio-sim.rst:6:The configfs GPIO Simulator (gpio-sim) provides a way to create simulated GPIO
Documentation/admin-guide/gpio/gpio-sim.rst-7-chips for testing purposes. The lines exposed by these chips can be accessed
--
Documentation/admin-guide/gpio/gpio-sim.rst=11=Creating simulated chips
--
Documentation/admin-guide/gpio/gpio-sim.rst-13-
Documentation/admin-guide/gpio/gpio-sim.rst:14:The gpio-sim module registers a configfs subsystem called ``'gpio-sim'``. For
Documentation/admin-guide/gpio/gpio-sim.rst:15:details of the configfs filesystem, please refer to the configfs documentation.
Documentation/admin-guide/gpio/gpio-sim.rst-16-
Documentation/admin-guide/gpio/gpio-sim.rst:17:The user can create a hierarchy of configfs groups and items as well as modify
Documentation/admin-guide/gpio/gpio-sim.rst-18-values of exposed attributes. Once the chip is instantiated, this hierarchy
Documentation/admin-guide/gpio/gpio-sim.rst=19=will be translated to appropriate device properties. The general structure is:
--
Documentation/admin-guide/gpio/gpio-sim.rst-22-
Documentation/admin-guide/gpio/gpio-sim.rst:23:This is the top directory of the gpio-sim configfs tree.
Documentation/admin-guide/gpio/gpio-sim.rst-24-
--
Documentation/admin-guide/gpio/gpio-virtuser.rst=7=that request GPIOs and then control their behavior over debugfs. Virtual
Documentation/admin-guide/gpio/gpio-virtuser.rst:8:consumer devices can be instantiated from device-tree or over configfs.
Documentation/admin-guide/gpio/gpio-virtuser.rst-9-
--
Documentation/admin-guide/gpio/gpio-virtuser.rst=14=Creating GPIO consumers
--
Documentation/admin-guide/gpio/gpio-virtuser.rst-16-
Documentation/admin-guide/gpio/gpio-virtuser.rst:17:The gpio-consumer module registers a configfs subsystem called
Documentation/admin-guide/gpio/gpio-virtuser.rst:18:``'gpio-virtuser'``. For details of the configfs filesystem, please refer to
Documentation/admin-guide/gpio/gpio-virtuser.rst:19:the configfs documentation.
Documentation/admin-guide/gpio/gpio-virtuser.rst-20-
Documentation/admin-guide/gpio/gpio-virtuser.rst:21:The user can create a hierarchy of configfs groups and items as well as modify
Documentation/admin-guide/gpio/gpio-virtuser.rst-22-values of exposed attributes. Once the consumer is instantiated, this hierarchy
Documentation/admin-guide/gpio/gpio-virtuser.rst=23=will be translated to appropriate device properties. The general structure is:
--
Documentation/admin-guide/gpio/gpio-virtuser.rst-26-
Documentation/admin-guide/gpio/gpio-virtuser.rst:27:This is the top directory of the gpio-consumer configfs tree.
Documentation/admin-guide/gpio/gpio-virtuser.rst-28-
--
Documentation/admin-guide/gpio/gpio-virtuser.rst=46=Creating GPIO lookup tables
--
Documentation/admin-guide/gpio/gpio-virtuser.rst-48-
Documentation/admin-guide/gpio/gpio-virtuser.rst:49:Users can create a number of configfs groups under the device group:
Documentation/admin-guide/gpio/gpio-virtuser.rst-50-
--
Documentation/admin-guide/gpio/gpio-virtuser.rst=72=This is a group describing a single GPIO in the ``con_id-gpios`` property.
Documentation/admin-guide/gpio/gpio-virtuser.rst-73-
Documentation/admin-guide/gpio/gpio-virtuser.rst:74:For virtual consumers created using configfs we use machine lookup tables so
Documentation/admin-guide/gpio/gpio-virtuser.rst-75-this group can be considered as a mapping between the filesystem and the fields
--
Documentation/admin-guide/mm/shrinker_debugfs.rst=17=Usage:
--
Documentation/admin-guide/mm/shrinker_debugfs.rst-35-    sb-cgroup2-30       sb-proc-39       sb-tmpfs-27      xfs-buf:vda1-37
Documentation/admin-guide/mm/shrinker_debugfs.rst:36:    sb-configfs-23      sb-proc-41       sb-tmpfs-29      xfs-inodegc:vda1-38
Documentation/admin-guide/mm/shrinker_debugfs.rst-37-    sb-dax-11           sb-proc-45       sb-tmpfs-35
--
Documentation/driver-api/ioctl.rst=235=problem. Alternatives include:
--
Documentation/driver-api/ioctl.rst-249-
Documentation/driver-api/ioctl.rst:250:* configfs can be used for more complex configuration than sysfs
Documentation/driver-api/ioctl.rst-251-
--
Documentation/driver-api/usb/dwc3.rst=58=These features have all been exercised with many of the **in-tree**
Documentation/driver-api/usb/dwc3.rst:59:gadget drivers. We have verified both *ConfigFS* [#configfs]_ and
Documentation/driver-api/usb/dwc3.rst-60-legacy gadget drivers.
--
Documentation/driver-api/usb/dwc3.rst=684=Structures, Methods and Definitions
--
Documentation/driver-api/usb/dwc3.rst-706-.. [#debugfs] The Debug File System
Documentation/driver-api/usb/dwc3.rst:707:.. [#configfs] The Config File System
Documentation/driver-api/usb/dwc3.rst-708-.. [#cbw] Command Block Wrapper
--
Documentation/filesystems/9p.rst=64=where <device> is the tag associated by the usb gadget transport.
Documentation/filesystems/9p.rst:65:It is defined by the configfs instance name.
Documentation/filesystems/9p.rst-66-
--
Documentation/filesystems/configfs.rst=9=Copyright (c) 2005 Oracle Corporation,
--
Documentation/filesystems/configfs.rst-12-
Documentation/filesystems/configfs.rst:13:What is configfs?
Documentation/filesystems/configfs.rst-14-=================
Documentation/filesystems/configfs.rst-15-
Documentation/filesystems/configfs.rst:16:configfs is a ram-based filesystem that provides the converse of
Documentation/filesystems/configfs.rst-17-sysfs's functionality.  Where sysfs is a filesystem-based view of
Documentation/filesystems/configfs.rst:18:kernel objects, configfs is a filesystem-based manager of kernel
Documentation/filesystems/configfs.rst-19-objects, or config_items.
--
Documentation/filesystems/configfs.rst=27=representation, and sysfs is merely a window on all this.
Documentation/filesystems/configfs.rst-28-
Documentation/filesystems/configfs.rst:29:A configfs config_item is created via an explicit userspace operation:
Documentation/filesystems/configfs.rst-30-mkdir(2).  It is destroyed via rmdir(2).  The attributes appear at
--
Documentation/filesystems/configfs.rst=35=kernel modules backing the items must respond to this.
Documentation/filesystems/configfs.rst-36-
Documentation/filesystems/configfs.rst:37:Both sysfs and configfs can and should exist together on the same
Documentation/filesystems/configfs.rst-38-system.  One is not a replacement for the other.
Documentation/filesystems/configfs.rst-39-
Documentation/filesystems/configfs.rst:40:Using configfs
Documentation/filesystems/configfs.rst-41-==============
Documentation/filesystems/configfs.rst-42-
Documentation/filesystems/configfs.rst:43:configfs can be compiled as a module or into the kernel.  You can access
Documentation/filesystems/configfs.rst-44-it by doing::
Documentation/filesystems/configfs.rst-45-
Documentation/filesystems/configfs.rst:46:	mount -t configfs none /config
Documentation/filesystems/configfs.rst-47-
Documentation/filesystems/configfs.rst:48:The configfs tree will be empty unless client modules are also loaded.
Documentation/filesystems/configfs.rst:49:These are modules that register their item types with configfs as
Documentation/filesystems/configfs.rst-50-subsystems.  Once a client subsystem is loaded, it will appear as a
Documentation/filesystems/configfs.rst=51=subdirectory (or more than one) under /config.  Like sysfs, the
Documentation/filesystems/configfs.rst:52:configfs tree is always there, whether mounted on /config or not.
Documentation/filesystems/configfs.rst-53-
--
Documentation/filesystems/configfs.rst=57=values.  Don't mix more than one attribute in one attribute file.
Documentation/filesystems/configfs.rst-58-
Documentation/filesystems/configfs.rst:59:There are two types of configfs attributes:
Documentation/filesystems/configfs.rst-60-
--
Documentation/filesystems/configfs.rst-64-  Configfs expects write(2) to store the entire buffer at once.  When writing to
Documentation/filesystems/configfs.rst:65:  normal configfs attributes, userspace processes should first read the entire
Documentation/filesystems/configfs.rst-66-  file, modify the portions they wish to change, and then write the entire
--
Documentation/filesystems/configfs.rst=86=Imagine there's a Network Block Device (NBD) driver that allows you to
Documentation/filesystems/configfs.rst:87:access remote block devices.  Call it FakeNBD.  FakeNBD uses configfs
Documentation/filesystems/configfs.rst-88-for its configuration.  Obviously, there will be a nice program that
Documentation/filesystems/configfs.rst=89=sysadmins use to configure FakeNBD, but somehow that program has to tell
Documentation/filesystems/configfs.rst:90:the driver about it.  Here's where configfs comes in.
Documentation/filesystems/configfs.rst-91-
Documentation/filesystems/configfs.rst:92:When the FakeNBD driver is loaded, it registers itself with configfs.
Documentation/filesystems/configfs.rst-93-readdir(3) sees this just fine::
--
Documentation/filesystems/configfs.rst=116=shell no less.
Documentation/filesystems/configfs.rst-117-
Documentation/filesystems/configfs.rst:118:Coding With configfs
Documentation/filesystems/configfs.rst-119-====================
Documentation/filesystems/configfs.rst-120-
Documentation/filesystems/configfs.rst:121:Every object in configfs is a config_item.  A config_item reflects an
Documentation/filesystems/configfs.rst-122-object in the subsystem.  It has attributes that match values on that
Documentation/filesystems/configfs.rst:123:object.  configfs handles the filesystem representation of that object
Documentation/filesystems/configfs.rst-124-and its attributes, allowing the subsystem to ignore all but the
--
Documentation/filesystems/configfs.rst=128=collection of items that share the same attributes and operations.
Documentation/filesystems/configfs.rst:129:Items are created by mkdir(2) and removed by rmdir(2), but configfs
Documentation/filesystems/configfs.rst-130-handles that.  The group has a set of operations to perform these tasks
--
Documentation/filesystems/configfs.rst=132=A subsystem is the top level of a client module.  During initialization,
Documentation/filesystems/configfs.rst:133:the client module registers the subsystem with configfs, the subsystem
Documentation/filesystems/configfs.rst:134:appears as a directory at the top of the configfs filesystem.  A
Documentation/filesystems/configfs.rst-135-subsystem is also a config_group, and can do everything a config_group
--
Documentation/filesystems/configfs.rst=163=config_item portion of that structure is how the object interacts with
Documentation/filesystems/configfs.rst:164:configfs.
Documentation/filesystems/configfs.rst-165-
--
Documentation/filesystems/configfs.rst=173=config_item_put().
Documentation/filesystems/configfs.rst-174-
Documentation/filesystems/configfs.rst:175:By itself, a config_item cannot do much more than appear in configfs.
Documentation/filesystems/configfs.rst-176-Usually a subsystem wants the item to display and/or store attributes,
--
Documentation/filesystems/configfs.rst=179=struct config_item_type
--
Documentation/filesystems/configfs.rst-183-
Documentation/filesystems/configfs.rst:184:	struct configfs_item_operations {
Documentation/filesystems/configfs.rst-185-		void (*release)(struct config_item *);
--
Documentation/filesystems/configfs.rst-193-		struct module                           *ct_owner;
Documentation/filesystems/configfs.rst:194:		struct configfs_item_operations         *ct_item_ops;
Documentation/filesystems/configfs.rst:195:		struct configfs_group_operations        *ct_group_ops;
Documentation/filesystems/configfs.rst:196:		struct configfs_attribute               **ct_attrs;
Documentation/filesystems/configfs.rst:197:		struct configfs_bin_attribute		**ct_bin_attrs;
Documentation/filesystems/configfs.rst-198-	};
--
Documentation/filesystems/configfs.rst=204=reaches zero.
Documentation/filesystems/configfs.rst-205-
Documentation/filesystems/configfs.rst:206:struct configfs_attribute
Documentation/filesystems/configfs.rst-207-=========================
--
Documentation/filesystems/configfs.rst-210-
Documentation/filesystems/configfs.rst:211:	struct configfs_attribute {
Documentation/filesystems/configfs.rst-212-		char                    *ca_name;
--
Documentation/filesystems/configfs.rst=219=When a config_item wants an attribute to appear as a file in the item's
Documentation/filesystems/configfs.rst:220:configfs directory, it must define a configfs_attribute describing it.
Documentation/filesystems/configfs.rst-221-It then adds the attribute to the NULL-terminated array
Documentation/filesystems/configfs.rst:222:config_item_type->ct_attrs.  When the item appears in configfs, the
Documentation/filesystems/configfs.rst:223:attribute file will appear with the configfs_attribute->ca_name
Documentation/filesystems/configfs.rst:224:filename.  configfs_attribute->ca_mode specifies the file permissions.
Documentation/filesystems/configfs.rst-225-
--
Documentation/filesystems/configfs.rst=229=called whenever userspace asks for a write(2) on the attribute.
Documentation/filesystems/configfs.rst-230-
Documentation/filesystems/configfs.rst:231:struct configfs_bin_attribute
Documentation/filesystems/configfs.rst-232-=============================
--
Documentation/filesystems/configfs.rst-235-
Documentation/filesystems/configfs.rst:236:	struct configfs_bin_attribute {
Documentation/filesystems/configfs.rst:237:		struct configfs_attribute	cb_attr;
Documentation/filesystems/configfs.rst-238-		void				*cb_private;
--
Documentation/filesystems/configfs.rst=242=The binary attribute is used when the one needs to use binary blob to
Documentation/filesystems/configfs.rst:243:appear as the contents of a file in the item's configfs directory.
Documentation/filesystems/configfs.rst-244-To do so add the binary attribute to the NULL-terminated array
Documentation/filesystems/configfs.rst:245:config_item_type->ct_bin_attrs, and the item appears in configfs, the
Documentation/filesystems/configfs.rst:246:attribute file will appear with the configfs_bin_attribute->cb_attr.ca_name
Documentation/filesystems/configfs.rst:247:filename.  configfs_bin_attribute->cb_attr.ca_mode specifies the file
Documentation/filesystems/configfs.rst-248-permissions.
--
Documentation/filesystems/configfs.rst=265=child item::
--
Documentation/filesystems/configfs.rst-269-		struct list_head		cg_children;
Documentation/filesystems/configfs.rst:270:		struct configfs_subsystem 	*cg_subsys;
Documentation/filesystems/configfs.rst-271-		struct list_head		default_groups;
--
Documentation/filesystems/configfs.rst=285=config_item_type::
Documentation/filesystems/configfs.rst-286-
Documentation/filesystems/configfs.rst:287:	struct configfs_group_operations {
Documentation/filesystems/configfs.rst-288-		struct config_item *(*make_item)(struct config_group *group,
--
Documentation/filesystems/configfs.rst=301=config_item (or more likely, its container structure), initializes it,
Documentation/filesystems/configfs.rst:302:and returns it to configfs.  Configfs will then populate the filesystem
Documentation/filesystems/configfs.rst-303-tree to reflect the new item.
--
Documentation/filesystems/configfs.rst=313=upon item allocation.  If a subsystem has no work to do, it may omit
Documentation/filesystems/configfs.rst:314:the ct_group_ops->drop_item() method, and configfs will call
Documentation/filesystems/configfs.rst-315-config_item_put() on the item on behalf of the subsystem.
--
Documentation/filesystems/configfs.rst=317=Important:
Documentation/filesystems/configfs.rst-318-   drop_item() is void, and as such cannot fail.  When rmdir(2)
Documentation/filesystems/configfs.rst:319:   is called, configfs WILL remove the item from the filesystem tree
Documentation/filesystems/configfs.rst-320-   (assuming that it has no children to keep it busy).  The subsystem is
--
Documentation/filesystems/configfs.rst-323-   for the item to actually disappear from the subsystem's usage.  But it
Documentation/filesystems/configfs.rst:324:   is gone from configfs.
Documentation/filesystems/configfs.rst-325-
--
Documentation/filesystems/configfs.rst=330=ct_group_ops->disconnect_notify() method.  The method is called after
Documentation/filesystems/configfs.rst:331:configfs has removed the item from the filesystem view but before the
Documentation/filesystems/configfs.rst-332-item is removed from its parent group.  Like drop_item(),
--
Documentation/filesystems/configfs.rst=336=A config_group cannot be removed while it still has child items.  This
Documentation/filesystems/configfs.rst:337:is implemented in the configfs rmdir(2) code.  ->drop_item() will not be
Documentation/filesystems/configfs.rst-338-called, as the item has not been dropped.  rmdir(2) will fail, as the
Documentation/filesystems/configfs.rst=339=directory is not empty.
Documentation/filesystems/configfs.rst-340-
Documentation/filesystems/configfs.rst:341:struct configfs_subsystem
Documentation/filesystems/configfs.rst-342-=========================
--
Documentation/filesystems/configfs.rst=344=A subsystem must register itself, usually at module_init time.  This
Documentation/filesystems/configfs.rst:345:tells configfs to make the subsystem appear in the file tree::
Documentation/filesystems/configfs.rst-346-
Documentation/filesystems/configfs.rst:347:	struct configfs_subsystem {
Documentation/filesystems/configfs.rst-348-		struct config_group	su_group;
--
Documentation/filesystems/configfs.rst-351-
Documentation/filesystems/configfs.rst:352:	int configfs_register_subsystem(struct configfs_subsystem *subsys);
Documentation/filesystems/configfs.rst:353:	void configfs_unregister_subsystem(struct configfs_subsystem *subsys);
Documentation/filesystems/configfs.rst-354-
--
Documentation/filesystems/configfs.rst=357=this group is usually defined statically.  Before calling
Documentation/filesystems/configfs.rst:358:configfs_register_subsystem(), the subsystem must have initialized the
Documentation/filesystems/configfs.rst-359-group via the usual group _init() functions, and it must also have
--
Documentation/filesystems/configfs.rst=362=When the register call returns, the subsystem is live, and it
Documentation/filesystems/configfs.rst:363:will be visible via configfs.  At that point, mkdir(2) can be called and
Documentation/filesystems/configfs.rst-364-the subsystem must be ready for it.
--
Documentation/filesystems/configfs.rst=370=subsystem/group and the simple_child item in
Documentation/filesystems/configfs.rst:371:samples/configfs/configfs_sample.c. It shows a trivial object displaying
Documentation/filesystems/configfs.rst-372-and storing an attribute, and a simple group creating and destroying
--
Documentation/filesystems/configfs.rst=375=Hierarchy Navigation and the Subsystem Mutex
--
Documentation/filesystems/configfs.rst-377-
Documentation/filesystems/configfs.rst:378:There is an extra bonus that configfs provides.  The config_groups and
Documentation/filesystems/configfs.rst-379-config_items are arranged in a hierarchy due to the fact that they
--
Documentation/filesystems/configfs.rst=385=A subsystem can navigate the cg_children list and the ci_parent pointer
Documentation/filesystems/configfs.rst:386:to see the tree created by the subsystem.  This can race with configfs'
Documentation/filesystems/configfs.rst:387:management of the hierarchy, so configfs uses the subsystem mutex to
Documentation/filesystems/configfs.rst-388-protect modifications.  Whenever a subsystem wants to navigate the
--
Documentation/filesystems/configfs.rst=395=yet been unlinked.  This means that an item's ci_parent pointer will
Documentation/filesystems/configfs.rst:396:never be NULL while the item is in configfs, and that an item will only
Documentation/filesystems/configfs.rst-397-be in its parent's cg_children list for the same duration.  This allows
--
Documentation/filesystems/configfs.rst=401=Item Aggregation Via symlink(2)
--
Documentation/filesystems/configfs.rst-403-
Documentation/filesystems/configfs.rst:404:configfs provides a simple group via the group->item parent/child
Documentation/filesystems/configfs.rst-405-relationship.  Often, however, a larger environment requires aggregation
--
Documentation/filesystems/configfs.rst=411=symlink(2) may be called with the config_item as the source of the link.
Documentation/filesystems/configfs.rst:412:These links are only allowed between configfs config_items.  Any
Documentation/filesystems/configfs.rst:413:symlink(2) attempt outside the configfs filesystem will be denied.
Documentation/filesystems/configfs.rst-414-
--
Documentation/filesystems/configfs.rst=427=can it be removed while an item links to it.  Dangling symlinks are not
Documentation/filesystems/configfs.rst:428:allowed in configfs.
Documentation/filesystems/configfs.rst-429-
--
Documentation/filesystems/configfs.rst=437=Rather than have a group where some items behave differently than
Documentation/filesystems/configfs.rst:438:others, configfs provides a method whereby one or many subgroups are
Documentation/filesystems/configfs.rst-439-automatically created inside the parent at its creation.  Thus,
--
Documentation/filesystems/configfs.rst=447=other child groups can be created on the parent group directly.
Documentation/filesystems/configfs.rst-448-
Documentation/filesystems/configfs.rst:449:A configfs subsystem specifies default groups by adding them using the
Documentation/filesystems/configfs.rst:450:configfs_add_default_group() function to the parent config_group
Documentation/filesystems/configfs.rst:451:structure.  Each added group is populated in the configfs tree at the same
Documentation/filesystems/configfs.rst-452-time as the parent group.  Similarly, they are removed at the same time
--
Documentation/filesystems/configfs.rst=461=Dependent Subsystems
--
Documentation/filesystems/configfs.rst-463-
Documentation/filesystems/configfs.rst:464:Sometimes other drivers depend on particular configfs items.  For
Documentation/filesystems/configfs.rst-465-example, ocfs2 mounts depend on a heartbeat region item.  If that
--
Documentation/filesystems/configfs.rst=467=readonly.  Not happy.
Documentation/filesystems/configfs.rst-468-
Documentation/filesystems/configfs.rst:469:configfs provides two additional API calls: configfs_depend_item() and
Documentation/filesystems/configfs.rst:470:configfs_undepend_item().  A client driver can call
Documentation/filesystems/configfs.rst:471:configfs_depend_item() on an existing item to tell configfs that it is
Documentation/filesystems/configfs.rst:472:depended on.  configfs will then return -EBUSY from rmdir(2) for that
Documentation/filesystems/configfs.rst-473-item.  When the item is no longer depended on, the client driver calls
Documentation/filesystems/configfs.rst:474:configfs_undepend_item() on it.
Documentation/filesystems/configfs.rst-475-
Documentation/filesystems/configfs.rst:476:These API cannot be called underneath any configfs callbacks, as
Documentation/filesystems/configfs.rst-477-they will conflict.  They can block and allocate.  A client driver
--
Documentation/filesystems/configfs.rst=483=heartbeat code.  Inside the heartbeat code, the region item is looked
Documentation/filesystems/configfs.rst:484:up.  Here, the heartbeat code calls configfs_depend_item().  If it
Documentation/filesystems/configfs.rst-485-succeeds, then heartbeat knows the region is safe to give to ocfs2.

]

300/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 48897
							output: 28
							thoughts: 89
						

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

**Diving into configfs Implementation Details**

Okay, so the `Documentation/filesystems/configfs.rst` document is really well written and provides a great overview. Now I want to get into the nitty-gritty and see how this thing *actually* works, specifically the mechanics of attribute handling. My first instinct is to check out the sample code, `samples/configfs/configfs_sample.c`, to see if it demonstrates any attribute definitions or manipulations. However, before I get too deep into the sample code, I need to know how attributes are being locked. I need to make sure I am fully aware of concurrency issues, which could bite me later if I'm not careful. My next step is to see if there's any explicit documentation or discussion of configfs attribute locking, either in the commit logs or maybe buried in comments within `fs/configfs/file.c`. That's likely where the core implementation details regarding locking would reside.



301/4 2026/09/28 18:26 tool git-log
0m Args:
map[Count:5 PathPrefix:fs/configfs/file.c]

Results:
map[Output:1b27d11b17b7 configfs: replace __get_free_pages() with kzalloc()
bf4afc53b77a Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
f7f78098690d configfs: Constify ct_item_ops in struct config_item_type
769f52676756 configfs: restore the kernel v5.13 text attribute write behavior
]

302/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 49386
							output: 27
							thoughts: 34
						

Thoughts:
Here's a summary of my thought process, as requested:

**Digging into the `configfs_write_iter` History**

Okay, I need to understand the evolution of this `configfs_write_iter` function. I remember we had some issues there a while back. Let's start by looking back at the commit history. Specifically, I'm going to start with commit `769f52676756` and work backwards. That should give me a good baseline to see how the code has changed over time. I'm expecting this will allow me to track down the root cause of some previous incidents, or perhaps uncover a subtle regression introduced somewhere down the line. I'll need to pay close attention to the context of the changes, not just the code itself, to understand the intent and rationale behind each modification.



303/4 2026/09/28 18:26 tool git-show
0m Args:
map[Commit:769f52676756]

Results:
map[Output:commit 769f52676756b8c5feb302d2d95af59577fc69ec
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Aug 4 21:35:01 2021 -0700

    configfs: restore the kernel v5.13 text attribute write behavior
    
    Instead of appending new text attribute data at the offset specified by the
    write() system call, only pass the newly written data to the .store()
    callback.
    
    Reported-by: Bodo Stroesser <bostroesser@gmail.com>
    Tested-by: Bodo Stroesser <bostroesser@gmail.com>
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Christoph Hellwig <hch@lst.de>

diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index 5a0be9985bae..0ad32150611e 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -177,28 +177,22 @@ static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to)
 	return retval;
 }
 
-/* Fill [buffer, buffer + pos) with data coming from @from. */
-static int fill_write_buffer(struct configfs_buffer *buffer, loff_t pos,
+/* Fill @buffer with data coming from @from. */
+static int fill_write_buffer(struct configfs_buffer *buffer,
 			     struct iov_iter *from)
 {
-	loff_t to_copy;
 	int copied;
-	u8 *to;
 
 	if (!buffer->page)
 		buffer->page = (char *)__get_free_pages(GFP_KERNEL, 0);
 	if (!buffer->page)
 		return -ENOMEM;
 
-	to_copy = SIMPLE_ATTR_SIZE - 1 - pos;
-	if (to_copy <= 0)
-		return 0;
-	to = buffer->page + pos;
-	copied = copy_from_iter(to, to_copy, from);
+	copied = copy_from_iter(buffer->page, SIMPLE_ATTR_SIZE - 1, from);
 	buffer->needs_read_fill = 1;
 	/* if buf is assumed to contain a string, terminate it by \0,
 	 * so e.g. sscanf() can scan the string easily */
-	to[copied] = 0;
+	buffer->page[copied] = 0;
 	return copied ? : -EFAULT;
 }
 
@@ -227,10 +221,10 @@ static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from)
 {
 	struct file *file = iocb->ki_filp;
 	struct configfs_buffer *buffer = file->private_data;
-	ssize_t len;
+	int len;
 
 	mutex_lock(&buffer->mutex);
-	len = fill_write_buffer(buffer, iocb->ki_pos, from);
+	len = fill_write_buffer(buffer, from);
 	if (len > 0)
 		len = flush_write_buffer(file, buffer, len);
 	if (len > 0)
]

304/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 50532
							output: 29
							thoughts: 783
						

Thoughts:
**Analyzing Concurrency in Configfs Write Operations**

Okay, let's break down this potential concurrency issue in configfs, specifically related to how writes are handled compared to kernfs/sysfs. The key question is whether or not there's proper serialization during write operations, particularly when multiple threads or processes interact with the same configuration item.

In kernfs/sysfs, I need to remember the details of active reference mechanisms, and their effect on serializing store calls. But in configfs, my focus is on the `configfs_buffer` structure and its associated mutex. Each `open` call creates a new `configfs_buffer`, initializes a mutex for it, and associates it with the file descriptor. The `write` call then locks this mutex before invoking the underlying `store` function.

The crucial point is that this mutex, `buffer->mutex`, only serializes writes originating from the *same* file descriptor. Two separate file descriptors, even if they point to the *same* configfs item, will have *different* `configfs_buffer` instances and therefore *separate* mutexes.

So, if Thread 1 opens `/config/cluster/.../heartbeat/.../dev` as `file1` and Thread 2 opens the same path as `file2`, and then both threads perform writes, they'll each lock their own mutex. That means they could be calling the `store` function concurrently, on the *same* `config_item`, which points to the same underlying `o2hb_region`! This is definitely a problem.

Wait a minute, can two threads *sharing* a single file descriptor even race? No, because they'd be serialized by `buffer->mutex`. But distinct opens, even from the same process, create distinct `struct file`s, and each has its own buffer and mutex.

Now, where else could there be locking? I need to check at the item level, directory level, and inode level. Are `dir->d_inode` or `file->f_inode` locked in `vfs_write`? No, because `vfs_write` only calls `file_start_write(file)`, which boils down to `sb_start_write`. This is not the `inode_lock`. Regular file systems like ext4 and xfs *might* take the `inode_lock` within their `write_iter` implementation if needed, but I don't see it in the configfs case.

Does `configfs_write_iter` take `inode_lock`? No! It *only* locks the `buffer->mutex`, confirming the race. And the shared read lock `down_read(&frag->frag_sem)` doesn't serialize multiple readers either. So, the picture is clear.

Is there any other lock in the whole subsystem? I must check the structures like `struct configfs_dirent` and `struct config_item` closely and look in `fs/configfs/` to see if there is any other locking going on. This needs a deeper dive into the code.



305/4 2026/09/28 18:26 tool grepper
0m Args:
map[Expression:struct configfs_fragment PathPrefix:fs/configfs]

Results:
map[Output:fs/configfs/configfs_internal.h-20-
fs/configfs/configfs_internal.h:21:struct configfs_fragment {
fs/configfs/configfs_internal.h-22-	atomic_t frag_count;
--
fs/configfs/configfs_internal.h-26-
fs/configfs/configfs_internal.h:27:void put_fragment(struct configfs_fragment *);
fs/configfs/configfs_internal.h:28:struct configfs_fragment *get_fragment(struct configfs_fragment *);
fs/configfs/configfs_internal.h-29-
fs/configfs/configfs_internal.h=30=struct configfs_dirent {
--
fs/configfs/configfs_internal.h-43-#endif
fs/configfs/configfs_internal.h:44:	struct configfs_fragment *s_frag;
fs/configfs/configfs_internal.h-45-};
--
fs/configfs/configfs_internal.h=74=extern int configfs_make_dirent(struct configfs_dirent *, struct dentry *,
fs/configfs/configfs_internal.h:75:				void *, umode_t, int, struct configfs_fragment *);
fs/configfs/configfs_internal.h-76-extern int configfs_dirent_is_ready(struct configfs_dirent *);
--
fs/configfs/dir.c=152=configfs_adjust_dir_dirent_depth_after_populate(struct configfs_dirent *sd)
--
fs/configfs/dir.c-157-
fs/configfs/dir.c:158:static struct configfs_fragment *new_fragment(void)
fs/configfs/dir.c-159-{
fs/configfs/dir.c:160:	struct configfs_fragment *p;
fs/configfs/dir.c-161-
fs/configfs/dir.c:162:	p = kmalloc_obj(struct configfs_fragment);
fs/configfs/dir.c-163-	if (p) {
--
fs/configfs/dir.c-170-
fs/configfs/dir.c:171:void put_fragment(struct configfs_fragment *frag)
fs/configfs/dir.c-172-{
--
fs/configfs/dir.c-176-
fs/configfs/dir.c:177:struct configfs_fragment *get_fragment(struct configfs_fragment *frag)
fs/configfs/dir.c-178-{
--
fs/configfs/dir.c=187=static struct configfs_dirent *configfs_new_dirent(struct configfs_dirent *parent_sd,
fs/configfs/dir.c-188-						   void *element, int type,
fs/configfs/dir.c:189:						   struct configfs_fragment *frag)
fs/configfs/dir.c-190-{
--
fs/configfs/dir.c=253=int configfs_make_dirent(struct configfs_dirent * parent_sd,
fs/configfs/dir.c-254-			 struct dentry * dentry, void * element,
fs/configfs/dir.c:255:			 umode_t mode, int type, struct configfs_fragment *frag)
fs/configfs/dir.c-256-{
--
fs/configfs/dir.c=293=static int configfs_create_dir(struct config_item *item, struct dentry *dentry,
fs/configfs/dir.c:294:				struct configfs_fragment *frag)
fs/configfs/dir.c-295-{
--
fs/configfs/dir.c=668=static int configfs_attach_group(struct config_item *item,
fs/configfs/dir.c-669-				 struct dentry *dentry,
fs/configfs/dir.c:670:				 struct configfs_fragment *frag);
fs/configfs/dir.c-671-static void configfs_detach_group(struct dentry *dentry);
--
fs/configfs/dir.c=712=static int create_default_group(struct dentry *parent,
fs/configfs/dir.c-713-				struct config_group *group,
fs/configfs/dir.c:714:				struct configfs_fragment *frag)
fs/configfs/dir.c-715-{
--
fs/configfs/dir.c=743=static int populate_groups(struct config_group *group,
fs/configfs/dir.c:744:			   struct configfs_fragment *frag)
fs/configfs/dir.c-745-{
--
fs/configfs/dir.c=866=static int configfs_attach_item(struct config_item *item,
fs/configfs/dir.c-867-				struct dentry *dentry,
fs/configfs/dir.c:868:				struct configfs_fragment *frag)
fs/configfs/dir.c-869-{
--
fs/configfs/dir.c=900=static int configfs_attach_group(struct config_item *item,
fs/configfs/dir.c-901-				 struct dentry *dentry,
fs/configfs/dir.c:902:				 struct configfs_fragment *frag)
fs/configfs/dir.c-903-{
--
fs/configfs/dir.c=1298=static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
--
fs/configfs/dir.c-1309-	struct module *subsys_owner = NULL, *new_item_owner = NULL;
fs/configfs/dir.c:1310:	struct configfs_fragment *frag;
fs/configfs/dir.c-1311-	struct name_snapshot n;
--
fs/configfs/dir.c=1478=static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
--
fs/configfs/dir.c-1483-	struct configfs_dirent *sd;
fs/configfs/dir.c:1484:	struct configfs_fragment *frag;
fs/configfs/dir.c-1485-	struct module *subsys_owner = NULL, *dead_item_owner = NULL;
--
fs/configfs/dir.c=1760=int configfs_register_group(struct config_group *parent_group,
--
fs/configfs/dir.c-1764-	struct dentry *parent;
fs/configfs/dir.c:1765:	struct configfs_fragment *frag;
fs/configfs/dir.c-1766-	int ret;
--
fs/configfs/dir.c=1805=void configfs_unregister_group(struct config_group *group)
--
fs/configfs/dir.c-1810-	struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c:1811:	struct configfs_fragment *frag = sd->s_frag;
fs/configfs/dir.c-1812-
--
fs/configfs/dir.c=1881=int configfs_register_subsystem(struct configfs_subsystem *subsys)
--
fs/configfs/dir.c-1887-	struct configfs_dirent *sd;
fs/configfs/dir.c:1888:	struct configfs_fragment *frag;
fs/configfs/dir.c-1889-
--
fs/configfs/dir.c=1943=void configfs_unregister_subsystem(struct configfs_subsystem *subsys)
--
fs/configfs/dir.c-1948-	struct configfs_dirent *sd = dentry->d_fsdata;
fs/configfs/dir.c:1949:	struct configfs_fragment *frag = sd->s_frag;
fs/configfs/dir.c-1950-
--
fs/configfs/file.c=29=struct configfs_buffer {
--
fs/configfs/file.c-48-
fs/configfs/file.c:49:static inline struct configfs_fragment *to_frag(struct file *file)
fs/configfs/file.c-50-{
--
fs/configfs/file.c=56=static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer)
fs/configfs/file.c-57-{
fs/configfs/file.c:58:	struct configfs_fragment *frag = to_frag(file);
fs/configfs/file.c-59-	ssize_t count = -ENOENT;
--
fs/configfs/file.c=106=static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to)
--
fs/configfs/file.c-108-	struct file *file = iocb->ki_filp;
fs/configfs/file.c:109:	struct configfs_fragment *frag = to_frag(file);
fs/configfs/file.c-110-	struct configfs_buffer *buffer = file->private_data;
--
fs/configfs/file.c=200=flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count)
fs/configfs/file.c-201-{
fs/configfs/file.c:202:	struct configfs_fragment *frag = to_frag(file);
fs/configfs/file.c-203-	int res = -ENOENT;
--
fs/configfs/file.c=290=static int __configfs_open_file(struct inode *inode, struct file *file, int type)
--
fs/configfs/file.c-292-	struct dentry *dentry = file->f_path.dentry;
fs/configfs/file.c:293:	struct configfs_fragment *frag = to_frag(file);
fs/configfs/file.c-294-	struct configfs_attribute *attr;
--
fs/configfs/file.c=400=static int configfs_release_bin_file(struct inode *inode, struct file *file)
--
fs/configfs/file.c-404-	if (buffer->write_in_progress) {
fs/configfs/file.c:405:		struct configfs_fragment *frag = to_frag(file);
fs/configfs/file.c-406-
]

306/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 54718
							output: 45
							thoughts: 2635
						

Thoughts:
**Concurrency Analysis of `o2hb_region_dev_store` in OCFS2**

Okay, so I've been digging into this `configfs` and OCFS2 code, and the potential concurrency issues are pretty glaring. Let's break down my thought process.

First, I examined `fs/configfs/file.c`.  I see that the write path (`configfs_write_iter`) uses a per-file (`struct file`) mutex (`buffer->mutex`) and a read lock (`frag->frag_sem`). This means that concurrent writes *to the same configfs attribute file* are serialized, but only if they are using the *same* file descriptor! Different file descriptors to the same underlying configfs attribute are not serialized with respect to one another, and multiple writers can proceed in parallel, *even* to the *same* configfs attribute file, through the `store` callback.

Now, let's zoom in on `o2hb_region_dev_store`. My concern is whether it provides any internal locking to protect itself from concurrent calls.  I see a read of `reg->hr_bdev_file`, followed by a conditional block device open, and subsequent calls to `o2hb_map_slot_data` and `o2hb_populate_slot_data`, etc. Crucially, *there is no explicit locking* around these operations at the `o2hb_region_dev_store` level!  This is a huge red flag.

My primary concern here is the race condition. If multiple threads call `o2hb_region_dev_store` concurrently on the same `config_item` (i.e. the same `reg`), they could both pass the initial `if (reg->hr_bdev_file)` check because it is not protected.  They would then each open a block device file.  The very next thing that happens is a potential race: whoever calls `bdev_file_open_by_dev` *first* overwrites the contents of the `reg->hr_bdev_file` field, leaving the other one leaked.

Worse, both threads could then call `o2hb_map_slot_data`.  Inside `o2hb_map_slot_data` are calls to `kmalloc`, `kzalloc_objs`, and `alloc_page`. Thus, memory could be allocated twice or freed twice, creating a memory leak or double free condition, respectively. This has the potential to crash the system with `VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)`.

Let's trace this scenario.
1.	Both threads check `reg->hr_bdev_file`, which is NULL at the start.
2.	Both threads call `bdev_file_open_by_dev`.
3.	T1 writes `reg->hr_bdev_file = ...;`
4.	T2 writes `reg->hr_bdev_file = ...;` This overwrites T1's pointer! T1's `struct file` reference is lost/leaked or prematurely freed.
5.	Both threads call `o2hb_map_slot_data` which could lead to double allocation of memory/double free as outlined above.

I now need to see what `o2hb_init_region_params(reg)` does, and what is its role.



307/4 2026/09/28 18:26 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/cluster/heartbeat.c Name:o2hb_init_region_params]

Results:
map[SourceCode:1759:	static void o2hb_init_region_params(struct o2hb_region *reg)
1760:	{
1761:		reg->hr_slots_per_page = PAGE_SIZE >> reg->hr_block_bits;
1762:		reg->hr_timeout_ms = O2HB_REGION_TIMEOUT_MS;
1763:	
1764:		mlog(ML_HEARTBEAT, "hr_start_block = %llu, hr_blocks = %u\n",
1765:		     reg->hr_start_block, reg->hr_blocks);
1766:		mlog(ML_HEARTBEAT, "hr_block_bytes = %u, hr_block_bits = %u\n",
1767:		     reg->hr_block_bytes, reg->hr_block_bits);
1768:		mlog(ML_HEARTBEAT, "hr_timeout_ms = %u\n", reg->hr_timeout_ms);
1769:		mlog(ML_HEARTBEAT, "dead threshold = %u\n", o2hb_dead_threshold);
1770:	}
 SourceFile:fs/ocfs2/cluster/heartbeat.c]

308/4 2026/09/28 18:26 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 58469
							output: 35
							thoughts: 876
						

Thoughts:
**Analyzing Concurrent Execution of `o2hb_map_slot_data` and Potential Issues**

Okay, let's break down this concurrency scenario. My immediate concern is what happens when two threads, T1 and T2, try to execute `o2hb_map_slot_data(reg)` simultaneously. The core of this function involves allocating memory for `reg->hr_tmp_block`, `reg->hr_slots`, and `reg->hr_slot_data`. This is where things get tricky.

In *Case A*, the critical path is the overwriting of allocated memory. If T1 allocates all three structures, and then T2 comes along and does the same, T2 overwrites the pointers `reg->hr_tmp_block`, `reg->hr_slots`, and `reg->hr_slot_data`. The memory allocated by T1 is essentially leaked, or partially overwritten depending on the timings, which is a classic race condition and a memory management disaster. This is textbook stuff.

Now, *Case B* is even more interesting, dealing with allocation failures or early exit points. Let's say T1 makes it through `o2hb_map_slot_data` and allocates `reg->hr_slot_data` successfully. If T2 fails during allocation (e.g., `alloc_page` fails), or even fails later within `o2hb_populate_slot_data`, triggering error handling, the code executes a jump to `out:` to clean up.  Even worse, T1 and T2 could race, where T1 is inside `o2hb_populate_slot_data(reg)`, setting up bios with pages from `reg->hr_slot_data` and waiting for I/O. During or before this wait, T2 hits an error, or T1 itself encounters an error and jumps to `out:`.

At this `out:` label, `o2hb_unmap_slot_data(reg)` is called to clean up. But look at this function:

```c
static void o2hb_unmap_slot_data(struct o2hb_region *reg)
{
	int i;
	struct page *page;

	if (reg->hr_slot_data) {
		for (i = 0; i < reg->hr_num_pages; i++) {
			page = reg->hr_slot_data[i];
			if (page) {
				__free_page(page);
				reg->hr_slot_data[i] = NULL;
			}
		}
		kfree(reg->hr_slot_data);
		reg->hr_slot_data = NULL;
	}

	kfree(reg->hr_slots);
	reg->hr_slots = NULL;

	kfree(reg->hr_tmp_block);
	reg->hr_tmp_block = NULL;
}
```

The really nasty scenario here is if two threads *both* execute `o2hb_unmap_slot_data(reg)` concurrently. Both threads check `if (reg->hr_slot_data)`. If both proceed, they'll both read `page = reg->hr_slot_data[i]` and then, here's the kicker, both call `__free_page(page)`!  This is a *double free* situation, and that's practically a guaranteed kernel panic, or at the very least, unpredictable memory corruption. We need to understand what `__free_page` does at the kernel level. Let me quickly look up the definition of `__free_page`.



309/4 2026/09/28 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/page_alloc.c Name:__free_pages]

Results:
map[SourceCode:5545:	/**
5546:	 * __free_pages - Free pages allocated with alloc_pages().
5547:	 * @page: The page pointer returned from alloc_pages().
5548:	 * @order: The order of the allocation.
5549:	 *
5550:	 * This function can free multi-page allocations that are not compound
5551:	 * pages.  It does not check that the @order passed in matches that of
5552:	 * the allocation, so it is easy to leak memory.  Freeing more memory
5553:	 * than was allocated will probably emit a warning.
5554:	 *
5555:	 * If the last reference to this page is speculative, it will be released
5556:	 * by put_page() which only frees the first page of a non-compound
5557:	 * allocation.  To prevent the remaining pages from being leaked, we free
5558:	 * the subsequent pages here.  If you want to use the page's reference
5559:	 * count to decide when to free the allocation, you should allocate a
5560:	 * compound page, and use put_page() instead of __free_pages().
5561:	 *
5562:	 * Context: May be called in interrupt context or while holding a normal
5563:	 * spinlock, but not in NMI context or while holding a raw spinlock.
5564:	 */
5565:	void __free_pages(struct page *page, unsigned int order)
5566:	{
5567:		___free_pages(page, order, FPI_NONE);
5568:	}
 SourceFile:mm/page_alloc.c]

310/4 2026/09/28 18:27 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 60616
							output: 35
							thoughts: 20
						

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

**Analyzing `___free_pages` in `mm/page_alloc.c`**

Right, so I need to understand what's happening with page freeing. The kernel's memory management is always a critical area, and `___free_pages` in `mm/page_alloc.c` is clearly the core function for putting pages back into the system's available pool. My initial thought is to figure out the exact mechanics of this.

First, I need to remind myself how this function works in the context of the larger allocator. What are the common scenarios where `___free_pages` is called? Is it from `kfree()`, direct page freeing, or something else entirely? I should probably identify its callers.

Then, I need to look at what data structures are being modified. The buddy allocator's free lists are obviously involved, but are any other metadata updated simultaneously? Think about per-node page lists, zones, and NUMA considerations – I need to be sure I understand the locking mechanisms involved to prevent any races or corruption.

I'll be specifically watching for anything that might lead to fragmentation, page reclaim issues, or potential deadlocks. I need to be thinking about all the ways this function could be abused, or become a bottleneck. What kind of instrumentation is in place for performance monitoring and debugging?

This will be a good starting point to look at how we are managing memory.



311/4 2026/09/28 18:27 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/page_alloc.c Name:___free_pages]

Results:
map[SourceCode:5520:	static void ___free_pages(struct page *page, unsigned int order,
5521:				  fpi_t fpi_flags)
5522:	{
5523:		/* get PageHead before we drop reference */
5524:		int head = PageHead(page);
5525:		/* get alloc tag in case the page is released by others */
5526:		struct alloc_tag *tag = pgalloc_tag_get(page);
5527:	
5528:		if (put_page_testzero(page))
5529:			__free_frozen_pages(page, order, fpi_flags);
5530:		else if (!head) {
5531:			pgalloc_tag_sub_pages(tag, (1 << order) - 1);
5532:			while (order-- > 0) {
5533:				/*
5534:				 * The "tail" pages of this non-compound high-order
5535:				 * page will have no code tags, so to avoid warnings
5536:				 * mark them as empty.
5537:				 */
5538:				clear_page_tag_ref(page + (1 << order));
5539:				__free_frozen_pages(page + (1 << order), order,
5540:						    fpi_flags);
5541:			}
5542:		}
5543:	}
 SourceFile:mm/page_alloc.c]

312/4 2026/09/28 18:27 llm codeexpert
2m Model:
gemini-3.8-flash

Error:
log-in to see details

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)