ID Workflow Result Correct Bug Created Started Finished Revision
c86e9953 patching ❓ possible deadlock in ocfs2_evict_inode 2026/05/27 21:27 2026/05/29 16:18 2026/05/29 17:30 6b4a8443
Agent: prod-syz-agent-5
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle possible deadlock in ocfs2_evict_inode
CrashLogID 5822425209503744
CrashReportID 6464015141699584
KernelCommit dd6c438c3e64a5ff0b5d7e78f7f9be547803ef1b
KernelConfig
Show (281096 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 syzkaller Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50)"
CONFIG_GCC_VERSION=0
CONFIG_CC_IS_CLANG=y
CONFIG_CLANG_VERSION=210108
CONFIG_AS_IS_LLVM=y
CONFIG_AS_VERSION=210108
CONFIG_LD_VERSION=0
CONFIG_LD_IS_LLD=y
CONFIG_LLD_VERSION=210108
CONFIG_RUSTC_VERSION=109101
CONFIG_RUST_IS_AVAILABLE=y
CONFIG_RUSTC_LLVM_VERSION=210102
CONFIG_RUSTC_LLVM_MAJOR_VERSION=21
CONFIG_RUSTC_CLANG_LLVM_COMPATIBLE=y
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_CC_HAS_COUNTED_BY=y
CONFIG_CC_HAS_BROKEN_COUNTED_BY_REF=y
CONFIG_CC_HAS_MULTIDIMENSIONAL_NONSTRING=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_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED_INLINE=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_HRTIMER_REARM_DEFERRED=y
CONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_CONTEXT_TRACKING_IDLE=y

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

CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y

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

CONFIG_PREEMPT_BUILD=y
CONFIG_ARCH_HAS_PREEMPT_LAZY=y
CONFIG_PREEMPT=y
# CONFIG_PREEMPT_LAZY is not set
# CONFIG_PREEMPT_RT is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_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"
CONFIG_CC_MS_EXTENSIONS="-fms-extensions"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_NUMA_BALANCING=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_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 is not set
# CONFIG_RSEQ_STATS is not set
# CONFIG_RSEQ_DEBUG_DEFAULT_ENABLE is not set
CONFIG_CACHESTAT_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_GUEST_PERF_EVENTS=y
CONFIG_PERF_GUEST_MEDIATED_PMU=y

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

CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
# CONFIG_RUST is not set
CONFIG_TRACEPOINTS=y

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

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

CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=28
CONFIG_ARCH_MMAP_RND_BITS_MAX=32
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_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_BROADCAST_TLB_FLUSH=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_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_SLS=y
CONFIG_CC_HAS_RETURN_THUNK=y
CONFIG_CC_HAS_ENTRY_PADDING=y
CONFIG_CC_HAS_KCFI_ARITY=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_PREFIX_SYMBOLS=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_DYNAMIC_EPP is not set
# 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_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 is not set
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_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_HAS_LTO_CLANG=y
CONFIG_LTO_NONE=y
# CONFIG_LTO_CLANG_FULL is not set
# CONFIG_LTO_CLANG_THIN is not set
CONFIG_ARCH_SUPPORTS_AUTOFDO_CLANG=y
CONFIG_AUTOFDO_CLANG=y
CONFIG_ARCH_SUPPORTS_PROPELLER_CLANG=y
CONFIG_PROPELLER_CLANG=y
CONFIG_ARCH_SUPPORTS_CFI=y
# CONFIG_CFI is not set
CONFIG_HAVE_CFI_ICALL_NORMALIZE_INTEGERS=y
CONFIG_HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC=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_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

#
# 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_RANDOM_KMALLOC_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=y
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_READ_ONLY_THP_FOR_FS=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_TLS_TOE=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_CLIP=y
# CONFIG_ATM_CLIP_NO_ICMP is not set
CONFIG_ATM_LANE=y
CONFIG_ATM_MPOA=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_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_ATALK is not set
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_HAMRADIO=y

#
# Packet Radio protocols
#
CONFIG_AX25=y
CONFIG_AX25_DAMA_SLAVE=y
CONFIG_NETROM=y
CONFIG_ROSE=y

#
# AX.25 network device drivers
#
CONFIG_MKISS=y
CONFIG_6PACK=y
CONFIG_BPQETHER=y
# CONFIG_BAYCOM_SER_FDX is not set
# CONFIG_BAYCOM_SER_HDX is not set
# CONFIG_BAYCOM_PAR is not set
# CONFIG_YAM is not set
# end of AX.25 network device drivers

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_HCIDTL1 is not set
# CONFIG_BT_HCIBT3C is not set
# CONFIG_BT_HCIBLUECARD is not set
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_CAIF=y
CONFIG_CAIF_DEBUG=y
CONFIG_CAIF_NETDEV=y
CONFIG_CAIF_USB=y
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_PCIE_BUS_TUNE_OFF is not set
CONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER 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 is not set
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_SENSORS_APDS990X 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_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_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_DUMMY is not set
CONFIG_ATM_TCP=y
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not set
# CONFIG_ATM_NICSTAR is not set
# CONFIG_ATM_IDT77252 is not set
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not set
# CONFIG_ATM_SOLOS is not set
CONFIG_CAIF_DRIVERS=y
CONFIG_CAIF_TTY=y
CONFIG_CAIF_VIRTIO=y

#
# 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_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_FUJITSU 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_PACKET_ENGINES 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_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_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_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
CONFIG_ISDN=y
CONFIG_ISDN_CAPI=y
CONFIG_MISDN=y
CONFIG_MISDN_DSP=y
CONFIG_MISDN_L1OIP=y

#
# mISDN hardware drivers
#
# CONFIG_MISDN_HFCPCI is not set
# CONFIG_MISDN_HFCMULTI is not set
CONFIG_MISDN_HFCUSB=y
# CONFIG_MISDN_AVMFRITZ is not set
# CONFIG_MISDN_SPEEDFAX is not set
# CONFIG_MISDN_INFINEON is not set
# CONFIG_MISDN_W6692 is not set
# CONFIG_MISDN_NETJET is not set

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

#
# 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_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_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_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_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_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_MACHZ_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_EZX_PCAP 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_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_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_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_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_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_HGA 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_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_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_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_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_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_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 is not set
# 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_CDNS_HOST=y
CONFIG_USB_CDNS3=y
CONFIG_USB_CDNS3_GADGET=y
CONFIG_USB_CDNS3_HOST=y
CONFIG_USB_CDNS3_PCI_WRAP=y
CONFIG_USB_CDNSP_PCI=y
CONFIG_USB_CDNSP_GADGET=y
CONFIG_USB_CDNSP_HOST=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_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_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_SELFTESTS is not set
CONFIG_DMABUF_HEAPS=y
CONFIG_DMABUF_HEAPS_SYSTEM=y
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_AD4030 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_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_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_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_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_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_INTERRUPT_TRIGGER is not set
# 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_AW96103 is not set
# end of Proximity and distance sensors

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

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

# CONFIG_NTB is not set
# CONFIG_PWM is not set

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

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

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

#
# 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_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_DEBUGFS_WRITE is not set
# CONFIG_USB4_DMA_TEST 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_ONLINE_SCRUB is not set
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_NILFS2_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
CONFIG_F2FS_FAULT_INJECTION=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not set
# CONFIG_F2FS_UNFAIR_RWSEM is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_ENCRYPTION_INLINE_CRYPT is not set
CONFIG_FS_VERITY=y
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
CONFIG_FUSE_FS=y
CONFIG_CUSE=y
CONFIG_VIRTIO_FS=y
CONFIG_FUSE_DAX=y
# CONFIG_FUSE_PASSTHROUGH is not set
# CONFIG_FUSE_IO_URING is not set
CONFIG_OVERLAY_FS=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
CONFIG_OVERLAY_FS_INDEX=y
# CONFIG_OVERLAY_FS_NFS_EXPORT is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
CONFIG_OVERLAY_FS_DEBUG=y

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

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

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

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

CONFIG_MISC_FILESYSTEMS=y
CONFIG_ORANGEFS_FS=y
CONFIG_ADFS_FS=y
# CONFIG_ADFS_FS_RW is not set
CONFIG_AFFS_FS=y
CONFIG_ECRYPT_FS=y
CONFIG_ECRYPT_FS_MESSAGING=y
CONFIG_HFS_FS=y
CONFIG_HFSPLUS_FS=y
CONFIG_BEFS_FS=y
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=y
CONFIG_EFS_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_FS_XATTR=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_RUBIN=y
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UBIFS_ATIME_SUPPORT=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y
# CONFIG_UBIFS_FS_AUTHENTICATION is not set
CONFIG_CRAMFS=y
CONFIG_CRAMFS_BLOCKDEV=y
CONFIG_CRAMFS_MTD=y
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_MULTI=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set
# CONFIG_SQUASHFS_COMPILE_DECOMP_SINGLE is not set
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI=y
# CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU is not set
# CONFIG_SQUASHFS_MOUNT_DECOMP_THREADS is not set
CONFIG_SQUASHFS_XATTR=y
# CONFIG_SQUASHFS_COMP_CACHE_FULL is not set
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_VXFS_FS=y
CONFIG_MINIX_FS=y
CONFIG_OMFS_FS=y
CONFIG_HPFS_FS=y
CONFIG_QNX4FS_FS=y
CONFIG_QNX6FS_FS=y
# CONFIG_QNX6FS_DEBUG is not set
CONFIG_ROMFS_FS=y
# CONFIG_ROMFS_BACKED_BY_BLOCK is not set
# CONFIG_ROMFS_BACKED_BY_MTD is not set
CONFIG_ROMFS_BACKED_BY_BOTH=y
CONFIG_ROMFS_ON_BLOCK=y
CONFIG_ROMFS_ON_MTD=y
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_PSTORE_BLK is not set
CONFIG_UFS_FS=y
CONFIG_UFS_FS_WRITE=y
# CONFIG_UFS_DEBUG is not set
CONFIG_EROFS_FS=y
# CONFIG_EROFS_FS_DEBUG is not set
CONFIG_EROFS_FS_XATTR=y
CONFIG_EROFS_FS_POSIX_ACL=y
CONFIG_EROFS_FS_SECURITY=y
# CONFIG_EROFS_FS_BACKED_BY_FILE is not set
CONFIG_EROFS_FS_ZIP=y
# CONFIG_EROFS_FS_ZIP_LZMA is not set
# CONFIG_EROFS_FS_ZIP_DEFLATE is not set
# CONFIG_EROFS_FS_ZIP_ZSTD is not set
# CONFIG_EROFS_FS_ZIP_ACCEL is not set
# CONFIG_EROFS_FS_ONDEMAND 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_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1 is not set
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA is not set
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2 is not set
# 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=y
# CONFIG_PROC_MEM_FORCE_PTRACE is not set
# CONFIG_PROC_MEM_NO_FORCE is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SELINUX is not set
# CONFIG_SECURITY_SMACK is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=64
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=32
CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER=y
CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y
CONFIG_SECURITY_APPARMOR=y
CONFIG_SECURITY_APPARMOR_DEBUG=y
CONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS=y
# CONFIG_SECURITY_APPARMOR_DEBUG_MESSAGES is not set
CONFIG_SECURITY_APPARMOR_INTROSPECT_POLICY=y
CONFIG_SECURITY_APPARMOR_HASH=y
CONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
# CONFIG_SECURITY_APPARMOR_EXPORT_BINARY is not set
# CONFIG_SECURITY_APPARMOR_PARANOID_LOAD is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_ADD_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
CONFIG_DEFAULT_SECURITY_APPARMOR=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,apparmor,bpf"

#
# Kernel hardening options
#

#
# Memory initialization
#
CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_BARE=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not set
CONFIG_INIT_STACK_ALL_ZERO=y
CONFIG_CC_HAS_SANCOV_STACK_DEPTH_CALLBACK=y
# CONFIG_KSTACK_ERASE is not set
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_CC_HAS_RANDSTRUCT=y
CONFIG_RANDSTRUCT_NONE=y
# CONFIG_RANDSTRUCT_FULL is not set
# 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=y
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 is not set
# 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_FCRYPT=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_PCBC=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_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
CONFIG_CRYPTO_DRBG_HASH=y
CONFIG_CRYPTO_DRBG_CTR=y
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKS=64
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKSIZE=32
CONFIG_CRYPTO_JITTERENTROPY_OSR=1
CONFIG_CRYPTO_KDF800108_CTR=y
CONFIG_CRYPTO_DF80090A=y
# end of Random number generation

#
# Userspace interface
#
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_RNG_CAVP is not set
CONFIG_CRYPTO_USER_API_AEAD=y
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
# end of Userspace interface

#
# 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_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=y
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_44 is not set
# 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_RAID6_PQ=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not set
CONFIG_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_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_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_BTF_TAG=y
CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
# CONFIG_GDB_SCRIPTS is not set
CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_HEADERS_INSTALL 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_ARRAY_BOUNDS=y
CONFIG_UBSAN_BOUNDS=y
CONFIG_UBSAN_ARRAY_BOUNDS=y
CONFIG_UBSAN_SHIFT=y
# 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
CONFIG_HAVE_KMSAN_COMPILER=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_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 5259475256082432
ReproOpts
Show (119 bytes)
{"repeat":true,"procs":1,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false,"tmpdir":true,"callcomments":true}
ReproSyzID 5299767216701440
SyzkallerCommit 1c2b929100f5465bbe3bebeba1caf612ec1631a0
TargetArch amd64
TargetOS linux

Current Stage: moderation
Next Stage: upstream

Reporting Stages and Comments:
Stage Source Reported At Ext ID Comments
moderation lore 2026/05/29 17:31 <008b2675-2e48-4150-a1ec-e68026253bad@mail.kernel.org>
3 Comments
  • syzbot@kernel.org (2026/05/29 17:33):
    A circular locking dependency can occur involving three OCFS2 system inode
    locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
    ORPHAN_DIR_SYSTEM_INODE.
    
    The circular dependency is formed by three separate code paths. First, in
    ocfs2_mknod(), the code reserves an inode by acquiring the
    INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
    acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
    ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
    extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
    function, if the inode was orphaned, it calls
    ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
    lock. The allocation context is only freed at the end of the function,
    meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
    ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
    ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
    recovery completion, and then it calls ocfs2_remove_inode(), which acquires
    the INODE_ALLOC_SYSTEM_INODE lock to free the inode.
    
    This patch breaks the cycle by addressing the dependency in
    ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
    only needed for the transaction that marks the extents as written. Once the
    transaction is committed and the allocation semaphore is released, these
    contexts are no longer needed. We can safely free them, which releases the
    EXTENT_ALLOC_SYSTEM_INODE lock, before calling
    ocfs2_del_inode_from_orphan(). This ensures that the
    EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
    ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
    dependency.
    
    Fixes: d647c5b2fbf8 ("ocfs2: split transactions in dio completion to avoid credit exhaustion")
    Assisted-by: Gemini:gemini-3.1-pro-preview syzbot
    Reported-by: syzbot+b225d4dfce6219600c42@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=b225d4dfce6219600c42
    Link: https://syzkaller.appspot.com/ai_job?id=c86e9953-fff6-40ca-b2f0-eff12366a33a
    To: "Joel Becker" <jlbec@evilplan.org>
    To: "Joseph Qi" <joseph.qi@linux.alibaba.com>
    To: "Mark Fasheh" <mark@fasheh.com>
    To: <ocfs2-devel@lists.linux.dev>
    Cc: <linux-kernel@vger.kernel.org>
    
    ---
    diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
    index 6ec198bda..4acdbb708 100644
    --- a/fs/ocfs2/aops.c
    +++ b/fs/ocfs2/aops.c
    @@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
     unlock:
     	up_write(&oi->ip_alloc_sem);
     
    +	if (data_ac) {
    +		ocfs2_free_alloc_context(data_ac);
    +		data_ac = NULL;
    +	}
    +	if (meta_ac) {
    +		ocfs2_free_alloc_context(meta_ac);
    +		meta_ac = NULL;
    +	}
    +
     	/* everything looks good, let's start the cleanup */
     	if (!ret && dwc->dw_orphaned) {
     		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
    @@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
     	ocfs2_inode_unlock(inode, 1);
     	brelse(di_bh);
     out:
    -	if (data_ac)
    -		ocfs2_free_alloc_context(data_ac);
    -	if (meta_ac)
    -		ocfs2_free_alloc_context(meta_ac);
     	ocfs2_run_deallocs(osb, &dealloc);
     	ocfs2_dio_free_write_ctx(inode, dwc);
     
    
    
    base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d
    -- 
    This is an AI-generated patch subject to moderation.
    Reply with '#syz upstream' to Sign-off the patch as a human author
    and send it to the upstream kernel mailing lists.
    Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    
    See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    You can comment on the patch as usual, syzbot will try to address
    the comments and send a new version of the patch if necessary.
    syzbot engineers can be reached at syzkaller@googlegroups.com.
    
  • nogikh@google.com (2026/06/11 10:19):
    On Fri, May 29, 2026 at 7:31β€―PM 'syzbot' via
    syzkaller-upstream-moderation
    <syzkaller-upstream-moderation@googlegroups.com> wrote:
    >
    > A circular locking dependency can occur involving three OCFS2 system inode
    > locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
    > ORPHAN_DIR_SYSTEM_INODE.
    >
    > The circular dependency is formed by three separate code paths. First, in
    > ocfs2_mknod(), the code reserves an inode by acquiring the
    > INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
    > acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
    > ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
    > extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
    > function, if the inode was orphaned, it calls
    > ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
    > lock. The allocation context is only freed at the end of the function,
    > meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
    > ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
    > ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
    > recovery completion, and then it calls ocfs2_remove_inode(), which acquires
    > the INODE_ALLOC_SYSTEM_INODE lock to free the inode.
    >
    > This patch breaks the cycle by addressing the dependency in
    > ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
    > only needed for the transaction that marks the extents as written. Once the
    > transaction is committed and the allocation semaphore is released, these
    > contexts are no longer needed. We can safely free them, which releases the
    > EXTENT_ALLOC_SYSTEM_INODE lock, before calling
    > ocfs2_del_inode_from_orphan(). This ensures that the
    > EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
    > ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
    > dependency.
    
    Let's rework the description a bit.
    Include the original bug report (drop the irrelevant parts) listing
    the stack traces of the circular lock chain parts. Still keep some
    explanations of the existing code, but make it a bit shorter then.
    
    >
    > Fixes: d647c5b2fbf8 ("ocfs2: split transactions in dio completion to avoid credit exhaustion")
    > Assisted-by: Gemini:gemini-3.1-pro-preview syzbot
    > Reported-by: syzbot+b225d4dfce6219600c42@syzkaller.appspotmail.com
    > Closes: https://syzkaller.appspot.com/bug?extid=b225d4dfce6219600c42
    > Link: https://syzkaller.appspot.com/ai_job?id=c86e9953-fff6-40ca-b2f0-eff12366a33a
    > To: "Joel Becker" <jlbec@evilplan.org>
    > To: "Joseph Qi" <joseph.qi@linux.alibaba.com>
    > To: "Mark Fasheh" <mark@fasheh.com>
    > To: <ocfs2-devel@lists.linux.dev>
    > Cc: <linux-kernel@vger.kernel.org>
    >
    > ---
    > diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
    > index 6ec198bda..4acdbb708 100644
    > --- a/fs/ocfs2/aops.c
    > +++ b/fs/ocfs2/aops.c
    > @@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
    >  unlock:
    >         up_write(&oi->ip_alloc_sem);
    >
    > +       if (data_ac) {
    > +               ocfs2_free_alloc_context(data_ac);
    > +               data_ac = NULL;
    > +       }
    > +       if (meta_ac) {
    > +               ocfs2_free_alloc_context(meta_ac);
    > +               meta_ac = NULL;
    > +       }
    > +
    >         /* everything looks good, let's start the cleanup */
    >         if (!ret && dwc->dw_orphaned) {
    >                 BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
    > @@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
    >         ocfs2_inode_unlock(inode, 1);
    >         brelse(di_bh);
    >  out:
    > -       if (data_ac)
    > -               ocfs2_free_alloc_context(data_ac);
    > -       if (meta_ac)
    > -               ocfs2_free_alloc_context(meta_ac);
    >         ocfs2_run_deallocs(osb, &dealloc);
    >         ocfs2_dio_free_write_ctx(inode, dwc);
    >
    >
    >
    > base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d
    > --
    > This is an AI-generated patch subject to moderation.
    > Reply with '#syz upstream' to Sign-off the patch as a human author
    > and send it to the upstream kernel mailing lists.
    > Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    >
    > See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    > You can comment on the patch as usual, syzbot will try to address
    > the comments and send a new version of the patch if necessary.
    > syzbot engineers can be reached at syzkaller@googlegroups.com.
    >
    > --
    > You received this message because you are subscribed to the Google Groups "syzkaller-upstream-moderation" group.
    > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-upstream-moderation+unsubscribe@googlegroups.com.
    > To view this discussion visit https://groups.google.com/d/msgid/syzkaller-upstream-moderation/008b2675-2e48-4150-a1ec-e68026253bad%40mail.kernel.org.
    
  • nogikh@google.com (2026/06/12 09:51):
    * A comment to just ping the comment processing code *
    
    On Thu, Jun 11, 2026 at 12:16β€―PM Aleksandr Nogikh <nogikh@google.com> wrote:
    >
    > On Fri, May 29, 2026 at 7:31β€―PM 'syzbot' via
    > syzkaller-upstream-moderation
    > <syzkaller-upstream-moderation@googlegroups.com> wrote:
    > >
    > > A circular locking dependency can occur involving three OCFS2 system inode
    > > locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
    > > ORPHAN_DIR_SYSTEM_INODE.
    > >
    > > The circular dependency is formed by three separate code paths. First, in
    > > ocfs2_mknod(), the code reserves an inode by acquiring the
    > > INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
    > > acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
    > > ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
    > > extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
    > > function, if the inode was orphaned, it calls
    > > ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
    > > lock. The allocation context is only freed at the end of the function,
    > > meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
    > > ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
    > > ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
    > > recovery completion, and then it calls ocfs2_remove_inode(), which acquires
    > > the INODE_ALLOC_SYSTEM_INODE lock to free the inode.
    > >
    > > This patch breaks the cycle by addressing the dependency in
    > > ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
    > > only needed for the transaction that marks the extents as written. Once the
    > > transaction is committed and the allocation semaphore is released, these
    > > contexts are no longer needed. We can safely free them, which releases the
    > > EXTENT_ALLOC_SYSTEM_INODE lock, before calling
    > > ocfs2_del_inode_from_orphan(). This ensures that the
    > > EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
    > > ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
    > > dependency.
    >
    > Let's rework the description a bit.
    > Include the original bug report (drop the irrelevant parts) listing
    > the stack traces of the circular lock chain parts. Still keep some
    > explanations of the existing code, but make it a bit shorter then.
    >
    > >
    > > Fixes: d647c5b2fbf8 ("ocfs2: split transactions in dio completion to avoid credit exhaustion")
    > > Assisted-by: Gemini:gemini-3.1-pro-preview syzbot
    > > Reported-by: syzbot+b225d4dfce6219600c42@syzkaller.appspotmail.com
    > > Closes: https://syzkaller.appspot.com/bug?extid=b225d4dfce6219600c42
    > > Link: https://syzkaller.appspot.com/ai_job?id=c86e9953-fff6-40ca-b2f0-eff12366a33a
    > > To: "Joel Becker" <jlbec@evilplan.org>
    > > To: "Joseph Qi" <joseph.qi@linux.alibaba.com>
    > > To: "Mark Fasheh" <mark@fasheh.com>
    > > To: <ocfs2-devel@lists.linux.dev>
    > > Cc: <linux-kernel@vger.kernel.org>
    > >
    > > ---
    > > diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
    > > index 6ec198bda..4acdbb708 100644
    > > --- a/fs/ocfs2/aops.c
    > > +++ b/fs/ocfs2/aops.c
    > > @@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
    > >  unlock:
    > >         up_write(&oi->ip_alloc_sem);
    > >
    > > +       if (data_ac) {
    > > +               ocfs2_free_alloc_context(data_ac);
    > > +               data_ac = NULL;
    > > +       }
    > > +       if (meta_ac) {
    > > +               ocfs2_free_alloc_context(meta_ac);
    > > +               meta_ac = NULL;
    > > +       }
    > > +
    > >         /* everything looks good, let's start the cleanup */
    > >         if (!ret && dwc->dw_orphaned) {
    > >                 BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
    > > @@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
    > >         ocfs2_inode_unlock(inode, 1);
    > >         brelse(di_bh);
    > >  out:
    > > -       if (data_ac)
    > > -               ocfs2_free_alloc_context(data_ac);
    > > -       if (meta_ac)
    > > -               ocfs2_free_alloc_context(meta_ac);
    > >         ocfs2_run_deallocs(osb, &dealloc);
    > >         ocfs2_dio_free_write_ctx(inode, dwc);
    > >
    > >
    > >
    > > base-commit: e7ae89a0c97ce2b68b0983cd01eda67cf373517d
    > > --
    > > This is an AI-generated patch subject to moderation.
    > > Reply with '#syz upstream' to Sign-off the patch as a human author
    > > and send it to the upstream kernel mailing lists.
    > > Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    > >
    > > See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    > > You can comment on the patch as usual, syzbot will try to address
    > > the comments and send a new version of the patch if necessary.
    > > syzbot engineers can be reached at syzkaller@googlegroups.com.
    > >
    > > --
    > > You received this message because you are subscribed to the Google Groups "syzkaller-upstream-moderation" group.
    > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-upstream-moderation+unsubscribe@googlegroups.com.
    > > To view this discussion visit https://groups.google.com/d/msgid/syzkaller-upstream-moderation/008b2675-2e48-4150-a1ec-e68026253bad%40mail.kernel.org.
    

Outputs:
AckedBy
[]
Fixes
map[Hash:d647c5b2fbf81560818dacade360abc8c00a9665 Title:ocfs2: split transactions in dio completion to avoid credit exhaustion]
KernelBranch
master
KernelCommit
e7ae89a0c97ce2b68b0983cd01eda67cf373517d
KernelRepo
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
PatchDescription
ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write()

A circular locking dependency can occur involving three OCFS2 system inode
locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
ORPHAN_DIR_SYSTEM_INODE.

The circular dependency is formed by three separate code paths. First, in
ocfs2_mknod(), the code reserves an inode by acquiring the
INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
function, if the inode was orphaned, it calls
ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
lock. The allocation context is only freed at the end of the function,
meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
recovery completion, and then it calls ocfs2_remove_inode(), which acquires
the INODE_ALLOC_SYSTEM_INODE lock to free the inode.

This patch breaks the cycle by addressing the dependency in
ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
only needed for the transaction that marks the extents as written. Once the
transaction is committed and the allocation semaphore is released, these
contexts are no longer needed. We can safely free them, which releases the
EXTENT_ALLOC_SYSTEM_INODE lock, before calling
ocfs2_del_inode_from_orphan(). This ensures that the
EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
dependency.
PatchDiff
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
Recipients
[map[Email:jlbec@evilplan.org Name:Joel Becker To:true] map[Email:joseph.qi@linux.alibaba.com Name:Joseph Qi To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:mark@fasheh.com Name:Mark Fasheh To:true] map[Email:ocfs2-devel@lists.linux.dev Name: To:true]]
ReportedBy
[]
ReviewedBy
[]
TestedBy
[]

Crash report:
======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
syz-executor/5944 is trying to acquire lock:
ffff88805b5c6ba0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff88805b5c6ba0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff88805b5c6ba0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff88805b5c6ba0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff88805b5c6ba0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/5944:
 #0: ffff888036d96410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88805b5ca5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88805b5ca5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88805b5ca5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88805b5ca5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff888062a38bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff88805b5c89a0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 5944 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb2cbd9bef7
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffeba63dcf8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fb2cbd9bef7
RDX: 0000000000000200 RSI: 00007ffeba63eea0 RDI: 00000000ffffff9c
RBP: 00007fb2cbe32120 R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffeba63eea0
R13: 00007fb2cbe32120 R14: 00000000000192e7 R15: 00007ffeba641060
 </TASK>

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/05/29 16:18 flow patching
1h11m Results:
map[AckedBy:[] Fixes:map[Hash:d647c5b2fbf81560818dacade360abc8c00a9665 Title:ocfs2: split transactions in dio completion to avoid credit exhaustion] KernelBranch:master KernelCommit:e7ae89a0c97ce2b68b0983cd01eda67cf373517d KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git PatchDescription:ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write()

A circular locking dependency can occur involving three OCFS2 system inode
locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
ORPHAN_DIR_SYSTEM_INODE.

The circular dependency is formed by three separate code paths. First, in
ocfs2_mknod(), the code reserves an inode by acquiring the
INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
function, if the inode was orphaned, it calls
ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
lock. The allocation context is only freed at the end of the function,
meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
recovery completion, and then it calls ocfs2_remove_inode(), which acquires
the INODE_ALLOC_SYSTEM_INODE lock to free the inode.

This patch breaks the cycle by addressing the dependency in
ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
only needed for the transaction that marks the extents as written. Once the
transaction is committed and the allocation semaphore is released, these
contexts are no longer needed. We can safely free them, which releases the
EXTENT_ALLOC_SYSTEM_INODE lock, before calling
ocfs2_del_inode_from_orphan(). This ensures that the
EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
dependency. PatchDiff:diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
 Recipients:[map[Email:jlbec@evilplan.org Name:Joel Becker To:true] map[Email:joseph.qi@linux.alibaba.com Name:Joseph Qi To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:mark@fasheh.com Name:Mark Fasheh To:true] map[Email:ocfs2-devel@lists.linux.dev Name: To:true]] ReportedBy:[] ReviewedBy:[] TestedBy:[]]

1/1 2026/05/29 16:18 action base-commit-picker
0m Results:
map[KernelBranch:master KernelCommit:e7ae89a0c97ce2b68b0983cd01eda67cf373517d KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git]

2/1 2026/05/29 16:19 action syz-repro-to-c-repro
0m Results:
map[SimplifiedCRepro:// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE 

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

#include <linux/loop.h>

#ifndef __NR_memfd_create
#define __NR_memfd_create 319
#endif

static unsigned long long procid;

//% This code is derived from puff.{c,h}, found in the zlib development. The
//% original files come with the following copyright notice:

//% Copyright (C) 2002-2013 Mark Adler, all rights reserved
//% version 2.3, 21 Jan 2013
//% This software is provided 'as-is', without any express or implied
//% warranty.  In no event will the author be held liable for any damages
//% arising from the use of this software.
//% Permission is granted to anyone to use this software for any purpose,
//% including commercial applications, and to alter it and redistribute it
//% freely, subject to the following restrictions:
//% 1. The origin of this software must not be misrepresented; you must not
//%    claim that you wrote the original software. If you use this software
//%    in a product, an acknowledgment in the product documentation would be
//%    appreciated but is not required.
//% 2. Altered source versions must be plainly marked as such, and must not be
//%    misrepresented as being the original software.
//% 3. This notice may not be removed or altered from any source distribution.
//% Mark Adler    madler@alumni.caltech.edu

//% BEGIN CODE DERIVED FROM puff.{c,h}

#define MAXBITS 15
#define MAXLCODES 286
#define MAXDCODES 30
#define MAXCODES (MAXLCODES + MAXDCODES)
#define FIXLCODES 288

struct puff_state {
	unsigned char* out;
	unsigned long outlen;
	unsigned long outcnt;
	const unsigned char* in;
	unsigned long inlen;
	unsigned long incnt;
	int bitbuf;
	int bitcnt;
	jmp_buf env;
};
static int puff_bits(struct puff_state* s, int need)
{
	long val = s->bitbuf;
	while (s->bitcnt < need) {
		if (s->incnt == s->inlen)
			longjmp(s->env, 1);
		val |= (long)(s->in[s->incnt++]) << s->bitcnt;
		s->bitcnt += 8;
	}
	s->bitbuf = (int)(val >> need);
	s->bitcnt -= need;
	return (int)(val & ((1L << need) - 1));
}
static int puff_stored(struct puff_state* s)
{
	s->bitbuf = 0;
	s->bitcnt = 0;
	if (s->incnt + 4 > s->inlen)
		return 2;
	unsigned len = s->in[s->incnt++];
	len |= s->in[s->incnt++] << 8;
	if (s->in[s->incnt++] != (~len & 0xff) ||
	    s->in[s->incnt++] != ((~len >> 8) & 0xff))
		return -2;
	if (s->incnt + len > s->inlen)
		return 2;
	if (s->outcnt + len > s->outlen)
		return 1;
	for (; len--; s->outcnt++, s->incnt++) {
		if (s->in[s->incnt])
			s->out[s->outcnt] = s->in[s->incnt];
	}
	return 0;
}
struct puff_huffman {
	short* count;
	short* symbol;
};
static int puff_decode(struct puff_state* s, const struct puff_huffman* h)
{
	int first = 0;
	int index = 0;
	int bitbuf = s->bitbuf;
	int left = s->bitcnt;
	int code = first = index = 0;
	int len = 1;
	short* next = h->count + 1;
	while (1) {
		while (left--) {
			code |= bitbuf & 1;
			bitbuf >>= 1;
			int count = *next++;
			if (code - count < first) {
				s->bitbuf = bitbuf;
				s->bitcnt = (s->bitcnt - len) & 7;
				return h->symbol[index + (code - first)];
			}
			index += count;
			first += count;
			first <<= 1;
			code <<= 1;
			len++;
		}
		left = (MAXBITS + 1) - len;
		if (left == 0)
			break;
		if (s->incnt == s->inlen)
			longjmp(s->env, 1);
		bitbuf = s->in[s->incnt++];
		if (left > 8)
			left = 8;
	}
	return -10;
}
static int puff_construct(struct puff_huffman* h, const short* length, int n)
{
	int len;
	for (len = 0; len <= MAXBITS; len++)
		h->count[len] = 0;
	int symbol;
	for (symbol = 0; symbol < n; symbol++)
		(h->count[length[symbol]])++;
	if (h->count[0] == n)
		return 0;
	int left = 1;
	for (len = 1; len <= MAXBITS; len++) {
		left <<= 1;
		left -= h->count[len];
		if (left < 0)
			return left;
	}
	short offs[MAXBITS + 1];
	offs[1] = 0;
	for (len = 1; len < MAXBITS; len++)
		offs[len + 1] = offs[len] + h->count[len];
	for (symbol = 0; symbol < n; symbol++)
		if (length[symbol] != 0)
			h->symbol[offs[length[symbol]]++] = symbol;
	return left;
}
static int puff_codes(struct puff_state* s,
		      const struct puff_huffman* lencode,
		      const struct puff_huffman* distcode)
{
	static const short lens[29] = {
				       3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
				       35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258};
	static const short lext[29] = {
				       0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
				       3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
	static const short dists[30] = {
					1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
					257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
					8193, 12289, 16385, 24577};
	static const short dext[30] = {
				       0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
				       7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
				       12, 12, 13, 13};
	int symbol;
	do {
		symbol = puff_decode(s, lencode);
		if (symbol < 0)
			return symbol;
		if (symbol < 256) {
			if (s->outcnt == s->outlen)
				return 1;
			if (symbol)
				s->out[s->outcnt] = symbol;
			s->outcnt++;
		} else if (symbol > 256) {
			symbol -= 257;
			if (symbol >= 29)
				return -10;
			int len = lens[symbol] + puff_bits(s, lext[symbol]);
			symbol = puff_decode(s, distcode);
			if (symbol < 0)
				return symbol;
			unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]);
			if (dist > s->outcnt)
				return -11;
			if (s->outcnt + len > s->outlen)
				return 1;
			while (len--) {
				if (dist <= s->outcnt && s->out[s->outcnt - dist])
					s->out[s->outcnt] = s->out[s->outcnt - dist];
				s->outcnt++;
			}
		}
	} while (symbol != 256);
	return 0;
}
static int puff_fixed(struct puff_state* s)
{
	static int virgin = 1;
	static short lencnt[MAXBITS + 1], lensym[FIXLCODES];
	static short distcnt[MAXBITS + 1], distsym[MAXDCODES];
	static struct puff_huffman lencode, distcode;
	if (virgin) {
		lencode.count = lencnt;
		lencode.symbol = lensym;
		distcode.count = distcnt;
		distcode.symbol = distsym;
		short lengths[FIXLCODES];
		int symbol;
		for (symbol = 0; symbol < 144; symbol++)
			lengths[symbol] = 8;
		for (; symbol < 256; symbol++)
			lengths[symbol] = 9;
		for (; symbol < 280; symbol++)
			lengths[symbol] = 7;
		for (; symbol < FIXLCODES; symbol++)
			lengths[symbol] = 8;
		puff_construct(&lencode, lengths, FIXLCODES);
		for (symbol = 0; symbol < MAXDCODES; symbol++)
			lengths[symbol] = 5;
		puff_construct(&distcode, lengths, MAXDCODES);
		virgin = 0;
	}
	return puff_codes(s, &lencode, &distcode);
}
static int puff_dynamic(struct puff_state* s)
{
	static const short order[19] =
	    {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
	int nlen = puff_bits(s, 5) + 257;
	int ndist = puff_bits(s, 5) + 1;
	int ncode = puff_bits(s, 4) + 4;
	if (nlen > MAXLCODES || ndist > MAXDCODES)
		return -3;
	short lengths[MAXCODES];
	int index;
	for (index = 0; index < ncode; index++)
		lengths[order[index]] = puff_bits(s, 3);
	for (; index < 19; index++)
		lengths[order[index]] = 0;
	short lencnt[MAXBITS + 1], lensym[MAXLCODES];
	struct puff_huffman lencode = {lencnt, lensym};
	int err = puff_construct(&lencode, lengths, 19);
	if (err != 0)
		return -4;
	index = 0;
	while (index < nlen + ndist) {
		int symbol;
		int len;
		symbol = puff_decode(s, &lencode);
		if (symbol < 0)
			return symbol;
		if (symbol < 16)
			lengths[index++] = symbol;
		else {
			len = 0;
			if (symbol == 16) {
				if (index == 0)
					return -5;
				len = lengths[index - 1];
				symbol = 3 + puff_bits(s, 2);
			} else if (symbol == 17)
				symbol = 3 + puff_bits(s, 3);
			else
				symbol = 11 + puff_bits(s, 7);
			if (index + symbol > nlen + ndist)
				return -6;
			while (symbol--)
				lengths[index++] = len;
		}
	}
	if (lengths[256] == 0)
		return -9;
	err = puff_construct(&lencode, lengths, nlen);
	if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
		return -7;
	short distcnt[MAXBITS + 1], distsym[MAXDCODES];
	struct puff_huffman distcode = {distcnt, distsym};
	err = puff_construct(&distcode, lengths + nlen, ndist);
	if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
		return -8;
	return puff_codes(s, &lencode, &distcode);
}
static int puff(
    unsigned char* dest,
    unsigned long* destlen,
    const unsigned char* source,
    unsigned long sourcelen)
{
	struct puff_state s = {
	    .out = dest,
	    .outlen = *destlen,
	    .outcnt = 0,
	    .in = source,
	    .inlen = sourcelen,
	    .incnt = 0,
	    .bitbuf = 0,
	    .bitcnt = 0,
	};
	int err;
	if (setjmp(s.env) != 0)
		err = 2;
	else {
		int last;
		do {
			last = puff_bits(&s, 1);
			int type = puff_bits(&s, 2);
			err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1));
			if (err != 0)
				break;
		} while (!last);
	}
	*destlen = s.outcnt;
	return err;
}

//% END CODE DERIVED FROM puff.{c,h}

#define ZLIB_HEADER_WIDTH 2

static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd)
{
	if (sourcelen < ZLIB_HEADER_WIDTH)
		return 0;
	source += ZLIB_HEADER_WIDTH;
	sourcelen -= ZLIB_HEADER_WIDTH;
	const unsigned long max_destlen = 132 << 20;
	void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
	if (ret == MAP_FAILED)
		return -1;
	unsigned char* dest = (unsigned char*)ret;
	unsigned long destlen = max_destlen;
	int err = puff(dest, &destlen, source, sourcelen);
	if (err) {
		munmap(dest, max_destlen);
		errno = -err;
		return -1;
	}
	if (write(dest_fd, dest, destlen) != (ssize_t)destlen) {
		munmap(dest, max_destlen);
		return -1;
	}
	return munmap(dest, max_destlen);
}

static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p)
{
	int err = 0, loopfd = -1;
	int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
	if (memfd == -1) {
		err = errno;
		goto error;
	}
	if (puff_zlib_to_file(data, size, memfd)) {
		err = errno;
		goto error_close_memfd;
	}
	loopfd = open(loopname, O_RDWR);
	if (loopfd == -1) {
		err = errno;
		goto error_close_memfd;
	}
	if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
		if (errno != EBUSY) {
			err = errno;
			goto error_close_loop;
		}
		ioctl(loopfd, LOOP_CLR_FD, 0);
		usleep(1000);
		if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
			err = errno;
			goto error_close_loop;
		}
	}
	close(memfd);
	*loopfd_p = loopfd;
	return 0;

error_close_loop:
	close(loopfd);
error_close_memfd:
	close(memfd);
error:
	errno = err;
	return -1;
}

static void reset_loop_device(const char* loopname)
{
	int loopfd = open(loopname, O_RDWR);
	if (loopfd == -1) {
		return;
	}
	if (ioctl(loopfd, LOOP_CLR_FD, 0)) {
	}
	close(loopfd);
}

static long syz_mount_image(
    volatile long fsarg,
    volatile long dir,
    volatile long flags,
    volatile long optsarg,
    volatile long change_dir,
    volatile unsigned long size,
    volatile long image)
{
	unsigned char* data = (unsigned char*)image;
	int res = -1, err = 0, need_loop_device = !!size;
	char* mount_opts = (char*)optsarg;
	char* target = (char*)dir;
	char* fs = (char*)fsarg;
	char* source = NULL;
	char loopname[64];
	if (need_loop_device) {
		int loopfd;
		memset(loopname, 0, sizeof(loopname));
		snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid);
		if (setup_loop_device(data, size, loopname, &loopfd) == -1)
			return -1;
		close(loopfd);
		source = loopname;
	}
	mkdir(target, 0777);
	char opts[256];
	memset(opts, 0, sizeof(opts));
	if (strlen(mount_opts) > (sizeof(opts) - 32)) {
	}
	strncpy(opts, mount_opts, sizeof(opts) - 32);
	if (strcmp(fs, "iso9660") == 0) {
		flags |= MS_RDONLY;
	} else if (strncmp(fs, "ext", 3) == 0) {
		bool has_remount_ro = false;
		char* remount_ro_start = strstr(opts, "errors=remount-ro");
		if (remount_ro_start != NULL) {
			char after = *(remount_ro_start + strlen("errors=remount-ro"));
			char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1);
			has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ','));
		}
		if (strstr(opts, "errors=panic") || !has_remount_ro)
			strcat(opts, ",errors=continue");
	} else if (strcmp(fs, "xfs") == 0) {
		strcat(opts, ",nouuid");
	} else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) {
		strcat(opts, ",errors=withdraw");
	}
	res = mount(source, target, fs, flags, opts);
	if (res == -1) {
		err = errno;
		goto error_clear_loop;
	}
	res = open(target, O_RDONLY | O_DIRECTORY);
	if (res == -1) {
		err = errno;
		goto error_clear_loop;
	}
	if (change_dir) {
		res = chdir(target);
		if (res == -1) {
			err = errno;
		}
	}

error_clear_loop:
	if (need_loop_device)
		reset_loop_device(loopname);
	errno = err;
	return res;
}

#define USLEEP_FORKED_CHILD (3 * 50 *1000)

static long handle_clone_ret(long ret)
{
	if (ret != 0) {
		return ret;
	}
	usleep(USLEEP_FORKED_CHILD);
	syscall(__NR_exit, 0);
	while (1) {
	}
}

static long syz_clone(volatile long flags, volatile long stack, volatile long stack_len,
		      volatile long ptid, volatile long ctid, volatile long tls)
{
	long sp = (stack + stack_len) & ~15;
	long ret = (long)syscall(__NR_clone, flags & ~CLONE_VM, sp, ptid, ctid, tls);
	return handle_clone_ret(ret);
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*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=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_mount_image$ocfs2 arguments: [
//    fs: ptr[in, buffer] {
//      buffer: {6f 63 66 73 32 00} (length 0x6)
//    }
//    dir: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8)
//    }
//    flags: mount_flags = 0x8c0 (8 bytes)
//    opts: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {61 63 6c 2c 68 65 61 72 74 62 65 61 74 3d 6e 6f 6e 65 2c 64 69 72 5f 72 65 73 76 5f 6c 65 76 65 6c 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 33 2c 72 65 73 76 5f 6c 65 76 65 6c 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 36 2c 63 6f 68 65 72 65 6e 63 79 3d 66 75 6c 6c 2c 6c 6f 63 61 6c 66 6c 6f 63 6b 73 2c 63 6f 68 65 72 65 6e 63 79 3d 66 75 6c 6c 2c 6e 6f 61 63 6c 2c 00 4c 98 06 5b 85 e5 b1 37 d6 3b 22 11 c6 2c 40 20 45 08 3d a9 bd dc 3b 0d 88 d4 4e cd 24 ba 52 88 d4 28 19 72 84 f3 32 85 8b 83 34 9a f2 c7 64 6f 1e 07 e9 11 20 d7 f2 3c e2 03 89 bb c0 31 d8 1d 65 4f 1c a0 8f 61 c9 2d 90 e6 ea 47 88 43 c1 ad 94 2c 7c 25 7f 9f f5 34 8d d0 38 e9 47 77 59 91 ad 90 f8 86 1d ad a2 1d 5f a2 de 70 42 b5 e2 cb bc d1 ad a2 b5 68 e3 75 81 2e b0 bc 44 8e 68 ed a4 c7 0c f1 d5 ad f5 66 14 2e d4 59 24 fe 72 a1 eb 1a 91 4f af 75 4b 9d 94 bf 0f dc 1f 98 c7 08 bd 89 94 0b 5e f9 6e 32 82 40 c3 95 59 b3 5b c8 3c 15 c1 51 04 f3 b3 fe 19 45 f0 27 8c 34 e2 39 9d ad cd 97 76 ac 65 9a fc bb 23 95 69 14 0a b4 08 ad 87 f1 5b 35 39 41} (length 0x160)
//        }
//      }
//    }
//    chdir: int8 = 0x1 (1 bytes)
//    size: len = 0x442a (8 bytes)
//    img: ptr[in, buffer] {
//      buffer: (compressed buffer with length 0x442a)
//    }
//  ]
//  returns fd_dir
memcpy((void*)0x200000004440, "ocfs2\000", 6);
memcpy((void*)0x200000000040, "./file1\000", 8);
memcpy((void*)0x200000000600, "... [truncated large byte array] ...", 352);
memcpy((void*)0x200000004480, "... [truncated large byte array] ...", 17450);
syz_mount_image(/*fs=*/0x200000004440, /*dir=*/0x200000000040, /*flags=MS_NODIRATIME|MS_MANDLOCK|MS_DIRSYNC*/0x8c0, /*opts=*/0x200000000600, /*chdir=*/1, /*size=*/0x442a, /*img=*/0x200000004480);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8)
//    }
//    flags: open_flags = 0x4842 (4 bytes)
//    mode: open_mode = 0x1cb (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000240, "./file1\000", 8);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=O_NONBLOCK|O_DIRECT|O_CREAT|O_RDWR*/0x4842, /*mode=S_IXOTH|S_IWOTH|S_IXGRP|S_IXUSR|S_IWUSR|S_IRUSR*/0x1cb);
	if (res != -1)
		r[0] = res;
//  writev arguments: [
//    fd: fd (resource)
//    vec: ptr[in, array[iovec[in, array[int8]]]] {
//      array[iovec[in, array[int8]]] {
//        iovec[in, array[int8]] {
//          addr: ptr[in, buffer] {
//            buffer: {10} (length 0x1)
//          }
//          len: len = 0x64000 (8 bytes)
//        }
//      }
//    }
//    vlen: len = 0x1 (8 bytes)
//  ]
*(uint64_t*)0x200000000140 = 0x200000001200;
memset((void*)0x200000001200, 16, 1);
*(uint64_t*)0x200000000148 = 0x64000;
	syscall(__NR_writev, /*fd=*/r[0], /*vec=*/0x200000000140ul, /*vlen=*/1ul);
//  syz_clone arguments: [
//    flags: clone_flags = 0x20000 (8 bytes)
//    stack: nil
//    stack_len: bytesize = 0x0 (8 bytes)
//    parentid: nil
//    childtid: nil
//    tls: nil
//  ]
//  returns pid
syz_clone(/*flags=CLONE_NEWNS*/0x20000, /*stack=*/0, /*stack_len=*/0, /*parentid=*/0, /*childtid=*/0, /*tls=*/0);
	return 0;
}
]

3/1 2026/05/29 16:19 action kernel-checkouter
0m Results:
map[KernelSrc:/app/workdir/cache/src/9e90653914128b0c0a243c2451f414ecec48632b]

4/1 2026/05/29 16:19 action kernel-builder
18m Results:
map[KernelObj:/app/workdir/cache/build/eef59a5c837ce8de757f02acbdd4863423e1edc1]

5/1 2026/05/29 16:37 action crash-reproducer
1m Results:
map[OtherCrashReports:<nil> ReproducedBugTitle:possible deadlock in ocfs2_evict_inode ReproducedCrashReport:======================================================
WARNING: possible circular locking dependency detected
syzkaller #1 Not tainted
------------------------------------------------------
syz-executor/6069 is trying to acquire lock:
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/6069:
 #0: ffff8881161a4410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff8881166b0bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 6069 Comm: syz-executor Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51b819bf77
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffd5ea06718 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f51b819bf77
RDX: 0000000000000200 RSI: 00007ffd5ea078c0 RDI: 00000000ffffff9c
RBP: 00007f51b82321ca R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffd5ea078c0
R13: 00007f51b82321ca R14: 000000000001819f R15: 00007ffd5ea09a80
 </TASK>
 ReproducedFaultInjection:]

6/1 2026/05/29 16:39 action codesearch-prepare
13m Results:
map[Index:codesearch-index]

7/1 2026/05/29 16:52 agent debugger
6m Model:
gemini-3.1-pro-preview

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:

======================================================
WARNING: possible circular locking dependency detected
syzkaller #1 Not tainted
------------------------------------------------------
syz-executor/6069 is trying to acquire lock:
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/6069:
 #0: ffff8881161a4410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff8881166b0bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 6069 Comm: syz-executor Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51b819bf77
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffd5ea06718 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f51b819bf77
RDX: 0000000000000200 RSI: 00007ffd5ea078c0 RDI: 00000000ffffff9c
RBP: 00007f51b82321ca R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffd5ea078c0
R13: 00007f51b82321ca R14: 000000000001819f R15: 00007ffd5ea09a80
 </TASK>


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

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

#define _GNU_SOURCE 

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

#include <linux/loop.h>

#ifndef __NR_memfd_create
#define __NR_memfd_create 319
#endif

static unsigned long long procid;

//% This code is derived from puff.{c,h}, found in the zlib development. The
//% original files come with the following copyright notice:

//% Copyright (C) 2002-2013 Mark Adler, all rights reserved
//% version 2.3, 21 Jan 2013
//% This software is provided 'as-is', without any express or implied
//% warranty.  In no event will the author be held liable for any damages
//% arising from the use of this software.
//% Permission is granted to anyone to use this software for any purpose,
//% including commercial applications, and to alter it and redistribute it
//% freely, subject to the following restrictions:
//% 1. The origin of this software must not be misrepresented; you must not
//%    claim that you wrote the original software. If you use this software
//%    in a product, an acknowledgment in the product documentation would be
//%    appreciated but is not required.
//% 2. Altered source versions must be plainly marked as such, and must not be
//%    misrepresented as being the original software.
//% 3. This notice may not be removed or altered from any source distribution.
//% Mark Adler    madler@alumni.caltech.edu

//% BEGIN CODE DERIVED FROM puff.{c,h}

#define MAXBITS 15
#define MAXLCODES 286
#define MAXDCODES 30
#define MAXCODES (MAXLCODES + MAXDCODES)
#define FIXLCODES 288

struct puff_state {
	unsigned char* out;
	unsigned long outlen;
	unsigned long outcnt;
	const unsigned char* in;
	unsigned long inlen;
	unsigned long incnt;
	int bitbuf;
	int bitcnt;
	jmp_buf env;
};
static int puff_bits(struct puff_state* s, int need)
{
	long val = s->bitbuf;
	while (s->bitcnt < need) {
		if (s->incnt == s->inlen)
			longjmp(s->env, 1);
		val |= (long)(s->in[s->incnt++]) << s->bitcnt;
		s->bitcnt += 8;
	}
	s->bitbuf = (int)(val >> need);
	s->bitcnt -= need;
	return (int)(val & ((1L << need) - 1));
}
static int puff_stored(struct puff_state* s)
{
	s->bitbuf = 0;
	s->bitcnt = 0;
	if (s->incnt + 4 > s->inlen)
		return 2;
	unsigned len = s->in[s->incnt++];
	len |= s->in[s->incnt++] << 8;
	if (s->in[s->incnt++] != (~len & 0xff) ||
	    s->in[s->incnt++] != ((~len >> 8) & 0xff))
		return -2;
	if (s->incnt + len > s->inlen)
		return 2;
	if (s->outcnt + len > s->outlen)
		return 1;
	for (; len--; s->outcnt++, s->incnt++) {
		if (s->in[s->incnt])
			s->out[s->outcnt] = s->in[s->incnt];
	}
	return 0;
}
struct puff_huffman {
	short* count;
	short* symbol;
};
static int puff_decode(struct puff_state* s, const struct puff_huffman* h)
{
	int first = 0;
	int index = 0;
	int bitbuf = s->bitbuf;
	int left = s->bitcnt;
	int code = first = index = 0;
	int len = 1;
	short* next = h->count + 1;
	while (1) {
		while (left--) {
			code |= bitbuf & 1;
			bitbuf >>= 1;
			int count = *next++;
			if (code - count < first) {
				s->bitbuf = bitbuf;
				s->bitcnt = (s->bitcnt - len) & 7;
				return h->symbol[index + (code - first)];
			}
			index += count;
			first += count;
			first <<= 1;
			code <<= 1;
			len++;
		}
		left = (MAXBITS + 1) - len;
		if (left == 0)
			break;
		if (s->incnt == s->inlen)
			longjmp(s->env, 1);
		bitbuf = s->in[s->incnt++];
		if (left > 8)
			left = 8;
	}
	return -10;
}
static int puff_construct(struct puff_huffman* h, const short* length, int n)
{
	int len;
	for (len = 0; len <= MAXBITS; len++)
		h->count[len] = 0;
	int symbol;
	for (symbol = 0; symbol < n; symbol++)
		(h->count[length[symbol]])++;
	if (h->count[0] == n)
		return 0;
	int left = 1;
	for (len = 1; len <= MAXBITS; len++) {
		left <<= 1;
		left -= h->count[len];
		if (left < 0)
			return left;
	}
	short offs[MAXBITS + 1];
	offs[1] = 0;
	for (len = 1; len < MAXBITS; len++)
		offs[len + 1] = offs[len] + h->count[len];
	for (symbol = 0; symbol < n; symbol++)
		if (length[symbol] != 0)
			h->symbol[offs[length[symbol]]++] = symbol;
	return left;
}
static int puff_codes(struct puff_state* s,
		      const struct puff_huffman* lencode,
		      const struct puff_huffman* distcode)
{
	static const short lens[29] = {
				       3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
				       35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258};
	static const short lext[29] = {
				       0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
				       3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
	static const short dists[30] = {
					1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
					257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
					8193, 12289, 16385, 24577};
	static const short dext[30] = {
				       0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
				       7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
				       12, 12, 13, 13};
	int symbol;
	do {
		symbol = puff_decode(s, lencode);
		if (symbol < 0)
			return symbol;
		if (symbol < 256) {
			if (s->outcnt == s->outlen)
				return 1;
			if (symbol)
				s->out[s->outcnt] = symbol;
			s->outcnt++;
		} else if (symbol > 256) {
			symbol -= 257;
			if (symbol >= 29)
				return -10;
			int len = lens[symbol] + puff_bits(s, lext[symbol]);
			symbol = puff_decode(s, distcode);
			if (symbol < 0)
				return symbol;
			unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]);
			if (dist > s->outcnt)
				return -11;
			if (s->outcnt + len > s->outlen)
				return 1;
			while (len--) {
				if (dist <= s->outcnt && s->out[s->outcnt - dist])
					s->out[s->outcnt] = s->out[s->outcnt - dist];
				s->outcnt++;
			}
		}
	} while (symbol != 256);
	return 0;
}
static int puff_fixed(struct puff_state* s)
{
	static int virgin = 1;
	static short lencnt[MAXBITS + 1], lensym[FIXLCODES];
	static short distcnt[MAXBITS + 1], distsym[MAXDCODES];
	static struct puff_huffman lencode, distcode;
	if (virgin) {
		lencode.count = lencnt;
		lencode.symbol = lensym;
		distcode.count = distcnt;
		distcode.symbol = distsym;
		short lengths[FIXLCODES];
		int symbol;
		for (symbol = 0; symbol < 144; symbol++)
			lengths[symbol] = 8;
		for (; symbol < 256; symbol++)
			lengths[symbol] = 9;
		for (; symbol < 280; symbol++)
			lengths[symbol] = 7;
		for (; symbol < FIXLCODES; symbol++)
			lengths[symbol] = 8;
		puff_construct(&lencode, lengths, FIXLCODES);
		for (symbol = 0; symbol < MAXDCODES; symbol++)
			lengths[symbol] = 5;
		puff_construct(&distcode, lengths, MAXDCODES);
		virgin = 0;
	}
	return puff_codes(s, &lencode, &distcode);
}
static int puff_dynamic(struct puff_state* s)
{
	static const short order[19] =
	    {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
	int nlen = puff_bits(s, 5) + 257;
	int ndist = puff_bits(s, 5) + 1;
	int ncode = puff_bits(s, 4) + 4;
	if (nlen > MAXLCODES || ndist > MAXDCODES)
		return -3;
	short lengths[MAXCODES];
	int index;
	for (index = 0; index < ncode; index++)
		lengths[order[index]] = puff_bits(s, 3);
	for (; index < 19; index++)
		lengths[order[index]] = 0;
	short lencnt[MAXBITS + 1], lensym[MAXLCODES];
	struct puff_huffman lencode = {lencnt, lensym};
	int err = puff_construct(&lencode, lengths, 19);
	if (err != 0)
		return -4;
	index = 0;
	while (index < nlen + ndist) {
		int symbol;
		int len;
		symbol = puff_decode(s, &lencode);
		if (symbol < 0)
			return symbol;
		if (symbol < 16)
			lengths[index++] = symbol;
		else {
			len = 0;
			if (symbol == 16) {
				if (index == 0)
					return -5;
				len = lengths[index - 1];
				symbol = 3 + puff_bits(s, 2);
			} else if (symbol == 17)
				symbol = 3 + puff_bits(s, 3);
			else
				symbol = 11 + puff_bits(s, 7);
			if (index + symbol > nlen + ndist)
				return -6;
			while (symbol--)
				lengths[index++] = len;
		}
	}
	if (lengths[256] == 0)
		return -9;
	err = puff_construct(&lencode, lengths, nlen);
	if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
		return -7;
	short distcnt[MAXBITS + 1], distsym[MAXDCODES];
	struct puff_huffman distcode = {distcnt, distsym};
	err = puff_construct(&distcode, lengths + nlen, ndist);
	if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
		return -8;
	return puff_codes(s, &lencode, &distcode);
}
static int puff(
    unsigned char* dest,
    unsigned long* destlen,
    const unsigned char* source,
    unsigned long sourcelen)
{
	struct puff_state s = {
	    .out = dest,
	    .outlen = *destlen,
	    .outcnt = 0,
	    .in = source,
	    .inlen = sourcelen,
	    .incnt = 0,
	    .bitbuf = 0,
	    .bitcnt = 0,
	};
	int err;
	if (setjmp(s.env) != 0)
		err = 2;
	else {
		int last;
		do {
			last = puff_bits(&s, 1);
			int type = puff_bits(&s, 2);
			err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1));
			if (err != 0)
				break;
		} while (!last);
	}
	*destlen = s.outcnt;
	return err;
}

//% END CODE DERIVED FROM puff.{c,h}

#define ZLIB_HEADER_WIDTH 2

static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd)
{
	if (sourcelen < ZLIB_HEADER_WIDTH)
		return 0;
	source += ZLIB_HEADER_WIDTH;
	sourcelen -= ZLIB_HEADER_WIDTH;
	const unsigned long max_destlen = 132 << 20;
	void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
	if (ret == MAP_FAILED)
		return -1;
	unsigned char* dest = (unsigned char*)ret;
	unsigned long destlen = max_destlen;
	int err = puff(dest, &destlen, source, sourcelen);
	if (err) {
		munmap(dest, max_destlen);
		errno = -err;
		return -1;
	}
	if (write(dest_fd, dest, destlen) != (ssize_t)destlen) {
		munmap(dest, max_destlen);
		return -1;
	}
	return munmap(dest, max_destlen);
}

static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p)
{
	int err = 0, loopfd = -1;
	int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
	if (memfd == -1) {
		err = errno;
		goto error;
	}
	if (puff_zlib_to_file(data, size, memfd)) {
		err = errno;
		goto error_close_memfd;
	}
	loopfd = open(loopname, O_RDWR);
	if (loopfd == -1) {
		err = errno;
		goto error_close_memfd;
	}
	if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
		if (errno != EBUSY) {
			err = errno;
			goto error_close_loop;
		}
		ioctl(loopfd, LOOP_CLR_FD, 0);
		usleep(1000);
		if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
			err = errno;
			goto error_close_loop;
		}
	}
	close(memfd);
	*loopfd_p = loopfd;
	return 0;

error_close_loop:
	close(loopfd);
error_close_memfd:
	close(memfd);
error:
	errno = err;
	return -1;
}

static void reset_loop_device(const char* loopname)
{
	int loopfd = open(loopname, O_RDWR);
	if (loopfd == -1) {
		return;
	}
	if (ioctl(loopfd, LOOP_CLR_FD, 0)) {
	}
	close(loopfd);
}

static long syz_mount_image(
    volatile long fsarg,
    volatile long dir,
    volatile long flags,
    volatile long optsarg,
    volatile long change_dir,
    volatile unsigned long size,
    volatile long image)
{
	unsigned char* data = (unsigned char*)image;
	int res = -1, err = 0, need_loop_device = !!size;
	char* mount_opts = (char*)optsarg;
	char* target = (char*)dir;
	char* fs = (char*)fsarg;
	char* source = NULL;
	char loopname[64];
	if (need_loop_device) {
		int loopfd;
		memset(loopname, 0, sizeof(loopname));
		snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid);
		if (setup_loop_device(data, size, loopname, &loopfd) == -1)
			return -1;
		close(loopfd);
		source = loopname;
	}
	mkdir(target, 0777);
	char opts[256];
	memset(opts, 0, sizeof(opts));
	if (strlen(mount_opts) > (sizeof(opts) - 32)) {
	}
	strncpy(opts, mount_opts, sizeof(opts) - 32);
	if (strcmp(fs, "iso9660") == 0) {
		flags |= MS_RDONLY;
	} else if (strncmp(fs, "ext", 3) == 0) {
		bool has_remount_ro = false;
		char* remount_ro_start = strstr(opts, "errors=remount-ro");
		if (remount_ro_start != NULL) {
			char after = *(remount_ro_start + strlen("errors=remount-ro"));
			char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1);
			has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ','));
		}
		if (strstr(opts, "errors=panic") || !has_remount_ro)
			strcat(opts, ",errors=continue");
	} else if (strcmp(fs, "xfs") == 0) {
		strcat(opts, ",nouuid");
	} else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) {
		strcat(opts, ",errors=withdraw");
	}
	res = mount(source, target, fs, flags, opts);
	if (res == -1) {
		err = errno;
		goto error_clear_loop;
	}
	res = open(target, O_RDONLY | O_DIRECTORY);
	if (res == -1) {
		err = errno;
		goto error_clear_loop;
	}
	if (change_dir) {
		res = chdir(target);
		if (res == -1) {
			err = errno;
		}
	}

error_clear_loop:
	if (need_loop_device)
		reset_loop_device(loopname);
	errno = err;
	return res;
}

#define USLEEP_FORKED_CHILD (3 * 50 *1000)

static long handle_clone_ret(long ret)
{
	if (ret != 0) {
		return ret;
	}
	usleep(USLEEP_FORKED_CHILD);
	syscall(__NR_exit, 0);
	while (1) {
	}
}

static long syz_clone(volatile long flags, volatile long stack, volatile long stack_len,
		      volatile long ptid, volatile long ctid, volatile long tls)
{
	long sp = (stack + stack_len) & ~15;
	long ret = (long)syscall(__NR_clone, flags & ~CLONE_VM, sp, ptid, ctid, tls);
	return handle_clone_ret(ret);
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*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=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_mount_image$ocfs2 arguments: [
//    fs: ptr[in, buffer] {
//      buffer: {6f 63 66 73 32 00} (length 0x6)
//    }
//    dir: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8)
//    }
//    flags: mount_flags = 0x8c0 (8 bytes)
//    opts: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {61 63 6c 2c 68 65 61 72 74 62 65 61 74 3d 6e 6f 6e 65 2c 64 69 72 5f 72 65 73 76 5f 6c 65 76 65 6c 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 33 2c 72 65 73 76 5f 6c 65 76 65 6c 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 36 2c 63 6f 68 65 72 65 6e 63 79 3d 66 75 6c 6c 2c 6c 6f 63 61 6c 66 6c 6f 63 6b 73 2c 63 6f 68 65 72 65 6e 63 79 3d 66 75 6c 6c 2c 6e 6f 61 63 6c 2c 00 4c 98 06 5b 85 e5 b1 37 d6 3b 22 11 c6 2c 40 20 45 08 3d a9 bd dc 3b 0d 88 d4 4e cd 24 ba 52 88 d4 28 19 72 84 f3 32 85 8b 83 34 9a f2 c7 64 6f 1e 07 e9 11 20 d7 f2 3c e2 03 89 bb c0 31 d8 1d 65 4f 1c a0 8f 61 c9 2d 90 e6 ea 47 88 43 c1 ad 94 2c 7c 25 7f 9f f5 34 8d d0 38 e9 47 77 59 91 ad 90 f8 86 1d ad a2 1d 5f a2 de 70 42 b5 e2 cb bc d1 ad a2 b5 68 e3 75 81 2e b0 bc 44 8e 68 ed a4 c7 0c f1 d5 ad f5 66 14 2e d4 59 24 fe 72 a1 eb 1a 91 4f af 75 4b 9d 94 bf 0f dc 1f 98 c7 08 bd 89 94 0b 5e f9 6e 32 82 40 c3 95 59 b3 5b c8 3c 15 c1 51 04 f3 b3 fe 19 45 f0 27 8c 34 e2 39 9d ad cd 97 76 ac 65 9a fc bb 23 95 69 14 0a b4 08 ad 87 f1 5b 35 39 41} (length 0x160)
//        }
//      }
//    }
//    chdir: int8 = 0x1 (1 bytes)
//    size: len = 0x442a (8 bytes)
//    img: ptr[in, buffer] {
//      buffer: (compressed buffer with length 0x442a)
//    }
//  ]
//  returns fd_dir
memcpy((void*)0x200000004440, "ocfs2\000", 6);
memcpy((void*)0x200000000040, "./file1\000", 8);
memcpy((void*)0x200000000600, "... [truncated large byte array] ...", 352);
memcpy((void*)0x200000004480, "... [truncated large byte array] ...", 17450);
syz_mount_image(/*fs=*/0x200000004440, /*dir=*/0x200000000040, /*flags=MS_NODIRATIME|MS_MANDLOCK|MS_DIRSYNC*/0x8c0, /*opts=*/0x200000000600, /*chdir=*/1, /*size=*/0x442a, /*img=*/0x200000004480);
//  openat arguments: [
//    fd: fd_dir (resource)
//    file: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8)
//    }
//    flags: open_flags = 0x4842 (4 bytes)
//    mode: open_mode = 0x1cb (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000240, "./file1\000", 8);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=O_NONBLOCK|O_DIRECT|O_CREAT|O_RDWR*/0x4842, /*mode=S_IXOTH|S_IWOTH|S_IXGRP|S_IXUSR|S_IWUSR|S_IRUSR*/0x1cb);
	if (res != -1)
		r[0] = res;
//  writev arguments: [
//    fd: fd (resource)
//    vec: ptr[in, array[iovec[in, array[int8]]]] {
//      array[iovec[in, array[int8]]] {
//        iovec[in, array[int8]] {
//          addr: ptr[in, buffer] {
//            buffer: {10} (length 0x1)
//          }
//          len: len = 0x64000 (8 bytes)
//        }
//      }
//    }
//    vlen: len = 0x1 (8 bytes)
//  ]
*(uint64_t*)0x200000000140 = 0x200000001200;
memset((void*)0x200000001200, 16, 1);
*(uint64_t*)0x200000000148 = 0x64000;
	syscall(__NR_writev, /*fd=*/r[0], /*vec=*/0x200000000140ul, /*vlen=*/1ul);
//  syz_clone arguments: [
//    flags: clone_flags = 0x20000 (8 bytes)
//    stack: nil
//    stack_len: bytesize = 0x0 (8 bytes)
//    parentid: nil
//    childtid: nil
//    tls: nil
//  ]
//  returns pid
syz_clone(/*flags=CLONE_NEWNS*/0x20000, /*stack=*/0, /*stack_len=*/0, /*parentid=*/0, /*childtid=*/0, /*tls=*/0);
	return 0;
}





Reply:
The lockdep warning reports a circular locking dependency involving three OCFS2 system inode locks (which all belong to the `ocfs2_sysfile_lock_key` lock class, but are distinct locks based on their system inode type). 

The three locks involved are:
1. `INODE_ALLOC_SYSTEM_INODE`
2. `EXTENT_ALLOC_SYSTEM_INODE`
3. `ORPHAN_DIR_SYSTEM_INODE`

### Root Cause Analysis

The circular dependency is formed by three separate code paths that establish the following lock ordering:

**1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`**
In `ocfs2_mknod()` (`fs/ocfs2/namei.c`), the code first reserves an inode by calling `ocfs2_reserve_new_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock. Shortly after, it reserves metadata blocks by calling `ocfs2_reserve_new_metadata_blocks()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Both locks are held concurrently until the end of the function (or upon error), establishing this dependency.

**2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`**
In `ocfs2_dio_end_io_write()` (`fs/ocfs2/aops.c`), the code allocates metadata blocks for unwritten extents by calling `ocfs2_lock_allocators()`. This allocates `meta_ac` and acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Later in the same function, if the inode was orphaned, it calls `ocfs2_del_inode_from_orphan()`, which acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. The `meta_ac` context (and thus the `EXTENT_ALLOC_SYSTEM_INODE` lock) is only freed at the very end of the function, meaning it is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired.

**3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`**
In `ocfs2_wipe_inode()` (`fs/ocfs2/inode.c`), the `ORPHAN_DIR_SYSTEM_INODE` lock is acquired first to prevent races with recovery completion. While holding this lock, it calls `ocfs2_remove_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock to free the inode. (A similar dependency is also established in `ocfs2_prep_new_orphaned_file()`).

Combining these three paths creates the circular dependency:
`INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

### How to Fix

We can break the cycle by addressing the second dependency (`EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`) in `ocfs2_dio_end_io_write()`. 

The `data_ac` and `meta_ac` allocation contexts are only needed for the transaction that marks the extents as written. Once the transaction is committed via `ocfs2_commit_trans()` and the allocation semaphore is released via `up_write(&oi->ip_alloc_sem)`, these contexts are no longer needed. We can safely free them (which releases the `EXTENT_ALLOC_SYSTEM_INODE` lock) *before* calling `ocfs2_del_inode_from_orphan()`.

Here is the proposed fix for `fs/ocfs2/aops.c`:

```c
@@ -2372,6 +2372,16 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2393,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
```

This ensures that the `EXTENT_ALLOC_SYSTEM_INODE` lock is dropped before we attempt to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock, successfully breaking the circular dependency.

8/2 2026/05/29 16:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16374
							output: 37
							thoughts: 1589
						

Thoughts:
**Analyzing a Circular Locking Dependency in OCFS2**

Okay, so I'm looking at this circular locking dependency warning in `ocfs2`. The report points out a potential deadlock scenario involving three locks: `INODE_ALLOC_SYSTEM_INODE`, `ORPHAN_DIR_SYSTEM_INODE`, and `EXTENT_ALLOC_SYSTEM_INODE`. The report suggests a chain of dependencies: `INODE_ALLOC_SYSTEM_INODE` depends on `EXTENT_ALLOC_SYSTEM_INODE`, which depends on `ORPHAN_DIR_SYSTEM_INODE`.

The provided example shows a possible unsafe locking sequence: one CPU holds `ORPHAN_DIR_SYSTEM_INODE` and attempts to acquire `INODE_ALLOC_SYSTEM_INODE`, while another CPU holds `EXTENT_ALLOC_SYSTEM_INODE` and tries to acquire `ORPHAN_DIR_SYSTEM_INODE`.  That's a classic deadlock situation, if the locks are acquired in this order and one process can block waiting for the others.

The report highlights that the task that's trying to acquire the `INODE_ALLOC_SYSTEM_INODE` lock is actually already holding the `ORPHAN_DIR_SYSTEM_INODE` lock. Specifically, this happens within the `ocfs2_wipe_inode` function, suggesting that this function is where the potential for a circular dependency lies. It looks like `ocfs2_wipe_inode` acquires `ORPHAN_DIR_SYSTEM_INODE` and *then* tries to get `INODE_ALLOC_SYSTEM_INODE`.

Let's trace back. The given chain indicates `ocfs2_dio_end_io_write` calls `ocfs2_del_inode_from_orphan`, and, ultimately, it's holding the `ORPHAN_DIR_SYSTEM_INODE` lock in this chain.

Now, what lock does `ocfs2_dio_end_io_write` hold before acquiring `ORPHAN_DIR_SYSTEM_INODE`? This is the crucial missing piece. The provided dependency chain shows a crucial lock-holding before `ORPHAN_DIR_SYSTEM_INODE` which is `EXTENT_ALLOC_SYSTEM_INODE`. Specifically, the path is through `ocfs2_reserve_suballoc_bits`, and then through `ocfs2_mknod` which calls it.

So, in the critical path, `ocfs2_mknod` is what's acquiring `EXTENT_ALLOC_SYSTEM_INODE`. We need to verify that `ocfs2_mknod` *does* indeed acquire this lock. This is important: that means `ocfs2_mknod` is the point where the `EXTENT_ALLOC_SYSTEM_INODE` lock gets involved in the dependency. This is where I need to dig deeper and confirm the locking order within `ocfs2_mknod` and the functions it calls, specifically `ocfs2_reserve_new_metadata_blocks` which is from the dependency chain. I need to understand if there is a problem with the lock acquisition order.



9/2 2026/05/29 16:52 tool grepper
0m Args:
map[Expression:ocfs2_reserve_new_metadata_blocks PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/alloc.c=5672=static int ocfs2_reserve_blocks_for_rec_trunc(struct inode *inode,
--
fs/ocfs2/alloc.c-5695-	if (extra_blocks) {
fs/ocfs2/alloc.c:5696:		ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, ac);
fs/ocfs2/alloc.c-5697-		if (ret < 0) {
--
fs/ocfs2/dir.c=2824=static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh,
--
fs/ocfs2/dir.c-2871-		/* This gets us the dx_root */
fs/ocfs2/dir.c:2872:		ret = ocfs2_reserve_new_metadata_blocks(osb, 1, &meta_ac);
fs/ocfs2/dir.c-2873-		if (ret) {
--
fs/ocfs2/move_extents.c=149=static int ocfs2_lock_meta_allocator_move_extents(struct inode *inode,
--
fs/ocfs2/move_extents.c-171-
fs/ocfs2/move_extents.c:172:	ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, meta_ac);
fs/ocfs2/move_extents.c-173-	if (ret) {
--
fs/ocfs2/namei.c=230=static int ocfs2_mknod(struct mnt_idmap *idmap,
--
fs/ocfs2/namei.c-350-
fs/ocfs2/namei.c:351:	status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac);
fs/ocfs2/namei.c-352-	if (status < 0) {
--
fs/ocfs2/refcounttree.c=550=static int ocfs2_create_refcount_tree(struct inode *inode,
--
fs/ocfs2/refcounttree.c-570-
fs/ocfs2/refcounttree.c:571:	ret = ocfs2_reserve_new_metadata_blocks(osb, 1, &meta_ac);
fs/ocfs2/refcounttree.c-572-	if (ret) {
--
fs/ocfs2/refcounttree.c=2830=static int ocfs2_lock_refcount_allocators(struct super_block *sb,
--
fs/ocfs2/refcounttree.c-2862-	trace_ocfs2_lock_refcount_allocators(meta_add, *credits);
fs/ocfs2/refcounttree.c:2863:	ret = ocfs2_reserve_new_metadata_blocks(OCFS2_SB(sb), meta_add,
fs/ocfs2/refcounttree.c-2864-						meta_ac);
--
fs/ocfs2/refcounttree.c=3645=int ocfs2_add_refcount_flag(struct inode *inode,
--
fs/ocfs2/refcounttree.c-3673-	if (ref_blocks) {
fs/ocfs2/refcounttree.c:3674:		ret = ocfs2_reserve_new_metadata_blocks(osb,
fs/ocfs2/refcounttree.c-3675-							ref_blocks, &meta_ac);
--
fs/ocfs2/suballoc.c=1049=static int ocfs2_steal_meta(struct ocfs2_super *osb,
--
fs/ocfs2/suballoc.c-1054-
fs/ocfs2/suballoc.c:1055:int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
fs/ocfs2/suballoc.c-1056-				      int blocks,
--
fs/ocfs2/suballoc.c=1117=int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
--
fs/ocfs2/suballoc.c-1120-{
fs/ocfs2/suballoc.c:1121:	return ocfs2_reserve_new_metadata_blocks(osb,
fs/ocfs2/suballoc.c-1122-					ocfs2_extend_meta_needed(root_el),
--
fs/ocfs2/suballoc.h=62=int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
--
fs/ocfs2/suballoc.h-64-			       struct ocfs2_alloc_context **ac);
fs/ocfs2/suballoc.h:65:int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
fs/ocfs2/suballoc.h-66-				      int blocks,
--
fs/ocfs2/xattr.c=576=int ocfs2_calc_security_init(struct inode *dir,
--
fs/ocfs2/xattr.c-593-	    s_size > OCFS2_XATTR_FREE_IN_IBODY) {
fs/ocfs2/xattr.c:594:		ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac);
fs/ocfs2/xattr.c-595-		if (ret) {
--
fs/ocfs2/xattr.c=2354=static int ocfs2_lock_xattr_remove_allocators(struct inode *inode,
--
fs/ocfs2/xattr.c-2385-
fs/ocfs2/xattr.c:2386:	ret = ocfs2_reserve_new_metadata_blocks(OCFS2_SB(inode->i_sb),
fs/ocfs2/xattr.c-2387-						meta_add, meta_ac);
--
fs/ocfs2/xattr.c=3280=static int ocfs2_init_xattr_set_ctxt(struct inode *inode,
--
fs/ocfs2/xattr.c-3307-	if (meta_add) {
fs/ocfs2/xattr.c:3308:		ret = ocfs2_reserve_new_metadata_blocks(osb, meta_add,
fs/ocfs2/xattr.c-3309-							&ctxt->meta_ac);
--
fs/ocfs2/xattr.c=6306=static int ocfs2_reflink_lock_xattr_allocators(struct ocfs2_super *osb,
--
fs/ocfs2/xattr.c-6342-
fs/ocfs2/xattr.c:6343:	ret = ocfs2_reserve_new_metadata_blocks(osb, meta_add, meta_ac);
fs/ocfs2/xattr.c-6344-	if (ret)
--
fs/ocfs2/xattr.c=6565=static int ocfs2_create_empty_xattr_block(struct inode *inode,
--
fs/ocfs2/xattr.c-6574-	memset(&ctxt, 0, sizeof(ctxt));
fs/ocfs2/xattr.c:6575:	ret = ocfs2_reserve_new_metadata_blocks(osb, 1, &ctxt.meta_ac);
fs/ocfs2/xattr.c-6576-	if (ret < 0) {
--
fs/ocfs2/xattr.c=6766=static int ocfs2_lock_reflink_xattr_rec_allocators(
--
fs/ocfs2/xattr.c-6827-	if (metas.num_metas) {
fs/ocfs2/xattr.c:6828:		ret = ocfs2_reserve_new_metadata_blocks(osb, metas.num_metas,
fs/ocfs2/xattr.c-6829-							meta_ac);
]

10/2 2026/05/29 16:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20784
							output: 39
							thoughts: 26
						

Thoughts:
Here's my take on the thought process, as if it were my own:

**Diving into the `ocfs2_mknod` Implementation**

Okay, time to get down to brass tacks. I need to understand what's happening with file creation in the OCFS2 filesystem. Let's start with the `ocfs2_mknod` function. That seems like the logical place to start - creating a new node, hence the "mknod". I'll locate it within `fs/ocfs2/namei.c`. Hopefully, the implementation in this file provides the relevant insights for understanding the creation of various node types, covering device nodes, regular files, etc., within the OCFS2 framework. Time to see what's what.



11/2 2026/05/29 16:52 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:340 LineCount:100]

Results:
map[Contents: 340:		}
 341:	
 342:		/* Reserve a cluster if creating an extent based directory. */
 343:		if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) {
 344:			want_clusters += 1;
 345:	
 346:			/* Dir indexing requires extra space as well */
 347:			if (ocfs2_supports_indexed_dirs(osb))
 348:				want_meta++;
 349:		}
 350:	
 351:		status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac);
 352:		if (status < 0) {
 353:			if (status != -ENOSPC)
 354:				mlog_errno(status);
 355:			goto leave;
 356:		}
 357:	
 358:		status = ocfs2_reserve_clusters(osb, want_clusters, &data_ac);
 359:		if (status < 0) {
 360:			if (status != -ENOSPC)
 361:				mlog_errno(status);
 362:			goto leave;
 363:		}
 364:	
 365:		handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb,
 366:								    S_ISDIR(mode),
 367:								    xattr_credits));
 368:		if (IS_ERR(handle)) {
 369:			status = PTR_ERR(handle);
 370:			handle = NULL;
 371:			mlog_errno(status);
 372:			goto leave;
 373:		}
 374:	
 375:		/* Starting to change things, restart is no longer possible. */
 376:		ocfs2_block_signals(&oldset);
 377:		did_block_signals = 1;
 378:	
 379:		status = dquot_alloc_inode(inode);
 380:		if (status)
 381:			goto leave;
 382:		did_quota_inode = 1;
 383:	
 384:		/* do the real work now. */
 385:		status = ocfs2_mknod_locked(osb, dir, inode, dev,
 386:					    &new_fe_bh, parent_fe_bh, handle,
 387:					    inode_ac);
 388:		if (status < 0) {
 389:			mlog_errno(status);
 390:			goto leave;
 391:		}
 392:	
 393:		fe = (struct ocfs2_dinode *) new_fe_bh->b_data;
 394:		if (S_ISDIR(mode)) {
 395:			status = ocfs2_fill_new_dir(osb, handle, dir, inode,
 396:						    new_fe_bh, data_ac, meta_ac);
 397:			if (status < 0) {
 398:				mlog_errno(status);
 399:				goto leave;
 400:			}
 401:	
 402:			status = ocfs2_journal_access_di(handle, INODE_CACHE(dir),
 403:							 parent_fe_bh,
 404:							 OCFS2_JOURNAL_ACCESS_WRITE);
 405:			if (status < 0) {
 406:				mlog_errno(status);
 407:				goto leave;
 408:			}
 409:			ocfs2_add_links_count(dirfe, 1);
 410:			ocfs2_journal_dirty(handle, parent_fe_bh);
 411:			inc_nlink(dir);
 412:		}
 413:	
 414:		status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh,
 415:				 meta_ac, data_ac);
 416:	
 417:		if (status < 0) {
 418:			mlog_errno(status);
 419:			goto roll_back;
 420:		}
 421:	
 422:		if (si.enable) {
 423:			status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si,
 424:							 meta_ac, data_ac);
 425:			if (status < 0) {
 426:				mlog_errno(status);
 427:				goto roll_back;
 428:			}
 429:		}
 430:	
 431:		/*
 432:		 * Do this before adding the entry to the directory. We add
 433:		 * also set d_op after success so that ->d_iput() will cleanup
 434:		 * the dentry lock even if ocfs2_add_entry() fails below.
 435:		 */
 436:		status = ocfs2_dentry_attach_lock(dentry, inode,
 437:						  OCFS2_I(dir)->ip_blkno);
 438:		if (status) {
 439:			mlog_errno(status);
]

12/2 2026/05/29 16:52 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22508
							output: 39
							thoughts: 53
						

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

**Examining `ocfs2_mknod`'s Allocation Order**

Okay, hold on a second. I'm just reviewing the `ocfs2_mknod` function, and something's pinging my radar. Did I just read that right? It looks like `ocfs2_mknod` acquires the `INODE_ALLOC_SYSTEM_INODE` lock *before* grabbing the `EXTENT_ALLOC_SYSTEM_INODE` lock. That seems a bit...unconventional, doesn't it? Generally, you'd think allocation order would flow from the broader resource (extents) to the more specific (inodes), but perhaps there's a good reason for this. Let's dig into the start of the function and refresh my memory on the control flow. Gotta be sure I'm not missing something in my mental model of OCFS2's locking strategy.



13/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:230 LineCount:100]

Results:
map[Contents: 230:	static int ocfs2_mknod(struct mnt_idmap *idmap,
 231:			       struct inode *dir,
 232:			       struct dentry *dentry,
 233:			       umode_t mode,
 234:			       dev_t dev)
 235:	{
 236:		int status = 0;
 237:		struct buffer_head *parent_fe_bh = NULL;
 238:		handle_t *handle = NULL;
 239:		struct ocfs2_super *osb;
 240:		struct ocfs2_dinode *dirfe;
 241:		struct ocfs2_dinode *fe = NULL;
 242:		struct buffer_head *new_fe_bh = NULL;
 243:		struct inode *inode = NULL;
 244:		struct ocfs2_alloc_context *inode_ac = NULL;
 245:		struct ocfs2_alloc_context *data_ac = NULL;
 246:		struct ocfs2_alloc_context *meta_ac = NULL;
 247:		int want_clusters = 0;
 248:		int want_meta = 0;
 249:		int xattr_credits = 0;
 250:		struct ocfs2_security_xattr_info si = {
 251:			.name = NULL,
 252:			.enable = 1,
 253:		};
 254:		int did_quota_inode = 0;
 255:		struct ocfs2_dir_lookup_result lookup = { NULL, };
 256:		sigset_t oldset;
 257:		int did_block_signals = 0;
 258:		struct ocfs2_dentry_lock *dl = NULL;
 259:	
 260:		trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name,
 261:				  (unsigned long long)OCFS2_I(dir)->ip_blkno,
 262:				  (unsigned long)dev, mode);
 263:	
 264:		status = dquot_initialize(dir);
 265:		if (status) {
 266:			mlog_errno(status);
 267:			return status;
 268:		}
 269:	
 270:		/* get our super block */
 271:		osb = OCFS2_SB(dir->i_sb);
 272:	
 273:		status = ocfs2_inode_lock(dir, &parent_fe_bh, 1);
 274:		if (status < 0) {
 275:			if (status != -ENOENT)
 276:				mlog_errno(status);
 277:			return status;
 278:		}
 279:	
 280:		if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) {
 281:			status = -EMLINK;
 282:			goto leave;
 283:		}
 284:	
 285:		dirfe = (struct ocfs2_dinode *) parent_fe_bh->b_data;
 286:		if (!ocfs2_read_links_count(dirfe)) {
 287:			/* can't make a file in a deleted directory. */
 288:			status = -ENOENT;
 289:			goto leave;
 290:		}
 291:	
 292:		status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
 293:						   dentry->d_name.len);
 294:		if (status)
 295:			goto leave;
 296:	
 297:		/* get a spot inside the dir. */
 298:		status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh,
 299:						      dentry->d_name.name,
 300:						      dentry->d_name.len, &lookup);
 301:		if (status < 0) {
 302:			mlog_errno(status);
 303:			goto leave;
 304:		}
 305:	
 306:		/* reserve an inode spot */
 307:		status = ocfs2_reserve_new_inode(osb, &inode_ac);
 308:		if (status < 0) {
 309:			if (status != -ENOSPC)
 310:				mlog_errno(status);
 311:			goto leave;
 312:		}
 313:	
 314:		inode = ocfs2_get_init_inode(dir, mode);
 315:		if (IS_ERR(inode)) {
 316:			status = PTR_ERR(inode);
 317:			inode = NULL;
 318:			mlog_errno(status);
 319:			goto leave;
 320:		}
 321:	
 322:		/* get security xattr */
 323:		status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si);
 324:		if (status) {
 325:			if (status == -EOPNOTSUPP)
 326:				si.enable = 0;
 327:			else {
 328:				mlog_errno(status);
 329:				goto leave;
]

14/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24348
							output: 35
							thoughts: 41
						

Thoughts:
Okay, here's my interpretation of that thought process, from an expert's perspective:

**Diving into Inode Allocation**

Right, so `ocfs2_reserve_new_inode` is kicking off the inode allocation process. The first thing that jumps out is that it grabs the `INODE_ALLOC_SYSTEM_INODE` lock. Naturally, my next thought is to go straight to `ocfs2_reserve_new_inode` and see exactly what's going on under the hood, I need to understand the specifics of this reservation. What's the context? What exactly does it entail? Is this the right place? I need more information to know for sure.



15/2 2026/05/29 16:53 tool grepper
0m Args:
map[Expression:ocfs2_reserve_new_inode PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/namei.c=230=static int ocfs2_mknod(struct mnt_idmap *idmap,
--
fs/ocfs2/namei.c-306-	/* reserve an inode spot */
fs/ocfs2/namei.c:307:	status = ocfs2_reserve_new_inode(osb, &inode_ac);
fs/ocfs2/namei.c-308-	if (status < 0) {
--
fs/ocfs2/namei.c=1807=static int ocfs2_symlink(struct mnt_idmap *idmap,
--
fs/ocfs2/namei.c-1880-
fs/ocfs2/namei.c:1881:	status = ocfs2_reserve_new_inode(osb, &inode_ac);
fs/ocfs2/namei.c-1882-	if (status < 0) {
--
fs/ocfs2/namei.c=2445=static int ocfs2_prep_new_orphaned_file(struct inode *dir,
--
fs/ocfs2/namei.c-2466-	/* reserve an inode spot */
fs/ocfs2/namei.c:2467:	ret = ocfs2_reserve_new_inode(osb, &inode_ac);
fs/ocfs2/namei.c-2468-	if (ret < 0) {
--
fs/ocfs2/ocfs2_trace.h=790=DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_no_new_group);
fs/ocfs2/ocfs2_trace.h-791-
fs/ocfs2/ocfs2_trace.h:792:DEFINE_OCFS2_ULL_EVENT(ocfs2_reserve_new_inode_new_group);
fs/ocfs2/ocfs2_trace.h-793-
--
fs/ocfs2/suballoc.c=1117=int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
--
fs/ocfs2/suballoc.c-1125-
fs/ocfs2/suballoc.c:1126:int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
fs/ocfs2/suballoc.c-1127-			    struct ocfs2_alloc_context **ac)
--
fs/ocfs2/suballoc.c-1179-		spin_unlock(&osb->osb_lock);
fs/ocfs2/suballoc.c:1180:		trace_ocfs2_reserve_new_inode_new_group(
fs/ocfs2/suballoc.c-1181-			(unsigned long long)alloc_group);
--
fs/ocfs2/suballoc.h=65=int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
--
fs/ocfs2/suballoc.h-67-				      struct ocfs2_alloc_context **ac);
fs/ocfs2/suballoc.h:68:int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
fs/ocfs2/suballoc.h-69-			    struct ocfs2_alloc_context **ac);
]

16/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25442
							output: 40
							thoughts: 28
						

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

**Analyzing the Inode Reservation Process in OCFS2**

Alright, time to get my hands dirty. I'm going to take a look at the `ocfs2_reserve_new_inode` function. Specifically, I'm finding this in the `fs/ocfs2/suballoc.c` file. I need to refresh my memory on how OCFS2 handles inode allocation and this seems like the key function to dissect. I'm expecting this function will be the gatekeeper, managing the reservation of a fresh inode in the OCFS2 filesystem. Let's see what the code has to say about the intricacies of block allocation, bitmap manipulation, and potential contention during the inode creation process. I'll be particularly interested in the strategies employed to avoid fragmentation and ensure efficient use of disk space. This is where the magic (or the bugs!) typically live when it comes to filesystem design, so I'm keen to get a solid grasp of this function's logic.



17/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/suballoc.c FirstLine:1126 LineCount:100]

Results:
map[Contents:1126:	int ocfs2_reserve_new_inode(struct ocfs2_super *osb,
1127:				    struct ocfs2_alloc_context **ac)
1128:	{
1129:		int status;
1130:		int slot = ocfs2_get_inode_steal_slot(osb);
1131:		u64 alloc_group;
1132:	
1133:		*ac = kzalloc_obj(struct ocfs2_alloc_context);
1134:		if (!(*ac)) {
1135:			status = -ENOMEM;
1136:			mlog_errno(status);
1137:			goto bail;
1138:		}
1139:	
1140:		(*ac)->ac_bits_wanted = 1;
1141:		(*ac)->ac_which = OCFS2_AC_USE_INODE;
1142:	
1143:		(*ac)->ac_group_search = ocfs2_block_group_search;
1144:	
1145:		/*
1146:		 * stat(2) can't handle i_ino > 32bits, so we tell the
1147:		 * lower levels not to allocate us a block group past that
1148:		 * limit.  The 'inode64' mount option avoids this behavior.
1149:		 */
1150:		if (!(osb->s_mount_opt & OCFS2_MOUNT_INODE64))
1151:			(*ac)->ac_max_block = (u32)~0U;
1152:	
1153:		/*
1154:		 * slot is set when we successfully steal inode from other nodes.
1155:		 * It is reset in 3 places:
1156:		 * 1. when we flush the truncate log
1157:		 * 2. when we complete local alloc recovery.
1158:		 * 3. when we successfully allocate from our own slot.
1159:		 * After it is set, we will go on stealing inodes until we find the
1160:		 * need to check our slots to see whether there is some space for us.
1161:		 */
1162:		if (slot != OCFS2_INVALID_SLOT &&
1163:		    atomic_read(&osb->s_num_inodes_stolen) < OCFS2_MAX_TO_STEAL)
1164:			goto inode_steal;
1165:	
1166:		atomic_set(&osb->s_num_inodes_stolen, 0);
1167:		alloc_group = osb->osb_inode_alloc_group;
1168:		status = ocfs2_reserve_suballoc_bits(osb, *ac,
1169:						     INODE_ALLOC_SYSTEM_INODE,
1170:						     (u32)osb->slot_num,
1171:						     &alloc_group,
1172:						     ALLOC_NEW_GROUP |
1173:						     ALLOC_GROUPS_FROM_GLOBAL);
1174:		if (status >= 0) {
1175:			status = 0;
1176:	
1177:			spin_lock(&osb->osb_lock);
1178:			osb->osb_inode_alloc_group = alloc_group;
1179:			spin_unlock(&osb->osb_lock);
1180:			trace_ocfs2_reserve_new_inode_new_group(
1181:				(unsigned long long)alloc_group);
1182:	
1183:			/*
1184:			 * Some inodes must be freed by us, so try to allocate
1185:			 * from our own next time.
1186:			 */
1187:			if (slot != OCFS2_INVALID_SLOT)
1188:				ocfs2_init_inode_steal_slot(osb);
1189:			goto bail;
1190:		} else if (status < 0 && status != -ENOSPC) {
1191:			mlog_errno(status);
1192:			goto bail;
1193:		}
1194:	
1195:		ocfs2_free_ac_resource(*ac);
1196:	
1197:	inode_steal:
1198:		status = ocfs2_steal_inode(osb, *ac);
1199:		atomic_inc(&osb->s_num_inodes_stolen);
1200:		if (status < 0) {
1201:			if (status != -ENOSPC)
1202:				mlog_errno(status);
1203:			goto bail;
1204:		}
1205:	
1206:		status = 0;
1207:	bail:
1208:		if ((status < 0) && *ac) {
1209:			ocfs2_free_alloc_context(*ac);
1210:			*ac = NULL;
1211:		}
1212:	
1213:		if (status)
1214:			mlog_errno(status);
1215:		return status;
1216:	}
1217:	
1218:	/* local alloc code has to do the same thing, so rather than do this
1219:	 * twice.. */
1220:	int ocfs2_reserve_cluster_bitmap_bits(struct ocfs2_super *osb,
1221:					      struct ocfs2_alloc_context *ac)
1222:	{
1223:		int status;
1224:	
1225:		ac->ac_which = OCFS2_AC_USE_MAIN;
]

18/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27308
							output: 39
							thoughts: 244
						

Thoughts:
**Analyzing OCFS2 Inode and Metadata Allocation**

Okay, so I'm digging into how OCFS2 handles inode and metadata allocation, specifically around `ocfs2_reserve_new_inode` and `ocfs2_reserve_new_metadata_blocks`. It looks like `ocfs2_reserve_new_inode` ultimately calls `ocfs2_reserve_suballoc_bits` with `INODE_ALLOC_SYSTEM_INODE`, and `ocfs2_reserve_new_metadata_blocks` does the same, but with `EXTENT_ALLOC_SYSTEM_INODE`.

The code snippet in `ocfs2_mknod` is interesting. It clearly shows `ocfs2_reserve_new_inode` being called *before* `ocfs2_reserve_new_metadata_blocks`. That's a key sequencing point to consider. Now, my immediate thought is about the locking strategy in `ocfs2_reserve_suballoc_bits`. Does it acquire the lock and then release it, or does it hold onto it? This is crucial for understanding concurrency and potential contention during allocation. I really need to check the source code for `ocfs2_reserve_suballoc_bits` to verify the lock behavior and clarify the interaction between inode and metadata reservation. Let's see how that works.



19/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/suballoc.c FirstLine:880 LineCount:100]

Results:
map[Contents: 880:		}
 881:	
 882:		inode_lock(alloc_inode);
 883:	
 884:		status = ocfs2_inode_lock(alloc_inode, &bh, 1);
 885:		if (status < 0) {
 886:			inode_unlock(alloc_inode);
 887:			iput(alloc_inode);
 888:	
 889:			mlog_errno(status);
 890:			return status;
 891:		}
 892:	
 893:		ac->ac_inode = alloc_inode;
 894:		ac->ac_alloc_slot = slot;
 895:	
 896:		fe = (struct ocfs2_dinode *) bh->b_data;
 897:	
 898:		/* The bh was validated by the inode read inside
 899:		 * ocfs2_inode_lock().  Any corruption is a code bug. */
 900:		BUG_ON(!OCFS2_IS_VALID_DINODE(fe));
 901:	
 902:		if (!(fe->i_flags & cpu_to_le32(OCFS2_CHAIN_FL))) {
 903:			status = ocfs2_error(alloc_inode->i_sb,
 904:					     "Invalid chain allocator %llu\n",
 905:					     (unsigned long long)le64_to_cpu(fe->i_blkno));
 906:			goto bail;
 907:		}
 908:	
 909:		free_bits = le32_to_cpu(fe->id1.bitmap1.i_total) -
 910:			le32_to_cpu(fe->id1.bitmap1.i_used);
 911:	
 912:		if (bits_wanted > free_bits) {
 913:			/* cluster bitmap never grows */
 914:			if (ocfs2_is_cluster_bitmap(alloc_inode)) {
 915:				trace_ocfs2_reserve_suballoc_bits_nospc(bits_wanted,
 916:									free_bits);
 917:				status = -ENOSPC;
 918:				goto bail;
 919:			}
 920:	
 921:			if (!(flags & ALLOC_NEW_GROUP)) {
 922:				trace_ocfs2_reserve_suballoc_bits_no_new_group(
 923:							slot, bits_wanted, free_bits);
 924:				status = -ENOSPC;
 925:				goto bail;
 926:			}
 927:	
 928:			status = ocfs2_block_group_alloc(osb, alloc_inode, bh,
 929:							 ac->ac_max_block,
 930:							 last_alloc_group, flags);
 931:			if (status < 0) {
 932:				if (status != -ENOSPC)
 933:					mlog_errno(status);
 934:				goto bail;
 935:			}
 936:			atomic_inc(&osb->alloc_stats.bg_extends);
 937:	
 938:			/* You should never ask for this much metadata */
 939:			BUG_ON(bits_wanted >
 940:			       (le32_to_cpu(fe->id1.bitmap1.i_total)
 941:				- le32_to_cpu(fe->id1.bitmap1.i_used)));
 942:		}
 943:	
 944:		get_bh(bh);
 945:		ac->ac_bh = bh;
 946:	bail:
 947:		brelse(bh);
 948:	
 949:		if (status)
 950:			mlog_errno(status);
 951:		return status;
 952:	}
 953:	
 954:	static void ocfs2_init_inode_steal_slot(struct ocfs2_super *osb)
 955:	{
 956:		spin_lock(&osb->osb_lock);
 957:		osb->s_inode_steal_slot = OCFS2_INVALID_SLOT;
 958:		spin_unlock(&osb->osb_lock);
 959:		atomic_set(&osb->s_num_inodes_stolen, 0);
 960:	}
 961:	
 962:	static void ocfs2_init_meta_steal_slot(struct ocfs2_super *osb)
 963:	{
 964:		spin_lock(&osb->osb_lock);
 965:		osb->s_meta_steal_slot = OCFS2_INVALID_SLOT;
 966:		spin_unlock(&osb->osb_lock);
 967:		atomic_set(&osb->s_num_meta_stolen, 0);
 968:	}
 969:	
 970:	void ocfs2_init_steal_slots(struct ocfs2_super *osb)
 971:	{
 972:		ocfs2_init_inode_steal_slot(osb);
 973:		ocfs2_init_meta_steal_slot(osb);
 974:	}
 975:	
 976:	static void __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type)
 977:	{
 978:		spin_lock(&osb->osb_lock);
 979:		if (type == INODE_ALLOC_SYSTEM_INODE)
]

20/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29447
							output: 39
							thoughts: 681
						

Thoughts:
**Analyzing OCFS2 Lock Dependencies in File Write Iterations**

Okay, let's break this down. My initial thought is that `ocfs2_reserve_suballoc_bits` is holding onto locks acquired by calling `inode_lock(alloc_inode)` and `ocfs2_inode_lock(alloc_inode, &bh, 1)`. I see that the context stores `ac->ac_inode = alloc_inode;` and `ac->ac_bh = bh;`, which strongly suggests the locks are held until `ocfs2_free_alloc_context` is invoked. That's good to know for context.

Now, focusing on `ocfs2_mknod`, I see that `ocfs2_reserve_new_inode` acquires the `INODE_ALLOC_SYSTEM_INODE` lock, and `ocfs2_reserve_new_metadata_blocks` subsequently acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. This directly establishes a dependency: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`. Makes sense.

But the lockdep report… it throws a wrench into the works. It says there's a dependency of `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`. I have to track down where `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` is being established.

The report points to `ocfs2_del_inode_from_orphan`, called from `ocfs2_dio_end_io_write`, then `ocfs2_dio_end_io` which itself is called from `ocfs2_file_write_iter`. I need to figure out which lock is being held before `ORPHAN_DIR_SYSTEM_INODE` in `ocfs2_file_write_iter`. I'll have to investigate the code path starting from `ocfs2_file_write_iter` and work backwards to trace the lock acquisition sequence. Time to dig into the source!



21/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/file.c FirstLine:2450 LineCount:100]

Results:
map[Contents:2450:		ret = generic_write_checks(iocb, from);
2451:		if (ret <= 0) {
2452:			if (ret)
2453:				mlog_errno(ret);
2454:			goto out;
2455:		}
2456:		count = ret;
2457:	
2458:		ret = ocfs2_prepare_inode_for_write(file, iocb->ki_pos, count, !nowait);
2459:		if (ret < 0) {
2460:			if (ret != -EAGAIN)
2461:				mlog_errno(ret);
2462:			goto out;
2463:		}
2464:	
2465:		if (direct_io && !is_sync_kiocb(iocb) &&
2466:		    ocfs2_is_io_unaligned(inode, count, iocb->ki_pos)) {
2467:			/*
2468:			 * Make it a sync io if it's an unaligned aio.
2469:			 */
2470:			saved_ki_complete = xchg(&iocb->ki_complete, NULL);
2471:		}
2472:	
2473:		/* communicate with ocfs2_dio_end_io */
2474:		ocfs2_iocb_set_rw_locked(iocb, rw_level);
2475:	
2476:		written = __generic_file_write_iter(iocb, from);
2477:		/* buffered aio wouldn't have proper lock coverage today */
2478:		BUG_ON(written == -EIOCBQUEUED && !direct_io);
2479:	
2480:		/*
2481:		 * deep in g_f_a_w_n()->ocfs2_direct_IO we pass in a ocfs2_dio_end_io
2482:		 * function pointer which is called when o_direct io completes so that
2483:		 * it can unlock our rw lock.
2484:		 * Unfortunately there are error cases which call end_io and others
2485:		 * that don't.  so we don't have to unlock the rw_lock if either an
2486:		 * async dio is going to do it in the future or an end_io after an
2487:		 * error has already done it.
2488:		 */
2489:		if ((written == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) {
2490:			rw_level = -1;
2491:		}
2492:	
2493:		if (unlikely(written <= 0))
2494:			goto out;
2495:	
2496:		if (((file->f_flags & O_DSYNC) && !direct_io) ||
2497:		    IS_SYNC(inode)) {
2498:			ret = filemap_fdatawrite_range(file->f_mapping,
2499:						       iocb->ki_pos - written,
2500:						       iocb->ki_pos - 1);
2501:			if (ret < 0)
2502:				written = ret;
2503:	
2504:			if (!ret) {
2505:				ret = jbd2_journal_force_commit(osb->journal->j_journal);
2506:				if (ret < 0)
2507:					written = ret;
2508:			}
2509:	
2510:			if (!ret)
2511:				ret = filemap_fdatawait_range(file->f_mapping,
2512:							      iocb->ki_pos - written,
2513:							      iocb->ki_pos - 1);
2514:		}
2515:	
2516:	out:
2517:		if (saved_ki_complete)
2518:			xchg(&iocb->ki_complete, saved_ki_complete);
2519:	
2520:		if (rw_level != -1)
2521:			ocfs2_rw_unlock(inode, rw_level);
2522:	
2523:	out_mutex:
2524:		inode_unlock(inode);
2525:	
2526:		if (written)
2527:			ret = written;
2528:		return ret;
2529:	}
2530:	
2531:	static ssize_t ocfs2_file_read_iter(struct kiocb *iocb,
2532:					   struct iov_iter *to)
2533:	{
2534:		int ret = 0, rw_level = -1, lock_level = 0;
2535:		struct file *filp = iocb->ki_filp;
2536:		struct inode *inode = file_inode(filp);
2537:		int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0;
2538:		int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0;
2539:	
2540:		trace_ocfs2_file_read_iter(inode, filp, filp->f_path.dentry,
2541:				(unsigned long long)OCFS2_I(inode)->ip_blkno,
2542:				filp->f_path.dentry->d_name.len,
2543:				filp->f_path.dentry->d_name.name,
2544:				to->nr_segs);	/* GRRRRR */
2545:	
2546:	
2547:		if (!inode) {
2548:			ret = -EINVAL;
2549:			mlog_errno(ret);
]

22/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32245
							output: 39
							thoughts: 51
						

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

**Diving into the Write Iteration**

Okay, so I'm looking at `ocfs2_file_write_iter`, which is the core of how OCFS2 handles file writes. I need to understand this better. Now, a key step in a write operation is often pre-processing, and I suspect `ocfs2_prepare_inode_for_write` is doing some of that heavy lifting. Hmm, that name rings a bell, I wonder if this function is actually acquiring locks before the write happens? If it does, there could be interesting implications for concurrency and potential deadlocks, or just performance generally.

Let me take a look at the code for `ocfs2_prepare_inode_for_write` immediately and see what's going on under the hood. I need to verify that it does, or doesn't, take any locks, and if so, understand which ones and in what order. This is a critical point to ensure the correctness and scalability of the write path. Time to jump into the function definition.



23/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/file.c FirstLine:2290 LineCount:100]

Results:
map[Contents:2290:	
2291:				ret = ocfs2_overwrite_io(inode, di_bh, pos, count);
2292:				if (ret < 0) {
2293:					if (ret != -EAGAIN)
2294:						mlog_errno(ret);
2295:					goto out_unlock;
2296:				}
2297:			}
2298:	
2299:			/* Clear suid / sgid if necessary. We do this here
2300:			 * instead of later in the write path because
2301:			 * remove_suid() calls ->setattr without any hint that
2302:			 * we may have already done our cluster locking. Since
2303:			 * ocfs2_setattr() *must* take cluster locks to
2304:			 * proceed, this will lead us to recursively lock the
2305:			 * inode. There's also the dinode i_size state which
2306:			 * can be lost via setattr during extending writes (we
2307:			 * set inode->i_size at the end of a write. */
2308:			if (setattr_should_drop_suidgid(&nop_mnt_idmap, inode)) {
2309:				if (meta_level == 0) {
2310:					ocfs2_inode_unlock_for_extent_tree(inode,
2311:									   &di_bh,
2312:									   meta_level,
2313:									   write_sem);
2314:					meta_level = 1;
2315:					continue;
2316:				}
2317:	
2318:				ret = ocfs2_write_remove_suid(inode);
2319:				if (ret < 0) {
2320:					mlog_errno(ret);
2321:					goto out_unlock;
2322:				}
2323:			}
2324:	
2325:			ret = ocfs2_check_range_for_refcount(inode, pos, count);
2326:			if (ret == 1) {
2327:				ocfs2_inode_unlock_for_extent_tree(inode,
2328:								   &di_bh,
2329:								   meta_level,
2330:								   write_sem);
2331:				meta_level = 1;
2332:				write_sem = 1;
2333:				ret = ocfs2_inode_lock_for_extent_tree(inode,
2334:								       &di_bh,
2335:								       meta_level,
2336:								       write_sem,
2337:								       wait);
2338:				if (ret < 0) {
2339:					if (ret != -EAGAIN)
2340:						mlog_errno(ret);
2341:					goto out;
2342:				}
2343:	
2344:				cpos = pos >> OCFS2_SB(inode->i_sb)->s_clustersize_bits;
2345:				clusters =
2346:					ocfs2_clusters_for_bytes(inode->i_sb, pos + count) - cpos;
2347:				ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX);
2348:			}
2349:	
2350:			if (ret < 0) {
2351:				if (ret != -EAGAIN)
2352:					mlog_errno(ret);
2353:				goto out_unlock;
2354:			}
2355:	
2356:			break;
2357:		}
2358:	
2359:	out_unlock:
2360:		trace_ocfs2_prepare_inode_for_write(OCFS2_I(inode)->ip_blkno,
2361:						    pos, count, wait);
2362:	
2363:		ocfs2_inode_unlock_for_extent_tree(inode,
2364:						   &di_bh,
2365:						   meta_level,
2366:						   write_sem);
2367:	
2368:	out:
2369:		return ret;
2370:	}
2371:	
2372:	static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
2373:					    struct iov_iter *from)
2374:	{
2375:		int rw_level;
2376:		ssize_t written = 0;
2377:		ssize_t ret;
2378:		size_t count = iov_iter_count(from);
2379:		struct file *file = iocb->ki_filp;
2380:		struct inode *inode = file_inode(file);
2381:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2382:		int full_coherency = !(osb->s_mount_opt &
2383:				       OCFS2_MOUNT_COHERENCY_BUFFERED);
2384:		void *saved_ki_complete = NULL;
2385:		int append_write = ((iocb->ki_pos + count) >=
2386:				i_size_read(inode) ? 1 : 0);
2387:		int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0;
2388:		int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0;
2389:	
]

24/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34126
							output: 39
							thoughts: 48
						

Thoughts:
Okay, let me think this through.

**Analyzing the `ocfs2_file_write_iter` and its Locking Behavior**

Right, so `ocfs2_file_write_iter` is the critical function here for writes, and it calls `ocfs2_rw_lock` – that's the key. Now, where else does `ocfs2_rw_lock` get invoked? I need to understand the full context of how this read-write lock is used within the OCFS2 file system. What are the calling patterns around it, what `rw_level` values are passed and how that impacts concurrency and data integrity? Understanding where else it is used will help me evaluate any possible contention points and ensure that this write path is interacting correctly. I need to trace those calls and build a clear mental model of the locking strategy at play.



25/2 2026/05/29 16:53 tool read-file
0m Args:
map[File:fs/ocfs2/file.c FirstLine:2390 LineCount:100]

Results:
map[Contents:2390:		trace_ocfs2_file_write_iter(inode, file, file->f_path.dentry,
2391:			(unsigned long long)OCFS2_I(inode)->ip_blkno,
2392:			file->f_path.dentry->d_name.len,
2393:			file->f_path.dentry->d_name.name,
2394:			(unsigned int)from->nr_segs);	/* GRRRRR */
2395:	
2396:		if (!direct_io && nowait)
2397:			return -EOPNOTSUPP;
2398:	
2399:		if (count == 0)
2400:			return 0;
2401:	
2402:		if (nowait) {
2403:			if (!inode_trylock(inode))
2404:				return -EAGAIN;
2405:		} else
2406:			inode_lock(inode);
2407:	
2408:		ocfs2_iocb_init_rw_locked(iocb);
2409:	
2410:		/*
2411:		 * Concurrent O_DIRECT writes are allowed with
2412:		 * mount_option "coherency=buffered".
2413:		 * For append write, we must take rw EX.
2414:		 */
2415:		rw_level = (!direct_io || full_coherency || append_write);
2416:	
2417:		if (nowait)
2418:			ret = ocfs2_try_rw_lock(inode, rw_level);
2419:		else
2420:			ret = ocfs2_rw_lock(inode, rw_level);
2421:		if (ret < 0) {
2422:			if (ret != -EAGAIN)
2423:				mlog_errno(ret);
2424:			goto out_mutex;
2425:		}
2426:	
2427:		/*
2428:		 * O_DIRECT writes with "coherency=full" need to take EX cluster
2429:		 * inode_lock to guarantee coherency.
2430:		 */
2431:		if (direct_io && full_coherency) {
2432:			/*
2433:			 * We need to take and drop the inode lock to force
2434:			 * other nodes to drop their caches.  Buffered I/O
2435:			 * already does this in write_begin().
2436:			 */
2437:			if (nowait)
2438:				ret = ocfs2_try_inode_lock(inode, NULL, 1);
2439:			else
2440:				ret = ocfs2_inode_lock(inode, NULL, 1);
2441:			if (ret < 0) {
2442:				if (ret != -EAGAIN)
2443:					mlog_errno(ret);
2444:				goto out;
2445:			}
2446:	
2447:			ocfs2_inode_unlock(inode, 1);
2448:		}
2449:	
2450:		ret = generic_write_checks(iocb, from);
2451:		if (ret <= 0) {
2452:			if (ret)
2453:				mlog_errno(ret);
2454:			goto out;
2455:		}
2456:		count = ret;
2457:	
2458:		ret = ocfs2_prepare_inode_for_write(file, iocb->ki_pos, count, !nowait);
2459:		if (ret < 0) {
2460:			if (ret != -EAGAIN)
2461:				mlog_errno(ret);
2462:			goto out;
2463:		}
2464:	
2465:		if (direct_io && !is_sync_kiocb(iocb) &&
2466:		    ocfs2_is_io_unaligned(inode, count, iocb->ki_pos)) {
2467:			/*
2468:			 * Make it a sync io if it's an unaligned aio.
2469:			 */
2470:			saved_ki_complete = xchg(&iocb->ki_complete, NULL);
2471:		}
2472:	
2473:		/* communicate with ocfs2_dio_end_io */
2474:		ocfs2_iocb_set_rw_locked(iocb, rw_level);
2475:	
2476:		written = __generic_file_write_iter(iocb, from);
2477:		/* buffered aio wouldn't have proper lock coverage today */
2478:		BUG_ON(written == -EIOCBQUEUED && !direct_io);
2479:	
2480:		/*
2481:		 * deep in g_f_a_w_n()->ocfs2_direct_IO we pass in a ocfs2_dio_end_io
2482:		 * function pointer which is called when o_direct io completes so that
2483:		 * it can unlock our rw lock.
2484:		 * Unfortunately there are error cases which call end_io and others
2485:		 * that don't.  so we don't have to unlock the rw_lock if either an
2486:		 * async dio is going to do it in the future or an end_io after an
2487:		 * error has already done it.
2488:		 */
2489:		if ((written == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) {
]

26/2 2026/05/29 16:53 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35962
							output: 40
							thoughts: 252
						

Thoughts:
**My Convoluted Walk Through the OCFS2 Write Path**

Okay, so I'm tracing this write path in OCFS2, starting with `ocfs2_file_write_iter`. First off, I see it takes `inode_lock(inode)` which is using the `i_rwsem`. Then, it immediately calls `ocfs2_rw_lock(inode, rw_level)`. This feels a bit redundant, doesn't it? Let's keep going.

Now it dives into `ocfs2_prepare_inode_for_write`. This looks interesting, because it calls `ocfs2_inode_lock_for_extent_tree`, and this is where it *could* allocate extents. That triggers some alarms. If it *is* allocating extents in this context, shouldn't we be looking for contention around `EXTENT_ALLOC_SYSTEM_INODE`? This is something I'll need to keep an eye on.

So this prepare function then calls either `ocfs2_overwrite_io` or `ocfs2_check_range_for_refcount`. Hmmm... that's where the actual I/O or refcount check takes place. Now, I have another trigger. I'm seeing that `ocfs2_dio_end_io_write` is called from `ocfs2_dio_end_io`, which comes from `dio_complete`. That's the asynchronous completion path for direct I/O.

And here's where it gets really interesting: `ocfs2_dio_end_io_write` calls `ocfs2_del_inode_from_orphan`. Why is orphan cleanup happening in the DIO completion path for *writes*? I need to understand this better. I think I'll dive into `ocfs2_dio_end_io_write` to see exactly what's going on there. I'm expecting something to be amiss, so I want to be certain about the connection.



27/2 2026/05/29 16:54 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:2360 LineCount:100]

Results:
map[Contents:2360:					mlog_errno(ret);
2361:					goto unlock;
2362:				}
2363:			}
2364:			ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
2365:			if (ret < 0)
2366:				mlog_errno(ret);
2367:		}
2368:	
2369:	commit:
2370:		if (handle)
2371:			ocfs2_commit_trans(osb, handle);
2372:	unlock:
2373:		up_write(&oi->ip_alloc_sem);
2374:	
2375:		/* everything looks good, let's start the cleanup */
2376:		if (!ret && dwc->dw_orphaned) {
2377:			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
2378:	
2379:			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2380:			if (ret < 0)
2381:				mlog_errno(ret);
2382:		}
2383:		ocfs2_inode_unlock(inode, 1);
2384:		brelse(di_bh);
2385:	out:
2386:		if (data_ac)
2387:			ocfs2_free_alloc_context(data_ac);
2388:		if (meta_ac)
2389:			ocfs2_free_alloc_context(meta_ac);
2390:		ocfs2_run_deallocs(osb, &dealloc);
2391:		ocfs2_dio_free_write_ctx(inode, dwc);
2392:	
2393:		return ret;
2394:	}
2395:	
2396:	/*
2397:	 * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
2398:	 * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
2399:	 * to protect io on one node from truncation on another.
2400:	 */
2401:	static int ocfs2_dio_end_io(struct kiocb *iocb,
2402:				    loff_t offset,
2403:				    ssize_t bytes,
2404:				    void *private)
2405:	{
2406:		struct inode *inode = file_inode(iocb->ki_filp);
2407:		int level;
2408:		int ret = 0;
2409:	
2410:		/* this io's submitter should not have unlocked this before we could */
2411:		BUG_ON(!ocfs2_iocb_is_rw_locked(iocb));
2412:	
2413:		if (bytes <= 0)
2414:			mlog_ratelimited(ML_ERROR, "Direct IO failed, bytes = %lld",
2415:					 (long long)bytes);
2416:		if (private) {
2417:			if (bytes > 0)
2418:				ret = ocfs2_dio_end_io_write(inode, private, offset,
2419:							     bytes);
2420:			else
2421:				ocfs2_dio_free_write_ctx(inode, private);
2422:		}
2423:	
2424:		ocfs2_iocb_clear_rw_locked(iocb);
2425:	
2426:		level = ocfs2_iocb_rw_locked_level(iocb);
2427:		ocfs2_rw_unlock(inode, level);
2428:		return ret;
2429:	}
2430:	
2431:	static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
2432:	{
2433:		struct file *file = iocb->ki_filp;
2434:		struct inode *inode = file->f_mapping->host;
2435:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2436:		get_block_t *get_block;
2437:	
2438:		/*
2439:		 * Fallback to buffered I/O if we see an inode without
2440:		 * extents.
2441:		 */
2442:		if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
2443:			return 0;
2444:	
2445:		/* Fallback to buffered I/O if we do not support append dio. */
2446:		if (iocb->ki_pos + iter->count > i_size_read(inode) &&
2447:		    !ocfs2_supports_append_dio(osb))
2448:			return 0;
2449:	
2450:		if (iov_iter_rw(iter) == READ)
2451:			get_block = ocfs2_lock_get_block;
2452:		else
2453:			get_block = ocfs2_dio_wr_get_block;
2454:	
2455:		return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
2456:					    iter, get_block,
2457:					    ocfs2_dio_end_io, 0);
2458:	}
2459:	
]

28/2 2026/05/29 16:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38260
							output: 40
							thoughts: 62
						

Thoughts:
Okay, here's my interpretation of this code flow, from a perspective of analyzing its behavior:

**Diving into the `ocfs2_dio_end_io_write` Function**

Alright, so I'm tracing this `ocfs2_dio_end_io_write` function. The call stack just indicated that it's calling `ocfs2_del_inode_from_orphan` directly. I need to understand what that function does in this specific context.  I immediately recognize that `osb`, `inode`, and `di_bh` are passed to the function, along with `0, 0` for some flags, which are probably related to the deletion or processing of the inode. Let me dig into the details of the `ocfs2_del_inode_from_orphan` function now; I need to figure out what it's contributing at this point of the write cycle. That's the key to understanding this particular step.



29/2 2026/05/29 16:54 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:2720 LineCount:100]

Results:
map[Contents:2720:				ORPHAN_DIR_SYSTEM_INODE,
2721:				le16_to_cpu(di->i_dio_orphaned_slot));
2722:		if (!orphan_dir_inode) {
2723:			status = -ENOENT;
2724:			mlog_errno(status);
2725:			goto bail;
2726:		}
2727:	
2728:		inode_lock(orphan_dir_inode);
2729:		status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1);
2730:		if (status < 0) {
2731:			inode_unlock(orphan_dir_inode);
2732:			iput(orphan_dir_inode);
2733:			mlog_errno(status);
2734:			goto bail;
2735:		}
2736:	
2737:		handle = ocfs2_start_trans(osb,
2738:				OCFS2_INODE_DEL_FROM_ORPHAN_CREDITS);
2739:		if (IS_ERR(handle)) {
2740:			status = PTR_ERR(handle);
2741:			goto bail_unlock_orphan;
2742:		}
2743:	
2744:		BUG_ON(!(di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL)));
2745:	
2746:		status = ocfs2_orphan_del(osb, handle, orphan_dir_inode,
2747:					inode, orphan_dir_bh, true);
2748:		if (status < 0) {
2749:			mlog_errno(status);
2750:			goto bail_commit;
2751:		}
2752:	
2753:		status = ocfs2_journal_access_di(handle,
2754:				INODE_CACHE(inode),
2755:				di_bh,
2756:				OCFS2_JOURNAL_ACCESS_WRITE);
2757:		if (status < 0) {
2758:			mlog_errno(status);
2759:			goto bail_commit;
2760:		}
2761:	
2762:		di->i_flags &= ~cpu_to_le32(OCFS2_DIO_ORPHANED_FL);
2763:		di->i_dio_orphaned_slot = 0;
2764:	
2765:		if (update_isize) {
2766:			status = ocfs2_set_inode_size(handle, inode, di_bh, end);
2767:			if (status)
2768:				mlog_errno(status);
2769:		} else
2770:			ocfs2_journal_dirty(handle, di_bh);
2771:	
2772:	bail_commit:
2773:		ocfs2_commit_trans(osb, handle);
2774:	
2775:	bail_unlock_orphan:
2776:		ocfs2_inode_unlock(orphan_dir_inode, 1);
2777:		inode_unlock(orphan_dir_inode);
2778:		brelse(orphan_dir_bh);
2779:		iput(orphan_dir_inode);
2780:	
2781:	bail:
2782:		return status;
2783:	}
2784:	
2785:	int ocfs2_mv_orphaned_inode_to_new(struct inode *dir,
2786:					   struct inode *inode,
2787:					   struct dentry *dentry)
2788:	{
2789:		int status = 0;
2790:		struct buffer_head *parent_di_bh = NULL;
2791:		handle_t *handle = NULL;
2792:		struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
2793:		struct ocfs2_dinode *dir_di, *di;
2794:		struct inode *orphan_dir_inode = NULL;
2795:		struct buffer_head *orphan_dir_bh = NULL;
2796:		struct buffer_head *di_bh = NULL;
2797:		struct ocfs2_dir_lookup_result lookup = { NULL, };
2798:	
2799:		trace_ocfs2_mv_orphaned_inode_to_new(dir, dentry,
2800:					dentry->d_name.len, dentry->d_name.name,
2801:					(unsigned long long)OCFS2_I(dir)->ip_blkno,
2802:					(unsigned long long)OCFS2_I(inode)->ip_blkno);
2803:	
2804:		status = ocfs2_inode_lock(dir, &parent_di_bh, 1);
2805:		if (status < 0) {
2806:			if (status != -ENOENT)
2807:				mlog_errno(status);
2808:			return status;
2809:		}
2810:	
2811:		dir_di = (struct ocfs2_dinode *) parent_di_bh->b_data;
2812:		if (!dir_di->i_links_count) {
2813:			/* can't make a file in a deleted directory. */
2814:			status = -ENOENT;
2815:			goto leave;
2816:		}
2817:	
2818:		status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name,
2819:						   dentry->d_name.len);
]

30/2 2026/05/29 16:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40152
							output: 40
							thoughts: 2789
						

Thoughts:
**Locking Hierarchy in OCFS2: A Deep Dive into System Inode Dependencies**

Okay, so I'm digging into this lock dependency issue within the OCFS2 code. It looks like we've got a potential lock order reversal or, at the very least, a complex locking pattern emerging. Specifically, I'm focusing on how `EXTENT_ALLOC_SYSTEM_INODE` and `ORPHAN_DIR_SYSTEM_INODE` interact, and how this relates to a write operation, in conjunction with `INODE_ALLOC_SYSTEM_INODE`.

Initially, I see `ocfs2_del_inode_from_orphan` grabbing `ORPHAN_DIR_SYSTEM_INODE`, and I'm trying to figure out how `EXTENT_ALLOC_SYSTEM_INODE` comes into play at this stage, particularly since it seems to be involved with the DIO path somehow. I started tracing the call stack from `ocfs2_dio_end_io_write` backward, eventually hitting `ocfs2_file_write_iter`. Within that, I see `ocfs2_prepare_inode_for_write` which actually *releases* `EXTENT_ALLOC_SYSTEM_INODE`, which initially made things confusing. The lockdep report shows `EXTENT_ALLOC_SYSTEM_INODE` is acquired inside `ocfs2_mknod`.

Then I see these lockdep reports, specifically this chain: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`. Where is this chain established?

It *seems* like the lockdep report is showing the dependencies in reverse order, which is a key realization here. I confirmed that the chain is: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`. So, `ORPHAN_DIR_SYSTEM_INODE` appears to be the last lock acquired in this chain.

Looking at the report again, and I confirm `ORPHAN_DIR_SYSTEM_INODE` is acquired in `ocfs2_del_inode_from_orphan`. This function is being called from the DIO path.

I also observe `inode_lock` being called within `ocfs2_file_write_iter`, but that's a *regular* inode, not a system inode. Then, the realization hits: the key here is not the *files* themselves, but the *system inodes* associated with various operations. It looks like `ocfs2_del_inode_from_orphan` acquires `ORPHAN_DIR_SYSTEM_INODE` after a previous lock.

Now, I was initially worried that `EXTENT_ALLOC_SYSTEM_INODE` and `ORPHAN_DIR_SYSTEM_INODE` might be treated as the same lock class. But no, the array index in `ocfs2_sysfile_lock_key` tells us they are distinct.

So, let's break down the lock dependencies. Dependency 1, `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` is clearly established inside `ocfs2_mknod`: `INODE_ALLOC_SYSTEM_INODE` is reserved *before* `EXTENT_ALLOC_SYSTEM_INODE`. I confirm this in `ocfs2_mknod` where the code first acquires `INODE_ALLOC_SYSTEM_INODE` and subsequently acquires `EXTENT_ALLOC_SYSTEM_INODE`.

The next dependency, `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`, remains the central question. Since the lockdep shows `#1` and `#2` show these 2 locks, then there *must* be a point where `ORPHAN_DIR_SYSTEM_INODE` is acquired while `EXTENT_ALLOC_SYSTEM_INODE` is held. I suspect that this *might* be in `ocfs2_del_inode_from_orphan`, however, now the DIO write path comes into focus as a possible candidate. That's the part that is still unclear. The analysis continues.



31/2 2026/05/29 16:54 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:2340 LineCount:100]

Results:
map[Contents:2340:							ue->ue_cpos, 1,
2341:							ue->ue_phys,
2342:							meta_ac, &dealloc);
2343:			if (ret < 0) {
2344:				mlog_errno(ret);
2345:				goto commit;
2346:			}
2347:	
2348:			if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
2349:				ocfs2_commit_trans(osb, handle);
2350:				handle = NULL;
2351:				batch = 0;
2352:			}
2353:		}
2354:	
2355:		if (end > i_size_read(inode)) {
2356:			if (!handle) {
2357:				handle = ocfs2_start_trans(osb, credits);
2358:				if (IS_ERR(handle)) {
2359:					ret = PTR_ERR(handle);
2360:					mlog_errno(ret);
2361:					goto unlock;
2362:				}
2363:			}
2364:			ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
2365:			if (ret < 0)
2366:				mlog_errno(ret);
2367:		}
2368:	
2369:	commit:
2370:		if (handle)
2371:			ocfs2_commit_trans(osb, handle);
2372:	unlock:
2373:		up_write(&oi->ip_alloc_sem);
2374:	
2375:		/* everything looks good, let's start the cleanup */
2376:		if (!ret && dwc->dw_orphaned) {
2377:			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
2378:	
2379:			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2380:			if (ret < 0)
2381:				mlog_errno(ret);
2382:		}
2383:		ocfs2_inode_unlock(inode, 1);
2384:		brelse(di_bh);
2385:	out:
2386:		if (data_ac)
2387:			ocfs2_free_alloc_context(data_ac);
2388:		if (meta_ac)
2389:			ocfs2_free_alloc_context(meta_ac);
2390:		ocfs2_run_deallocs(osb, &dealloc);
2391:		ocfs2_dio_free_write_ctx(inode, dwc);
2392:	
2393:		return ret;
2394:	}
2395:	
2396:	/*
2397:	 * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
2398:	 * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
2399:	 * to protect io on one node from truncation on another.
2400:	 */
2401:	static int ocfs2_dio_end_io(struct kiocb *iocb,
2402:				    loff_t offset,
2403:				    ssize_t bytes,
2404:				    void *private)
2405:	{
2406:		struct inode *inode = file_inode(iocb->ki_filp);
2407:		int level;
2408:		int ret = 0;
2409:	
2410:		/* this io's submitter should not have unlocked this before we could */
2411:		BUG_ON(!ocfs2_iocb_is_rw_locked(iocb));
2412:	
2413:		if (bytes <= 0)
2414:			mlog_ratelimited(ML_ERROR, "Direct IO failed, bytes = %lld",
2415:					 (long long)bytes);
2416:		if (private) {
2417:			if (bytes > 0)
2418:				ret = ocfs2_dio_end_io_write(inode, private, offset,
2419:							     bytes);
2420:			else
2421:				ocfs2_dio_free_write_ctx(inode, private);
2422:		}
2423:	
2424:		ocfs2_iocb_clear_rw_locked(iocb);
2425:	
2426:		level = ocfs2_iocb_rw_locked_level(iocb);
2427:		ocfs2_rw_unlock(inode, level);
2428:		return ret;
2429:	}
2430:	
2431:	static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
2432:	{
2433:		struct file *file = iocb->ki_filp;
2434:		struct inode *inode = file->f_mapping->host;
2435:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2436:		get_block_t *get_block;
2437:	
2438:		/*
2439:		 * Fallback to buffered I/O if we see an inode without
]

32/2 2026/05/29 16:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45428
							output: 40
							thoughts: 125
						

Thoughts:
**Analyzing a Potential Race Condition in OCFS2**

Okay, hold on a second. I'm looking at `ocfs2_dio_end_io_write` and I see a potential problem. Line 2379 shows `ocfs2_del_inode_from_orphan` being called. My immediate concern is that `meta_ac` is freed *right after* that, at line 2388! This is screaming race condition to me.

If `meta_ac` is getting freed *after* the call to `ocfs2_del_inode_from_orphan`, then that means `ocfs2_del_inode_from_orphan` must be *holding* `meta_ac` during its execution. Now, the next question is where is `meta_ac` acquired to understand if this behaviour can be problematic? I need to trace this back and pinpoint the exact locking scheme in `ocfs2_dio_end_io_write` to see if there's a window of vulnerability here. I need to know how it's acquired and how that relates to the orphan clean-up process. Let's dig in and figure out where that acquisition is happening.



33/2 2026/05/29 16:54 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:2250 LineCount:100]

Results:
map[Contents:2250:	
2251:			list_splice_tail_init(&wc->w_unwritten_list, &dwc->dw_zero_list);
2252:			dwc->dw_zero_count += wc->w_unwritten_count;
2253:		}
2254:	
2255:		ret = ocfs2_write_end_nolock(inode->i_mapping, pos, len, len, wc);
2256:		BUG_ON(ret != len);
2257:		ret = 0;
2258:	unlock:
2259:		up_write(&oi->ip_alloc_sem);
2260:		ocfs2_inode_unlock(inode, 1);
2261:		brelse(di_bh);
2262:	out:
2263:		return ret;
2264:	}
2265:	
2266:	static int ocfs2_dio_end_io_write(struct inode *inode,
2267:					  struct ocfs2_dio_write_ctxt *dwc,
2268:					  loff_t offset,
2269:					  ssize_t bytes)
2270:	{
2271:		struct ocfs2_cached_dealloc_ctxt dealloc;
2272:		struct ocfs2_extent_tree et;
2273:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2274:		struct ocfs2_inode_info *oi = OCFS2_I(inode);
2275:		struct ocfs2_unwritten_extent *ue = NULL;
2276:		struct buffer_head *di_bh = NULL;
2277:		struct ocfs2_dinode *di;
2278:		struct ocfs2_alloc_context *data_ac = NULL;
2279:		struct ocfs2_alloc_context *meta_ac = NULL;
2280:		handle_t *handle = NULL;
2281:		loff_t end = offset + bytes;
2282:		int ret = 0, credits = 0, batch = 0;
2283:	
2284:		ocfs2_init_dealloc_ctxt(&dealloc);
2285:	
2286:		/* We do clear unwritten, delete orphan, change i_size here. If neither
2287:		 * of these happen, we can skip all this. */
2288:		if (list_empty(&dwc->dw_zero_list) &&
2289:		    end <= i_size_read(inode) &&
2290:		    !dwc->dw_orphaned)
2291:			goto out;
2292:	
2293:		ret = ocfs2_inode_lock(inode, &di_bh, 1);
2294:		if (ret < 0) {
2295:			mlog_errno(ret);
2296:			goto out;
2297:		}
2298:	
2299:		down_write(&oi->ip_alloc_sem);
2300:		di = (struct ocfs2_dinode *)di_bh->b_data;
2301:	
2302:		ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
2303:	
2304:		/* Attach dealloc with extent tree in case that we may reuse extents
2305:		 * which are already unlinked from current extent tree due to extent
2306:		 * rotation and merging.
2307:		 */
2308:		et.et_dealloc = &dealloc;
2309:	
2310:		ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
2311:					    &data_ac, &meta_ac);
2312:		if (ret) {
2313:			mlog_errno(ret);
2314:			goto unlock;
2315:		}
2316:	
2317:		credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
2318:	
2319:		list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
2320:			if (!handle) {
2321:				handle = ocfs2_start_trans(osb, credits);
2322:				if (IS_ERR(handle)) {
2323:					ret = PTR_ERR(handle);
2324:					mlog_errno(ret);
2325:					goto unlock;
2326:				}
2327:				ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
2328:						OCFS2_JOURNAL_ACCESS_WRITE);
2329:				if (ret) {
2330:					mlog_errno(ret);
2331:					goto commit;
2332:				}
2333:			}
2334:			ret = ocfs2_assure_trans_credits(handle, credits);
2335:			if (ret < 0) {
2336:				mlog_errno(ret);
2337:				goto commit;
2338:			}
2339:			ret = ocfs2_mark_extent_written(inode, &et, handle,
2340:							ue->ue_cpos, 1,
2341:							ue->ue_phys,
2342:							meta_ac, &dealloc);
2343:			if (ret < 0) {
2344:				mlog_errno(ret);
2345:				goto commit;
2346:			}
2347:	
2348:			if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
2349:				ocfs2_commit_trans(osb, handle);
]

34/2 2026/05/29 16:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47471
							output: 40
							thoughts: 186
						

Thoughts:
**Lock Ordering Insight**

Okay, let me break this down. Line 2310, `ocfs2_lock_allocators` is called. Interesting. This function's allocating `meta_ac`, which is locking `EXTENT_ALLOC_SYSTEM_INODE`. Right. So we're establishing an ordering relationship with that lock. Now, at line 2379, it calls `ocfs2_del_inode_from_orphan`, and that function *acquires* `ORPHAN_DIR_SYSTEM_INODE`. Aha! And `meta_ac` gets freed, thankfully, at line 2388.

So, *effectively*, this sequence ensures that `EXTENT_ALLOC_SYSTEM_INODE` is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired. That's a lock ordering; we've got `EXTENT_ALLOC_SYSTEM_INODE` before `ORPHAN_DIR_SYSTEM_INODE`. It's `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`. Need to verify my theory though. Let's trace it through. Time to check how `ocfs2_lock_allocators` is actually acquiring `EXTENT_ALLOC_SYSTEM_INODE`.



35/2 2026/05/29 16:54 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:1730 LineCount:100]

Results:
map[Contents:1730:	
1731:			credits = ocfs2_calc_extend_credits(inode->i_sb,
1732:							    &di->id2.i_list);
1733:		} else if (type == OCFS2_WRITE_DIRECT)
1734:			/* direct write needs not to start trans if no extents alloc. */
1735:			goto success;
1736:	
1737:		/*
1738:		 * We have to zero sparse allocated clusters, unwritten extent clusters,
1739:		 * and non-sparse clusters we just extended.  For non-sparse writes,
1740:		 * we know zeros will only be needed in the first and/or last cluster.
1741:		 */
1742:		if (wc->w_clen && (wc->w_desc[0].c_needs_zero ||
1743:				   wc->w_desc[wc->w_clen - 1].c_needs_zero))
1744:			cluster_of_pages = 1;
1745:		else
1746:			cluster_of_pages = 0;
1747:	
1748:		ocfs2_set_target_boundaries(osb, wc, pos, len, cluster_of_pages);
1749:	
1750:		handle = ocfs2_start_trans(osb, credits);
1751:		if (IS_ERR(handle)) {
1752:			ret = PTR_ERR(handle);
1753:			mlog_errno(ret);
1754:			goto out;
1755:		}
1756:	
1757:		wc->w_handle = handle;
1758:	
1759:		if (clusters_to_alloc) {
1760:			ret = dquot_alloc_space_nodirty(inode,
1761:				ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1762:			if (ret)
1763:				goto out_commit;
1764:		}
1765:	
1766:		ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), wc->w_di_bh,
1767:					      OCFS2_JOURNAL_ACCESS_WRITE);
1768:		if (ret) {
1769:			mlog_errno(ret);
1770:			goto out_quota;
1771:		}
1772:	
1773:		/*
1774:		 * Fill our folio array first. That way we've grabbed enough so
1775:		 * that we can zero and flush if we error after adding the
1776:		 * extent.
1777:		 */
1778:		ret = ocfs2_grab_folios_for_write(mapping, wc, wc->w_cpos, pos, len,
1779:				cluster_of_pages, mmap_folio);
1780:		if (ret) {
1781:			/*
1782:			 * ocfs2_grab_folios_for_write() returns -EAGAIN if it
1783:			 * could not lock the target folio. In this case, we exit
1784:			 * with no error and no target folio. This will trigger
1785:			 * the caller, page_mkwrite(), to re-try the operation.
1786:			 */
1787:			if (type == OCFS2_WRITE_MMAP && ret == -EAGAIN) {
1788:				BUG_ON(wc->w_target_folio);
1789:				ret = 0;
1790:				goto out_quota;
1791:			}
1792:	
1793:			mlog_errno(ret);
1794:			goto out_quota;
1795:		}
1796:	
1797:		ret = ocfs2_write_cluster_by_desc(mapping, data_ac, meta_ac, wc, pos,
1798:						  len);
1799:		if (ret) {
1800:			mlog_errno(ret);
1801:			goto out_quota;
1802:		}
1803:	
1804:		if (data_ac)
1805:			ocfs2_free_alloc_context(data_ac);
1806:		if (meta_ac)
1807:			ocfs2_free_alloc_context(meta_ac);
1808:	
1809:	success:
1810:		if (foliop)
1811:			*foliop = wc->w_target_folio;
1812:		*fsdata = wc;
1813:		return 0;
1814:	out_quota:
1815:		if (clusters_to_alloc)
1816:			dquot_free_space(inode,
1817:				  ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1818:	out_commit:
1819:		ocfs2_commit_trans(osb, handle);
1820:	
1821:	out:
1822:		/*
1823:		 * The mmapped page won't be unlocked in ocfs2_free_write_ctxt(),
1824:		 * even in case of error here like ENOSPC and ENOMEM. So, we need
1825:		 * to unlock the target page manually to prevent deadlocks when
1826:		 * retrying again on ENOSPC, or when returning non-VM_FAULT_LOCKED
1827:		 * to VM code.
1828:		 */
1829:		if (wc->w_target_locked)
]

36/2 2026/05/29 16:54 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 49528
							output: 34
							thoughts: 16
						

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

**Navigating the OCFS2 Lock Allocator Landscape**

Okay, hold on a second. Before I proceed any further with this line of investigation, I need to make absolutely sure I'm fully up-to-speed on the foundational elements. Specifically, I need to zoom in on the `ocfs2_lock_allocators`. This isn't just a casual glance; I need to mentally review the architecture, the key data structures involved, and, of course, the implications of various allocator strategies on the system's overall performance. I know I have a strong foundation in locking principles, but a quick refresh on the nuances of this specific implementation within OCFS2 is absolutely critical to avoid making a costly mistake later on. It's time to solidify my understanding of the allocator's role in the bigger picture.



37/2 2026/05/29 16:55 tool grepper
0m Args:
map[Expression:ocfs2_lock_allocators PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/aops.c=1625=int ocfs2_write_begin_nolock(struct address_space *mapping,
--
fs/ocfs2/aops.c-1714-		 * XXX: We are stretching the limits of
fs/ocfs2/aops.c:1715:		 * ocfs2_lock_allocators(). It greatly over-estimates
fs/ocfs2/aops.c-1716-		 * the work to be done.
--
fs/ocfs2/aops.c-1719-					      wc->w_di_bh);
fs/ocfs2/aops.c:1720:		ret = ocfs2_lock_allocators(inode, &et,
fs/ocfs2/aops.c-1721-					    clusters_to_alloc, extents_to_split,
--
fs/ocfs2/aops.c=2266=static int ocfs2_dio_end_io_write(struct inode *inode,
--
fs/ocfs2/aops.c-2309-
fs/ocfs2/aops.c:2310:	ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
fs/ocfs2/aops.c-2311-				    &data_ac, &meta_ac);
--
fs/ocfs2/dir.c=3745=static int ocfs2_dx_dir_rebalance(struct ocfs2_super *osb, struct inode *dir,
--
fs/ocfs2/dir.c-3800-
fs/ocfs2/dir.c:3801:	ret = ocfs2_lock_allocators(dir, &et, 1, 0, &data_ac, &meta_ac);
fs/ocfs2/dir.c-3802-	if (ret) {
--
fs/ocfs2/file.c=556=static int ocfs2_extend_allocation(struct inode *inode, u32 logical_start,
--
fs/ocfs2/file.c-589-	ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), bh);
fs/ocfs2/file.c:590:	status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0,
fs/ocfs2/file.c-591-				       &data_ac, &meta_ac);
--
fs/ocfs2/suballoc.c=3028=int ocfs2_release_clusters(handle_t *handle,
--
fs/ocfs2/suballoc.c-3048- */
fs/ocfs2/suballoc.c:3049:int ocfs2_lock_allocators(struct inode *inode,
fs/ocfs2/suballoc.c-3050-			  struct ocfs2_extent_tree *et,
--
fs/ocfs2/suballoc.h=199=int ocfs2_read_group_descriptor(struct inode *inode, struct ocfs2_dinode *di,
--
fs/ocfs2/suballoc.h-201-
fs/ocfs2/suballoc.h:202:int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et,
fs/ocfs2/suballoc.h-203-			  u32 clusters_to_add, u32 extents_to_split,
--
fs/ocfs2/xattr.c=5441=static int ocfs2_rm_xattr_cluster(struct inode *inode,
--
fs/ocfs2/xattr.c-5475-
fs/ocfs2/xattr.c:5476:	ret = ocfs2_lock_allocators(inode, &et, 0, 1, NULL, &meta_ac);
fs/ocfs2/xattr.c-5477-	if (ret) {
]

38/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50794
							output: 40
							thoughts: 27
						

Thoughts:
Here's my take on the thought process, as if it were my own:

**Diving into the OCFS2 Suballocator**

Alright, time to dig into the `ocfs2_lock_allocators` component, specifically within the `fs/ocfs2/suballoc.c` file. I need to refresh my memory on how this locking mechanism interacts with the suballocation process within the OCFS2 filesystem. My experience tells me there will be intricacies around concurrency and ensuring data consistency during allocation and deallocation of metadata blocks. I'm going to want to understand how contention is handled here. Let's see how they've structured and implemented the allocator data structures. Time to get my hands dirty.



39/2 2026/05/29 16:55 tool read-file
0m Args:
map[File:fs/ocfs2/suballoc.c FirstLine:3049 LineCount:100]

Results:
map[Contents:3049:	int ocfs2_lock_allocators(struct inode *inode,
3050:				  struct ocfs2_extent_tree *et,
3051:				  u32 clusters_to_add, u32 extents_to_split,
3052:				  struct ocfs2_alloc_context **data_ac,
3053:				  struct ocfs2_alloc_context **meta_ac)
3054:	{
3055:		int ret = 0, num_free_extents;
3056:		unsigned int max_recs_needed = clusters_to_add + 2 * extents_to_split;
3057:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
3058:	
3059:		*meta_ac = NULL;
3060:		if (data_ac)
3061:			*data_ac = NULL;
3062:	
3063:		BUG_ON(clusters_to_add != 0 && data_ac == NULL);
3064:	
3065:		num_free_extents = ocfs2_num_free_extents(et);
3066:		if (num_free_extents < 0) {
3067:			ret = num_free_extents;
3068:			mlog_errno(ret);
3069:			goto out;
3070:		}
3071:	
3072:		/*
3073:		 * Sparse allocation file systems need to be more conservative
3074:		 * with reserving room for expansion - the actual allocation
3075:		 * happens while we've got a journal handle open so re-taking
3076:		 * a cluster lock (because we ran out of room for another
3077:		 * extent) will violate ordering rules.
3078:		 *
3079:		 * Most of the time we'll only be seeing this 1 cluster at a time
3080:		 * anyway.
3081:		 *
3082:		 * Always lock for any unwritten extents - we might want to
3083:		 * add blocks during a split.
3084:		 */
3085:		if (!num_free_extents ||
3086:		    (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) {
3087:			ret = ocfs2_reserve_new_metadata(osb, et->et_root_el, meta_ac);
3088:			if (ret < 0) {
3089:				if (ret != -ENOSPC)
3090:					mlog_errno(ret);
3091:				goto out;
3092:			}
3093:		}
3094:	
3095:		if (clusters_to_add == 0)
3096:			goto out;
3097:	
3098:		ret = ocfs2_reserve_clusters(osb, clusters_to_add, data_ac);
3099:		if (ret < 0) {
3100:			if (ret != -ENOSPC)
3101:				mlog_errno(ret);
3102:			goto out;
3103:		}
3104:	
3105:	out:
3106:		if (ret) {
3107:			if (*meta_ac) {
3108:				ocfs2_free_alloc_context(*meta_ac);
3109:				*meta_ac = NULL;
3110:			}
3111:	
3112:			/*
3113:			 * We cannot have an error and a non null *data_ac.
3114:			 */
3115:		}
3116:	
3117:		return ret;
3118:	}
3119:	
3120:	/*
3121:	 * Read the inode specified by blkno to get suballoc_slot and
3122:	 * suballoc_bit.
3123:	 */
3124:	static int ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno,
3125:					       u16 *suballoc_slot, u64 *group_blkno,
3126:					       u16 *suballoc_bit)
3127:	{
3128:		int status;
3129:		struct buffer_head *inode_bh = NULL;
3130:		struct ocfs2_dinode *inode_fe;
3131:	
3132:		trace_ocfs2_get_suballoc_slot_bit((unsigned long long)blkno);
3133:	
3134:		/* dirty read disk */
3135:		status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh);
3136:		if (status < 0) {
3137:			mlog(ML_ERROR, "read block %llu failed %d\n",
3138:			     (unsigned long long)blkno, status);
3139:			goto bail;
3140:		}
3141:	
3142:		inode_fe = (struct ocfs2_dinode *) inode_bh->b_data;
3143:		if (!OCFS2_IS_VALID_DINODE(inode_fe)) {
3144:			mlog(ML_ERROR, "invalid inode %llu requested\n",
3145:			     (unsigned long long)blkno);
3146:			status = -EINVAL;
3147:			goto bail;
3148:		}
]

40/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52559
							output: 38
							thoughts: 885
						

Thoughts:
**Analyzing the Lock Dependency Cycle**

Okay, let's break this down. From what I'm seeing, `ocfs2_lock_allocators` in `ocfs2_dio_end_io_write` calls `ocfs2_reserve_new_metadata`, which then calls `ocfs2_reserve_new_metadata_blocks`. This sequence ends up acquiring `EXTENT_ALLOC_SYSTEM_INODE` through `meta_ac`. So, step one in `ocfs2_dio_end_io_write` is acquiring `EXTENT_ALLOC_SYSTEM_INODE`. Step two involves `ocfs2_del_inode_from_orphan`, which grabs `ORPHAN_DIR_SYSTEM_INODE`. After this, `meta_ac` is freed, releasing `EXTENT_ALLOC_SYSTEM_INODE`.

This immediately highlights a dependency: `EXTENT_ALLOC_SYSTEM_INODE` *must* come before `ORPHAN_DIR_SYSTEM_INODE`. Now, the crucial question is: what is the third piece of this lock dependency puzzle, the final piece in this circular dependency?

The lockdep report is very insightful here. It shows that `ocfs2_wipe_inode` is trying to acquire `ORPHAN_DIR_SYSTEM_INODE` *before* `INODE_ALLOC_SYSTEM_INODE`. The relevant snippets are in `fs/ocfs2/inode.c`, specifically `ocfs2_wipe_inode` and within the `ocfs2_evict_inode` function. The key is in those calls to `inode_lock` within those functions.

This means that `ocfs2_wipe_inode` acquires `ORPHAN_DIR_SYSTEM_INODE` and then tries to get `INODE_ALLOC_SYSTEM_INODE`. That looks to be our third dependency. It's time to check what's happening within `ocfs2_wipe_inode`. I'll want to review the code to confirm this dependency and see how the functions interact to solidify this understanding.



41/2 2026/05/29 16:55 tool read-file
0m Args:
map[File:fs/ocfs2/inode.c FirstLine:840 LineCount:100]

Results:
map[Contents: 840:				return status;
 841:	
 842:			orphan_dir_inode = ocfs2_get_system_file_inode(osb,
 843:								       ORPHAN_DIR_SYSTEM_INODE,
 844:								       orphaned_slot);
 845:			if (!orphan_dir_inode) {
 846:				status = -ENOENT;
 847:				mlog_errno(status);
 848:				goto bail;
 849:			}
 850:	
 851:			/* Lock the orphan dir. The lock will be held for the entire
 852:			 * delete_inode operation. We do this now to avoid races with
 853:			 * recovery completion on other nodes. */
 854:			inode_lock(orphan_dir_inode);
 855:			status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1);
 856:			if (status < 0) {
 857:				inode_unlock(orphan_dir_inode);
 858:	
 859:				mlog_errno(status);
 860:				goto bail;
 861:			}
 862:		}
 863:	
 864:		/* we do this while holding the orphan dir lock because we
 865:		 * don't want recovery being run from another node to try an
 866:		 * inode delete underneath us -- this will result in two nodes
 867:		 * truncating the same file! */
 868:		status = ocfs2_truncate_for_delete(osb, inode, di_bh);
 869:		if (status < 0) {
 870:			mlog_errno(status);
 871:			goto bail_unlock_dir;
 872:		}
 873:	
 874:		/* Remove any dir index tree */
 875:		if (S_ISDIR(inode->i_mode)) {
 876:			status = ocfs2_dx_dir_truncate(inode, di_bh);
 877:			if (status) {
 878:				mlog_errno(status);
 879:				goto bail_unlock_dir;
 880:			}
 881:		}
 882:	
 883:		/*Free extended attribute resources associated with this inode.*/
 884:		status = ocfs2_xattr_remove(inode, di_bh);
 885:		if (status < 0) {
 886:			mlog_errno(status);
 887:			goto bail_unlock_dir;
 888:		}
 889:	
 890:		status = ocfs2_remove_refcount_tree(inode, di_bh);
 891:		if (status < 0) {
 892:			mlog_errno(status);
 893:			goto bail_unlock_dir;
 894:		}
 895:	
 896:		status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode,
 897:					    orphan_dir_bh);
 898:		if (status < 0)
 899:			mlog_errno(status);
 900:	
 901:	bail_unlock_dir:
 902:		if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SKIP_ORPHAN_DIR)
 903:			return status;
 904:	
 905:		ocfs2_inode_unlock(orphan_dir_inode, 1);
 906:		inode_unlock(orphan_dir_inode);
 907:		brelse(orphan_dir_bh);
 908:	bail:
 909:		iput(orphan_dir_inode);
 910:		ocfs2_signal_wipe_completion(osb, orphaned_slot);
 911:	
 912:		return status;
 913:	}
 914:	
 915:	/* There is a series of simple checks that should be done before a
 916:	 * trylock is even considered. Encapsulate those in this function. */
 917:	static int ocfs2_inode_is_valid_to_delete(struct inode *inode)
 918:	{
 919:		int ret = 0;
 920:		struct ocfs2_inode_info *oi = OCFS2_I(inode);
 921:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 922:	
 923:		trace_ocfs2_inode_is_valid_to_delete(current, osb->dc_task,
 924:						     (unsigned long long)oi->ip_blkno,
 925:						     oi->ip_flags);
 926:	
 927:		/* We shouldn't be getting here for the root directory
 928:		 * inode.. */
 929:		if (inode == osb->root_inode) {
 930:			mlog(ML_ERROR, "Skipping delete of root inode.\n");
 931:			goto bail;
 932:		}
 933:	
 934:		/*
 935:		 * If we're coming from downconvert_thread we can't go into our own
 936:		 * voting [hello, deadlock city!] so we cannot delete the inode. But
 937:		 * since we dropped last inode ref when downconverting dentry lock,
 938:		 * we cannot have the file open and thus the node doing unlink will
 939:		 * take care of deleting the inode.
]

42/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 55472
							output: 38
							thoughts: 65
						

Thoughts:
**Analyzing the Inode Wiping Process**

Okay, so I'm looking at `ocfs2_wipe_inode` and it looks like, as expected, it grabs that `ORPHAN_DIR_SYSTEM_INODE` lock around line 854. That's the critical point for ensuring data consistency when dealing with orphaned inodes, so that makes perfect sense. Now, it appears to call `ocfs2_remove_inode` at line 896. Right. We need to dissect what happens inside that function to truly understand the overall process. Time to dig into `ocfs2_remove_inode` and see how it interacts with the lock and what other operations it performs.



43/2 2026/05/29 16:55 tool read-file
0m Args:
map[File:fs/ocfs2/inode.c FirstLine:710 LineCount:100]

Results:
map[Contents: 710:	}
 711:	
 712:	static int ocfs2_remove_inode(struct inode *inode,
 713:				      struct buffer_head *di_bh,
 714:				      struct inode *orphan_dir_inode,
 715:				      struct buffer_head *orphan_dir_bh)
 716:	{
 717:		int status;
 718:		struct inode *inode_alloc_inode = NULL;
 719:		struct buffer_head *inode_alloc_bh = NULL;
 720:		handle_t *handle;
 721:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 722:		struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data;
 723:	
 724:		inode_alloc_inode =
 725:			ocfs2_get_system_file_inode(osb, INODE_ALLOC_SYSTEM_INODE,
 726:						    le16_to_cpu(di->i_suballoc_slot));
 727:		if (!inode_alloc_inode) {
 728:			status = -ENOENT;
 729:			mlog_errno(status);
 730:			goto bail;
 731:		}
 732:	
 733:		inode_lock(inode_alloc_inode);
 734:		status = ocfs2_inode_lock(inode_alloc_inode, &inode_alloc_bh, 1);
 735:		if (status < 0) {
 736:			inode_unlock(inode_alloc_inode);
 737:	
 738:			mlog_errno(status);
 739:			goto bail;
 740:		}
 741:	
 742:		handle = ocfs2_start_trans(osb, OCFS2_DELETE_INODE_CREDITS +
 743:					   ocfs2_quota_trans_credits(inode->i_sb));
 744:		if (IS_ERR(handle)) {
 745:			status = PTR_ERR(handle);
 746:			mlog_errno(status);
 747:			goto bail_unlock;
 748:		}
 749:	
 750:		if (!(OCFS2_I(inode)->ip_flags & OCFS2_INODE_SKIP_ORPHAN_DIR)) {
 751:			status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode,
 752:						  orphan_dir_bh, false);
 753:			if (status < 0) {
 754:				mlog_errno(status);
 755:				goto bail_commit;
 756:			}
 757:		}
 758:	
 759:		/* set the inodes dtime */
 760:		status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
 761:						 OCFS2_JOURNAL_ACCESS_WRITE);
 762:		if (status < 0) {
 763:			mlog_errno(status);
 764:			goto bail_commit;
 765:		}
 766:	
 767:		di->i_dtime = cpu_to_le64(ktime_get_real_seconds());
 768:		di->i_flags &= cpu_to_le32(~(OCFS2_VALID_FL | OCFS2_ORPHANED_FL));
 769:		ocfs2_journal_dirty(handle, di_bh);
 770:	
 771:		ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh);
 772:		dquot_free_inode(inode);
 773:	
 774:		status = ocfs2_free_dinode(handle, inode_alloc_inode,
 775:					   inode_alloc_bh, di);
 776:		if (status < 0)
 777:			mlog_errno(status);
 778:	
 779:	bail_commit:
 780:		ocfs2_commit_trans(osb, handle);
 781:	bail_unlock:
 782:		ocfs2_inode_unlock(inode_alloc_inode, 1);
 783:		inode_unlock(inode_alloc_inode);
 784:		brelse(inode_alloc_bh);
 785:	bail:
 786:		iput(inode_alloc_inode);
 787:	
 788:		return status;
 789:	}
 790:	
 791:	/*
 792:	 * Serialize with orphan dir recovery. If the process doing
 793:	 * recovery on this orphan dir does an iget() with the dir
 794:	 * i_rwsem held, we'll deadlock here. Instead we detect this
 795:	 * and exit early - recovery will wipe this inode for us.
 796:	 */
 797:	static int ocfs2_check_orphan_recovery_state(struct ocfs2_super *osb,
 798:						     int slot)
 799:	{
 800:		int ret = 0;
 801:	
 802:		spin_lock(&osb->osb_lock);
 803:		if (ocfs2_node_map_test_bit(osb, &osb->osb_recovering_orphan_dirs, slot)) {
 804:			ret = -EDEADLK;
 805:			goto out;
 806:		}
 807:		/* This signals to the orphan recovery process that it should
 808:		 * wait for us to handle the wipe. */
 809:		osb->osb_orphan_wipes[slot]++;
]

44/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 57333
							output: 40
							thoughts: 905
						

Thoughts:
**Analyzing a Lock Dependency Cycle in OCFS2**

Okay, so I'm looking at this lockdep report, and it's pointing out a nasty cycle: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`. I can see how this happens. Let's break it down:

First, in `ocfs2_mknod`, we have the `INODE_ALLOC_SYSTEM_INODE` lock acquired before `EXTENT_ALLOC_SYSTEM_INODE`. Specifically, `ocfs2_reserve_new_inode` gets `INODE_ALLOC_SYSTEM_INODE` and then `ocfs2_reserve_new_metadata_blocks` grabs `EXTENT_ALLOC_SYSTEM_INODE`. I need to remember that `INODE_ALLOC_SYSTEM_INODE` is held throughout `ocfs2_mknod` until the end, or on error.

Next, in `ocfs2_dio_end_io_write`, we see the flip side. `ocfs2_lock_allocators` acquires `EXTENT_ALLOC_SYSTEM_INODE` *then* `ocfs2_del_inode_from_orphan` gets `ORPHAN_DIR_SYSTEM_INODE`. The critical point here is that `EXTENT_ALLOC_SYSTEM_INODE` is held *throughout* the call to `ocfs2_del_inode_from_orphan`, until the alloc context is freed after.

Finally, in `ocfs2_wipe_inode`, we have `inode_lock(orphan_dir_inode)` acquiring `ORPHAN_DIR_SYSTEM_INODE`, and then `ocfs2_remove_inode` takes `INODE_ALLOC_SYSTEM_INODE`. And again, `ORPHAN_DIR_SYSTEM_INODE` is held while `INODE_ALLOC_SYSTEM_INODE` is acquired.

So, yeah, that's a classic deadlock cycle right there: `INODE` -> `EXTENT` -> `ORPHAN` -> `INODE`.

The question is, how do we break it? It seems the crucial dependency to break is in `ocfs2_dio_end_io_write`. If we release `EXTENT_ALLOC_SYSTEM_INODE` (held by `meta_ac`) *before* calling `ocfs2_del_inode_from_orphan`, we'd eliminate the `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` dependency. Looking at the code for that function, it seems like we *could* free `meta_ac` (and `data_ac`) earlier. That's the key.



45/2 2026/05/29 16:55 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:2360 LineCount:100]

Results:
map[Contents:2360:					mlog_errno(ret);
2361:					goto unlock;
2362:				}
2363:			}
2364:			ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
2365:			if (ret < 0)
2366:				mlog_errno(ret);
2367:		}
2368:	
2369:	commit:
2370:		if (handle)
2371:			ocfs2_commit_trans(osb, handle);
2372:	unlock:
2373:		up_write(&oi->ip_alloc_sem);
2374:	
2375:		/* everything looks good, let's start the cleanup */
2376:		if (!ret && dwc->dw_orphaned) {
2377:			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
2378:	
2379:			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2380:			if (ret < 0)
2381:				mlog_errno(ret);
2382:		}
2383:		ocfs2_inode_unlock(inode, 1);
2384:		brelse(di_bh);
2385:	out:
2386:		if (data_ac)
2387:			ocfs2_free_alloc_context(data_ac);
2388:		if (meta_ac)
2389:			ocfs2_free_alloc_context(meta_ac);
2390:		ocfs2_run_deallocs(osb, &dealloc);
2391:		ocfs2_dio_free_write_ctx(inode, dwc);
2392:	
2393:		return ret;
2394:	}
2395:	
2396:	/*
2397:	 * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
2398:	 * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
2399:	 * to protect io on one node from truncation on another.
2400:	 */
2401:	static int ocfs2_dio_end_io(struct kiocb *iocb,
2402:				    loff_t offset,
2403:				    ssize_t bytes,
2404:				    void *private)
2405:	{
2406:		struct inode *inode = file_inode(iocb->ki_filp);
2407:		int level;
2408:		int ret = 0;
2409:	
2410:		/* this io's submitter should not have unlocked this before we could */
2411:		BUG_ON(!ocfs2_iocb_is_rw_locked(iocb));
2412:	
2413:		if (bytes <= 0)
2414:			mlog_ratelimited(ML_ERROR, "Direct IO failed, bytes = %lld",
2415:					 (long long)bytes);
2416:		if (private) {
2417:			if (bytes > 0)
2418:				ret = ocfs2_dio_end_io_write(inode, private, offset,
2419:							     bytes);
2420:			else
2421:				ocfs2_dio_free_write_ctx(inode, private);
2422:		}
2423:	
2424:		ocfs2_iocb_clear_rw_locked(iocb);
2425:	
2426:		level = ocfs2_iocb_rw_locked_level(iocb);
2427:		ocfs2_rw_unlock(inode, level);
2428:		return ret;
2429:	}
2430:	
2431:	static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
2432:	{
2433:		struct file *file = iocb->ki_filp;
2434:		struct inode *inode = file->f_mapping->host;
2435:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2436:		get_block_t *get_block;
2437:	
2438:		/*
2439:		 * Fallback to buffered I/O if we see an inode without
2440:		 * extents.
2441:		 */
2442:		if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
2443:			return 0;
2444:	
2445:		/* Fallback to buffered I/O if we do not support append dio. */
2446:		if (iocb->ki_pos + iter->count > i_size_read(inode) &&
2447:		    !ocfs2_supports_append_dio(osb))
2448:			return 0;
2449:	
2450:		if (iov_iter_rw(iter) == READ)
2451:			get_block = ocfs2_lock_get_block;
2452:		else
2453:			get_block = ocfs2_dio_wr_get_block;
2454:	
2455:		return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
2456:					    iter, get_block,
2457:					    ocfs2_dio_end_io, 0);
2458:	}
2459:	
]

46/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 60470
							output: 40
							thoughts: 343
						

Thoughts:
**My Optimization Plan**

Okay, so I'm focusing on these `data_ac` and `meta_ac` variables. I see they're only used within that loop that calls `ocfs2_mark_extent_written`. After the `commit:` point, they're definitely not needed anymore. My immediate thought is, can I free them then?

Wait, hold on. I see `ocfs2_run_deallocs` called later, at line 2390. Does *it* need either `data_ac` or `meta_ac`? Nope, it takes `&dealloc`, so that's good! So, yes, I can free `data_ac` and `meta_ac` before calling `ocfs2_del_inode_from_orphan`.

Wait a minute, `ocfs2_del_inode_from_orphan` is *actually* called at line 2379. We need to free it before 2375 to keep everything in sync!

Alright, let's step back and see if there are other points where this `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` is established. Let's make sure we're not missing anything.

Hold on, I see `ocfs2_free_alloc_context`, and that releases the lock... Wait, no, that is incorrect. Let me re-read this code:

```c
void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac)
{
	if (ac->ac_inode)
		iput(ac->ac_inode);
	if (ac->ac_bh)
		brelse(ac->ac_bh);
	kfree(ac);
}
```

Okay, `ocfs2_free_alloc_context` does *NOT* unlock the inode. Got it. So I need to keep that in mind.



47/2 2026/05/29 16:55 tool read-file
0m Args:
map[File:fs/ocfs2/suballoc.c FirstLine:1020 LineCount:100]

Results:
map[Contents:1020:	
1021:		for (i = 0; i < osb->max_slots; i++, slot++) {
1022:			if (slot == osb->max_slots)
1023:				slot = 0;
1024:	
1025:			if (slot == osb->slot_num)
1026:				continue;
1027:	
1028:			status = ocfs2_reserve_suballoc_bits(osb, ac,
1029:							     type,
1030:							     (u32)slot, NULL,
1031:							     NOT_ALLOC_NEW_GROUP);
1032:			if (status >= 0) {
1033:				__ocfs2_set_steal_slot(osb, slot, type);
1034:				break;
1035:			}
1036:	
1037:			ocfs2_free_ac_resource(ac);
1038:		}
1039:	
1040:		return status;
1041:	}
1042:	
1043:	static int ocfs2_steal_inode(struct ocfs2_super *osb,
1044:				     struct ocfs2_alloc_context *ac)
1045:	{
1046:		return ocfs2_steal_resource(osb, ac, INODE_ALLOC_SYSTEM_INODE);
1047:	}
1048:	
1049:	static int ocfs2_steal_meta(struct ocfs2_super *osb,
1050:				    struct ocfs2_alloc_context *ac)
1051:	{
1052:		return ocfs2_steal_resource(osb, ac, EXTENT_ALLOC_SYSTEM_INODE);
1053:	}
1054:	
1055:	int ocfs2_reserve_new_metadata_blocks(struct ocfs2_super *osb,
1056:					      int blocks,
1057:					      struct ocfs2_alloc_context **ac)
1058:	{
1059:		int status;
1060:		int slot = ocfs2_get_meta_steal_slot(osb);
1061:	
1062:		*ac = kzalloc_obj(struct ocfs2_alloc_context);
1063:		if (!(*ac)) {
1064:			status = -ENOMEM;
1065:			mlog_errno(status);
1066:			goto bail;
1067:		}
1068:	
1069:		(*ac)->ac_bits_wanted = blocks;
1070:		(*ac)->ac_which = OCFS2_AC_USE_META;
1071:		(*ac)->ac_group_search = ocfs2_block_group_search;
1072:	
1073:		if (slot != OCFS2_INVALID_SLOT &&
1074:			atomic_read(&osb->s_num_meta_stolen) < OCFS2_MAX_TO_STEAL)
1075:			goto extent_steal;
1076:	
1077:		atomic_set(&osb->s_num_meta_stolen, 0);
1078:		status = ocfs2_reserve_suballoc_bits(osb, (*ac),
1079:						     EXTENT_ALLOC_SYSTEM_INODE,
1080:						     (u32)osb->slot_num, NULL,
1081:						     ALLOC_GROUPS_FROM_GLOBAL|ALLOC_NEW_GROUP);
1082:	
1083:	
1084:		if (status >= 0) {
1085:			status = 0;
1086:			if (slot != OCFS2_INVALID_SLOT)
1087:				ocfs2_init_meta_steal_slot(osb);
1088:			goto bail;
1089:		} else if (status < 0 && status != -ENOSPC) {
1090:			mlog_errno(status);
1091:			goto bail;
1092:		}
1093:	
1094:		ocfs2_free_ac_resource(*ac);
1095:	
1096:	extent_steal:
1097:		status = ocfs2_steal_meta(osb, *ac);
1098:		atomic_inc(&osb->s_num_meta_stolen);
1099:		if (status < 0) {
1100:			if (status != -ENOSPC)
1101:				mlog_errno(status);
1102:			goto bail;
1103:		}
1104:	
1105:		status = 0;
1106:	bail:
1107:		if ((status < 0) && *ac) {
1108:			ocfs2_free_alloc_context(*ac);
1109:			*ac = NULL;
1110:		}
1111:	
1112:		if (status)
1113:			mlog_errno(status);
1114:		return status;
1115:	}
1116:	
1117:	int ocfs2_reserve_new_metadata(struct ocfs2_super *osb,
1118:				       struct ocfs2_extent_list *root_el,
1119:				       struct ocfs2_alloc_context **ac)
]

48/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62777
							output: 36
							thoughts: 60
						

Thoughts:
**Digging into Allocation Contexts**

Okay, so I'm tracing through this allocation code and something just jumped out at me. I see that `ocfs2_free_ac_resource` is called within `ocfs2_reserve_new_metadata_blocks` when an error occurs. That's a good place to start, it gives a clear indication of how these resources are supposed to be cleaned up when a block reservation fails.

Now I need to understand what's actually happening in that `ocfs2_free_ac_resource` function, and how it relates to the broader allocation process. I'll need to locate and check both `ocfs2_free_alloc_context` and that `ocfs2_free_ac_resource` function to completely understand this. I'm hoping this will provide insight into how the allocation contexts are managed, how the resources associated with them are allocated and deallocated, and what the error paths look like. Understanding this interaction between resource freeing and context freeing is critical to determining the true nature of what's happening.



49/2 2026/05/29 16:55 tool grepper
0m Args:
map[Expression:void ocfs2_free_alloc_context PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/suballoc.c=123=void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac)
--
fs/ocfs2/suballoc.c-142-
fs/ocfs2/suballoc.c:143:void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac)
fs/ocfs2/suballoc.c-144-{
--
fs/ocfs2/suballoc.h=50=void ocfs2_init_steal_slots(struct ocfs2_super *osb);
fs/ocfs2/suballoc.h:51:void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac);
fs/ocfs2/suballoc.h-52-static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac)
]

50/2 2026/05/29 16:55 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 63338
							output: 38
							thoughts: 27
						

Thoughts:
Okay, here's my interpretation of what's going through my mind as I analyze those functions, presented as a first-person summary geared towards an expert:

**Diving into Allocation Context Management**

Alright, time to dig into `ocfs2_free_alloc_context` and `ocfs2_free_ac_resource`. From the names alone, I'm expecting to see the core logic for releasing allocation contexts and associated resources within OCFS2.  We're talking about managing the structures that track free space and how it's allocated in the filesystem, so correctness here is *absolutely* critical to overall system stability. I'm hoping to see clean resource deallocation and avoidance of any potential double frees or memory leaks.

I want to see how these functions handle the interplay between different allocation pools, perhaps block allocation groups (BAGs) or inode allocation pools. My immediate thoughts go to the locking involved. Is this a simple per-context lock, or something more sophisticated to handle concurrent access across different threads or processes? I need to analyze those locks very carefully to ensure the allocation structures aren't getting corrupted.  I’m particularly curious about the specific data structures being released, and whether there are any potential race conditions during the release process. I will be looking closely at any potential locking issues and how they handle errors.

My mental checklist includes looking for:

*   **Proper synchronization:** Are there adequate mutexes/spinlocks around the critical sections? What is the granularity of the locking? Is it efficient, or overly coarse-grained?
*   **Error handling:** What happens if a resource release fails, or if a context is already freed? Are there appropriate checks and logging to help debug issues?
*   **Resource deallocation:** Are we freeing all the relevant memory? No dangling pointers? Any potential memory leaks?
*   **Consistency:** Does the freed context or resource update global metadata correctly, reflecting the release of resources back to the pool?

Let's get into the details and start pulling this apart. Time to find the key pieces of the puzzle and see how these two pieces of code function, and more importantly, how well. Let's make sure it's all rock solid.



51/2 2026/05/29 16:56 tool read-file
0m Args:
map[File:fs/ocfs2/suballoc.c FirstLine:120 LineCount:50]

Results:
map[Contents: 120:						     int flags,
 121:						     struct ocfs2_alloc_context **ac);
 122:	
 123:	void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac)
 124:	{
 125:		struct inode *inode = ac->ac_inode;
 126:	
 127:		if (inode) {
 128:			if (ac->ac_which != OCFS2_AC_USE_LOCAL)
 129:				ocfs2_inode_unlock(inode, 1);
 130:	
 131:			inode_unlock(inode);
 132:	
 133:			iput(inode);
 134:			ac->ac_inode = NULL;
 135:		}
 136:		brelse(ac->ac_bh);
 137:		ac->ac_bh = NULL;
 138:		ac->ac_resv = NULL;
 139:		kfree(ac->ac_find_loc_priv);
 140:		ac->ac_find_loc_priv = NULL;
 141:	}
 142:	
 143:	void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac)
 144:	{
 145:		ocfs2_free_ac_resource(ac);
 146:		kfree(ac);
 147:	}
 148:	
 149:	static u32 ocfs2_bits_per_group(struct ocfs2_chain_list *cl)
 150:	{
 151:		return (u32)le16_to_cpu(cl->cl_cpg) * (u32)le16_to_cpu(cl->cl_bpc);
 152:	}
 153:	
 154:	#define do_error(fmt, ...)						\
 155:	do {									\
 156:		if (resize)							\
 157:			mlog(ML_ERROR, fmt, ##__VA_ARGS__);			\
 158:		else								\
 159:			return ocfs2_error(sb, fmt, ##__VA_ARGS__);		\
 160:	} while (0)
 161:	
 162:	static int ocfs2_validate_gd_self(struct super_block *sb,
 163:					  struct buffer_head *bh,
 164:					  int resize)
 165:	{
 166:		struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data;
 167:	
 168:		if (!OCFS2_IS_VALID_GROUP_DESC(gd)) {
 169:			do_error("Group descriptor #%llu has bad signature %.*s\n",
]

52/2 2026/05/29 16:56 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 64660
							output: 37
							thoughts: 1241
						

Thoughts:
**Analyzing Allocation Context Release in OCFS2's Direct I/O Write Path**

Okay, so I'm looking at `ocfs2_dio_end_io_write` and trying to optimize the release of allocation contexts. I see that `ocfs2_free_ac_resource` calls `ocfs2_inode_unlock` and `inode_unlock`, so the allocation contexts *do* release locks. Good.

In this function, the plan is to see if I can move the freeing of `data_ac` and `meta_ac` *before* the call to `ocfs2_del_inode_from_orphan`. This should avoid any unnecessary lock contention. The initial hunch is that it might be safe, but I need to confirm. Let's see...

`ocfs2_del_inode_from_orphan` takes `osb`, `inode`, and `di_bh`, but no allocation contexts. So, on the face of it, it doesn't *directly* need them. I need to make sure this is safe.

I'm now thinking about the call stack, since this needs to be air tight. `ocfs2_run_deallocs` happens after `ocfs2_free_alloc_context` and it doesn't use `data_ac` or `meta_ac`, as far as I can see. Same with `ocfs2_inode_unlock` and `brelse(di_bh)`. But wait, `ocfs2_del_inode_from_orphan` *modifies* `di_bh`! It calls `ocfs2_journal_access_di`. So that buffer *must* be held and locked.

Right, `data_ac` and `meta_ac` are used for allocating clusters and metadata blocks; they're used in `ocfs2_mark_extent_written`. And once `ocfs2_mark_extent_written` is done and the transaction is committed, those allocation contexts should no longer be needed, right?

Thinking further, `ocfs2_mark_extent_written` is called inside a loop, and then *after* that loop, we have a transaction commit (`ocfs2_commit_trans`) and an unlock of `ip_alloc_sem`. That's where it happens. Right now it appears `data_ac` and `meta_ac` are held *across* the commit and the `up_write` on `ip_alloc_sem`.

Hmm. Is it safe to release them *immediately* after `commit:`? So, right after `ocfs2_commit_trans` but before `ocfs2_del_inode_from_orphan`? It *looks* like it would be safe, but let's be absolutely certain here. Releasing them there would free `EXTENT_ALLOC_SYSTEM_INODE` before `ORPHAN_DIR_SYSTEM_INODE` gets acquired.

The problem here is that there is a critical dependency: `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`. If this is broken, then things will go very wrong. So, I need to make sure this is not broken.

Finally, I need to check for other calls to `ocfs2_del_inode_from_orphan` that might hold those contexts. I need to see if there is another place in the code path.




53/2 2026/05/29 16:56 tool grepper
0m Args:
map[Expression:ocfs2_del_inode_from_orphan PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/aops.c=2266=static int ocfs2_dio_end_io_write(struct inode *inode,
--
fs/ocfs2/aops.c-2378-
fs/ocfs2/aops.c:2379:		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
fs/ocfs2/aops.c-2380-		if (ret < 0)
--
fs/ocfs2/journal.c=2287=static int ocfs2_recover_orphans(struct ocfs2_super *osb,
--
fs/ocfs2/journal.c-2344-
fs/ocfs2/journal.c:2345:				ret = ocfs2_del_inode_from_orphan(osb, inode,
fs/ocfs2/journal.c-2346-						di_bh, 0, 0);
--
fs/ocfs2/namei.c=2633=int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
--
fs/ocfs2/namei.c-2662-
fs/ocfs2/namei.c:2663:		status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
fs/ocfs2/namei.c-2664-		if (status < 0) {
--
fs/ocfs2/namei.c-2708-
fs/ocfs2/namei.c:2709:int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.c-2710-		struct inode *inode, struct buffer_head *di_bh,
--
fs/ocfs2/namei.h=29=int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.h-30-		struct inode *inode);
fs/ocfs2/namei.h:31:int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.h-32-		struct inode *inode, struct buffer_head *di_bh,
]

54/2 2026/05/29 16:56 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67291
							output: 39
							thoughts: 30
						

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

**Investigating `ocfs2_add_inode_to_orphan`**

Alright, I'm thinking I need to delve into `ocfs2_add_inode_to_orphan` within `fs/ocfs2/namei.c`.  Seems like something related to orphan inodes and namei operations is where I should be focusing my attention. I need to understand how this function handles adding inodes to the orphan list. What are the specific conditions that trigger this? What locks are involved? Are there any potential race conditions I should be considering related to concurrent access?  I'll start by checking the function definition and look for any clues in its surrounding code about how the system handles orphan inodes and its integration with other parts of the OCFS2 namespace layer. I need to quickly grasp the implications of this function for overall filesystem consistency and recovery. Let's see what we can find.



55/2 2026/05/29 16:56 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:2633 LineCount:50]

Results:
map[Contents:2633:	int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
2634:		struct inode *inode)
2635:	{
2636:		char orphan_name[OCFS2_DIO_ORPHAN_PREFIX_LEN + OCFS2_ORPHAN_NAMELEN + 1];
2637:		struct inode *orphan_dir_inode = NULL;
2638:		struct ocfs2_dir_lookup_result orphan_insert = { NULL, };
2639:		struct buffer_head *di_bh = NULL;
2640:		int status = 0;
2641:		handle_t *handle = NULL;
2642:		struct ocfs2_dinode *di = NULL;
2643:	
2644:		status = ocfs2_inode_lock(inode, &di_bh, 1);
2645:		if (status < 0) {
2646:			mlog_errno(status);
2647:			goto bail;
2648:		}
2649:	
2650:		di = (struct ocfs2_dinode *) di_bh->b_data;
2651:		/*
2652:		 * Another append dio crashed?
2653:		 * If so, manually recover it first.
2654:		 */
2655:		if (unlikely(di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL))) {
2656:			status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode));
2657:			if (status < 0) {
2658:				if (status != -ENOSPC)
2659:					mlog_errno(status);
2660:				goto bail_unlock_inode;
2661:			}
2662:	
2663:			status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2664:			if (status < 0) {
2665:				mlog_errno(status);
2666:				goto bail_unlock_inode;
2667:			}
2668:		}
2669:	
2670:		status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode,
2671:				OCFS2_I(inode)->ip_blkno,
2672:				orphan_name,
2673:				&orphan_insert,
2674:				true);
2675:		if (status < 0) {
2676:			mlog_errno(status);
2677:			goto bail_unlock_inode;
2678:		}
2679:	
2680:		handle = ocfs2_start_trans(osb,
2681:				OCFS2_INODE_ADD_TO_ORPHAN_CREDITS);
2682:		if (IS_ERR(handle)) {
]

56/2 2026/05/29 16:56 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 68388
							output: 38
							thoughts: 65
						

Thoughts:
Okay, let me think this through.

**Analyzing the OCFS2 Truncation and Orphan Inode Removal Sequence**

Hmm, so I'm focusing on the interaction between `ocfs2_truncate_file` and `ocfs2_del_inode_from_orphan`. The crucial point here is the order of operations: `ocfs2_truncate_file` is called *before* the orphan inode removal. That immediately triggers a question: does the `ocfs2_truncate_file` function potentially hold the `EXTENT_ALLOC_SYSTEM_INODE` lock? That's the critical piece of information. If it does, and if we're dealing with a system inode, a tricky race could be going on. It is important to know which locks this code takes, and if there is a risk of a deadlock with the orphan cleanup logic.

Alright, time to get into the code. I need to dive into `ocfs2_truncate_file` and precisely verify its locking behavior. Only by understanding its locking strategy can I confirm if that lock is held at a time that's critical to the removal of orphan inodes. I'll need to pay close attention to the extent allocation system and ensure there's no potential conflict. This is definitely worth a thorough investigation.



57/2 2026/05/29 16:56 tool read-file
0m Args:
map[File:fs/ocfs2/file.c FirstLine:440 LineCount:100]

Results:
map[Contents: 440:				       struct buffer_head *di_bh,
 441:				       u64 new_i_size)
 442:	{
 443:		int status = 0;
 444:		struct ocfs2_dinode *fe = NULL;
 445:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 446:	
 447:		/* We trust di_bh because it comes from ocfs2_inode_lock(), which
 448:		 * already validated it */
 449:		fe = (struct ocfs2_dinode *) di_bh->b_data;
 450:	
 451:		trace_ocfs2_truncate_file((unsigned long long)OCFS2_I(inode)->ip_blkno,
 452:					  (unsigned long long)le64_to_cpu(fe->i_size),
 453:					  (unsigned long long)new_i_size);
 454:	
 455:		mlog_bug_on_msg(le64_to_cpu(fe->i_size) != i_size_read(inode),
 456:				"Inode %llu, inode i_size = %lld != di "
 457:				"i_size = %llu, i_flags = 0x%x\n",
 458:				(unsigned long long)OCFS2_I(inode)->ip_blkno,
 459:				i_size_read(inode),
 460:				(unsigned long long)le64_to_cpu(fe->i_size),
 461:				le32_to_cpu(fe->i_flags));
 462:	
 463:		if (new_i_size > le64_to_cpu(fe->i_size)) {
 464:			trace_ocfs2_truncate_file_error(
 465:				(unsigned long long)le64_to_cpu(fe->i_size),
 466:				(unsigned long long)new_i_size);
 467:			status = -EINVAL;
 468:			mlog_errno(status);
 469:			goto bail;
 470:		}
 471:	
 472:		down_write(&OCFS2_I(inode)->ip_alloc_sem);
 473:	
 474:		ocfs2_resv_discard(&osb->osb_la_resmap,
 475:				   &OCFS2_I(inode)->ip_la_data_resv);
 476:	
 477:		/*
 478:		 * The inode lock forced other nodes to sync and drop their
 479:		 * pages, which (correctly) happens even if we have a truncate
 480:		 * without allocation change - ocfs2 cluster sizes can be much
 481:		 * greater than page size, so we have to truncate them
 482:		 * anyway.
 483:		 */
 484:	
 485:		if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) {
 486:			unmap_mapping_range(inode->i_mapping,
 487:					    new_i_size + PAGE_SIZE - 1, 0, 1);
 488:			truncate_inode_pages(inode->i_mapping, new_i_size);
 489:			status = ocfs2_truncate_inline(inode, di_bh, new_i_size,
 490:						       i_size_read(inode), 1);
 491:			if (status)
 492:				mlog_errno(status);
 493:	
 494:			goto bail_unlock_sem;
 495:		}
 496:	
 497:		/* alright, we're going to need to do a full blown alloc size
 498:		 * change. Orphan the inode so that recovery can complete the
 499:		 * truncate if necessary. This does the task of marking
 500:		 * i_size. */
 501:		status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size);
 502:		if (status < 0) {
 503:			mlog_errno(status);
 504:			goto bail_unlock_sem;
 505:		}
 506:	
 507:		unmap_mapping_range(inode->i_mapping, new_i_size + PAGE_SIZE - 1, 0, 1);
 508:		truncate_inode_pages(inode->i_mapping, new_i_size);
 509:	
 510:		status = ocfs2_commit_truncate(osb, inode, di_bh);
 511:		if (status < 0) {
 512:			mlog_errno(status);
 513:			goto bail_unlock_sem;
 514:		}
 515:	
 516:		/* TODO: orphan dir cleanup here. */
 517:	bail_unlock_sem:
 518:		up_write(&OCFS2_I(inode)->ip_alloc_sem);
 519:	
 520:	bail:
 521:		if (!status && OCFS2_I(inode)->ip_clusters == 0)
 522:			status = ocfs2_try_remove_refcount_tree(inode, di_bh);
 523:	
 524:		return status;
 525:	}
 526:	
 527:	/*
 528:	 * extend file allocation only here.
 529:	 * we'll update all the disk stuff, and oip->alloc_size
 530:	 *
 531:	 * expect stuff to be locked, a transaction started and enough data /
 532:	 * metadata reservations in the contexts.
 533:	 *
 534:	 * Will return -EAGAIN, and a reason if a restart is needed.
 535:	 * If passed in, *reason will always be set, even in error.
 536:	 */
 537:	int ocfs2_add_inode_data(struct ocfs2_super *osb,
 538:				 struct inode *inode,
 539:				 u32 *logical_offset,
]

58/2 2026/05/29 16:56 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70480
							output: 35
							thoughts: 1177
						

Thoughts:
**Analyzing OCFS2 Orphan and Allocation Context Dependencies**

Okay, let's break this down. My initial thought process is centered around understanding the locking order, specifically around orphan inodes and the allocation context within the OCFS2 file system. I'm starting by tracing how `ocfs2_truncate_file` and `ocfs2_dio_end_io_write` interact with these systems.

First, I realize that `ocfs2_truncate_file` acquires `ORPHAN_DIR_SYSTEM_INODE` through its call to `ocfs2_orphan_for_truncate`. Crucially, it *doesn't* hold `EXTENT_ALLOC_SYSTEM_INODE`.  This means `ocfs2_add_inode_to_orphan` doesn't either.  Good.

Now, let's move to `ocfs2_dio_end_io_write`. Here, `meta_ac` (and `data_ac`) are allocated and `EXTENT_ALLOC_SYSTEM_INODE` is acquired within the `ocfs2_lock_allocators` function. Subsequently, the extent is marked as written, the transaction is committed, and then the allocation semaphore (`oi->ip_alloc_sem`) is released. Crucially, *then* `ocfs2_del_inode_from_orphan` is called, and *then* the allocation contexts are freed.

My immediate question is: can we safely reorder the freeing of `meta_ac` and `data_ac` to occur *before* the call to `ocfs2_del_inode_from_orphan`? This is the core of the optimization. This is where I start thinking about the implications. By moving the `ocfs2_free_alloc_context` calls earlier, we could break the dependency, that `EXTENT_ALLOC_SYSTEM_INODE` must be held *before* `ORPHAN_DIR_SYSTEM_INODE` is acquired.

I re-examine the code in `ocfs2_dio_end_io_write`.  It's clear that the existing order is: commit transaction, unlock the allocation semaphore, *then* free the allocation contexts. The suggested change is to move the context freeing *before* the call to `ocfs2_del_inode_from_orphan`.

My immediate concern is dependency and if the deallocation information stored in `meta_ac` or `data_ac` are used by the orphan deletion routine.

I see that `ocfs2_run_deallocs` is called *after* `ocfs2_free_alloc_context`, which implies it should not be using any resources from those contexts. I re-check the function.

Alright, what if the orphan deletion fails?  I realize that freeing `meta_ac` before the orphan deletion is called won't matter, as there's not a strong dependency. An error is returned, but the allocation context will already have been freed.

The key question is, are there *any* other places in the code where the allocation context locks are held when interacting with orphan inodes? This calls for a check of `ocfs2_orphan_for_truncate`. I need to ensure that the code doesn't create some other unexpected locking dependency.



59/2 2026/05/29 16:56 tool grepper
0m Args:
map[Expression:ocfs2_orphan_for_truncate PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/file.c=340=static int ocfs2_cow_file_pos(struct inode *inode,
--
fs/ocfs2/file.c-372-
fs/ocfs2/file.c:373:static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
fs/ocfs2/file.c-374-				     struct inode *inode,
--
fs/ocfs2/file.c=439=int ocfs2_truncate_file(struct inode *inode,
--
fs/ocfs2/file.c-500-	 * i_size. */
fs/ocfs2/file.c:501:	status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size);
fs/ocfs2/file.c-502-	if (status < 0) {
]

60/2 2026/05/29 16:57 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 72636
							output: 37
							thoughts: 15
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as though I were an expert:

**Diving into `ocfs2_orphan_for_truncate`**

Alright, let's get down to brass tacks and dissect this function: `ocfs2_orphan_for_truncate`. From the name alone, I can infer we're dealing with orphan handling, and specifically, the consequences of a truncation operation within the OCFS2 filesystem. My initial assumption is that this function will be crucial for maintaining data consistency and preventing orphaned inodes or blocks after a file's size is reduced. It's likely involved in updating the orphan list, which keeps track of inodes that need special attention after a truncation, perhaps because they're no longer directly reachable through the filesystem's directory structure. We'll be looking to see how it manages metadata updates, block allocation/deallocation (if necessary), and synchronization mechanisms to ensure atomicity. Depending on where this function sits, it likely ties into the bigger picture of crash recovery, too. My experience tells me that correctly handling orphan inodes is critical to the robustness of a distributed filesystem like OCFS2; it's a potential Achilles' heel if not implemented properly. So, I expect to see careful attention paid to locking and error handling.



61/2 2026/05/29 16:57 tool read-file
0m Args:
map[File:fs/ocfs2/file.c FirstLine:373 LineCount:50]

Results:
map[Contents: 373:	static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
 374:					     struct inode *inode,
 375:					     struct buffer_head *fe_bh,
 376:					     u64 new_i_size)
 377:	{
 378:		int status;
 379:		handle_t *handle;
 380:		struct ocfs2_dinode *di;
 381:		u64 cluster_bytes;
 382:	
 383:		/*
 384:		 * We need to CoW the cluster contains the offset if it is reflinked
 385:		 * since we will call ocfs2_zero_range_for_truncate later which will
 386:		 * write "0" from offset to the end of the cluster.
 387:		 */
 388:		status = ocfs2_cow_file_pos(inode, fe_bh, new_i_size);
 389:		if (status) {
 390:			mlog_errno(status);
 391:			return status;
 392:		}
 393:	
 394:		/* TODO: This needs to actually orphan the inode in this
 395:		 * transaction. */
 396:	
 397:		handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
 398:		if (IS_ERR(handle)) {
 399:			status = PTR_ERR(handle);
 400:			mlog_errno(status);
 401:			goto out;
 402:		}
 403:	
 404:		status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh,
 405:						 OCFS2_JOURNAL_ACCESS_WRITE);
 406:		if (status < 0) {
 407:			mlog_errno(status);
 408:			goto out_commit;
 409:		}
 410:	
 411:		/*
 412:		 * Do this before setting i_size.
 413:		 */
 414:		cluster_bytes = ocfs2_align_bytes_to_clusters(inode->i_sb, new_i_size);
 415:		status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size,
 416:						       cluster_bytes);
 417:		if (status) {
 418:			mlog_errno(status);
 419:			goto out_commit;
 420:		}
 421:	
 422:		i_size_write(inode, new_i_size);
]

62/2 2026/05/29 16:57 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73717
							output: 37
							thoughts: 112
						

Thoughts:
**Analyzing Orphaned Inode Handling in OCFS2**

Okay, hold on a second. This is important. I'm looking at the `ocfs2_orphan_for_truncate` function, and something isn't right. It explicitly *doesn't* acquire `ORPHAN_DIR_SYSTEM_INODE`, which is a key lock in this whole process. The code even has a comment that says, "/* TODO: This needs to actually orphan the inode in this transaction. */". So, essentially, it's not even doing the actual orphan operation within that function, which is… concerning, to say the least. This seems like a potential race condition or oversight that could lead to data integrity issues during truncate operations.

But then, what *is* responsible for adding the inode to the orphan list? I recall `ocfs2_add_inode_to_orphan` and yes, that *does* correctly acquire the `ORPHAN_DIR_SYSTEM_INODE` lock. This is the critical piece! However, now I need to backtrack and see precisely *where* `ocfs2_add_inode_to_orphan` is called from. I have to understand the flow, the conditions, and the critical sequence of operations that lead to an inode being declared orphaned, especially regarding truncate operations. The call path is the key to understanding this. I have to trace back now.



63/2 2026/05/29 16:57 tool grepper
0m Args:
map[Expression:ocfs2_add_inode_to_orphan PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/aops.c=2117=static int ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock,
--
fs/ocfs2/aops.c-2186-		 */
fs/ocfs2/aops.c:2187:		ret = ocfs2_add_inode_to_orphan(osb, inode);
fs/ocfs2/aops.c-2188-		if (ret < 0) {
--
fs/ocfs2/namei.c=2514=int ocfs2_create_inode_in_orphan(struct inode *dir,
--
fs/ocfs2/namei.c-2632-
fs/ocfs2/namei.c:2633:int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.c-2634-	struct inode *inode)
--
fs/ocfs2/namei.h=26=int ocfs2_create_inode_in_orphan(struct inode *dir,
--
fs/ocfs2/namei.h-28-				 struct inode **new_inode);
fs/ocfs2/namei.h:29:int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.h-30-		struct inode *inode);
]

64/2 2026/05/29 16:57 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74538
							output: 40
							thoughts: 17
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as requested, in the first person and targeted towards an expert:

**Diving into `ocfs2_dio_wr_get_block`**

Alright, time to dig into `ocfs2_dio_wr_get_block`. I need to refresh my memory on exactly how the OCFS2 direct I/O write block mapping process is handled. Let me see... I want to understand the specifics of how it interacts with the underlying block device, especially in the context of concurrent access and potential data coherency issues. I know it's crucial for performance, but I need to make sure I'm solid on the intricacies. The core of this probably involves looking at how the function calculates the physical block addresses, manages the extent mapping, and handles any potential allocation and deallocation within the OCFS2 file system. What are the key data structures and locking primitives used here? And how does it interact with the journaling layer, if at all, for atomicity? I need to remember the implications of different I/O sizes and how they impact the block mapping logic. Let me see where I left off last time... This is where the rubber meets the road in terms of high-performance OCFS2 operation. I have to think about this from a practical standpoint: what are the implications on error handling, and what edge cases exist that I need to keep in mind? I need to get a really good handle on it.



65/2 2026/05/29 16:57 tool read-file
0m Args:
map[File:fs/ocfs2/aops.c FirstLine:2117 LineCount:100]

Results:
map[Contents:2117:	static int ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock,
2118:				       struct buffer_head *bh_result, int create)
2119:	{
2120:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2121:		struct ocfs2_inode_info *oi = OCFS2_I(inode);
2122:		struct ocfs2_write_ctxt *wc;
2123:		struct ocfs2_write_cluster_desc *desc = NULL;
2124:		struct ocfs2_dio_write_ctxt *dwc = NULL;
2125:		struct buffer_head *di_bh = NULL;
2126:		u64 p_blkno;
2127:		unsigned int i_blkbits = inode->i_sb->s_blocksize_bits;
2128:		loff_t pos = iblock << i_blkbits;
2129:		sector_t endblk = (i_size_read(inode) - 1) >> i_blkbits;
2130:		unsigned len, total_len = bh_result->b_size;
2131:		int ret = 0, first_get_block = 0;
2132:	
2133:		len = osb->s_clustersize - (pos & (osb->s_clustersize - 1));
2134:		len = min(total_len, len);
2135:	
2136:		/*
2137:		 * bh_result->b_size is count in get_more_blocks according to write
2138:		 * "pos" and "end", we need map twice to return different buffer state:
2139:		 * 1. area in file size, not set NEW;
2140:		 * 2. area out file size, set  NEW.
2141:		 *
2142:		 *		   iblock    endblk
2143:		 * |--------|---------|---------|---------
2144:		 * |<-------area in file------->|
2145:		 */
2146:	
2147:		if ((iblock <= endblk) &&
2148:		    ((iblock + ((len - 1) >> i_blkbits)) > endblk))
2149:			len = (endblk - iblock + 1) << i_blkbits;
2150:	
2151:		mlog(0, "get block of %llu at %llu:%u req %u\n",
2152:				inode->i_ino, pos, len, total_len);
2153:	
2154:		/*
2155:		 * Because we need to change file size in ocfs2_dio_end_io_write(), or
2156:		 * we may need to add it to orphan dir. So can not fall to fast path
2157:		 * while file size will be changed.
2158:		 */
2159:		if (pos + total_len <= i_size_read(inode)) {
2160:	
2161:			/* This is the fast path for re-write. */
2162:			ret = ocfs2_lock_get_block(inode, iblock, bh_result, create);
2163:			if (buffer_mapped(bh_result) &&
2164:			    !buffer_new(bh_result) &&
2165:			    ret == 0)
2166:				goto out;
2167:	
2168:			/* Clear state set by ocfs2_get_block. */
2169:			bh_result->b_state = 0;
2170:		}
2171:	
2172:		dwc = ocfs2_dio_alloc_write_ctx(bh_result, &first_get_block);
2173:		if (unlikely(dwc == NULL)) {
2174:			ret = -ENOMEM;
2175:			mlog_errno(ret);
2176:			goto out;
2177:		}
2178:	
2179:		if (ocfs2_clusters_for_bytes(inode->i_sb, pos + total_len) >
2180:		    ocfs2_clusters_for_bytes(inode->i_sb, i_size_read(inode)) &&
2181:		    !dwc->dw_orphaned) {
2182:			/*
2183:			 * when we are going to alloc extents beyond file size, add the
2184:			 * inode to orphan dir, so we can recall those spaces when
2185:			 * system crashed during write.
2186:			 */
2187:			ret = ocfs2_add_inode_to_orphan(osb, inode);
2188:			if (ret < 0) {
2189:				mlog_errno(ret);
2190:				goto out;
2191:			}
2192:			dwc->dw_orphaned = 1;
2193:		}
2194:	
2195:		ret = ocfs2_inode_lock(inode, &di_bh, 1);
2196:		if (ret) {
2197:			mlog_errno(ret);
2198:			goto out;
2199:		}
2200:	
2201:		down_write(&oi->ip_alloc_sem);
2202:	
2203:		if (first_get_block) {
2204:			if (ocfs2_sparse_alloc(osb))
2205:				ret = ocfs2_zero_tail(inode, di_bh, pos);
2206:			else
2207:				ret = ocfs2_expand_nonsparse_inode(inode, di_bh, pos,
2208:								   total_len, NULL);
2209:			if (ret < 0) {
2210:				mlog_errno(ret);
2211:				goto unlock;
2212:			}
2213:		}
2214:	
2215:		ret = ocfs2_write_begin_nolock(inode->i_mapping, pos, len,
2216:					       OCFS2_WRITE_DIRECT, NULL,
]

66/2 2026/05/29 16:57 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 76594
							output: 39
							thoughts: 2403
						

Thoughts:
**Circular Dependency Identified in OCFS2 Direct I/O Write Path**

Okay, let me walk through this. I started by noticing that `ocfs2_dio_wr_get_block` calls `ocfs2_add_inode_to_orphan`, which *does* acquire `ORPHAN_DIR_SYSTEM_INODE`. I then, more importantly, checked to see if `ocfs2_dio_wr_get_block` held `EXTENT_ALLOC_SYSTEM_INODE`, and found that it did not. I tracked down the relevant code paths and, more importantly, confirmed with the lockdep report that the dependency arose when `ocfs2_del_inode_from_orphan`, called within `ocfs2_dio_end_io_write`, acquired `ORPHAN_DIR_SYSTEM_INODE` while `EXTENT_ALLOC_SYSTEM_INODE` was held, acquired via `ocfs2_lock_allocators`.

Specifically, `ocfs2_dio_end_io_write` calls `ocfs2_lock_allocators`, which *does* hold `EXTENT_ALLOC_SYSTEM_INODE` and then calls `ocfs2_del_inode_from_orphan`. I know that `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` is established in `ocfs2_mknod`, and `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE` in `ocfs2_wipe_inode`.  *This* is the circular dependency. We have a deadlock waiting to happen: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

To fix this, I think we can break the dependency by freeing `data_ac` and `meta_ac` (which hold `EXTENT_ALLOC_SYSTEM_INODE`) before calling `ocfs2_del_inode_from_orphan` in `ocfs2_dio_end_io_write`.  I need to double-check that it is safe to do. I need to make sure that even if `ocfs2_lock_allocators` fails, `data_ac` and `meta_ac` are properly handled. The proposed change addresses this, as it checks if `data_ac` and `meta_ac` are valid before calling the free function.

I also checked other call sites for this. `ocfs2_add_inode_to_orphan` does *not* hold `EXTENT_ALLOC_SYSTEM_INODE` while acquiring `ORPHAN_DIR_SYSTEM_INODE`, so no problem there. `ocfs2_truncate_file` doesn't seem to be a problem either because it goes through a different path. Finally, `ocfs2_remove_inode` relies on `ocfs2_wipe_inode` to hold `ORPHAN_DIR_SYSTEM_INODE` before calling `ocfs2_remove_inode`, so that also is not a problem.

Therefore, the fix is straightforward. I'm confident that the proposed change in `ocfs2_dio_end_io_write` will break the dependency and prevent the deadlock.



67/2 2026/05/29 16:58 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:2480 LineCount:50]

Results:
map[Contents:2480:	
2481:		ret = __ocfs2_prepare_orphan_dir(orphan_dir, orphan_dir_bh,
2482:						 di_blkno, orphan_name, orphan_insert,
2483:						 false);
2484:		if (ret < 0) {
2485:			mlog_errno(ret);
2486:			goto out;
2487:		}
2488:	
2489:	out:
2490:		if (ret == 0) {
2491:			*ret_orphan_dir = orphan_dir;
2492:			*ret_di_blkno = di_blkno;
2493:			*ret_inode_ac = inode_ac;
2494:			/*
2495:			 * orphan_name and orphan_insert are already up to
2496:			 * date via prepare_orphan_dir
2497:			 */
2498:		} else {
2499:			/* Unroll reserve_new_inode* */
2500:			if (inode_ac)
2501:				ocfs2_free_alloc_context(inode_ac);
2502:	
2503:			/* Unroll orphan dir locking */
2504:			inode_unlock(orphan_dir);
2505:			ocfs2_inode_unlock(orphan_dir, 1);
2506:			iput(orphan_dir);
2507:		}
2508:	
2509:		brelse(orphan_dir_bh);
2510:	
2511:		return ret;
2512:	}
2513:	
2514:	int ocfs2_create_inode_in_orphan(struct inode *dir,
2515:					 int mode,
2516:					 struct inode **new_inode)
2517:	{
2518:		int status, did_quota_inode = 0;
2519:		struct inode *inode = NULL;
2520:		struct inode *orphan_dir = NULL;
2521:		struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
2522:		handle_t *handle = NULL;
2523:		char orphan_name[OCFS2_ORPHAN_NAMELEN + 1];
2524:		struct buffer_head *parent_di_bh = NULL;
2525:		struct buffer_head *new_di_bh = NULL;
2526:		struct ocfs2_alloc_context *inode_ac = NULL;
2527:		struct ocfs2_dir_lookup_result orphan_insert = { NULL, };
2528:		u64 di_blkno, suballoc_loc;
2529:		u16 suballoc_bit;
]

68/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 80525
							output: 34
							thoughts: 13
						

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

**OCFS2 Orphan Deletion: Time to Investigate**

Right, let's take a look at `ocfs2_orphan_del`. I need to refresh my memory on the orphan deletion process within OCFS2. It's probably been a while since I last looked closely at the details of how it handles file system inconsistencies and recovers from them. I'm especially interested in understanding the current implementation – any recent changes or performance considerations that might be relevant. This function is critical for maintaining data integrity, so a deep understanding is always paramount. Time to dig in and re-evaluate its inner workings.



69/2 2026/05/29 16:58 tool grepper
0m Args:
map[Expression:int ocfs2_orphan_del PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/namei.c=2245=static int ocfs2_orphan_add(struct ocfs2_super *osb,
--
fs/ocfs2/namei.c-2346-/* unlike orphan_add, we expect the orphan dir to already be locked here. */
fs/ocfs2/namei.c:2347:int ocfs2_orphan_del(struct ocfs2_super *osb,
fs/ocfs2/namei.c-2348-		     handle_t *handle,
--
fs/ocfs2/namei.h=18=struct dentry *ocfs2_get_parent(struct dentry *child);
fs/ocfs2/namei.h-19-
fs/ocfs2/namei.h:20:int ocfs2_orphan_del(struct ocfs2_super *osb,
fs/ocfs2/namei.h-21-		     handle_t *handle,
]

70/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 80981
							output: 40
							thoughts: 39
						

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

**Checking Orphan Handling Consistency**

Right, `ocfs2_orphan_del` *definitely* anticipates that the orphan directory is already under lock. That's standard practice, part of the overall locking strategy for managing orphan inodes. I’d expect nothing less, given the delicate dance of metadata changes and the potential for concurrent operations. The locking is crucial for ensuring data integrity during the deletion process.

Hold on... Now that I think about it... What about `ocfs2_create_inode_in_orphan`? Does *that* function also ensure the orphan directory is locked before attempting to do its work? If so, this is handled well. If not, then we have a potential race condition which needs to be carefully addressed. I better check the locking semantics there immediately, because that could be a significant vulnerability if not correctly implemented.



71/2 2026/05/29 16:58 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:2514 LineCount:100]

Results:
map[Contents:2514:	int ocfs2_create_inode_in_orphan(struct inode *dir,
2515:					 int mode,
2516:					 struct inode **new_inode)
2517:	{
2518:		int status, did_quota_inode = 0;
2519:		struct inode *inode = NULL;
2520:		struct inode *orphan_dir = NULL;
2521:		struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
2522:		handle_t *handle = NULL;
2523:		char orphan_name[OCFS2_ORPHAN_NAMELEN + 1];
2524:		struct buffer_head *parent_di_bh = NULL;
2525:		struct buffer_head *new_di_bh = NULL;
2526:		struct ocfs2_alloc_context *inode_ac = NULL;
2527:		struct ocfs2_dir_lookup_result orphan_insert = { NULL, };
2528:		u64 di_blkno, suballoc_loc;
2529:		u16 suballoc_bit;
2530:	
2531:		status = ocfs2_inode_lock(dir, &parent_di_bh, 1);
2532:		if (status < 0) {
2533:			if (status != -ENOENT)
2534:				mlog_errno(status);
2535:			return status;
2536:		}
2537:	
2538:		status = ocfs2_prep_new_orphaned_file(dir, parent_di_bh,
2539:						      orphan_name, &orphan_dir,
2540:						      &di_blkno, &orphan_insert, &inode_ac);
2541:		if (status < 0) {
2542:			if (status != -ENOSPC)
2543:				mlog_errno(status);
2544:			goto leave;
2545:		}
2546:	
2547:		inode = ocfs2_get_init_inode(dir, mode);
2548:		if (IS_ERR(inode)) {
2549:			status = PTR_ERR(inode);
2550:			inode = NULL;
2551:			mlog_errno(status);
2552:			goto leave;
2553:		}
2554:	
2555:		handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0));
2556:		if (IS_ERR(handle)) {
2557:			status = PTR_ERR(handle);
2558:			handle = NULL;
2559:			mlog_errno(status);
2560:			goto leave;
2561:		}
2562:	
2563:		status = dquot_alloc_inode(inode);
2564:		if (status)
2565:			goto leave;
2566:		did_quota_inode = 1;
2567:	
2568:		status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac,
2569:						      &suballoc_loc,
2570:						      &suballoc_bit, di_blkno);
2571:		if (status < 0) {
2572:			mlog_errno(status);
2573:			goto leave;
2574:		}
2575:	
2576:		clear_nlink(inode);
2577:		/* do the real work now. */
2578:		status = __ocfs2_mknod_locked(dir, inode,
2579:					      0, &new_di_bh, handle,
2580:					      inode_ac, di_blkno, suballoc_loc,
2581:					      suballoc_bit);
2582:		if (status < 0) {
2583:			mlog_errno(status);
2584:			goto leave;
2585:		}
2586:	
2587:		status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name,
2588:					  &orphan_insert, orphan_dir, false);
2589:		if (status < 0) {
2590:			mlog_errno(status);
2591:			goto leave;
2592:		}
2593:	
2594:		/* get open lock so that only nodes can't remove it from orphan dir. */
2595:		status = ocfs2_open_lock(inode);
2596:		if (status < 0)
2597:			mlog_errno(status);
2598:	
2599:		insert_inode_hash(inode);
2600:	leave:
2601:		if (status < 0 && did_quota_inode)
2602:			dquot_free_inode(inode);
2603:		if (handle)
2604:			ocfs2_commit_trans(osb, handle);
2605:	
2606:		if (orphan_dir) {
2607:			/* This was locked for us in ocfs2_prepare_orphan_dir() */
2608:			ocfs2_inode_unlock(orphan_dir, 1);
2609:			inode_unlock(orphan_dir);
2610:			iput(orphan_dir);
2611:		}
2612:	
2613:		if ((status < 0) && inode) {
]

72/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 82790
							output: 39
							thoughts: 49
						

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

**Diving into the Orphaned File Creation**

Okay, so I'm tracking the inode creation process within OCFS2, specifically for orphaned files. I see `ocfs2_create_inode_in_orphan` in the call stack. Interesting... it's the gateway for orphaned file creation. That means I need to understand what happens inside that function.

Aha! `ocfs2_create_inode_in_orphan` calls `ocfs2_prep_new_orphaned_file`. This is key. The `prep` function is likely where the *actual* setup work for the new orphaned inode is done. I'm going to shift my focus there. `ocfs2_prep_new_orphaned_file` holds the next crucial piece of this puzzle. I need to examine its implementation to truly understand the mechanics of orphaned file creation within the filesystem. Let's see what that function is doing.



73/2 2026/05/29 16:58 tool read-file
0m Args:
map[File:fs/ocfs2/namei.c FirstLine:2445 LineCount:50]

Results:
map[Contents:2445:	static int ocfs2_prep_new_orphaned_file(struct inode *dir,
2446:						struct buffer_head *dir_bh,
2447:						char *orphan_name,
2448:						struct inode **ret_orphan_dir,
2449:						u64 *ret_di_blkno,
2450:						struct ocfs2_dir_lookup_result *orphan_insert,
2451:						struct ocfs2_alloc_context **ret_inode_ac)
2452:	{
2453:		int ret;
2454:		u64 di_blkno;
2455:		struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
2456:		struct inode *orphan_dir = NULL;
2457:		struct buffer_head *orphan_dir_bh = NULL;
2458:		struct ocfs2_alloc_context *inode_ac = NULL;
2459:	
2460:		ret = ocfs2_lookup_lock_orphan_dir(osb, &orphan_dir, &orphan_dir_bh);
2461:		if (ret < 0) {
2462:			mlog_errno(ret);
2463:			return ret;
2464:		}
2465:	
2466:		/* reserve an inode spot */
2467:		ret = ocfs2_reserve_new_inode(osb, &inode_ac);
2468:		if (ret < 0) {
2469:			if (ret != -ENOSPC)
2470:				mlog_errno(ret);
2471:			goto out;
2472:		}
2473:	
2474:		ret = ocfs2_find_new_inode_loc(dir, dir_bh, inode_ac,
2475:					       &di_blkno);
2476:		if (ret) {
2477:			mlog_errno(ret);
2478:			goto out;
2479:		}
2480:	
2481:		ret = __ocfs2_prepare_orphan_dir(orphan_dir, orphan_dir_bh,
2482:						 di_blkno, orphan_name, orphan_insert,
2483:						 false);
2484:		if (ret < 0) {
2485:			mlog_errno(ret);
2486:			goto out;
2487:		}
2488:	
2489:	out:
2490:		if (ret == 0) {
2491:			*ret_orphan_dir = orphan_dir;
2492:			*ret_di_blkno = di_blkno;
2493:			*ret_inode_ac = inode_ac;
2494:			/*
]

74/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 83864
							output: 36
							thoughts: 1280
						

Thoughts:
**Analyzing and Fixing a Circular Locking Dependency in OCFS2**

Okay, let's break this down. I see that `ocfs2_prep_new_orphaned_file` calls `ocfs2_lookup_lock_orphan_dir`, which grabs the `ORPHAN_DIR_SYSTEM_INODE` lock. Then, it calls `ocfs2_reserve_new_inode`, and that acquires the `INODE_ALLOC_SYSTEM_INODE`. So, we've got `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE` here as well, similar to what happens in `ocfs2_wipe_inode`.

Aha, that outlines the circular dependency: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` (in `ocfs2_mknod`), then `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` (in `ocfs2_dio_end_io_write`), and finally `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE` (in both `ocfs2_wipe_inode` and now, `ocfs2_prep_new_orphaned_file`).

To break this, the obvious place to look is `ocfs2_dio_end_io_write`. If we release `EXTENT_ALLOC_SYSTEM_INODE` *before* acquiring `ORPHAN_DIR_SYSTEM_INODE`, we should be good.

Let's verify that `ocfs2_dio_end_io_write` is the *only* place establishing this `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` dependency. I'll need to check where `ocfs2_lock_allocators` is called, and *then* `ORPHAN_DIR_SYSTEM_INODE` is acquired.

`ocfs2_lock_allocators` gets called in `ocfs2_write_begin_nolock`, `ocfs2_dio_end_io_write` (the suspect), `ocfs2_dx_dir_rebalance`, `ocfs2_extend_allocation`, and `ocfs2_rm_xattr_cluster`. Let's run through these:

*   `ocfs2_write_begin_nolock`: Calls `ocfs2_lock_allocators`, then `ocfs2_start_trans`, `ocfs2_write_cluster_by_desc`, and frees `data_ac` and `meta_ac`. No `ORPHAN_DIR_SYSTEM_INODE`. Good.
*   `ocfs2_dx_dir_rebalance`: Calls `ocfs2_lock_allocators`, then `ocfs2_start_trans`, `ocfs2_claim_metadata`, frees `data_ac` and `meta_ac`. Still no `ORPHAN_DIR_SYSTEM_INODE`.
*   `ocfs2_extend_allocation`:  Calls `ocfs2_lock_allocators`, then `ocfs2_start_trans`, `ocfs2_claim_metadata`, frees `data_ac` and `meta_ac`. No `ORPHAN_DIR_SYSTEM_INODE`.
*   `ocfs2_rm_xattr_cluster`: Calls `ocfs2_lock_allocators`, then `ocfs2_start_trans`, `ocfs2_claim_metadata`, frees `meta_ac`.  No `ORPHAN_DIR_SYSTEM_INODE`.

Alright, it looks like `ocfs2_dio_end_io_write` is indeed the *only* place. That's excellent news. The plan is sound. Freeing `data_ac` and `meta_ac` before `ocfs2_del_inode_from_orphan` should resolve the dependency.

Here's the fix: I need to move the freeing of the allocation contexts *before* calling `ocfs2_del_inode_from_orphan`. Specifically, in `fs/ocfs2/aops.c`, the `ocfs2_dio_end_io_write` function, I have to ensure that `ocfs2_free_alloc_context` of `data_ac` and `meta_ac` are done *before* `ocfs2_del_inode_from_orphan` is called.

Wait, looking at the code, `ocfs2_run_deallocs` uses `&dealloc`. The `dealloc` structure is populated during `


75/2 2026/05/29 16:58 tool grepper
0m Args:
map[Expression:int ocfs2_run_deallocs PathPrefix:fs/ocfs2/]

Results:
map[Output:fs/ocfs2/alloc.c=6521=static int ocfs2_free_cached_clusters(struct ocfs2_super *osb,
--
fs/ocfs2/alloc.c-6572-
fs/ocfs2/alloc.c:6573:int ocfs2_run_deallocs(struct ocfs2_super *osb,
fs/ocfs2/alloc.c-6574-		       struct ocfs2_cached_dealloc_ctxt *ctxt)
--
fs/ocfs2/alloc.h=201=static inline int ocfs2_dealloc_has_cluster(struct ocfs2_cached_dealloc_ctxt *c)
--
fs/ocfs2/alloc.h-204-}
fs/ocfs2/alloc.h:205:int ocfs2_run_deallocs(struct ocfs2_super *osb,
fs/ocfs2/alloc.h-206-		       struct ocfs2_cached_dealloc_ctxt *ctxt);
]

76/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 86471
							output: 38
							thoughts: 15
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as if I were considering the `ocfs2_run_deallocs` function, keeping in mind I'm an expert in the field:

**Diving into `ocfs2_run_deallocs`**

Alright, let's get into this. I'm taking a look at `ocfs2_run_deallocs`, so that means I'm probably dealing with either inode deallocation or potentially block deallocation in OCFS2. Immediately, I'm thinking about the context – what's triggering this? Is it a forced unmount, a regular file deletion, a metadata operation, or something else entirely? I need to understand the call path. Where is this function being called from, and under what lock contexts? That's going to be crucial for understanding potential race conditions and the overall performance implications.

My mind immediately jumps to the data structures involved: What queues or lists are likely being processed within this function? I'm expecting to see references to inode lists or block lists, the structures that hold the information of what needs to be freed. I need to understand how these lists are being managed and if there are any critical sections being used to synchronize access to these lists.

I'm thinking about the potential for blocking. Is this function going to be synchronous or asynchronous? Are there any I/O operations involved that could stall things, or is this all in-memory metadata manipulation? If it *is* synchronous, what locks need to be held, and what is the potential impact on other operations that might be waiting? If it's asynchronous, how is this handled, and what are the implications for crash recovery and consistency?

I'm also looking for any opportunities for optimization. Are there any batching strategies used? Can we consolidate multiple deallocation requests into a single I/O operation to reduce overhead? Any potential for parallelization? I'm always thinking about performance, and deallocation is a critical path for responsiveness. I'll need to look at any logging and debugging statements, what information is being logged and if the log level is appropriate. I'll be keeping an eye out for any specific error paths and how they're handled to get a better feel of the robustness of the function.

And finally, I'll be searching for any potential gotchas. Are there any corner cases that might be missed? What about the handling of orphaned inodes or blocks? Is there any special logic for handling extent metadata that might need to be freed? Are there any potential memory leaks or corruption issues that I should be on the lookout for? I'm going to look for any comments that might give some insight.

Time to dive in. Let's see what's actually going on.



77/2 2026/05/29 16:58 tool read-file
0m Args:
map[File:fs/ocfs2/alloc.c FirstLine:6573 LineCount:50]

Results:
map[Contents:6573:	int ocfs2_run_deallocs(struct ocfs2_super *osb,
6574:			       struct ocfs2_cached_dealloc_ctxt *ctxt)
6575:	{
6576:		int ret = 0, ret2;
6577:		struct ocfs2_per_slot_free_list *fl;
6578:	
6579:		if (!ctxt)
6580:			return 0;
6581:	
6582:		while (ctxt->c_first_suballocator) {
6583:			fl = ctxt->c_first_suballocator;
6584:	
6585:			if (fl->f_first) {
6586:				trace_ocfs2_run_deallocs(fl->f_inode_type,
6587:							 fl->f_slot);
6588:				ret2 = ocfs2_free_cached_blocks(osb,
6589:								fl->f_inode_type,
6590:								fl->f_slot,
6591:								fl->f_first);
6592:				if (ret2)
6593:					mlog_errno(ret2);
6594:				if (!ret)
6595:					ret = ret2;
6596:			}
6597:	
6598:			ctxt->c_first_suballocator = fl->f_next_suballocator;
6599:			kfree(fl);
6600:		}
6601:	
6602:		if (ctxt->c_global_allocator) {
6603:			ret2 = ocfs2_free_cached_clusters(osb,
6604:							  ctxt->c_global_allocator);
6605:			if (ret2)
6606:				mlog_errno(ret2);
6607:			if (!ret)
6608:				ret = ret2;
6609:	
6610:			ctxt->c_global_allocator = NULL;
6611:		}
6612:	
6613:		return ret;
6614:	}
6615:	
6616:	static struct ocfs2_per_slot_free_list *
6617:	ocfs2_find_per_slot_free_list(int type,
6618:				      int slot,
6619:				      struct ocfs2_cached_dealloc_ctxt *ctxt)
6620:	{
6621:		struct ocfs2_per_slot_free_list *fl = ctxt->c_first_suballocator;
6622:	
]

78/2 2026/05/29 16:58 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 87836
							output: 1257
							thoughts: 4695
						

Thoughts:
**Summary of the Lockdep Issue and Fix**

Okay, so here's the deal, as I understand it. We've got a lockdep issue surfacing in OCFS2, specifically related to how we handle system inode locks. There are three key locks in play here:

1.  `INODE_ALLOC_SYSTEM_INODE`
2.  `EXTENT_ALLOC_SYSTEM_INODE`
3.  `ORPHAN_DIR_SYSTEM_INODE`

The lockdep report highlights a circular dependency among these. Let's break down how this circular chain forms:

*   **Dependency 1: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`**: This dependency shows up during `ocfs2_mknod()` in `fs/ocfs2/namei.c`, at line 351. In this function, we first call `ocfs2_reserve_new_inode()` (ultimately via `ocfs2_reserve_suballoc_bits()`, which then acquires the `INODE_ALLOC_SYSTEM_INODE` lock. Then, the next step in this path is `ocfs2_reserve_new_metadata_blocks()`, which subsequently acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. This leads to the first dependency.
*   **Dependency 2: `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`**: The most important dependency is with `ocfs2_dio_end_io_write()` which can be found in `fs/ocfs2/aops.c` line 2379. When allocating metadata blocks for unwritten extents, we call `ocfs2_lock_allocators()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock (stored in the `meta_ac` context). Then, if the inode is orphaned, we call `ocfs2_del_inode_from_orphan()`. `ocfs2_del_inode_from_orphan()` acquires `ORPHAN_DIR_SYSTEM_INODE`. Crucially, `meta_ac` is only freed at the end of the function. This means the lock associated with `EXTENT_ALLOC_SYSTEM_INODE` is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired.
*   **Dependency 3: `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`**: In `ocfs2_wipe_inode()` in `fs/ocfs2/inode.c`, the `ORPHAN_DIR_SYSTEM_INODE` lock is acquired first. Then, we call `ocfs2_remove_inode()` to free the inode, acquiring the `INODE_ALLOC_SYSTEM_INODE` lock. (The same dependency can be found in `ocfs2_prep_new_orphaned_file()`).

This sequence creates a circular locking order: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

The solution here involves breaking that circular dependency, and it's quite simple. We need to release the `EXTENT_ALLOC_SYSTEM_INODE` lock *before* acquiring the `ORPHAN_DIR_SYSTEM_INODE` lock in `ocfs2_dio_end_io_write()`. We can safely free the allocation contexts (`data_ac` and `meta_ac`) which hold the `EXTENT_ALLOC_SYSTEM_INODE` lock *before* the call to `ocfs2_del_inode_from_orphan()`. This is because the transaction which created these locks has already been commited and the allocation semaphore released, hence these resources are no longer needed.

Here's the code snippet demonstrating the fix, with the relevant changes in `fs/ocfs2/aops.c`:

```c
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,16 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		


79/1 2026/05/29 16:59 action kernel-scratch-checkouter
0m Results:
map[KernelScratchSrc:/app/workdir/cache/tmp/tmp1500867002]

80/1 2026/05/29 16:59 loop
28m
81/2 2026/05/29 16:59 iteration 0
28m
82/3 2026/05/29 16:59 agent patch-generator
1m Model:
gemini-3.1-pro-preview

Instruction:
You are an experienced Linux kernel developer tasked with creating a fix for a kernel bug.
You will be given a crash report, and an initial explanation of the root cause done by another
kernel expert.

Use the codeeditor tool to do code edits.
Note: you will not see your changes when looking at the code using codesearch tools.
Use the patch-diff tool to review the modifications you applied.

Your final reply should contain explanation of what you did in the patch and why
(details not present in the initial explanation of the bug).

Your fix must not just prevent the given crash, but also be the best fix for the underlying
root cause from the software engineering point of view. There can be several ways to fix the
same bug. Consider alternatives, and pick the best one. For example, additional checks may be
added at different locations/functions, it's usually better to place them earlier in the
execution to avoid multiple checks at various locations later.

Frequently the same coding mistake is done in several locations in the source code.
Check if your fix should be extended/applied to similar cases around to fix other similar bugs.
But don't go too wide, don't try to fix problems kernel-wide, fix similar issues
in the same file only.


If you are changing post-conditions of a function, consider all callers of the functions,
and if they need to be updated to handle new post-conditions. For example, if you make
a function that previously never returned a NULL, return NULL, consider if callers
need to be updated to handle NULL return value.



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

Prompt:
The crash that corresponds to the bug is:

======================================================
WARNING: possible circular locking dependency detected
syzkaller #1 Not tainted
------------------------------------------------------
syz-executor/6069 is trying to acquire lock:
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/6069:
 #0: ffff8881161a4410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff8881166b0bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 6069 Comm: syz-executor Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51b819bf77
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffd5ea06718 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f51b819bf77
RDX: 0000000000000200 RSI: 00007ffd5ea078c0 RDI: 00000000ffffff9c
RBP: 00007f51b82321ca R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffd5ea078c0
R13: 00007f51b82321ca R14: 000000000001819f R15: 00007ffd5ea09a80
 </TASK>


The explanation of the root cause of the bug is:

The lockdep warning reports a circular locking dependency involving three OCFS2 system inode locks (which all belong to the `ocfs2_sysfile_lock_key` lock class, but are distinct locks based on their system inode type). 

The three locks involved are:
1. `INODE_ALLOC_SYSTEM_INODE`
2. `EXTENT_ALLOC_SYSTEM_INODE`
3. `ORPHAN_DIR_SYSTEM_INODE`

### Root Cause Analysis

The circular dependency is formed by three separate code paths that establish the following lock ordering:

**1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`**
In `ocfs2_mknod()` (`fs/ocfs2/namei.c`), the code first reserves an inode by calling `ocfs2_reserve_new_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock. Shortly after, it reserves metadata blocks by calling `ocfs2_reserve_new_metadata_blocks()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Both locks are held concurrently until the end of the function (or upon error), establishing this dependency.

**2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`**
In `ocfs2_dio_end_io_write()` (`fs/ocfs2/aops.c`), the code allocates metadata blocks for unwritten extents by calling `ocfs2_lock_allocators()`. This allocates `meta_ac` and acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Later in the same function, if the inode was orphaned, it calls `ocfs2_del_inode_from_orphan()`, which acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. The `meta_ac` context (and thus the `EXTENT_ALLOC_SYSTEM_INODE` lock) is only freed at the very end of the function, meaning it is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired.

**3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`**
In `ocfs2_wipe_inode()` (`fs/ocfs2/inode.c`), the `ORPHAN_DIR_SYSTEM_INODE` lock is acquired first to prevent races with recovery completion. While holding this lock, it calls `ocfs2_remove_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock to free the inode. (A similar dependency is also established in `ocfs2_prep_new_orphaned_file()`).

Combining these three paths creates the circular dependency:
`INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

### How to Fix

We can break the cycle by addressing the second dependency (`EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`) in `ocfs2_dio_end_io_write()`. 

The `data_ac` and `meta_ac` allocation contexts are only needed for the transaction that marks the extents as written. Once the transaction is committed via `ocfs2_commit_trans()` and the allocation semaphore is released via `up_write(&oi->ip_alloc_sem)`, these contexts are no longer needed. We can safely free them (which releases the `EXTENT_ALLOC_SYSTEM_INODE` lock) *before* calling `ocfs2_del_inode_from_orphan()`.

Here is the proposed fix for `fs/ocfs2/aops.c`:

```c
@@ -2372,6 +2372,16 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2393,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
```

This ensures that the `EXTENT_ALLOC_SYSTEM_INODE` lock is dropped before we attempt to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock, successfully breaking the circular dependency.



Reply:
I have applied the fix to break the circular locking dependency by modifying `ocfs2_dio_end_io_write()` in `fs/ocfs2/aops.c`.

### What I did:
I moved the freeing of the `data_ac` and `meta_ac` allocation contexts to happen immediately after the transaction is committed and the allocation semaphore is released (`up_write(&oi->ip_alloc_sem)`), but *before* the call to `ocfs2_del_inode_from_orphan()`. 

### Why this is the best fix:
The circular dependency is formed by the following lock ordering:
1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` (in `ocfs2_mknod()`)
2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` (in `ocfs2_dio_end_io_write()`)
3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE` (in `ocfs2_wipe_inode()`)

By freeing `data_ac` and `meta_ac` earlier in `ocfs2_dio_end_io_write()`, we release the `EXTENT_ALLOC_SYSTEM_INODE` lock before attempting to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock (which happens inside `ocfs2_del_inode_from_orphan()`). This effectively breaks the `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` dependency, resolving the circular locking issue.

The allocation contexts (`data_ac` and `meta_ac`) are only needed for the transaction that marks the extents as written. Once the transaction is committed and the allocation semaphore is released, they are no longer required. Freeing them early is completely safe and does not affect the subsequent orphan cleanup or deallocation steps.

I also verified other occurrences of `ocfs2_del_inode_from_orphan()` (such as in `ocfs2_recover_orphans()` and `ocfs2_add_inode_to_orphan()`) and confirmed that they do not hold the `EXTENT_ALLOC_SYSTEM_INODE` lock. Similarly, I checked other callers of `ocfs2_lock_allocators()` and confirmed they do not acquire the `ORPHAN_DIR_SYSTEM_INODE` lock while holding the allocation contexts. Therefore, this fix is localized and sufficient to resolve the root cause without introducing new issues.

83/4 2026/05/29 16:59 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9932
							output: 45
							thoughts: 182
						

Thoughts:
**Analyzing a Circular Locking Dependency in OCFS2**

Okay, so I'm looking at this issue in OCFS2 and it seems we have a nasty circular locking dependency. The breakdown is: `INODE_ALLOC_SYSTEM_INODE` is grabbing a lock that `EXTENT_ALLOC_SYSTEM_INODE` requires. Then `EXTENT_ALLOC_SYSTEM_INODE` needs `ORPHAN_DIR_SYSTEM_INODE`, and finally, `ORPHAN_DIR_SYSTEM_INODE` is somehow reaching back and needing `INODE_ALLOC_SYSTEM_INODE`. That's a classic deadlock scenario waiting to happen.

The suggested fix sounds promising. It looks like the proposal is to reorder the freeing of `data_ac` and `meta_ac` within `ocfs2_dio_end_io_write()` to happen *before* calling `ocfs2_del_inode_from_orphan()`. That could break the cycle, which I like the sound of. Let's see... I'll need to dig into the code and verify the rationale behind this. I'll need to open `fs/ocfs2/aops.c` and take a closer look at what's happening within `ocfs2_dio_end_io_write()`. Let's see if this proposed change is the right approach.



84/4 2026/05/29 16:59 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/aops.c Name:ocfs2_dio_end_io_write]

Results:
map[SourceCode:2266:	static int ocfs2_dio_end_io_write(struct inode *inode,
2267:					  struct ocfs2_dio_write_ctxt *dwc,
2268:					  loff_t offset,
2269:					  ssize_t bytes)
2270:	{
2271:		struct ocfs2_cached_dealloc_ctxt dealloc;
2272:		struct ocfs2_extent_tree et;
2273:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2274:		struct ocfs2_inode_info *oi = OCFS2_I(inode);
2275:		struct ocfs2_unwritten_extent *ue = NULL;
2276:		struct buffer_head *di_bh = NULL;
2277:		struct ocfs2_dinode *di;
2278:		struct ocfs2_alloc_context *data_ac = NULL;
2279:		struct ocfs2_alloc_context *meta_ac = NULL;
2280:		handle_t *handle = NULL;
2281:		loff_t end = offset + bytes;
2282:		int ret = 0, credits = 0, batch = 0;
2283:	
2284:		ocfs2_init_dealloc_ctxt(&dealloc);
2285:	
2286:		/* We do clear unwritten, delete orphan, change i_size here. If neither
2287:		 * of these happen, we can skip all this. */
2288:		if (list_empty(&dwc->dw_zero_list) &&
2289:		    end <= i_size_read(inode) &&
2290:		    !dwc->dw_orphaned)
2291:			goto out;
2292:	
2293:		ret = ocfs2_inode_lock(inode, &di_bh, 1);
2294:		if (ret < 0) {
2295:			mlog_errno(ret);
2296:			goto out;
2297:		}
2298:	
2299:		down_write(&oi->ip_alloc_sem);
2300:		di = (struct ocfs2_dinode *)di_bh->b_data;
2301:	
2302:		ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
2303:	
2304:		/* Attach dealloc with extent tree in case that we may reuse extents
2305:		 * which are already unlinked from current extent tree due to extent
2306:		 * rotation and merging.
2307:		 */
2308:		et.et_dealloc = &dealloc;
2309:	
2310:		ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
2311:					    &data_ac, &meta_ac);
2312:		if (ret) {
2313:			mlog_errno(ret);
2314:			goto unlock;
2315:		}
2316:	
2317:		credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
2318:	
2319:		list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
2320:			if (!handle) {
2321:				handle = ocfs2_start_trans(osb, credits);
2322:				if (IS_ERR(handle)) {
2323:					ret = PTR_ERR(handle);
2324:					mlog_errno(ret);
2325:					goto unlock;
2326:				}
2327:				ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
2328:						OCFS2_JOURNAL_ACCESS_WRITE);
2329:				if (ret) {
2330:					mlog_errno(ret);
2331:					goto commit;
2332:				}
2333:			}
2334:			ret = ocfs2_assure_trans_credits(handle, credits);
2335:			if (ret < 0) {
2336:				mlog_errno(ret);
2337:				goto commit;
2338:			}
2339:			ret = ocfs2_mark_extent_written(inode, &et, handle,
2340:							ue->ue_cpos, 1,
2341:							ue->ue_phys,
2342:							meta_ac, &dealloc);
2343:			if (ret < 0) {
2344:				mlog_errno(ret);
2345:				goto commit;
2346:			}
2347:	
2348:			if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
2349:				ocfs2_commit_trans(osb, handle);
2350:				handle = NULL;
2351:				batch = 0;
2352:			}
2353:		}
2354:	
2355:		if (end > i_size_read(inode)) {
2356:			if (!handle) {
2357:				handle = ocfs2_start_trans(osb, credits);
2358:				if (IS_ERR(handle)) {
2359:					ret = PTR_ERR(handle);
2360:					mlog_errno(ret);
2361:					goto unlock;
2362:				}
2363:			}
2364:			ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
2365:			if (ret < 0)
2366:				mlog_errno(ret);
2367:		}
2368:	
2369:	commit:
2370:		if (handle)
2371:			ocfs2_commit_trans(osb, handle);
2372:	unlock:
2373:		up_write(&oi->ip_alloc_sem);
2374:	
2375:		/* everything looks good, let's start the cleanup */
2376:		if (!ret && dwc->dw_orphaned) {
2377:			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
2378:	
2379:			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2380:			if (ret < 0)
2381:				mlog_errno(ret);
2382:		}
2383:		ocfs2_inode_unlock(inode, 1);
2384:		brelse(di_bh);
2385:	out:
2386:		if (data_ac)
2387:			ocfs2_free_alloc_context(data_ac);
2388:		if (meta_ac)
2389:			ocfs2_free_alloc_context(meta_ac);
2390:		ocfs2_run_deallocs(osb, &dealloc);
2391:		ocfs2_dio_free_write_ctx(inode, dwc);
2392:	
2393:		return ret;
2394:	}
 SourceFile:fs/ocfs2/aops.c]

85/4 2026/05/29 16:59 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12504
							output: 65
							thoughts: 538
						

Thoughts:
**Analyzing a Proposed Fix for OCFS2 DIO Write Path**

Okay, so I'm looking at a proposed change to the `ocfs2_dio_end_io_write` function in the OCFS2 filesystem. The current thinking is that the `ocfs2_free_alloc_context` calls for `data_ac` and `meta_ac` are in the wrong place. The fix proposes moving them up, specifically right after the `up_write(&oi->ip_alloc_sem)` call, and *before* the call to `ocfs2_del_inode_from_orphan()`.

The rationale here is likely related to the potential interaction of these allocation contexts with the orphan inode cleanup process. Moving those `free` calls to immediately after releasing the allocation semaphore suggests there might be a contention issue or a potential use-after-free scenario if the deallocation happens after the orphan inode is touched.

This seems reasonable on the surface, but I need to investigate the implications of this change and whether it addresses a root cause, or is just a band-aid.

Next, it's vital to determine whether these locks, particularly `EXTENT_ALLOC_SYSTEM_INODE` (which I see is acquired in `ocfs2_lock_allocators()`) and `ORPHAN_DIR_SYSTEM_INODE` are held concurrently elsewhere. I need to scan the codebase for other locations where `ocfs2_del_inode_from_orphan()` might be called while an allocation context (`data_ac` or `meta_ac`) is in scope. That's a critical path to examine. This will tell me if this issue is specific to `ocfs2_dio_end_io_write` or a more general problem.



86/4 2026/05/29 17:00 tool codesearch-find-references
0m Args:
map[ContextFile:fs/ocfs2/aops.c IncludeSnippetLines:10 Name:ocfs2_del_inode_from_orphan SourceTreePrefix:fs/ocfs2/]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_add_inode_to_orphan SourceFile:fs/ocfs2/namei.c SourceLine:2663 SourceSnippet:2653:		 * If so, manually recover it first.
2654:		 */
2655:		if (unlikely(di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL))) {
2656:			status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode));
2657:			if (status < 0) {
2658:				if (status != -ENOSPC)
2659:					mlog_errno(status);
2660:				goto bail_unlock_inode;
2661:			}
2662:	
2663:			status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2664:			if (status < 0) {
2665:				mlog_errno(status);
2666:				goto bail_unlock_inode;
2667:			}
2668:		}
2669:	
2670:		status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode,
2671:				OCFS2_I(inode)->ip_blkno,
2672:				orphan_name,
2673:				&orphan_insert,
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_dio_end_io_write SourceFile:fs/ocfs2/aops.c SourceLine:2379 SourceSnippet:2369:	commit:
2370:		if (handle)
2371:			ocfs2_commit_trans(osb, handle);
2372:	unlock:
2373:		up_write(&oi->ip_alloc_sem);
2374:	
2375:		/* everything looks good, let's start the cleanup */
2376:		if (!ret && dwc->dw_orphaned) {
2377:			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
2378:	
2379:			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2380:			if (ret < 0)
2381:				mlog_errno(ret);
2382:		}
2383:		ocfs2_inode_unlock(inode, 1);
2384:		brelse(di_bh);
2385:	out:
2386:		if (data_ac)
2387:			ocfs2_free_alloc_context(data_ac);
2388:		if (meta_ac)
2389:			ocfs2_free_alloc_context(meta_ac);
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_recover_orphans SourceFile:fs/ocfs2/journal.c SourceLine:2345 SourceSnippet:2335:	
2336:				if (di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL)) {
2337:					ret = ocfs2_truncate_file(inode, di_bh,
2338:							i_size_read(inode));
2339:					if (ret < 0) {
2340:						if (ret != -ENOSPC)
2341:							mlog_errno(ret);
2342:						goto unlock_inode;
2343:					}
2344:	
2345:					ret = ocfs2_del_inode_from_orphan(osb, inode,
2346:							di_bh, 0, 0);
2347:					if (ret)
2348:						mlog_errno(ret);
2349:				}
2350:	unlock_inode:
2351:				ocfs2_inode_unlock(inode, 1);
2352:				brelse(di_bh);
2353:				di_bh = NULL;
2354:	unlock_rw:
2355:				ocfs2_rw_unlock(inode, 1);
]] TruncatedOutput:false]

87/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 14689
							output: 45
							thoughts: 59
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach this analysis:

**Analyzing Orphan Handling in OCFS2**

Alright, my initial thought is to zero in on how orphaned inodes are handled within the OCFS2 file system. Specifically, I need to check the interplay between `ocfs2_add_inode_to_orphan` and `ocfs2_recover_orphans`, to ensure the `EXTENT_ALLOC_SYSTEM_INODE` flag is considered. It's crucial this flag, representing a system-level inode, is handled correctly during orphan processing.

Now, let's examine what's happening within `ocfs2_add_inode_to_orphan`: I'll need to meticulously follow the logic within this function to see how it interacts with the inode's allocation status, especially when determining whether a system inode is handled correctly. I'll be looking for where this flag is checked, set, or used in any way related to adding an inode to the orphan list.



88/4 2026/05/29 17:00 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/namei.c Name:ocfs2_add_inode_to_orphan]

Results:
map[SourceCode:2633:	int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
2634:		struct inode *inode)
2635:	{
2636:		char orphan_name[OCFS2_DIO_ORPHAN_PREFIX_LEN + OCFS2_ORPHAN_NAMELEN + 1];
2637:		struct inode *orphan_dir_inode = NULL;
2638:		struct ocfs2_dir_lookup_result orphan_insert = { NULL, };
2639:		struct buffer_head *di_bh = NULL;
2640:		int status = 0;
2641:		handle_t *handle = NULL;
2642:		struct ocfs2_dinode *di = NULL;
2643:	
2644:		status = ocfs2_inode_lock(inode, &di_bh, 1);
2645:		if (status < 0) {
2646:			mlog_errno(status);
2647:			goto bail;
2648:		}
2649:	
2650:		di = (struct ocfs2_dinode *) di_bh->b_data;
2651:		/*
2652:		 * Another append dio crashed?
2653:		 * If so, manually recover it first.
2654:		 */
2655:		if (unlikely(di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL))) {
2656:			status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode));
2657:			if (status < 0) {
2658:				if (status != -ENOSPC)
2659:					mlog_errno(status);
2660:				goto bail_unlock_inode;
2661:			}
2662:	
2663:			status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
2664:			if (status < 0) {
2665:				mlog_errno(status);
2666:				goto bail_unlock_inode;
2667:			}
2668:		}
2669:	
2670:		status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode,
2671:				OCFS2_I(inode)->ip_blkno,
2672:				orphan_name,
2673:				&orphan_insert,
2674:				true);
2675:		if (status < 0) {
2676:			mlog_errno(status);
2677:			goto bail_unlock_inode;
2678:		}
2679:	
2680:		handle = ocfs2_start_trans(osb,
2681:				OCFS2_INODE_ADD_TO_ORPHAN_CREDITS);
2682:		if (IS_ERR(handle)) {
2683:			status = PTR_ERR(handle);
2684:			goto bail_unlock_orphan;
2685:		}
2686:	
2687:		status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name,
2688:				&orphan_insert, orphan_dir_inode, true);
2689:		if (status)
2690:			mlog_errno(status);
2691:	
2692:		ocfs2_commit_trans(osb, handle);
2693:	
2694:	bail_unlock_orphan:
2695:		ocfs2_inode_unlock(orphan_dir_inode, 1);
2696:		inode_unlock(orphan_dir_inode);
2697:		iput(orphan_dir_inode);
2698:	
2699:		ocfs2_free_dir_lookup_result(&orphan_insert);
2700:	
2701:	bail_unlock_inode:
2702:		ocfs2_inode_unlock(inode, 1);
2703:		brelse(di_bh);
2704:	
2705:	bail:
2706:		return status;
2707:	}
 SourceFile:fs/ocfs2/namei.c]

89/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16195
							output: 41
							thoughts: 41
						

Thoughts:
Okay, here's my interpretation of those thoughts, framed as my own:

**Analyzing Orphan Handling in OCFS2**

Alright, let's break this down. In looking at the orphan inode handling within OCFS2, I'm specifically examining the function `ocfs2_add_inode_to_orphan`. My immediate observation is that this particular function *doesn't* acquire either the `data_ac` or the `meta_ac` locks. This is a crucial detail, immediately flagging how it fits into the broader picture of atomic operations.

Now, shifting gears to `ocfs2_recover_orphans`, I need to understand how this function interacts with the previous one. I'm now asking myself: how does the lack of locking in `ocfs2_add_inode_to_orphan` influence the behavior of the recovery process? Is this a deliberate design choice related to performance, or is there a specific, subtle race condition risk I need to be aware of? Understanding the synchronization points between these two functions is paramount to ensure data consistency, particularly given the potential for orphaned inodes after a crash or unclean shutdown. I need to dig deeper into the locking schemes used elsewhere in the orphan recovery process.



90/4 2026/05/29 17:00 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/journal.c Name:ocfs2_recover_orphans]

Results:
map[SourceCode:2269:	/*
2270:	 * Orphan recovery. Each mounted node has it's own orphan dir which we
2271:	 * must run during recovery. Our strategy here is to build a list of
2272:	 * the inodes in the orphan dir and iget/iput them. The VFS does
2273:	 * (most) of the rest of the work.
2274:	 *
2275:	 * Orphan recovery can happen at any time, not just mount so we have a
2276:	 * couple of extra considerations.
2277:	 *
2278:	 * - We grab as many inodes as we can under the orphan dir lock -
2279:	 *   doing iget() outside the orphan dir risks getting a reference on
2280:	 *   an invalid inode.
2281:	 * - We must be sure not to deadlock with other processes on the
2282:	 *   system wanting to run delete_inode(). This can happen when they go
2283:	 *   to lock the orphan dir and the orphan recovery process attempts to
2284:	 *   iget() inside the orphan dir lock. This can be avoided by
2285:	 *   advertising our state to ocfs2_delete_inode().
2286:	 */
2287:	static int ocfs2_recover_orphans(struct ocfs2_super *osb,
2288:					 int slot,
2289:					 enum ocfs2_orphan_reco_type orphan_reco_type)
2290:	{
2291:		int ret = 0;
2292:		struct inode *inode = NULL;
2293:		struct inode *iter;
2294:		struct ocfs2_inode_info *oi;
2295:		struct buffer_head *di_bh = NULL;
2296:		struct ocfs2_dinode *di = NULL;
2297:	
2298:		trace_ocfs2_recover_orphans(slot);
2299:	
2300:		ocfs2_mark_recovering_orphan_dir(osb, slot);
2301:		ret = ocfs2_queue_orphans(osb, slot, &inode, orphan_reco_type);
2302:		ocfs2_clear_recovering_orphan_dir(osb, slot);
2303:	
2304:		/* Error here should be noted, but we want to continue with as
2305:		 * many queued inodes as we've got. */
2306:		if (ret)
2307:			mlog_errno(ret);
2308:	
2309:		while (inode) {
2310:			oi = OCFS2_I(inode);
2311:			trace_ocfs2_recover_orphans_iput(
2312:						(unsigned long long)oi->ip_blkno);
2313:	
2314:			iter = oi->ip_next_orphan;
2315:			oi->ip_next_orphan = NULL;
2316:	
2317:			if (oi->ip_flags & OCFS2_INODE_DIO_ORPHAN_ENTRY) {
2318:				inode_lock(inode);
2319:				ret = ocfs2_rw_lock(inode, 1);
2320:				if (ret < 0) {
2321:					mlog_errno(ret);
2322:					goto unlock_mutex;
2323:				}
2324:				/*
2325:				 * We need to take and drop the inode lock to
2326:				 * force read inode from disk.
2327:				 */
2328:				ret = ocfs2_inode_lock(inode, &di_bh, 1);
2329:				if (ret) {
2330:					mlog_errno(ret);
2331:					goto unlock_rw;
2332:				}
2333:	
2334:				di = (struct ocfs2_dinode *)di_bh->b_data;
2335:	
2336:				if (di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL)) {
2337:					ret = ocfs2_truncate_file(inode, di_bh,
2338:							i_size_read(inode));
2339:					if (ret < 0) {
2340:						if (ret != -ENOSPC)
2341:							mlog_errno(ret);
2342:						goto unlock_inode;
2343:					}
2344:	
2345:					ret = ocfs2_del_inode_from_orphan(osb, inode,
2346:							di_bh, 0, 0);
2347:					if (ret)
2348:						mlog_errno(ret);
2349:				}
2350:	unlock_inode:
2351:				ocfs2_inode_unlock(inode, 1);
2352:				brelse(di_bh);
2353:				di_bh = NULL;
2354:	unlock_rw:
2355:				ocfs2_rw_unlock(inode, 1);
2356:	unlock_mutex:
2357:				inode_unlock(inode);
2358:	
2359:				/* clear dio flag in ocfs2_inode_info */
2360:				oi->ip_flags &= ~OCFS2_INODE_DIO_ORPHAN_ENTRY;
2361:			} else {
2362:				spin_lock(&oi->ip_lock);
2363:				/* Set the proper information to get us going into
2364:				 * ocfs2_delete_inode. */
2365:				oi->ip_flags |= OCFS2_INODE_MAYBE_ORPHANED;
2366:				spin_unlock(&oi->ip_lock);
2367:			}
2368:	
2369:			iput(inode);
2370:			inode = iter;
2371:		}
2372:	
2373:		return ret;
2374:	}
 SourceFile:fs/ocfs2/journal.c]

91/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18215
							output: 599
							thoughts: 537
						

Thoughts:
**Analyzing Potential Deadlock in OCFS2 Orphan Recovery**

Okay, so I'm digging into this `ocfs2_recover_orphans` function, and something's bugging me. It doesn't seem to hold either the `data_ac` or `meta_ac` allocation contexts. This means the only place where the `EXTENT_ALLOC_SYSTEM_INODE` lock is held concurrently with the `ORPHAN_DIR_SYSTEM_INODE` lock is within `ocfs2_dio_end_io_write`. 

Let me re-examine that function, specifically the section at the end. I see the current lock and unlock sequence: first commit the transaction if there is a handle, then unlock the inode allocation semaphore. Following that, there's a check for orphan status. If there are any orphans, a routine to delete the inode from orphan list is executed, then the inode lock is released and the buffer is released. Finally the allocation contexts are freed.

My thinking is, if I move the calls to `ocfs2_free_alloc_context(data_ac)` and `ocfs2_free_alloc_context(meta_ac)` right after `up_write(&oi->ip_alloc_sem)`, I'll drop the `EXTENT_ALLOC_SYSTEM_INODE` lock *before* calling `ocfs2_del_inode_from_orphan`. This should avoid any potential deadlock scenario.

A quick check – is there any dependency on the alloc contexts after the deallocs are run? No, `ocfs2_free_alloc_context` *is* called *before* `ocfs2_run_deallocs` in the original code. So it should be safe to move these calls upwards. Good, I think I've got a workable solution. Time to make the code edit.



92/4 2026/05/29 17:00 tool codeeditor
0m Args:
map[CurrentCode:	commit:
		if (handle)
			ocfs2_commit_trans(osb, handle);
	unlock:
		up_write(&oi->ip_alloc_sem);

		/* everything looks good, let's start the cleanup */
		if (!ret && dwc->dw_orphaned) {
			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));

			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
			if (ret < 0)
				mlog_errno(ret);
		}
		ocfs2_inode_unlock(inode, 1);
		brelse(di_bh);
	out:
		if (data_ac)
			ocfs2_free_alloc_context(data_ac);
		if (meta_ac)
			ocfs2_free_alloc_context(meta_ac);
		ocfs2_run_deallocs(osb, &dealloc);
		ocfs2_dio_free_write_ctx(inode, dwc);

		return ret;
	} NewCode:	commit:
		if (handle)
			ocfs2_commit_trans(osb, handle);
	unlock:
		up_write(&oi->ip_alloc_sem);

		if (data_ac) {
			ocfs2_free_alloc_context(data_ac);
			data_ac = NULL;
		}
		if (meta_ac) {
			ocfs2_free_alloc_context(meta_ac);
			meta_ac = NULL;
		}

		/* everything looks good, let's start the cleanup */
		if (!ret && dwc->dw_orphaned) {
			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));

			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
			if (ret < 0)
				mlog_errno(ret);
		}
		ocfs2_inode_unlock(inode, 1);
		brelse(di_bh);
	out:
		ocfs2_run_deallocs(osb, &dealloc);
		ocfs2_dio_free_write_ctx(inode, dwc);

		return ret;
	} SourceFile:fs/ocfs2/aops.c]

Results:
map[]

93/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19755
							output: 25
							thoughts: 28
						

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

**Digging into the Filesystem Code**

Alright, I need to understand this better. Before I start going down any rabbit holes with my analysis, I need to see if this specific scenario, or something *very* close to it, has already been addressed. Given the context, my initial thought is to check `fs/ocfs2/aops.c`, as that seems like the most immediate and relevant place to begin. However, I won't limit myself to that file alone. I'll need to expand my search to other related code within the OCFS2 filesystem source to see if similar operations are handled elsewhere. This will hopefully provide insight into the existing design patterns and any potential solutions that are already in place. It's best to avoid reinventing the wheel when an established method might be right at hand. Time to get my grep on.



94/4 2026/05/29 17:00 tool grepper
0m Args:
map[Expression:ocfs2_del_inode_from_orphan]

Results:
map[Output:fs/ocfs2/aops.c=2266=static int ocfs2_dio_end_io_write(struct inode *inode,
--
fs/ocfs2/aops.c-2378-
fs/ocfs2/aops.c:2379:		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
fs/ocfs2/aops.c-2380-		if (ret < 0)
--
fs/ocfs2/journal.c=2287=static int ocfs2_recover_orphans(struct ocfs2_super *osb,
--
fs/ocfs2/journal.c-2344-
fs/ocfs2/journal.c:2345:				ret = ocfs2_del_inode_from_orphan(osb, inode,
fs/ocfs2/journal.c-2346-						di_bh, 0, 0);
--
fs/ocfs2/namei.c=2633=int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
--
fs/ocfs2/namei.c-2662-
fs/ocfs2/namei.c:2663:		status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
fs/ocfs2/namei.c-2664-		if (status < 0) {
--
fs/ocfs2/namei.c-2708-
fs/ocfs2/namei.c:2709:int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.c-2710-		struct inode *inode, struct buffer_head *di_bh,
--
fs/ocfs2/namei.h=29=int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.h-30-		struct inode *inode);
fs/ocfs2/namei.h:31:int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
fs/ocfs2/namei.h-32-		struct inode *inode, struct buffer_head *di_bh,
]

95/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20618
							output: 61
							thoughts: 820
						

Thoughts:
**Analyzing a Potential Deadlock in OCFS2's Inode Allocation**

Okay, so I'm digging into a possible deadlock situation in the OCFS2 file system. The key here is understanding the locking order, and I'm focusing on the relationship between these system inode locks: `EXTENT_ALLOC_SYSTEM_INODE`, `ORPHAN_DIR_SYSTEM_INODE`, and `INODE_ALLOC_SYSTEM_INODE`.

Initially, I pinpointed the places that call `ocfs2_del_inode_from_orphan`, because that function seems to be at the heart of the issue. Those calls are in `ocfs2_dio_end_io_write`, `ocfs2_recover_orphans`, and `ocfs2_add_inode_to_orphan`. We had already checked `ocfs2_recover_orphans` and `ocfs2_add_inode_to_orphan`, and those functions did not hold `data_ac` or `meta_ac`. So, the remaining function called, `ocfs2_dio_end_io_write` is the problematic call.

I then went through a list of functions where `ORPHAN_DIR_SYSTEM_INODE` is acquired, looking for overlaps. The list includes `ocfs2_del_inode_from_orphan`, `ocfs2_add_inode_to_orphan`, `ocfs2_recover_orphans`, `ocfs2_wipe_inode`, `ocfs2_prep_new_orphaned_file`, `ocfs2_orphan_add`, `ocfs2_orphan_del`, and `ocfs2_orphan_recovery_can_continue`. These all eventually call `ocfs2_inode_lock` on the orphan directory inode.

Now, my attention went to `ocfs2_del_inode_from_orphan` itself. It calls `ocfs2_inode_lock` on the `orphan_dir_inode`, which is retrieved via `ocfs2_get_system_file_inode` with the `ORPHAN_DIR_SYSTEM_INODE` identifier. This is where things start to smell fishy.

A lockdep report revealed a concerning circular dependency: `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`. That's a classic recipe for a deadlock!

Let's break down each step:

1.  `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`:  This is normal. In `ocfs2_mknod()`, you allocate an inode using `ocfs2_reserve_new_inode()` (acquiring `INODE_ALLOC_SYSTEM_INODE`) and then allocate metadata blocks using `ocfs2_reserve_new_metadata_blocks()` (acquiring `EXTENT_ALLOC_SYSTEM_INODE`). Seems logical.

2.  `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`: This is the crucial part that I need to fix. In `ocfs2_dio_end_io_write()`, `ocfs2_lock_allocators()` takes `EXTENT_ALLOC_SYSTEM_INODE`. Then, `ocfs2_del_inode_from_orphan()` acquires `ORPHAN_DIR_SYSTEM_INODE`. This is the problematic dependency.

3.  `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`: This is also normal. In `ocfs2_wipe_inode()`, `ocfs2_inode_lock()` acquires `ORPHAN_DIR_SYSTEM_INODE`, and `ocfs2_remove_inode()` acquires `INODE_ALLOC_SYSTEM_INODE`. It makes sense: remove the inode from the orphan dir and then free the inode itself.

So, the second dependency is the culprit. Fixing it would break the cycle. I need to make sure that `EXTENT_ALLOC_SYSTEM_INODE` isn't held when `ORPHAN_DIR_SYSTEM_INODE` is acquired.
I need to double-check that there aren't any other places where `ocfs2_lock_allocators` is called and then somehow lead into a call to `ocfs2_del_inode_from_orphan` or similar functions, to ensure the fix is comprehensive.



96/4 2026/05/29 17:00 tool codesearch-find-references
0m Args:
map[ContextFile:fs/ocfs2/suballoc.c IncludeSnippetLines:0 Name:ocfs2_lock_allocators SourceTreePrefix:fs/ocfs2/]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_dio_end_io_write SourceFile:fs/ocfs2/aops.c SourceLine:2310] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_dx_dir_rebalance SourceFile:fs/ocfs2/dir.c SourceLine:3801] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_extend_allocation SourceFile:fs/ocfs2/file.c SourceLine:590] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_rm_xattr_cluster SourceFile:fs/ocfs2/xattr.c SourceLine:5476] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:ocfs2_write_begin_nolock SourceFile:fs/ocfs2/aops.c SourceLine:1720]] TruncatedOutput:false]

97/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 22793
							output: 43
							thoughts: 103
						

Thoughts:
**Investigating Potential Orphan Inode Interactions**

Okay, let's dive into this. My immediate concern is understanding the interplay between a few key OCFS2 functions and the orphan inode management mechanisms. I need to know if `ocfs2_dx_dir_rebalance`, `ocfs2_extend_allocation`, `ocfs2_rm_xattr_cluster`, and `ocfs2_write_begin_nolock` are touching the orphan lists at all. Specifically, I need to check if they're calling `ocfs2_del_inode_from_orphan`, `ocfs2_add_inode_to_orphan`, or those newer aliases `ocfs2_orphan_add` or `ocfs2_orphan_del`. I'm looking for direct modifications to the orphan inode lists, or any indirect calls that could lead to unexpected behavior in orphan inode recovery or management. This is the starting point for potentially understanding a much larger problem.



98/4 2026/05/29 17:00 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/dir.c Name:ocfs2_dx_dir_rebalance]

Results:
map[SourceCode:3741:	/*
3742:	 * Find the median value in dx_leaf_bh and allocate a new leaf to move
3743:	 * half our entries into.
3744:	 */
3745:	static int ocfs2_dx_dir_rebalance(struct ocfs2_super *osb, struct inode *dir,
3746:					  struct buffer_head *dx_root_bh,
3747:					  struct buffer_head *dx_leaf_bh,
3748:					  struct ocfs2_dx_hinfo *hinfo, u32 leaf_cpos,
3749:					  u64 leaf_blkno)
3750:	{
3751:		struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data;
3752:		int credits, ret, i, num_used, did_quota = 0;
3753:		u32 cpos, split_hash, insert_hash = hinfo->major_hash;
3754:		u64 orig_leaves_start;
3755:		int num_dx_leaves;
3756:		struct buffer_head **orig_dx_leaves = NULL;
3757:		struct buffer_head **new_dx_leaves = NULL;
3758:		struct ocfs2_alloc_context *data_ac = NULL, *meta_ac = NULL;
3759:		struct ocfs2_extent_tree et;
3760:		handle_t *handle = NULL;
3761:		struct ocfs2_dx_root_block *dx_root;
3762:		struct ocfs2_dx_leaf *tmp_dx_leaf = NULL;
3763:	
3764:		trace_ocfs2_dx_dir_rebalance((unsigned long long)OCFS2_I(dir)->ip_blkno,
3765:					     (unsigned long long)leaf_blkno,
3766:					     insert_hash);
3767:	
3768:		ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
3769:	
3770:		dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3771:		/*
3772:		 * XXX: This is a rather large limit. We should use a more
3773:		 * realistic value.
3774:		 */
3775:		if (le32_to_cpu(dx_root->dr_clusters) == UINT_MAX)
3776:			return -ENOSPC;
3777:	
3778:		num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used);
3779:		if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) {
3780:			mlog(ML_ERROR, "DX Dir: %llu, Asked to rebalance empty leaf: "
3781:			     "%llu, %d\n", (unsigned long long)OCFS2_I(dir)->ip_blkno,
3782:			     (unsigned long long)leaf_blkno, num_used);
3783:			ret = -EIO;
3784:			goto out;
3785:		}
3786:	
3787:		orig_dx_leaves = ocfs2_dx_dir_kmalloc_leaves(osb->sb, &num_dx_leaves);
3788:		if (!orig_dx_leaves) {
3789:			ret = -ENOMEM;
3790:			mlog_errno(ret);
3791:			goto out;
3792:		}
3793:	
3794:		new_dx_leaves = ocfs2_dx_dir_kmalloc_leaves(osb->sb, NULL);
3795:		if (!new_dx_leaves) {
3796:			ret = -ENOMEM;
3797:			mlog_errno(ret);
3798:			goto out;
3799:		}
3800:	
3801:		ret = ocfs2_lock_allocators(dir, &et, 1, 0, &data_ac, &meta_ac);
3802:		if (ret) {
3803:			if (ret != -ENOSPC)
3804:				mlog_errno(ret);
3805:			goto out;
3806:		}
3807:	
3808:		credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root);
3809:		handle = ocfs2_start_trans(osb, credits);
3810:		if (IS_ERR(handle)) {
3811:			ret = PTR_ERR(handle);
3812:			handle = NULL;
3813:			mlog_errno(ret);
3814:			goto out;
3815:		}
3816:	
3817:		ret = dquot_alloc_space_nodirty(dir,
3818:					       ocfs2_clusters_to_bytes(dir->i_sb, 1));
3819:		if (ret)
3820:			goto out_commit;
3821:		did_quota = 1;
3822:	
3823:		ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dx_leaf_bh,
3824:					      OCFS2_JOURNAL_ACCESS_WRITE);
3825:		if (ret) {
3826:			mlog_errno(ret);
3827:			goto out_commit;
3828:		}
3829:	
3830:		/*
3831:		 * This block is changing anyway, so we can sort it in place.
3832:		 */
3833:		sort(dx_leaf->dl_list.de_entries, num_used,
3834:		     sizeof(struct ocfs2_dx_entry), dx_leaf_sort_cmp,
3835:		     NULL);
3836:	
3837:		ocfs2_journal_dirty(handle, dx_leaf_bh);
3838:	
3839:		ret = ocfs2_dx_dir_find_leaf_split(dx_leaf, leaf_cpos, insert_hash,
3840:						   &split_hash);
3841:		if (ret) {
3842:			mlog_errno(ret);
3843:			goto  out_commit;
3844:		}
3845:	
3846:		trace_ocfs2_dx_dir_rebalance_split(leaf_cpos, split_hash, insert_hash);
3847:	
3848:		/*
3849:		 * We have to carefully order operations here. There are items
3850:		 * which want to be in the new cluster before insert, but in
3851:		 * order to put those items in the new cluster, we alter the
3852:		 * old cluster. A failure to insert gets nasty.
3853:		 *
3854:		 * So, start by reserving writes to the old
3855:		 * cluster. ocfs2_dx_dir_new_cluster will reserve writes on
3856:		 * the new cluster for us, before inserting it. The insert
3857:		 * won't happen if there's an error before that. Once the
3858:		 * insert is done then, we can transfer from one leaf into the
3859:		 * other without fear of hitting any error.
3860:		 */
3861:	
3862:		/*
3863:		 * The leaf transfer wants some scratch space so that we don't
3864:		 * wind up doing a bunch of expensive memmove().
3865:		 */
3866:		tmp_dx_leaf = kmalloc(osb->sb->s_blocksize, GFP_NOFS);
3867:		if (!tmp_dx_leaf) {
3868:			ret = -ENOMEM;
3869:			mlog_errno(ret);
3870:			goto out_commit;
3871:		}
3872:	
3873:		orig_leaves_start = ocfs2_block_to_cluster_start(dir->i_sb, leaf_blkno);
3874:		ret = ocfs2_read_dx_leaves(dir, orig_leaves_start, num_dx_leaves,
3875:					   orig_dx_leaves);
3876:		if (ret) {
3877:			mlog_errno(ret);
3878:			goto out_commit;
3879:		}
3880:	
3881:		cpos = split_hash;
3882:		ret = ocfs2_dx_dir_new_cluster(dir, &et, cpos, handle,
3883:					       data_ac, meta_ac, new_dx_leaves,
3884:					       num_dx_leaves);
3885:		if (ret) {
3886:			mlog_errno(ret);
3887:			goto out_commit;
3888:		}
3889:	
3890:		for (i = 0; i < num_dx_leaves; i++) {
3891:			ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir),
3892:						      orig_dx_leaves[i],
3893:						      OCFS2_JOURNAL_ACCESS_WRITE);
3894:			if (ret) {
3895:				mlog_errno(ret);
3896:				goto out_commit;
3897:			}
3898:	
3899:			ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir),
3900:						      new_dx_leaves[i],
3901:						      OCFS2_JOURNAL_ACCESS_WRITE);
3902:			if (ret) {
3903:				mlog_errno(ret);
3904:				goto out_commit;
3905:			}
3906:		}
3907:	
3908:		ocfs2_dx_dir_transfer_leaf(dir, split_hash, handle, tmp_dx_leaf,
3909:					   orig_dx_leaves, new_dx_leaves, num_dx_leaves);
3910:	
3911:	out_commit:
3912:		if (ret < 0 && did_quota)
3913:			dquot_free_space_nodirty(dir,
3914:					ocfs2_clusters_to_bytes(dir->i_sb, 1));
3915:	
3916:		ocfs2_update_inode_fsync_trans(handle, dir, 1);
3917:		ocfs2_commit_trans(osb, handle);
3918:	
3919:	out:
3920:		if (orig_dx_leaves || new_dx_leaves) {
3921:			for (i = 0; i < num_dx_leaves; i++) {
3922:				if (orig_dx_leaves)
3923:					brelse(orig_dx_leaves[i]);
3924:				if (new_dx_leaves)
3925:					brelse(new_dx_leaves[i]);
3926:			}
3927:			kfree(orig_dx_leaves);
3928:			kfree(new_dx_leaves);
3929:		}
3930:	
3931:		if (meta_ac)
3932:			ocfs2_free_alloc_context(meta_ac);
3933:		if (data_ac)
3934:			ocfs2_free_alloc_context(data_ac);
3935:	
3936:		kfree(tmp_dx_leaf);
3937:		return ret;
3938:	}
 SourceFile:fs/ocfs2/dir.c]

99/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26414
							output: 40
							thoughts: 93
						

Thoughts:
Here's my analysis of the provided code snippet:

**Analyzing the Directory Rebalancing Function**

Okay, so I'm looking at `ocfs2_dx_dir_rebalance` and what's immediately striking is the pattern of allocation management. It appears this function is managing resources efficiently by grabbing allocators with `ocfs2_lock_allocators`, setting up a transaction, working through the changes with `ocfs2_start_trans`, and finishing with `ocfs2_commit_trans`. Afterward, the function cleanly releases the `meta_ac` and `data_ac` access control structures. That looks pretty standard for these types of operations.

However, I don't see any calls to `ocfs2_del_inode_from_orphan` or similar orphan cleanup procedures within this function. That's something I need to keep in mind, as it could be relevant to how orphans are handled during rebalancing. I'll need to remember to check how that is handled elsewhere, or if there is something implicitly going on.

Now, my next step is to switch gears and examine `ocfs2_extend_allocation`. I need to understand how the allocation extensions are managed, how the code actually allocates space in the file system.



100/4 2026/05/29 17:00 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/file.c Name:ocfs2_extend_allocation]

Results:
map[SourceCode: 556:	static int ocfs2_extend_allocation(struct inode *inode, u32 logical_start,
 557:					   u32 clusters_to_add, int mark_unwritten)
 558:	{
 559:		int status = 0;
 560:		int restart_func = 0;
 561:		int credits;
 562:		u32 prev_clusters;
 563:		struct buffer_head *bh = NULL;
 564:		struct ocfs2_dinode *fe = NULL;
 565:		handle_t *handle = NULL;
 566:		struct ocfs2_alloc_context *data_ac = NULL;
 567:		struct ocfs2_alloc_context *meta_ac = NULL;
 568:		enum ocfs2_alloc_restarted why = RESTART_NONE;
 569:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 570:		struct ocfs2_extent_tree et;
 571:		int did_quota = 0;
 572:	
 573:		/*
 574:		 * Unwritten extent only exists for file systems which
 575:		 * support holes.
 576:		 */
 577:		BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb));
 578:	
 579:		status = ocfs2_read_inode_block(inode, &bh);
 580:		if (status < 0) {
 581:			mlog_errno(status);
 582:			goto leave;
 583:		}
 584:		fe = (struct ocfs2_dinode *) bh->b_data;
 585:	
 586:	restart_all:
 587:		BUG_ON(le32_to_cpu(fe->i_clusters) != OCFS2_I(inode)->ip_clusters);
 588:	
 589:		ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), bh);
 590:		status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0,
 591:					       &data_ac, &meta_ac);
 592:		if (status) {
 593:			mlog_errno(status);
 594:			goto leave;
 595:		}
 596:	
 597:		credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list);
 598:		handle = ocfs2_start_trans(osb, credits);
 599:		if (IS_ERR(handle)) {
 600:			status = PTR_ERR(handle);
 601:			handle = NULL;
 602:			mlog_errno(status);
 603:			goto leave;
 604:		}
 605:	
 606:	restarted_transaction:
 607:		trace_ocfs2_extend_allocation(
 608:			(unsigned long long)OCFS2_I(inode)->ip_blkno,
 609:			(unsigned long long)i_size_read(inode),
 610:			le32_to_cpu(fe->i_clusters), clusters_to_add,
 611:			why, restart_func);
 612:	
 613:		status = dquot_alloc_space_nodirty(inode,
 614:				ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
 615:		if (status)
 616:			goto leave;
 617:		did_quota = 1;
 618:	
 619:		/* reserve a write to the file entry early on - that we if we
 620:		 * run out of credits in the allocation path, we can still
 621:		 * update i_size. */
 622:		status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
 623:						 OCFS2_JOURNAL_ACCESS_WRITE);
 624:		if (status < 0) {
 625:			mlog_errno(status);
 626:			goto leave;
 627:		}
 628:	
 629:		prev_clusters = OCFS2_I(inode)->ip_clusters;
 630:	
 631:		status = ocfs2_add_inode_data(osb,
 632:					      inode,
 633:					      &logical_start,
 634:					      clusters_to_add,
 635:					      mark_unwritten,
 636:					      bh,
 637:					      handle,
 638:					      data_ac,
 639:					      meta_ac,
 640:					      &why);
 641:		if ((status < 0) && (status != -EAGAIN)) {
 642:			if (status != -ENOSPC)
 643:				mlog_errno(status);
 644:			goto leave;
 645:		}
 646:		ocfs2_update_inode_fsync_trans(handle, inode, 1);
 647:		ocfs2_journal_dirty(handle, bh);
 648:	
 649:		spin_lock(&OCFS2_I(inode)->ip_lock);
 650:		clusters_to_add -= (OCFS2_I(inode)->ip_clusters - prev_clusters);
 651:		spin_unlock(&OCFS2_I(inode)->ip_lock);
 652:		/* Release unused quota reservation */
 653:		dquot_free_space(inode,
 654:				ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
 655:		did_quota = 0;
 656:	
 657:		if (why != RESTART_NONE && clusters_to_add) {
 658:			if (why == RESTART_META) {
 659:				restart_func = 1;
 660:				status = 0;
 661:			} else {
 662:				BUG_ON(why != RESTART_TRANS);
 663:	
 664:				status = ocfs2_allocate_extend_trans(handle, 1);
 665:				if (status < 0) {
 666:					/* handle still has to be committed at
 667:					 * this point. */
 668:					status = -ENOMEM;
 669:					mlog_errno(status);
 670:					goto leave;
 671:				}
 672:				goto restarted_transaction;
 673:			}
 674:		}
 675:	
 676:		trace_ocfs2_extend_allocation_end(OCFS2_I(inode)->ip_blkno,
 677:		     le32_to_cpu(fe->i_clusters),
 678:		     (unsigned long long)le64_to_cpu(fe->i_size),
 679:		     OCFS2_I(inode)->ip_clusters,
 680:		     (unsigned long long)i_size_read(inode));
 681:	
 682:	leave:
 683:		if (status < 0 && did_quota)
 684:			dquot_free_space(inode,
 685:				ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
 686:		if (handle) {
 687:			ocfs2_commit_trans(osb, handle);
 688:			handle = NULL;
 689:		}
 690:		if (data_ac) {
 691:			ocfs2_free_alloc_context(data_ac);
 692:			data_ac = NULL;
 693:		}
 694:		if (meta_ac) {
 695:			ocfs2_free_alloc_context(meta_ac);
 696:			meta_ac = NULL;
 697:		}
 698:		if ((!status) && restart_func) {
 699:			restart_func = 0;
 700:			goto restart_all;
 701:		}
 702:		brelse(bh);
 703:		bh = NULL;
 704:	
 705:		return status;
 706:	}
 SourceFile:fs/ocfs2/file.c]

101/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29169
							output: 44
							thoughts: 63
						

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

**Investigating Potential Resource Leaks**

Okay, so I'm looking at `ocfs2_extend_allocation` and I'm a bit concerned. It seems like it's freeing `data_ac` and `meta_ac` at the very end, but crucially, it *doesn't* appear to be calling `ocfs2_del_inode_from_orphan`. I need to understand the implications of this. It immediately triggers a red flag, because orphan cleanup is *critical* in distributed file systems. A missing cleanup call here suggests a potential leak or at least a path to data corruption under specific failure scenarios. I need to figure out why this design decision was made, and if there's an implicit mechanism that's handling the orphan removal in another place. It could be something I'm missing.

Let me pivot to examining `ocfs2_rm_xattr_cluster`. I'm going to look at how it deals with resource management in relation to xattrs, and see if I can glean any insight that might relate back to the orphan inode issue in `ocfs2_extend_allocation`. I'll focus on how it handles atomicity, consistency, and error paths, in the hopes that they might illuminate the logic of allocation extension.



102/4 2026/05/29 17:00 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/xattr.c Name:ocfs2_rm_xattr_cluster]

Results:
map[SourceCode:5441:	static int ocfs2_rm_xattr_cluster(struct inode *inode,
5442:					  struct buffer_head *root_bh,
5443:					  u64 blkno,
5444:					  u32 cpos,
5445:					  u32 len,
5446:					  void *para)
5447:	{
5448:		int ret;
5449:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
5450:		struct inode *tl_inode = osb->osb_tl_inode;
5451:		handle_t *handle;
5452:		struct ocfs2_xattr_block *xb =
5453:				(struct ocfs2_xattr_block *)root_bh->b_data;
5454:		struct ocfs2_alloc_context *meta_ac = NULL;
5455:		struct ocfs2_cached_dealloc_ctxt dealloc;
5456:		struct ocfs2_extent_tree et;
5457:	
5458:		ret = ocfs2_iterate_xattr_buckets(inode, blkno, len,
5459:						  ocfs2_delete_xattr_in_bucket, para);
5460:		if (ret) {
5461:			mlog_errno(ret);
5462:			return ret;
5463:		}
5464:	
5465:		ocfs2_init_xattr_tree_extent_tree(&et, INODE_CACHE(inode), root_bh);
5466:	
5467:		ocfs2_init_dealloc_ctxt(&dealloc);
5468:	
5469:		trace_ocfs2_rm_xattr_cluster(
5470:				(unsigned long long)OCFS2_I(inode)->ip_blkno,
5471:				(unsigned long long)blkno, cpos, len);
5472:	
5473:		ocfs2_remove_xattr_clusters_from_cache(INODE_CACHE(inode), blkno,
5474:						       len);
5475:	
5476:		ret = ocfs2_lock_allocators(inode, &et, 0, 1, NULL, &meta_ac);
5477:		if (ret) {
5478:			mlog_errno(ret);
5479:			return ret;
5480:		}
5481:	
5482:		inode_lock(tl_inode);
5483:	
5484:		if (ocfs2_truncate_log_needs_flush(osb)) {
5485:			ret = __ocfs2_flush_truncate_log(osb);
5486:			if (ret < 0) {
5487:				mlog_errno(ret);
5488:				goto out;
5489:			}
5490:		}
5491:	
5492:		handle = ocfs2_start_trans(osb, ocfs2_remove_extent_credits(osb->sb));
5493:		if (IS_ERR(handle)) {
5494:			ret = -ENOMEM;
5495:			mlog_errno(ret);
5496:			goto out;
5497:		}
5498:	
5499:		ret = ocfs2_journal_access_xb(handle, INODE_CACHE(inode), root_bh,
5500:					      OCFS2_JOURNAL_ACCESS_WRITE);
5501:		if (ret) {
5502:			mlog_errno(ret);
5503:			goto out_commit;
5504:		}
5505:	
5506:		ret = ocfs2_remove_extent(handle, &et, cpos, len, meta_ac,
5507:					  &dealloc);
5508:		if (ret) {
5509:			mlog_errno(ret);
5510:			goto out_commit;
5511:		}
5512:	
5513:		le32_add_cpu(&xb->xb_attrs.xb_root.xt_clusters, -len);
5514:		ocfs2_journal_dirty(handle, root_bh);
5515:	
5516:		ret = ocfs2_truncate_log_append(osb, handle, blkno, len);
5517:		if (ret)
5518:			mlog_errno(ret);
5519:		ocfs2_update_inode_fsync_trans(handle, inode, 0);
5520:	
5521:	out_commit:
5522:		ocfs2_commit_trans(osb, handle);
5523:	out:
5524:		ocfs2_schedule_truncate_log_flush(osb, 1);
5525:	
5526:		inode_unlock(tl_inode);
5527:	
5528:		if (meta_ac)
5529:			ocfs2_free_alloc_context(meta_ac);
5530:	
5531:		ocfs2_run_deallocs(osb, &dealloc);
5532:	
5533:		return ret;
5534:	}
 SourceFile:fs/ocfs2/xattr.c]

103/4 2026/05/29 17:00 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31032
							output: 44
							thoughts: 45
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's understanding of the code:

**Analyzing `ocfs2_rm_xattr_cluster` and `ocfs2_write_begin_nolock`**

Right, so I see that in the `ocfs2_rm_xattr_cluster` function, the `meta_ac` structure is freed at the very end. That's good; it's the expected behavior. No obvious memory leaks or orphan operations are immediately apparent there. It looks like the cleanup is correctly handled after the xattr removal. Always good to confirm these basics.

Now, let's shift our focus and take a closer look at `ocfs2_write_begin_nolock`. I need to understand how the write operations are initiated, especially in the context of avoiding lock contention, which could be relevant to the previous xattr operation if there's any overlap in resource usage. I want to see how the cluster is managing the beginning of write operations in a potentially unlocked environment. This function is key to understand how atomicity, consistency and concurrency is maintained when we deal with writes.



104/4 2026/05/29 17:01 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ocfs2/aops.c Name:ocfs2_write_begin_nolock]

Results:
map[SourceCode:1625:	int ocfs2_write_begin_nolock(struct address_space *mapping,
1626:			loff_t pos, unsigned len, ocfs2_write_type_t type,
1627:			struct folio **foliop, void **fsdata,
1628:			struct buffer_head *di_bh, struct folio *mmap_folio)
1629:	{
1630:		int ret, cluster_of_pages, credits = OCFS2_INODE_UPDATE_CREDITS;
1631:		unsigned int clusters_to_alloc, extents_to_split, clusters_need = 0;
1632:		struct ocfs2_write_ctxt *wc;
1633:		struct inode *inode = mapping->host;
1634:		struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1635:		struct ocfs2_dinode *di;
1636:		struct ocfs2_alloc_context *data_ac = NULL;
1637:		struct ocfs2_alloc_context *meta_ac = NULL;
1638:		handle_t *handle;
1639:		struct ocfs2_extent_tree et;
1640:		int try_free = 1, ret1;
1641:	
1642:	try_again:
1643:		ret = ocfs2_alloc_write_ctxt(&wc, osb, pos, len, type, di_bh);
1644:		if (ret) {
1645:			mlog_errno(ret);
1646:			return ret;
1647:		}
1648:	
1649:		if (ocfs2_supports_inline_data(osb)) {
1650:			ret = ocfs2_try_to_write_inline_data(mapping, inode, pos, len,
1651:							     mmap_folio, wc);
1652:			if (ret == 1) {
1653:				ret = 0;
1654:				goto success;
1655:			}
1656:			if (ret < 0) {
1657:				mlog_errno(ret);
1658:				goto out;
1659:			}
1660:		}
1661:	
1662:		/* Direct io change i_size late, should not zero tail here. */
1663:		if (type != OCFS2_WRITE_DIRECT) {
1664:			if (ocfs2_sparse_alloc(osb))
1665:				ret = ocfs2_zero_tail(inode, di_bh, pos);
1666:			else
1667:				ret = ocfs2_expand_nonsparse_inode(inode, di_bh, pos,
1668:								   len, wc);
1669:			if (ret) {
1670:				mlog_errno(ret);
1671:				goto out;
1672:			}
1673:		}
1674:	
1675:		ret = ocfs2_check_range_for_refcount(inode, pos, len);
1676:		if (ret < 0) {
1677:			mlog_errno(ret);
1678:			goto out;
1679:		} else if (ret == 1) {
1680:			clusters_need = wc->w_clen;
1681:			ret = ocfs2_refcount_cow(inode, di_bh,
1682:						 wc->w_cpos, wc->w_clen, UINT_MAX);
1683:			if (ret) {
1684:				mlog_errno(ret);
1685:				goto out;
1686:			}
1687:		}
1688:	
1689:		ret = ocfs2_populate_write_desc(inode, wc, &clusters_to_alloc,
1690:						&extents_to_split);
1691:		if (ret) {
1692:			mlog_errno(ret);
1693:			goto out;
1694:		}
1695:		clusters_need += clusters_to_alloc;
1696:	
1697:		di = (struct ocfs2_dinode *)wc->w_di_bh->b_data;
1698:	
1699:		trace_ocfs2_write_begin_nolock(
1700:				(unsigned long long)OCFS2_I(inode)->ip_blkno,
1701:				(long long)i_size_read(inode),
1702:				le32_to_cpu(di->i_clusters),
1703:				pos, len, type, mmap_folio,
1704:				clusters_to_alloc, extents_to_split);
1705:	
1706:		/*
1707:		 * We set w_target_from, w_target_to here so that
1708:		 * ocfs2_write_end() knows which range in the target page to
1709:		 * write out. An allocation requires that we write the entire
1710:		 * cluster range.
1711:		 */
1712:		if (clusters_to_alloc || extents_to_split) {
1713:			/*
1714:			 * XXX: We are stretching the limits of
1715:			 * ocfs2_lock_allocators(). It greatly over-estimates
1716:			 * the work to be done.
1717:			 */
1718:			ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode),
1719:						      wc->w_di_bh);
1720:			ret = ocfs2_lock_allocators(inode, &et,
1721:						    clusters_to_alloc, extents_to_split,
1722:						    &data_ac, &meta_ac);
1723:			if (ret) {
1724:				mlog_errno(ret);
1725:				goto out;
1726:			}
1727:	
1728:			if (data_ac)
1729:				data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv;
1730:	
1731:			credits = ocfs2_calc_extend_credits(inode->i_sb,
1732:							    &di->id2.i_list);
1733:		} else if (type == OCFS2_WRITE_DIRECT)
1734:			/* direct write needs not to start trans if no extents alloc. */
1735:			goto success;
1736:	
1737:		/*
1738:		 * We have to zero sparse allocated clusters, unwritten extent clusters,
1739:		 * and non-sparse clusters we just extended.  For non-sparse writes,
1740:		 * we know zeros will only be needed in the first and/or last cluster.
1741:		 */
1742:		if (wc->w_clen && (wc->w_desc[0].c_needs_zero ||
1743:				   wc->w_desc[wc->w_clen - 1].c_needs_zero))
1744:			cluster_of_pages = 1;
1745:		else
1746:			cluster_of_pages = 0;
1747:	
1748:		ocfs2_set_target_boundaries(osb, wc, pos, len, cluster_of_pages);
1749:	
1750:		handle = ocfs2_start_trans(osb, credits);
1751:		if (IS_ERR(handle)) {
1752:			ret = PTR_ERR(handle);
1753:			mlog_errno(ret);
1754:			goto out;
1755:		}
1756:	
1757:		wc->w_handle = handle;
1758:	
1759:		if (clusters_to_alloc) {
1760:			ret = dquot_alloc_space_nodirty(inode,
1761:				ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1762:			if (ret)
1763:				goto out_commit;
1764:		}
1765:	
1766:		ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), wc->w_di_bh,
1767:					      OCFS2_JOURNAL_ACCESS_WRITE);
1768:		if (ret) {
1769:			mlog_errno(ret);
1770:			goto out_quota;
1771:		}
1772:	
1773:		/*
1774:		 * Fill our folio array first. That way we've grabbed enough so
1775:		 * that we can zero and flush if we error after adding the
1776:		 * extent.
1777:		 */
1778:		ret = ocfs2_grab_folios_for_write(mapping, wc, wc->w_cpos, pos, len,
1779:				cluster_of_pages, mmap_folio);
1780:		if (ret) {
1781:			/*
1782:			 * ocfs2_grab_folios_for_write() returns -EAGAIN if it
1783:			 * could not lock the target folio. In this case, we exit
1784:			 * with no error and no target folio. This will trigger
1785:			 * the caller, page_mkwrite(), to re-try the operation.
1786:			 */
1787:			if (type == OCFS2_WRITE_MMAP && ret == -EAGAIN) {
1788:				BUG_ON(wc->w_target_folio);
1789:				ret = 0;
1790:				goto out_quota;
1791:			}
1792:	
1793:			mlog_errno(ret);
1794:			goto out_quota;
1795:		}
1796:	
1797:		ret = ocfs2_write_cluster_by_desc(mapping, data_ac, meta_ac, wc, pos,
1798:						  len);
1799:		if (ret) {
1800:			mlog_errno(ret);
1801:			goto out_quota;
1802:		}
1803:	
1804:		if (data_ac)
1805:			ocfs2_free_alloc_context(data_ac);
1806:		if (meta_ac)
1807:			ocfs2_free_alloc_context(meta_ac);
1808:	
1809:	success:
1810:		if (foliop)
1811:			*foliop = wc->w_target_folio;
1812:		*fsdata = wc;
1813:		return 0;
1814:	out_quota:
1815:		if (clusters_to_alloc)
1816:			dquot_free_space(inode,
1817:				  ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1818:	out_commit:
1819:		ocfs2_commit_trans(osb, handle);
1820:	
1821:	out:
1822:		/*
1823:		 * The mmapped page won't be unlocked in ocfs2_free_write_ctxt(),
1824:		 * even in case of error here like ENOSPC and ENOMEM. So, we need
1825:		 * to unlock the target page manually to prevent deadlocks when
1826:		 * retrying again on ENOSPC, or when returning non-VM_FAULT_LOCKED
1827:		 * to VM code.
1828:		 */
1829:		if (wc->w_target_locked)
1830:			folio_unlock(mmap_folio);
1831:	
1832:		ocfs2_free_write_ctxt(inode, wc);
1833:	
1834:		if (data_ac) {
1835:			ocfs2_free_alloc_context(data_ac);
1836:			data_ac = NULL;
1837:		}
1838:		if (meta_ac) {
1839:			ocfs2_free_alloc_context(meta_ac);
1840:			meta_ac = NULL;
1841:		}
1842:	
1843:		if (ret == -ENOSPC && try_free) {
1844:			/*
1845:			 * Try to free some truncate log so that we can have enough
1846:			 * clusters to allocate.
1847:			 */
1848:			try_free = 0;
1849:	
1850:			ret1 = ocfs2_try_to_free_truncate_log(osb, clusters_need);
1851:			if (ret1 == 1)
1852:				goto try_again;
1853:	
1854:			if (ret1 < 0)
1855:				mlog_errno(ret1);
1856:		}
1857:	
1858:		return ret;
1859:	}
 SourceFile:fs/ocfs2/aops.c]

105/4 2026/05/29 17:01 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35007
							output: 15
							thoughts: 90
						

Thoughts:
Here's my analysis of this code snippet:

**Potential Concurrency Issue in OCFS2 Write Operations**

Okay, so I'm looking at `ocfs2_write_begin_nolock`, and the first thing that jumps out is that it releases both `data_ac` and `meta_ac` before returning. No orphan operations are involved here. That seems fine, a pretty standard pattern. But this makes me think a bit more deeply about where these two locks, `EXTENT_ALLOC_SYSTEM_INODE` and `ORPHAN_DIR_SYSTEM_INODE`, could possibly collide.

Based on this, it looks like the *only* place where `EXTENT_ALLOC_SYSTEM_INODE` might be held concurrently with the acquisition of `ORPHAN_DIR_SYSTEM_INODE` is within `ocfs2_dio_end_io_write`. That's the critical section to examine more closely. It's time to dig into that function and trace the lock acquisition patterns within a bit more carefully. I'll need to review that patch diff more precisely.



106/4 2026/05/29 17:01 tool patch-diff
0m Args:
map[File:]

Results:
map[Output:diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..fe1339fbd 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2266,139 +2266,144 @@ static int ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock,
 static int ocfs2_dio_end_io_write(struct inode *inode,
 				  struct ocfs2_dio_write_ctxt *dwc,
 				  loff_t offset,
 				  ssize_t bytes)
 {
 	struct ocfs2_cached_dealloc_ctxt dealloc;
 	struct ocfs2_extent_tree et;
 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 	struct ocfs2_inode_info *oi = OCFS2_I(inode);
 	struct ocfs2_unwritten_extent *ue = NULL;
 	struct buffer_head *di_bh = NULL;
 	struct ocfs2_dinode *di;
 	struct ocfs2_alloc_context *data_ac = NULL;
 	struct ocfs2_alloc_context *meta_ac = NULL;
 	handle_t *handle = NULL;
 	loff_t end = offset + bytes;
 	int ret = 0, credits = 0, batch = 0;
 
 	ocfs2_init_dealloc_ctxt(&dealloc);
 
 	/* We do clear unwritten, delete orphan, change i_size here. If neither
 	 * of these happen, we can skip all this. */
 	if (list_empty(&dwc->dw_zero_list) &&
 	    end <= i_size_read(inode) &&
 	    !dwc->dw_orphaned)
 		goto out;
 
 	ret = ocfs2_inode_lock(inode, &di_bh, 1);
 	if (ret < 0) {
 		mlog_errno(ret);
 		goto out;
 	}
 
 	down_write(&oi->ip_alloc_sem);
 	di = (struct ocfs2_dinode *)di_bh->b_data;
 
 	ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
 
 	/* Attach dealloc with extent tree in case that we may reuse extents
 	 * which are already unlinked from current extent tree due to extent
 	 * rotation and merging.
 	 */
 	et.et_dealloc = &dealloc;
 
 	ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
 				    &data_ac, &meta_ac);
 	if (ret) {
 		mlog_errno(ret);
 		goto unlock;
 	}
 
 	credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
 
 	list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
 		if (!handle) {
 			handle = ocfs2_start_trans(osb, credits);
 			if (IS_ERR(handle)) {
 				ret = PTR_ERR(handle);
 				mlog_errno(ret);
 				goto unlock;
 			}
 			ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
 					OCFS2_JOURNAL_ACCESS_WRITE);
 			if (ret) {
 				mlog_errno(ret);
 				goto commit;
 			}
 		}
 		ret = ocfs2_assure_trans_credits(handle, credits);
 		if (ret < 0) {
 			mlog_errno(ret);
 			goto commit;
 		}
 		ret = ocfs2_mark_extent_written(inode, &et, handle,
 						ue->ue_cpos, 1,
 						ue->ue_phys,
 						meta_ac, &dealloc);
 		if (ret < 0) {
 			mlog_errno(ret);
 			goto commit;
 		}
 
 		if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
 			ocfs2_commit_trans(osb, handle);
 			handle = NULL;
 			batch = 0;
 		}
 	}
 
 	if (end > i_size_read(inode)) {
 		if (!handle) {
 			handle = ocfs2_start_trans(osb, credits);
 			if (IS_ERR(handle)) {
 				ret = PTR_ERR(handle);
 				mlog_errno(ret);
 				goto unlock;
 			}
 		}
 		ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
 		if (ret < 0)
 			mlog_errno(ret);
 	}
 
-commit:
-	if (handle)
-		ocfs2_commit_trans(osb, handle);
-unlock:
-	up_write(&oi->ip_alloc_sem);
+	commit:
+		if (handle)
+			ocfs2_commit_trans(osb, handle);
+	unlock:
+		up_write(&oi->ip_alloc_sem);
 
-	/* everything looks good, let's start the cleanup */
-	if (!ret && dwc->dw_orphaned) {
-		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
+		if (data_ac) {
+			ocfs2_free_alloc_context(data_ac);
+			data_ac = NULL;
+		}
+		if (meta_ac) {
+			ocfs2_free_alloc_context(meta_ac);
+			meta_ac = NULL;
+		}
 
-		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
-		if (ret < 0)
-			mlog_errno(ret);
-	}
-	ocfs2_inode_unlock(inode, 1);
-	brelse(di_bh);
-out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
-	ocfs2_run_deallocs(osb, &dealloc);
-	ocfs2_dio_free_write_ctx(inode, dwc);
+		/* everything looks good, let's start the cleanup */
+		if (!ret && dwc->dw_orphaned) {
+			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
 
-	return ret;
-}
+			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
+			if (ret < 0)
+				mlog_errno(ret);
+		}
+		ocfs2_inode_unlock(inode, 1);
+		brelse(di_bh);
+	out:
+		ocfs2_run_deallocs(osb, &dealloc);
+		ocfs2_dio_free_write_ctx(inode, dwc);
+
+		return ret;
+	}
 
 /*
  * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
  * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
  * to protect io on one node from truncation on another.
  */
 static int ocfs2_dio_end_io(struct kiocb *iocb,
 			    loff_t offset,
 			    ssize_t bytes,
 			    void *private)
]

107/4 2026/05/29 17:01 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37407
							output: 619
							thoughts: 37
						

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

**Debugging Indentation Anomalies**

Alright, looking at this code or configuration output, my initial impression is that the indentation on these labels – `commit:`, `unlock:`, and `out:` – is off. It's immediately noticeable, and my instinct is that they should be flush left, starting at the beginning of their respective lines. Clearly, that is where the labels should be rendered, so I should ensure that is how they are. Given the context, the current formatting is likely a bug. So, let's address that indentation problem directly. I should go in and correct it.



108/4 2026/05/29 17:01 tool codeeditor
0m Args:
map[CurrentCode:	commit:
		if (handle)
			ocfs2_commit_trans(osb, handle);
	unlock:
		up_write(&oi->ip_alloc_sem);

		if (data_ac) {
			ocfs2_free_alloc_context(data_ac);
			data_ac = NULL;
		}
		if (meta_ac) {
			ocfs2_free_alloc_context(meta_ac);
			meta_ac = NULL;
		}

		/* everything looks good, let's start the cleanup */
		if (!ret && dwc->dw_orphaned) {
			BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));

			ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
			if (ret < 0)
				mlog_errno(ret);
		}
		ocfs2_inode_unlock(inode, 1);
		brelse(di_bh);
	out:
		ocfs2_run_deallocs(osb, &dealloc);
		ocfs2_dio_free_write_ctx(inode, dwc);

		return ret;
	} NewCode:commit:
	if (handle)
		ocfs2_commit_trans(osb, handle);
unlock:
	up_write(&oi->ip_alloc_sem);

	if (data_ac) {
		ocfs2_free_alloc_context(data_ac);
		data_ac = NULL;
	}
	if (meta_ac) {
		ocfs2_free_alloc_context(meta_ac);
		meta_ac = NULL;
	}

	/* everything looks good, let's start the cleanup */
	if (!ret && dwc->dw_orphaned) {
		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));

		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
		if (ret < 0)
			mlog_errno(ret);
	}
	ocfs2_inode_unlock(inode, 1);
	brelse(di_bh);
out:
	ocfs2_run_deallocs(osb, &dealloc);
	ocfs2_dio_free_write_ctx(inode, dwc);

	return ret;
} SourceFile:fs/ocfs2/aops.c]

Results:
map[]

109/4 2026/05/29 17:01 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38212
							output: 15
							thoughts: 9
						

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

**Re-Examining the Diff**

Alright, before I dive into the granular details and start making assumptions, let's take another pass over this patch diff. I need to make absolutely sure I haven't missed any subtle implications or unintended consequences, especially in the areas I flagged earlier. It's easy to get caught up in the specifics, the elegance of the new code, or the immediate problem it solves, and overlook something deeper. This is where experience kicks in; I want to focus on ensuring that this will integrate smoothly with the existing architecture and doesn't introduce any unforeseen performance bottlenecks or security vulnerabilities. A second, more deliberate review is always a good idea before proceeding.



110/4 2026/05/29 17:01 tool patch-diff
0m Args:
map[File:]

Results:
map[Output:diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2266,135 +2266,140 @@ static int ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock,
 static int ocfs2_dio_end_io_write(struct inode *inode,
 				  struct ocfs2_dio_write_ctxt *dwc,
 				  loff_t offset,
 				  ssize_t bytes)
 {
 	struct ocfs2_cached_dealloc_ctxt dealloc;
 	struct ocfs2_extent_tree et;
 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 	struct ocfs2_inode_info *oi = OCFS2_I(inode);
 	struct ocfs2_unwritten_extent *ue = NULL;
 	struct buffer_head *di_bh = NULL;
 	struct ocfs2_dinode *di;
 	struct ocfs2_alloc_context *data_ac = NULL;
 	struct ocfs2_alloc_context *meta_ac = NULL;
 	handle_t *handle = NULL;
 	loff_t end = offset + bytes;
 	int ret = 0, credits = 0, batch = 0;
 
 	ocfs2_init_dealloc_ctxt(&dealloc);
 
 	/* We do clear unwritten, delete orphan, change i_size here. If neither
 	 * of these happen, we can skip all this. */
 	if (list_empty(&dwc->dw_zero_list) &&
 	    end <= i_size_read(inode) &&
 	    !dwc->dw_orphaned)
 		goto out;
 
 	ret = ocfs2_inode_lock(inode, &di_bh, 1);
 	if (ret < 0) {
 		mlog_errno(ret);
 		goto out;
 	}
 
 	down_write(&oi->ip_alloc_sem);
 	di = (struct ocfs2_dinode *)di_bh->b_data;
 
 	ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
 
 	/* Attach dealloc with extent tree in case that we may reuse extents
 	 * which are already unlinked from current extent tree due to extent
 	 * rotation and merging.
 	 */
 	et.et_dealloc = &dealloc;
 
 	ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
 				    &data_ac, &meta_ac);
 	if (ret) {
 		mlog_errno(ret);
 		goto unlock;
 	}
 
 	credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
 
 	list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
 		if (!handle) {
 			handle = ocfs2_start_trans(osb, credits);
 			if (IS_ERR(handle)) {
 				ret = PTR_ERR(handle);
 				mlog_errno(ret);
 				goto unlock;
 			}
 			ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
 					OCFS2_JOURNAL_ACCESS_WRITE);
 			if (ret) {
 				mlog_errno(ret);
 				goto commit;
 			}
 		}
 		ret = ocfs2_assure_trans_credits(handle, credits);
 		if (ret < 0) {
 			mlog_errno(ret);
 			goto commit;
 		}
 		ret = ocfs2_mark_extent_written(inode, &et, handle,
 						ue->ue_cpos, 1,
 						ue->ue_phys,
 						meta_ac, &dealloc);
 		if (ret < 0) {
 			mlog_errno(ret);
 			goto commit;
 		}
 
 		if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
 			ocfs2_commit_trans(osb, handle);
 			handle = NULL;
 			batch = 0;
 		}
 	}
 
 	if (end > i_size_read(inode)) {
 		if (!handle) {
 			handle = ocfs2_start_trans(osb, credits);
 			if (IS_ERR(handle)) {
 				ret = PTR_ERR(handle);
 				mlog_errno(ret);
 				goto unlock;
 			}
 		}
 		ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
 		if (ret < 0)
 			mlog_errno(ret);
 	}
 
 commit:
 	if (handle)
 		ocfs2_commit_trans(osb, handle);
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
 
 		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
 		if (ret < 0)
 			mlog_errno(ret);
 	}
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
 	return ret;
 }
 
 /*
  * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
  * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
  * to protect io on one node from truncation on another.
  */
]

111/4 2026/05/29 17:01 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40172
							output: 571
							thoughts: 567
						

Thoughts:
**My Analysis of the OCFS2 Lockdep Warning Fix**

Okay, so I've looked over this patch, and it seems clean and correct – the code looks good. The issue, as I understand it, is a lockdep warning related to a circular dependency with three OCFS2 system inode locks: `INODE_ALLOC_SYSTEM_INODE`, `EXTENT_ALLOC_SYSTEM_INODE`, and `ORPHAN_DIR_SYSTEM_INODE`.

The problem arises from three specific code paths: `ocfs2_mknod()` establishes `INODE_ALLOC_SYSTEM_INODE` before `EXTENT_ALLOC_SYSTEM_INODE`, `ocfs2_dio_end_io_write()` has `EXTENT_ALLOC_SYSTEM_INODE` before `ORPHAN_DIR_SYSTEM_INODE`, and then `ocfs2_wipe_inode()` does `ORPHAN_DIR_SYSTEM_INODE` then `INODE_ALLOC_SYSTEM_INODE`, making a cycle.

The solution is to break this cycle by addressing the dependency in `ocfs2_dio_end_io_write()`.  The key insight is that the `data_ac` and `meta_ac` allocation contexts, which hold the `EXTENT_ALLOC_SYSTEM_INODE` lock, are only needed for the transaction marking extents as written.  Once `ocfs2_commit_trans()` completes and the allocation semaphore is released via `up_write(&oi->ip_alloc_sem)`, those contexts are no longer necessary. So, the patch proposes freeing those allocation contexts *before* calling `ocfs2_del_inode_from_orphan()`, thereby releasing `EXTENT_ALLOC_SYSTEM_INODE`.

I've made the code change in `fs/ocfs2/aops.c` as described, moving the freeing of the allocation contexts right after the `up_write` call and before the call to `ocfs2_del_inode_from_orphan()`. I've also carefully reviewed the other calls to `ocfs2_del_inode_from_orphan()` in `ocfs2_recover_orphans` and `ocfs2_add_inode_to_orphan()` and confirmed that they don't hold `EXTENT_ALLOC_SYSTEM_INODE` at all.  Furthermore, I checked other locations where `ocfs2_lock_allocators()` is used and can confirm that they don't acquire the `ORPHAN_DIR_SYSTEM_INODE` while holding the allocation contexts, which would negate this fix.

This looks like a solid fix to me. It elegantly breaks the lock dependency without introducing any new locking issues, so I think this will resolve the lockdep warning.



112/3 2026/05/29 17:01 action test-patch
26m Results:
map[PatchDiff:diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
 TestError:]

113/1 2026/05/29 17:28 agent fixes-finder
1m Model:
gemini-3.1-pro-preview

Results:
map[FixesHash:d647c5b2fbf81560818dacade360abc8c00a9665]

Instruction:
You are an experienced Linux kernel developer tasked with identifying the commit
that introduced the bug being fixed. Identifying the correct buggy commit is crucial
for proper kernel maintenance (backporting to stable trees, etc.).

Your investigation strategy:
1. Examine the patch that fixes the bug. Use git tools (like git-log or git-blame)
   to trace the history of the lines or functions modified by the patch.
2. Analyze the stack trace in the crash report. Identify the key files and functions
   involved in the crash and investigate their history to see when the problematic
   logic was introduced.
3. Compare the bug explanation with the commit history to find the point where
   the described logic error first appeared.

A bug is typically introduced when a piece of code is first written, or when
a refactoring changed its logic in a way that introduced the bug.
Trace the history of relevant symbols or find when specific code patterns were introduced/removed.

You must provide exactly one bug-introducing commit hash.
If you are unable to confidently determine the bug-introducing commit after investigation,
return an empty string rather than guessing.

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


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

Prompt:
The crash is:

======================================================
WARNING: possible circular locking dependency detected
syzkaller #1 Not tainted
------------------------------------------------------
syz-executor/6069 is trying to acquire lock:
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/6069:
 #0: ffff8881161a4410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff8881166b0bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 6069 Comm: syz-executor Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51b819bf77
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffd5ea06718 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f51b819bf77
RDX: 0000000000000200 RSI: 00007ffd5ea078c0 RDI: 00000000ffffff9c
RBP: 00007f51b82321ca R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffd5ea078c0
R13: 00007f51b82321ca R14: 000000000001819f R15: 00007ffd5ea09a80
 </TASK>



The explanation of the root cause is:

The lockdep warning reports a circular locking dependency involving three OCFS2 system inode locks (which all belong to the `ocfs2_sysfile_lock_key` lock class, but are distinct locks based on their system inode type). 

The three locks involved are:
1. `INODE_ALLOC_SYSTEM_INODE`
2. `EXTENT_ALLOC_SYSTEM_INODE`
3. `ORPHAN_DIR_SYSTEM_INODE`

### Root Cause Analysis

The circular dependency is formed by three separate code paths that establish the following lock ordering:

**1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`**
In `ocfs2_mknod()` (`fs/ocfs2/namei.c`), the code first reserves an inode by calling `ocfs2_reserve_new_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock. Shortly after, it reserves metadata blocks by calling `ocfs2_reserve_new_metadata_blocks()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Both locks are held concurrently until the end of the function (or upon error), establishing this dependency.

**2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`**
In `ocfs2_dio_end_io_write()` (`fs/ocfs2/aops.c`), the code allocates metadata blocks for unwritten extents by calling `ocfs2_lock_allocators()`. This allocates `meta_ac` and acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Later in the same function, if the inode was orphaned, it calls `ocfs2_del_inode_from_orphan()`, which acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. The `meta_ac` context (and thus the `EXTENT_ALLOC_SYSTEM_INODE` lock) is only freed at the very end of the function, meaning it is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired.

**3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`**
In `ocfs2_wipe_inode()` (`fs/ocfs2/inode.c`), the `ORPHAN_DIR_SYSTEM_INODE` lock is acquired first to prevent races with recovery completion. While holding this lock, it calls `ocfs2_remove_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock to free the inode. (A similar dependency is also established in `ocfs2_prep_new_orphaned_file()`).

Combining these three paths creates the circular dependency:
`INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

### How to Fix

We can break the cycle by addressing the second dependency (`EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`) in `ocfs2_dio_end_io_write()`. 

The `data_ac` and `meta_ac` allocation contexts are only needed for the transaction that marks the extents as written. Once the transaction is committed via `ocfs2_commit_trans()` and the allocation semaphore is released via `up_write(&oi->ip_alloc_sem)`, these contexts are no longer needed. We can safely free them (which releases the `EXTENT_ALLOC_SYSTEM_INODE` lock) *before* calling `ocfs2_del_inode_from_orphan()`.

Here is the proposed fix for `fs/ocfs2/aops.c`:

```c
@@ -2372,6 +2372,16 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2393,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
```

This ensures that the `EXTENT_ALLOC_SYSTEM_INODE` lock is dropped before we attempt to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock, successfully breaking the circular dependency.


The patch that fixes the bug is:

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 


Search for the commit(s) that introduced this bug.

114/2 2026/05/29 17:28 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10059
							output: 43
							thoughts: 214
						

Thoughts:
**Tracing the Bug's Origins**

Okay, so we've got a patch that's fixing a bug, and it looks like the issue stems from the order of operations in `ocfs2_dio_end_io_write` within `fs/ocfs2/aops.c`. Specifically, it seems like freeing some allocation contexts – `data_ac` and `meta_ac` (which releases the `EXTENT_ALLOC_SYSTEM_INODE` lock) – was happening *after* calling `ocfs2_del_inode_from_orphan()` (which grabs the `ORPHAN_DIR_SYSTEM_INODE` lock).  That's a classic locking order issue, and my gut says this reordering is the key.

My immediate thought is to find the exact commit that introduced this particular problematic sequencing. So, I need to zero in on the history of this specific function.  The code in `ocfs2_dio_end_io_write` is the target, and I need to figure out when this logic was introduced or modified to *be* in this state.

Right, `git log` is the perfect tool for this. I'll use it to trace the history of `ocfs2_dio_end_io_write` within `fs/ocfs2/aops.c`, and I'll hopefully find the culprit commit pretty quickly that I can then analyze in more detail.



115/2 2026/05/29 17:28 tool git-log
0m Args:
map[SourcePath:fs/ocfs2/aops.c SymbolName:ocfs2_dio_end_io_write]

Results:
map[Output:d647c5b2fbf8 ocfs2: split transactions in dio completion to avoid credit exhaustion
b02da26a992d ocfs2: fix possible deadlock between unlink and dio_end_io_write
be346c1a6eeb ocfs2: fix DIO failure due to insufficient transaction credits
137cebf9432e fs/ocfs2: fix comments mentioning i_mutex
90bd070aae6c ocfs2: fix deadlock between setattr and dio_end_io_write
71a36944042b ocfs2: try to reuse extent block in dealloc without meta_alloc
aef73a61c01a ocfs2: fix bad pointer cast
085549553dca ocfs2: don't eat io errors during _dio_end_io_write
7b9743eb8932 ocfs2: don't open-code inode_lock/inode_unlock
28888681b4f6 ocfs2: fix a deadlock issue in ocfs2_dio_end_io_write()
]

116/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10905
							output: 44
							thoughts: 146
						

Thoughts:
**Analyzing a Potential Deadlock in OCFS2**

Okay, let's dive into this. I need to understand this potential deadlock situation. My initial focus is on commit `b02da26a992d` which is labelled "ocfs2: fix possible deadlock between unlink and dio_end_io_write" and also `28888681b4f6`, "ocfs2: fix a deadlock issue in ocfs2_dio_end_io_write()". Hmm, based on the description, the core of the problem seems to be `ocfs2_del_inode_from_orphan` being called while holding both `meta_ac` and `data_ac`. The key here is to see when `ocfs2_del_inode_from_orphan` was introduced into the execution path of `ocfs2_dio_end_io_write`. Understanding this will be crucial to tracing the code's evolution and what changes were made in relation to this function call.



117/2 2026/05/29 17:29 tool git-log
0m Args:
map[CodeRegexp:ocfs2_del_inode_from_orphan PathPrefix:fs/ocfs2/aops.c]

Results:
map[Output:d647c5b2fbf8 ocfs2: split transactions in dio completion to avoid credit exhaustion
c15471f79506 ocfs2: fix sparse file & data ordering issue in direct io
cf1776a9e834 ocfs2: fix a tiny race when truncate dio orohaned entry
24c40b329e03 ocfs2: implement ocfs2_direct_IO_write
]

118/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11434
							output: 27
							thoughts: 33
						

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

**Investigating Potential Anomalies**

Alright, my internal radar is pinging. I need to take a look at these two commits immediately. Let's dig into `c15471f79506` and `24c40b329e03`. Something in my gut tells me these warrant closer scrutiny. I suspect they may be related to the issue we're tracking, or perhaps represent an unexpected deviation from the norm. Let's see what these commits are hiding.



119/2 2026/05/29 17:29 tool git-show
0m Args:
map[Commit:c15471f79506]

Results:
map[Output:commit c15471f79506830f80eca0e7fe09b8213953ab5f
Author: Ryan Ding <ryan.ding@oracle.com>
Date:   Fri Mar 25 14:21:09 2016 -0700

    ocfs2: fix sparse file & data ordering issue in direct io
    
    There are mainly three issues in the direct io code path after commit
    24c40b329e03 ("ocfs2: implement ocfs2_direct_IO_write"):
    
      * Does not support sparse file.
      * Does not support data ordering.  eg: when write to a file hole, it
        will alloc extent first.  If system crashed before io finished, data
        will corrupt.
      * Potential risk when doing aio+dio.  The -EIOCBQUEUED return value is
        likely to be ignored by ocfs2_direct_IO_write().
    
    To resolve above problems, re-design direct io code with following ideas:
      * Use buffer io to fill in holes.  And this will make better
        performance also.
      * Clear unwritten after direct write finished.  So we can make sure
        meta data changes after data write to disk.  (Unwritten extent is
        invisible to user, from user's view, meta data is not changed when
        allocate an unwritten extent.)
      * Clear ocfs2_direct_IO_write().  Do all ending work in end_io.
    
    This patch has passed fs,dio,ltp-aiodio.part1,ltp-aiodio.part2,ltp-aiodio.part4
    test cases of ltp.
    
    For performance improvement, see following test result:
    ocfs2 cluster size 1MB, ocfs2 volume is mounted on /mnt/.
    The original way:
      + rm /mnt/test.img -f
      + dd if=/dev/zero of=/mnt/test.img bs=4K count=1048576 oflag=direct
      1048576+0 records in
      1048576+0 records out
      4294967296 bytes (4.3 GB) copied, 1707.83 s, 2.5 MB/s
      + rm /mnt/test.img -f
      + dd if=/dev/zero of=/mnt/test.img bs=256K count=16384 oflag=direct
      16384+0 records in
      16384+0 records out
      4294967296 bytes (4.3 GB) copied, 582.705 s, 7.4 MB/s
    
    After this patch:
      + rm /mnt/test.img -f
      + dd if=/dev/zero of=/mnt/test.img bs=4K count=1048576 oflag=direct
      1048576+0 records in
      1048576+0 records out
      4294967296 bytes (4.3 GB) copied, 64.6412 s, 66.4 MB/s
      + rm /mnt/test.img -f
      + dd if=/dev/zero of=/mnt/test.img bs=256K count=16384 oflag=direct
      16384+0 records in
      16384+0 records out
      4294967296 bytes (4.3 GB) copied, 34.7611 s, 124 MB/s
    
    Signed-off-by: Ryan Ding <ryan.ding@oracle.com>
    Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
    Cc: Joseph Qi <joseph.qi@huawei.com>
    Cc: Mark Fasheh <mfasheh@suse.de>
    Cc: Joel Becker <jlbec@evilplan.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index c29d06634fd6..578ce225cf83 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -499,158 +499,6 @@ static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block)
 	return status;
 }
 
-/*
- * TODO: Make this into a generic get_blocks function.
- *
- * From do_direct_io in direct-io.c:
- *  "So what we do is to permit the ->get_blocks function to populate
- *   bh.b_size with the size of IO which is permitted at this offset and
- *   this i_blkbits."
- *
- * This function is called directly from get_more_blocks in direct-io.c.
- *
- * called like this: dio->get_blocks(dio->inode, fs_startblk,
- * 					fs_count, map_bh, dio->rw == WRITE);
- */
-static int ocfs2_direct_IO_get_blocks(struct inode *inode, sector_t iblock,
-				     struct buffer_head *bh_result, int create)
-{
-	int ret;
-	u32 cpos = 0;
-	int alloc_locked = 0;
-	u64 p_blkno, inode_blocks, contig_blocks;
-	unsigned int ext_flags;
-	unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits;
-	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
-	unsigned long len = bh_result->b_size;
-	unsigned int clusters_to_alloc = 0, contig_clusters = 0;
-
-	cpos = ocfs2_blocks_to_clusters(inode->i_sb, iblock);
-
-	/* This function won't even be called if the request isn't all
-	 * nicely aligned and of the right size, so there's no need
-	 * for us to check any of that. */
-
-	inode_blocks = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode));
-
-	down_read(&OCFS2_I(inode)->ip_alloc_sem);
-
-	/* This figures out the size of the next contiguous block, and
-	 * our logical offset */
-	ret = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno,
-					  &contig_blocks, &ext_flags);
-	up_read(&OCFS2_I(inode)->ip_alloc_sem);
-
-	if (ret) {
-		mlog(ML_ERROR, "get_blocks() failed iblock=%llu\n",
-		     (unsigned long long)iblock);
-		ret = -EIO;
-		goto bail;
-	}
-
-	/* We should already CoW the refcounted extent in case of create. */
-	BUG_ON(create && (ext_flags & OCFS2_EXT_REFCOUNTED));
-
-	/* allocate blocks if no p_blkno is found, and create == 1 */
-	if (!p_blkno && create) {
-		ret = ocfs2_inode_lock(inode, NULL, 1);
-		if (ret < 0) {
-			mlog_errno(ret);
-			goto bail;
-		}
-
-		alloc_locked = 1;
-
-		down_write(&OCFS2_I(inode)->ip_alloc_sem);
-
-		/* fill hole, allocate blocks can't be larger than the size
-		 * of the hole */
-		clusters_to_alloc = ocfs2_clusters_for_bytes(inode->i_sb, len);
-		contig_clusters = ocfs2_clusters_for_blocks(inode->i_sb,
-				contig_blocks);
-		if (clusters_to_alloc > contig_clusters)
-			clusters_to_alloc = contig_clusters;
-
-		/* allocate extent and insert them into the extent tree */
-		ret = ocfs2_extend_allocation(inode, cpos,
-				clusters_to_alloc, 0);
-		if (ret < 0) {
-			up_write(&OCFS2_I(inode)->ip_alloc_sem);
-			mlog_errno(ret);
-			goto bail;
-		}
-
-		ret = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno,
-				&contig_blocks, &ext_flags);
-		if (ret < 0) {
-			up_write(&OCFS2_I(inode)->ip_alloc_sem);
-			mlog(ML_ERROR, "get_blocks() failed iblock=%llu\n",
-					(unsigned long long)iblock);
-			ret = -EIO;
-			goto bail;
-		}
-		set_buffer_new(bh_result);
-		up_write(&OCFS2_I(inode)->ip_alloc_sem);
-	}
-
-	/*
-	 * get_more_blocks() expects us to describe a hole by clearing
-	 * the mapped bit on bh_result().
-	 *
-	 * Consider an unwritten extent as a hole.
-	 */
-	if (p_blkno && !(ext_flags & OCFS2_EXT_UNWRITTEN))
-		map_bh(bh_result, inode->i_sb, p_blkno);
-	else
-		clear_buffer_mapped(bh_result);
-
-	/* make sure we don't map more than max_blocks blocks here as
-	   that's all the kernel will handle at this point. */
-	if (max_blocks < contig_blocks)
-		contig_blocks = max_blocks;
-	bh_result->b_size = contig_blocks << blocksize_bits;
-bail:
-	if (alloc_locked)
-		ocfs2_inode_unlock(inode, 1);
-	return ret;
-}
-
-/*
- * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
- * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
- * to protect io on one node from truncation on another.
- */
-static int ocfs2_dio_end_io(struct kiocb *iocb,
-			     loff_t offset,
-			     ssize_t bytes,
-			     void *private)
-{
-	struct inode *inode = file_inode(iocb->ki_filp);
-	int level;
-
-	if (bytes <= 0)
-		return 0;
-
-	/* this io's submitter should not have unlocked this before we could */
-	BUG_ON(!ocfs2_iocb_is_rw_locked(iocb));
-
-	if (ocfs2_iocb_is_unaligned_aio(iocb)) {
-		ocfs2_iocb_clear_unaligned_aio(iocb);
-
-		mutex_unlock(&OCFS2_I(inode)->ip_unaligned_aio);
-	}
-
-	/* Let rw unlock to be done later to protect append direct io write */
-	if (offset + bytes <= i_size_read(inode)) {
-		ocfs2_iocb_clear_rw_locked(iocb);
-
-		level = ocfs2_iocb_rw_locked_level(iocb);
-		ocfs2_rw_unlock(inode, level);
-	}
-
-	return 0;
-}
-
 static int ocfs2_releasepage(struct page *page, gfp_t wait)
 {
 	if (!page_has_buffers(page))
@@ -658,363 +506,6 @@ static int ocfs2_releasepage(struct page *page, gfp_t wait)
 	return try_to_free_buffers(page);
 }
 
-static int ocfs2_is_overwrite(struct ocfs2_super *osb,
-		struct inode *inode, loff_t offset)
-{
-	int ret = 0;
-	u32 v_cpos = 0;
-	u32 p_cpos = 0;
-	unsigned int num_clusters = 0;
-	unsigned int ext_flags = 0;
-
-	v_cpos = ocfs2_bytes_to_clusters(osb->sb, offset);
-	ret = ocfs2_get_clusters(inode, v_cpos, &p_cpos,
-			&num_clusters, &ext_flags);
-	if (ret < 0) {
-		mlog_errno(ret);
-		return ret;
-	}
-
-	if (p_cpos && !(ext_flags & OCFS2_EXT_UNWRITTEN))
-		return 1;
-
-	return 0;
-}
-
-static int ocfs2_direct_IO_zero_extend(struct ocfs2_super *osb,
-		struct inode *inode, loff_t offset,
-		u64 zero_len, int cluster_align)
-{
-	u32 p_cpos = 0;
-	u32 v_cpos = ocfs2_bytes_to_clusters(osb->sb, i_size_read(inode));
-	unsigned int num_clusters = 0;
-	unsigned int ext_flags = 0;
-	int ret = 0;
-
-	if (offset <= i_size_read(inode) || cluster_align)
-		return 0;
-
-	ret = ocfs2_get_clusters(inode, v_cpos, &p_cpos, &num_clusters,
-			&ext_flags);
-	if (ret < 0) {
-		mlog_errno(ret);
-		return ret;
-	}
-
-	if (p_cpos && !(ext_flags & OCFS2_EXT_UNWRITTEN)) {
-		u64 s = i_size_read(inode);
-		sector_t sector = ((u64)p_cpos << (osb->s_clustersize_bits - 9)) +
-			(do_div(s, osb->s_clustersize) >> 9);
-
-		ret = blkdev_issue_zeroout(osb->sb->s_bdev, sector,
-				zero_len >> 9, GFP_NOFS, false);
-		if (ret < 0)
-			mlog_errno(ret);
-	}
-
-	return ret;
-}
-
-static int ocfs2_direct_IO_extend_no_holes(struct ocfs2_super *osb,
-		struct inode *inode, loff_t offset)
-{
-	u64 zero_start, zero_len, total_zero_len;
-	u32 p_cpos = 0, clusters_to_add;
-	u32 v_cpos = ocfs2_bytes_to_clusters(osb->sb, i_size_read(inode));
-	unsigned int num_clusters = 0;
-	unsigned int ext_flags = 0;
-	u32 size_div, offset_div;
-	int ret = 0;
-
-	{
-		u64 o = offset;
-		u64 s = i_size_read(inode);
-
-		offset_div = do_div(o, osb->s_clustersize);
-		size_div = do_div(s, osb->s_clustersize);
-	}
-
-	if (offset <= i_size_read(inode))
-		return 0;
-
-	clusters_to_add = ocfs2_bytes_to_clusters(inode->i_sb, offset) -
-		ocfs2_bytes_to_clusters(inode->i_sb, i_size_read(inode));
-	total_zero_len = offset - i_size_read(inode);
-	if (clusters_to_add)
-		total_zero_len -= offset_div;
-
-	/* Allocate clusters to fill out holes, and this is only needed
-	 * when we add more than one clusters. Otherwise the cluster will
-	 * be allocated during direct IO */
-	if (clusters_to_add > 1) {
-		ret = ocfs2_extend_allocation(inode,
-				OCFS2_I(inode)->ip_clusters,
-				clusters_to_add - 1, 0);
-		if (ret) {
-			mlog_errno(ret);
-			goto out;
-		}
-	}
-
-	while (total_zero_len) {
-		ret = ocfs2_get_clusters(inode, v_cpos, &p_cpos, &num_clusters,
-				&ext_flags);
-		if (ret < 0) {
-			mlog_errno(ret);
-			goto out;
-		}
-
-		zero_start = ocfs2_clusters_to_bytes(osb->sb, p_cpos) +
-			size_div;
-		zero_len = ocfs2_clusters_to_bytes(osb->sb, num_clusters) -
-			size_div;
-		zero_len = min(total_zero_len, zero_len);
-
-		if (p_cpos && !(ext_flags & OCFS2_EXT_UNWRITTEN)) {
-			ret = blkdev_issue_zeroout(osb->sb->s_bdev,
-					zero_start >> 9, zero_len >> 9,
-					GFP_NOFS, false);
-			if (ret < 0) {
-				mlog_errno(ret);
-				goto out;
-			}
-		}
-
-		total_zero_len -= zero_len;
-		v_cpos += ocfs2_bytes_to_clusters(osb->sb, zero_len + size_div);
-
-		/* Only at first iteration can be cluster not aligned.
-		 * So set size_div to 0 for the rest */
-		size_div = 0;
-	}
-
-out:
-	return ret;
-}
-
-static ssize_t ocfs2_direct_IO_write(struct kiocb *iocb,
-		struct iov_iter *iter,
-		loff_t offset)
-{
-	ssize_t ret = 0;
-	ssize_t written = 0;
-	bool orphaned = false;
-	int is_overwrite = 0;
-	struct file *file = iocb->ki_filp;
-	struct inode *inode = file_inode(file)->i_mapping->host;
-	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
-	struct buffer_head *di_bh = NULL;
-	size_t count = iter->count;
-	journal_t *journal = osb->journal->j_journal;
-	u64 zero_len_head, zero_len_tail;
-	int cluster_align_head, cluster_align_tail;
-	loff_t final_size = offset + count;
-	int append_write = offset >= i_size_read(inode) ? 1 : 0;
-	unsigned int num_clusters = 0;
-	unsigned int ext_flags = 0;
-
-	{
-		u64 o = offset;
-		u64 s = i_size_read(inode);
-
-		zero_len_head = do_div(o, 1 << osb->s_clustersize_bits);
-		cluster_align_head = !zero_len_head;
-
-		zero_len_tail = osb->s_clustersize -
-			do_div(s, osb->s_clustersize);
-		if ((offset - i_size_read(inode)) < zero_len_tail)
-			zero_len_tail = offset - i_size_read(inode);
-		cluster_align_tail = !zero_len_tail;
-	}
-
-	/*
-	 * when final_size > inode->i_size, inode->i_size will be
-	 * updated after direct write, so add the inode to orphan
-	 * dir first.
-	 */
-	if (final_size > i_size_read(inode)) {
-		ret = ocfs2_add_inode_to_orphan(osb, inode);
-		if (ret < 0) {
-			mlog_errno(ret);
-			goto out;
-		}
-		orphaned = true;
-	}
-
-	if (append_write) {
-		ret = ocfs2_inode_lock(inode, NULL, 1);
-		if (ret < 0) {
-			mlog_errno(ret);
-			goto clean_orphan;
-		}
-
-		/* zeroing out the previously allocated cluster tail
-		 * that but not zeroed */
-		if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) {
-			down_read(&OCFS2_I(inode)->ip_alloc_sem);
-			ret = ocfs2_direct_IO_zero_extend(osb, inode, offset,
-					zero_len_tail, cluster_align_tail);
-			up_read(&OCFS2_I(inode)->ip_alloc_sem);
-		} else {
-			down_write(&OCFS2_I(inode)->ip_alloc_sem);
-			ret = ocfs2_direct_IO_extend_no_holes(osb, inode,
-					offset);
-			up_write(&OCFS2_I(inode)->ip_alloc_sem);
-		}
-		if (ret < 0) {
-			mlog_errno(ret);
-			ocfs2_inode_unlock(inode, 1);
-			goto clean_orphan;
-		}
-
-		is_overwrite = ocfs2_is_overwrite(osb, inode, offset);
-		if (is_overwrite < 0) {
-			mlog_errno(is_overwrite);
-			ret = is_overwrite;
-			ocfs2_inode_unlock(inode, 1);
-			goto clean_orphan;
-		}
-
-		ocfs2_inode_unlock(inode, 1);
-	}
-
-	written = __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, iter,
-				       offset, ocfs2_direct_IO_get_blocks,
-				       ocfs2_dio_end_io, NULL, 0);
-	/* overwrite aio may return -EIOCBQUEUED, and it is not an error */
-	if ((written < 0) && (written != -EIOCBQUEUED)) {
-		loff_t i_size = i_size_read(inode);
-
-		if (offset + count > i_size) {
-			ret = ocfs2_inode_lock(inode, &di_bh, 1);
-			if (ret < 0) {
-				mlog_errno(ret);
-				goto clean_orphan;
-			}
-
-			if (i_size == i_size_read(inode)) {
-				ret = ocfs2_truncate_file(inode, di_bh,
-						i_size);
-				if (ret < 0) {
-					if (ret != -ENOSPC)
-						mlog_errno(ret);
-
-					ocfs2_inode_unlock(inode, 1);
-					brelse(di_bh);
-					di_bh = NULL;
-					goto clean_orphan;
-				}
-			}
-
-			ocfs2_inode_unlock(inode, 1);
-			brelse(di_bh);
-			di_bh = NULL;
-
-			ret = jbd2_journal_force_commit(journal);
-			if (ret < 0)
-				mlog_errno(ret);
-		}
-	} else if (written > 0 && append_write && !is_overwrite &&
-			!cluster_align_head) {
-		/* zeroing out the allocated cluster head */
-		u32 p_cpos = 0;
-		u32 v_cpos = ocfs2_bytes_to_clusters(osb->sb, offset);
-
-		ret = ocfs2_inode_lock(inode, NULL, 0);
-		if (ret < 0) {
-			mlog_errno(ret);
-			goto clean_orphan;
-		}
-
-		ret = ocfs2_get_clusters(inode, v_cpos, &p_cpos,
-				&num_clusters, &ext_flags);
-		if (ret < 0) {
-			mlog_errno(ret);
-			ocfs2_inode_unlock(inode, 0);
-			goto clean_orphan;
-		}
-
-		BUG_ON(!p_cpos || (ext_flags & OCFS2_EXT_UNWRITTEN));
-
-		ret = blkdev_issue_zeroout(osb->sb->s_bdev,
-				(u64)p_cpos << (osb->s_clustersize_bits - 9),
-				zero_len_head >> 9, GFP_NOFS, false);
-		if (ret < 0)
-			mlog_errno(ret);
-
-		ocfs2_inode_unlock(inode, 0);
-	}
-
-clean_orphan:
-	if (orphaned) {
-		int tmp_ret;
-		int update_isize = written > 0 ? 1 : 0;
-		loff_t end = update_isize ? offset + written : 0;
-
-		tmp_ret = ocfs2_inode_lock(inode, &di_bh, 1);
-		if (tmp_ret < 0) {
-			ret = tmp_ret;
-			mlog_errno(ret);
-			goto out;
-		}
-
-		tmp_ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh,
-				update_isize, end);
-		if (tmp_ret < 0) {
-			ocfs2_inode_unlock(inode, 1);
-			ret = tmp_ret;
-			mlog_errno(ret);
-			brelse(di_bh);
-			goto out;
-		}
-
-		ocfs2_inode_unlock(inode, 1);
-		brelse(di_bh);
-
-		tmp_ret = jbd2_journal_force_commit(journal);
-		if (tmp_ret < 0) {
-			ret = tmp_ret;
-			mlog_errno(tmp_ret);
-		}
-	}
-
-out:
-	if (ret >= 0)
-		ret = written;
-	return ret;
-}
-
-static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter,
-			       loff_t offset)
-{
-	struct file *file = iocb->ki_filp;
-	struct inode *inode = file_inode(file)->i_mapping->host;
-	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
-	int full_coherency = !(osb->s_mount_opt &
-			OCFS2_MOUNT_COHERENCY_BUFFERED);
-
-	/*
-	 * Fallback to buffered I/O if we see an inode without
-	 * extents.
-	 */
-	if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
-		return 0;
-
-	/* Fallback to buffered I/O if we are appending and
-	 * concurrent O_DIRECT writes are allowed.
-	 */
-	if (i_size_read(inode) <= offset && !full_coherency)
-		return 0;
-
-	if (iov_iter_rw(iter) == READ)
-		return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
-					    iter, offset,
-					    ocfs2_direct_IO_get_blocks,
-					    ocfs2_dio_end_io, NULL, 0);
-	else
-		return ocfs2_direct_IO_write(iocb, iter, offset);
-}
-
 static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
 					    u32 cpos,
 					    unsigned int *start,
@@ -1326,14 +817,14 @@ static void ocfs2_free_unwritten_list(struct inode *inode,
 				 struct list_head *head)
 {
 	struct ocfs2_inode_info *oi = OCFS2_I(inode);
-	struct ocfs2_unwritten_extent *dz = NULL, *tmp = NULL;
+	struct ocfs2_unwritten_extent *ue = NULL, *tmp = NULL;
 
-	list_for_each_entry_safe(dz, tmp, head, ue_node) {
-		list_del(&dz->ue_node);
+	list_for_each_entry_safe(ue, tmp, head, ue_node) {
+		list_del(&ue->ue_node);
 		spin_lock(&oi->ip_lock);
-		list_del(&dz->ue_ip_node);
+		list_del(&ue->ue_ip_node);
 		spin_unlock(&oi->ip_lock);
-		kfree(dz);
+		kfree(ue);
 	}
 }
 
@@ -1834,7 +1325,7 @@ static int ocfs2_unwritten_check(struct inode *inode,
 				 struct ocfs2_write_cluster_desc *desc)
 {
 	struct ocfs2_inode_info *oi = OCFS2_I(inode);
-	struct ocfs2_unwritten_extent *dz = NULL, *new = NULL;
+	struct ocfs2_unwritten_extent *ue = NULL, *new = NULL;
 	int ret = 0;
 
 	if (!desc->c_needs_zero)
@@ -1845,8 +1336,8 @@ static int ocfs2_unwritten_check(struct inode *inode,
 	/* Needs not to zero no metter buffer or direct. The one who is zero
 	 * the cluster is doing zero. And he will clear unwritten after all
 	 * cluster io finished. */
-	list_for_each_entry(dz, &oi->ip_unwritten_list, ue_ip_node) {
-		if (desc->c_cpos == dz->ue_cpos) {
+	list_for_each_entry(ue, &oi->ip_unwritten_list, ue_ip_node) {
+		if (desc->c_cpos == ue->ue_cpos) {
 			BUG_ON(desc->c_new);
 			desc->c_needs_zero = 0;
 			desc->c_clear_unwritten = 0;
@@ -2608,6 +2099,344 @@ static int ocfs2_write_end(struct file *file, struct address_space *mapping,
 	return ret;
 }
 
+struct ocfs2_dio_write_ctxt {
+	struct list_head	dw_zero_list;
+	unsigned		dw_zero_count;
+	int			dw_orphaned;
+	pid_t			dw_writer_pid;
+};
+
+static struct ocfs2_dio_write_ctxt *
+ocfs2_dio_alloc_write_ctx(struct buffer_head *bh, int *alloc)
+{
+	struct ocfs2_dio_write_ctxt *dwc = NULL;
+
+	if (bh->b_private)
+		return bh->b_private;
+
+	dwc = kmalloc(sizeof(struct ocfs2_dio_write_ctxt), GFP_NOFS);
+	if (dwc == NULL)
+		return NULL;
+	INIT_LIST_HEAD(&dwc->dw_zero_list);
+	dwc->dw_zero_count = 0;
+	dwc->dw_orphaned = 0;
+	dwc->dw_writer_pid = task_pid_nr(current);
+	bh->b_private = dwc;
+	*alloc = 1;
+
+	return dwc;
+}
+
+static void ocfs2_dio_free_write_ctx(struct inode *inode,
+				     struct ocfs2_dio_write_ctxt *dwc)
+{
+	ocfs2_free_unwritten_list(inode, &dwc->dw_zero_list);
+	kfree(dwc);
+}
+
+/*
+ * TODO: Make this into a generic get_blocks function.
+ *
+ * From do_direct_io in direct-io.c:
+ *  "So what we do is to permit the ->get_blocks function to populate
+ *   bh.b_size with the size of IO which is permitted at this offset and
+ *   this i_blkbits."
+ *
+ * This function is called directly from get_more_blocks in direct-io.c.
+ *
+ * called like this: dio->get_blocks(dio->inode, fs_startblk,
+ * 					fs_count, map_bh, dio->rw == WRITE);
+ */
+static int ocfs2_dio_get_block(struct inode *inode, sector_t iblock,
+			       struct buffer_head *bh_result, int create)
+{
+	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
+	struct ocfs2_write_ctxt *wc;
+	struct ocfs2_write_cluster_desc *desc = NULL;
+	struct ocfs2_dio_write_ctxt *dwc = NULL;
+	struct buffer_head *di_bh = NULL;
+	u64 p_blkno;
+	loff_t pos = iblock << inode->i_sb->s_blocksize_bits;
+	unsigned len, total_len = bh_result->b_size;
+	int ret = 0, first_get_block = 0;
+
+	len = osb->s_clustersize - (pos & (osb->s_clustersize - 1));
+	len = min(total_len, len);
+
+	mlog(0, "get block of %lu at %llu:%u req %u\n",
+			inode->i_ino, pos, len, total_len);
+
+	/* This is the fast path for re-write. */
+	ret = ocfs2_get_block(inode, iblock, bh_result, create);
+
+	if (buffer_mapped(bh_result) &&
+	    !buffer_new(bh_result) &&
+	    ret == 0)
+		goto out;
+
+	/* Clear state set by ocfs2_get_block. */
+	bh_result->b_state = 0;
+
+	dwc = ocfs2_dio_alloc_write_ctx(bh_result, &first_get_block);
+	if (unlikely(dwc == NULL)) {
+		ret = -ENOMEM;
+		mlog_errno(ret);
+		goto out;
+	}
+
+	if (ocfs2_clusters_for_bytes(inode->i_sb, pos + total_len) >
+	    ocfs2_clusters_for_bytes(inode->i_sb, i_size_read(inode)) &&
+	    !dwc->dw_orphaned) {
+		/*
+		 * when we are going to alloc extents beyond file size, add the
+		 * inode to orphan dir, so we can recall those spaces when
+		 * system crashed during write.
+		 */
+		ret = ocfs2_add_inode_to_orphan(osb, inode);
+		if (ret < 0) {
+			mlog_errno(ret);
+			goto out;
+		}
+		dwc->dw_orphaned = 1;
+	}
+
+	ret = ocfs2_inode_lock(inode, &di_bh, 1);
+	if (ret) {
+		mlog_errno(ret);
+		goto out;
+	}
+
+	if (first_get_block) {
+		if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb)))
+			ret = ocfs2_zero_tail(inode, di_bh, pos);
+		else
+			ret = ocfs2_expand_nonsparse_inode(inode, di_bh, pos,
+							   total_len, NULL);
+		if (ret < 0) {
+			mlog_errno(ret);
+			goto unlock;
+		}
+	}
+
+	ret = ocfs2_write_begin_nolock(inode->i_mapping, pos, len,
+				       OCFS2_WRITE_DIRECT, NULL,
+				       (void **)&wc, di_bh, NULL);
+	if (ret) {
+		mlog_errno(ret);
+		goto unlock;
+	}
+
+	desc = &wc->w_desc[0];
+
+	p_blkno = ocfs2_clusters_to_blocks(inode->i_sb, desc->c_phys);
+	BUG_ON(p_blkno == 0);
+	p_blkno += iblock & (u64)(ocfs2_clusters_to_blocks(inode->i_sb, 1) - 1);
+
+	map_bh(bh_result, inode->i_sb, p_blkno);
+	bh_result->b_size = len;
+	if (desc->c_needs_zero)
+		set_buffer_new(bh_result);
+
+	/* May sleep in end_io. It should not happen in a irq context. So defer
+	 * it to dio work queue. */
+	set_buffer_defer_completion(bh_result);
+
+	if (!list_empty(&wc->w_unwritten_list)) {
+		struct ocfs2_unwritten_extent *ue = NULL;
+
+		ue = list_first_entry(&wc->w_unwritten_list,
+				      struct ocfs2_unwritten_extent,
+				      ue_node);
+		BUG_ON(ue->ue_cpos != desc->c_cpos);
+		/* The physical address may be 0, fill it. */
+		ue->ue_phys = desc->c_phys;
+
+		list_splice_tail_init(&wc->w_unwritten_list, &dwc->dw_zero_list);
+		dwc->dw_zero_count++;
+	}
+
+	ret = ocfs2_write_end_nolock(inode->i_mapping, pos, len, len, NULL, wc);
+	BUG_ON(ret != len);
+	ret = 0;
+unlock:
+	ocfs2_inode_unlock(inode, 1);
+	brelse(di_bh);
+out:
+	if (ret < 0)
+		ret = -EIO;
+	return ret;
+}
+
+static void ocfs2_dio_end_io_write(struct inode *inode,
+				   struct ocfs2_dio_write_ctxt *dwc,
+				   loff_t offset,
+				   ssize_t bytes)
+{
+	struct ocfs2_cached_dealloc_ctxt dealloc;
+	struct ocfs2_extent_tree et;
+	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
+	struct ocfs2_unwritten_extent *ue = NULL;
+	struct buffer_head *di_bh = NULL;
+	struct ocfs2_dinode *di;
+	struct ocfs2_alloc_context *data_ac = NULL;
+	struct ocfs2_alloc_context *meta_ac = NULL;
+	handle_t *handle = NULL;
+	loff_t end = offset + bytes;
+	int ret = 0, credits = 0, locked = 0;
+
+	ocfs2_init_dealloc_ctxt(&dealloc);
+
+	/* We do clear unwritten, delete orphan, change i_size here. If neither
+	 * of these happen, we can skip all this. */
+	if (list_empty(&dwc->dw_zero_list) &&
+	    end <= i_size_read(inode) &&
+	    !dwc->dw_orphaned)
+		goto out;
+
+	ret = ocfs2_inode_lock(inode, &di_bh, 1);
+	if (ret < 0) {
+		mlog_errno(ret);
+		goto out;
+	}
+
+	/* ocfs2_file_write_iter will get i_mutex, so we need not lock if we
+	 * are in that context. */
+	if (dwc->dw_writer_pid != task_pid_nr(current)) {
+		mutex_lock(&inode->i_mutex);
+		locked = 1;
+	}
+
+	/* Delete orphan before acquire i_mutex. */
+	if (dwc->dw_orphaned) {
+		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
+
+		end = end > i_size_read(inode) ? end : 0;
+
+		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh,
+				!!end, end);
+		if (ret < 0)
+			mlog_errno(ret);
+	}
+
+	di = (struct ocfs2_dinode *)di_bh;
+
+	ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
+
+	ret = ocfs2_lock_allocators(inode, &et, 0, dwc->dw_zero_count*2,
+				    &data_ac, &meta_ac);
+
+	credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
+
+	handle = ocfs2_start_trans(osb, credits);
+	if (IS_ERR(handle)) {
+		ret = PTR_ERR(handle);
+		mlog_errno(ret);
+		goto unlock;
+	}
+	ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
+				      OCFS2_JOURNAL_ACCESS_WRITE);
+	if (ret) {
+		mlog_errno(ret);
+		goto commit;
+	}
+
+	list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
+		ret = ocfs2_mark_extent_written(inode, &et, handle,
+						ue->ue_cpos, 1,
+						ue->ue_phys,
+						meta_ac, &dealloc);
+		if (ret < 0) {
+			mlog_errno(ret);
+			break;
+		}
+	}
+
+	if (end > i_size_read(inode)) {
+		ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
+		if (ret < 0)
+			mlog_errno(ret);
+	}
+commit:
+	ocfs2_commit_trans(osb, handle);
+unlock:
+	ocfs2_inode_unlock(inode, 1);
+	brelse(di_bh);
+out:
+	ocfs2_run_deallocs(osb, &dealloc);
+	if (locked)
+		mutex_unlock(&inode->i_mutex);
+	ocfs2_dio_free_write_ctx(inode, dwc);
+	if (data_ac)
+		ocfs2_free_alloc_context(data_ac);
+	if (meta_ac)
+		ocfs2_free_alloc_context(meta_ac);
+}
+
+/*
+ * ocfs2_dio_end_io is called by the dio core when a dio is finished.  We're
+ * particularly interested in the aio/dio case.  We use the rw_lock DLM lock
+ * to protect io on one node from truncation on another.
+ */
+static int ocfs2_dio_end_io(struct kiocb *iocb,
+			    loff_t offset,
+			    ssize_t bytes,
+			    void *private)
+{
+	struct inode *inode = file_inode(iocb->ki_filp);
+	int level;
+
+	if (bytes <= 0)
+		return 0;
+
+	/* this io's submitter should not have unlocked this before we could */
+	BUG_ON(!ocfs2_iocb_is_rw_locked(iocb));
+
+	if (ocfs2_iocb_is_unaligned_aio(iocb)) {
+		ocfs2_iocb_clear_unaligned_aio(iocb);
+
+		mutex_unlock(&OCFS2_I(inode)->ip_unaligned_aio);
+	}
+
+	if (private)
+		ocfs2_dio_end_io_write(inode, private, offset, bytes);
+
+	ocfs2_iocb_clear_rw_locked(iocb);
+
+	level = ocfs2_iocb_rw_locked_level(iocb);
+	ocfs2_rw_unlock(inode, level);
+	return 0;
+}
+
+static ssize_t ocfs2_direct_IO(struct kiocb *iocb, struct iov_iter *iter,
+			       loff_t offset)
+{
+	struct file *file = iocb->ki_filp;
+	struct inode *inode = file_inode(file)->i_mapping->host;
+	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
+	loff_t end = offset + iter->count;
+	get_block_t *get_block;
+
+	/*
+	 * Fallback to buffered I/O if we see an inode without
+	 * extents.
+	 */
+	if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
+		return 0;
+
+	/* Fallback to buffered I/O if we do not support append dio. */
+	if (end > i_size_read(inode) && !ocfs2_supports_append_dio(osb))
+		return 0;
+
+	if (iov_iter_rw(iter) == READ)
+		get_block = ocfs2_get_block;
+	else
+		get_block = ocfs2_dio_get_block;
+
+	return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
+				    iter, offset, get_block,
+				    ocfs2_dio_end_io, NULL, 0);
+}
+
 const struct address_space_operations ocfs2_aops = {
 	.readpage		= ocfs2_readpage,
 	.readpages		= ocfs2_readpages,
]

120/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23673
							output: 44
							thoughts: 446
						

Thoughts:
**Analyzing Orphaned Inode Deletion in OCFS2**

Okay, let's dive into this code. I'm looking at `c15471f79506830f80eca0e7fe09b8213953ab5f` and specifically how `ocfs2_dio_end_io_write` handles orphaned inodes. My initial thought was to see if `ocfs2_del_inode_from_orphan` was called while holding the `meta_ac` and `data_ac` locks. It's a critical point to understand the locking order here to avoid potential race conditions.

Reading the code snippet, it's pretty clear: the orphan deletion logic, including the call to `ocfs2_del_inode_from_orphan`, happens *before* the call to `ocfs2_lock_allocators`. That means the `meta_ac` and `data_ac` allocation context locks are *not* held during the orphan deletion. That’s a significant point. It's not what I initially expected. I need to be certain about this.

Now, my next step is to trace back when this ordering of operations was established. I need to understand if the order was intentional from the start or if there was a commit that changed the order of those operations and the associated implications. I need to investigate further to understand the rationale behind this design.



121/2 2026/05/29 17:29 tool git-log
0m Args:
map[CodeRegexp:ocfs2_del_inode_from_orphan PathPrefix:fs/ocfs2/aops.c]

Results:
map[Output:d647c5b2fbf8 ocfs2: split transactions in dio completion to avoid credit exhaustion
c15471f79506 ocfs2: fix sparse file & data ordering issue in direct io
cf1776a9e834 ocfs2: fix a tiny race when truncate dio orohaned entry
24c40b329e03 ocfs2: implement ocfs2_direct_IO_write
]

122/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24590
							output: 26
							thoughts: 17
						

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:

**Investigating a Hash – Initial Probe**

Alright, I've been given `d647c5b2fbf8`. Immediately, my mental gears start turning. This looks like a cryptographic hash, likely a SHA-1 or MD5 based on its length, though a more modern hashing algorithm like SHA-256 is certainly possible. The first question I'm asking myself is *why* am I looking at this? What's the context? Is this from an investigation, a security audit, or maybe just a data integrity check? Knowing the source is critical for determining the appropriate investigative path.

Next, I need to understand the likely function of this hash. Was it produced from a file, a string, a database record, or something else entirely? The context will provide crucial clues here. Are there any known vulnerabilities associated with the hashing algorithm itself that might make it immediately suspicious, like collision attacks? Does the context suggest I should be looking at rainbow tables or pre-computed hash databases?

I'm mentally preparing for a few different approaches. I'll need to use tools to quickly identify the hash type, assuming it's straightforward. Then, I may need to attempt to reverse the hash or find the original input, depending on the goal. Are we trying to identify the file itself, the key that produced it, or are we just looking to verify its integrity? My goal will inform if I go looking for known-hash databases or consider more sophisticated techniques like brute-forcing, if the context permits. Finally, I'll need to correlate this hash to any available logs, metadata, or other related artifacts to find more data. I'm ready to dig in and find some answers.



123/2 2026/05/29 17:29 tool git-show
0m Args:
map[Commit:d647c5b2fbf8]

Results:
map[Output:commit d647c5b2fbf81560818dacade360abc8c00a9665
Author: Heming Zhao <heming.zhao@suse.com>
Date:   Thu Apr 2 21:43:27 2026 +0800

    ocfs2: split transactions in dio completion to avoid credit exhaustion
    
    During ocfs2 dio operations, JBD2 may report warnings via following
    call trace:
    ocfs2_dio_end_io_write
     ocfs2_mark_extent_written
      ocfs2_change_extent_flag
       ocfs2_split_extent
        ocfs2_try_to_merge_extent
         ocfs2_extend_rotate_transaction
          ocfs2_extend_trans
           jbd2__journal_restart
            start_this_handle
             output: JBD2: kworker/6:2 wants too many credits credits:5450 rsv_credits:0 max:5449
    
    To prevent exceeding the credits limit, modify ocfs2_dio_end_io_write() to
    handle extents in a batch of transaction.
    
    Additionally, relocate ocfs2_del_inode_from_orphan().  The orphan inode
    should only be removed from the orphan list after the extent tree update
    is complete.  This ensures that if a crash occurs in the middle of extent
    tree updates, we won't leave stale blocks beyond EOF.
    
    This patch also changes the logic for updating the inode size and removing
    orphan, making it similar to ext4_dio_write_end_io().  Both operations are
    performed only when everything looks good.
    
    Finally, thanks to Jans and Joseph for providing the bug fix prototype and
    suggestions.
    
    Link: https://lkml.kernel.org/r/20260402134328.27334-2-heming.zhao@suse.com
    Signed-off-by: Heming Zhao <heming.zhao@suse.com>
    Suggested-by: Jan Kara <jack@suse.cz>
    Suggested-by: Joseph Qi <joseph.qi@linux.alibaba.com>
    Reviewed-by: Jan Kara <jack@suse.cz>
    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>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 09146b43d1f0..c6dbec1693b1 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -37,6 +37,8 @@
 #include "namei.h"
 #include "sysfile.h"
 
+#define OCFS2_DIO_MARK_EXTENT_BATCH 200
+
 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock,
 				   struct buffer_head *bh_result, int create)
 {
@@ -2277,7 +2279,7 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	struct ocfs2_alloc_context *meta_ac = NULL;
 	handle_t *handle = NULL;
 	loff_t end = offset + bytes;
-	int ret = 0, credits = 0;
+	int ret = 0, credits = 0, batch = 0;
 
 	ocfs2_init_dealloc_ctxt(&dealloc);
 
@@ -2294,18 +2296,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 		goto out;
 	}
 
-	/* Delete orphan before acquire i_rwsem. */
-	if (dwc->dw_orphaned) {
-		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
-
-		end = end > i_size_read(inode) ? end : 0;
-
-		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh,
-				!!end, end);
-		if (ret < 0)
-			mlog_errno(ret);
-	}
-
 	down_write(&oi->ip_alloc_sem);
 	di = (struct ocfs2_dinode *)di_bh->b_data;
 
@@ -2326,24 +2316,25 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 
 	credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
 
-	handle = ocfs2_start_trans(osb, credits);
-	if (IS_ERR(handle)) {
-		ret = PTR_ERR(handle);
-		mlog_errno(ret);
-		goto unlock;
-	}
-	ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
-				      OCFS2_JOURNAL_ACCESS_WRITE);
-	if (ret) {
-		mlog_errno(ret);
-		goto commit;
-	}
-
 	list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
+		if (!handle) {
+			handle = ocfs2_start_trans(osb, credits);
+			if (IS_ERR(handle)) {
+				ret = PTR_ERR(handle);
+				mlog_errno(ret);
+				goto unlock;
+			}
+			ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
+					OCFS2_JOURNAL_ACCESS_WRITE);
+			if (ret) {
+				mlog_errno(ret);
+				goto commit;
+			}
+		}
 		ret = ocfs2_assure_trans_credits(handle, credits);
 		if (ret < 0) {
 			mlog_errno(ret);
-			break;
+			goto commit;
 		}
 		ret = ocfs2_mark_extent_written(inode, &et, handle,
 						ue->ue_cpos, 1,
@@ -2351,19 +2342,44 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 						meta_ac, &dealloc);
 		if (ret < 0) {
 			mlog_errno(ret);
-			break;
+			goto commit;
+		}
+
+		if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
+			ocfs2_commit_trans(osb, handle);
+			handle = NULL;
+			batch = 0;
 		}
 	}
 
 	if (end > i_size_read(inode)) {
+		if (!handle) {
+			handle = ocfs2_start_trans(osb, credits);
+			if (IS_ERR(handle)) {
+				ret = PTR_ERR(handle);
+				mlog_errno(ret);
+				goto unlock;
+			}
+		}
 		ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
 		if (ret < 0)
 			mlog_errno(ret);
 	}
+
 commit:
-	ocfs2_commit_trans(osb, handle);
+	if (handle)
+		ocfs2_commit_trans(osb, handle);
 unlock:
 	up_write(&oi->ip_alloc_sem);
+
+	/* everything looks good, let's start the cleanup */
+	if (!ret && dwc->dw_orphaned) {
+		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
+
+		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
+		if (ret < 0)
+			mlog_errno(ret);
+	}
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
]

124/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27209
							output: 48
							thoughts: 1517
						

Thoughts:
**Analyzing a Circular Locking Dependency in OCFS2**

Okay, let's break this down. In commit `d647c5b2fbf81560818dacade360abc8c00a9665`, the developer moved the call to `ocfs2_del_inode_from_orphan` to the end of `ocfs2_dio_end_io_write`. My immediate thought was to understand the implications of this change. Peering into the diff, I noticed that `ocfs2_del_inode_from_orphan` now occurs *before* `out:`, the label where `data_ac` and `meta_ac` are freed.

This triggers alarm bells. Those allocation contexts (`data_ac` and `meta_ac`) hold the `EXTENT_ALLOC_SYSTEM_INODE` lock. At the same time, `ocfs2_del_inode_from_orphan` acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. Thus, the change introduces a locking dependency: `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`.

To verify this, I went back and confirmed that before the commit, `ocfs2_del_inode_from_orphan` was called earlier, before the allocators were locked. The commit moved the call *after* the allocators were locked, but *before* they were unlocked. Therefore, that commit, `d647c5b2fbf81560818dacade360abc8c00a9665`, introduced the circular dependency.

I then examined the subsequent patch that fixed the issue. Bingo! It moved the freeing of `data_ac` and `meta_ac` *before* the call to `ocfs2_del_inode_from_orphan`, resolving the circular dependency that was introduced.

Finally, I revisited the original commit message for `d647c5b2fbf81560818dacade360abc8c00a9665`. The stated reason for the move was to ensure the orphan inode is only removed after extent tree updates. While the intent was sound, the implementation placed the cleanup at the wrong point, creating this unintended consequence. The commit's logic was correct in terms of ensuring data integrity, but it inadvertently introduced a circular locking dependency by putting the code in the wrong order. A classic case of functionality vs. concurrency! I will need to confirm the commit hash `d647c5b2fbf81560818dacade360abc8c00a9665` to be sure.



125/2 2026/05/29 17:29 tool git-show
0m Args:
map[Commit:d647c5b2fbf81560818dacade360abc8c00a9665]

Results:
map[Output:commit d647c5b2fbf81560818dacade360abc8c00a9665
Author: Heming Zhao <heming.zhao@suse.com>
Date:   Thu Apr 2 21:43:27 2026 +0800

    ocfs2: split transactions in dio completion to avoid credit exhaustion
    
    During ocfs2 dio operations, JBD2 may report warnings via following
    call trace:
    ocfs2_dio_end_io_write
     ocfs2_mark_extent_written
      ocfs2_change_extent_flag
       ocfs2_split_extent
        ocfs2_try_to_merge_extent
         ocfs2_extend_rotate_transaction
          ocfs2_extend_trans
           jbd2__journal_restart
            start_this_handle
             output: JBD2: kworker/6:2 wants too many credits credits:5450 rsv_credits:0 max:5449
    
    To prevent exceeding the credits limit, modify ocfs2_dio_end_io_write() to
    handle extents in a batch of transaction.
    
    Additionally, relocate ocfs2_del_inode_from_orphan().  The orphan inode
    should only be removed from the orphan list after the extent tree update
    is complete.  This ensures that if a crash occurs in the middle of extent
    tree updates, we won't leave stale blocks beyond EOF.
    
    This patch also changes the logic for updating the inode size and removing
    orphan, making it similar to ext4_dio_write_end_io().  Both operations are
    performed only when everything looks good.
    
    Finally, thanks to Jans and Joseph for providing the bug fix prototype and
    suggestions.
    
    Link: https://lkml.kernel.org/r/20260402134328.27334-2-heming.zhao@suse.com
    Signed-off-by: Heming Zhao <heming.zhao@suse.com>
    Suggested-by: Jan Kara <jack@suse.cz>
    Suggested-by: Joseph Qi <joseph.qi@linux.alibaba.com>
    Reviewed-by: Jan Kara <jack@suse.cz>
    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>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 09146b43d1f0..c6dbec1693b1 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -37,6 +37,8 @@
 #include "namei.h"
 #include "sysfile.h"
 
+#define OCFS2_DIO_MARK_EXTENT_BATCH 200
+
 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock,
 				   struct buffer_head *bh_result, int create)
 {
@@ -2277,7 +2279,7 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	struct ocfs2_alloc_context *meta_ac = NULL;
 	handle_t *handle = NULL;
 	loff_t end = offset + bytes;
-	int ret = 0, credits = 0;
+	int ret = 0, credits = 0, batch = 0;
 
 	ocfs2_init_dealloc_ctxt(&dealloc);
 
@@ -2294,18 +2296,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 		goto out;
 	}
 
-	/* Delete orphan before acquire i_rwsem. */
-	if (dwc->dw_orphaned) {
-		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
-
-		end = end > i_size_read(inode) ? end : 0;
-
-		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh,
-				!!end, end);
-		if (ret < 0)
-			mlog_errno(ret);
-	}
-
 	down_write(&oi->ip_alloc_sem);
 	di = (struct ocfs2_dinode *)di_bh->b_data;
 
@@ -2326,24 +2316,25 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 
 	credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list);
 
-	handle = ocfs2_start_trans(osb, credits);
-	if (IS_ERR(handle)) {
-		ret = PTR_ERR(handle);
-		mlog_errno(ret);
-		goto unlock;
-	}
-	ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
-				      OCFS2_JOURNAL_ACCESS_WRITE);
-	if (ret) {
-		mlog_errno(ret);
-		goto commit;
-	}
-
 	list_for_each_entry(ue, &dwc->dw_zero_list, ue_node) {
+		if (!handle) {
+			handle = ocfs2_start_trans(osb, credits);
+			if (IS_ERR(handle)) {
+				ret = PTR_ERR(handle);
+				mlog_errno(ret);
+				goto unlock;
+			}
+			ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
+					OCFS2_JOURNAL_ACCESS_WRITE);
+			if (ret) {
+				mlog_errno(ret);
+				goto commit;
+			}
+		}
 		ret = ocfs2_assure_trans_credits(handle, credits);
 		if (ret < 0) {
 			mlog_errno(ret);
-			break;
+			goto commit;
 		}
 		ret = ocfs2_mark_extent_written(inode, &et, handle,
 						ue->ue_cpos, 1,
@@ -2351,19 +2342,44 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 						meta_ac, &dealloc);
 		if (ret < 0) {
 			mlog_errno(ret);
-			break;
+			goto commit;
+		}
+
+		if (++batch == OCFS2_DIO_MARK_EXTENT_BATCH) {
+			ocfs2_commit_trans(osb, handle);
+			handle = NULL;
+			batch = 0;
 		}
 	}
 
 	if (end > i_size_read(inode)) {
+		if (!handle) {
+			handle = ocfs2_start_trans(osb, credits);
+			if (IS_ERR(handle)) {
+				ret = PTR_ERR(handle);
+				mlog_errno(ret);
+				goto unlock;
+			}
+		}
 		ret = ocfs2_set_inode_size(handle, inode, di_bh, end);
 		if (ret < 0)
 			mlog_errno(ret);
 	}
+
 commit:
-	ocfs2_commit_trans(osb, handle);
+	if (handle)
+		ocfs2_commit_trans(osb, handle);
 unlock:
 	up_write(&oi->ip_alloc_sem);
+
+	/* everything looks good, let's start the cleanup */
+	if (!ret && dwc->dw_orphaned) {
+		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
+
+		ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0);
+		if (ret < 0)
+			mlog_errno(ret);
+	}
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
]

126/2 2026/05/29 17:29 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31559
							output: 50
							thoughts: 687
						

Thoughts:
**Analyzing the Root Cause of a Circular Locking Dependency**

Okay, so I've been digging into this bug, and I'm pretty sure I've nailed down the culprit. Looking at the commit history, `d647c5b2fbf81560818dacade360abc8c00a9665` is the one that introduced the circular locking dependency. My reasoning is solid. This commit moved the call to `ocfs2_del_inode_from_orphan` to after `up_write(&oi->ip_alloc_sem);` but before the `out:` label, which is critical.

This placement means that the `data_ac` and `meta_ac` allocation contexts are still active when `ocfs2_del_inode_from_orphan` is called. Now, `ocfs2_del_inode_from_orphan` acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. At the same time, `data_ac` and `meta_ac` hold the `EXTENT_ALLOC_SYSTEM_INODE` lock. Boom – circular dependency!

Let's quickly confirm that there aren't any other contributing factors. The bug report is helpful here, it shows a clear path of lock acquisition that matches what I'm seeing: `EXTENT_ALLOC_SYSTEM_INODE` is acquired before `ORPHAN_DIR_SYSTEM_INODE`. Specifically, the report calls out `ocfs2_dio_end_io_write()` where metadata blocks are allocated using `ocfs2_lock_allocators()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Then, if the inode is orphaned, `ocfs2_del_inode_from_orphan()` is called, acquiring the `ORPHAN_DIR_SYSTEM_INODE` lock. The report correctly points out that `meta_ac` and thus the `EXTENT_ALLOC_SYSTEM_INODE` lock is held until the very end, while the `ORPHAN_DIR_SYSTEM_INODE` is acquired. This confirms the exact scenario that `d647c5b2fbf81560818dacade360abc8c00a9665` created.

Before that commit, `ocfs2_del_inode_from_orphan` was called *before* `ocfs2_lock_allocators()`, so `meta_ac` was not held when the orphaned inode was handled.

Now, let's verify the fix. The fix commit is smart – it moves the `ocfs2_free_alloc_context(data_ac)` and `ocfs2_free_alloc_context(meta_ac)` calls right after `up_write(&oi->ip_alloc_sem);` and *before* the call to `ocfs2_del_inode_from_orphan()`. This is precisely what's needed to break the dependency, because the allocation contexts are freed before the function acquires the `ORPHAN_DIR_SYSTEM_INODE` lock.

Therefore, my conclusion stands: the bug-introducing commit is definitely `d647c5b2fbf81560818dacade360abc8c00a9665`. We can now move forward with confidence.



127/2 2026/05/29 17:30 tool set-results
0m Args:
map[FixesHash:d647c5b2fbf81560818dacade360abc8c00a9665]

Results:
map[FixesHash:d647c5b2fbf81560818dacade360abc8c00a9665]

128/1 2026/05/29 17:30 action format-fixes
0m Results:
map[Fixes:map[Hash:d647c5b2fbf81560818dacade360abc8c00a9665 Title:ocfs2: split transactions in dio completion to avoid credit exhaustion]]

129/1 2026/05/29 17:30 action get-maintainers
0m Results:
map[Recipients:[map[Email:jlbec@evilplan.org Name:Joel Becker To:true] map[Email:joseph.qi@linux.alibaba.com Name:Joseph Qi To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:mark@fasheh.com Name:Mark Fasheh To:true] map[Email:ocfs2-devel@lists.linux.dev Name: To:true]]]

130/1 2026/05/29 17:30 action get-recent-commits
0m Results:
map[RecentCommits:ocfs2: split transactions in dio completion to avoid credit exhaustion
ocfs2: fix possible deadlock between unlink and dio_end_io_write
treewide: change inode->i_ino from unsigned long to u64
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
fs: change write_begin/write_end interface to take struct kiocb *
ocfs2: reset folio to NULL when get folio fails
ocfs2: use memcpy_to_folio() in ocfs2_symlink_get_block()
fs: convert block_commit_write() to take a folio
ocfs2: convert ocfs2_read_inline_data() to take a folio
ocfs2: use an array of folios instead of an array of pages
ocfs2: convert ocfs2_clear_page_regions() to ocfs2_clear_folio_regions()
ocfs2: convert ocfs2_map_page_blocks() to ocfs2_map_folio_blocks()
ocfs2: use a folio in ocfs2_prepare_page_for_write()
ocfs2: use a folio in ocfs2_write_end_nolock()
ocfs2: convert ocfs2_write_failure() to use a folio
ocfs2: convert w_pages to w_folios
ocfs2: convert ocfs2_inode_lock_with_page() to ocfs2_inode_lock_with_folio()
ocfs2: convert ocfs2_readpage_inline() to take a folio
ocfs2: pass mmap_folio around instead of mmap_page
ocfs2: use a folio in ocfs2_write_begin_inline()
]

131/1 2026/05/29 17:30 agent description-generator
0m Model:
gemini-3.1-pro-preview

Instruction:
You are an experienced Linux kernel developer tasked with writing a commit description for
a kernel bug fixing commit. The description should start with a one-line summary,
and then include description of the bug being fixed, and how it's fixed by the provided patch.
The one-line summary should describe the change being made, rather than mention the tool that
detected the bug.

The description must not contain lines starting with '#' because they will dropped by git as comments.
The description must not contain lines starting with '--' or '---' (including inline code diffs)
because they may confuse git/patch utilities.

Your final reply should contain only the text of the commit description.


The one-line summary must be not longer than 72 characters.

IMPORTANT: Do not wrap lines manually (e.g., at 80 characters); we will reformat the text
automatically, so keep paragraphs as single lines without newlines.

Generally try to phrase the description without mentioning syzkaller
(avoid phrases like "the bug was triggered by syzkaller" or "the bug was triggered by fuzzer", etc).
How the bug was triggered is generally an irrelevant detail.
Any bug triggered by a fuzzer can also be triggered by a malicious user, or a buggy program.



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

Prompt:
The crash that corresponds to the bug is:

======================================================
WARNING: possible circular locking dependency detected
syzkaller #1 Not tainted
------------------------------------------------------
syz-executor/6069 is trying to acquire lock:
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196ab3a0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299

but task is already holding lock:
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_del_inode_from_orphan+0x12e/0x7a0 fs/ocfs2/namei.c:2728
       ocfs2_dio_end_io_write fs/ocfs2/aops.c:2379 [inline]
       ocfs2_dio_end_io+0xf9c/0x1370 fs/ocfs2/aops.c:2418
       dio_complete+0x25b/0x790 fs/direct-io.c:281
       __blockdev_direct_IO+0x2e5d/0x34e0 fs/direct-io.c:1303
       ocfs2_direct_IO+0x251/0x2c0 fs/ocfs2/aops.c:2455
       generic_file_direct_write+0x1db/0x3e0 mm/filemap.c:4259
       __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4428
       ocfs2_file_write_iter+0x1663/0x1e70 fs/ocfs2/file.c:2476
       do_iter_readv_writev+0x619/0x8c0 fs/read_write.c:-1
       vfs_writev+0x33c/0x990 fs/read_write.c:1059
       do_writev+0x154/0x2e0 fs/read_write.c:1105
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #1 (&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_reserve_suballoc_bits+0x16d/0x4840 fs/ocfs2/suballoc.c:882
       ocfs2_reserve_new_metadata_blocks+0x415/0x9a0 fs/ocfs2/suballoc.c:1078
       ocfs2_mknod+0x10f3/0x2260 fs/ocfs2/namei.c:351
       ocfs2_create+0x195/0x460 fs/ocfs2/namei.c:677
       lookup_open fs/namei.c:4511 [inline]
       open_last_lookups fs/namei.c:4611 [inline]
       path_openat+0x1395/0x3860 fs/namei.c:4855
       do_file_open+0x23e/0x4a0 fs/namei.c:4887
       do_sys_openat2+0x113/0x200 fs/open.c:1364
       do_sys_open fs/open.c:1370 [inline]
       __do_sys_openat fs/open.c:1386 [inline]
       __se_sys_openat fs/open.c:1381 [inline]
       __x64_sys_openat+0x138/0x170 fs/open.c:1381
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

-> #0 (&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]){+.+.}-{4:4}:
       check_prev_add kernel/locking/lockdep.c:3165 [inline]
       check_prevs_add kernel/locking/lockdep.c:3284 [inline]
       validate_chain kernel/locking/lockdep.c:3908 [inline]
       __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
       lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
       down_write+0x96/0x200 kernel/locking/rwsem.c:1625
       inode_lock include/linux/fs.h:1029 [inline]
       ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
       ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
       ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
       ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
       evict+0x61e/0xb10 fs/inode.c:841
       d_delete_notify include/linux/fsnotify.h:377 [inline]
       vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
       filename_rmdir+0x292/0x520 fs/namei.c:5421
       __do_sys_unlinkat fs/namei.c:5596 [inline]
       __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
       do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
       do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

other info that might help us debug this:

Chain exists of:
  &ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE] --> &ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[EXTENT_ALLOC_SYSTEM_INODE]);
                               lock(&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]);
  lock(&ocfs2_sysfile_lock_key[INODE_ALLOC_SYSTEM_INODE]);

 *** DEADLOCK ***

4 locks held by syz-executor/6069:
 #0: ffff8881161a4410 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1074 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2914 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2938 [inline]
 #1: ffff88811958a5a0 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_rmdir+0x1cd/0x520 fs/namei.c:5414
 #2: ffff8881166b0bc0 (&osb->nfs_sync_rwlock){.+.+}-{4:4}, at: ocfs2_nfs_sync_lock+0x106/0x270 fs/ocfs2/dlmglue.c:2875
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1029 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_wipe_inode fs/ocfs2/inode.c:854 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 #3: ffff8881196acfa0 (&ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE]){+.+.}-{4:4}, at: ocfs2_evict_inode+0xe97/0x43b0 fs/ocfs2/inode.c:1299

stack backtrace:
CPU: 1 UID: 0 PID: 6069 Comm: syz-executor Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
 check_prev_add kernel/locking/lockdep.c:3165 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain kernel/locking/lockdep.c:3908 [inline]
 __lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
 down_write+0x96/0x200 kernel/locking/rwsem.c:1625
 inode_lock include/linux/fs.h:1029 [inline]
 ocfs2_remove_inode fs/ocfs2/inode.c:733 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:896 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1157 [inline]
 ocfs2_evict_inode+0x1539/0x43b0 fs/ocfs2/inode.c:1299
 evict+0x61e/0xb10 fs/inode.c:841
 d_delete_notify include/linux/fsnotify.h:377 [inline]
 vfs_rmdir+0x42a/0x6e0 fs/namei.c:5379
 filename_rmdir+0x292/0x520 fs/namei.c:5421
 __do_sys_unlinkat fs/namei.c:5596 [inline]
 __se_sys_unlinkat+0x71/0x1a0 fs/namei.c:5589
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51b819bf77
Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffd5ea06718 EFLAGS: 00000207 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f51b819bf77
RDX: 0000000000000200 RSI: 00007ffd5ea078c0 RDI: 00000000ffffff9c
RBP: 00007f51b82321ca R08: 0000000000018560 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000207 R12: 00007ffd5ea078c0
R13: 00007f51b82321ca R14: 000000000001819f R15: 00007ffd5ea09a80
 </TASK>




The explanation of the root cause of the bug is:

The lockdep warning reports a circular locking dependency involving three OCFS2 system inode locks (which all belong to the `ocfs2_sysfile_lock_key` lock class, but are distinct locks based on their system inode type). 

The three locks involved are:
1. `INODE_ALLOC_SYSTEM_INODE`
2. `EXTENT_ALLOC_SYSTEM_INODE`
3. `ORPHAN_DIR_SYSTEM_INODE`

### Root Cause Analysis

The circular dependency is formed by three separate code paths that establish the following lock ordering:

**1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE`**
In `ocfs2_mknod()` (`fs/ocfs2/namei.c`), the code first reserves an inode by calling `ocfs2_reserve_new_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock. Shortly after, it reserves metadata blocks by calling `ocfs2_reserve_new_metadata_blocks()`, which acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Both locks are held concurrently until the end of the function (or upon error), establishing this dependency.

**2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`**
In `ocfs2_dio_end_io_write()` (`fs/ocfs2/aops.c`), the code allocates metadata blocks for unwritten extents by calling `ocfs2_lock_allocators()`. This allocates `meta_ac` and acquires the `EXTENT_ALLOC_SYSTEM_INODE` lock. Later in the same function, if the inode was orphaned, it calls `ocfs2_del_inode_from_orphan()`, which acquires the `ORPHAN_DIR_SYSTEM_INODE` lock. The `meta_ac` context (and thus the `EXTENT_ALLOC_SYSTEM_INODE` lock) is only freed at the very end of the function, meaning it is held while `ORPHAN_DIR_SYSTEM_INODE` is acquired.

**3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`**
In `ocfs2_wipe_inode()` (`fs/ocfs2/inode.c`), the `ORPHAN_DIR_SYSTEM_INODE` lock is acquired first to prevent races with recovery completion. While holding this lock, it calls `ocfs2_remove_inode()`, which acquires the `INODE_ALLOC_SYSTEM_INODE` lock to free the inode. (A similar dependency is also established in `ocfs2_prep_new_orphaned_file()`).

Combining these three paths creates the circular dependency:
`INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE`.

### How to Fix

We can break the cycle by addressing the second dependency (`EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE`) in `ocfs2_dio_end_io_write()`. 

The `data_ac` and `meta_ac` allocation contexts are only needed for the transaction that marks the extents as written. Once the transaction is committed via `ocfs2_commit_trans()` and the allocation semaphore is released via `up_write(&oi->ip_alloc_sem)`, these contexts are no longer needed. We can safely free them (which releases the `EXTENT_ALLOC_SYSTEM_INODE` lock) *before* calling `ocfs2_del_inode_from_orphan()`.

Here is the proposed fix for `fs/ocfs2/aops.c`:

```c
@@ -2372,6 +2372,16 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2393,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 
```

This ensures that the `EXTENT_ALLOC_SYSTEM_INODE` lock is dropped before we attempt to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock, successfully breaking the circular dependency.

The diff of the bug fix is:

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 6ec198bda..4acdbb708 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2372,6 +2372,15 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 unlock:
 	up_write(&oi->ip_alloc_sem);
 
+	if (data_ac) {
+		ocfs2_free_alloc_context(data_ac);
+		data_ac = NULL;
+	}
+	if (meta_ac) {
+		ocfs2_free_alloc_context(meta_ac);
+		meta_ac = NULL;
+	}
+
 	/* everything looks good, let's start the cleanup */
 	if (!ret && dwc->dw_orphaned) {
 		BUG_ON(dwc->dw_writer_pid != task_pid_nr(current));
@@ -2383,10 +2392,6 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
 	ocfs2_inode_unlock(inode, 1);
 	brelse(di_bh);
 out:
-	if (data_ac)
-		ocfs2_free_alloc_context(data_ac);
-	if (meta_ac)
-		ocfs2_free_alloc_context(meta_ac);
 	ocfs2_run_deallocs(osb, &dealloc);
 	ocfs2_dio_free_write_ctx(inode, dwc);
 


Additional description of the patch:

I have applied the fix to break the circular locking dependency by modifying `ocfs2_dio_end_io_write()` in `fs/ocfs2/aops.c`.

### What I did:
I moved the freeing of the `data_ac` and `meta_ac` allocation contexts to happen immediately after the transaction is committed and the allocation semaphore is released (`up_write(&oi->ip_alloc_sem)`), but *before* the call to `ocfs2_del_inode_from_orphan()`. 

### Why this is the best fix:
The circular dependency is formed by the following lock ordering:
1. `INODE_ALLOC_SYSTEM_INODE` -> `EXTENT_ALLOC_SYSTEM_INODE` (in `ocfs2_mknod()`)
2. `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` (in `ocfs2_dio_end_io_write()`)
3. `ORPHAN_DIR_SYSTEM_INODE` -> `INODE_ALLOC_SYSTEM_INODE` (in `ocfs2_wipe_inode()`)

By freeing `data_ac` and `meta_ac` earlier in `ocfs2_dio_end_io_write()`, we release the `EXTENT_ALLOC_SYSTEM_INODE` lock before attempting to acquire the `ORPHAN_DIR_SYSTEM_INODE` lock (which happens inside `ocfs2_del_inode_from_orphan()`). This effectively breaks the `EXTENT_ALLOC_SYSTEM_INODE` -> `ORPHAN_DIR_SYSTEM_INODE` dependency, resolving the circular locking issue.

The allocation contexts (`data_ac` and `meta_ac`) are only needed for the transaction that marks the extents as written. Once the transaction is committed and the allocation semaphore is released, they are no longer required. Freeing them early is completely safe and does not affect the subsequent orphan cleanup or deallocation steps.

I also verified other occurrences of `ocfs2_del_inode_from_orphan()` (such as in `ocfs2_recover_orphans()` and `ocfs2_add_inode_to_orphan()`) and confirmed that they do not hold the `EXTENT_ALLOC_SYSTEM_INODE` lock. Similarly, I checked other callers of `ocfs2_lock_allocators()` and confirmed they do not acquire the `ORPHAN_DIR_SYSTEM_INODE` lock while holding the allocation contexts. Therefore, this fix is localized and sufficient to resolve the root cause without introducing new issues.

Here are summaries of recent commits that touched the same files.
Format the summary line consistently with these, look how prefixes
are specified, letter capitalization, style, etc. 

ocfs2: split transactions in dio completion to avoid credit exhaustion
ocfs2: fix possible deadlock between unlink and dio_end_io_write
treewide: change inode->i_ino from unsigned long to u64
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
fs: change write_begin/write_end interface to take struct kiocb *
ocfs2: reset folio to NULL when get folio fails
ocfs2: use memcpy_to_folio() in ocfs2_symlink_get_block()
fs: convert block_commit_write() to take a folio
ocfs2: convert ocfs2_read_inline_data() to take a folio
ocfs2: use an array of folios instead of an array of pages
ocfs2: convert ocfs2_clear_page_regions() to ocfs2_clear_folio_regions()
ocfs2: convert ocfs2_map_page_blocks() to ocfs2_map_folio_blocks()
ocfs2: use a folio in ocfs2_prepare_page_for_write()
ocfs2: use a folio in ocfs2_write_end_nolock()
ocfs2: convert ocfs2_write_failure() to use a folio
ocfs2: convert w_pages to w_folios
ocfs2: convert ocfs2_inode_lock_with_page() to ocfs2_inode_lock_with_folio()
ocfs2: convert ocfs2_readpage_inline() to take a folio
ocfs2: pass mmap_folio around instead of mmap_page
ocfs2: use a folio in ocfs2_write_begin_inline()


Reply:
ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write()

A circular locking dependency can occur involving three OCFS2 system inode
locks: INODE_ALLOC_SYSTEM_INODE, EXTENT_ALLOC_SYSTEM_INODE, and
ORPHAN_DIR_SYSTEM_INODE.

The circular dependency is formed by three separate code paths. First, in
ocfs2_mknod(), the code reserves an inode by acquiring the
INODE_ALLOC_SYSTEM_INODE lock, and then reserves metadata blocks by
acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Second, in
ocfs2_dio_end_io_write(), the code allocates metadata blocks for unwritten
extents, acquiring the EXTENT_ALLOC_SYSTEM_INODE lock. Later in the same
function, if the inode was orphaned, it calls
ocfs2_del_inode_from_orphan(), which acquires the ORPHAN_DIR_SYSTEM_INODE
lock. The allocation context is only freed at the end of the function,
meaning the EXTENT_ALLOC_SYSTEM_INODE lock is held while
ORPHAN_DIR_SYSTEM_INODE is acquired. Third, in ocfs2_wipe_inode(), the
ORPHAN_DIR_SYSTEM_INODE lock is acquired first to prevent races with
recovery completion, and then it calls ocfs2_remove_inode(), which acquires
the INODE_ALLOC_SYSTEM_INODE lock to free the inode.

This patch breaks the cycle by addressing the dependency in
ocfs2_dio_end_io_write(). The data_ac and meta_ac allocation contexts are
only needed for the transaction that marks the extents as written. Once the
transaction is committed and the allocation semaphore is released, these
contexts are no longer needed. We can safely free them, which releases the
EXTENT_ALLOC_SYSTEM_INODE lock, before calling
ocfs2_del_inode_from_orphan(). This ensures that the
EXTENT_ALLOC_SYSTEM_INODE lock is dropped before we attempt to acquire the
ORPHAN_DIR_SYSTEM_INODE lock, successfully breaking the circular
dependency.

132/2 2026/05/29 17:30 llm description-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10953
							output: 455
							thoughts: 1592
						

Thoughts:
**OCFS2 Circular Locking Dependency Fix**

Okay, here's the breakdown. I need to document a fix for a circular locking dependency in the OCFS2 code. My initial thought is to make the one-line summary something like "ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write()", aiming for conciseness and keeping the commit style consistent. That's 65 characters, within the limit. I have to avoid any lines starting with the comment characters in git.

The heart of the issue is a circular dependency involving these three locks: `INODE_ALLOC_SYSTEM_INODE`, `EXTENT_ALLOC_SYSTEM_INODE`, and `ORPHAN_DIR_SYSTEM_INODE`. The cycle starts with `ocfs2_mknod()` where `INODE_ALLOC_SYSTEM_INODE` is acquired before `EXTENT_ALLOC_SYSTEM_INODE`. Then, in `ocfs2_dio_end_io_write()`, `EXTENT_ALLOC_SYSTEM_INODE` is acquired and if the inode is orphaned, `ORPHAN_DIR_SYSTEM_INODE` is acquired later in the function. Finally, in `ocfs2_wipe_inode()`, `ORPHAN_DIR_SYSTEM_INODE` is grabbed and then `INODE_ALLOC_SYSTEM_INODE` is needed to free the inode. The critical point is in `ocfs2_dio_end_io_write()`, where `EXTENT_ALLOC_SYSTEM_INODE` is held while potentially acquiring `ORPHAN_DIR_SYSTEM_INODE`.

The solution is to break this cycle within `ocfs2_dio_end_io_write()`. We can free the `data_ac` and `meta_ac` allocation contexts, which release `EXTENT_ALLOC_SYSTEM_INODE`, *before* calling `ocfs2_del_inode_from_orphan()`. These contexts aren't needed after the transaction is complete, so it's a safe and effective way to release the lock early. Doing so ensures `EXTENT_ALLOC_SYSTEM_INODE` is dropped *before* `ORPHAN_DIR_SYSTEM_INODE` is acquired, severing the dependency loop. The text has been checked against the prompt's constraints.



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)