ID Workflow Result Correct Bug Created Started Finished Revision
5f1576f9 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ WARNING in ntfs_evict_inode 2026/09/18 00:02 2026/09/18 00:02 2026/09/18 01:07 8d7d05f1
Agent: prod-syz-agent-3
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle WARNING in ntfs_evict_inode
CrashLogID 5625965134217216
CrashReportID 5268280526241792
KernelCommit 238650ef6c7c7cca08e032527329424c9fbd70e5
KernelConfig
Show (273947 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 syzkaller Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77)"
CONFIG_GCC_VERSION=0
CONFIG_CC_IS_CLANG=y
CONFIG_CLANG_VERSION=220108
CONFIG_AS_IS_LLVM=y
CONFIG_AS_VERSION=220108
CONFIG_LD_VERSION=0
CONFIG_LD_IS_LLD=y
CONFIG_LLD_VERSION=220108
CONFIG_RUSTC_VERSION=109600
CONFIG_RUST_IS_AVAILABLE=y
CONFIG_RUSTC_LLVM_VERSION=220102
CONFIG_RUSTC_LLVM_MAJOR_VERSION=22
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_COUNTED_BY_PTR=y
CONFIG_CC_HAS_ALLOC_TOKEN=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_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=y
# CONFIG_PREEMPT_RT_NEEDS_BH_LOCK is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_HAS_SEPARATE_PREEMPT_RESCHED_BITS=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
# CONFIG_TICK_CPU_ACCOUNTING is not set
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_SCHED_AVG_IRQ=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED is not set
# end of CPU/Task time and stats accounting

CONFIG_CPU_ISOLATION=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_TREE_SRCU=y
CONFIG_TASKS_RCU_GENERIC=y
CONFIG_NEED_TASKS_RCU=y
CONFIG_TASKS_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# CONFIG_RCU_BOOST is not set
# 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
# end of Scheduler features

CONFIG_ARCH_HAS_PTE_PROTNONE=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_CC_HAS_INT128=y
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough"
CONFIG_CC_MS_EXTENSIONS="-fms-extensions"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_SCHED_CACHE=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
CONFIG_MEMCG=y
CONFIG_MEMCG_V1=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_GROUP_SCHED_BANDWIDTH=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_SCHED_MM_CID=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
# CONFIG_CGROUP_DMEM is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
# CONFIG_CPUSETS_V1 is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_BPF is not set
CONFIG_CGROUP_MISC=y
CONFIG_CGROUP_DEBUG=y
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_TIME_NS=y
CONFIG_TIME_NS_VDSO=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not set
CONFIG_ARCH_SUPPORTS_CMDLINE_FROM_BOOTCONFIG=y
CONFIG_CMDLINE_LOG_WRAP_IDEAL_LEN=1021
CONFIG_INITRAMFS_PRESERVE_MTIME=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_LD_ORPHAN_WARN=y
CONFIG_LD_ORPHAN_WARN_LEVEL="warn"
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_SYSFS_SYSCALL=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_FHANDLE=y
CONFIG_POSIX_TIMERS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_PCSPKR_PLATFORM=y
# CONFIG_BASE_SMALL is not set
CONFIG_FUTEX=y
CONFIG_FUTEX_PI=y
CONFIG_FUTEX_PRIVATE_HASH=y
CONFIG_FUTEX_MPOL=y
CONFIG_HAVE_FUTEX_ROBUST_UNLOCK=y
CONFIG_FUTEX_ROBUST_UNLOCK=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
CONFIG_IO_URING_MOCK_FILE=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
CONFIG_RSEQ_SLICE_EXTENSION=y
# CONFIG_RSEQ_STATS is not set
# CONFIG_RSEQ_DEBUG_DEFAULT_ENABLE is not set
CONFIG_CACHESTAT_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_GUEST_PERF_EVENTS=y
CONFIG_PERF_GUEST_MEDIATED_PMU=y

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

CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
# CONFIG_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_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_AMD=y
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not set
# CONFIG_CPU_SUP_ZHAOXIN is not set
CONFIG_BROADCAST_TLB_FLUSH=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_DMI=y
# CONFIG_GART_IOMMU is not set
CONFIG_BOOT_VESA_SUPPORT=y
# CONFIG_MAXSMP is not set
CONFIG_NR_CPUS_RANGE_BEGIN=2
CONFIG_NR_CPUS_RANGE_END=512
CONFIG_NR_CPUS_DEFAULT=64
CONFIG_NR_CPUS=8
CONFIG_SCHED_MC_PRIO=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_ACPI_MADT_WAKEUP=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCELOG_LEGACY is not set
CONFIG_X86_MCE_INTEL=y
CONFIG_X86_MCE_AMD=y
CONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not set

#
# Performance monitoring
#
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=y
CONFIG_PERF_EVENTS_INTEL_CSTATE=y
# CONFIG_PERF_EVENTS_AMD_POWER is not set
CONFIG_PERF_EVENTS_AMD_UNCORE=y
# CONFIG_PERF_EVENTS_AMD_BRS is not set
# end of Performance monitoring

CONFIG_X86_16BIT=y
CONFIG_X86_ESPFIX64=y
CONFIG_X86_VSYSCALL_EMULATION=y
CONFIG_X86_IOPL_IOPERM=y
CONFIG_MICROCODE=y
# CONFIG_MICROCODE_LATE_LOADING is not set
# CONFIG_MICROCODE_DBG is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_NODES_SHIFT=6
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
# CONFIG_ARCH_MEMORY_PROBE is not set
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_PMEM_LEGACY is not set
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set
CONFIG_X86_PAT=y
CONFIG_X86_UMIP=y
CONFIG_CC_HAS_IBT=y
CONFIG_X86_CET=y
CONFIG_X86_KERNEL_IBT=y
CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
CONFIG_ARCH_PKEY_BITS=4
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
CONFIG_X86_INTEL_TSX_MODE_ON=y
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
CONFIG_X86_SGX=y
CONFIG_X86_USER_SHADOW_STACK=y
# CONFIG_INTEL_TDX_HOST is not set
# CONFIG_EFI is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_ARCH_SUPPORTS_KEXEC=y
CONFIG_ARCH_SUPPORTS_KEXEC_FILE=y
CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG_FORCE=y
CONFIG_ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_JUMP=y
CONFIG_ARCH_SUPPORTS_KEXEC_HANDOVER=y
CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y
CONFIG_ARCH_DEFAULT_CRASH_DUMP=y
CONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG=y
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION=y
CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set
CONFIG_PHYSICAL_ALIGN=0x200000
CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not set
CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="earlyprintk=serial net.ifnames=0 sysctl.kernel.hung_task_all_cpu_backtrace=1 ima_policy=tcb nf-conntrack-ftp.ports=20000 nf-conntrack-tftp.ports=20000 nf-conntrack-sip.ports=20000 nf-conntrack-irc.ports=20000 nf-conntrack-sane.ports=20000 binder.debug_mask=0 rcupdate.rcu_expedited=1 rcupdate.rcu_cpu_stall_cputime=1 no_hash_pointers page_owner=on sysctl.vm.nr_hugepages=4 sysctl.vm.nr_overcommit_hugepages=4 secretmem.enable=1 sysctl.max_rcu_stall_to_panic=1 msr.allow_writes=off coredump_filter=0xffff root=/dev/sda console=ttyS0 vsyscall=native numa=fake=2 kvm-intel.nested=1 spec_store_bypass_disable=prctl nopcid vivid.n_devs=64 vivid.multiplanar=1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 netrom.nr_ndevs=32 rose.rose_ndevs=32 smp.csd_lock_timeout=100000 watchdog_thresh=55 workqueue.watchdog_thresh=140 sysctl.net.core.netdev_unregister_timeout_secs=140 dummy_hcd.num=32 max_loop=32 nbds_max=32 comedi.comedi_num_legacy_minors=4 panic_on_warn=1"
# CONFIG_CMDLINE_OVERRIDE is not set
CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
CONFIG_HAVE_LIVEPATCH=y
CONFIG_HAVE_KLP_BUILD=y
CONFIG_X86_BUS_LOCK_DETECT=y
# end of Processor type and features

CONFIG_CC_HAS_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_CPU_MITIGATIONS=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_MITIGATION_RETPOLINE=y
CONFIG_MITIGATION_RETHUNK=y
CONFIG_MITIGATION_UNRET_ENTRY=y
CONFIG_MITIGATION_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not set
CONFIG_MITIGATION_IBPB_ENTRY=y
CONFIG_MITIGATION_IBRS_ENTRY=y
CONFIG_MITIGATION_SRSO=y
# CONFIG_MITIGATION_SLS is not set
CONFIG_MITIGATION_GDS=y
CONFIG_MITIGATION_RFDS=y
CONFIG_MITIGATION_SPECTRE_BHI=y
CONFIG_MITIGATION_MDS=y
CONFIG_MITIGATION_TAA=y
CONFIG_MITIGATION_MMIO_STALE_DATA=y
CONFIG_MITIGATION_L1TF=y
CONFIG_MITIGATION_RETBLEED=y
CONFIG_MITIGATION_SPECTRE_V1=y
CONFIG_MITIGATION_SPECTRE_V2=y
CONFIG_MITIGATION_SRBDS=y
CONFIG_MITIGATION_SSB=y
CONFIG_MITIGATION_ITS=y
CONFIG_MITIGATION_TSA=y
# CONFIG_MITIGATION_VMSCAPE is not set
CONFIG_ARCH_HAS_ADD_PAGES=y

#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_HIBERNATION_SNAPSHOT_DEV=y
CONFIG_HIBERNATION_COMP_LZO=y
# CONFIG_HIBERNATION_COMP_LZ4 is not set
CONFIG_HIBERNATION_DEF_COMP="lzo"
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
# CONFIG_PM_QOS_CPU_SYSTEM_WAKEUP is not set
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not set
CONFIG_ARCH_SUPPORTS_ACPI=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
CONFIG_ACPI_THERMAL_LIB=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not set
CONFIG_ACPI_LPIT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
CONFIG_ACPI_EC=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_TAD is not set
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_PLATFORM_PROFILE=y
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_DEBUG=y
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_HOTPLUG_MEMORY is not set
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
CONFIG_ACPI_NHLT=y
CONFIG_ACPI_NFIT=y
# CONFIG_NFIT_SECURITY_DEBUG is not set
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not set
# CONFIG_ACPI_DPTF is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_PFRUT is not set
CONFIG_ACPI_PCC=y
# CONFIG_ACPI_FFH is not set
CONFIG_ACPI_MRRM=y
CONFIG_PMIC_OPREGION=y
CONFIG_BXT_WC_PMIC_OPREGION=y
# CONFIG_CHT_WC_PMIC_OPREGION is not set
CONFIG_X86_PM_TIMER=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
# CONFIG_CPU_FREQ_STAT is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

#
# CPU frequency scaling drivers
#
# CONFIG_CPUFREQ_DT is not set
# CONFIG_CPUFREQ_DT_PLATDEV is not set
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
# CONFIG_X86_AMD_PSTATE_UT is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_CPB=y
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set

#
# shared options
#
CONFIG_CPUFREQ_ARCH_CUR_FREQ=y
# end of CPU Frequency scaling

#
# CPU Idle
#
CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
CONFIG_CPU_IDLE_GOV_HALTPOLL=y
CONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle

CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options

#
# Bus options (PCI etc.)
#
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_MMCONF_FAM10H=y
CONFIG_ISA_BUS=y
CONFIG_ISA_DMA_API=y
CONFIG_AMD_NB=y
CONFIG_AMD_NODE=y
# end of Bus options (PCI etc.)

#
# Binary Emulations
#
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_EMULATION_DEFAULT_DISABLED is not set
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations

CONFIG_KVM_COMMON=y
CONFIG_HAVE_KVM_PFNCACHE=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_DIRTY_RING=y
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_READONLY_MEM=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_GENERIC_PRE_FAULT_MEMORY=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_VIRT_XFER_TO_GUEST_WORK=y
CONFIG_HAVE_KVM_PM_NOTIFIER=y
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
CONFIG_KVM_ELIDE_TLB_FLUSH_IF_YOUNG=y
CONFIG_KVM_MMU_LOCKLESS_AGING=y
CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES=y
CONFIG_KVM_GUEST_MEMFD=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM_X86=y
CONFIG_KVM=y
CONFIG_KVM_SW_PROTECTED_VM=y
CONFIG_KVM_INTEL=y
# CONFIG_KVM_INTEL_PROVE_VE is not set
CONFIG_X86_SGX_KVM=y
CONFIG_KVM_AMD=y
CONFIG_KVM_IOAPIC=y
CONFIG_KVM_SMM=y
CONFIG_KVM_HYPERV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_PROVE_MMU=y
CONFIG_KVM_MAX_NR_VCPUS=1024
CONFIG_X86_REQUIRED_FEATURE_ALWAYS=y
CONFIG_X86_REQUIRED_FEATURE_NOPL=y
CONFIG_X86_REQUIRED_FEATURE_CX8=y
CONFIG_X86_REQUIRED_FEATURE_CMOV=y
CONFIG_X86_REQUIRED_FEATURE_CPUID=y
CONFIG_X86_REQUIRED_FEATURE_FPU=y
CONFIG_X86_REQUIRED_FEATURE_PAE=y
CONFIG_X86_REQUIRED_FEATURE_PSE=y
CONFIG_X86_REQUIRED_FEATURE_PGE=y
CONFIG_X86_REQUIRED_FEATURE_MSR=y
CONFIG_X86_REQUIRED_FEATURE_FXSR=y
CONFIG_X86_REQUIRED_FEATURE_XMM=y
CONFIG_X86_REQUIRED_FEATURE_XMM2=y
CONFIG_X86_REQUIRED_FEATURE_LM=y
CONFIG_X86_DISABLED_FEATURE_VME=y
CONFIG_X86_DISABLED_FEATURE_K6_MTRR=y
CONFIG_X86_DISABLED_FEATURE_CYRIX_ARR=y
CONFIG_X86_DISABLED_FEATURE_CENTAUR_MCR=y
CONFIG_X86_DISABLED_FEATURE_LAM=y
CONFIG_X86_DISABLED_FEATURE_XENPV=y
CONFIG_X86_DISABLED_FEATURE_TDX_GUEST=y
CONFIG_X86_DISABLED_FEATURE_SEV_SNP=y
CONFIG_AS_WRUSS=y
CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y

#
# General architecture-dependent options
#
CONFIG_HOTPLUG_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_CLUSTER=y
CONFIG_ARCH_SUPPORTS_SCHED_MC=y
CONFIG_SCHED_SMT=y
CONFIG_SCHED_CLUSTER=y
CONFIG_SCHED_MC=y
CONFIG_HOTPLUG_CORE_SYNC=y
CONFIG_HOTPLUG_CORE_SYNC_DEAD=y
CONFIG_HOTPLUG_CORE_SYNC_FULL=y
CONFIG_HOTPLUG_SPLIT_STARTUP=y
CONFIG_HOTPLUG_PARALLEL=y
CONFIG_GENERIC_IRQ_ENTRY=y
CONFIG_GENERIC_SYSCALL=y
CONFIG_GENERIC_ENTRY=y
CONFIG_ARCH_SUPPORTS_SYSCALL_USER_DISPATCH=y
CONFIG_SYSCALL_USER_DISPATCH=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y
CONFIG_HAVE_NMI=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
CONFIG_ARCH_HAS_DELAY_TIMER=y
CONFIG_ARCH_HAS_CPU_PASID=y
CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_ARCH_WANTS_NO_INSTR=y
CONFIG_ARCH_MEMORY_ORDER_TSO=y
CONFIG_HAVE_ASM_MODVERSIONS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_RUST=y
CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y
CONFIG_UNWIND_USER=y
CONFIG_HAVE_UNWIND_USER_FP=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
CONFIG_MMU_GATHER_TABLE_FREE=y
CONFIG_MMU_GATHER_RCU_TABLE_FREE=y
CONFIG_MMU_GATHER_MERGE_VMAS=y
CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM=y
CONFIG_MMU_LAZY_TLB_REFCOUNT=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_HAVE_EXTRA_ELF_NOTES=y
CONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_SECCOMP=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP=y
CONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set
CONFIG_HAVE_ARCH_KSTACK_ERASE=y
CONFIG_HAVE_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR_STRONG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y
CONFIG_HAS_LTO_CLANG=y
CONFIG_LTO_NONE=y
# CONFIG_LTO_CLANG_FULL is not set
# CONFIG_LTO_CLANG_THIN is not set
# CONFIG_LTO_CLANG_THIN_DIST is not set
CONFIG_AUTOFDO_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_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_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
# CONFIG_BLK_ERROR_INJECTION is not set

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

CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PADATA=y
CONFIG_ASN1=y
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
# CONFIG_QUEUED_SPINLOCKS_TRACE_CONTENDED_RELEASE is not set
CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=y
CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=y
CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
CONFIG_FREEZER=y

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

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

#
# Zsmalloc allocator options
#

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

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

# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not set
CONFIG_SPARSEMEM=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_SPARSEMEM_VMEMMAP_PREINIT=y
CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=y
CONFIG_ARCH_WANT_HUGETLB_VMEMMAP_PREINIT=y
CONFIG_HAVE_GUP_FAST=y
CONFIG_NUMA_KEEP_MEMINFO=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE is not set
CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL is not set
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE is not set
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_MHP_MEMMAP_ON_MEMORY=y
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
CONFIG_SPLIT_PTE_PTLOCKS=y
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_SPLIT_PMD_PTLOCKS=y
CONFIG_BALLOON=y
# CONFIG_BALLOON_MIGRATION is not set
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=0
CONFIG_PAGE_REPORTING=y
CONFIG_NUMA_MIGRATION=y
CONFIG_MIGRATION=y
CONFIG_DEVICE_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_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_PAGE_MAPCOUNT=y
CONFIG_PGTABLE_HAS_HUGE_LEAVES=y
CONFIG_HAVE_GIGANTIC_FOLIOS=y
CONFIG_ASYNC_KERNEL_PGTABLE_FREE=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_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_ARCH_USES_PG_ARCH_2=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PERCPU_STATS=y
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_KMAP_LOCAL=y
CONFIG_MEMFD_CREATE=y
CONFIG_SECRETMEM=y
CONFIG_ANON_VMA_NAME=y
CONFIG_HAVE_ARCH_USERFAULTFD_WP=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_USERFAULTFD_RWP=y
CONFIG_USERFAULTFD=y
# CONFIG_PTE_MARKER_UFFD_WP is not set
# CONFIG_LRU_GEN is not set
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
CONFIG_PER_VMA_LOCK=y
CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
CONFIG_NUMA_EMU=y
CONFIG_ARCH_HAS_USER_SHADOW_STACK=y
CONFIG_PT_RECLAIM=y

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

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

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

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

#
# 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 is not set
CONFIG_NETFILTER_XT_TARGET_DSCP=y
# CONFIG_NETFILTER_XT_TARGET_HL is not set
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 is not set
CONFIG_NETFILTER_XT_TARGET_NFLOG=y
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=y
CONFIG_NETFILTER_XT_TARGET_RATEEST=y
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
CONFIG_NETFILTER_XT_TARGET_MASQUERADE=y
CONFIG_NETFILTER_XT_TARGET_TEE=y
CONFIG_NETFILTER_XT_TARGET_TPROXY=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_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_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_SYNPROXY=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_NFT_COMPAT_ARP=y
CONFIG_IP_NF_ARP_MANGLE=y
# end of IP: Netfilter Configuration

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

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

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

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

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

#
# Bluetooth device drivers
#
CONFIG_BT_INTEL=y
CONFIG_BT_BCM=y
CONFIG_BT_RTL=y
CONFIG_BT_QCA=y
CONFIG_BT_MTK=y
CONFIG_BT_HCIBTUSB=y
CONFIG_BT_HCIBTUSB_AUTOSUSPEND=y
CONFIG_BT_HCIBTUSB_POLL_SYNC=y
CONFIG_BT_HCIBTUSB_BCM=y
CONFIG_BT_HCIBTUSB_MTK=y
CONFIG_BT_HCIBTUSB_RTL=y
# CONFIG_BT_HCIBTSDIO is not set
CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_SERDEV=y
CONFIG_BT_HCIUART_H4=y
# CONFIG_BT_HCIUART_NOKIA is not set
CONFIG_BT_HCIUART_BCSP=y
# CONFIG_BT_HCIUART_ATH3K is not set
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_BCM is not set
# CONFIG_BT_HCIUART_RTL is not set
CONFIG_BT_HCIUART_QCA=y
CONFIG_BT_HCIUART_AG6XX=y
CONFIG_BT_HCIUART_MRVL=y
# CONFIG_BT_HCIUART_AML is not set
CONFIG_BT_HCIBCM203X=y
# CONFIG_BT_HCIBCM4377 is not set
CONFIG_BT_HCIBPA10X=y
CONFIG_BT_HCIBFUSB=y
CONFIG_BT_HCIVHCI=y
CONFIG_BT_MRVL=y
CONFIG_BT_MRVL_SDIO=y
CONFIG_BT_ATH3K=y
CONFIG_BT_MTKSDIO=y
CONFIG_BT_MTKUART=y
# CONFIG_BT_VIRTIO is not set
# CONFIG_BT_NXPUART is not set
# CONFIG_BT_INTEL_PCIE is not set
# end of Bluetooth device drivers

CONFIG_AF_RXRPC=y
CONFIG_AF_RXRPC_IPV6=y
# CONFIG_AF_RXRPC_INJECT_LOSS is not set
# CONFIG_AF_RXRPC_INJECT_RX_DELAY is not set
# CONFIG_AF_RXRPC_DEBUG is not set
CONFIG_RXKAD=y
# CONFIG_RXGK is not set
# CONFIG_RXPERF is not set
CONFIG_AF_KCM=y
CONFIG_STREAM_PARSER=y
CONFIG_MCTP=y
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_DEBUGFS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
CONFIG_MAC80211_MESH=y
CONFIG_MAC80211_LEDS=y
CONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not set
CONFIG_NET_9P=y
CONFIG_NET_9P_FD=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_USBG is not set
CONFIG_NET_9P_RDMA=y
# CONFIG_NET_9P_DEBUG is not set
CONFIG_CEPH_LIB=y
# CONFIG_CEPH_LIB_PRETTYDEBUG is not set
CONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
CONFIG_NFC=y
CONFIG_NFC_DIGITAL=y
CONFIG_NFC_NCI=y
# CONFIG_NFC_NCI_SPI is not set
CONFIG_NFC_NCI_UART=y
CONFIG_NFC_HCI=y
CONFIG_NFC_SHDLC=y

#
# Near Field Communication (NFC) devices
#
# CONFIG_NFC_TRF7970A is not set
# CONFIG_NFC_MEI_PHY is not set
CONFIG_NFC_SIM=y
CONFIG_NFC_PORT100=y
CONFIG_NFC_VIRTUAL_NCI=y
CONFIG_NFC_FDP=y
# CONFIG_NFC_FDP_I2C is not set
# CONFIG_NFC_PN544_I2C is not set
CONFIG_NFC_PN533=y
CONFIG_NFC_PN533_USB=y
# CONFIG_NFC_PN533_I2C is not set
# CONFIG_NFC_PN532_UART is not set
# CONFIG_NFC_MICROREAD_I2C is not set
CONFIG_NFC_MRVL=y
CONFIG_NFC_MRVL_USB=y
# CONFIG_NFC_MRVL_UART is not set
# CONFIG_NFC_MRVL_I2C is not set
# CONFIG_NFC_ST21NFCA_I2C is not set
# CONFIG_NFC_ST_NCI_I2C is not set
# CONFIG_NFC_ST_NCI_SPI is not set
# CONFIG_NFC_NXP_NCI is not set
# CONFIG_NFC_S3FWRN5_I2C is not set
# CONFIG_NFC_S3FWRN82_UART is not set
# CONFIG_NFC_ST95HF is not set
# end of Near Field Communication (NFC) devices

CONFIG_PSAMPLE=y
CONFIG_NET_IFE=y
CONFIG_LWTUNNEL=y
CONFIG_LWTUNNEL_BPF=y
CONFIG_DST_CACHE=y
CONFIG_GRO_CELLS=y
CONFIG_SOCK_VALIDATE_XMIT=y
CONFIG_NET_SELFTESTS=y
CONFIG_NET_SOCK_MSG=y
CONFIG_NET_DEVLINK=y
CONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not set
CONFIG_FAILOVER=y
CONFIG_ETHTOOL_NETLINK=y

#
# Device Drivers
#
CONFIG_HAVE_PCI=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCIEPORTBUS=y
CONFIG_HOTPLUG_PCI_PCIE=y
CONFIG_PCIEAER=y
# CONFIG_PCIEAER_INJECT is not set
# CONFIG_PCIE_ECRC is not set
CONFIG_PCIEASPM=y
CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set
CONFIG_PCIE_PME=y
# CONFIG_PCIE_DPC is not set
# CONFIG_PCIE_PTM is not set
CONFIG_PCI_MSI=y
CONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_PF_STUB is not set
CONFIG_PCI_ATS=y
# CONFIG_PCI_TSM is not set
# CONFIG_PCI_DOE is not set
CONFIG_PCI_ECAM=y
CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_IOV=y
# CONFIG_PCI_NPEM is not set
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
# CONFIG_PCIE_TPH is not set
# CONFIG_PCI_P2PDMA is not set
CONFIG_PCI_LABEL=y
# CONFIG_PCI_DYNAMIC_OF_NODES is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_OCTEONEP is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# PCI controller drivers
#
CONFIG_PCI_HOST_COMMON=y
# CONFIG_PCI_FTPCI100 is not set
CONFIG_PCI_HOST_GENERIC=y
# CONFIG_VMD is not set
# CONFIG_PCIE_XILINX is not set

#
# Cadence-based PCIe controllers
#
# CONFIG_PCIE_CADENCE_PLAT_HOST is not set
# CONFIG_PCIE_CADENCE_PLAT_EP is not set
# end of Cadence-based PCIe controllers

#
# DesignWare-based PCIe controllers
#
# CONFIG_PCI_MESON is not set
# CONFIG_PCIE_INTEL_GW is not set
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCIE_DW_PLAT_EP is not set
# end of DesignWare-based PCIe controllers

#
# Mobiveil-based PCIe controllers
#
# end of Mobiveil-based PCIe controllers

#
# PLDA-based PCIe controllers
#
# CONFIG_PCIE_MICROCHIP_HOST is not set
# end of PLDA-based PCIe controllers
# end of PCI controller drivers

#
# PCI Endpoint
#
CONFIG_PCI_ENDPOINT=y
# CONFIG_PCI_ENDPOINT_CONFIGFS is not set
# CONFIG_PCI_ENDPOINT_MSI_DOORBELL is not set
# CONFIG_PCI_EPF_TEST is not set
# CONFIG_PCI_EPF_NTB is not set
# end of PCI Endpoint

#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers

# CONFIG_PCI_PWRCTRL_GENERIC is not set
# CONFIG_PCI_PWRCTRL_TC9563 is not set
# CONFIG_CXL_BUS is not set
CONFIG_PCCARD=y
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=y
CONFIG_YENTA_O2=y
CONFIG_YENTA_RICOH=y
CONFIG_YENTA_TI=y
CONFIG_YENTA_ENE_TUNE=y
CONFIG_YENTA_TOSHIBA=y
# CONFIG_PD6729 is not set
CONFIG_PCCARD_NONSTATIC=y
# CONFIG_RAPIDIO is not set
# CONFIG_PC104 is not set

#
# Generic Driver Options
#
CONFIG_AUXILIARY_BUS=y
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_DEVTMPFS_SAFE is not set
CONFIG_DRIVER_DEFERRED_PROBE_TIMEOUT=10
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y

#
# Firmware loader
#
CONFIG_FW_LOADER=y
# CONFIG_FW_LOADER_DEBUG is not set
CONFIG_FW_LOADER_PAGED_BUF=y
CONFIG_FW_LOADER_SYSFS=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
CONFIG_FW_LOADER_COMPRESS=y
# CONFIG_FW_LOADER_COMPRESS_XZ is not set
# CONFIG_FW_LOADER_COMPRESS_ZSTD is not set
CONFIG_FW_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader

CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
CONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_DEVICES=y
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options

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

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Firmware Drivers
#

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

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

#
# Qualcomm firmware drivers
#
# CONFIG_QCOM_PAS is not set
# CONFIG_QCOM_PAS_TEE is not set
# CONFIG_QCOM_SCM is not set
# end of Qualcomm firmware drivers

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# EEPROM support
#
# CONFIG_EEPROM_MAX6875 is not set
CONFIG_EEPROM_93CX6=y
# CONFIG_EEPROM_IDT_89HPESX is not set
# end of EEPROM support

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# CONFIG_CAN_DEBUG_DEVICES is not set

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

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

#
# MDIO Multiplexers
#
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set
# end of MDIO Multiplexers
# end of MDIO controller drivers

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_SMBUS=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

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

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

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

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

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

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

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

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

#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Watchdog Pretimeout Governors
#

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

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

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

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

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

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

CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_SUPPORT_FILTER=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set

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

CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_DVB_CORE=y

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

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

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

#
# Media drivers
#

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

#
# Media drivers
#
CONFIG_MEDIA_USB_SUPPORT=y

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

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

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

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

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

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

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

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

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

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

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

# CONFIG_VIDEO_CAMERA_LENS is not set

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_MEDIA_TUNER=y

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

#
# Customise DVB Frontends
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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_TTM=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_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_AUO_A030JTN01 is not set
# CONFIG_DRM_PANEL_LVDS is not set
# CONFIG_DRM_PANEL_ILITEK_IL9322 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI is not set
# CONFIG_DRM_PANEL_INNOLUX_EJ030NA is not set
# CONFIG_DRM_PANEL_LG_LB035Q02 is not set
# CONFIG_DRM_PANEL_LG_LG4573 is not set
# CONFIG_DRM_PANEL_NEC_NL8048HL11 is not set
# CONFIG_DRM_PANEL_NEWVISION_NV3052C 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_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_S6D27A1 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E63M0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8FC0 is not set
# CONFIG_DRM_PANEL_SEIKO_43WVF1G is not set
# CONFIG_DRM_PANEL_SHARP_LS037V7DW01 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7701 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
# CONFIG_DRM_PANEL_SONY_ACX565AKM is not set
CONFIG_DRM_PANEL_EDP=y
# CONFIG_DRM_PANEL_SIMPLE 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_WIDECHIPS_WS2401 is not set
# end of Display Panels

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

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

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

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

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

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

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

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

# CONFIG_DRM_ACCEL is not set
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_UMP=y
CONFIG_SND_UMP_LEGACY_RAWMIDI=y
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_HRTIMER=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_CTL_FAST_LOOKUP=y
CONFIG_SND_DEBUG=y
# CONFIG_SND_DEBUG_VERBOSE is not set
CONFIG_SND_PCM_XRUN_DEBUG=y
# CONFIG_SND_CTL_INPUT_VALIDATION is not set
# CONFIG_SND_CTL_DEBUG is not set
# CONFIG_SND_JACK_INJECTION_DEBUG is not set
# CONFIG_SND_UTIMER is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_CTL_LED=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=y
CONFIG_SND_SEQ_MIDI=y
CONFIG_SND_SEQ_VIRMIDI=y
# CONFIG_SND_SEQ_UMP is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_PCSP is not set
CONFIG_SND_DUMMY=y
CONFIG_SND_ALOOP=y
# CONFIG_SND_PCMTEST is not set
CONFIG_SND_VIRMIDI=y
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_MTS64 is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_SERIAL_GENERIC is not set
# CONFIG_SND_MPU401 is not set
# CONFIG_SND_PORTMAN2X4 is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SE6X is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set

#
# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_CTL_DEV_ID is not set
CONFIG_SND_HDA_PREALLOC_SIZE=0
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_ACPI is not set
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
# CONFIG_SND_HDA_CODEC_SENARYTECH is not set
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
# CONFIG_SND_HDA_CODEC_CA0132_DSP is not set
CONFIG_SND_HDA_CODEC_CMEDIA=y
# CONFIG_SND_HDA_CODEC_CM9825 is not set
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_CODEC_REALTEK=y
# CONFIG_SND_HDA_CODEC_ALC260 is not set
# CONFIG_SND_HDA_CODEC_ALC262 is not set
# CONFIG_SND_HDA_CODEC_ALC268 is not set
# CONFIG_SND_HDA_CODEC_ALC269 is not set
# CONFIG_SND_HDA_CODEC_ALC662 is not set
# CONFIG_SND_HDA_CODEC_ALC680 is not set
# CONFIG_SND_HDA_CODEC_ALC861 is not set
# CONFIG_SND_HDA_CODEC_ALC861VD is not set
# CONFIG_SND_HDA_CODEC_ALC880 is not set
# CONFIG_SND_HDA_CODEC_ALC882 is not set
CONFIG_SND_HDA_CODEC_CIRRUS=y
# CONFIG_SND_HDA_CODEC_CS420X is not set
# CONFIG_SND_HDA_CODEC_CS421X is not set
# CONFIG_SND_HDA_CODEC_CS8409 is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_HDMI_GENERIC is not set
# CONFIG_SND_HDA_CODEC_HDMI_SIMPLE is not set
# CONFIG_SND_HDA_CODEC_HDMI_INTEL is not set
# CONFIG_SND_HDA_CODEC_HDMI_ATI is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA_MCP is not set
# CONFIG_SND_HDA_CODEC_HDMI_TEGRA is not set
# CONFIG_SND_HDA_SCODEC_AW88399_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_SPI is not set
CONFIG_SND_HDA_CORE=y
CONFIG_SND_INTEL_NHLT=y
CONFIG_SND_INTEL_DSP_CONFIG=y
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=y
# end of HD-Audio

# CONFIG_SND_SPI is not set
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_AUDIO_MIDI_V2=y
CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER=y
CONFIG_SND_USB_UA101=y
CONFIG_SND_USB_USX2Y=y
CONFIG_SND_USB_CAIAQ=y
CONFIG_SND_USB_CAIAQ_INPUT=y
CONFIG_SND_USB_US122L=y
# CONFIG_SND_USB_US144MKII is not set
CONFIG_SND_USB_6FIRE=y
CONFIG_SND_USB_HIFACE=y
CONFIG_SND_BCD2000=y
CONFIG_SND_USB_LINE6=y
CONFIG_SND_USB_POD=y
CONFIG_SND_USB_PODHD=y
CONFIG_SND_USB_TONEPORT=y
CONFIG_SND_USB_VARIAX=y
# CONFIG_SND_FIREWIRE is not set
CONFIG_SND_PCMCIA=y
# CONFIG_SND_VXPOCKET is not set
# CONFIG_SND_PDAUDIOCF is not set
CONFIG_SND_SOC=y
# CONFIG_SND_SOC_USB is not set

#
# Analog Devices
#
# CONFIG_SND_SOC_ADI_AXI_I2S is not set
# CONFIG_SND_SOC_ADI_AXI_SPDIF is not set
# end of Analog Devices

#
# AMD
#
# CONFIG_SND_SOC_AMD_ACP is not set
# CONFIG_SND_SOC_AMD_ACP3x is not set
# CONFIG_SND_SOC_AMD_RENOIR is not set
# CONFIG_SND_SOC_AMD_ACP5x is not set
# CONFIG_SND_SOC_AMD_ACP6x is not set
# CONFIG_SND_AMD_ACP_CONFIG is not set
# CONFIG_SND_SOC_AMD_ACP_COMMON is not set
# end of AMD

#
# Apple
#
# end of Apple

#
# Atmel
#
# CONFIG_SND_SOC_MIKROE_PROTO is not set
# end of Atmel

#
# Au1x
#
# end of Au1x

#
# Broadcom
#
# CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
# end of Broadcom

#
# Cirrus Logic
#
# end of Cirrus Logic

#
# DesignWare
#
# CONFIG_SND_DESIGNWARE_I2S is not set
# end of DesignWare

#
# Freescale
#

#
# Common SoC Audio options for Freescale CPUs:
#
# CONFIG_SND_SOC_FSL_ASRC is not set
# CONFIG_SND_SOC_FSL_SAI is not set
# CONFIG_SND_SOC_FSL_AUDMIX is not set
# CONFIG_SND_SOC_FSL_SSI is not set
# CONFIG_SND_SOC_FSL_SPDIF is not set
# CONFIG_SND_SOC_FSL_ESAI is not set
# CONFIG_SND_SOC_FSL_MICFIL is not set
# CONFIG_SND_SOC_FSL_XCVR is not set
# CONFIG_SND_SOC_IMX_AUDMUX is not set
# end of Freescale

#
# Google
#
# CONFIG_SND_SOC_CHV3_I2S is not set
# end of Google

#
# Hisilicon
#
# CONFIG_SND_I2S_HI6210_I2S is not set
# end of Hisilicon

#
# JZ4740
#
# end of JZ4740

#
# Kirkwood
#
# end of Kirkwood

#
# Loongson
#
# end of Loongson

#
# Intel
#
# CONFIG_SND_SOC_INTEL_SST_TOPLEVEL is not set
# CONFIG_SND_SOC_INTEL_AVS is not set
# end of Intel

#
# Mediatek
#
# CONFIG_SND_SOC_MTK_BTCVSD is not set
# end of Mediatek

#
# PXA
#
# end of PXA

#
# SoundWire (SDCA)
#
# CONFIG_SND_SOC_SDCA is not set
CONFIG_SND_SOC_SDCA_OPTIONAL=y
# end of SoundWire (SDCA)

#
# ST SPEAr
#
# end of ST SPEAr

#
# Spreadtrum
#
# end of Spreadtrum

#
# STMicroelectronics STM32
#
# end of STMicroelectronics STM32

#
# Tegra
#
# end of Tegra

#
# Xilinx
#
# CONFIG_SND_SOC_XILINX_I2S is not set
# CONFIG_SND_SOC_XILINX_AUDIO_FORMATTER is not set
# CONFIG_SND_SOC_XILINX_SPDIF is not set
# end of Xilinx

#
# Xtensa
#
# CONFIG_SND_SOC_XTFPGA_I2S is not set
# end of Xtensa

# CONFIG_SND_SOC_SOF_TOPLEVEL is not set
CONFIG_SND_SOC_I2C_AND_SPI=y

#
# CODEC drivers
#
# CONFIG_SND_SOC_AC97_CODEC is not set
# CONFIG_SND_SOC_ADAU1372_I2C is not set
# CONFIG_SND_SOC_ADAU1372_SPI is not set
# CONFIG_SND_SOC_ADAU1373 is not set
# CONFIG_SND_SOC_ADAU1701 is not set
# CONFIG_SND_SOC_ADAU1761_I2C is not set
# CONFIG_SND_SOC_ADAU1761_SPI is not set
# CONFIG_SND_SOC_ADAU7002 is not set
# CONFIG_SND_SOC_ADAU7118_HW is not set
# CONFIG_SND_SOC_ADAU7118_I2C is not set
# CONFIG_SND_SOC_AK4104 is not set
# CONFIG_SND_SOC_AK4118 is not set
# CONFIG_SND_SOC_AK4375 is not set
# CONFIG_SND_SOC_AK4458 is not set
# CONFIG_SND_SOC_AK4554 is not set
# CONFIG_SND_SOC_AK4613 is not set
# CONFIG_SND_SOC_AK4619 is not set
# CONFIG_SND_SOC_AK4642 is not set
# CONFIG_SND_SOC_AK5386 is not set
# CONFIG_SND_SOC_AK5558 is not set
# CONFIG_SND_SOC_ALC5623 is not set
# CONFIG_SND_SOC_AUDIO_IIO_AUX is not set
# CONFIG_SND_SOC_AW8738 is not set
# CONFIG_SND_SOC_AW88395 is not set
# CONFIG_SND_SOC_AW88166 is not set
# CONFIG_SND_SOC_AW88261 is not set
# CONFIG_SND_SOC_AW88081 is not set
# CONFIG_SND_SOC_AW87390 is not set
# CONFIG_SND_SOC_AW88399 is not set
# CONFIG_SND_SOC_BD28623 is not set
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CHV3_CODEC is not set
# CONFIG_SND_SOC_CS35L32 is not set
# CONFIG_SND_SOC_CS35L33 is not set
# CONFIG_SND_SOC_CS35L34 is not set
# CONFIG_SND_SOC_CS35L35 is not set
# CONFIG_SND_SOC_CS35L36 is not set
# CONFIG_SND_SOC_CS35L41_SPI is not set
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_SPI is not set
# CONFIG_SND_SOC_CS35L45_I2C is not set
# CONFIG_SND_SOC_CS35L56_I2C is not set
# CONFIG_SND_SOC_CS35L56_SPI is not set
# CONFIG_SND_SOC_CS35L56_SDW is not set
# CONFIG_SND_SOC_CS42L42 is not set
# CONFIG_SND_SOC_CS42L42_SDW is not set
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS42L52 is not set
# CONFIG_SND_SOC_CS42L56 is not set
# CONFIG_SND_SOC_CS42L73 is not set
# CONFIG_SND_SOC_CS42L83 is not set
# CONFIG_SND_SOC_CS42L84 is not set
# CONFIG_SND_SOC_CS4234 is not set
# CONFIG_SND_SOC_CS4265 is not set
# CONFIG_SND_SOC_CS4270 is not set
# CONFIG_SND_SOC_CS4271_I2C is not set
# CONFIG_SND_SOC_CS4271_SPI is not set
# CONFIG_SND_SOC_CS42XX8_SPI is not set
# CONFIG_SND_SOC_CS42XX8_I2C is not set
# CONFIG_SND_SOC_CS43130 is not set
# CONFIG_SND_SOC_CS4341 is not set
# CONFIG_SND_SOC_CS4349 is not set
# CONFIG_SND_SOC_CS48L32 is not set
# CONFIG_SND_SOC_CS53L30 is not set
# CONFIG_SND_SOC_CS530X_I2C is not set
# CONFIG_SND_SOC_CS530X_SPI is not set
# CONFIG_SND_SOC_CX2072X is not set
# CONFIG_SND_SOC_DA7213 is not set
# CONFIG_SND_SOC_DMIC is not set
# CONFIG_SND_SOC_ES7134 is not set
# CONFIG_SND_SOC_ES7241 is not set
# CONFIG_SND_SOC_ES8311 is not set
# CONFIG_SND_SOC_ES8316 is not set
# CONFIG_SND_SOC_ES8323 is not set
# CONFIG_SND_SOC_ES8326 is not set
# CONFIG_SND_SOC_ES8328_I2C is not set
# CONFIG_SND_SOC_ES8328_SPI is not set
# CONFIG_SND_SOC_ES8375 is not set
# CONFIG_SND_SOC_ES8389 is not set
# CONFIG_SND_SOC_FS210X is not set
# CONFIG_SND_SOC_GTM601 is not set
# CONFIG_SND_SOC_HDA is not set
# CONFIG_SND_SOC_ICS43432 is not set
# CONFIG_SND_SOC_IDT821034 is not set
# CONFIG_SND_SOC_MAX98088 is not set
# CONFIG_SND_SOC_MAX98090 is not set
# CONFIG_SND_SOC_MAX98357A is not set
# CONFIG_SND_SOC_MAX98504 is not set
# CONFIG_SND_SOC_MAX9867 is not set
# CONFIG_SND_SOC_MAX98927 is not set
# CONFIG_SND_SOC_MAX98520 is not set
# CONFIG_SND_SOC_MAX98363 is not set
# CONFIG_SND_SOC_MAX98373_I2C is not set
# CONFIG_SND_SOC_MAX98373_SDW is not set
# CONFIG_SND_SOC_MAX98388 is not set
# CONFIG_SND_SOC_MAX98390 is not set
# CONFIG_SND_SOC_MAX98396 is not set
# CONFIG_SND_SOC_MAX9860 is not set
# CONFIG_SND_SOC_MSM8916_WCD_DIGITAL is not set
# CONFIG_SND_SOC_PCM1681 is not set
# CONFIG_SND_SOC_PCM1754 is not set
# CONFIG_SND_SOC_PCM1789_I2C is not set
# CONFIG_SND_SOC_PCM179X_I2C is not set
# CONFIG_SND_SOC_PCM179X_SPI is not set
# CONFIG_SND_SOC_PCM186X_I2C is not set
# CONFIG_SND_SOC_PCM186X_SPI is not set
# CONFIG_SND_SOC_PCM3060_I2C is not set
# CONFIG_SND_SOC_PCM3060_SPI is not set
# CONFIG_SND_SOC_PCM3168A_I2C is not set
# CONFIG_SND_SOC_PCM3168A_SPI is not set
# CONFIG_SND_SOC_PCM5102A is not set
# CONFIG_SND_SOC_PCM512x_I2C is not set
# CONFIG_SND_SOC_PCM512x_SPI is not set
# CONFIG_SND_SOC_PCM6240 is not set
# CONFIG_SND_SOC_PEB2466 is not set
# CONFIG_SND_SOC_PM4125_SDW is not set
# CONFIG_SND_SOC_RT1017_SDCA_SDW is not set
# CONFIG_SND_SOC_RT1308_SDW is not set
# CONFIG_SND_SOC_RT1316_SDW is not set
# CONFIG_SND_SOC_RT1318_SDW is not set
# CONFIG_SND_SOC_RT1320_SDW is not set
# CONFIG_SND_SOC_RT5575 is not set
# CONFIG_SND_SOC_RT5616 is not set
# CONFIG_SND_SOC_RT5631 is not set
# CONFIG_SND_SOC_RT5640 is not set
# CONFIG_SND_SOC_RT5645 is not set
# CONFIG_SND_SOC_RT5659 is not set
# CONFIG_SND_SOC_RT5677 is not set
# CONFIG_SND_SOC_RT5682_SDW is not set
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW is not set
# CONFIG_SND_SOC_RT721_SDCA_SDW is not set
# CONFIG_SND_SOC_RT722_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_RT9123 is not set
# CONFIG_SND_SOC_RT9123P is not set
# CONFIG_SND_SOC_RTQ9124 is not set
# CONFIG_SND_SOC_RTQ9128 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not set
# CONFIG_SND_SOC_SGTL5000 is not set
# CONFIG_SND_SOC_SIMPLE_AMPLIFIER is not set
# CONFIG_SND_SOC_SIMPLE_MUX is not set
# CONFIG_SND_SOC_SMA1303 is not set
# CONFIG_SND_SOC_SMA1307 is not set
# CONFIG_SND_SOC_SPDIF is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2305 is not set
# CONFIG_SND_SOC_SSM2518 is not set
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM3515 is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not set
# CONFIG_SND_SOC_STA350 is not set
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not set
# CONFIG_SND_SOC_TAS2562 is not set
# CONFIG_SND_SOC_TAS2764 is not set
# CONFIG_SND_SOC_TAS2770 is not set
# CONFIG_SND_SOC_TAS2780 is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TAS5086 is not set
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TAS675X is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not set
# CONFIG_SND_SOC_TFA989X is not set
# CONFIG_SND_SOC_TLV320ADC3XXX is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not set
# CONFIG_SND_SOC_TLV320ADCX140 is not set
# CONFIG_SND_SOC_TS3A227E is not set
# CONFIG_SND_SOC_TSCS42XX is not set
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_UDA1334 is not set
# CONFIG_SND_SOC_UDA1342 is not set
# CONFIG_SND_SOC_UDA1380 is not set
# CONFIG_SND_SOC_WCD937X_SDW is not set
# CONFIG_SND_SOC_WCD938X_SDW is not set
# CONFIG_SND_SOC_WCD939X_SDW is not set
# CONFIG_SND_SOC_WM8510 is not set
# CONFIG_SND_SOC_WM8523 is not set
# CONFIG_SND_SOC_WM8524 is not set
# CONFIG_SND_SOC_WM8580 is not set
# CONFIG_SND_SOC_WM8711 is not set
# CONFIG_SND_SOC_WM8728 is not set
# CONFIG_SND_SOC_WM8731_I2C is not set
# CONFIG_SND_SOC_WM8731_SPI is not set
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not set
# CONFIG_SND_SOC_WM8750 is not set
# CONFIG_SND_SOC_WM8753 is not set
# CONFIG_SND_SOC_WM8770 is not set
# CONFIG_SND_SOC_WM8776 is not set
# CONFIG_SND_SOC_WM8782 is not set
# CONFIG_SND_SOC_WM8804_I2C is not set
# CONFIG_SND_SOC_WM8804_SPI is not set
# CONFIG_SND_SOC_WM8903 is not set
# CONFIG_SND_SOC_WM8904 is not set
# CONFIG_SND_SOC_WM8940 is not set
# CONFIG_SND_SOC_WM8960 is not set
# CONFIG_SND_SOC_WM8961 is not set
# CONFIG_SND_SOC_WM8962 is not set
# CONFIG_SND_SOC_WM8974 is not set
# CONFIG_SND_SOC_WM8978 is not set
# CONFIG_SND_SOC_WM8985 is not set
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_WSA883X is not set
# CONFIG_SND_SOC_WSA884X is not set
# CONFIG_SND_SOC_WSA885X is not set
# CONFIG_SND_SOC_ZL38060 is not set
# CONFIG_SND_SOC_MAX9759 is not set
# CONFIG_SND_SOC_MT6351 is not set
# CONFIG_SND_SOC_MT6357 is not set
# CONFIG_SND_SOC_MT6358 is not set
# CONFIG_SND_SOC_MT6660 is not set
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_NAU8325 is not set
# CONFIG_SND_SOC_NAU8540 is not set
# CONFIG_SND_SOC_NAU8810 is not set
# CONFIG_SND_SOC_NAU8821 is not set
# CONFIG_SND_SOC_NAU8822 is not set
# CONFIG_SND_SOC_NAU8824 is not set
# CONFIG_SND_SOC_NTP8918 is not set
# CONFIG_SND_SOC_NTP8835 is not set
# CONFIG_SND_SOC_TPA6130A2 is not set
# CONFIG_SND_SOC_LPASS_WSA_MACRO is not set
# CONFIG_SND_SOC_LPASS_VA_MACRO is not set
# CONFIG_SND_SOC_LPASS_RX_MACRO is not set
# CONFIG_SND_SOC_LPASS_TX_MACRO is not set
# end of CODEC drivers

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

CONFIG_SND_X86=y
CONFIG_SND_VIRTIO=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
CONFIG_UHID=y
CONFIG_HID_GENERIC=y
CONFIG_HID_HAPTIC=y

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

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

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

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

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

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

CONFIG_SURFACE_HID_CORE=y

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

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

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

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

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

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

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

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

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

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

#
# Platform Glue Layer
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Flash and Torch LED drivers
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# IIO staging drivers
#

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

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

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

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

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

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

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

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

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

# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not set
# CONFIG_INTEL_WMI_THUNDERBOLT is not set

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

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

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

# CONFIG_CLK_LGM_CGU is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set
# CONFIG_HWSPINLOCK is not set

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

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

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

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

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

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

CONFIG_SOUNDWIRE=y

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

#
# SOC (System On Chip) specific Drivers
#

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

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

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

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

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

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

# CONFIG_WPCM450_SOC is not set
CONFIG_QCOM_QMI_HELPERS=y
# CONFIG_SOC_TI is not set

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

#
# PM Domains
#

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

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

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

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

# CONFIG_PM_DEVFREQ is not set
CONFIG_EXTCON=y

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#
# Frequency Synthesizers DDS/PLL
#

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

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

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

#
# Health Sensors
#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# CONFIG_NTB is not set
# CONFIG_PWM is not set

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

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

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

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

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

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

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

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

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

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

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

# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_EE1004 is not set
# CONFIG_EEPROM_M24LR is not set
# CONFIG_NVMEM_RMEM is not set
# CONFIG_NVMEM_U_BOOT_ENV is not set

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

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

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

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

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

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

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

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

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

#
# No trust source selected!
#
CONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
CONFIG_KEY_DH_OPERATIONS=y
CONFIG_KEY_NOTIFICATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_PROC_MEM_ALWAYS_FORCE is not set
CONFIG_PROC_MEM_FORCE_PTRACE=y
# CONFIG_PROC_MEM_NO_FORCE is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SELINUX is not set
CONFIG_SECURITY_SMACK=y
# CONFIG_SECURITY_SMACK_BRINGUP is not set
CONFIG_SECURITY_SMACK_NETFILTER=y
# CONFIG_SECURITY_SMACK_APPEND_SIGNALS is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=64
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=32
CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER=y
CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
CONFIG_SECURITY_LANDLOCK_LOG=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
# CONFIG_IMA_STAGING is not set
# CONFIG_IMA_INIT_LATE_SYNC is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_EXTRA_SMACK_XATTRS=y
CONFIG_EVM_ADD_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
CONFIG_DEFAULT_SECURITY_SMACK=y
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,smack,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=y
CONFIG_CRYPTO_PCRYPT=y
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=y
CONFIG_CRYPTO_KRB5ENC=y
# CONFIG_CRYPTO_BENCHMARK is not set
CONFIG_CRYPTO_ENGINE=y
# end of Crypto core or helper

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

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

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

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

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

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

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

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

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

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

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

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

CONFIG_CRYPTO_KRB5=y
# CONFIG_CRYPTO_KRB5_SELFTESTS is not set
CONFIG_BINARY_PRINTF=y

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

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_CPUMASK_OFFSTACK is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_DIMLIB=y
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=y
CONFIG_VDSO_DATASTORE=y
CONFIG_GENERIC_GETTIMEOFDAY=y
CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT=y
CONFIG_VDSO_GETRANDOM=y
CONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_MEMREGION=y
CONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=y
CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y
CONFIG_ARCH_HAS_COPY_MC=y
CONFIG_ARCH_STACKWALK=y
CONFIG_STACKDEPOT=y
CONFIG_STACKDEPOT_ALWAYS_INIT=y
CONFIG_STACKDEPOT_MAX_FRAMES=64
CONFIG_REF_TRACKER=y
CONFIG_SBITMAP=y
# CONFIG_LWQ_TEST is not set
# end of Library routines

CONFIG_FIRMWARE_TABLE=y
CONFIG_UNION_FIND=y

#
# Kernel hacking
#

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

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y

#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
CONFIG_AS_HAS_NON_CONST_ULEB128=y
# CONFIG_DEBUG_INFO_NONE is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set
CONFIG_DEBUG_INFO_DWARF4=y
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_REDUCED is not set
CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
# CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_PAHOLE_HAS_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
# 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_MEM_ALLOC_PROFILING is not set
CONFIG_DEBUG_OBJECTS=y
# CONFIG_DEBUG_OBJECTS_SELFTEST is not set
CONFIG_DEBUG_OBJECTS_FREE=y
CONFIG_DEBUG_OBJECTS_TIMERS=y
CONFIG_DEBUG_OBJECTS_WORK=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SHRINKER_DEBUG is not set
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_SCHED_STACK_END_CHECK=y
CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
CONFIG_DEBUG_VFS=y
CONFIG_DEBUG_VM=y
CONFIG_DEBUG_VM_MAPLE_TREE=y
CONFIG_DEBUG_VM_RB=y
CONFIG_DEBUG_VM_PGFLAGS=y
CONFIG_DEBUG_VM_PGTABLE=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_DEBUG_VIRTUAL=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_PER_CPU_MAPS=y
CONFIG_DEBUG_KMAP_LOCAL=y
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_HAVE_ARCH_KASAN_VMALLOC=y
CONFIG_CC_HAS_KASAN_GENERIC=y
CONFIG_CC_HAS_KASAN_SW_TAGS=y
CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
CONFIG_KASAN=y
CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX=y
CONFIG_KASAN_GENERIC=y
# CONFIG_KASAN_OUTLINE is not set
CONFIG_KASAN_INLINE=y
CONFIG_KASAN_STACK=y
CONFIG_KASAN_VMALLOC=y
# CONFIG_KASAN_EXTRA_INFO is not set
CONFIG_HAVE_ARCH_KFENCE=y
CONFIG_KFENCE=y
CONFIG_KFENCE_SAMPLE_INTERVAL=100
CONFIG_KFENCE_NUM_OBJECTS=255
# CONFIG_KFENCE_DEFERRABLE is not set
CONFIG_KFENCE_STATIC_KEYS=y
CONFIG_KFENCE_STRESS_TEST_FAULTS=0
CONFIG_HAVE_ARCH_KMSAN=y
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_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_WW_MUTEX_SLOWPATH=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_LOCKDEP=y
CONFIG_LOCKDEP_BITS=20
CONFIG_LOCKDEP_CHAINS_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14
CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
# CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
# CONFIG_SCF_TORTURE_TEST is not set
CONFIG_CSD_LOCK_WAIT_DEBUG=y
# CONFIG_CSD_LOCK_WAIT_DEBUG_DEFAULT is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)

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

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

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

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

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

#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
CONFIG_FAULT_INJECTION=y
CONFIG_FAILSLAB=y
CONFIG_FAIL_PAGE_ALLOC=y
CONFIG_FAULT_INJECTION_USERCOPY=y
CONFIG_FAIL_MAKE_REQUEST=y
CONFIG_FAIL_IO_TIMEOUT=y
CONFIG_FAIL_FUTEX=y
CONFIG_FAULT_INJECTION_DEBUG_FS=y
# CONFIG_FAIL_MMC_REQUEST is not set
# CONFIG_FAIL_SKB_REALLOC is not set
CONFIG_FAULT_INJECTION_CONFIGFS=y
# CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set
CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_ENABLE_COMPARISONS=y
CONFIG_KCOV_INSTRUMENT_ALL=y
CONFIG_KCOV_IRQ_AREA_SIZE=0x40000
# CONFIG_KCOV_SELFTEST is not set
CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_TEST_DHRY is not set
# CONFIG_LKDTM is not set
# CONFIG_TEST_DIV64 is not set
# CONFIG_TEST_MULDIV64 is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_TEST_REF_TRACKER is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_ASYNC_RAID6_TEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_XARRAY is not set
# CONFIG_TEST_MAPLE_TREE is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_IDA is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_BITOPS is not set
# CONFIG_TEST_VMALLOC is not set
# CONFIG_TEST_WORKQUEUE is not set
# CONFIG_TEST_BPF is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_REGION_ALLOC_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_CONTEXT_ANALYSIS_TEST is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_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_BPF=y
KernelRepo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 6394180433084416
ReproOpts
Show (135 bytes)
{"threaded":true,"repeat":true,"procs":5,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false,"tmpdir":true,"callcomments":true}
ReproSyzID 6442969718063104
SyzkallerCommit 95928915a1f68c13ccccada603cedda6b36a84b7
TargetArch amd64
TargetOS linux
TargetVMArch amd64

Outputs:
DenialOfService ❌
Exploitable ❌
FilesystemTrigger ✅
NetworkTrigger ❌
PeripheralTrigger ❌
RemoteTrigger ❌
Unprivileged ❌
UserNamespace ❌
VMGuestTrigger ❌
VMHostTrigger ❌
Explanation
**Bug Analysis:**

The bug is a `WARN_ON_ONCE` triggered in `fs/iomap/buffered-io.c:ifs_free()`.
The warning asserts that the folio's uptodate state matches the iomap sub-block
state:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

This mismatch occurs because the `ntfs3` filesystem mixes `iomap` infrastructure
with direct page cache manipulation. When a file is written to or read from,
`iomap` allocates an `iomap_folio_state` (`ifs`) to track per-block uptodate
bits (used when the filesystem cluster size is smaller than the page size).
However, in certain paths (like handling compressed attributes or
resident-to-nonresident conversions), `ntfs3` directly calls
`folio_mark_uptodate(folio)` or `SetPageUptodate(pg)`. This sets the folio-level
uptodate flag but fails to update the underlying `ifs->state` bitmap. Later,
when the file is closed, truncated, or unmounted, the folio is invalidated, and
`ifs_free()` detects the discrepancy and triggers the warning.

**Security Impact:**

*   **Exploitable:** No. This is purely a high-level state bookkeeping mismatch
between the generic page cache flag and the iomap sub-block bitmap. After the
warning is emitted, `ifs_free()` proceeds to safely free the `ifs` structure via
`kfree(ifs)`. There is no memory corruption, use-after-free, double free, or
out-of-bounds access. It also does not leak uninitialized kernel memory to
userspace.
*   **Denial of Service:** No. In production kernels (where `panic_on_warn` is
disabled), the `WARN_ON_ONCE` simply prints a stack trace and execution
continues normally. It does not cause a crash, hang, deadlock, or resource leak.
*   **Accessible From Unprivileged Processes / User Namespaces:** No. Triggering
this bug requires mounting a crafted `ntfs3` filesystem image. The `mount`
syscall requires `CAP_SYS_ADMIN`. Furthermore, the `ntfs3` filesystem type
(`ntfs_fs_type`) does not have the `FS_USERNS_MOUNT` flag set in its
`.fs_flags`. This means it cannot be mounted inside a user namespace, even if
the user has full capabilities within that namespace.
*   **Malicious Filesystem Trigger:** Yes. The bug is triggered by parsing and
interacting with a maliciously crafted NTFS filesystem image. This could be
relevant in desktop environments that automatically mount inserted USB drives.

Crash report:
------------[ cut here ]------------
ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)
WARNING: fs/iomap/buffered-io.c:295 at ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294, CPU#0: syz-executor344/5612
Modules linked in:
CPU: 0 UID: 0 PID: 5612 Comm: syz-executor344 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294
Code: 41 5f 5d e9 b8 66 c1 ff e8 83 47 61 ff 90 0f 0b 90 e9 d5 fe ff ff e8 75 47 61 ff 90 0f 0b 90 e9 12 ff ff ff e8 67 47 61 ff 90 <0f> 0b 90 eb c7 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 08 fe ff ff
RSP: 0000:ffffc90004bb75d8 EFLAGS: 00010293
RAX: ffffffff826553d9 RBX: 0000000000000008 RCX: ffff888038af1f40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000008265d201 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff9400022dad9 R12: ffff888034c13e84
R13: ffff888034c13e00 R14: ffffea000116d6c0 R15: 0000000000000000
FS:  00005555950a2400(0000) GS:ffff888125bcb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04de4a1708 CR3: 000000003c322000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 folio_invalidate mm/truncate.c:140 [inline]
 truncate_cleanup_folio+0xcb/0x190 mm/truncate.c:160
 truncate_inode_pages_range+0x2c4/0xd80 mm/truncate.c:404
 ntfs_evict_inode+0x19/0x40 fs/ntfs3/inode.c:2012
 evict+0x624/0xb50 fs/inode.c:822
 dispose_list fs/inode.c:864 [inline]
 evict_inodes+0x7e3/0x870 fs/inode.c:918
 generic_shutdown_super+0xaa/0x2d0 fs/super.c:741
 kill_block_super+0x44/0xa0 fs/super.c:1904
 ntfs3_kill_sb+0x44/0x1c0 fs/ntfs3/super.c:1940
 deactivate_locked_super+0xbc/0x110 fs/super.c:589
 cleanup_mnt+0x3d3/0x460 fs/namespace.c:1317
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 ptrace_notify+0x27c/0x2b0 kernel/signal.c:2536
 ptrace_report_syscall include/linux/ptrace.h:416 [inline]
 ptrace_report_syscall_exit+0x2d/0x50 include/linux/ptrace.h:477
 arch_ptrace_report_syscall_exit include/linux/entry-common.h:240 [inline]
 syscall_exit_work include/linux/entry-common.h:273 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:304 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:341 [inline]
 do_syscall_64+0x4a0/0x520 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3de8bc0ec7
Code: bf 41 4d 56 53 b8 9d 00 00 00 0f 05 83 f8 ea 75 a2 c7 05 08 6c 0c 00 00 00 00 00 eb 96 e8 91 05 00 00 90 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 d0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff7c7504b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000018bbd RCX: 00007f3de8bc0ec7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff7c750570
RBP: 00007fff7c750570 R08: 00007fff7c751570 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff7c751620
R13: 00005555950a3760 R14: 431bde82d7b634db R15: 00007fff7c7515c4
 </TASK>

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/18 00:02 flow assessment-security
1h05m Results:
map[DenialOfService:false Explanation:**Bug Analysis:**

The bug is a `WARN_ON_ONCE` triggered in `fs/iomap/buffered-io.c:ifs_free()`.
The warning asserts that the folio's uptodate state matches the iomap sub-block
state:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

This mismatch occurs because the `ntfs3` filesystem mixes `iomap` infrastructure
with direct page cache manipulation. When a file is written to or read from,
`iomap` allocates an `iomap_folio_state` (`ifs`) to track per-block uptodate
bits (used when the filesystem cluster size is smaller than the page size).
However, in certain paths (like handling compressed attributes or
resident-to-nonresident conversions), `ntfs3` directly calls
`folio_mark_uptodate(folio)` or `SetPageUptodate(pg)`. This sets the folio-level
uptodate flag but fails to update the underlying `ifs->state` bitmap. Later,
when the file is closed, truncated, or unmounted, the folio is invalidated, and
`ifs_free()` detects the discrepancy and triggers the warning.

**Security Impact:**

*   **Exploitable:** No. This is purely a high-level state bookkeeping mismatch
between the generic page cache flag and the iomap sub-block bitmap. After the
warning is emitted, `ifs_free()` proceeds to safely free the `ifs` structure via
`kfree(ifs)`. There is no memory corruption, use-after-free, double free, or
out-of-bounds access. It also does not leak uninitialized kernel memory to
userspace.
*   **Denial of Service:** No. In production kernels (where `panic_on_warn` is
disabled), the `WARN_ON_ONCE` simply prints a stack trace and execution
continues normally. It does not cause a crash, hang, deadlock, or resource leak.
*   **Accessible From Unprivileged Processes / User Namespaces:** No. Triggering
this bug requires mounting a crafted `ntfs3` filesystem image. The `mount`
syscall requires `CAP_SYS_ADMIN`. Furthermore, the `ntfs3` filesystem type
(`ntfs_fs_type`) does not have the `FS_USERNS_MOUNT` flag set in its
`.fs_flags`. This means it cannot be mounted inside a user namespace, even if
the user has full capabilities within that namespace.
*   **Malicious Filesystem Trigger:** Yes. The bug is triggered by parsing and
interacting with a maliciously crafted NTFS filesystem image. This could be
relevant in desktop environments that automatically mount inserted USB drives. Exploitable:false FilesystemTrigger:true NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:false VMGuestTrigger:false VMHostTrigger:false]

1/1 2026/09/18 00:02 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 <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;
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_mount_image$ntfs3 arguments: [
//    fs: ptr[in, buffer] {
//      buffer: {6e 74 66 73 33 00} (length 0x6)
//    }
//    dir: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8)
//    }
//    flags: mount_flags = 0x0 (8 bytes)
//    opts: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {64 6d 61 73 6b 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 37 2c 6e 6f 68 69 64 64 65 6e 2c 64 69 73 63 61 72 64 2c 69 6f 63 68 61 72 73 65 74 3d 69 73 6f 38 38 35 39 2d 34 2c 64 69 73 63 61 72 64 2c 6e 6f 68 69 64 64 65 6e 2c 66 6f 72 63 65 2c 69 6f 63 68 61 72 73 65 74 3d 63 70 38 37 34 2c 61 63 6c 2c 64 69 73 63 61 72 64 2c 73 68 6f 77 6d 65 74 61 2c 00 40 36 27 c4 cf 3d 4d 6b de 25 a3 f2 e6 50 aa 59 17 53 c1 7e 35 c6 46 e4 ec 01 e6 9f 8e f7 84 51 d9 6a 5a d5 13 04 0b eb 8d ae b4 53 48 14 32 03 a1 a4 e3 a2 ef 8a 85 02 b4 c8 45 7c 8b 9f d3 45 17 9e} (length 0xc2)
//        }
//      }
//    }
//    chdir: int8 = 0x1 (1 bytes)
//    size: len = 0x1f788 (8 bytes)
//    img: ptr[in, buffer] {
//      buffer: (compressed buffer with length 0x1f788)
//    }
//  ]
//  returns fd_dir
memcpy((void*)0x200000000000, "ntfs3\000", 6);
memcpy((void*)0x200000000140, "./file0\000", 8);
memcpy((void*)0x200000000440, "... [truncated large byte array] ...", 194);
memcpy((void*)0x200000020ac0, "... [truncated large byte array] ...", 128904);
syz_mount_image(/*fs=*/0x200000000000, /*dir=*/0x200000000140, /*flags=*/0, /*opts=*/0x200000000440, /*chdir=*/1, /*size=*/0x1f788, /*img=*/0x200000020ac0);
//  openat$cgroup_ro arguments: [
//    fd: fd_cgroup (resource)
//    file: ptr[in, buffer] {
//      buffer: {63 70 75 2e 73 74 61 74 00} (length 0x9)
//    }
//    flags: const = 0x275a (4 bytes)
//    mode: const = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000040, "cpu.stat\000", 9);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000040ul, /*flags=*/0x275a, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  write$UHID_INPUT arguments: [
//    fd: fd_uhid (resource)
//    data: ptr[in, uhid_req[UHID_INPUT, uhid_input_req]] {
//      uhid_req[UHID_INPUT, uhid_input_req] {
//        type: const = 0x8 (4 bytes)
//        data: uhid_input_req {
//          data: buffer: {85 f0 80 a4 93 3d 55 26 6e 07 e7 99 aa 0c c4 21 38 82 42 df 2a 3c 6b 63 1b 65 b1 c0 61 ed d2 aa 10 8c 35 28 fe 9b 0b b3 a5 3a b1 20 0f 5d 01 a6 8a 4a cd ec 8f ee 09 64 82 22 f9 08 c1 fe dc 30 00 34 2e 61 39 de 28 36 6c 13 50 93 06 d0 0e bc c6 74 97 18 1a c9 16 db 98 af 9d 36 6b 76 e4 27 d9 ab 5b b6 80 95 f0 fb 24 6d f3 2b 8a f0 78 36 53 13 6f 8a 04 c0 36 90 31 21 25 c7 de d6 a2 4f da 86 85 34 0c 57 5e ad 69 51 9e 35 83 f8 9d 46 7e c2 32 d6 a1 ff d0 46 3b a4 ea 3c ba e5 da e6 65 4b 55 47 b5 45 8f 02 ac 30 77 29 e5 7b 09 e1 34 f6 8b e4 4f 88 d7 25 17 b2 30 b0 66 f6 31 5b 5f b8 02 06 39 7b bf f8 cb c2 a3 6e 01 c2 e7 b3 aa db 32 bd 3d d5 28 8a 69 a9 91 d9 c6 74 71 7e 3a bb a7 16 72 80 b2 db 3b 1b 85 02 af a4 f3 f2 96 c5 32 51 0c 9d 2d d7 9b b5 ee b2 5a db 5e dd db dd 06 9c 09 d1 4d 15 c2 e7 e1 e2 bd 6c 10 8f ab 35 91 bb 22 e9 7d 69 92 23 6d 22 73 c8 bb 95 53 6f 71 18 d0 07 96 50 08 b1 25 c7 da ac 28 14 e6 bb e1 ad bf a3 57 2a d0 b7 ad 5c 26 c8 01 41 18 d8 37 4c a9 f2 85 77 9d fe e7 71 5a 40 39 08 14 6a 74 de 61 b3 85 39 14 c8 9f 44 4c 12 e7 a3 8b dd 46 c4 ed 36 eb 80 6e a5 98 f4 4d 1d ec 9e ff 9e 24 76 f4 38 02 21 1f 07 62 b6 66 73 b4 5d 23 6b 23 91 ce 32 2e 30 fb 9c 69 fe 0d 51 4d c1 f8 b6 e3 97 9c 12 05 fd 52 24 b0 7d 18 a4 4f ec 4f 6f 1a 6f 65 15 8b b6 ad cc 29 5b f2 dd 7d ea 10 7f 59 d7 e0 3c 61 fe 58 22 29 2e 45 96 89 56 b9 31 bd c4 d6 44 5f f1 63 1e 0b 98 e4 b4 44 87 74 dd 4b 9c d5 3a 45 89 6f db 3f 03 70 27 78 74 1a e2 b4 5a 25 bf 9a 23 fc 02 fb 97 a6 30 f1 32 bf 9d ef 6c 6d 4a 7b ae b6 29 72 f1 a8 14 f6 f2 37 7b cf c7 8e 2e 86 36 8c 13 85 10 a0 4c ed f7 17 5a f8 c2 03 4f ae 74 13 e3 ac e8 c7 1a b9 a0 af 1c a7 04 20 11 a6 ed 02 8e 20 56 48 53 5d ab f3 b2 f8 51 96 ae 18 d3 6b 83 9e 3c d5 4a e4 93 3a d5 29 88 8f da c7 bb 8a 70 c7 2b c0 fc 81 ba 06 50 6f 2d 5b c7 68 6e 21 9b be 52 83 95 9c be f9 95 0e 07 1c b6 d9 f3 41 fc 62 4a 51 10 34 1f 26 ce bd 71 00 59 9a 06 e6 1f 66 fa e1 20 c7 fc 2b 34 c6 22 12 00 eb a7 5b d1 27 71 14 67 1a 3f a8 f0 58 b2 7f d8 97 b0 52 f4 a5 2a fc ea 81 4d f5 26 18 1c 75 c4 49 72 10 a2 b8 b7 4e 26 60 15 61 e7 87 35 38 7c f1 23 65 4b 02 95 d1 d6 05 56 95 6b 36 d9 6d d0 38 86 6c 4b 4d b3 1e bd cd dd 48 29 bb c2 85 0c d4 90 13 89 e6 ea 6e 86 04 1e 0e fa 11 58 f3 34 e7 af da 0e 11 c2 fb 0e 6d f6 36 4c b9 56 59 f5 06 d5 c7 e6 3f b6 7c 81 16 57 7d 15 e4 a4 b1 fc 4c 27 de 2e 52 58 6c b1 f5 2b e9 c3 60 1f 50 66 54 9d e8 bd c3 ec 07 d1 a8 4c af 19 61 32 3e c2 48 7a 37 b7 51 ae ab af cd 64 7c e2 da e5 d9 49 9c 0f 96 94 67 e6 ca ba d1 98 66 9a c9 6b d1 48 89 54 ef f0 85 4e e0 c8 3d 7b 59 6d 27 36 25 bd b1 62 70 78 23 21 07 1f da 5d 98 0d ed 78 ff a9 dc 2b 56 03 7d 7c bf 94 25 47 f4 8a 51 31 f1 99 1f 6c 17 ae 1e d5 12 0c a6 87 8f 98 e6 8e 79 97 a9 a2 b7 0b e6 40 a7 0a 34 ad b8 0d e2 86 c6 69 2a bb 5f 09 2e 4e 3a 15 a8 32 17 e0 3d 02 a4 05 4f 34 af 3a 65 ff 6b 36 f3 95 b7 6a 05 79 cf fa fd 5d 3b b0 e7 04 c9 35 ca ec f3 a7 ab 75 6c 23 fd 60 c9 fe 3f 4f b2 be 75 04 f5 ba e2 2b 11 6f f1 58 8d cf 02 b3 27 d3 1b f0 48 8d ba 8a f5 b3 3c cf 2d 7d 87 f4 3b bc 48 fc d4 f1 91 ad 6a f9 31 3a d3 8b 8b 29 67 4b fa bd 66 51 bc 1f 6c e5 ab b4 a2 f1 41 31 94 f9 6b 26 d7 d6 ed c4 e0 13 fb a5 49 07 5c 97 ee f5 08 af 5c a7 87 36 64 b0 58 b7 bc f4 55 a8 a0 4b 59 1d 29 fa b6 36 6c 84 4b b7 55 76 ba c2 d5 23 23 e7 47 30 3d 00 a5 73 6c 98 12 92 2b 0e 17 bc ec 91 35 55 07 36 b5 4c f6 40 7d 61 e2 2e 62 d7 bb 75 f6 29 35 b6 65 ac f3 3e 75 f6 88 c3 6e f4 16 f1 b8 90 d0 f0 c8 ad 1d f0 0e 02 ec 45 96 78 34 d5 64 9c 8e 71 43 97 86 22 fa 37 04 67 29 70 b7 99 3a 87 e9 7d 3d 92 6a 14 26 56 47 bc 8b 8c 9e 6f 83 e2 95 72 60 8d 24 b4 2c 26 35 ef 4a bb d0 af 83 86 0e 99 c9 0d 74 71 cf 6e 8c e9 95 07 f5 ec 2b c5 72 21 2f a9 ee 3f 5a 9d fa 38 15 fe 55 f0 bb b1 19 ac ce 06 2a e3 7f 2f f9 21 70 7a bb a1 39 bc cd f4 2b fd 17 4d 29 b5 40 16 1b 41 13 c4 e1 a1 3f 3a 62 8c 63 8e c4 d3 a8 84 df bc 09 3e 23 ec 0d 06 71 b4 6b 41 dc 8b 42 d9 50 c8 61 5b a5 ee 87 f4 9b 5d 09 10 ff a4 87 12 07 99 50 01 92 0d b0 5a 95 19 99 67 f0 97 ba 7b 55 bb d2 71 d8 18 69 0c 42 38 40 6b 40 a3 df c4 2f a5 6a 67 17 3b 53 a9 6b 54 33 26 c5 67 38 b6 d0 43 19 59 34 01 86 96 f5 ab 49 34 7e 51 48 a7 8f 2d 13 69 a7 1a fa b8 33 02 73 d4 6e cf ba 4e e0 58 02 a5 38 56 49 85 1d b9 49 db fb 39 e2 90 94 16 41 c5 0b 1a c2 0f b3 10 27 54 a7 60 b0 97 f4 64 dd b0 b8 3f 81 68 ba df a7 1d b6 62 1d cf 22 fb 08 1e 34 03 f3 ba c5 c7 e6 59 05 ac a5 28 85 c8 07 f8 dd ab 18 bb 2f 12 ef 95 2c 50 48 3c 0e 25 19 68 bc 70 ff 0d 42 a6 38 ca 74 4d ea 4c 7e bb 4f ea 77 7c f6 63 bb 4f 15 05 ed 79 73 0c 45 bc 86 e4 88 a1 3f 92 43 77 a8 e2 ee 66 70 a0 2c a5 28 74 ae 1c 42 a3 5d 55 b9 76 57 57 04 7b 2c c3 74 2a a5 1f a3 e4 3f b2 c1 13 c9 2a d2 13 ba d2 52 c1 a8 29 66 dd 01 6f 12 a7 f1 c3 90 0c 0f 1a b4 55 03 51 63 f3 18 99 bd d3 0f 3f f4 3a d1 7d 9e 45 bb 74 38 c1 c9 86 71 27 36 f2 4b e1 4f 71 ab 1b fe 92 a2 5e c0 7f 08 6e e8 c7 97 1b 80 77 a1 3e 58 a8 e8 be a3 9c 8e 06 b2 51 90 9f 02 cb 00 80 ab f0 20 f2 7c a1 60 eb 26 c0 82 dd a1 fa 54 ea 40 94 df db cb 2f a7 bd dc cb 67 a8 44 e8 07 5f 4c c0 8d ad 35 75 70 06 d0 51 e1 83 dc ed 33 6b c0 c2 50 2f 93 ff c8 7d ca 62 22 86 ba 17 4c 24 e1 f5 3f 27 dc 27 77 ba af e1 70 34 8b 0e 8d 3e 74 3b 3a a9 06 bc 07 64 bb e7 da 08 ff 40 3e fe 22 12 62 7d 67 22 50 65 8b b5 13 b7 31 25 17 d1 f8 8c 61 c7 ba 5f 96 47 cd 61 92 81 c5 b3 90 b4 86 06 ee 39 fb 41 71 10 3d f2 e0 9d 7c fd 56 c0 6c 72 1f 7c 24 ad 8c ce 38 36 23 fc 2d cb 15 ac 56 43 8e a3 31 82 0a e5 9c 8c 47 4e 36 fc 73 f7 b1 b3 b8 6d f1 b4 24 90 81 55 13 68 1a af bf 7e 87 1b 4b 96 86 ef ae 6c 45 ec fc a6 0a 64 0a 6f 07 1d fd 31 f9 43 7c 3d 03 08 61 64 b4 8c 1e d8 02 98 68 64 bf e0 d4 9b dd 77 09 66 22 62 36 8d bc 3e cc 05 eb 24 0e cc 41 90 4c 76 d7 8a b5 c5 2b 66 af 5a 72 0f dd 6a 92 f5 2b e0 67 64 27 a5 6e 32 e5 bc 50 85 b2 5f 90 ad d2 8a 76 f2 fc e6 f8 f0 ef 74 f4 65 96 98 54 96 46 bd 63 17 5a df 77 b5 cd cf e6 76 e1 b1 a9 af 15 10 29 46 55 4b a6 13 6c bc 83 c6 26 8e e4 03 18 f3 c9 d4 71 80 25 68 8b 35 d2 26 5b f6 0b f8 89 ff 62 9f 78 34 58 6e f4 6e ab 7a 91 76 33 75 36 bb 60 01 e6 76 54 6b 98 7f 36 b1 fe 4b 9f 6e 46 a8 ce 73 eb 22 eb bb 9c 14 d8 e2 b4 3e a7 7e f8 87 e5 a2 64 48 f4 08 6f a8 19 a2 5e 27 72 5a c1 02 98 85 1c 8b c4 5f 2c e4 43 0b 07 91 7a de 5e a8 c4 34 c3 f2 57 6e ff be b5 21 17 37 36 e5 c9 55 74 50 64 30 68 b0 c0 fb 13 2a 7e 99 de 6c a2 92 24 6a 99 37 fa 7d 7e 06 e5 9c f5 9c e5 b9 f8 42 62 90 49 93 11 46 af 40 a8 a1 25 6b a3 73 a8 8d 09 dc 00 cd f4 45 3c c6 ba 78 57 2b f3 e1 f2 35 2a 97 8c db ad 60 22 0c b8 ac 37 d7 f6 14 a3 06 49 2a 4b 5e ee 92 44 b0 ca 84 b6 cf 2e 23 01 3b fb 1c b9 2b f6 d1 26 fe 55 0e 58 c1 9f 84 e7 a4 08 14 37 b7 5b 31 b2 b9 fb 65 8d cd 8b a0 77 96 2e 0f 33 59 72 1a 14 8d 4f ef e5 c9 79 41 ca 96 88 cb 85 ad f3 8f d1 0f 58 11 cd d8 e0 74 a2 1b bf c9 54 1c 71 46 5b 08 d7 32 12 81 b6 8e d5 2b fa b7 89 b9 c8 38 49 c0 9d 52 37 6d 41 9b 1e 7b a3 67 60 32 36 e1 19 cd f4 a7 b7 cf 9d 81 f2 22 96 01 de ac e5 3c ea 2f 14 a0 5f 7f a0 ca 04 b3 9e 31 c6 45 3e 33 2f 4b d0 91 5c 0e 09 e2 8f 4d 11 25 c3 90 c6 ff 08 33 a0 4b 6f c3 78 55 e6 5d e9 03 33 e5 05 b9 eb 66 e0 06 86 a3 ed 49 9c fb 7b 8b 21 5d bd c9 78 7b 5b aa 72 4c fa 71 ee 67 45 b4 1e 20 3d e8 b7 79 47 57 ac 32 8e c5 56 75 40 b9 51 b5 05 30 c3 d4 ee 34 70 5e a1 c6 6f d6 59 1e 88 56 10 83 e8 6d 48 c4 5e f3 b8 3a 30 29 31 9d 8f 3d 8e 65 ce 14 c1 dc 3c b9 2d 0a 7d be b6 09 a8 d2 79 39 28 ca a0 79 f0 fb bb 2b c9 0b 9f 05 8c c0 48 f4 03 20 41 d1 4c 5b ca 00 e9 9b 30 27 ec 3a 50 c4 95 71 99 cf 01 6a 45 94 06 9a f8 65 9d f0 97 3f 20 ff b1 5d bc 26 5a c5 b8 a2 20 3e 90 b1 14 a3 e9 44 1e 35 7c 60 ce 0b 55 0a 7f e6 6f c3 4f 57 02 ac 8e 89 92 a2 2e 89 19 4c 1d f6 9e 81 a9 b7 ad 3d 26 34 ea 8c 03 88 58 81 92 fd 47 d8 e8 03 b1 00 44 d5 58 61 7f b2 92 1b 69 eb 4d 85 c0 51 f8 6e f6 3a 2f 43 82 b9 be cd 87 0f b2 ec ad ca 69 02 71 2b 88 68 07 92 e2 f2 ec 89 59 1c fe bb 6d b3 ad 31 c2 a3 39 af 10 46 5f cf 79 88 51 9d 38 22 18 df 52 26 12 34 f2 6a 6f 66 ad 0d 18 59 de 50 5d 0f e8 19 ca f2 f8 d3 0a a9 fd 12 28 ac 91 d1 1c a6 7f 1f 8d 50 c8 ee fa 5c 44 15 14 32 15 07 df f6 c6 ea 3c ff 6f 34 0a 1c 11 e0 c4 0f 41 9e 8e 60 fc 94 d8 82 8f a4 7a 96 cd f7 ee 4f 61 e2 3f 40 75 1b 25 cf 9c a1 29 50 41 a3 50 f8 3f 0e 67 95 15 d6 b4 b4 6e 2c 9c e8 99 9e 07 f8 35 ab c1 66 3c ef cf 72 8d f3 78 31 f4 e1 7f 8c 8a 4f ea f1 fb f4 4c 38 c9 31 32 84 40 4a 50 ba 4c d8 ab e8 35 b3 3b fe cb 02 cd 6c 9d 7f 43 58 53 b4 c8 d5 05 ab 83 cf 46 51 27 39 11 66 94 76 56 58 ba e6 4b 31 27 15 2d 21 60 55 ae f9 b2 5c 70 a8 a3 b3 02 75 2d 7b 1e 87 91 c6 57 b9 f3 fc 90 01 ef 29 9f d1 a3 49 49 1a e6 ee 99 40 14 91 60 50 7f c4 13 0f b8 25 d4 7d 97 dc 2c 24 32 09 d2 40 35 83 ac 3e f6 dd be dc aa 76 43 22 55 48 7c 0a 06 e5 9e 04 3e 57 2a b3 ae c0 02 af 6a 6b 6a 2d c9 cf ae ef a7 05 57 88 6c 4d 12 92 4a 03 88 f2 f1 bc 8e 89 e4 cf a6 97 05 d1 ef 3c 46 58 f8 61 62 78 b5 88 01 1d 9d d9 14 be ec 0b 15 1d 65 b6 52 4f ba 3e 3f 23 5d 58 37 3e 02 16 99 b0 76 22 a5 15 04 ea de 74 7e 0b 2f 9c f3 8b c1 67 ca bc 8c b1 8c 70 8d 13 37 e2 56 48 70 7e 8c 08 72 87 65 14 c7 a4 9c 0b 2a ae e5 ed 9e 9e cf cb cc 23 e0 32 c4 de b6 3e 48 e7 12 01 88 05 64 68 fa d3 14 48 e4 b4 2e 7d 62 fb cf c1 c2 cf b0 1f cf 0d b5 e8 a1 62 bd b9 bd 82 0c 76 3f 17 b9 6c 23 f3 2d b9 d1 c1 d7 4d db e6 57 b4 f9 59 5a 97 96 98 2a 07 42 15 31 11 b1 5e 48 4d 8f fe be 47 ce 0a 78 a4 1e 47 0a 34 16 16 ec 2e b6 ee f8 13 fb 41 5f ab 50 fa 96 5b ec 6a 59 77 a0 ad e4 fe d6 7f 86 fc 24 e1 1b 0e 2f 53 64 07 9f 7c 7c 35 b5 60 ca c7 26 db c8 0f 29 db d2 48 f7 ec da 02 86 a2 3e f1 72 a2 8c 96 d9 bd b1 f5 98 ea b3 1c 6b af 03 21 31 2d a2 39 20 c0 74 b9 d2 d2 e4 42 71 7f 2c 21 00 11 42 a3 9c 2d a6 b8 bd 9d 06 b0 5a 6a 8d ea e1 bd 1b e4 10 8a 63 6d db eb c6 82 d1 13 e7 15 f2 f3 ee 50 6a bc 28 b1 c6 54 b3 d2 d2 8e 02 f7 3b 17 1e d0 de ed 71 dd a9 0c e4 a0 b7 28 cc 75 cb 57 63 85 e7 41 8b 54 5b 99 2b 1d d9 8e 2e e5 33 55 f4 64 f9 25 0a 2a 03 b3 d1 e4 d2 ac 1a a7 1d 01 de 25 73 53 03 24 e1 4d 15 a5 07 88 34 11 dd bd 37 be 21 dc 92 9d b9 b1 1f 11 01 0e 4d 2a 04 c7 32 5a 5a e6 d2 4d 19 90 0f f9 7a 8a 89 43 8f 86 76 45 7a 78 cf f0 52 01 52 8f 43 58 fe 67 f6 12 88 bf 04 2a 8f 3c 2e 0f 8b 49 97 b8 fb 74 99 6b 80 d4 65 48 9b 2d 78 07 a9 45 eb a7 2a 94 5e 8c f8 62 5d ba d6 f6 f6 e3 05 37 b2 9e 55 8c a8 a8 b0 62 5f 57 8c 76 6d 34 f2 d2 8d 70 47 15 f9 4d f1 f6 31 8a 30 80 42 aa 49 4b aa 29 56 40 67 9f 1e ab 1e 6a 83 08 af 8c e6 44 1d 5a d8 a2 f3 d4 77 eb 53 07 af 0d fa e6 64 44 93 f1 43 40 30 b8 36 16 21 34 0a d3 dc ef a6 d8 f0 90 ed 39 29 d8 9a d9 c0 ba 01 a6 90 30 33 42 8d d8 f9 86 19 30 4b 18 03 18 7d 2a 61 30 bf 1e 00 9b 5e b0 e7 e2 1c 75 59 4b 3b 84 70 f3 10 6c 92 a9 e5 5b fe b0 26 09 1c ed 12 7a 90 a1 f1 24 7f 3c 07 e3 6d 35 72 92 3e 0d e3 f7 35 18 d0 36 9a 25 fc d4 e6 5d 24 3b 7e ab 91 06 3a 7b fd 8b c8 ac 9e 39 fb bb 32 b5 c9 51 78 86 28 7a 18 ea cd 8d bf da 9b 91 db 69 3c b1 2e 42 cb a5 98 82 80 e0 9e 51 e7 2b 91 a0 f3 60 65 6d 8f 21 cc 1e b3 24 8a c3 45 ad 51 d1 a6 17 2b 18 41 92 77 85 1d ab 01 e0 28 c7 e8 e2 cf 34 09 5e fd 28 26 78 52 a0 8f cc f6 1c 45 b5 e4 69 30 16 0d af 50 28 2b e0 58 27 4e 7f f5 8c 48 b6 0b 86 d0 c8 cc 88 6a b8 77 8a 2a 2b 5f a2 55 7a d7 bf 7f 01 f2 17 55 23 ce 75 88 71 d3 34 c2 0a 98 39 f7 a8 9f e2 86 7c 06 28 9c 8a 2f 64 56 ac 7e 4f ba de e5 3a c4 1a ee 68 21 4b c7 66 69 85 3b aa 4f 58 25 5b 39 ba 58 14 14 f2 e8 c4 b4 93 03 f8 93 6a 33 ba e5 cb c9 6b 29 a5 c7 24 d5 b5 0e 16 14 14 4c 2a cd 03 bd 90 de 89 1c 3d 36 ce 04 0d 57 54 36 82 ec bf ca e6 6c 41 53 c3 37 c3 a5 d0 18 96 52 4c 8e 0c 27 e9 a0 89 19 82 1c a2 7b bf e3 fc 9b a2 4a 82 3a ee c8 d4 ad 8e f8 a6 5c 58 5b ee 4d cf 1a ca a3 da 50 1a 8c 11 a2 3b 2e 22 92 0c 1a d0 12 9a 03 8b 31 fe 16 c2 ab c8 05 89 db f7 c3 72 11 af c5 d1 a6 db 90 8b c5 fe 8a 69 20 60 06 9f cb cd cb a7 c5 23 d3 c4 24 aa 3b 0c 65 56 38 7e 0e 51 bc de 9e 5f 85 0a bf 62 d2 c2 10 1c 3a 27 86 a0 cb 94 93 28 77 a0 9c b6 b6 4a a6 1d a8 ca b3 b4 23 e7 ad c4 c4 70 04 18 a6 5e 87 22 57 10 e1 69 1f 6d 9c b2 eb 63 cc e5 b6 05 ce 0a 4a 89 cf 51 97 67 e0 08 45 39 7c 5e 38 11 41 a0 ed 8a 89 b0 10 64 b4 95 ec 8d 1e 2d a3 74 33 bf 15 97 d9 19 a6 96 10 d2 ad 26 bd f6 fc a8 de 42 2b b2 cb 80 d0 51 62 06 e8 19 4e e5 14 45 a3 dc b5 de e3 3c 0c 31 0b 47 51 e6 8e 58 be bd a2 fb 58 69 85 a5 a5 b0 64 56 75 6f 44 e6 db fe f4 bb 99 ca 73 2f 00 fb 9e a3 57 75 f7 41 96 81 bf be 6f 43 dc 7c 46 50 c1 3b 63 d9 3c 1d 49 0b f0 17 3f 28 7a 43 09 53 1f 13 ec b1 a7 75 d0 bd 88 1a} (length 0x1000)
//          size: len = 0x1000 (2 bytes)
//        }
//      }
//    }
//    len: len = 0x1006 (8 bytes)
//  ]
*(uint32_t*)0x200000000940 = 8;
memcpy((void*)0x200000000944, "... [truncated large byte array] ...", 4096);
*(uint16_t*)0x200000001944 = 0x1000;
	syscall(__NR_write, /*fd=*/r[0], /*data=*/0x200000000940ul, /*len=*/0x1006ul);
//  mmap arguments: [
//    addr: VMA[0x4000]
//    len: len = 0x4000 (4 bytes)
//    prot: mmap_prot = 0x1 (8 bytes)
//    flags: mmap_flags = 0x10012 (8 bytes)
//    fd: fd (resource)
//    offset: intptr = 0x0 (8 bytes)
//  ]
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x4000, /*prot=PROT_READ*/1ul, /*flags=MAP_NONBLOCK|MAP_FIXED|MAP_PRIVATE*/0x10012ul, /*fd=*/r[0], /*offset=*/0ul);
	return 0;
}
]

2/1 2026/09/18 00:02 action kernel-checkouter
1m Results:
map[KernelSrc:/app/workdir/cache/src/5954088e94b7c5ecde095005a33062bb138de6d5]

3/1 2026/09/18 00:03 action kernel-builder
27m Results:
map[KernelObj:/app/workdir/cache/build/9b19c66ec68682a4ee2908af50280f321d50518b]

4/1 2026/09/18 00:31 action codesearch-prepare
16m Results:
map[Index:codesearch-index]

5/1 2026/09/18 00:47 agent expert
20m Model:
deep-reasoning

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

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

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

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

Analysis dimensions:

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

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

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

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

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

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

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

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

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

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

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

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


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

Prompt:
The kernel bug report is:

------------[ cut here ]------------
ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)
WARNING: fs/iomap/buffered-io.c:295 at ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294, CPU#0: syz-executor344/5612
Modules linked in:
CPU: 0 UID: 0 PID: 5612 Comm: syz-executor344 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294
Code: 41 5f 5d e9 b8 66 c1 ff e8 83 47 61 ff 90 0f 0b 90 e9 d5 fe ff ff e8 75 47 61 ff 90 0f 0b 90 e9 12 ff ff ff e8 67 47 61 ff 90 <0f> 0b 90 eb c7 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 08 fe ff ff
RSP: 0000:ffffc90004bb75d8 EFLAGS: 00010293
RAX: ffffffff826553d9 RBX: 0000000000000008 RCX: ffff888038af1f40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000008265d201 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff9400022dad9 R12: ffff888034c13e84
R13: ffff888034c13e00 R14: ffffea000116d6c0 R15: 0000000000000000
FS:  00005555950a2400(0000) GS:ffff888125bcb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04de4a1708 CR3: 000000003c322000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 folio_invalidate mm/truncate.c:140 [inline]
 truncate_cleanup_folio+0xcb/0x190 mm/truncate.c:160
 truncate_inode_pages_range+0x2c4/0xd80 mm/truncate.c:404
 ntfs_evict_inode+0x19/0x40 fs/ntfs3/inode.c:2012
 evict+0x624/0xb50 fs/inode.c:822
 dispose_list fs/inode.c:864 [inline]
 evict_inodes+0x7e3/0x870 fs/inode.c:918
 generic_shutdown_super+0xaa/0x2d0 fs/super.c:741
 kill_block_super+0x44/0xa0 fs/super.c:1904
 ntfs3_kill_sb+0x44/0x1c0 fs/ntfs3/super.c:1940
 deactivate_locked_super+0xbc/0x110 fs/super.c:589
 cleanup_mnt+0x3d3/0x460 fs/namespace.c:1317
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 ptrace_notify+0x27c/0x2b0 kernel/signal.c:2536
 ptrace_report_syscall include/linux/ptrace.h:416 [inline]
 ptrace_report_syscall_exit+0x2d/0x50 include/linux/ptrace.h:477
 arch_ptrace_report_syscall_exit include/linux/entry-common.h:240 [inline]
 syscall_exit_work include/linux/entry-common.h:273 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:304 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:341 [inline]
 do_syscall_64+0x4a0/0x520 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3de8bc0ec7
Code: bf 41 4d 56 53 b8 9d 00 00 00 0f 05 83 f8 ea 75 a2 c7 05 08 6c 0c 00 00 00 00 00 eb 96 e8 91 05 00 00 90 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 d0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff7c7504b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000018bbd RCX: 00007f3de8bc0ec7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff7c750570
RBP: 00007fff7c750570 R08: 00007fff7c751570 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000206 R12: 00007fff7c751620
R13: 00005555950a3760 R14: 431bde82d7b634db R15: 00007fff7c7515c4
 </TASK>




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

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

#define _GNU_SOURCE 

#include <endian.h>
#include <errno.h>
#include <fcntl.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;
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_mount_image$ntfs3 arguments: [
//    fs: ptr[in, buffer] {
//      buffer: {6e 74 66 73 33 00} (length 0x6)
//    }
//    dir: ptr[in, buffer] {
//      buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8)
//    }
//    flags: mount_flags = 0x0 (8 bytes)
//    opts: ptr[inout, array[ANYUNION]] {
//      array[ANYUNION] {
//        union ANYUNION {
//          ANYBLOB: buffer: {64 6d 61 73 6b 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 37 2c 6e 6f 68 69 64 64 65 6e 2c 64 69 73 63 61 72 64 2c 69 6f 63 68 61 72 73 65 74 3d 69 73 6f 38 38 35 39 2d 34 2c 64 69 73 63 61 72 64 2c 6e 6f 68 69 64 64 65 6e 2c 66 6f 72 63 65 2c 69 6f 63 68 61 72 73 65 74 3d 63 70 38 37 34 2c 61 63 6c 2c 64 69 73 63 61 72 64 2c 73 68 6f 77 6d 65 74 61 2c 00 40 36 27 c4 cf 3d 4d 6b de 25 a3 f2 e6 50 aa 59 17 53 c1 7e 35 c6 46 e4 ec 01 e6 9f 8e f7 84 51 d9 6a 5a d5 13 04 0b eb 8d ae b4 53 48 14 32 03 a1 a4 e3 a2 ef 8a 85 02 b4 c8 45 7c 8b 9f d3 45 17 9e} (length 0xc2)
//        }
//      }
//    }
//    chdir: int8 = 0x1 (1 bytes)
//    size: len = 0x1f788 (8 bytes)
//    img: ptr[in, buffer] {
//      buffer: (compressed buffer with length 0x1f788)
//    }
//  ]
//  returns fd_dir
memcpy((void*)0x200000000000, "ntfs3\000", 6);
memcpy((void*)0x200000000140, "./file0\000", 8);
memcpy((void*)0x200000000440, "... [truncated large byte array] ...", 194);
memcpy((void*)0x200000020ac0, "... [truncated large byte array] ...", 128904);
syz_mount_image(/*fs=*/0x200000000000, /*dir=*/0x200000000140, /*flags=*/0, /*opts=*/0x200000000440, /*chdir=*/1, /*size=*/0x1f788, /*img=*/0x200000020ac0);
//  openat$cgroup_ro arguments: [
//    fd: fd_cgroup (resource)
//    file: ptr[in, buffer] {
//      buffer: {63 70 75 2e 73 74 61 74 00} (length 0x9)
//    }
//    flags: const = 0x275a (4 bytes)
//    mode: const = 0x0 (2 bytes)
//  ]
//  returns fd
memcpy((void*)0x200000000040, "cpu.stat\000", 9);
	res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000040ul, /*flags=*/0x275a, /*mode=*/0);
	if (res != -1)
		r[0] = res;
//  write$UHID_INPUT arguments: [
//    fd: fd_uhid (resource)
//    data: ptr[in, uhid_req[UHID_INPUT, uhid_input_req]] {
//      uhid_req[UHID_INPUT, uhid_input_req] {
//        type: const = 0x8 (4 bytes)
//        data: uhid_input_req {
//          data: buffer: {85 f0 80 a4 93 3d 55 26 6e 07 e7 99 aa 0c c4 21 38 82 42 df 2a 3c 6b 63 1b 65 b1 c0 61 ed d2 aa 10 8c 35 28 fe 9b 0b b3 a5 3a b1 20 0f 5d 01 a6 8a 4a cd ec 8f ee 09 64 82 22 f9 08 c1 fe dc 30 00 34 2e 61 39 de 28 36 6c 13 50 93 06 d0 0e bc c6 74 97 18 1a c9 16 db 98 af 9d 36 6b 76 e4 27 d9 ab 5b b6 80 95 f0 fb 24 6d f3 2b 8a f0 78 36 53 13 6f 8a 04 c0 36 90 31 21 25 c7 de d6 a2 4f da 86 85 34 0c 57 5e ad 69 51 9e 35 83 f8 9d 46 7e c2 32 d6 a1 ff d0 46 3b a4 ea 3c ba e5 da e6 65 4b 55 47 b5 45 8f 02 ac 30 77 29 e5 7b 09 e1 34 f6 8b e4 4f 88 d7 25 17 b2 30 b0 66 f6 31 5b 5f b8 02 06 39 7b bf f8 cb c2 a3 6e 01 c2 e7 b3 aa db 32 bd 3d d5 28 8a 69 a9 91 d9 c6 74 71 7e 3a bb a7 16 72 80 b2 db 3b 1b 85 02 af a4 f3 f2 96 c5 32 51 0c 9d 2d d7 9b b5 ee b2 5a db 5e dd db dd 06 9c 09 d1 4d 15 c2 e7 e1 e2 bd 6c 10 8f ab 35 91 bb 22 e9 7d 69 92 23 6d 22 73 c8 bb 95 53 6f 71 18 d0 07 96 50 08 b1 25 c7 da ac 28 14 e6 bb e1 ad bf a3 57 2a d0 b7 ad 5c 26 c8 01 41 18 d8 37 4c a9 f2 85 77 9d fe e7 71 5a 40 39 08 14 6a 74 de 61 b3 85 39 14 c8 9f 44 4c 12 e7 a3 8b dd 46 c4 ed 36 eb 80 6e a5 98 f4 4d 1d ec 9e ff 9e 24 76 f4 38 02 21 1f 07 62 b6 66 73 b4 5d 23 6b 23 91 ce 32 2e 30 fb 9c 69 fe 0d 51 4d c1 f8 b6 e3 97 9c 12 05 fd 52 24 b0 7d 18 a4 4f ec 4f 6f 1a 6f 65 15 8b b6 ad cc 29 5b f2 dd 7d ea 10 7f 59 d7 e0 3c 61 fe 58 22 29 2e 45 96 89 56 b9 31 bd c4 d6 44 5f f1 63 1e 0b 98 e4 b4 44 87 74 dd 4b 9c d5 3a 45 89 6f db 3f 03 70 27 78 74 1a e2 b4 5a 25 bf 9a 23 fc 02 fb 97 a6 30 f1 32 bf 9d ef 6c 6d 4a 7b ae b6 29 72 f1 a8 14 f6 f2 37 7b cf c7 8e 2e 86 36 8c 13 85 10 a0 4c ed f7 17 5a f8 c2 03 4f ae 74 13 e3 ac e8 c7 1a b9 a0 af 1c a7 04 20 11 a6 ed 02 8e 20 56 48 53 5d ab f3 b2 f8 51 96 ae 18 d3 6b 83 9e 3c d5 4a e4 93 3a d5 29 88 8f da c7 bb 8a 70 c7 2b c0 fc 81 ba 06 50 6f 2d 5b c7 68 6e 21 9b be 52 83 95 9c be f9 95 0e 07 1c b6 d9 f3 41 fc 62 4a 51 10 34 1f 26 ce bd 71 00 59 9a 06 e6 1f 66 fa e1 20 c7 fc 2b 34 c6 22 12 00 eb a7 5b d1 27 71 14 67 1a 3f a8 f0 58 b2 7f d8 97 b0 52 f4 a5 2a fc ea 81 4d f5 26 18 1c 75 c4 49 72 10 a2 b8 b7 4e 26 60 15 61 e7 87 35 38 7c f1 23 65 4b 02 95 d1 d6 05 56 95 6b 36 d9 6d d0 38 86 6c 4b 4d b3 1e bd cd dd 48 29 bb c2 85 0c d4 90 13 89 e6 ea 6e 86 04 1e 0e fa 11 58 f3 34 e7 af da 0e 11 c2 fb 0e 6d f6 36 4c b9 56 59 f5 06 d5 c7 e6 3f b6 7c 81 16 57 7d 15 e4 a4 b1 fc 4c 27 de 2e 52 58 6c b1 f5 2b e9 c3 60 1f 50 66 54 9d e8 bd c3 ec 07 d1 a8 4c af 19 61 32 3e c2 48 7a 37 b7 51 ae ab af cd 64 7c e2 da e5 d9 49 9c 0f 96 94 67 e6 ca ba d1 98 66 9a c9 6b d1 48 89 54 ef f0 85 4e e0 c8 3d 7b 59 6d 27 36 25 bd b1 62 70 78 23 21 07 1f da 5d 98 0d ed 78 ff a9 dc 2b 56 03 7d 7c bf 94 25 47 f4 8a 51 31 f1 99 1f 6c 17 ae 1e d5 12 0c a6 87 8f 98 e6 8e 79 97 a9 a2 b7 0b e6 40 a7 0a 34 ad b8 0d e2 86 c6 69 2a bb 5f 09 2e 4e 3a 15 a8 32 17 e0 3d 02 a4 05 4f 34 af 3a 65 ff 6b 36 f3 95 b7 6a 05 79 cf fa fd 5d 3b b0 e7 04 c9 35 ca ec f3 a7 ab 75 6c 23 fd 60 c9 fe 3f 4f b2 be 75 04 f5 ba e2 2b 11 6f f1 58 8d cf 02 b3 27 d3 1b f0 48 8d ba 8a f5 b3 3c cf 2d 7d 87 f4 3b bc 48 fc d4 f1 91 ad 6a f9 31 3a d3 8b 8b 29 67 4b fa bd 66 51 bc 1f 6c e5 ab b4 a2 f1 41 31 94 f9 6b 26 d7 d6 ed c4 e0 13 fb a5 49 07 5c 97 ee f5 08 af 5c a7 87 36 64 b0 58 b7 bc f4 55 a8 a0 4b 59 1d 29 fa b6 36 6c 84 4b b7 55 76 ba c2 d5 23 23 e7 47 30 3d 00 a5 73 6c 98 12 92 2b 0e 17 bc ec 91 35 55 07 36 b5 4c f6 40 7d 61 e2 2e 62 d7 bb 75 f6 29 35 b6 65 ac f3 3e 75 f6 88 c3 6e f4 16 f1 b8 90 d0 f0 c8 ad 1d f0 0e 02 ec 45 96 78 34 d5 64 9c 8e 71 43 97 86 22 fa 37 04 67 29 70 b7 99 3a 87 e9 7d 3d 92 6a 14 26 56 47 bc 8b 8c 9e 6f 83 e2 95 72 60 8d 24 b4 2c 26 35 ef 4a bb d0 af 83 86 0e 99 c9 0d 74 71 cf 6e 8c e9 95 07 f5 ec 2b c5 72 21 2f a9 ee 3f 5a 9d fa 38 15 fe 55 f0 bb b1 19 ac ce 06 2a e3 7f 2f f9 21 70 7a bb a1 39 bc cd f4 2b fd 17 4d 29 b5 40 16 1b 41 13 c4 e1 a1 3f 3a 62 8c 63 8e c4 d3 a8 84 df bc 09 3e 23 ec 0d 06 71 b4 6b 41 dc 8b 42 d9 50 c8 61 5b a5 ee 87 f4 9b 5d 09 10 ff a4 87 12 07 99 50 01 92 0d b0 5a 95 19 99 67 f0 97 ba 7b 55 bb d2 71 d8 18 69 0c 42 38 40 6b 40 a3 df c4 2f a5 6a 67 17 3b 53 a9 6b 54 33 26 c5 67 38 b6 d0 43 19 59 34 01 86 96 f5 ab 49 34 7e 51 48 a7 8f 2d 13 69 a7 1a fa b8 33 02 73 d4 6e cf ba 4e e0 58 02 a5 38 56 49 85 1d b9 49 db fb 39 e2 90 94 16 41 c5 0b 1a c2 0f b3 10 27 54 a7 60 b0 97 f4 64 dd b0 b8 3f 81 68 ba df a7 1d b6 62 1d cf 22 fb 08 1e 34 03 f3 ba c5 c7 e6 59 05 ac a5 28 85 c8 07 f8 dd ab 18 bb 2f 12 ef 95 2c 50 48 3c 0e 25 19 68 bc 70 ff 0d 42 a6 38 ca 74 4d ea 4c 7e bb 4f ea 77 7c f6 63 bb 4f 15 05 ed 79 73 0c 45 bc 86 e4 88 a1 3f 92 43 77 a8 e2 ee 66 70 a0 2c a5 28 74 ae 1c 42 a3 5d 55 b9 76 57 57 04 7b 2c c3 74 2a a5 1f a3 e4 3f b2 c1 13 c9 2a d2 13 ba d2 52 c1 a8 29 66 dd 01 6f 12 a7 f1 c3 90 0c 0f 1a b4 55 03 51 63 f3 18 99 bd d3 0f 3f f4 3a d1 7d 9e 45 bb 74 38 c1 c9 86 71 27 36 f2 4b e1 4f 71 ab 1b fe 92 a2 5e c0 7f 08 6e e8 c7 97 1b 80 77 a1 3e 58 a8 e8 be a3 9c 8e 06 b2 51 90 9f 02 cb 00 80 ab f0 20 f2 7c a1 60 eb 26 c0 82 dd a1 fa 54 ea 40 94 df db cb 2f a7 bd dc cb 67 a8 44 e8 07 5f 4c c0 8d ad 35 75 70 06 d0 51 e1 83 dc ed 33 6b c0 c2 50 2f 93 ff c8 7d ca 62 22 86 ba 17 4c 24 e1 f5 3f 27 dc 27 77 ba af e1 70 34 8b 0e 8d 3e 74 3b 3a a9 06 bc 07 64 bb e7 da 08 ff 40 3e fe 22 12 62 7d 67 22 50 65 8b b5 13 b7 31 25 17 d1 f8 8c 61 c7 ba 5f 96 47 cd 61 92 81 c5 b3 90 b4 86 06 ee 39 fb 41 71 10 3d f2 e0 9d 7c fd 56 c0 6c 72 1f 7c 24 ad 8c ce 38 36 23 fc 2d cb 15 ac 56 43 8e a3 31 82 0a e5 9c 8c 47 4e 36 fc 73 f7 b1 b3 b8 6d f1 b4 24 90 81 55 13 68 1a af bf 7e 87 1b 4b 96 86 ef ae 6c 45 ec fc a6 0a 64 0a 6f 07 1d fd 31 f9 43 7c 3d 03 08 61 64 b4 8c 1e d8 02 98 68 64 bf e0 d4 9b dd 77 09 66 22 62 36 8d bc 3e cc 05 eb 24 0e cc 41 90 4c 76 d7 8a b5 c5 2b 66 af 5a 72 0f dd 6a 92 f5 2b e0 67 64 27 a5 6e 32 e5 bc 50 85 b2 5f 90 ad d2 8a 76 f2 fc e6 f8 f0 ef 74 f4 65 96 98 54 96 46 bd 63 17 5a df 77 b5 cd cf e6 76 e1 b1 a9 af 15 10 29 46 55 4b a6 13 6c bc 83 c6 26 8e e4 03 18 f3 c9 d4 71 80 25 68 8b 35 d2 26 5b f6 0b f8 89 ff 62 9f 78 34 58 6e f4 6e ab 7a 91 76 33 75 36 bb 60 01 e6 76 54 6b 98 7f 36 b1 fe 4b 9f 6e 46 a8 ce 73 eb 22 eb bb 9c 14 d8 e2 b4 3e a7 7e f8 87 e5 a2 64 48 f4 08 6f a8 19 a2 5e 27 72 5a c1 02 98 85 1c 8b c4 5f 2c e4 43 0b 07 91 7a de 5e a8 c4 34 c3 f2 57 6e ff be b5 21 17 37 36 e5 c9 55 74 50 64 30 68 b0 c0 fb 13 2a 7e 99 de 6c a2 92 24 6a 99 37 fa 7d 7e 06 e5 9c f5 9c e5 b9 f8 42 62 90 49 93 11 46 af 40 a8 a1 25 6b a3 73 a8 8d 09 dc 00 cd f4 45 3c c6 ba 78 57 2b f3 e1 f2 35 2a 97 8c db ad 60 22 0c b8 ac 37 d7 f6 14 a3 06 49 2a 4b 5e ee 92 44 b0 ca 84 b6 cf 2e 23 01 3b fb 1c b9 2b f6 d1 26 fe 55 0e 58 c1 9f 84 e7 a4 08 14 37 b7 5b 31 b2 b9 fb 65 8d cd 8b a0 77 96 2e 0f 33 59 72 1a 14 8d 4f ef e5 c9 79 41 ca 96 88 cb 85 ad f3 8f d1 0f 58 11 cd d8 e0 74 a2 1b bf c9 54 1c 71 46 5b 08 d7 32 12 81 b6 8e d5 2b fa b7 89 b9 c8 38 49 c0 9d 52 37 6d 41 9b 1e 7b a3 67 60 32 36 e1 19 cd f4 a7 b7 cf 9d 81 f2 22 96 01 de ac e5 3c ea 2f 14 a0 5f 7f a0 ca 04 b3 9e 31 c6 45 3e 33 2f 4b d0 91 5c 0e 09 e2 8f 4d 11 25 c3 90 c6 ff 08 33 a0 4b 6f c3 78 55 e6 5d e9 03 33 e5 05 b9 eb 66 e0 06 86 a3 ed 49 9c fb 7b 8b 21 5d bd c9 78 7b 5b aa 72 4c fa 71 ee 67 45 b4 1e 20 3d e8 b7 79 47 57 ac 32 8e c5 56 75 40 b9 51 b5 05 30 c3 d4 ee 34 70 5e a1 c6 6f d6 59 1e 88 56 10 83 e8 6d 48 c4 5e f3 b8 3a 30 29 31 9d 8f 3d 8e 65 ce 14 c1 dc 3c b9 2d 0a 7d be b6 09 a8 d2 79 39 28 ca a0 79 f0 fb bb 2b c9 0b 9f 05 8c c0 48 f4 03 20 41 d1 4c 5b ca 00 e9 9b 30 27 ec 3a 50 c4 95 71 99 cf 01 6a 45 94 06 9a f8 65 9d f0 97 3f 20 ff b1 5d bc 26 5a c5 b8 a2 20 3e 90 b1 14 a3 e9 44 1e 35 7c 60 ce 0b 55 0a 7f e6 6f c3 4f 57 02 ac 8e 89 92 a2 2e 89 19 4c 1d f6 9e 81 a9 b7 ad 3d 26 34 ea 8c 03 88 58 81 92 fd 47 d8 e8 03 b1 00 44 d5 58 61 7f b2 92 1b 69 eb 4d 85 c0 51 f8 6e f6 3a 2f 43 82 b9 be cd 87 0f b2 ec ad ca 69 02 71 2b 88 68 07 92 e2 f2 ec 89 59 1c fe bb 6d b3 ad 31 c2 a3 39 af 10 46 5f cf 79 88 51 9d 38 22 18 df 52 26 12 34 f2 6a 6f 66 ad 0d 18 59 de 50 5d 0f e8 19 ca f2 f8 d3 0a a9 fd 12 28 ac 91 d1 1c a6 7f 1f 8d 50 c8 ee fa 5c 44 15 14 32 15 07 df f6 c6 ea 3c ff 6f 34 0a 1c 11 e0 c4 0f 41 9e 8e 60 fc 94 d8 82 8f a4 7a 96 cd f7 ee 4f 61 e2 3f 40 75 1b 25 cf 9c a1 29 50 41 a3 50 f8 3f 0e 67 95 15 d6 b4 b4 6e 2c 9c e8 99 9e 07 f8 35 ab c1 66 3c ef cf 72 8d f3 78 31 f4 e1 7f 8c 8a 4f ea f1 fb f4 4c 38 c9 31 32 84 40 4a 50 ba 4c d8 ab e8 35 b3 3b fe cb 02 cd 6c 9d 7f 43 58 53 b4 c8 d5 05 ab 83 cf 46 51 27 39 11 66 94 76 56 58 ba e6 4b 31 27 15 2d 21 60 55 ae f9 b2 5c 70 a8 a3 b3 02 75 2d 7b 1e 87 91 c6 57 b9 f3 fc 90 01 ef 29 9f d1 a3 49 49 1a e6 ee 99 40 14 91 60 50 7f c4 13 0f b8 25 d4 7d 97 dc 2c 24 32 09 d2 40 35 83 ac 3e f6 dd be dc aa 76 43 22 55 48 7c 0a 06 e5 9e 04 3e 57 2a b3 ae c0 02 af 6a 6b 6a 2d c9 cf ae ef a7 05 57 88 6c 4d 12 92 4a 03 88 f2 f1 bc 8e 89 e4 cf a6 97 05 d1 ef 3c 46 58 f8 61 62 78 b5 88 01 1d 9d d9 14 be ec 0b 15 1d 65 b6 52 4f ba 3e 3f 23 5d 58 37 3e 02 16 99 b0 76 22 a5 15 04 ea de 74 7e 0b 2f 9c f3 8b c1 67 ca bc 8c b1 8c 70 8d 13 37 e2 56 48 70 7e 8c 08 72 87 65 14 c7 a4 9c 0b 2a ae e5 ed 9e 9e cf cb cc 23 e0 32 c4 de b6 3e 48 e7 12 01 88 05 64 68 fa d3 14 48 e4 b4 2e 7d 62 fb cf c1 c2 cf b0 1f cf 0d b5 e8 a1 62 bd b9 bd 82 0c 76 3f 17 b9 6c 23 f3 2d b9 d1 c1 d7 4d db e6 57 b4 f9 59 5a 97 96 98 2a 07 42 15 31 11 b1 5e 48 4d 8f fe be 47 ce 0a 78 a4 1e 47 0a 34 16 16 ec 2e b6 ee f8 13 fb 41 5f ab 50 fa 96 5b ec 6a 59 77 a0 ad e4 fe d6 7f 86 fc 24 e1 1b 0e 2f 53 64 07 9f 7c 7c 35 b5 60 ca c7 26 db c8 0f 29 db d2 48 f7 ec da 02 86 a2 3e f1 72 a2 8c 96 d9 bd b1 f5 98 ea b3 1c 6b af 03 21 31 2d a2 39 20 c0 74 b9 d2 d2 e4 42 71 7f 2c 21 00 11 42 a3 9c 2d a6 b8 bd 9d 06 b0 5a 6a 8d ea e1 bd 1b e4 10 8a 63 6d db eb c6 82 d1 13 e7 15 f2 f3 ee 50 6a bc 28 b1 c6 54 b3 d2 d2 8e 02 f7 3b 17 1e d0 de ed 71 dd a9 0c e4 a0 b7 28 cc 75 cb 57 63 85 e7 41 8b 54 5b 99 2b 1d d9 8e 2e e5 33 55 f4 64 f9 25 0a 2a 03 b3 d1 e4 d2 ac 1a a7 1d 01 de 25 73 53 03 24 e1 4d 15 a5 07 88 34 11 dd bd 37 be 21 dc 92 9d b9 b1 1f 11 01 0e 4d 2a 04 c7 32 5a 5a e6 d2 4d 19 90 0f f9 7a 8a 89 43 8f 86 76 45 7a 78 cf f0 52 01 52 8f 43 58 fe 67 f6 12 88 bf 04 2a 8f 3c 2e 0f 8b 49 97 b8 fb 74 99 6b 80 d4 65 48 9b 2d 78 07 a9 45 eb a7 2a 94 5e 8c f8 62 5d ba d6 f6 f6 e3 05 37 b2 9e 55 8c a8 a8 b0 62 5f 57 8c 76 6d 34 f2 d2 8d 70 47 15 f9 4d f1 f6 31 8a 30 80 42 aa 49 4b aa 29 56 40 67 9f 1e ab 1e 6a 83 08 af 8c e6 44 1d 5a d8 a2 f3 d4 77 eb 53 07 af 0d fa e6 64 44 93 f1 43 40 30 b8 36 16 21 34 0a d3 dc ef a6 d8 f0 90 ed 39 29 d8 9a d9 c0 ba 01 a6 90 30 33 42 8d d8 f9 86 19 30 4b 18 03 18 7d 2a 61 30 bf 1e 00 9b 5e b0 e7 e2 1c 75 59 4b 3b 84 70 f3 10 6c 92 a9 e5 5b fe b0 26 09 1c ed 12 7a 90 a1 f1 24 7f 3c 07 e3 6d 35 72 92 3e 0d e3 f7 35 18 d0 36 9a 25 fc d4 e6 5d 24 3b 7e ab 91 06 3a 7b fd 8b c8 ac 9e 39 fb bb 32 b5 c9 51 78 86 28 7a 18 ea cd 8d bf da 9b 91 db 69 3c b1 2e 42 cb a5 98 82 80 e0 9e 51 e7 2b 91 a0 f3 60 65 6d 8f 21 cc 1e b3 24 8a c3 45 ad 51 d1 a6 17 2b 18 41 92 77 85 1d ab 01 e0 28 c7 e8 e2 cf 34 09 5e fd 28 26 78 52 a0 8f cc f6 1c 45 b5 e4 69 30 16 0d af 50 28 2b e0 58 27 4e 7f f5 8c 48 b6 0b 86 d0 c8 cc 88 6a b8 77 8a 2a 2b 5f a2 55 7a d7 bf 7f 01 f2 17 55 23 ce 75 88 71 d3 34 c2 0a 98 39 f7 a8 9f e2 86 7c 06 28 9c 8a 2f 64 56 ac 7e 4f ba de e5 3a c4 1a ee 68 21 4b c7 66 69 85 3b aa 4f 58 25 5b 39 ba 58 14 14 f2 e8 c4 b4 93 03 f8 93 6a 33 ba e5 cb c9 6b 29 a5 c7 24 d5 b5 0e 16 14 14 4c 2a cd 03 bd 90 de 89 1c 3d 36 ce 04 0d 57 54 36 82 ec bf ca e6 6c 41 53 c3 37 c3 a5 d0 18 96 52 4c 8e 0c 27 e9 a0 89 19 82 1c a2 7b bf e3 fc 9b a2 4a 82 3a ee c8 d4 ad 8e f8 a6 5c 58 5b ee 4d cf 1a ca a3 da 50 1a 8c 11 a2 3b 2e 22 92 0c 1a d0 12 9a 03 8b 31 fe 16 c2 ab c8 05 89 db f7 c3 72 11 af c5 d1 a6 db 90 8b c5 fe 8a 69 20 60 06 9f cb cd cb a7 c5 23 d3 c4 24 aa 3b 0c 65 56 38 7e 0e 51 bc de 9e 5f 85 0a bf 62 d2 c2 10 1c 3a 27 86 a0 cb 94 93 28 77 a0 9c b6 b6 4a a6 1d a8 ca b3 b4 23 e7 ad c4 c4 70 04 18 a6 5e 87 22 57 10 e1 69 1f 6d 9c b2 eb 63 cc e5 b6 05 ce 0a 4a 89 cf 51 97 67 e0 08 45 39 7c 5e 38 11 41 a0 ed 8a 89 b0 10 64 b4 95 ec 8d 1e 2d a3 74 33 bf 15 97 d9 19 a6 96 10 d2 ad 26 bd f6 fc a8 de 42 2b b2 cb 80 d0 51 62 06 e8 19 4e e5 14 45 a3 dc b5 de e3 3c 0c 31 0b 47 51 e6 8e 58 be bd a2 fb 58 69 85 a5 a5 b0 64 56 75 6f 44 e6 db fe f4 bb 99 ca 73 2f 00 fb 9e a3 57 75 f7 41 96 81 bf be 6f 43 dc 7c 46 50 c1 3b 63 d9 3c 1d 49 0b f0 17 3f 28 7a 43 09 53 1f 13 ec b1 a7 75 d0 bd 88 1a} (length 0x1000)
//          size: len = 0x1000 (2 bytes)
//        }
//      }
//    }
//    len: len = 0x1006 (8 bytes)
//  ]
*(uint32_t*)0x200000000940 = 8;
memcpy((void*)0x200000000944, "... [truncated large byte array] ...", 4096);
*(uint16_t*)0x200000001944 = 0x1000;
	syscall(__NR_write, /*fd=*/r[0], /*data=*/0x200000000940ul, /*len=*/0x1006ul);
//  mmap arguments: [
//    addr: VMA[0x4000]
//    len: len = 0x4000 (4 bytes)
//    prot: mmap_prot = 0x1 (8 bytes)
//    flags: mmap_flags = 0x10012 (8 bytes)
//    fd: fd (resource)
//    offset: intptr = 0x0 (8 bytes)
//  ]
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x4000, /*prot=PROT_READ*/1ul, /*flags=MAP_NONBLOCK|MAP_FIXED|MAP_PRIVATE*/0x10012ul, /*fd=*/r[0], /*offset=*/0ul);
	return 0;
}



Reply:
**Bug Analysis:**

The bug is a `WARN_ON_ONCE` triggered in `fs/iomap/buffered-io.c:ifs_free()`. The warning asserts that the folio's uptodate state matches the iomap sub-block state:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

This mismatch occurs because the `ntfs3` filesystem mixes `iomap` infrastructure with direct page cache manipulation. When a file is written to or read from, `iomap` allocates an `iomap_folio_state` (`ifs`) to track per-block uptodate bits (used when the filesystem cluster size is smaller than the page size). However, in certain paths (like handling compressed attributes or resident-to-nonresident conversions), `ntfs3` directly calls `folio_mark_uptodate(folio)` or `SetPageUptodate(pg)`. This sets the folio-level uptodate flag but fails to update the underlying `ifs->state` bitmap. Later, when the file is closed, truncated, or unmounted, the folio is invalidated, and `ifs_free()` detects the discrepancy and triggers the warning.

**Security Impact:**

*   **Exploitable:** No. This is purely a high-level state bookkeeping mismatch between the generic page cache flag and the iomap sub-block bitmap. After the warning is emitted, `ifs_free()` proceeds to safely free the `ifs` structure via `kfree(ifs)`. There is no memory corruption, use-after-free, double free, or out-of-bounds access. It also does not leak uninitialized kernel memory to userspace.
*   **Denial of Service:** No. In production kernels (where `panic_on_warn` is disabled), the `WARN_ON_ONCE` simply prints a stack trace and execution continues normally. It does not cause a crash, hang, deadlock, or resource leak.
*   **Accessible From Unprivileged Processes / User Namespaces:** No. Triggering this bug requires mounting a crafted `ntfs3` filesystem image. The `mount` syscall requires `CAP_SYS_ADMIN`. Furthermore, the `ntfs3` filesystem type (`ntfs_fs_type`) does not have the `FS_USERNS_MOUNT` flag set in its `.fs_flags`. This means it cannot be mounted inside a user namespace, even if the user has full capabilities within that namespace.
*   **Malicious Filesystem Trigger:** Yes. The bug is triggered by parsing and interacting with a maliciously crafted NTFS filesystem image. This could be relevant in desktop environments that automatically mount inserted USB drives.

6/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25792
							output: 23
							thoughts: 495
						

Thoughts:
**Investigating a Potential Data Integrity Issue in Buffered I/O**

Okay, here's what's running through my head. I've got a `WARNING` popping up, and it's flagged as potentially problematic: `ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)` within `fs/iomap/buffered-io.c:295`, specifically inside the `ifs_free` function. That's immediately interesting, because those functions are the building blocks of understanding if a buffer is flushed to disk.

The bug report snippet clearly highlights the failure: the two functions should return the same result. The stack trace is particularly telling; it's showing `truncate_inode_pages_range` in the call path, which is something to be aware of. `ntfs_evict_inode` and then `generic_shutdown_super`, `kill_block_super`, and finally `ntfs3_kill_sb` are also on the stack. Essentially, a folio is being invalidated due to truncation and the superblock is eventually being killed. This strongly suggests that there's a problem with how we're handling buffered I/O during a filesystem unmount/shutdown, particularly with how we are truncating data. A discrepancy between the flags or data indicates that the metadata or data is not correctly being flushed before a folio is freed, causing a data integrity issue.

Time to dive into `fs/iomap/buffered-io.c:295` and see what's happening in `ifs_free`. We need to understand the conditions under which these two functions are diverging and why we are seeing a potentially out-of-sync state when freeing the `ifs`. I'm guessing there's a race condition or a subtle logic error in how we're tracking the 'uptodate' status of the folio in relation to the `ifs` structure, which handles buffered I/O.



7/2 2026/09/18 00:47 tool grepper
0m Args:
map[Expression:ifs_is_fully_uptodate]

Results:
map[Output:fs/iomap/buffered-io.c=22=struct iomap_folio_state {
--
fs/iomap/buffered-io.c-34-
fs/iomap/buffered-io.c:35:static inline bool ifs_is_fully_uptodate(struct folio *folio,
fs/iomap/buffered-io.c-36-		struct iomap_folio_state *ifs)
--
fs/iomap/buffered-io.c=67=static bool ifs_set_range_uptodate(struct folio *folio,
--
fs/iomap/buffered-io.c-77-	}
fs/iomap/buffered-io.c:78:	return ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c-79-}
--
fs/iomap/buffered-io.c=286=static void ifs_free(struct folio *folio)
--
fs/iomap/buffered-io.c-293-	WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
fs/iomap/buffered-io.c:294:	WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
fs/iomap/buffered-io.c-295-			folio_test_uptodate(folio));
--
fs/iomap/buffered-io.c=510=static void iomap_read_end(struct folio *folio, size_t bytes_submitted)
--
fs/iomap/buffered-io.c-538-		if (end_read)
fs/iomap/buffered-io.c:539:			uptodate = ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c-540-		spin_unlock_irq(&ifs->state_lock);
]

8/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27218
							output: 38
							thoughts: 91
						

Thoughts:
**Analyzing a Warning in `ifs_free`**

Okay, so I'm seeing this warning, `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));` pop up in the `ifs_free` function. Now, `ifs_free`... that's triggered when `folio_detach_private` gets called, right? And `folio_detach_private` is a consequence of either `folio_invalidate` or `folio_free` executing. So the potential issue seems to be tied to the lifecycle of these folios and their associated `ifs` structures.

The key here is understanding the context: the check is comparing two ways to determine if a folio is up to date, and a mismatch is flagged. It's time to delve into the source code for `ifs_free` and understand what these functions, `ifs_is_fully_uptodate` and `folio_test_uptodate`, are actually doing. I need to figure out the specific conditions that could lead to this warning firing. Are we seeing a race condition somewhere, or a logic error related to the update status tracking? Let's take a closer look.



9/2 2026/09/18 00:47 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_free]

Results:
map[SourceCode: 286:	static void ifs_free(struct folio *folio)
 287:	{
 288:		struct iomap_folio_state *ifs = folio_detach_private(folio);
 289:	
 290:		if (!ifs)
 291:			return;
 292:		WARN_ON_ONCE(ifs->read_bytes_pending != 0);
 293:		WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
 294:		WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
 295:				folio_test_uptodate(folio));
 296:		kfree(ifs);
 297:	}
 SourceFile:fs/iomap/buffered-io.c]

10/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27840
							output: 18
							thoughts: 508
						

Thoughts:
**Analyzing a Filesystem Uptodate Mismatch**

Okay, so I'm seeing a warning flag that the "ifs" uptodate state isn't syncing with the "folio" uptodate state. Right away, this signals a potential issue, most likely stemming from an unmount or an inode being evicted. My initial thought is to dive into how this is being reproduced. The reproducer mounts an `ntfs3` image, opens a file, writes to it, mmaps it, and then exits. This unmount/eviction sequence is a classic red flag.

Hold on, I need to check something... It seems the reproducer mounts `ntfs3`, but then it attempts to open `cpu.stat`. That's a cgroupfs file, not part of `ntfs3`. Wait a second! The `openat` call uses `fd=0xffffff9c`, which resolves to `AT_FDCWD`. The path is just "cpu.stat."... the reproducer *does* have `chdir=1` in `syz_mount_image`, so it's `chdir`ing into the mounted `ntfs3` image! So, `cpu.stat` could be a file within the ntfs3 image!

Okay, let's look at the `openat` call: `openat(AT_FDCWD, "cpu.stat", 0x275a, 0)`. That `0x275a` is a combination of flags. I need to break that down.

Let's see: I have a hunch it's `O_RDWR | O_CREAT | O_TRUNC | O_APPEND`. Let me quickly check the math...
0x275a = 0x2000 (O_APPEND) | 0x400 (O_TRUNC) | 0x200 (O_CREAT) | 0x100 (O_EXCL?) | 0x40 (O_CREAT?) | 0x10 | 0x8 | 0x2 (O_RDWR)
Let me cross-check with my header definitions to ensure the flags.
`O_RDWR` is 2. `O_CREAT` is 0x40. `O_TRUNC` is 0x200. `O_APPEND` is 0x400. `O_NONBLOCK` is 0x800. `O_SYNC` is 0x1000. `O_DIRECT` is 0x4000.
I have a different flag list: 0x275a = 0x2000 | 0x400 | 0x200 | 0x100 | 0x40 | 0x10 | 0x8 | 0x2.

Now, let's verify what the flags are.




11/2 2026/09/18 00:47 tool grepper
0m Args:
map[Expression:O_RDWR]

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

Documentation/ABI/stable/firewire-cdev=5=Description:
--
Documentation/ABI/stable/firewire-cdev-64-		open(2)
Documentation/ABI/stable/firewire-cdev:65:		    Currently the only useful flags are O_RDWR.
Documentation/ABI/stable/firewire-cdev-66-
--
Documentation/ABI/testing/gpio-cdev=5=Description:
--
Documentation/ABI/testing/gpio-cdev-15-		open(2)
Documentation/ABI/testing/gpio-cdev:16:		  Currently the only useful flags are O_RDWR.
Documentation/ABI/testing/gpio-cdev-17-
--
Documentation/accounting/psi.rst=121=Userspace monitor usage example
--
Documentation/accounting/psi.rst-141-
Documentation/accounting/psi.rst:142:	fds.fd = open("/proc/pressure/memory", O_RDWR | O_NONBLOCK);
Documentation/accounting/psi.rst-143-	if (fds.fd < 0) {
--
Documentation/admin-guide/media/si4713.rst=145=ioctl the device node. Here is an code of example:
--
Documentation/admin-guide/media/si4713.rst-151-		struct si4713_rnl rnl;
Documentation/admin-guide/media/si4713.rst:152:		int fd = open("/dev/radio0", O_RDWR);
Documentation/admin-guide/media/si4713.rst-153-		int rval;
--
Documentation/arch/powerpc/vas-api.rst=259=Simple example
--
Documentation/arch/powerpc/vas-api.rst-269-
Documentation/arch/powerpc/vas-api.rst:270:			fd = open("/dev/crypto/nx-gzip", O_RDWR);
Documentation/arch/powerpc/vas-api.rst-271-			if (fd < 0) {
--
Documentation/arch/sparc/oradax/oracle-dax.rst=275=procedure is to attempt to open both, as only one will succeed::
Documentation/arch/sparc/oradax/oracle-dax.rst-276-
Documentation/arch/sparc/oradax/oracle-dax.rst:277:	fd = open("/dev/oradax1", O_RDWR);
Documentation/arch/sparc/oradax/oracle-dax.rst-278-	if (fd < 0)
Documentation/arch/sparc/oradax/oracle-dax.rst:279:		fd = open("/dev/oradax2", O_RDWR);
Documentation/arch/sparc/oradax/oracle-dax.rst-280-	if (fd < 0)
--
Documentation/arch/x86/amd_hsmp.rst=167=Next thing, open the device file, as follows::
--
Documentation/arch/x86/amd_hsmp.rst-170-
Documentation/arch/x86/amd_hsmp.rst:171:  file = open("/dev/hsmp", O_RDWR);
Documentation/arch/x86/amd_hsmp.rst-172-  if (file < 0) {
--
Documentation/dev-tools/kcov.rst=47=single syscall from within a test program:
--
Documentation/dev-tools/kcov.rst-78-	 */
Documentation/dev-tools/kcov.rst:79:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/dev-tools/kcov.rst-80-	if (fd == -1)
--
Documentation/dev-tools/kcov.rst=143=Comparison operands collection is similar to coverage collection:
--
Documentation/dev-tools/kcov.rst-168-
Documentation/dev-tools/kcov.rst:169:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/dev-tools/kcov.rst-170-	if (fd == -1)
--
Documentation/dev-tools/kcov.rst=294=local tasks spawned by the process and the global task that handles USB bus #1:
--
Documentation/dev-tools/kcov.rst-337-
Documentation/dev-tools/kcov.rst:338:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/dev-tools/kcov.rst-339-	if (fd == -1)
--
Documentation/driver-api/cxl/allocation/dax.rst=15=alignment, which is typically 2MB - but maybe be configured larger.
--
Documentation/driver-api/cxl/allocation/dax.rst-33-      /* Open the DAX device */
Documentation/driver-api/cxl/allocation/dax.rst:34:      fd = open(DEVICE_PATH, O_RDWR);
Documentation/driver-api/cxl/allocation/dax.rst-35-      if (fd < 0) {
--
Documentation/driver-api/issei/issei.rst=46=A code snippet for an application communicating with SPDM client:
--
Documentation/driver-api/issei/issei.rst-56-        size_t res_data_len = sizeof(res_data);
Documentation/driver-api/issei/issei.rst:57:        int fd = open("/dev/issei0", O_RDWR);
Documentation/driver-api/issei/issei.rst-58-
--
Documentation/driver-api/serial/serial-iso7816.rst=2=ISO7816 Serial Communications
--
Documentation/driver-api/serial/serial-iso7816.rst-46-	/* Open your specific device (e.g., /dev/mydevice): */
Documentation/driver-api/serial/serial-iso7816.rst:47:	int fd = open ("/dev/mydevice", O_RDWR);
Documentation/driver-api/serial/serial-iso7816.rst-48-	if (fd < 0) {
--
Documentation/driver-api/serial/serial-rs485.rst=2=RS485 Serial Communications
--
Documentation/driver-api/serial/serial-rs485.rst-66-	/* Open your specific device (e.g., /dev/mydevice): */
Documentation/driver-api/serial/serial-rs485.rst:67:	int fd = open ("/dev/mydevice", O_RDWR);
Documentation/driver-api/serial/serial-rs485.rst-68-	if (fd < 0) {
--
Documentation/driver-api/tty/n_gsm.rst=18=Config Initiator
--
Documentation/driver-api/tty/n_gsm.rst-54-      /* open the serial port connected to the modem */
Documentation/driver-api/tty/n_gsm.rst:55:      fd = open(SERIAL_PORT, O_RDWR | O_NOCTTY | O_NDELAY);
Documentation/driver-api/tty/n_gsm.rst-56-
--
Documentation/driver-api/tty/n_gsm.rst=119=Config Requester
--
Documentation/driver-api/tty/n_gsm.rst-151-	/* open the serial port */
Documentation/driver-api/tty/n_gsm.rst:152:	fd = open(SERIAL_PORT, O_RDWR | O_NOCTTY | O_NDELAY);
Documentation/driver-api/tty/n_gsm.rst-153-
--
Documentation/driver-api/uio-howto.rst=596=Here is some sample userspace driver code using uio_pci_generic::
--
Documentation/driver-api/uio-howto.rst-619-        }
Documentation/driver-api/uio-howto.rst:620:        configfd = open("/sys/class/uio/uio0/device/config", O_RDWR);
Documentation/driver-api/uio-howto.rst-621-        if (configfd < 0) {
--
Documentation/driver-api/vfio.rst=167=group and can access them as follows::
--
Documentation/driver-api/vfio.rst-176-	/* Create a new container */
Documentation/driver-api/vfio.rst:177:	container = open("/dev/vfio/vfio", O_RDWR);
Documentation/driver-api/vfio.rst-178-
--
Documentation/driver-api/vfio.rst-185-	/* Open the group */
Documentation/driver-api/vfio.rst:186:	group = open("/dev/vfio/26", O_RDWR);
Documentation/driver-api/vfio.rst-187-
--
Documentation/driver-api/vfio.rst=322=Finally the user could get cdev fd by::
Documentation/driver-api/vfio.rst-323-
Documentation/driver-api/vfio.rst:324:	cdev_fd = open("/dev/vfio/devices/vfio0", O_RDWR);
Documentation/driver-api/vfio.rst-325-
--
Documentation/driver-api/vfio.rst=329=IOMMUFD IOAS/HWPT to enable userspace DMA::
--
Documentation/driver-api/vfio.rst-350-
Documentation/driver-api/vfio.rst:351:	iommufd = open("/dev/iommu", O_RDWR);
Documentation/driver-api/vfio.rst-352-
--
Documentation/fault-injection/fault-injection.rst=555=capabilities in the socketpair() system call::
--
Documentation/fault-injection/fault-injection.rst-574-	sprintf(buf, "/proc/self/task/%ld/fail-nth", syscall(SYS_gettid));
Documentation/fault-injection/fault-injection.rst:575:	fail_nth = open(buf, O_RDWR);
Documentation/fault-injection/fault-injection.rst-576-	for (i = 1;; i++) {
--
Documentation/filesystems/dlmfs.rst=107=O_RDONLY      Shared Read
Documentation/filesystems/dlmfs.rst:108:O_RDWR        Exclusive
Documentation/filesystems/dlmfs.rst-109-============  ===========================
--
Documentation/filesystems/dlmfs.rst=115=O_NONBLOCK    Trylock operation
--
Documentation/filesystems/dlmfs.rst-117-
Documentation/filesystems/dlmfs.rst:118:You must provide exactly one of O_RDONLY or O_RDWR.
Documentation/filesystems/dlmfs.rst-119-
--
Documentation/filesystems/path-lookup.txt=229=ladder of snapshots to walk down.
--
Documentation/filesystems/path-lookup.txt-239-
Documentation/filesystems/path-lookup.txt:240:So when vi wants to open("/home/npiggin/test.c", O_RDWR), then it will
Documentation/filesystems/path-lookup.txt-241-start from current->fs->root, which is a pinned dentry. Alternatively,
--
Documentation/filesystems/resctrl.rst=1463=exposing the pseudo-locked region will exist::
--
Documentation/filesystems/resctrl.rst-1510-
Documentation/filesystems/resctrl.rst:1511:    dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR);
Documentation/filesystems/resctrl.rst-1512-    if (dev_fd < 0) {
--
Documentation/i2c/dev-interface.rst=35=Next thing, open the device file, as follows::
--
Documentation/i2c/dev-interface.rst-41-  snprintf(filename, 19, "/dev/i2c-%d", adapter_nr);
Documentation/i2c/dev-interface.rst:42:  file = open(filename, O_RDWR);
Documentation/i2c/dev-interface.rst-43-  if (file < 0) {
--
Documentation/i2c/functionality.rst=140=below::
--
Documentation/i2c/functionality.rst-142-  int file;
Documentation/i2c/functionality.rst:143:  if (file = open("/dev/i2c-0", O_RDWR) < 0) {
Documentation/i2c/functionality.rst-144-	/* Some kind of error handling */
--
Documentation/input/ff.rst=155=Control of playing is done with write(). Below is an example:
--
Documentation/input/ff.rst-166-   ...
Documentation/input/ff.rst:167:	fd = open("/dev/input/eventXX", O_RDWR);
Documentation/input/ff.rst-168-   ...
--
Documentation/misc-devices/amd-sbi.rst=141=Next thing, open the device file, as follows::
--
Documentation/misc-devices/amd-sbi.rst-144-
Documentation/misc-devices/amd-sbi.rst:145:  file = open("/dev/sbrmi-*", O_RDWR);
Documentation/misc-devices/amd-sbi.rst-146-  if (file < 0) {
--
Documentation/misc-devices/amd-sbi.rst=151=To open SB-TSI device::
--
Documentation/misc-devices/amd-sbi.rst-154-
Documentation/misc-devices/amd-sbi.rst:155:  file = open("/dev/sbtsi-4c", O_RDWR);
Documentation/misc-devices/amd-sbi.rst-156-  if (file < 0) {
--
Documentation/networking/cdc_mbim.rst=132=userspace.
--
Documentation/networking/cdc_mbim.rst-143-		__u16 max;
Documentation/networking/cdc_mbim.rst:144:		int fd = open("/dev/cdc-wdm0", O_RDWR);
Documentation/networking/cdc_mbim.rst-145-		if (!ioctl(fd, IOCTL_WDM_MAX_COMMAND, &max))
--
Documentation/networking/l2tp.rst=424=L2TP control packets will still be available for read on `tunnel_fd`.
--
Documentation/networking/l2tp.rst-439-
Documentation/networking/l2tp.rst:440:        ppp_chan_fd = open("/dev/ppp", O_RDWR);
Documentation/networking/l2tp.rst-441-        if (ppp_chan_fd < 0)
--
Documentation/networking/l2tp.rst=452=LCP PPP frames will be available for read on `ppp_chan_fd`.
--
Documentation/networking/l2tp.rst-463-
Documentation/networking/l2tp.rst:464:        ppp_if_fd = open("/dev/ppp", O_RDWR);
Documentation/networking/l2tp.rst-465-        if (ppp_if_fd < 0)
--
Documentation/networking/l2tp.rst=486=SIOCSIFDSTADDR, SIOCSIFNETMASK, SIOCSIFFLAGS, or with the `ip` command.
--
Documentation/networking/l2tp.rst-508-
Documentation/networking/l2tp.rst:509:        ppp_chan_fd = open("/dev/ppp", O_RDWR);
Documentation/networking/l2tp.rst-510-        if (ppp_chan_fd < 0)
--
Documentation/networking/tuntap.rst=87=Note that the character pointer becomes overwritten with the real device name
--
Documentation/networking/tuntap.rst-97-
Documentation/networking/tuntap.rst:98:      if( (fd = open("/dev/net/tun", O_RDWR)) < 0 )
Documentation/networking/tuntap.rst-99-	 return tun_alloc_old(dev);
--
Documentation/networking/tuntap.rst=141=queue which could be accessed by userspace.
--
Documentation/networking/tuntap.rst-166-      for (i = 0; i < queues; i++) {
Documentation/networking/tuntap.rst:167:	  if ((fd = open("/dev/net/tun", O_RDWR)) < 0)
Documentation/networking/tuntap.rst-168-	     goto err;
--
Documentation/security/landlock.rst=80=operations have the same semantic and should then have the same result:
--
Documentation/security/landlock.rst-84-
Documentation/security/landlock.rst:85:Similarly to file access modes (e.g. ``O_RDWR``), Landlock access rights
Documentation/security/landlock.rst-86-attached to file descriptors are retained even if they are passed between
--
Documentation/sound/cards/multisound.sh=491=X
Documentation/sound/cards/multisound.sh:492:X	if ((fd = open(argv[1], O_RDWR)) < 0) {
Documentation/sound/cards/multisound.sh-493-X		perror(argv[1]);
--
Documentation/sound/cards/multisound.sh=1105=X
Documentation/sound/cards/multisound.sh:1106:X	if ((fd = open(argv[1], O_RDWR)) < 0) {
Documentation/sound/cards/multisound.sh-1107-X		perror(argv[1]);
--
Documentation/sound/designs/oss-emulation.rst=312=number of channels different in each direction.  Thus
--
Documentation/sound/designs/oss-emulation.rst-314-
Documentation/sound/designs/oss-emulation.rst:315:	io_handle = open("device", O_RDWR)
Documentation/sound/designs/oss-emulation.rst-316-
--
Documentation/sound/utimers.rst=61=So, the example code for creating and triggering the timer would be:
--
Documentation/sound/utimers.rst-70-
Documentation/sound/utimers.rst:71:    int timer_device_fd = open("/dev/snd/timer",  O_RDWR | O_CLOEXEC);
Documentation/sound/utimers.rst-72-
--
Documentation/target/tcmu-design.rst=304=a) Discovering and configuring TCMU UIO devices::
--
Documentation/target/tcmu-design.rst-330-
Documentation/target/tcmu-design.rst:331:      dev_fd = open("/dev/uio0", O_RDWR);
Documentation/target/tcmu-design.rst-332-      map = mmap(NULL, map_len, PROT_READ|PROT_WRITE, MAP_SHARED, dev_fd, 0);
--
Documentation/translations/zh_CN/accounting/psi.rst=87=psi接口提供的均值即可。
--
Documentation/translations/zh_CN/accounting/psi.rst-111-
Documentation/translations/zh_CN/accounting/psi.rst:112:        fds.fd = open("/proc/pressure/memory", O_RDWR | O_NONBLOCK);
Documentation/translations/zh_CN/accounting/psi.rst-113-        if (fds.fd < 0) {
--
Documentation/translations/zh_CN/dev-tools/kcov.rst=28=KCOV 依赖编译器插桩,要求 GCC 6.1.0 及更高版本或者内核支持的任意版本的 Clang。
--
Documentation/translations/zh_CN/dev-tools/kcov.rst-78-	 */
Documentation/translations/zh_CN/dev-tools/kcov.rst:79:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/translations/zh_CN/dev-tools/kcov.rst-80-	if (fd == -1)
--
Documentation/translations/zh_CN/dev-tools/kcov.rst-167-
Documentation/translations/zh_CN/dev-tools/kcov.rst:168:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/translations/zh_CN/dev-tools/kcov.rst-169-	if (fd == -1)
--
Documentation/translations/zh_CN/dev-tools/kcov.rst=257=KCOV 对全局句柄和通用句柄均遵循一个预定义的格式。每一个句柄都是一个 ``u64`` 整形
--
Documentation/translations/zh_CN/dev-tools/kcov.rst-316-
Documentation/translations/zh_CN/dev-tools/kcov.rst:317:	fd = open("/sys/kernel/debug/kcov", O_RDWR);
Documentation/translations/zh_CN/dev-tools/kcov.rst-318-	if (fd == -1)
--
Documentation/translations/zh_CN/security/landlock.rst=71=ftruncate调用截断由此产生的文件描述符。
--
Documentation/translations/zh_CN/security/landlock.rst-76-
Documentation/translations/zh_CN/security/landlock.rst:77:与文件访问模式类似(例如O_RDWR),即使文件描述符在进程之间传递
Documentation/translations/zh_CN/security/landlock.rst-78-(例如通过Unix域套接字),文件描述符中的Landlock访问权限也会被保留。
--
Documentation/usb/gadget_hid.rst=126=Sample code::
--
Documentation/usb/gadget_hid.rst-390-
Documentation/usb/gadget_hid.rst:391:	if ((fd = open(filename, O_RDWR, 0666)) == -1) {
Documentation/usb/gadget_hid.rst-392-		perror(filename);
--
Documentation/usb/gadget_printer.rst=153=Example Code
--
Documentation/usb/gadget_printer.rst-210-	/* Open device file for printer gadget. */
Documentation/usb/gadget_printer.rst:211:	fd[0].fd = open(PRINTER_FILE, O_RDWR);
Documentation/usb/gadget_printer.rst-212-	if (fd[0].fd < 0) {
--
Documentation/usb/gadget_printer.rst-260-	/* Open device file for printer gadget. */
Documentation/usb/gadget_printer.rst:261:	fd[0].fd = open (PRINTER_FILE, O_RDWR);
Documentation/usb/gadget_printer.rst-262-	if (fd[0].fd < 0) {
--
Documentation/usb/gadget_printer.rst-321-	/* Open device file for printer gadget. */
Documentation/usb/gadget_printer.rst:322:	fd = open(PRINTER_FILE, O_RDWR|O_NONBLOCK);
Documentation/usb/gadget_printer.rst-323-	if (fd < 0) {
--
Documentation/usb/gadget_printer.rst-354-	/* Open device file for printer gadget. */
Documentation/usb/gadget_printer.rst:355:	fd = open(PRINTER_FILE, O_RDWR);
Documentation/usb/gadget_printer.rst-356-	if (fd < 0) {
--
Documentation/usb/gadget_printer.rst-388-	/* Open device file for printer gadget. */
Documentation/usb/gadget_printer.rst:389:	fd = open(PRINTER_FILE, O_RDWR);
Documentation/usb/gadget_printer.rst-390-
--
Documentation/usb/usbdevfs-drop-permissions.c=56=int main(int argc, char *argv[])
--
Documentation/usb/usbdevfs-drop-permissions.c-60-
Documentation/usb/usbdevfs-drop-permissions.c:61:	fd = open(argv[1], O_RDWR);
Documentation/usb/usbdevfs-drop-permissions.c-62-	if (fd < 0) {
--
Documentation/userspace-api/media/cec/cec-func-open.rst=24=Arguments
--
Documentation/userspace-api/media/cec/cec-func-open.rst-30-``flags``
Documentation/userspace-api/media/cec/cec-func-open.rst:31:    Open flags. Access mode must be ``O_RDWR``.
Documentation/userspace-api/media/cec/cec-func-open.rst-32-
--
Documentation/userspace-api/media/dvb/ca-fopen.rst=20=Arguments
--
Documentation/userspace-api/media/dvb/ca-fopen.rst-38-
Documentation/userspace-api/media/dvb/ca-fopen.rst:39:    -  - ``O_RDWR``
Documentation/userspace-api/media/dvb/ca-fopen.rst-40-       - read/write access
--
Documentation/userspace-api/media/dvb/ca-fopen.rst=58=standard system call, documented in the Linux manual page for fcntl.
Documentation/userspace-api/media/dvb/ca-fopen.rst:59:Only one user can open the CA Device in ``O_RDWR`` mode. All other
Documentation/userspace-api/media/dvb/ca-fopen.rst-60-attempts to open the device in this mode will fail, and an error code
--
Documentation/userspace-api/media/dvb/dmx-expbuf.rst=45=for open() for details. Currently only O_CLOEXEC, O_RDONLY, O_WRONLY,
Documentation/userspace-api/media/dvb/dmx-expbuf.rst:46:and O_RDWR are supported.
Documentation/userspace-api/media/dvb/dmx-expbuf.rst-47-All other fields must be set to zero. In the
--
Documentation/userspace-api/media/dvb/dmx-fopen.rst=20=Arguments
--
Documentation/userspace-api/media/dvb/dmx-fopen.rst-40-    -
Documentation/userspace-api/media/dvb/dmx-fopen.rst:41:       - ``O_RDWR``
Documentation/userspace-api/media/dvb/dmx-fopen.rst-42-       - read/write access
--
Documentation/userspace-api/media/dvb/dvbproperty.rst=69=The code that would that would do the above is show in
--
Documentation/userspace-api/media/dvb/dvbproperty.rst-96-    {
Documentation/userspace-api/media/dvb/dvbproperty.rst:97:	int fd = open("/dev/dvb/adapter0/frontend0", O_RDWR);
Documentation/userspace-api/media/dvb/dvbproperty.rst-98-
--
Documentation/userspace-api/media/dvb/frontend_f_open.rst=24=Arguments
--
Documentation/userspace-api/media/dvb/frontend_f_open.rst-30-``flags``
Documentation/userspace-api/media/dvb/frontend_f_open.rst:31:    Open flags. Access can either be ``O_RDWR`` or ``O_RDONLY``.
Documentation/userspace-api/media/dvb/frontend_f_open.rst-32-
--
Documentation/userspace-api/media/dvb/frontend_f_open.rst-35-
Documentation/userspace-api/media/dvb/frontend_f_open.rst:36:    Only one open is allowed in ``O_RDWR``. In this mode, all ioctls are
Documentation/userspace-api/media/dvb/frontend_f_open.rst-37-    allowed.
--
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst=1448=Arguments
--
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst-1474-
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst:1475:       -  ``O_RDWR``
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst-1476-
--
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst=1496=the Linux manual page for fcntl. Only one user can open the Audio Device
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst:1497:in O_RDWR mode. All other attempts to open the device in this mode will
Documentation/userspace-api/media/dvb/legacy_dvb_audio.rst-1498-fail, and an error code will be returned. If the Audio Device is opened
--
Documentation/userspace-api/media/dvb/legacy_dvb_osd.rst=767=Arguments
--
Documentation/userspace-api/media/dvb/legacy_dvb_osd.rst-793-
Documentation/userspace-api/media/dvb/legacy_dvb_osd.rst:794:       -  ``O_RDWR``
Documentation/userspace-api/media/dvb/legacy_dvb_osd.rst-795-
--
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst=2226=Arguments
--
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst-2252-
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst:2253:       -  ``O_RDWR``
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst-2254-
--
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst=2275=system call, documented in the Linux manual page for fcntl. Only one
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst:2276:user can open the Video Device in O_RDWR mode. All other attempts to
Documentation/userspace-api/media/dvb/legacy_dvb_video.rst-2277-open the device in this mode will fail, and an error-code will be
--
Documentation/userspace-api/media/mediactl/media-func-open.rst=24=Arguments
--
Documentation/userspace-api/media/mediactl/media-func-open.rst-30-``flags``
Documentation/userspace-api/media/mediactl/media-func-open.rst:31:    Open flags. Access mode must be either ``O_RDONLY`` or ``O_RDWR``.
Documentation/userspace-api/media/mediactl/media-func-open.rst-32-    Other flags have no effect.
--
Documentation/userspace-api/media/v4l/capture.c.rst=4=file: media/v4l/capture.c
--
Documentation/userspace-api/media/v4l/capture.c.rst-554-
Documentation/userspace-api/media/v4l/capture.c.rst:555:	    fd = open(dev_name, O_RDWR /* required */ | O_NONBLOCK, 0);
Documentation/userspace-api/media/v4l/capture.c.rst-556-
--
Documentation/userspace-api/media/v4l/dev-osd.rst=57=Example: Finding a framebuffer device for OSD
--
Documentation/userspace-api/media/v4l/dev-osd.rst-78-
Documentation/userspace-api/media/v4l/dev-osd.rst:79:	fb_fd = open(dev_name, O_RDWR);
Documentation/userspace-api/media/v4l/dev-osd.rst-80-	if (-1 == fb_fd) {
--
Documentation/userspace-api/media/v4l/func-open.rst=24=Arguments
--
Documentation/userspace-api/media/v4l/func-open.rst-30-``flags``
Documentation/userspace-api/media/v4l/func-open.rst:31:    Open flags. Access mode must be ``O_RDWR``. This is just a
Documentation/userspace-api/media/v4l/func-open.rst-32-    technicality, input devices still support only reading and output
--
Documentation/userspace-api/media/v4l/hist-v4l2.rst=296=This unnamed version was finally merged into Linux 2.5.46.
--
Documentation/userspace-api/media/v4l/hist-v4l2.rst-301-2.  The :c:func:`open()` function requires access mode
Documentation/userspace-api/media/v4l/hist-v4l2.rst:302:    ``O_RDWR`` regardless of the device type. All V4L2 drivers
Documentation/userspace-api/media/v4l/hist-v4l2.rst-303-    exchanging data with applications must support the ``O_NONBLOCK``
--
Documentation/userspace-api/media/v4l/v4l2grab.c.rst=4=file: media/v4l/v4l2grab.c
--
Documentation/userspace-api/media/v4l/v4l2grab.c.rst-69-
Documentation/userspace-api/media/v4l/v4l2grab.c.rst:70:	    fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0);
Documentation/userspace-api/media/v4l/v4l2grab.c.rst-71-	    if (fd < 0) {
--
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst=53=for open() for details. Currently only O_CLOEXEC, O_RDONLY, O_WRONLY,
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst:54:and O_RDWR are supported. All other fields must be set to zero. In the
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst-55-case of multi-planar API, every plane is exported separately using
--
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst=65=Examples
--
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst-141-      - Flags for the newly created file, currently only ``O_CLOEXEC``,
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst:142:	``O_RDONLY``, ``O_WRONLY``, and ``O_RDWR`` are supported, refer to
Documentation/userspace-api/media/v4l/vidioc-expbuf.rst-143-	the manual of open() for more details.
--
arch/alpha/boot/tools/mkbb.c=86=int main(int argc, char ** argv)
--
arch/alpha/boot/tools/mkbb.c-100-    /* First, open the device and make sure it's accessible */
arch/alpha/boot/tools/mkbb.c:101:    dev = open(argv[1], O_RDWR);
arch/alpha/boot/tools/mkbb.c-102-    if(dev < 0) {
--
arch/arm/vdso/vdsomunge.c=116=int main(int argc, char **argv)
--
arch/arm/vdso/vdsomunge.c-178-
arch/arm/vdso/vdsomunge.c:179:	outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
arch/arm/vdso/vdsomunge.c-180-	if (outfd < 0)
--
arch/arm64/kernel/pi/relacheck.c=44=int main(int argc, char *argv[])
--
arch/arm64/kernel/pi/relacheck.c-53-
arch/arm64/kernel/pi/relacheck.c:54:	fd = open(argv[1], O_RDWR);
arch/arm64/kernel/pi/relacheck.c-55-	if (fd < 0) {
--
arch/mips/vdso/genvdso.c=108=static void *map_vdso(const char *path, size_t *_size)
--
arch/mips/vdso/genvdso.c-114-
arch/mips/vdso/genvdso.c:115:	fd = open(path, O_RDWR);
arch/mips/vdso/genvdso.c-116-	if (fd < 0) {
--
arch/powerpc/boot/addnote.c=116=main(int ac, char **av)
--
arch/powerpc/boot/addnote.c-125-	}
arch/powerpc/boot/addnote.c:126:	fd = open(av[1], O_RDWR);
arch/powerpc/boot/addnote.c-127-	if (fd < 0) {
--
arch/powerpc/boot/mktree.c=42=int main(int argc, char *argv[])
--
arch/powerpc/boot/mktree.c-86-
arch/powerpc/boot/mktree.c:87:	if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
arch/powerpc/boot/mktree.c-88-		perror("bootfile open");
--
arch/powerpc/kvm/book3s_64_vio.c=289=int kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
--
arch/powerpc/kvm/book3s_64_vio.c-333-		ret = anon_inode_getfd("kvm-spapr-tce", &kvm_spapr_tce_fops,
arch/powerpc/kvm/book3s_64_vio.c:334:				       stt, O_RDWR | O_CLOEXEC);
arch/powerpc/kvm/book3s_64_vio.c-335-
--
arch/powerpc/platforms/book3s/vas-api.c-25- *
arch/powerpc/platforms/book3s/vas-api.c:26: *	fd = open("/dev/crypto/nx-gzip", O_RDWR);
arch/powerpc/platforms/book3s/vas-api.c-27- *	rc = ioctl(fd, VAS_TX_WIN_OPEN, &attr);
--
arch/powerpc/platforms/pseries/papr-hvpipe.c=485=static int papr_hvpipe_dev_create_handle(u32 srcID)
--
arch/powerpc/platforms/pseries/papr-hvpipe.c-514-		   anon_inode_getfile("[papr-hvpipe]", &papr_hvpipe_handle_ops,
arch/powerpc/platforms/pseries/papr-hvpipe.c:515:				      (void *)src_info, O_RDWR));
arch/powerpc/platforms/pseries/papr-hvpipe.c-516-	if (fd < 0) {
--
arch/sparc/boot/piggyback.c=177=int main(int argc,char **argv)
--
arch/sparc/boot/piggyback.c-197-	}
arch/sparc/boot/piggyback.c:198:	if ((image = open(argv[2], O_RDWR)) < 0)
arch/sparc/boot/piggyback.c-199-		die(argv[2]);
--
arch/um/drivers/null.c=20=static int null_open(int input, int output, int primary, void *d,
--
arch/um/drivers/null.c-26-
arch/um/drivers/null.c:27:	fd = open(DEV_NULL, O_RDWR);
arch/um/drivers/null.c-28-	return (fd < 0) ? -errno : fd;
--
arch/um/drivers/pty.c=78=static int getmaster(char *line)
--
arch/um/drivers/pty.c-93-			*pty = *cp;
arch/um/drivers/pty.c:94:			master = open(line, O_RDWR);
arch/um/drivers/pty.c-95-			if (master >= 0) {
--
arch/um/drivers/tty.c=39=static int tty_open(int input, int output, int primary, void *d,
--
arch/um/drivers/tty.c-45-	if (input && output)
arch/um/drivers/tty.c:46:		mode = O_RDWR;

]

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

Tokens:
							input: 39420
							output: 21
							thoughts: 748
						

Thoughts:
**Decoding the File Open Flags**

Okay, let's break this down. First, I see a hexadecimal value, `0x275a`, and I need to figure out the corresponding file open flags. I start by recalling the standard flags, double-checking values like `O_RDWR` (2), `O_CREAT` (0x40), `O_TRUNC` (0x200), and `O_APPEND` (0x400) to make sure my mental model is sound. Then I start expanding the hex value bitwise.

I had a couple of false starts, incorrectly attributing `O_SYNC` and `O_DSYNC` to the same bit as `O_DIRECT`, but I correct them. Then, I remember I need to account for more flags. I build a more complete list of flags and their hexadecimal representations: `O_RDWR`, `O_CREAT`, `O_EXCL`, `O_NOCTTY`, `O_TRUNC`, `O_APPEND`, `O_NONBLOCK`, `O_DSYNC`, `FASYNC`, `O_DIRECT`, `O_LARGEFILE`, `O_DIRECTORY`, `O_NOFOLLOW`, `O_NOATIME`, `O_CLOEXEC`, `O_SYNC`, `O_PATH`, `O_TMPFILE`.

Now, I re-evaluate `0x275a`. It quickly resolves to a combination. Let's see...  `O_RDWR` (2), `O_NONBLOCK` (0x800), `O_APPEND` (0x400), `O_TRUNC` (0x200), `O_NOCTTY` (0x100), `O_CREAT` (0x40) and then some bits that are less immediately obvious, so I'm looking at `0x10` and `0x8`. I make sure to account for them.

Ah, `0x275a` results in the following combination: `O_RDWR | O_NONBLOCK | O_APPEND | O_TRUNC | O_NOCTTY | O_CREAT | 0x10 | 0x8`.

So, the process opens a file, specifically `cpu.stat`, with read/write access (`O_RDWR`) and a few other modifiers, I'll need to double check those. I can infer from `O_TRUNC` that the file is likely being truncated, and then the process probably writes to it and does some memory mapping (mmaps). Then the program exits. This is fairly standard.

I'm now curious about how this relates to file system interactions, specifically, whether `ntfs3` uses `iomap`. I should investigate that further.



13/2 2026/09/18 00:47 tool grepper
0m Args:
map[Expression:iomap_folio_state]

Results:
map[Output:fs/iomap/buffered-io.c-21- */
fs/iomap/buffered-io.c:22:struct iomap_folio_state {
fs/iomap/buffered-io.c-23-	spinlock_t		state_lock;
--
fs/iomap/buffered-io.c=35=static inline bool ifs_is_fully_uptodate(struct folio *folio,
fs/iomap/buffered-io.c:36:		struct iomap_folio_state *ifs)
fs/iomap/buffered-io.c-37-{
--
fs/iomap/buffered-io.c=47=static unsigned ifs_next_uptodate_block(struct folio *folio,
--
fs/iomap/buffered-io.c-49-{
fs/iomap/buffered-io.c:50:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-51-
--
fs/iomap/buffered-io.c=59=static unsigned ifs_next_nonuptodate_block(struct folio *folio,
--
fs/iomap/buffered-io.c-61-{
fs/iomap/buffered-io.c:62:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-63-
--
fs/iomap/buffered-io.c=67=static bool ifs_set_range_uptodate(struct folio *folio,
fs/iomap/buffered-io.c:68:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-69-{
--
fs/iomap/buffered-io.c=81=static void iomap_set_range_uptodate(struct folio *folio, size_t off,
--
fs/iomap/buffered-io.c-83-{
fs/iomap/buffered-io.c:84:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-85-	unsigned long flags;
--
fs/iomap/buffered-io.c=120=static unsigned ifs_next_dirty_block(struct folio *folio,
--
fs/iomap/buffered-io.c-122-{
fs/iomap/buffered-io.c:123:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-124-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c=135=static unsigned ifs_next_clean_block(struct folio *folio,
--
fs/iomap/buffered-io.c-137-{
fs/iomap/buffered-io.c:138:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-139-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c=146=static unsigned ifs_find_dirty_range(struct folio *folio,
fs/iomap/buffered-io.c:147:		struct iomap_folio_state *ifs, u64 *range_start, u64 range_end)
fs/iomap/buffered-io.c-148-{
--
fs/iomap/buffered-io.c=170=static unsigned iomap_find_dirty_range(struct folio *folio, u64 *range_start,
--
fs/iomap/buffered-io.c-172-{
fs/iomap/buffered-io.c:173:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-174-
--
fs/iomap/buffered-io.c=190=static void ifs_clear_range_dirty(struct folio *folio,
fs/iomap/buffered-io.c:191:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-192-{
--
fs/iomap/buffered-io.c=209=static void iomap_clear_range_dirty(struct folio *folio, size_t off, size_t len)
fs/iomap/buffered-io.c-210-{
fs/iomap/buffered-io.c:211:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-212-
--
fs/iomap/buffered-io.c=224=static void ifs_set_range_dirty(struct folio *folio,
fs/iomap/buffered-io.c:225:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-226-{
--
fs/iomap/buffered-io.c=243=static void iomap_set_range_dirty(struct folio *folio, size_t off, size_t len)
fs/iomap/buffered-io.c-244-{
fs/iomap/buffered-io.c:245:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-246-
--
fs/iomap/buffered-io.c-250-
fs/iomap/buffered-io.c:251:static struct iomap_folio_state *ifs_alloc(struct inode *inode,
fs/iomap/buffered-io.c-252-		struct folio *folio, unsigned int flags)
fs/iomap/buffered-io.c-253-{
fs/iomap/buffered-io.c:254:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-255-	unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
--
fs/iomap/buffered-io.c=286=static void ifs_free(struct folio *folio)
fs/iomap/buffered-io.c-287-{
fs/iomap/buffered-io.c:288:	struct iomap_folio_state *ifs = folio_detach_private(folio);
fs/iomap/buffered-io.c-289-
--
fs/iomap/buffered-io.c=318=static void iomap_adjust_read_range(struct inode *inode, struct folio *folio,
--
fs/iomap/buffered-io.c-320-{
fs/iomap/buffered-io.c:321:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-322-	loff_t orig_pos = *pos;
--
fs/iomap/buffered-io.c=444=void iomap_finish_folio_read(struct folio *folio, size_t off, size_t len,
--
fs/iomap/buffered-io.c-446-{
fs/iomap/buffered-io.c:447:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-448-	bool uptodate = !error;
--
fs/iomap/buffered-io.c=472=static void iomap_read_init(struct folio *folio)
fs/iomap/buffered-io.c-473-{
fs/iomap/buffered-io.c:474:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-475-
--
fs/iomap/buffered-io.c=510=static void iomap_read_end(struct folio *folio, size_t bytes_submitted)
fs/iomap/buffered-io.c-511-{
fs/iomap/buffered-io.c:512:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-513-
--
fs/iomap/buffered-io.c=557=static int iomap_read_folio_iter(struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-564-	size_t folio_len = folio_size(folio);
fs/iomap/buffered-io.c:565:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-566-	size_t poff, plen;
--
fs/iomap/buffered-io.c=770=bool iomap_is_partially_uptodate(struct folio *folio, size_t from, size_t count)
fs/iomap/buffered-io.c-771-{
fs/iomap/buffered-io.c:772:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-773-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c=875=static int __iomap_write_begin(const struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-878-{
fs/iomap/buffered-io.c:879:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-880-	loff_t pos = iter->pos;
--
fs/iomap/buffered-io.c=1348=static void iomap_write_delalloc_ifs_punch(struct inode *inode,
--
fs/iomap/buffered-io.c-1354-	u8 blkbits = inode->i_blkbits;
fs/iomap/buffered-io.c:1355:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-1356-
--
fs/iomap/buffered-io.c=1856=static void iomap_writeback_init(struct inode *inode, struct folio *folio)
fs/iomap/buffered-io.c-1857-{
fs/iomap/buffered-io.c:1858:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1859-
--
fs/iomap/buffered-io.c=1876=void iomap_finish_folio_write(struct inode *inode, struct folio *folio,
--
fs/iomap/buffered-io.c-1878-{
fs/iomap/buffered-io.c:1879:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1880-
--
fs/iomap/buffered-io.c=1980=int iomap_writeback_folio(struct iomap_writepage_ctx *wpc, struct folio *folio)
fs/iomap/buffered-io.c-1981-{
fs/iomap/buffered-io.c:1982:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1983-	struct inode *inode = wpc->inode;
]

14/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 43776
							output: 28
							thoughts: 48
						

Thoughts:
Okay, let's see, I'm thinking about `ntfs3` and how it handles I/O. My initial thought was that it utilizes `iomap` for buffered I/O, which would be a standard approach. However, that doesn't quite sound right. I need to be absolutely sure, so the best course of action is to verify the implementation itself. Let me jump into the `ntfs3` source code and take a look. I'll need to confirm whether it has direct calls or uses it in its buffered I/O path.



15/2 2026/09/18 00:47 tool grepper
0m Args:
map[Expression:iomap PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/file.c-17-#include <linux/filelock.h>
fs/ntfs3/file.c:18:#include <linux/iomap.h>
fs/ntfs3/file.c-19-
--
fs/ntfs3/file.c=301=static int ntfs_extend_initialized_size(struct file *file,
--
fs/ntfs3/file.c-316-
fs/ntfs3/file.c:317:	err = iomap_zero_range(inode, valid, new_valid - valid, NULL,
fs/ntfs3/file.c:318:			       &ntfs_iomap_ops, &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-319-	if (err) {
--
fs/ntfs3/file.c=466=static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
--
fs/ntfs3/file.c-555-		if (tmp > from) {
fs/ntfs3/file.c:556:			err = iomap_zero_range(inode, from, tmp - from, NULL,
fs/ntfs3/file.c:557:					       &ntfs_iomap_ops,
fs/ntfs3/file.c:558:					       &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-559-			if (err)
--
fs/ntfs3/file.c-573-		if (vbo < end_a && end_a < end) {
fs/ntfs3/file.c:574:			err = iomap_zero_range(inode, end_a, end - end_a, NULL,
fs/ntfs3/file.c:575:					       &ntfs_iomap_ops,
fs/ntfs3/file.c:576:					       &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-577-			if (err)
--
fs/ntfs3/file.c=817=static ssize_t ntfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
--
fs/ntfs3/file.c-892-
fs/ntfs3/file.c:893:		ret = iomap_dio_rw(iocb, iter, &ntfs_iomap_ops, NULL, dio_flags,
fs/ntfs3/file.c-894-				   NULL, 0);
--
fs/ntfs3/file.c=1239=static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
--
fs/ntfs3/file.c-1307-
fs/ntfs3/file.c:1308:		ret = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
fs/ntfs3/file.c:1309:						&ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-1310-		inode_unlock(inode);
--
fs/ntfs3/file.c-1324-
fs/ntfs3/file.c:1325:	ret = iomap_dio_rw(iocb, from, &ntfs_iomap_ops, NULL,
fs/ntfs3/file.c-1326-			   IOMAP_DIO_FORCE_WAIT, NULL, 0);
--
fs/ntfs3/file.c-1337-		iocb->ki_flags &= ~IOCB_DIRECT;
fs/ntfs3/file.c:1338:		err = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
fs/ntfs3/file.c:1339:						&ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-1340-		if (err < 0) {
--
fs/ntfs3/file.c=1457=int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
--
fs/ntfs3/file.c-1487-
fs/ntfs3/file.c:1488:	err = iomap_fiemap(inode, fieinfo, start, len, &ntfs_iomap_ops);
fs/ntfs3/file.c-1489-
--
fs/ntfs3/inode.c-14-#include <linux/writeback.h>
fs/ntfs3/inode.c:15:#include <linux/iomap.h>
fs/ntfs3/inode.c-16-
--
fs/ntfs3/inode.c=763=static sector_t ntfs_bmap(struct address_space *mapping, sector_t block)
--
fs/ntfs3/inode.c-783-
fs/ntfs3/inode.c:784:	return iomap_bmap(mapping, block, &ntfs_iomap_ops);
fs/ntfs3/inode.c-785-}
fs/ntfs3/inode.c-786-
fs/ntfs3/inode.c:787:static void ntfs_iomap_read_end_io(struct bio *bio)
fs/ntfs3/inode.c-788-{
--
fs/ntfs3/inode.c-803-					     offset_in_folio(folio, valid);
fs/ntfs3/inode.c:804:			/* The only thing ntfs_iomap_read_end_io used for. */
fs/ntfs3/inode.c-805-			folio_zero_segment(folio, z_from, f_size);
--
fs/ntfs3/inode.c-807-
fs/ntfs3/inode.c:808:		iomap_finish_folio_read(folio, fi.offset, fi.length, error);
fs/ntfs3/inode.c-809-	}
--
fs/ntfs3/inode.c-812-
fs/ntfs3/inode.c:813:static void ntfs_iomap_bio_submit_read(const struct iomap_iter *iter,
fs/ntfs3/inode.c:814:				       struct iomap_read_folio_ctx *ctx)
fs/ntfs3/inode.c-815-{
fs/ntfs3/inode.c:816:	iomap_bio_submit_read_endio(iter, ctx, ntfs_iomap_read_end_io);
fs/ntfs3/inode.c-817-}
--
fs/ntfs3/inode.c-819-// clang-format off
fs/ntfs3/inode.c:820:static const struct iomap_read_ops ntfs_iomap_bio_read_ops = {
fs/ntfs3/inode.c:821:	.read_folio_range	= iomap_bio_read_folio_range,
fs/ntfs3/inode.c:822:	.submit_read		= ntfs_iomap_bio_submit_read,
fs/ntfs3/inode.c-823-};
--
fs/ntfs3/inode.c=826=static int ntfs_read_folio(struct file *file, struct folio *folio)
--
fs/ntfs3/inode.c-832-	loff_t vbo = folio_pos(folio);
fs/ntfs3/inode.c:833:	struct iomap_read_folio_ctx ctx = {
fs/ntfs3/inode.c-834-		.cur_folio = folio,
fs/ntfs3/inode.c:835:		.ops = &ntfs_iomap_bio_read_ops,
fs/ntfs3/inode.c-836-	};
--
fs/ntfs3/inode.c-855-
fs/ntfs3/inode.c:856:	iomap_read_folio(&ntfs_iomap_ops, &ctx, NULL);
fs/ntfs3/inode.c-857-	return 0;
--
fs/ntfs3/inode.c=860=static void ntfs_readahead(struct readahead_control *rac)
--
fs/ntfs3/inode.c-864-	struct ntfs_inode *ni = ntfs_i(inode);
fs/ntfs3/inode.c:865:	struct iomap_read_folio_ctx ctx = {
fs/ntfs3/inode.c:866:		.ops = &ntfs_iomap_bio_read_ops,
fs/ntfs3/inode.c-867-		.rac = rac,
--
fs/ntfs3/inode.c-879-
fs/ntfs3/inode.c:880:	iomap_readahead(&ntfs_iomap_ops, &ctx, NULL);
fs/ntfs3/inode.c-881-}
--
fs/ntfs3/inode.c=883=int ntfs_set_size(struct inode *inode, u64 new_size)
--
fs/ntfs3/inode.c-919- */
fs/ntfs3/inode.c:920:#define WB_NO_DA (struct iomap *)1
fs/ntfs3/inode.c-921-/*
--
fs/ntfs3/inode.c-923- * used with:
fs/ntfs3/inode.c:924: * - iomap_zero_range
fs/ntfs3/inode.c:925: * - iomap_truncate_page
fs/ntfs3/inode.c:926: * - iomap_dio_rw
fs/ntfs3/inode.c:927: * - iomap_file_buffered_write
fs/ntfs3/inode.c:928: * - iomap_bmap
fs/ntfs3/inode.c:929: * - iomap_fiemap
fs/ntfs3/inode.c:930: * - iomap_bio_read_folio
fs/ntfs3/inode.c:931: * - iomap_bio_readahead
fs/ntfs3/inode.c-932- */
fs/ntfs3/inode.c:933:static int ntfs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
fs/ntfs3/inode.c:934:			    unsigned int flags, struct iomap *iomap,
fs/ntfs3/inode.c:935:			    struct iomap *srcmap)
fs/ntfs3/inode.c-936-{
--
fs/ntfs3/inode.c-998-
fs/ntfs3/inode.c:999:	iomap->flags = new_clst ? IOMAP_F_NEW : 0;
fs/ntfs3/inode.c-1000-
--
fs/ntfs3/inode.c-1011-
fs/ntfs3/inode.c:1012:		iomap->private = iomap->inline_data = res;
fs/ntfs3/inode.c:1013:		iomap->type = IOMAP_INLINE;
fs/ntfs3/inode.c:1014:		iomap->offset = 0;
fs/ntfs3/inode.c:1015:		iomap->length = clen; /* resident size in bytes. */
fs/ntfs3/inode.c-1016-		return 0;
--
fs/ntfs3/inode.c-1023-
fs/ntfs3/inode.c:1024:	iomap->bdev = inode->i_sb->s_bdev;
fs/ntfs3/inode.c:1025:	iomap->offset = offset;
fs/ntfs3/inode.c:1026:	iomap->length = ((loff_t)clen << cluster_bits) - off;
fs/ntfs3/inode.c-1027-
--
fs/ntfs3/inode.c-1033-	if (lcn == DELALLOC_LCN) {
fs/ntfs3/inode.c:1034:		iomap->type = IOMAP_DELALLOC;
fs/ntfs3/inode.c:1035:		iomap->addr = IOMAP_NULL_ADDR;
fs/ntfs3/inode.c-1036-	} else {
fs/ntfs3/inode.c-1037-		/* Translate clusters into bytes. */
fs/ntfs3/inode.c:1038:		iomap->addr = ((loff_t)lcn << cluster_bits) + off;
fs/ntfs3/inode.c:1039:		if (length && iomap->length > length)
fs/ntfs3/inode.c:1040:			iomap->length = length;
fs/ntfs3/inode.c-1041-		else
fs/ntfs3/inode.c:1042:			endbyte = offset + iomap->length;
fs/ntfs3/inode.c-1043-
fs/ntfs3/inode.c-1044-		if (lcn == SPARSE_LCN) {
fs/ntfs3/inode.c:1045:			iomap->addr = IOMAP_NULL_ADDR;
fs/ntfs3/inode.c:1046:			iomap->type = IOMAP_HOLE;
fs/ntfs3/inode.c-1047-			//			if (IOMAP_ZERO == flags && !off) {
fs/ntfs3/inode.c:1048:			//				iomap->length = (endbyte - offset) &
fs/ntfs3/inode.c-1049-			//						sbi->cluster_mask_inv;
--
fs/ntfs3/inode.c-1051-		} else if (endbyte <= ni->i_valid) {
fs/ntfs3/inode.c:1052:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1053-		} else if (offset < ni->i_valid) {
fs/ntfs3/inode.c:1054:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1055-			if (flags & IOMAP_REPORT)
fs/ntfs3/inode.c:1056:				iomap->length = ni->i_valid - offset;
fs/ntfs3/inode.c-1057-		} else if (rw || (flags & IOMAP_ZERO)) {
fs/ntfs3/inode.c:1058:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1059-		} else {
fs/ntfs3/inode.c:1060:			iomap->type = IOMAP_UNWRITTEN;
fs/ntfs3/inode.c-1061-		}
--
fs/ntfs3/inode.c-1064-	if ((flags & IOMAP_ZERO) &&
fs/ntfs3/inode.c:1065:	    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
fs/ntfs3/inode.c-1066-		/* Avoid too large requests. */
--
fs/ntfs3/inode.c-1073-
fs/ntfs3/inode.c:1074:		if (iomap->length > tail)
fs/ntfs3/inode.c:1075:			iomap->length = tail;
fs/ntfs3/inode.c-1076-	}
--
fs/ntfs3/inode.c-1080-
fs/ntfs3/inode.c:1081:static int ntfs_iomap_end(struct inode *inode, loff_t pos, loff_t length,
fs/ntfs3/inode.c-1082-			  ssize_t written, unsigned int flags,
fs/ntfs3/inode.c:1083:			  struct iomap *iomap)
fs/ntfs3/inode.c-1084-{
--
fs/ntfs3/inode.c-1089-	if ((flags & IOMAP_WRITE) || (flags & IOMAP_ZERO)) {
fs/ntfs3/inode.c:1090:		if (iomap->type == IOMAP_INLINE) {
fs/ntfs3/inode.c-1091-			u32 data_size;
--
fs/ntfs3/inode.c-1110-			memcpy(resident_data(attr) + pos,
fs/ntfs3/inode.c:1111:			       iomap_inline_data(iomap, pos), written);
fs/ntfs3/inode.c-1112-			mi->dirty = true;
--
fs/ntfs3/inode.c-1120-	if ((flags & IOMAP_ZERO) &&
fs/ntfs3/inode.c:1121:	    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
fs/ntfs3/inode.c:1122:		/* Pair for code in ntfs_iomap_begin. */
fs/ntfs3/inode.c-1123-		balance_dirty_pages_ratelimited(inode->i_mapping);
--
fs/ntfs3/inode.c-1127-out:
fs/ntfs3/inode.c:1128:	if (iomap->type == IOMAP_INLINE) {
fs/ntfs3/inode.c:1129:		__free_page(virt_to_page(iomap->private));
fs/ntfs3/inode.c:1130:		iomap->private = NULL;
fs/ntfs3/inode.c-1131-	}
--
fs/ntfs3/inode.c-1137- * write_begin + put_folio + write_end.
fs/ntfs3/inode.c:1138: * iomap_zero_range
fs/ntfs3/inode.c:1139: * iomap_truncate_page
fs/ntfs3/inode.c:1140: * iomap_file_buffered_write
fs/ntfs3/inode.c-1141- */
fs/ntfs3/inode.c:1142:static void ntfs_iomap_put_folio(struct inode *inode, loff_t pos,
fs/ntfs3/inode.c-1143-				 unsigned int len, struct folio *folio)
--
fs/ntfs3/inode.c-1152-		/* zero range [end - f_end). */
fs/ntfs3/inode.c:1153:		/* The only thing ntfs_iomap_put_folio used for. */
fs/ntfs3/inode.c-1154-		folio_zero_segment(folio, offset_in_folio(folio, end), f_size);
--
fs/ntfs3/inode.c-1160-/*
fs/ntfs3/inode.c:1161: * iomap_writeback_ops::writeback_range
fs/ntfs3/inode.c-1162- */
fs/ntfs3/inode.c:1163:static ssize_t ntfs_writeback_range(struct iomap_writepage_ctx *wpc,
fs/ntfs3/inode.c-1164-				    struct folio *folio, u64 offset,
--
fs/ntfs3/inode.c-1166-{
fs/ntfs3/inode.c:1167:	struct iomap *iomap = &wpc->iomap;
fs/ntfs3/inode.c:1168:	/* Check iomap position. */
fs/ntfs3/inode.c:1169:	if (iomap->offset + iomap->length <= offset || offset < iomap->offset) {
fs/ntfs3/inode.c-1170-		int err;
--
fs/ntfs3/inode.c-1180-			/* Use local special value 'WB_NO_DA' to disable delalloc. */
fs/ntfs3/inode.c:1181:			err = ntfs_iomap_begin(inode, offset, len_max,
fs/ntfs3/inode.c:1182:					       IOMAP_WRITE, iomap, WB_NO_DA);
fs/ntfs3/inode.c-1183-		}
--
fs/ntfs3/inode.c-1190-
fs/ntfs3/inode.c:1191:	return iomap_add_to_ioend(wpc, folio, offset, end_pos, len);
fs/ntfs3/inode.c-1192-}
fs/ntfs3/inode.c-1193-
fs/ntfs3/inode.c:1194:static const struct iomap_writeback_ops ntfs_writeback_ops = {
fs/ntfs3/inode.c-1195-	.writeback_range = ntfs_writeback_range,
fs/ntfs3/inode.c:1196:	.writeback_submit = iomap_ioend_writeback_submit,
fs/ntfs3/inode.c-1197-};
--
fs/ntfs3/inode.c=1199=static int ntfs_writepages(struct address_space *mapping,
--
fs/ntfs3/inode.c-1204-	struct ntfs_inode *ni = ntfs_i(inode);
fs/ntfs3/inode.c:1205:	struct iomap_writepage_ctx wpc = {
fs/ntfs3/inode.c-1206-		.inode = inode,
--
fs/ntfs3/inode.c-1239-
fs/ntfs3/inode.c:1240:	return iomap_writepages(&wpc);
fs/ntfs3/inode.c-1241-}
--
fs/ntfs3/inode.c=2301=const struct address_space_operations ntfs_aops = {
--
fs/ntfs3/inode.c-2305-	.bmap		= ntfs_bmap,
fs/ntfs3/inode.c:2306:	.dirty_folio	= iomap_dirty_folio,
fs/ntfs3/inode.c-2307-	.migrate_folio	= filemap_migrate_folio,
fs/ntfs3/inode.c:2308:	.release_folio	= iomap_release_folio,
fs/ntfs3/inode.c:2309:	.invalidate_folio = iomap_invalidate_folio,
fs/ntfs3/inode.c-2310-};
--
fs/ntfs3/inode.c=2312=const struct address_space_operations ntfs_aops_cmpr = {
fs/ntfs3/inode.c-2313-	.read_folio	= ntfs_read_folio,
fs/ntfs3/inode.c:2314:	.dirty_folio	= iomap_dirty_folio,
fs/ntfs3/inode.c:2315:	.release_folio	= iomap_release_folio,
fs/ntfs3/inode.c:2316:	.invalidate_folio = iomap_invalidate_folio,
fs/ntfs3/inode.c-2317-};
fs/ntfs3/inode.c-2318-
fs/ntfs3/inode.c:2319:static DEFINE_IOMAP_ITER_NEXT_END(ntfs_iomap_next, ntfs_iomap_begin,
fs/ntfs3/inode.c:2320:				  ntfs_iomap_end);
fs/ntfs3/inode.c-2321-
fs/ntfs3/inode.c:2322:const struct iomap_ops ntfs_iomap_ops = {
fs/ntfs3/inode.c:2323:	.iomap_next	= ntfs_iomap_next,
fs/ntfs3/inode.c-2324-};
fs/ntfs3/inode.c-2325-
fs/ntfs3/inode.c:2326:const struct iomap_write_ops ntfs_iomap_folio_ops = {
fs/ntfs3/inode.c:2327:	.put_folio = ntfs_iomap_put_folio,
fs/ntfs3/inode.c-2328-};
--
fs/ntfs3/ntfs_fs.h=812=void ntfs_evict_inode(struct inode *inode);
fs/ntfs3/ntfs_fs.h:813:extern const struct iomap_ops ntfs_iomap_ops;
fs/ntfs3/ntfs_fs.h:814:extern const struct iomap_write_ops ntfs_iomap_folio_ops;
fs/ntfs3/ntfs_fs.h-815-extern const struct inode_operations ntfs_link_inode_operations;
]

16/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50616
							output: 44
							thoughts: 102
						

Thoughts:
**Investigating the NTFS3 iomap Uptodate Mismatch**

Okay, so it looks like `ntfs3` is indeed leveraging `iomap`, which is good to know. The kernel is throwing a warning, specifically `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`. Right, so this suggests a disagreement in the "uptodate" status between the `iomap folio state` (represented by `ifs`) and the main `folio` itself. That's... not ideal. My next step is to dive into how `ifs_is_fully_uptodate` actually functions. I need to understand its logic and how it determines this uptodate status. This discrepancy has to be understood before I can address it.



17/2 2026/09/18 00:47 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_is_fully_uptodate]

Results:
map[SourceCode:  35:	static inline bool ifs_is_fully_uptodate(struct folio *folio,
  36:			struct iomap_folio_state *ifs)
  37:	{
  38:		struct inode *inode = folio->mapping->host;
  39:	
  40:		return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio));
  41:	}
 SourceFile:fs/iomap/buffered-io.c]

18/2 2026/09/18 00:47 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51080
							output: 46
							thoughts: 142
						

Thoughts:
**Investigating an Uptodate Mismatch**

Okay, so I'm seeing a discrepancy here. `bitmap_full(ifs->state, i_blocks_per_folio(inode, folio))` isn't aligning with `folio_test_uptodate(folio)`. That's not right. Logically, if the folio is completely up-to-date, `folio_test_uptodate` *should* be true. And if `folio_test_uptodate` is true, then `ifs_is_fully_uptodate` should follow suit, also being true. Conversely, a false `folio_test_uptodate` should naturally lead to a false `ifs_is_fully_uptodate`. This seems to suggest a potential issue in the logic somewhere.

Time to delve deeper. I'll need to trace through the code to understand how these states are set and, crucially, when this mismatch can occur. My next step is to examine the behavior of `iomap_set_range_uptodate`. Let's see what's happening there.



19/2 2026/09/18 00:47 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_set_range_uptodate]

Results:
map[SourceCode:  81:	static void iomap_set_range_uptodate(struct folio *folio, size_t off,
  82:			size_t len)
  83:	{
  84:		struct iomap_folio_state *ifs = folio->private;
  85:		unsigned long flags;
  86:		bool mark_uptodate = true;
  87:	
  88:		if (folio_test_uptodate(folio))
  89:			return;
  90:	
  91:		if (ifs) {
  92:			spin_lock_irqsave(&ifs->state_lock, flags);
  93:			/*
  94:			 * If a read with bytes pending is in progress, we must not call
  95:			 * folio_mark_uptodate(). The read completion path
  96:			 * (iomap_read_end()) will call folio_end_read(), which uses XOR
  97:			 * semantics to set the uptodate bit. If we set it here, the XOR
  98:			 * in folio_end_read() will clear it, leaving the folio not
  99:			 * uptodate.
 100:			 */
 101:			mark_uptodate = ifs_set_range_uptodate(folio, ifs, off, len) &&
 102:					!ifs->read_bytes_pending;
 103:			spin_unlock_irqrestore(&ifs->state_lock, flags);
 104:		}
 105:	
 106:		if (mark_uptodate)
 107:			folio_mark_uptodate(folio);
 108:	}
 SourceFile:fs/iomap/buffered-io.c]

20/2 2026/09/18 00:47 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51968
							output: 32
							thoughts: 151
						

Thoughts:
**Analyzing the Up-to-Date Folio Logic**

Okay, so I'm digging into this `folio_mark_uptodate` function and I'm seeing a potential issue. My initial thought is, "Hang on, `folio_mark_uptodate` is only supposed to be called when `mark_uptodate` is already true, right?" But what if something external to this particular path calls `folio_mark_uptodate` prematurely, before the internal `ifs->state` is fully initialized? That could be a problem.

The more I think about it, I start to envision other edge cases: maybe `ifs->state` is set up correctly, but `folio_mark_uptodate` *never* gets called. Or perhaps even worse, `folio_test_uptodate` gets cleared, but somehow the underlying `ifs->state` isn't properly synchronized. That screams race condition!

I thought `folio_invalidate` was somehow related, but wait, it just detaches the private data? It's not the same thing. I need to get the bottom of this. Alright, I'll take a look at the `folio_invalidate` function and where it gets called in `mm/truncate.c`. Let's see if that sheds any light on this up-to-date state management. This looks like a potentially gnarly corner case that needs careful examination.



21/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/truncate.c Name:folio_invalidate]

Results:
map[SourceCode: 120:	/**
 121:	 * folio_invalidate - Invalidate part or all of a folio.
 122:	 * @folio: The folio which is affected.
 123:	 * @offset: start of the range to invalidate
 124:	 * @length: length of the range to invalidate
 125:	 *
 126:	 * folio_invalidate() is called when all or part of the folio has become
 127:	 * invalidated by a truncate operation.
 128:	 *
 129:	 * folio_invalidate() does not have to release all buffers, but it must
 130:	 * ensure that no dirty buffer is left outside @offset and that no I/O
 131:	 * is underway against any of the blocks which are outside the truncation
 132:	 * point.  Because the caller is about to free (and possibly reuse) those
 133:	 * blocks on-disk.
 134:	 */
 135:	void folio_invalidate(struct folio *folio, size_t offset, size_t length)
 136:	{
 137:		const struct address_space_operations *aops = folio->mapping->a_ops;
 138:	
 139:		if (aops->invalidate_folio)
 140:			aops->invalidate_folio(folio, offset, length);
 141:	}
 SourceFile:mm/truncate.c]

22/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52837
							output: 42
							thoughts: 20
						

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

**Decoding that Function Call**

Okay, so I'm looking at this code and, aha! `aops->invalidate_folio`... that's just an alias, or a re-direction, to `iomap_invalidate_folio`. Not a surprise, really. It makes sense, given the context, that they're using the I/O mapping infrastructure to handle the invalidation of the folio. So, `aops` probably refers to the address space operations structure, and we're leveraging the `iomap` layer for its invalidation functionality. This immediately tells me we're dealing with a buffered I/O scenario where they're potentially handling some form of cached data. Understanding the exact context of why this re-direction is happening is the next piece of this puzzle. Knowing this lets me immediately look into that function and understand the mechanics.



23/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_invalidate_folio]

Results:
map[SourceCode: 831:	void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
 832:	{
 833:		trace_iomap_invalidate_folio(folio->mapping->host,
 834:						folio_pos(folio) + offset, len);
 835:	
 836:		/*
 837:		 * If we're invalidating the entire folio, clear the dirty state
 838:		 * from it and release it to avoid unnecessary buildup of the LRU.
 839:		 */
 840:		if (offset == 0 && len == folio_size(folio)) {
 841:			WARN_ON_ONCE(folio_test_writeback(folio));
 842:			folio_cancel_dirty(folio);
 843:			ifs_free(folio);
 844:		} else {
 845:			iomap_clear_range_dirty(folio, offset, len);
 846:		}
 847:	}
 SourceFile:fs/iomap/buffered-io.c]

24/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 53409
							output: 32
							thoughts: 122
						

Thoughts:
**Investigating a Potential Data Integrity Issue in the Filesystem**

Okay, so `iomap_invalidate_folio` is calling `ifs_free(folio)`. That makes sense. Standard memory management. But now, `ifs_free` is triggering a `WARN_ON_ONCE` because `ifs_is_fully_uptodate(folio, ifs)` doesn't match `folio_test_uptodate(folio)`. That's... concerning. Why wouldn't those both agree on the folio's uptodate status? There's a potential data integrity issue brewing here, a discrepancy that could lead to stale data being used.

My immediate hypothesis is that `ntfs3` – the likely culprit given the context – might be manipulating the folio's uptodate flag directly via `folio_mark_uptodate` or its equivalent like `SetPageUptodate`, bypassing the usual `ifs` mechanisms. This direct setting would explain the mismatch. I need to verify this hypothesis. I'll need to dive into the `ntfs3` source code and search for instances of `folio_mark_uptodate` or the equivalent function called by ntfs3. This will help me confirm my suspicion and, if confirmed, understand *how* `ntfs3` is managing the uptodate flag outside of the expected `ifs` interactions. From there I can determine how to correct the issue and prevent future conflicts.



25/2 2026/09/18 00:49 tool grepper
0m Args:
map[Expression:folio_mark_uptodate PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/attrib.c=254=int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
--
fs/ntfs3/attrib.c-329-			folio_fill_tail(folio, 0, data, rsize);
fs/ntfs3/attrib.c:330:			folio_mark_uptodate(folio);
fs/ntfs3/attrib.c-331-			folio_mark_dirty(folio);
--
fs/ntfs3/file.c=984=static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
--
fs/ntfs3/file.c-1073-			flush_dcache_folio(folio);
fs/ntfs3/file.c:1074:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1075-		}
--
fs/ntfs3/file.c-1082-			folio = page_folio(pages[ip]);
fs/ntfs3/file.c:1083:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1084-			folio_unlock(folio);
--
fs/ntfs3/file.c-1168-			folio_clear_dirty(folio);
fs/ntfs3/file.c:1169:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1170-			folio_unlock(folio);
--
fs/ntfs3/frecord.c=1929=int ni_read_folio_cmpr(struct ntfs_inode *ni, struct folio *folio)
--
fs/ntfs3/frecord.c-1945-		folio_zero_range(folio, 0, folio_size(folio));
fs/ntfs3/frecord.c:1946:		folio_mark_uptodate(folio);
fs/ntfs3/frecord.c-1947-		err = 0;
--
fs/ntfs3/inode.c=826=static int ntfs_read_folio(struct file *file, struct folio *folio)
--
fs/ntfs3/inode.c-844-		folio_zero_range(folio, 0, folio_size(folio));
fs/ntfs3/inode.c:845:		folio_mark_uptodate(folio);
fs/ntfs3/inode.c-846-		folio_unlock(folio);
]

26/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54526
							output: 39
							thoughts: 546
						

Thoughts:
**Analyzing `ntfs3`'s `folio_mark_uptodate` Usage**

Okay, so I'm digging into the `ntfs3` code, and I've noticed something interesting. It's using `folio_mark_uptodate(folio)` directly in a few places. The first example that stands out is within `ntfs_read_folio`. In the case where `vbo >= ni->vfs_inode.i_size`, the code directly calls `folio_mark_uptodate`.

Now, the question is, does this path have an `iomap_folio_state` (`ifs`) attached? My understanding is that `ntfs_read_folio` is called by the VFS when a folio needs to be read. It's possible that `iomap_read_folio` is responsible for attaching the `ifs`, and if we return early, the `ifs` wouldn't be attached yet.

I need to confirm if it handles that gracefully, I know `ifs_free` checks if `ifs` is NULL.

```c
	struct iomap_folio_state *ifs = folio_detach_private(folio);

	if (!ifs)
		return;
```

Right, if `ifs` is NULL, it just returns. So that's safe. No warning.

Alright, what other instances are there? I see another call in `attr_make_nonresident`.

```c
			folio_fill_tail(folio, 0, data, rsize);
			folio_mark_uptodate(folio);
			folio_mark_dirty(folio);
```

Let's check `attr_make_nonresident`. I need to verify that it has the `ifs` attached, or handles the NULL case.



27/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/attrib.c Name:attr_make_nonresident]

Results:
map[SourceCode: 248:	/*
 249:	 * attr_make_nonresident
 250:	 *
 251:	 * If page is not NULL - it is already contains resident data
 252:	 * and locked (called from ni_write_frame()).
 253:	 */
 254:	int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
 255:				  struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
 256:				  u64 new_size, struct runs_tree *run,
 257:				  struct ATTRIB **ins_attr, struct page *page)
 258:	{
 259:		struct ntfs_sb_info *sbi;
 260:		struct ATTRIB *attr_s;
 261:		struct MFT_REC *rec;
 262:		u32 used, asize, rsize, aoff;
 263:		bool is_data;
 264:		CLST len, alen;
 265:		char *next;
 266:		int err;
 267:	
 268:		if (attr->non_res) {
 269:			*ins_attr = attr;
 270:			return 0;
 271:		}
 272:	
 273:		sbi = mi->sbi;
 274:		rec = mi->mrec;
 275:		attr_s = NULL;
 276:		used = le32_to_cpu(rec->used);
 277:		asize = le32_to_cpu(attr->size);
 278:		next = Add2Ptr(attr, asize);
 279:		aoff = PtrOffset(rec, attr);
 280:		rsize = le32_to_cpu(attr->res.data_size);
 281:		is_data = attr->type == ATTR_DATA;
 282:	
 283:		/* len - how many clusters required to store 'rsize' bytes */
 284:		if (is_attr_compressed(attr)) {
 285:			u8 shift = sbi->cluster_bits + NTFS_LZNT_CUNIT;
 286:			len = ((rsize + (1u << shift) - 1) >> shift) << NTFS_LZNT_CUNIT;
 287:		} else {
 288:			len = bytes_to_cluster(sbi, rsize);
 289:		}
 290:	
 291:		run_init(run);
 292:	
 293:		/* Make a copy of original attribute. */
 294:		attr_s = kmemdup(attr, asize, GFP_NOFS);
 295:		if (!attr_s) {
 296:			err = -ENOMEM;
 297:			goto out;
 298:		}
 299:	
 300:		if (!len) {
 301:			/* Empty resident -> Empty nonresident. */
 302:			alen = 0;
 303:		} else {
 304:			const char *data = resident_data(attr);
 305:	
 306:			err = attr_allocate_clusters(sbi, run, NULL, 0, 0, len, NULL,
 307:						     ALLOCATE_DEF, &alen, 0, NULL,
 308:						     NULL);
 309:			if (err)
 310:				goto out1;
 311:	
 312:			if (!rsize) {
 313:				/* Empty resident -> Non empty nonresident. */
 314:			} else if (!is_data) {
 315:				err = ntfs_sb_write_run(sbi, run, 0, data, rsize, 0);
 316:				if (err)
 317:					goto out2;
 318:			} else if (!page) {
 319:				struct address_space *mapping = ni->vfs_inode.i_mapping;
 320:				struct folio *folio;
 321:	
 322:				folio = __filemap_get_folio(
 323:					mapping, 0, FGP_LOCK | FGP_ACCESSED | FGP_CREAT,
 324:					mapping_gfp_mask(mapping));
 325:				if (IS_ERR(folio)) {
 326:					err = PTR_ERR(folio);
 327:					goto out2;
 328:				}
 329:				folio_fill_tail(folio, 0, data, rsize);
 330:				folio_mark_uptodate(folio);
 331:				folio_mark_dirty(folio);
 332:				folio_unlock(folio);
 333:				folio_put(folio);
 334:			}
 335:		}
 336:	
 337:		/* Remove original attribute. */
 338:		used -= asize;
 339:		memmove(attr, Add2Ptr(attr, asize), used - aoff);
 340:		rec->used = cpu_to_le32(used);
 341:		mi->dirty = true;
 342:		if (le)
 343:			al_remove_le(ni, le);
 344:	
 345:		err = ni_insert_nonresident(ni, attr_s->type, attr_name(attr_s),
 346:					    attr_s->name_len, run, 0, alen,
 347:					    attr_s->flags, &attr, NULL, NULL);
 348:		if (err)
 349:			goto out3;
 350:	
 351:		kfree(attr_s);
 352:		attr->nres.data_size = cpu_to_le64(rsize);
 353:		attr->nres.valid_size = attr->nres.data_size;
 354:	
 355:		*ins_attr = attr;
 356:	
 357:		if (is_data)
 358:			ni->ni_flags &= ~NI_FLAG_RESIDENT;
 359:	
 360:		/* Resident attribute becomes non resident. */
 361:		return 0;
 362:	
 363:	out3:
 364:		attr = Add2Ptr(rec, aoff);
 365:		memmove(next, attr, used - aoff);
 366:		memcpy(attr, attr_s, asize);
 367:		rec->used = cpu_to_le32(used + asize);
 368:		mi->dirty = true;
 369:	out2:
 370:		/* Undo: do not trim new allocated clusters. */
 371:		run_deallocate(sbi, run, false);
 372:		run_close(run);
 373:	out1:
 374:		kfree(attr_s);
 375:	out:
 376:		return err;
 377:	}
 SourceFile:fs/ntfs3/attrib.c]

28/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 57477
							output: 43
							thoughts: 339
						

Thoughts:
**My Analysis of `attr_make_nonresident`'s Folio Handling**

Okay, let's break down this `attr_make_nonresident` logic. Specifically, I'm focusing on this block where it's dealing with a folio. It grabs a folio, which is standard procedure, using `__filemap_get_folio`.  Then, the code proceeds to fill the folio with data using `folio_fill_tail`, sets it as up-to-date with `folio_mark_uptodate`, flags it as dirty with `folio_mark_dirty`, and finally unlocks and puts the folio. Standard stuff... but here's where my expert instincts kick in.

The key observation is: does it attach `ifs`? No, as far as I can see, it simply calls the mark dirty function. My first thought is that `folio_mark_dirty` will trigger a writeback eventually. Okay, when that writeback happens, it will go through the usual `ntfs_writepages` -> `iomap_writepages` -> `iomap_writeback_folio` path. I've seen that `iomap_writeback_folio` eventually accesses `ifs` through `folio->private`.

But... hold on a second!  In this specific code path, it *never* attaches `ifs` to the folio, meaning `folio->private` is null here. So, when `iomap_writeback_folio` is called later, that `ifs` pointer will be NULL. This seems like a potential bug or at least an unexpected behavior, because it might not handle the situation correctly.

Wait a second, before I jump to conclusions, I need to go look at `iomap_writeback_folio`. Does it check for this scenario? I need to be sure before I file a bug report, it could just be a well known case. It's likely that it has checks to avoid a NULL dereference or something like that. I need to be sure before writing this up.



29/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_writeback_folio]

Results:
map[SourceCode:1980:	int iomap_writeback_folio(struct iomap_writepage_ctx *wpc, struct folio *folio)
1981:	{
1982:		struct iomap_folio_state *ifs = folio->private;
1983:		struct inode *inode = wpc->inode;
1984:		u64 pos = folio_pos(folio);
1985:		u64 end_pos = pos + folio_size(folio);
1986:		u64 end_aligned = 0;
1987:		loff_t orig_pos = pos;
1988:		size_t bytes_submitted = 0;
1989:		int error = 0;
1990:		u32 rlen;
1991:	
1992:		WARN_ON_ONCE(!folio_test_locked(folio));
1993:		WARN_ON_ONCE(folio_test_dirty(folio));
1994:		WARN_ON_ONCE(folio_test_writeback(folio));
1995:	
1996:		trace_iomap_writeback_folio(inode, pos, folio_size(folio));
1997:	
1998:		if (!iomap_writeback_handle_eof(folio, wpc, &end_pos))
1999:			return 0;
2000:		WARN_ON_ONCE(end_pos <= pos);
2001:	
2002:		if (i_blocks_per_folio(inode, folio) > 1) {
2003:			if (!ifs) {
2004:				ifs = ifs_alloc(inode, folio, 0);
2005:				iomap_set_range_dirty(folio, 0, end_pos - pos);
2006:			}
2007:	
2008:			iomap_writeback_init(inode, folio);
2009:		}
2010:	
2011:		/*
2012:		 * Set the writeback bit ASAP, as the I/O completion for the single
2013:		 * block per folio case happen hit as soon as we're submitting the bio.
2014:		 */
2015:		folio_start_writeback(folio);
2016:	
2017:		/*
2018:		 * Walk through the folio to find dirty areas to write back.
2019:		 */
2020:		end_aligned = round_up(end_pos, i_blocksize(inode));
2021:		while ((rlen = iomap_find_dirty_range(folio, &pos, end_aligned))) {
2022:			error = iomap_writeback_range(wpc, folio, pos, rlen, end_pos,
2023:					&bytes_submitted);
2024:			if (error)
2025:				break;
2026:			pos += rlen;
2027:		}
2028:	
2029:		if (bytes_submitted)
2030:			wpc->nr_folios++;
2031:		if (error && pos > orig_pos)
2032:			fserror_report_io(inode, FSERR_BUFFERED_WRITE, orig_pos, 0,
2033:					  error, GFP_NOFS);
2034:	
2035:		/*
2036:		 * We can have dirty bits set past end of file in page_mkwrite path
2037:		 * while mapping the last partial folio. Hence it's better to clear
2038:		 * all the dirty bits in the folio here.
2039:		 */
2040:		iomap_clear_range_dirty(folio, 0, folio_size(folio));
2041:	
2042:		/*
2043:		 * Usually the writeback bit is cleared by the I/O completion handler.
2044:		 * But we may end up either not actually writing any blocks, or (when
2045:		 * there are multiple blocks in a folio) all I/O might have finished
2046:		 * already at this point.  In that case we need to clear the writeback
2047:		 * bit ourselves right after unlocking the page.
2048:		 */
2049:		if (ifs) {
2050:			/*
2051:			 * Subtract any bytes that were initially accounted to
2052:			 * write_bytes_pending but skipped for writeback.
2053:			 */
2054:			size_t bytes_not_submitted = folio_size(folio) -
2055:					bytes_submitted;
2056:	
2057:			if (bytes_not_submitted)
2058:				iomap_finish_folio_write(inode, folio,
2059:						bytes_not_submitted);
2060:		} else if (!bytes_submitted) {
2061:			folio_end_writeback(folio);
2062:		}
2063:	
2064:		mapping_set_error(inode->i_mapping, error);
2065:		return error;
2066:	}
 SourceFile:fs/iomap/buffered-io.c]

30/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 59693
							output: 38
							thoughts: 156
						

Thoughts:
**My Analysis of `iomap_writeback_folio`**

Okay, so I'm looking at this `iomap_writeback_folio` function, specifically this section here:

```c
	if (i_blocks_per_folio(inode, folio) > 1) {
		if (!ifs) {
			ifs = ifs_alloc(inode, folio, 0);
			iomap_set_range_dirty(folio, 0, end_pos - pos);
		}

		iomap_writeback_init(inode, folio);
	}
```

My immediate concern is with the conditional allocation of `ifs`. Hmm, if `ifs` gets allocated within this `if` block, it *doesn't* appear to be setting any "uptodate" bits within it! That feels like a potential problem. We allocate it, mark the range dirty, but don't seem to establish the validity of the data. 

Let me re-check my understanding of what `ifs_alloc` *actually* does. My recollection is that it *should* just allocate the `ifs` structure and perhaps initialize it, but it shouldn't be setting the uptodate flags. Okay, I need to confirm this. Time to dig into `ifs_alloc` to be certain. I'll need to check if there is an initialization routine that would handle setting the data to uptodate.



31/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_alloc]

Results:
map[SourceCode: 251:	static struct iomap_folio_state *ifs_alloc(struct inode *inode,
 252:			struct folio *folio, unsigned int flags)
 253:	{
 254:		struct iomap_folio_state *ifs = folio->private;
 255:		unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
 256:		gfp_t gfp;
 257:	
 258:		if (ifs || nr_blocks <= 1)
 259:			return ifs;
 260:	
 261:		if (flags & IOMAP_NOWAIT)
 262:			gfp = GFP_NOWAIT;
 263:		else
 264:			gfp = GFP_NOFS | __GFP_NOFAIL;
 265:	
 266:		/*
 267:		 * ifs->state tracks two sets of state flags when the
 268:		 * filesystem block size is smaller than the folio size.
 269:		 * The first state tracks per-block uptodate and the
 270:		 * second tracks per-block dirty state.
 271:		 */
 272:		ifs = kzalloc_flex(*ifs, state, BITS_TO_LONGS(2 * nr_blocks), gfp);
 273:		if (!ifs)
 274:			return ifs;
 275:	
 276:		spin_lock_init(&ifs->state_lock);
 277:		if (folio_test_uptodate(folio))
 278:			bitmap_set(ifs->state, 0, nr_blocks);
 279:		if (folio_test_dirty(folio))
 280:			bitmap_set(ifs->state, nr_blocks, nr_blocks);
 281:		folio_attach_private(folio, ifs);
 282:	
 283:		return ifs;
 284:	}
 SourceFile:fs/iomap/buffered-io.c]

32/2 2026/09/18 00:49 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 60749
							output: 44
							thoughts: 267
						

Thoughts:
**Debugging My Understanding of `ifs_alloc` and Up-to-Date Folios**

Okay, so `ifs_alloc` does indeed set the entire `ifs->state` bitmap if the `folio` is already marked up-to-date, which makes perfect sense. The code confirms that: `if (folio_test_uptodate(folio)) bitmap_set(ifs->state, 0, nr_blocks)`. So far, so good. If the folio is uptodate, the `ifs` state is fully set.

But now, I'm stuck. Why would `ifs_is_fully_uptodate(folio, ifs)` ever disagree with `folio_test_uptodate(folio)`? These should always be consistent. My initial thoughts are that one is cleared without the other. Perhaps `folio_test_uptodate(folio)` gets cleared, but the bitmap in `ifs->state` doesn't get cleared. Alternatively, maybe `folio_test_uptodate` is set, but `ifs->state` is *not* fully set, a partial update somehow?

Right, need to see when `folio_test_uptodate` gets cleared. I remember `folio_clear_uptodate(folio)` is called somewhere, likely on an error. Hmm, looking at the code `folio_end_read` calls `folio_clear_uptodate(folio)` if there is an error. Wait a minute... `iomap` *doesn't* directly use `folio_end_read`! It uses `iomap_finish_folio_read`. Okay, I'm going to have to check what's going on with `iomap_finish_folio_read` now to trace what's happening.



33/2 2026/09/18 00:49 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_finish_folio_read]

Results:
map[SourceCode: 444:	void iomap_finish_folio_read(struct folio *folio, size_t off, size_t len,
 445:			int error)
 446:	{
 447:		struct iomap_folio_state *ifs = folio->private;
 448:		bool uptodate = !error;
 449:		bool finished = true;
 450:	
 451:		if (error)
 452:			fserror_report_io(folio->mapping->host, FSERR_BUFFERED_READ,
 453:					  folio_pos(folio) + off, len, error,
 454:					  GFP_ATOMIC);
 455:	
 456:		if (ifs) {
 457:			unsigned long flags;
 458:	
 459:			spin_lock_irqsave(&ifs->state_lock, flags);
 460:			if (!error)
 461:				uptodate = ifs_set_range_uptodate(folio, ifs, off, len);
 462:			ifs->read_bytes_pending -= len;
 463:			finished = !ifs->read_bytes_pending;
 464:			spin_unlock_irqrestore(&ifs->state_lock, flags);
 465:		}
 466:	
 467:		if (finished)
 468:			folio_end_read(folio, uptodate);
 469:	}
 SourceFile:fs/iomap/buffered-io.c]

34/2 2026/09/18 00:49 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 61868
							output: 43
							thoughts: 621
						

Thoughts:
**Analyzing the Uptodate State of Folios**

Okay, let's break down this `folio_end_read` process. If the folio is considered up-to-date, then `folio_mark_uptodate` is called; otherwise, it's `folio_clear_uptodate`. The thing that's tripping me up is this: even if `folio_clear_uptodate` is called, it might not fully clear everything. `folio_test_uptodate` becomes false, yes, but `ifs->state` *could* still have bits set.

I know `ifs_is_fully_uptodate` checks if *all* bits are set.  If `folio_test_uptodate` is false (as it would be after clearing), then `ifs_is_fully_uptodate` *must* be false, regardless. The key here is the *warning* condition – we get flagged when these two disagree. In other words,  `ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)` would be true, and a warning is triggered.

So, where do we get a discrepancy?  Either `ifs_is_fully_uptodate` is true, while `folio_test_uptodate` is false (all bits set while marking as not up to date) or vice versa (some/no bits set while marking as up to date). Now, how can `ifs_is_fully_uptodate` be false, yet `folio_test_uptodate` be true? That's the crux of it.

Aha!  Someone calls `folio_mark_uptodate(folio)` directly, without also updating `ifs->state`! That's the smoking gun. We saw `ntfs3` does exactly this in several places, for example in `ntfs_read_folio`:
```c
	if (vbo >= ni->vfs_inode.i_size) {
		folio_zero_range(folio, 0, folio_size(folio));
		folio_mark_uptodate(folio);
		folio_unlock(folio);
		return 0;
	}
```
But is this problematic? Does `ntfs_read_folio` work directly with the `ifs` structure? If it doesn't, then `ifs_free` just returns because `ifs` is NULL. However, what if it DOES have an `ifs` attached? That's what I have to check.

Okay, if it *does* have an `ifs`, how did it get there? Maybe if the folio was previously written to? But, if it was written to, it would be dirty, and `ntfs_read_folio` is only called for folios that are not up-to-date. But, if a folio is *not* up-to-date, *but* has an `ifs` attached, it could be because it was partially written to. I should check `iomap_write_begin`.



35/2 2026/09/18 00:50 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:__iomap_write_begin]

Results:
map[SourceCode: 875:	static int __iomap_write_begin(const struct iomap_iter *iter,
 876:			const struct iomap_write_ops *write_ops, size_t len,
 877:			struct folio *folio)
 878:	{
 879:		struct iomap_folio_state *ifs;
 880:		loff_t pos = iter->pos;
 881:		loff_t block_size = i_blocksize(iter->inode);
 882:		loff_t block_start = round_down(pos, block_size);
 883:		loff_t block_end = round_up(pos + len, block_size);
 884:		unsigned int nr_blocks = i_blocks_per_folio(iter->inode, folio);
 885:		size_t from = offset_in_folio(folio, pos), to = from + len;
 886:		size_t poff, plen;
 887:	
 888:		/*
 889:		 * If the write or zeroing completely overlaps the current folio, then
 890:		 * entire folio will be dirtied so there is no need for
 891:		 * per-block state tracking structures to be attached to this folio.
 892:		 * For the unshare case, we must read in the ondisk contents because we
 893:		 * are not changing pagecache contents.
 894:		 */
 895:		if (!(iter->flags & IOMAP_UNSHARE) && pos <= folio_pos(folio) &&
 896:		    pos + len >= folio_next_pos(folio))
 897:			return 0;
 898:	
 899:		ifs = ifs_alloc(iter->inode, folio, iter->flags);
 900:		if ((iter->flags & IOMAP_NOWAIT) && !ifs && nr_blocks > 1)
 901:			return -EAGAIN;
 902:	
 903:		if (folio_test_uptodate(folio))
 904:			return 0;
 905:	
 906:		do {
 907:			iomap_adjust_read_range(iter->inode, folio, &block_start,
 908:					block_end - block_start, &poff, &plen);
 909:			if (plen == 0)
 910:				break;
 911:	
 912:			/*
 913:			 * If the read range will be entirely overwritten by the write,
 914:			 * we can skip having to zero/read it in.
 915:			 */
 916:			if (!(iter->flags & IOMAP_UNSHARE) && from <= poff &&
 917:			    to >= poff + plen)
 918:				continue;
 919:	
 920:			if (iomap_block_needs_zeroing(iter, block_start)) {
 921:				if (WARN_ON_ONCE(iter->flags & IOMAP_UNSHARE))
 922:					return -EIO;
 923:				folio_zero_segments(folio, poff, from, to, poff + plen);
 924:			} else {
 925:				const struct iomap *iomap = iomap_iter_srcmap(iter);
 926:				int status;
 927:	
 928:				if (iter->flags & IOMAP_NOWAIT)
 929:					return -EAGAIN;
 930:	
 931:				if (write_ops && write_ops->read_folio_range)
 932:					status = write_ops->read_folio_range(iter,
 933:							folio, block_start, plen);
 934:				else
 935:					status = iomap_bio_read_folio_range_sync(iter,
 936:							folio, block_start, plen);
 937:				if (status < 0)
 938:					fserror_report_io(iter->inode,
 939:							  FSERR_BUFFERED_READ, pos,
 940:							  plen, status, GFP_NOFS);
 941:				if (status)
 942:					return status;
 943:	
 944:				if (iomap->flags & IOMAP_F_ZERO_TAIL)
 945:					folio_zero_segment(folio, to, poff + plen);
 946:			}
 947:			iomap_set_range_uptodate(folio, poff, plen);
 948:		} while ((block_start += plen) < block_end);
 949:	
 950:		return 0;
 951:	}
 SourceFile:fs/iomap/buffered-io.c]

36/2 2026/09/18 00:50 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 64514
							output: 41
							thoughts: 844
						

Thoughts:
**Analyzing Potential `ifs` Inconsistency in NTFS3**

Okay, so I'm digging into this `__iomap_write_begin` function, and my thought process is going like this: it allocates an `ifs` (I/O folio state) using `ifs_alloc`. Then, it reads the blocks that aren't being overwritten, and it calls `iomap_set_range_uptodate`, which in turn calls `folio_mark_uptodate` if everything's good to go. The key is if `folio_mark_uptodate` is hit, does that actually touch the `ifs->state`? I remember `iomap_set_range_uptodate` calling `ifs_set_range_uptodate`, so yeah, that's where the bits in `ifs->state` are set. If all those bits are set, `ifs_is_fully_uptodate` becomes true, which is what we expect.

Now, here's where it gets interesting and I start to have a concern. What if `ntfs3` directly calls `folio_mark_uptodate(folio)` on a folio that already has an `ifs` attached, but the `ifs->state` isn't fully set? When would that even happen? Let me revisit the `ntfs_read_folio` function.

```c
	if (vbo >= ni->vfs_inode.i_size) {
		folio_zero_range(folio, 0, folio_size(folio));
		folio_mark_uptodate(folio);
		folio_unlock(folio);
		return 0;
	}
```

Okay, if a folio is only partially written, it's going to have an `ifs` attached. If that folio is evicted or invalidated, the ifs is freed if invalidated. But if it's written back, the `ifs` is kept around. Hang on, the `ifs` sticks around until the folio gets freed or invalidated, correct? If a folio is being read, `ntfs_read_folio` gets called, right? But wait, isn't `ntfs_read_folio` only called when the folio is NOT uptodate? So, how could it have an `ifs` attached if it's not uptodate? Ah, maybe a failed previous read? In that case, the `ifs` might be there, with *some* bits set, but not all. Then `ntfs_read_folio` gets called *again*.

And if `vbo >= ni->vfs_inode.i_size`, then `folio_mark_uptodate` gets called, but without updating `ifs->state`! That's a problem. Later, when the folio is freed, `ifs_free` checks for the fully uptodate condition, but the `ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)` condition is going to be met, because the folio *is* uptodate, but `ifs` thinks it isn't. BOOM, warning.

So, can `vbo >= ni->vfs_inode.i_size` happen when an `ifs` is attached? If the file is truncated, then yes it could be. But a truncate invalidates folios past `i_size`. Wait, what about `O_TRUNC`? That calls `do_truncate`, then `truncate_setsize`, then `truncate_pagecache`, which *should* invalidate the folios. But, what if there's a race? Or if there's an `ntfs3` bug and it doesn't invalidate properly? Or if `ntfs_read_folio` is called on a partially-written folio beyond `i_size`? Wait, hold on. `vbo >= ni->vfs_inode.i_size` really means the *entire* folio is beyond `i_size`.

Let me look at `ntfs_extend_initialized_size`...



37/2 2026/09/18 00:51 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/file.c Name:ntfs_extend_initialized_size]

Results:
map[SourceCode: 301:	static int ntfs_extend_initialized_size(struct file *file,
 302:						struct ntfs_inode *ni,
 303:						const loff_t new_valid)
 304:	{
 305:		struct inode *inode = &ni->vfs_inode;
 306:		const loff_t valid = ni->i_valid;
 307:		int err;
 308:	
 309:		if (valid >= new_valid)
 310:			return 0;
 311:	
 312:		if (is_resident(ni)) {
 313:			ni->i_valid = new_valid;
 314:			return 0;
 315:		}
 316:	
 317:		err = iomap_zero_range(inode, valid, new_valid - valid, NULL,
 318:				       &ntfs_iomap_ops, &ntfs_iomap_folio_ops, NULL);
 319:		if (err) {
 320:			ni->i_valid = valid;
 321:			ntfs_inode_warn(inode,
 322:					"failed to extend initialized size to %llx.",
 323:					new_valid);
 324:			return err;
 325:		}
 326:	
 327:		return 0;
 328:	}
 SourceFile:fs/ntfs3/file.c]

38/2 2026/09/18 00:51 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 66696
							output: 38
							thoughts: 599
						

Thoughts:
**My Thought Process on `iomap_zero_range` and Folio State**

Okay, so I'm tracing the implications of `iomap_zero_range`. It looks like it's designed to zero out a specified range within a folio, using `iomap_write_begin` and `iomap_write_end` under the hood. The critical point is that this operation also attaches an `ifs` to the folio, which is the internal file system state structure.

If `iomap_zero_range` successfully zeros the range, the corresponding bits within `ifs->state` get set to indicate that part of the folio is now "uptodate." However, and this is important, if the zeroing operation doesn't cover the *entire* folio, the folio itself is *not* considered fully uptodate. This means we've partially zeroed data.

Here's the tricky part: `iomap_zero_range` calls `__iomap_write_begin`.  Because the folio might not be fully uptodate, `__iomap_write_begin` might need to read parts of the folio. But, wait, that's not quite right. It reads blocks not the entire folio!  If the block size is smaller than the folio size, only the blocks that are being written to are read. It makes sense, as the code zero's a range and marks the corresponding blocks within that range as uptodate. If the folio is not fully uptodate, then `folio_test_uptodate` returns false.

So, where does this lead? `ntfs_extend_initialized_size` eventually completes. The next question becomes, what happens if `ntfs_read_folio` is called on this folio subsequently? Will it see an issue between `vbo` (the virtual block offset) and `ni->vfs_inode.i_size`?  I remember that a `new_valid` will be the new initialized size but the `i_size` might be larger.

Let's check `ntfs_read_folio`. Okay, if `vbo >= ni->vfs_inode.i_size`, then `folio_zero_range(folio, 0, folio_size(folio))` and then `folio_mark_uptodate(folio)` are performed. But if `vbo < i_size`, `iomap_read_folio` is called.

Let me look at `ntfs_read_folio` again. If `vbo >= i_size`, then the entire folio is zeroed and marked as uptodate. Now, can this situation happen, where `vbo >= i_size` and there's an `ifs` attached? The answer is yes, if `iomap_zero_range` was called on a range that extends *beyond* the current `i_size`!

When would this happen? `ntfs_fallocate` springs to mind. That would make sense, because `fallocate` can allocate space *beyond* the current file size, and that would involve zeroing out the newly allocated blocks. This confirms my understanding.



39/2 2026/09/18 00:51 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/file.c Name:ntfs_fallocate]

Results:
map[SourceCode: 457:	/*
 458:	 * ntfs_fallocate - file_operations::ntfs_fallocate
 459:	 *
 460:	 * Preallocate space for a file. This implements ntfs's fallocate file
 461:	 * operation, which gets called from sys_fallocate system call. User
 462:	 * space requests 'len' bytes at 'vbo'. If FALLOC_FL_KEEP_SIZE is set
 463:	 * we just allocate clusters without zeroing them out. Otherwise we
 464:	 * allocate and zero out clusters via an expanding truncate.
 465:	 */
 466:	static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
 467:	{
 468:		struct inode *inode = file_inode(file);
 469:		struct address_space *mapping = inode->i_mapping;
 470:		struct super_block *sb = inode->i_sb;
 471:		struct ntfs_sb_info *sbi = sb->s_fs_info;
 472:		struct ntfs_inode *ni = ntfs_i(inode);
 473:		loff_t end = vbo + len;
 474:		loff_t vbo_down = round_down(vbo, max_t(unsigned long,
 475:							sbi->cluster_size, PAGE_SIZE));
 476:		bool is_supported_holes = is_sparsed(ni) || is_compressed(ni);
 477:		loff_t i_size, new_size;
 478:		bool map_locked;
 479:		int err;
 480:	
 481:		/* No support for dir. */
 482:		if (!S_ISREG(inode->i_mode))
 483:			return -EOPNOTSUPP;
 484:	
 485:		/*
 486:		 * vfs_fallocate checks all possible combinations of mode.
 487:		 * Do additional checks here before ntfs_set_state(dirty).
 488:		 */
 489:		if (mode & FALLOC_FL_PUNCH_HOLE) {
 490:			if (!is_supported_holes)
 491:				return -EOPNOTSUPP;
 492:		} else if (mode & FALLOC_FL_COLLAPSE_RANGE) {
 493:		} else if (mode & FALLOC_FL_INSERT_RANGE) {
 494:			if (!is_supported_holes)
 495:				return -EOPNOTSUPP;
 496:		} else if (mode &
 497:			   ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE |
 498:			     FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_INSERT_RANGE)) {
 499:			ntfs_inode_warn(inode, "fallocate(0x%x) is not supported",
 500:					mode);
 501:			return -EOPNOTSUPP;
 502:		}
 503:	
 504:		ntfs_set_state(sbi, NTFS_DIRTY_DIRTY);
 505:	
 506:		inode_lock(inode);
 507:		i_size = inode->i_size;
 508:		new_size = max(end, i_size);
 509:		map_locked = false;
 510:	
 511:		if (WARN_ON(ni->ni_flags & NI_FLAG_COMPRESSED_MASK)) {
 512:			/* Should never be here, see ntfs_file_open. */
 513:			err = -EOPNOTSUPP;
 514:			goto out;
 515:		}
 516:	
 517:		if (mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_COLLAPSE_RANGE |
 518:			    FALLOC_FL_INSERT_RANGE)) {
 519:			inode_dio_wait(inode);
 520:			filemap_invalidate_lock(mapping);
 521:			map_locked = true;
 522:		}
 523:	
 524:		if (mode & FALLOC_FL_PUNCH_HOLE) {
 525:			u32 frame_size;
 526:			loff_t mask, vbo_a, end_a, tmp, from;
 527:	
 528:			err = filemap_write_and_wait_range(mapping, vbo_down,
 529:							   LLONG_MAX);
 530:			if (err)
 531:				goto out;
 532:	
 533:			truncate_pagecache(inode, vbo_down);
 534:	
 535:			ni_lock(ni);
 536:			err = attr_punch_hole(ni, vbo, len, &frame_size);
 537:			ni_unlock(ni);
 538:			if (!err)
 539:				goto ok;
 540:	
 541:			if (err != E_NTFS_NOTALIGNED)
 542:				goto out;
 543:	
 544:			/* Process not aligned punch. */
 545:			err = 0;
 546:			if (end > i_size)
 547:				end = i_size;
 548:			mask = frame_size - 1;
 549:			vbo_a = (vbo + mask) & ~mask;
 550:			end_a = end & ~mask;
 551:	
 552:			tmp = min(vbo_a, end);
 553:			from = min_t(loff_t, ni->i_valid, vbo);
 554:			/* Zero head of punch. */
 555:			if (tmp > from) {
 556:				err = iomap_zero_range(inode, from, tmp - from, NULL,
 557:						       &ntfs_iomap_ops,
 558:						       &ntfs_iomap_folio_ops, NULL);
 559:				if (err)
 560:					goto out;
 561:			}
 562:	
 563:			/* Aligned punch_hole. Deallocate clusters. */
 564:			if (end_a > vbo_a) {
 565:				ni_lock(ni);
 566:				err = attr_punch_hole(ni, vbo_a, end_a - vbo_a, NULL);
 567:				ni_unlock(ni);
 568:				if (err)
 569:					goto out;
 570:			}
 571:	
 572:			/* Zero tail of punch. */
 573:			if (vbo < end_a && end_a < end) {
 574:				err = iomap_zero_range(inode, end_a, end - end_a, NULL,
 575:						       &ntfs_iomap_ops,
 576:						       &ntfs_iomap_folio_ops, NULL);
 577:				if (err)
 578:					goto out;
 579:			}
 580:		} else if (mode & FALLOC_FL_COLLAPSE_RANGE) {
 581:			/*
 582:			 * Write tail of the last page before removed range since
 583:			 * it will get removed from the page cache below.
 584:			 */
 585:			err = filemap_write_and_wait_range(mapping, vbo_down, vbo);
 586:			if (err)
 587:				goto out;
 588:	
 589:			/*
 590:			 * Write data that will be shifted to preserve them
 591:			 * when discarding page cache below.
 592:			 */
 593:			err = filemap_write_and_wait_range(mapping, end, LLONG_MAX);
 594:			if (err)
 595:				goto out;
 596:	
 597:			truncate_pagecache(inode, vbo_down);
 598:	
 599:			ni_lock(ni);
 600:			err = attr_collapse_range(ni, vbo, len);
 601:			ni_unlock(ni);
 602:			if (err)
 603:				goto out;
 604:		} else if (mode & FALLOC_FL_INSERT_RANGE) {
 605:			/* Check new size. */
 606:			err = inode_newsize_ok(inode, new_size);
 607:			if (err)
 608:				goto out;
 609:	
 610:			/* Write out all dirty pages. */
 611:			err = filemap_write_and_wait_range(mapping, vbo_down,
 612:							   LLONG_MAX);
 613:			if (err)
 614:				goto out;
 615:			truncate_pagecache(inode, vbo_down);
 616:	
 617:			ni_lock(ni);
 618:			err = attr_insert_range(ni, vbo, len);
 619:			ni_unlock(ni);
 620:			if (err)
 621:				goto out;
 622:		} else {
 623:			/* Check new size. */
 624:			u8 cluster_bits = sbi->cluster_bits;
 625:	
 626:			/* Be sure file is non resident. */
 627:			if (is_resident(ni)) {
 628:				ni_lock(ni);
 629:				err = attr_force_nonresident(ni);
 630:				ni_unlock(ni);
 631:				if (err)
 632:					goto out;
 633:			}
 634:	
 635:			/* generic/213: expected -ENOSPC instead of -EFBIG. */
 636:			if (!is_supported_holes) {
 637:				loff_t to_alloc = new_size - inode_get_bytes(inode);
 638:	
 639:				if (to_alloc > 0 &&
 640:				    (to_alloc >> cluster_bits) >
 641:					    wnd_zeroes(&sbi->used.bitmap)) {
 642:					err = -ENOSPC;
 643:					goto out;
 644:				}
 645:			}
 646:	
 647:			err = inode_newsize_ok(inode, new_size);
 648:			if (err)
 649:				goto out;
 650:	
 651:			if (new_size > i_size) {
 652:				/*
 653:				 * Allocate clusters, do not change 'valid' size.
 654:				 */
 655:				err = ntfs_set_size(inode, new_size);
 656:				if (err)
 657:					goto out;
 658:			}
 659:	
 660:			if (is_supported_holes) {
 661:				CLST vcn = vbo >> cluster_bits;
 662:				CLST cend = bytes_to_cluster(sbi, end);
 663:				CLST lcn, clen;
 664:				bool new;
 665:	
 666:				/*
 667:				 * Allocate and zero new clusters.
 668:				 */
 669:				for (; vcn < cend; vcn += clen) {
 670:					err = attr_data_get_block(ni, vcn, cend - vcn,
 671:								  &lcn, &clen, &new,
 672:								  true, NULL, false);
 673:					if (err)
 674:						goto out;
 675:				}
 676:			}
 677:	
 678:			if (mode & FALLOC_FL_KEEP_SIZE) {
 679:				err = ntfs_set_size(inode, i_size);
 680:				if (err)
 681:					goto out;
 682:			}
 683:		}
 684:	
 685:	ok:
 686:		err = file_modified(file);
 687:		if (err)
 688:			goto out;
 689:	
 690:	out:
 691:		if (map_locked)
 692:			filemap_invalidate_unlock(mapping);
 693:	
 694:		if (!err) {
 695:			inode_set_mtime_to_ts(inode, inode_set_ctime_current(inode));
 696:			mark_inode_dirty(inode);
 697:		}
 698:	
 699:		inode_unlock(inode);
 700:		return err;
 701:	}
 SourceFile:fs/ntfs3/file.c]

40/2 2026/09/18 00:51 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71650
							output: 39
							thoughts: 453
						

Thoughts:
**My Analysis of NTFS Fallocate and Size Extension**

Okay, let's break this down. When `ntfs_fallocate` is called, my initial thought is that it's using `iomap_zero_range` to punch holes in the file. I know that if it punches a hole, it zeros the head and tail of the region. This zeroing might then lead to attaching `ifs` (I assume information structures?) to the folios involved. The next part trips me up a little, because I see that `filemap_write_and_wait_range` seems to happen *before* the actual hole punching. Hmmm. And, wait, `truncate_pagecache` is called *before* even `iomap_zero_range`. That means the folios are being removed from the pagecache *first*. Then, `iomap_zero_range` essentially brings them back into the pagecache and zeroes the specific portions. Finally, `ntfs_fallocate` concludes. Now, if we then try to read from those folios with `ntfs_read_folio`, `vbo` (virtual block offset, I'm assuming) will *not* be greater than or equal to `i_size`, unless we're dealing with a hole at the very end of the file, which seems unlikely because the `end` is clamped to `i_size`. So, `ntfs_read_folio` should call `iomap_read_folio` as expected.

Now, what about `ntfs_extend_initialized_size`? I remember it's called from `ntfs_file_write_iter` and `ntfs_set_size`. If the latter extends the file, it will invoke `ntfs_extend_initialized_size`. It calls `iomap_zero_range` from `valid` to `new_valid`. That's where I assume it attaches the `ifs` structures to the folios within that specific range. Then, `ni->i_valid` is updated to `new_valid`. If `new_valid` is less than `i_size`, could `vbo` ever be greater than or equal to `i_size`? Probably not. I'm thinking `new_valid` is typically set to `i_size`. But wait, `ntfs_set_size` sets `i_size` to `new_size` first! Then it calls `ntfs_extend_initialized_size`... I should really check `ntfs_set_size` more closely.



41/2 2026/09/18 00:51 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_set_size]

Results:
map[SourceCode: 883:	int ntfs_set_size(struct inode *inode, u64 new_size)
 884:	{
 885:		struct super_block *sb = inode->i_sb;
 886:		struct ntfs_sb_info *sbi = sb->s_fs_info;
 887:		struct ntfs_inode *ni = ntfs_i(inode);
 888:		int err;
 889:	
 890:		/* Check for maximum file size. */
 891:		if (is_sparsed(ni) || is_compressed(ni)) {
 892:			if (new_size > sbi->maxbytes_sparse) {
 893:				return -EFBIG;
 894:			}
 895:		} else if (new_size > sbi->maxbytes) {
 896:			return -EFBIG;
 897:		}
 898:	
 899:		/* Mark rw ntfs as dirty. It will be cleared at umount. */
 900:		ntfs_set_state(sbi, NTFS_DIRTY_DIRTY);
 901:	
 902:		ni_lock(ni);
 903:		down_write(&ni->file.run_lock);
 904:		if (new_size < ni->i_valid)
 905:			ni->i_valid = new_size;
 906:	
 907:		/* last 'true' means keep preallocated. */
 908:		err = attr_set_size(ni, ATTR_DATA, ni->file.ads.name, ni->file.ads.len,
 909:				    &ni->file.run, new_size, &ni->i_valid, true);
 910:	
 911:		up_write(&ni->file.run_lock);
 912:		ni_unlock(ni);
 913:	
 914:		return err;
 915:	}
 SourceFile:fs/ntfs3/inode.c]

42/2 2026/09/18 00:51 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73253
							output: 38
							thoughts: 51
						

Thoughts:
Okay, let me think this through.

**Analyzing the Function Call Chain in NTFS File System Size Setting**

Right, so `ntfs_set_size`... that rings a bell. It's supposed to handle the overall size manipulation of an NTFS file. I'm pretty sure I've dug into that code before. Now, the key is what happens *inside* that function. Ah, yes, it calls `attr_set_size`. So, any size adjustments, logical or physical, ultimately go through that `attr_set_size` path, right?

Now the critical question, does `attr_set_size` then call `ntfs_extend_initialized_size`? I'm almost certain `attr_set_size` has the responsibility to deal with this, but I need to make sure. I need to be sure the function is handling the logic for extending the file's initialized size. I should probably just go and check the source code for `attr_set_size` to confirm. That's the best way to be certain.



43/2 2026/09/18 00:51 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/attrib.c Name:attr_set_size]

Results:
map[SourceCode: 473:	static inline int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type,
 474:					const __le16 *name, u8 name_len,
 475:					struct runs_tree *run, u64 new_size,
 476:					const u64 *new_valid, bool keep_prealloc)
 477:	{
 478:		return attr_set_size_ex(ni, type, name, name_len, run, new_size,
 479:					new_valid, keep_prealloc, NULL, false);
 480:	}
 SourceFile:fs/ntfs3/ntfs_fs.h]

44/2 2026/09/18 00:51 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 73766
							output: 40
							thoughts: 13
						

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

**Diving into `attr_set_size_ex`**

Okay, so I'm looking at this code and the immediate thing that pops into my head is to check `attr_set_size_ex`. I need to figure out how this function's implemented and how it relates to everything else. What are the key internal variables and how does it interface with the core data structures? My focus is going to be on the `_ex` part - I bet that extension is important. I’m thinking there must be some specific edge cases, memory management subtleties, or perhaps some specific performance considerations that the basic `attr_set_size` doesn’t handle. Is this related to thread safety somehow? Or are we talking about some newer, more efficient way of calculating or allocating a size? Got to understand the rationale behind the "_ex" designation. Let's dig in and see what we can find.



45/2 2026/09/18 00:51 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/attrib.c Name:attr_set_size_ex]

Results:
map[SourceCode: 421:	/*
 422:	 * attr_set_size_ex - Change the size of attribute.
 423:	 *
 424:	 * Extend:
 425:	 *   - Sparse/compressed: No allocated clusters.
 426:	 *   - Normal: Append allocated and preallocated new clusters.
 427:	 * Shrink:
 428:	 *   - No deallocate if @keep_prealloc is set.
 429:	 */
 430:	int attr_set_size_ex(struct ntfs_inode *ni, enum ATTR_TYPE type,
 431:			     const __le16 *name, u8 name_len, struct runs_tree *run,
 432:			     u64 new_size, const u64 *new_valid, bool keep_prealloc,
 433:			     struct ATTRIB **ret, bool no_da)
 434:	{
 435:		int err = 0;
 436:		struct ntfs_inode *nb = ni->base;
 437:		struct ntfs_sb_info *sbi = ni->mi.sbi;
 438:		u8 cluster_bits = sbi->cluster_bits;
 439:		bool is_mft = ni->mi.rno == MFT_REC_MFT && type == ATTR_DATA &&
 440:			      !name_len;
 441:		u64 old_valid, old_size, old_alloc, new_alloc_tmp;
 442:		u64 new_alloc = 0;
 443:		struct ATTRIB *attr = NULL, *attr_b;
 444:		struct ATTR_LIST_ENTRY *le, *le_b;
 445:		struct mft_inode *mi, *mi_b;
 446:		CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn;
 447:		CLST next_svcn, pre_alloc = -1, done = 0;
 448:		bool is_ext = false, is_bad = false;
 449:		bool dirty = false;
 450:		struct runs_tree *run_da = run == &ni->file.run ? &ni->file.run_da :
 451:								  NULL;
 452:		bool da = !is_mft && sbi->options->delalloc && run_da && !no_da;
 453:		u32 align;
 454:		struct MFT_REC *rec;
 455:	
 456:	again:
 457:		alen = 0;
 458:		le_b = NULL;
 459:		attr_b = ni_find_attr(ni, NULL, &le_b, type, name, name_len, NULL,
 460:				      &mi_b);
 461:		if (!attr_b) {
 462:			err = -ENOENT;
 463:			goto bad_inode;
 464:		}
 465:	
 466:		if (!attr_b->non_res) {
 467:			err = attr_set_size_res(ni, attr_b, le_b, mi_b, new_size, run,
 468:						&attr_b);
 469:			if (err)
 470:				return err;
 471:	
 472:			/* Return if file is still resident. */
 473:			if (!attr_b->non_res) {
 474:				dirty = true;
 475:				goto ok1;
 476:			}
 477:	
 478:			/* Layout of records may be changed, so do a full search. */
 479:			goto again;
 480:		}
 481:	
 482:		is_ext = is_attr_ext(attr_b);
 483:		align = sbi->cluster_size;
 484:		if (is_ext) {
 485:			align <<= attr_b->nres.c_unit;
 486:			keep_prealloc = false;
 487:			da = false;
 488:		}
 489:	
 490:		old_valid = le64_to_cpu(attr_b->nres.valid_size);
 491:		old_size = le64_to_cpu(attr_b->nres.data_size);
 492:		old_alloc = le64_to_cpu(attr_b->nres.alloc_size);
 493:	
 494:	again_1:
 495:		old_alen = old_alloc >> cluster_bits;
 496:	
 497:		new_alloc = (new_size + align - 1) & ~(u64)(align - 1);
 498:		new_alen = new_alloc >> cluster_bits;
 499:	
 500:		if (keep_prealloc && new_size < old_size) {
 501:			attr_b->nres.data_size = cpu_to_le64(new_size);
 502:			mi_b->dirty = dirty = true;
 503:			goto ok;
 504:		}
 505:	
 506:		if (da &&
 507:		    (vcn = old_alen + run_len(&ni->file.run_da), new_alen > vcn)) {
 508:			/* Resize up normal file. Delay new clusters allocation. */
 509:			alen = new_alen - vcn;
 510:	
 511:			if (ntfs_check_free_space(sbi, alen, 0, true)) {
 512:				if (!run_add_entry(&ni->file.run_da, vcn, SPARSE_LCN,
 513:						   alen, false)) {
 514:					err = -ENOMEM;
 515:					goto out;
 516:				}
 517:	
 518:				ntfs_add_da(sbi, alen);
 519:				goto ok1;
 520:			}
 521:		}
 522:	
 523:		if (!keep_prealloc && run_da && run_da->count &&
 524:		    (vcn = run_get_max_vcn(run_da), new_alen < vcn)) {
 525:			/* Shrink delayed clusters. */
 526:	
 527:			/* Try to remove fragment from delay allocated run. */
 528:			if (!run_remove_range(run_da, new_alen, vcn - new_alen,
 529:					      &alen)) {
 530:				err = -ENOMEM;
 531:				goto out;
 532:			}
 533:	
 534:			ntfs_sub_da(sbi, alen);
 535:		}
 536:	
 537:		vcn = old_alen - 1;
 538:	
 539:		svcn = le64_to_cpu(attr_b->nres.svcn);
 540:		evcn = le64_to_cpu(attr_b->nres.evcn);
 541:	
 542:		if (svcn <= vcn && vcn <= evcn) {
 543:			attr = attr_b;
 544:			le = le_b;
 545:			mi = mi_b;
 546:		} else if (!le_b) {
 547:			err = -EINVAL;
 548:			goto bad_inode;
 549:		} else {
 550:			le = le_b;
 551:			attr = ni_find_attr(ni, attr_b, &le, type, name, name_len, &vcn,
 552:					    &mi);
 553:			if (!attr) {
 554:				err = -EINVAL;
 555:				goto bad_inode;
 556:			}
 557:	
 558:	next_le_1:
 559:			svcn = le64_to_cpu(attr->nres.svcn);
 560:			evcn = le64_to_cpu(attr->nres.evcn);
 561:		}
 562:		/*
 563:		 * Here we have:
 564:		 * attr,mi,le - last attribute segment (containing 'vcn').
 565:		 * attr_b,mi_b,le_b - base (primary) attribute segment.
 566:		 */
 567:	next_le:
 568:		rec = mi->mrec;
 569:		err = attr_load_runs(attr, ni, run, NULL);
 570:		if (err)
 571:			goto out;
 572:	
 573:		if (new_size > old_size) {
 574:			CLST to_allocate;
 575:			size_t free;
 576:	
 577:			if (new_alloc <= old_alloc) {
 578:				attr_b->nres.data_size = cpu_to_le64(new_size);
 579:				mi_b->dirty = dirty = true;
 580:				goto ok;
 581:			}
 582:	
 583:			/*
 584:			 * Add clusters. In simple case we have to:
 585:			 *  - allocate space (vcn, lcn, len)
 586:			 *  - update packed run in 'mi'
 587:			 *  - update attr->nres.evcn
 588:			 *  - update attr_b->nres.data_size/attr_b->nres.alloc_size
 589:			 */
 590:			to_allocate = new_alen - old_alen;
 591:	add_alloc_in_same_attr_seg:
 592:			lcn = 0;
 593:			if (is_mft) {
 594:				/* MFT allocates clusters from MFT zone. */
 595:				pre_alloc = 0;
 596:			} else if (is_ext) {
 597:				/* No preallocate for sparse/compress. */
 598:				pre_alloc = 0;
 599:			} else if (pre_alloc == -1) {
 600:				pre_alloc = 0;
 601:				if (type == ATTR_DATA && !name_len &&
 602:				    sbi->options->prealloc) {
 603:					pre_alloc = bytes_to_cluster(
 604:							    sbi, get_pre_allocated(
 605:									 new_size)) -
 606:						    new_alen;
 607:				}
 608:	
 609:				/* Get the last LCN to allocate from. */
 610:				if (old_alen &&
 611:				    !run_lookup_entry(run, vcn, &lcn, NULL, NULL)) {
 612:					lcn = SPARSE_LCN;
 613:				}
 614:	
 615:				if (lcn == SPARSE_LCN)
 616:					lcn = 0;
 617:				else if (lcn)
 618:					lcn += 1;
 619:	
 620:				free = wnd_zeroes(&sbi->used.bitmap);
 621:				if (to_allocate > free) {
 622:					err = -ENOSPC;
 623:					goto out;
 624:				}
 625:	
 626:				if (pre_alloc && to_allocate + pre_alloc > free)
 627:					pre_alloc = 0;
 628:			}
 629:	
 630:			vcn = old_alen;
 631:	
 632:			if (is_ext) {
 633:				if (!run_add_entry(run, vcn, SPARSE_LCN, to_allocate,
 634:						   false)) {
 635:					err = -ENOMEM;
 636:					goto out;
 637:				}
 638:				alen = to_allocate;
 639:			} else {
 640:				/* ~3 bytes per fragment. */
 641:				err = attr_allocate_clusters(
 642:					sbi, run, run_da, vcn, lcn, to_allocate,
 643:					&pre_alloc,
 644:					is_mft ? ALLOCATE_MFT : ALLOCATE_DEF, &alen,
 645:					is_mft ? 0 :
 646:						 (sbi->record_size -
 647:						  le32_to_cpu(rec->used) + 8) /
 648:								 3 +
 649:							 1,
 650:					NULL, NULL);
 651:				if (err)
 652:					goto out;
 653:			}
 654:	
 655:			done += alen;
 656:			vcn += alen;
 657:			if (to_allocate > alen)
 658:				to_allocate -= alen;
 659:			else
 660:				to_allocate = 0;
 661:	
 662:	pack_runs:
 663:			err = mi_pack_runs(mi, attr, run, vcn - svcn);
 664:			if (err)
 665:				goto undo_1;
 666:	
 667:			next_svcn = le64_to_cpu(attr->nres.evcn) + 1;
 668:			new_alloc_tmp = (u64)next_svcn << cluster_bits;
 669:			attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp);
 670:			mi_b->dirty = dirty = true;
 671:	
 672:			if (next_svcn >= vcn && !to_allocate) {
 673:				/* Normal way. Update attribute and exit. */
 674:				attr_b->nres.data_size = cpu_to_le64(new_size);
 675:				goto ok;
 676:			}
 677:	
 678:			/* At least two MFT to avoid recursive loop. */
 679:			if (is_mft && next_svcn == vcn &&
 680:			    ((u64)done << sbi->cluster_bits) >= 2 * sbi->record_size) {
 681:				new_size = new_alloc_tmp;
 682:				attr_b->nres.data_size = attr_b->nres.alloc_size;
 683:				goto ok;
 684:			}
 685:	
 686:			if (le32_to_cpu(rec->used) < sbi->record_size) {
 687:				old_alen = next_svcn;
 688:				evcn = old_alen - 1;
 689:				goto add_alloc_in_same_attr_seg;
 690:			}
 691:	
 692:			attr_b->nres.data_size = attr_b->nres.alloc_size;
 693:			if (new_alloc_tmp < old_valid)
 694:				attr_b->nres.valid_size = attr_b->nres.data_size;
 695:	
 696:			if (type == ATTR_LIST) {
 697:				err = ni_expand_list(ni);
 698:				if (err)
 699:					goto undo_2;
 700:				if (next_svcn < vcn)
 701:					goto pack_runs;
 702:	
 703:				/* Layout of records is changed. */
 704:				goto again;
 705:			}
 706:	
 707:			if (!nb->attr_list.size) {
 708:				err = ni_create_attr_list(nb);
 709:				/* In case of error layout of records is not changed. */
 710:				if (err)
 711:					goto undo_2;
 712:				/* Layout of records is changed. */
 713:			}
 714:	
 715:			if (next_svcn >= vcn) {
 716:				/* This is MFT data, repeat. */
 717:				goto again;
 718:			}
 719:	
 720:			/* Insert new attribute segment. */
 721:			err = ni_insert_nonresident(ni, type, name, name_len, run,
 722:						    next_svcn, vcn - next_svcn,
 723:						    attr_b->flags, &attr, &mi, NULL);
 724:	
 725:			/*
 726:			 * Layout of records maybe changed.
 727:			 * Find base attribute to update.
 728:			 */
 729:			le_b = NULL;
 730:			attr_b = ni_find_attr(ni, NULL, &le_b, type, name, name_len,
 731:					      NULL, &mi_b);
 732:			if (!attr_b) {
 733:				err = -EINVAL;
 734:				goto bad_inode;
 735:			}
 736:	
 737:			if (err) {
 738:				/* ni_insert_nonresident failed. */
 739:				attr = NULL;
 740:				goto undo_2;
 741:			}
 742:	
 743:			/* keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP. */
 744:			if (ni->mi.rno != MFT_REC_MFT)
 745:				run_truncate_head(run, evcn + 1);
 746:	
 747:			svcn = le64_to_cpu(attr->nres.svcn);
 748:			evcn = le64_to_cpu(attr->nres.evcn);
 749:	
 750:			/*
 751:			 * Attribute is in consistency state.
 752:			 * Save this point to restore to if next steps fail.
 753:			 */
 754:			old_valid = old_size = old_alloc = (u64)vcn << cluster_bits;
 755:			attr_b->nres.valid_size = attr_b->nres.data_size =
 756:				attr_b->nres.alloc_size = cpu_to_le64(old_size);
 757:			mi_b->dirty = dirty = true;
 758:			goto again_1;
 759:		}
 760:	
 761:		if (new_size != old_size ||
 762:		    (new_alloc != old_alloc && !keep_prealloc)) {
 763:			/*
 764:			 * Truncate clusters. In simple case we have to:
 765:			 *  - update packed run in 'mi'
 766:			 *  - update attr->nres.evcn
 767:			 *  - update attr_b->nres.data_size/attr_b->nres.alloc_size
 768:			 *  - mark and trim clusters as free (vcn, lcn, len)
 769:			 */
 770:			CLST dlen = 0;
 771:	
 772:			vcn = max(svcn, new_alen);
 773:			new_alloc_tmp = (u64)vcn << cluster_bits;
 774:	
 775:			if (vcn > svcn) {
 776:				err = mi_pack_runs(mi, attr, run, vcn - svcn);
 777:				if (err)
 778:					goto out;
 779:			} else if (le && le->vcn) {
 780:				u16 le_sz = le16_to_cpu(le->size);
 781:	
 782:				/*
 783:				 * NOTE: List entries for one attribute are always
 784:				 * the same size. We deal with last entry (vcn==0)
 785:				 * and it is not first in entries array
 786:				 * (list entry for std attribute always first).
 787:				 * So it is safe to step back.
 788:				 */
 789:				mi_remove_attr(NULL, mi, attr);
 790:	
 791:				if (!al_remove_le(ni, le)) {
 792:					err = -EINVAL;
 793:					goto bad_inode;
 794:				}
 795:	
 796:				le = (struct ATTR_LIST_ENTRY *)((u8 *)le - le_sz);
 797:			} else {
 798:				attr->nres.evcn = cpu_to_le64((u64)vcn - 1);
 799:				mi->dirty = true;
 800:			}
 801:	
 802:			attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp);
 803:	
 804:			if (vcn == new_alen) {
 805:				attr_b->nres.data_size = cpu_to_le64(new_size);
 806:				if (new_size < old_valid)
 807:					attr_b->nres.valid_size =
 808:						attr_b->nres.data_size;
 809:			} else {
 810:				if (new_alloc_tmp <=
 811:				    le64_to_cpu(attr_b->nres.data_size))
 812:					attr_b->nres.data_size =
 813:						attr_b->nres.alloc_size;
 814:				if (new_alloc_tmp <
 815:				    le64_to_cpu(attr_b->nres.valid_size))
 816:					attr_b->nres.valid_size =
 817:						attr_b->nres.alloc_size;
 818:			}
 819:			mi_b->dirty = dirty = true;
 820:	
 821:			err = run_deallocate_ex(sbi, run, vcn, evcn - vcn + 1, &dlen,
 822:						true, run_da);
 823:			if (err)
 824:				goto out;
 825:	
 826:			if (is_ext) {
 827:				/* dlen - really deallocated clusters. */
 828:				le64_sub_cpu(&attr_b->nres.total_size,
 829:					     (u64)dlen << cluster_bits);
 830:			}
 831:	
 832:			run_truncate(run, vcn);
 833:	
 834:			if (new_alloc_tmp <= new_alloc)
 835:				goto ok;
 836:	
 837:			old_size = new_alloc_tmp;
 838:			vcn = svcn - 1;
 839:	
 840:			if (le == le_b) {
 841:				attr = attr_b;
 842:				mi = mi_b;
 843:				evcn = svcn - 1;
 844:				svcn = 0;
 845:				goto next_le;
 846:			}
 847:	
 848:			if (le->type != type || le->name_len != name_len ||
 849:			    memcmp(le_name(le), name, name_len * sizeof(short))) {
 850:				err = -EINVAL;
 851:				goto bad_inode;
 852:			}
 853:	
 854:			err = ni_load_mi(ni, le, &mi);
 855:			if (err)
 856:				goto out;
 857:	
 858:			attr = mi_find_attr(ni, mi, NULL, type, name, name_len,
 859:					    &le->id);
 860:			if (!attr) {
 861:				err = -EINVAL;
 862:				goto bad_inode;
 863:			}
 864:			goto next_le_1;
 865:		}
 866:	
 867:	ok:
 868:		if (new_valid) {
 869:			__le64 valid = cpu_to_le64(min(*new_valid, new_size));
 870:	
 871:			if (attr_b->nres.valid_size != valid) {
 872:				attr_b->nres.valid_size = valid;
 873:				mi_b->dirty = true;
 874:			}
 875:		}
 876:	
 877:	ok1:
 878:		if (ret)
 879:			*ret = attr_b;
 880:	
 881:		if ((type == ATTR_DATA || (type == ATTR_ALLOC && name == I30_NAME))) {
 882:			/* Update inode_set_bytes. */
 883:			if (attr_b->non_res &&
 884:			    inode_get_bytes(&ni->vfs_inode) != new_alloc) {
 885:				inode_set_bytes(&ni->vfs_inode, new_alloc);
 886:				dirty = true;
 887:			}
 888:	
 889:			i_size_write(&ni->vfs_inode, new_size);
 890:	
 891:			/* Don't forget to update duplicate information in parent. */
 892:			if (dirty) {
 893:				ni->ni_flags |= NI_FLAG_UPDATE_PARENT;
 894:				mark_inode_dirty(&ni->vfs_inode);
 895:			}
 896:		}
 897:	
 898:		return 0;
 899:	
 900:	undo_2:
 901:		vcn -= alen;
 902:		attr_b->nres.data_size = cpu_to_le64(old_size);
 903:		attr_b->nres.valid_size = cpu_to_le64(old_valid);
 904:		attr_b->nres.alloc_size = cpu_to_le64(old_alloc);
 905:	
 906:		/* Restore 'attr' and 'mi'. */
 907:		if (attr)
 908:			goto restore_run;
 909:	
 910:		if (le64_to_cpu(attr_b->nres.svcn) <= svcn &&
 911:		    svcn <= le64_to_cpu(attr_b->nres.evcn)) {
 912:			attr = attr_b;
 913:			le = le_b;
 914:			mi = mi_b;
 915:		} else if (!le_b) {
 916:			err = -EINVAL;
 917:			goto bad_inode;
 918:		} else {
 919:			le = le_b;
 920:			attr = ni_find_attr(ni, attr_b, &le, type, name, name_len,
 921:					    &svcn, &mi);
 922:			if (!attr)
 923:				goto bad_inode;
 924:		}
 925:	
 926:	restore_run:
 927:		if (mi_pack_runs(mi, attr, run, evcn - svcn + 1))
 928:			is_bad = true;
 929:	
 930:	undo_1:
 931:		run_deallocate_ex(sbi, run, vcn, alen, NULL, false, run_da);
 932:	
 933:		run_truncate(run, vcn);
 934:	out:
 935:		if (is_bad) {
 936:	bad_inode:
 937:			_ntfs_bad_inode(&ni->vfs_inode);
 938:		}
 939:		return err;
 940:	}
 SourceFile:fs/ntfs3/attrib.c]

46/2 2026/09/18 00:51 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 81987
							output: 39
							thoughts: 344
						

Thoughts:
**My Analysis of NTFS File Writing**

Okay, so `attr_set_size_ex` is just about modifying the NTFS metadata itself – the attributes and runs. It *doesn't* call `ntfs_extend_initialized_size`. That function, `ntfs_extend_initialized_size`, is the one called within `ntfs_file_write_iter`. Specifically, it happens when the write operation goes beyond the current `i_valid` value:

```c
	if (iocb->ki_pos > ni->i_valid) {
		err = ntfs_extend_initialized_size(file, ni, iocb->ki_pos);
		if (err)
			goto out;
	}
```

So, the idea is that if I'm writing past `i_valid`, `ntfs_extend_initialized_size` extends the "initialized" part of the file by zeroing out the relevant range, from `i_valid` up to the write position (`ki_pos`).  This uses `iomap_zero_range`, which seems to be what attaches the `ifs` (I/O File System) structure to the folios. Then, the new data is written, and *that* also attaches `ifs` to the folios. If I write past `i_size`, then `i_size` gets updated, of course.

But here's a wrinkle: what about compressed files?  There's a separate check:

```c
	if (is_compressed(ni)) {
		err = ntfs_extend_initialized_size(file, ni, iocb->ki_pos);
		if (err)
			goto out;
		ret = ntfs_compress_write(iocb, from);
		goto out;
	}
```

Ah, in that case, the same `ntfs_extend_initialized_size` is called, but then `ntfs_compress_write` is called afterwards. So, the initialization is done, and *then* the compression process gets involved. Time to dig into `ntfs_compress_write` now!



47/2 2026/09/18 00:52 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/file.c Name:ntfs_compress_write]

Results:
map[SourceCode: 981:	/*
 982:	 * ntfs_compress_write - Helper for ntfs_file_write_iter() (compressed files).
 983:	 */
 984:	static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
 985:	{
 986:		int err;
 987:		struct file *file = iocb->ki_filp;
 988:		size_t count = iov_iter_count(from);
 989:		loff_t pos = iocb->ki_pos;
 990:		struct inode *inode = file_inode(file);
 991:		loff_t i_size = i_size_read(inode);
 992:		struct address_space *mapping = inode->i_mapping;
 993:		struct ntfs_inode *ni = ntfs_i(inode);
 994:		u64 valid = ni->i_valid;
 995:		struct ntfs_sb_info *sbi = ni->mi.sbi;
 996:		struct page **pages = NULL;
 997:		struct folio *folio;
 998:		size_t written = 0;
 999:		u8 frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits;
1000:		u32 frame_size = 1u << frame_bits;
1001:		u32 pages_per_frame = frame_size >> PAGE_SHIFT;
1002:		u32 ip, off;
1003:		CLST frame;
1004:		u64 frame_vbo;
1005:		pgoff_t index;
1006:		bool frame_uptodate;
1007:	
1008:		if (frame_size < PAGE_SIZE) {
1009:			/*
1010:			 * frame_size == 8K if cluster 512
1011:			 * frame_size == 64K if cluster 4096
1012:			 */
1013:			ntfs_inode_warn(inode, "page size is bigger than frame size");
1014:			return -EOPNOTSUPP;
1015:		}
1016:	
1017:		pages = kmalloc_objs(struct page *, pages_per_frame, GFP_NOFS);
1018:		if (!pages)
1019:			return -ENOMEM;
1020:	
1021:		err = file_remove_privs(file);
1022:		if (err)
1023:			goto out;
1024:	
1025:		err = file_update_time(file);
1026:		if (err)
1027:			goto out;
1028:	
1029:		/* Zero range [valid : pos). */
1030:		while (valid < pos) {
1031:			CLST lcn, clen;
1032:	
1033:			frame = valid >> frame_bits;
1034:			frame_vbo = valid & ~(u64)(frame_size - 1);
1035:			off = valid & (frame_size - 1);
1036:	
1037:			err = attr_data_get_block(ni, frame << NTFS_LZNT_CUNIT, 1, &lcn,
1038:						  &clen, NULL, false, NULL, false);
1039:			if (err)
1040:				goto out;
1041:	
1042:			if (lcn == SPARSE_LCN) {
1043:				ni->i_valid = valid =
1044:					frame_vbo + ((u64)clen << sbi->cluster_bits);
1045:				continue;
1046:			}
1047:	
1048:			/* Load full frame. */
1049:			err = ntfs_get_frame_pages(mapping, frame_vbo >> PAGE_SHIFT,
1050:						   pages, pages_per_frame,
1051:						   &frame_uptodate);
1052:			if (err)
1053:				goto out;
1054:	
1055:			if (!frame_uptodate && off) {
1056:				err = ni_read_frame(ni, frame_vbo, pages,
1057:						    pages_per_frame, 0);
1058:				if (err) {
1059:					for (ip = 0; ip < pages_per_frame; ip++) {
1060:						folio = page_folio(pages[ip]);
1061:						folio_unlock(folio);
1062:						folio_put(folio);
1063:					}
1064:					goto out;
1065:				}
1066:			}
1067:	
1068:			ip = off >> PAGE_SHIFT;
1069:			off = offset_in_page(valid);
1070:			for (; ip < pages_per_frame; ip++, off = 0) {
1071:				folio = page_folio(pages[ip]);
1072:				folio_zero_segment(folio, off, PAGE_SIZE);
1073:				flush_dcache_folio(folio);
1074:				folio_mark_uptodate(folio);
1075:			}
1076:	
1077:			ni_lock(ni);
1078:			err = ni_write_frame(ni, pages, pages_per_frame);
1079:			ni_unlock(ni);
1080:	
1081:			for (ip = 0; ip < pages_per_frame; ip++) {
1082:				folio = page_folio(pages[ip]);
1083:				folio_mark_uptodate(folio);
1084:				folio_unlock(folio);
1085:				folio_put(folio);
1086:			}
1087:	
1088:			if (err)
1089:				goto out;
1090:	
1091:			ni->i_valid = valid = frame_vbo + frame_size;
1092:		}
1093:	
1094:		/* Copy user data [pos : pos + count). */
1095:		while (count) {
1096:			size_t copied, bytes;
1097:	
1098:			off = pos & (frame_size - 1);
1099:			bytes = frame_size - off;
1100:			if (bytes > count)
1101:				bytes = count;
1102:	
1103:			frame_vbo = pos & ~(u64)(frame_size - 1);
1104:			index = frame_vbo >> PAGE_SHIFT;
1105:	
1106:			if (unlikely(fault_in_iov_iter_readable(from, bytes))) {
1107:				err = -EFAULT;
1108:				goto out;
1109:			}
1110:	
1111:			/* Load full frame. */
1112:			err = ntfs_get_frame_pages(mapping, index, pages,
1113:						   pages_per_frame, &frame_uptodate);
1114:			if (err)
1115:				goto out;
1116:	
1117:			if (!frame_uptodate) {
1118:				loff_t to = pos + bytes;
1119:	
1120:				if (off || (to < i_size && (to & (frame_size - 1)))) {
1121:					err = ni_read_frame(ni, frame_vbo, pages,
1122:							    pages_per_frame, 0);
1123:					if (err) {
1124:						for (ip = 0; ip < pages_per_frame;
1125:						     ip++) {
1126:							folio = page_folio(pages[ip]);
1127:							folio_unlock(folio);
1128:							folio_put(folio);
1129:						}
1130:						goto out;
1131:					}
1132:				}
1133:			}
1134:	
1135:			WARN_ON(!bytes);
1136:			copied = 0;
1137:			ip = off >> PAGE_SHIFT;
1138:			off = offset_in_page(pos);
1139:	
1140:			/* Copy user data to pages. */
1141:			for (;;) {
1142:				size_t cp, tail = PAGE_SIZE - off;
1143:	
1144:				folio = page_folio(pages[ip]);
1145:				cp = copy_folio_from_iter_atomic(
1146:					folio, off, min(tail, bytes), from);
1147:				flush_dcache_folio(folio);
1148:	
1149:				copied += cp;
1150:				bytes -= cp;
1151:				if (!bytes || !cp)
1152:					break;
1153:	
1154:				if (cp < tail) {
1155:					off += cp;
1156:				} else {
1157:					ip++;
1158:					off = 0;
1159:				}
1160:			}
1161:	
1162:			ni_lock(ni);
1163:			err = ni_write_frame(ni, pages, pages_per_frame);
1164:			ni_unlock(ni);
1165:	
1166:			for (ip = 0; ip < pages_per_frame; ip++) {
1167:				folio = page_folio(pages[ip]);
1168:				folio_clear_dirty(folio);
1169:				folio_mark_uptodate(folio);
1170:				folio_unlock(folio);
1171:				folio_put(folio);
1172:			}
1173:	
1174:			if (err)
1175:				goto out;
1176:	
1177:			/*
1178:			 * We can loop for a long time in here. Be nice and allow
1179:			 * us to schedule out to avoid softlocking if preempt
1180:			 * is disabled.
1181:			 */
1182:			cond_resched();
1183:	
1184:			pos += copied;
1185:			written += copied;
1186:	
1187:			count = iov_iter_count(from);
1188:		}
1189:	
1190:	out:
1191:		kfree(pages);
1192:	
1193:		if (err < 0)
1194:			return err;
1195:	
1196:		iocb->ki_pos += written;
1197:		if (iocb->ki_pos > ni->i_valid)
1198:			ni->i_valid = iocb->ki_pos;
1199:		if (iocb->ki_pos > i_size)
1200:			i_size_write(inode, iocb->ki_pos);
1201:	
1202:		return written;
1203:	}
 SourceFile:fs/ntfs3/file.c]

48/2 2026/09/18 00:52 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 85986
							output: 31
							thoughts: 1236
						

Thoughts:
**Analyzing a Potential NTFS Page Cache and IFS Inconsistency**

Okay, here's what's running through my head. I'm looking at how `ntfs_compress_write` interacts with the page cache, and I think I've spotted a problem. Specifically, the direct call to `folio_mark_uptodate(folio)` within `ntfs_compress_write` is what's catching my eye.

First, I see that `ntfs_compress_write` is getting folios, or pages, using `ntfs_get_frame_pages`, which pulls them from the page cache. Now, I'm thinking about scenarios where this folio might have been previously touched by `iomap`—specifically, via `ntfs_extend_initialized_size`, which, in turn, calls `iomap_zero_range`. This is critical because `iomap_zero_range` *can* attach an `ifs` (inode file system) structure to the folio.

The sequence then becomes clear: `ntfs_compress_write` grabs the same folio from the page cache after `iomap_zero_range` has initialized it, writes to it, and calls `folio_mark_uptodate`. The problem is, it doesn't seem to update the `ifs->state` accordingly. When the folio is eventually evicted or invalidated, `ifs_free` is called. During `ifs_free`, a `WARN_ON_ONCE` checks if `ifs_is_fully_uptodate(folio, ifs)` matches `folio_test_uptodate(folio)`. Because `folio_test_uptodate` is set (by `ntfs_compress_write`), but `ifs_is_fully_uptodate` is false (because `ifs->state` was not updated), this warning is triggered. A conflict!

Let me verify this flow. First, compression occurs. Then, `ntfs_file_write_iter` is called with a position beyond the current valid data. This triggers `ntfs_extend_initialized_size`, which invokes `iomap_zero_range`. This function attaches `ifs` to a folio and zeros the relevant range, setting some bits in `ifs->state`, but possibly not all bits if the zeroed range is not the whole folio.

A key point, when writing with `iomap`, is that it might read the remaining block within `__iomap_write_begin`, unless it is an entire folio write. If the block size is equal to the folio size (e.g. 4K block, 4K page), then `i_blocks_per_folio` is 1, so `ifs_alloc` returns `NULL`. This `ifs` structure is only allocated if `nr_blocks > 1`, i.e., the block size is smaller than the page size (e.g., 1K block, 4K page).

This means the warning only shows when `nr_blocks > 1`. Now I need to consider NTFS cluster sizes: can they be less than the page size? The answer is yes; they can be 512, 1024, 2048, etc. With a page size of 4096, and a cluster size of 512, 1024, or 2048, `nr_blocks` will indeed be greater than 1. The `iomap` functions are using `i_blocksize(inode)`, which is usually the cluster size for NTFS, to determine sizes.

So, the warning condition happens only when the cluster size is less than the page size, which is a supported scenario, making this a real issue. I think I've pinned down a probable data inconsistency problem.



49/2 2026/09/18 00:52 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:inode->i_blkbits PathPrefix:fs/ntfs3]

Results:
map[Output:]

50/2 2026/09/18 00:52 llm expert-compressor
0m Model:
gemini-3.8-flash

Reply:
### Workspace & Investigation Summary

#### 1. Bug Summary & Current State
- **Bug Report / Warning:**
  ```text
  ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)
  WARNING: fs/iomap/buffered-io.c:295 at ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294, CPU#0: syz-executor344/5612
  ```
- **Call Trace:**
  ```text
  folio_invalidate mm/truncate.c:140 [inline]
  truncate_cleanup_folio+0xcb/0x190 mm/truncate.c:160
  truncate_inode_pages_range+0x2c4/0xd80 mm/truncate.c:404
  ntfs_evict_inode+0x19/0x40 fs/ntfs3/inode.c:2012
  evict+0x624/0xb50 fs/inode.c:822
  dispose_list fs/inode.c:864 [inline]
  evict_inodes+0x7e3/0x870 fs/inode.c:918
  generic_shutdown_super+0xaa/0x2d0 fs/super.c:741
  kill_block_super+0x44/0xa0 fs/super.c:1904
  ntfs3_kill_sb+0x44/0x1c0 fs/ntfs3/super.c:1940
  ```
- **Reproducer behavior:**
  - Mounts a specially crafted `ntfs3` image via loop device (with mount options like `force,iocharset=cp874,acl,discard,showmeta`).
  - Calls `openat(AT_FDCWD, "cpu.stat", 0x275a, 0)` (`0x275a` = `O_RDWR | O_CREAT | O_TRUNC | O_APPEND | O_NONBLOCK | O_NOCTTY | 0x18`) within the mounted directory.
  - Calls `write()` of 0x1006 bytes (with header length = 0x1000) to the file.
  - Calls `mmap()` on the file.
  - Exits, which triggers unmount / superblock shutdown (`ntfs3_kill_sb`), evicting inodes and invalidating folio page cache.
  - In `ifs_free()`, `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio))` is triggered.

---

#### 2. Key Code Snippets & Mechanics

- **`fs/iomap/buffered-io.c: ifs_free`**:
  ```c
  static void ifs_free(struct folio *folio)
  {
      struct iomap_folio_state *ifs = folio_detach_private(folio);

      if (!ifs)
          return;
      WARN_ON_ONCE(ifs->read_bytes_pending != 0);
      WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
      WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
              folio_test_uptodate(folio));
      kfree(ifs);
  }
  ```

- **`fs/iomap/buffered-io.c: ifs_is_fully_uptodate`**:
  ```c
  static inline bool ifs_is_fully_uptodate(struct folio *folio,
          struct iomap_folio_state *ifs)
  {
      struct inode *inode = folio->mapping->host;

      return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio));
  }
  ```

- **`fs/iomap/buffered-io.c: ifs_alloc`**:
  ```c
  static struct iomap_folio_state *ifs_alloc(struct inode *inode,
          struct folio *folio, unsigned int flags)
  {
      struct iomap_folio_state *ifs = folio->private;
      unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
      gfp_t gfp;

      if (ifs || nr_blocks <= 1)
          return ifs;
      ...
      ifs = kzalloc_flex(*ifs, state, BITS_TO_LONGS(2 * nr_blocks), gfp);
      ...
      spin_lock_init(&ifs->state_lock);
      if (folio_test_uptodate(folio))
          bitmap_set(ifs->state, 0, nr_blocks);
      if (folio_test_dirty(folio))
          bitmap_set(ifs->state, nr_blocks, nr_blocks);
      folio_attach_private(folio, ifs);
      return ifs;
  }
  ```

- **`fs/ntfs3` direct calls to `folio_mark_uptodate`**:
  - `fs/ntfs3/attrib.c:330` in `attr_make_nonresident`:
    ```c
    folio_fill_tail(folio, 0, data, rsize);
    folio_mark_uptodate(folio);
    folio_mark_dirty(folio);
    folio_unlock(folio);
    folio_put(folio);
    ```
  - `fs/ntfs3/inode.c:845` in `ntfs_read_folio`:
    ```c
    if (vbo >= ni->vfs_inode.i_size) {
        folio_zero_range(folio, 0, folio_size(folio));
        folio_mark_uptodate(folio);
        folio_unlock(folio);
        return 0;
    }
    ```
  - `fs/ntfs3/file.c` in `ntfs_compress_write` (lines 1074, 1083, 1169).
  - `fs/ntfs3/frecord.c:1946` in `ni_read_folio_cmpr`.

---

#### 3. Approaches Tried and Results

1. **Grepped definition of `ifs_is_fully_uptodate` and its callers**:
   - Confirmed `ifs_free()` asserts that `ifs_is_fully_uptodate(folio, ifs) == folio_test_uptodate(folio)`.
   - `ifs_is_fully_uptodate` checks if all block uptodate bits in `ifs->state` bitmap are set.
2. **Inspected `iomap_set_range_uptodate`**:
   - Updates `ifs->state` bitmap range and marks folio uptodate only if all blocks are uptodate and no read bytes are pending.
3. **Inspected invalidation path**:
   - `truncate_inode_pages_range` -> `truncate_cleanup_folio` -> `folio_invalidate` -> `iomap_invalidate_folio` -> calls `ifs_free(folio)` if entire folio invalidated.
4. **Checked `ntfs3` usage of `folio_mark_uptodate` and `iomap`**:
   - Identified several places where `ntfs3` calls `folio_mark_uptodate(folio)` directly instead of using iomap APIs.
   - Also inspected `attr_make_nonresident()` and `iomap_writeback_folio()`.

---

#### 4. Active Hypotheses & Investigation Paths

- **Hypothesis A (Direct `folio_mark_uptodate` on folio with `ifs`):**
  - An `ifs` was already attached (e.g. from a partial write in `__iomap_write_begin`), where `ifs->state` uptodate bitmap is NOT full.
  - Subsequently, `ntfs_read_folio` or another ntfs3 path marks the folio uptodate directly (`folio_mark_uptodate(folio)`), setting `PG_uptodate` on the folio without updating `ifs->state`.
  - Alternatively, in `attr_make_nonresident()`, or during compression / read beyond EOF, `folio_mark_uptodate` is set, but what if `ifs` was allocated during writeback? If `folio_test_uptodate(folio)` is true when `ifs_alloc()` runs, `ifs_alloc()` sets all bits, so that matches.
  - BUT what if `folio_clear_uptodate(folio)` was called (e.g. read error) after `ifs` had bits set, or `ifs` had all bits set but folio uptodate flag got cleared? Or vice versa: `ifs` only has partial bits set, but `folio_mark_uptodate` was called?
  - In `__iomap_write_begin`: if write is partial, `ifs` is allocated; only written range is marked uptodate. If write fails or file is truncated/evicted, or read error occurs, what happens?
- **Hypothesis B (NTFS3 custom read / write interaction with `ifs`):**
  - Trace `ntfs_iomap_read_end_io` / `ntfs_read_folio`:
    - Does `ntfs_iomap_read_end_io` do something inconsistent?
    - Look closely at `ntfs_iomap_read_end_io`:
      ```c
      static void ntfs_iomap_read_end_io(struct bio *bio)
      ```
  - Trace `ntfs_extend_initialized_size` and `ntfs_file_write_iter`:
    - In `ntfs_file_write_iter`: writes buffered with `iomap_file_buffered_write`.
- **Security Assessment Dimensions to Evaluate:**
  - Is this purely a harmless `WARN_ON_ONCE` state mismatch or does it lead to memory corruption / UAF / info leak?
    - Note: In production without debugging (`CONFIG_DEBUG_VM` / `PANIC_ON_WARN`), `WARN_ON_ONCE` simply prints a warning and proceeds to `kfree(ifs)`.
    - If `ifs` is freed cleanly with `kfree(ifs)`, does this state mismatch cause any wild dereference, use-after-free, or buffer overflow?
    - If `folio_test_uptodate` is out of sync with `ifs`, does stale / uninitialized pagecache get exposed to userspace? (potential info leak or DoS check).
  - Reachability:
    - Triggered via mounting ntfs3 image: requires `mount()` (CAP_SYS_ADMIN in init_user_ns, or user namespace if ntfs3 is fs_user_ns allowed, or malicious filesystem / auto-mount).
    - Can `ntfs3` be mounted unprivileged or in user namespace? Check `fs_flags` in `ntfs_fs_type` (e.g., `FS_USERNS_MOUNT`).

---

#### 5. Notes & Avoiding Repetitive Loops
- Avoid repeatedly calling `grepper` on generic tokens like `O_RDWR`.
- Next immediate steps:
  1. Check `ntfs_fs_type` flags in `fs/ntfs3/super.c` (is `FS_USERNS_MOUNT` set?).
  2. Examine `ntfs_iomap_read_end_io` and the exact mechanism causing the warning in `ifs_free`.
  3. Analyze if the condition flagged by WARN_ON_ONCE leads to DoS, memory corruption, info leak, or if execution safely continues.

Tokens:
							input: 61469
							output: 2722
							thoughts: 0
						

51/2 2026/09/18 00:53 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47217
							output: 29
							thoughts: 0
						

52/2 2026/09/18 00:53 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:i_blkbits PathPrefix:fs/ntfs3]

Results:
map[Output:]

53/2 2026/09/18 00:53 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47260
							output: 39
							thoughts: 0
						

54/2 2026/09/18 00:53 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_fill_super]

Results:
map[SourceCode:1264:	/*
1265:	 * ntfs_fill_super - Try to mount.
1266:	 */
1267:	static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
1268:	{
1269:		int err;
1270:		struct ntfs_sb_info *sbi = sb->s_fs_info;
1271:		struct block_device *bdev = sb->s_bdev;
1272:		struct ntfs_mount_options *fc_opts;
1273:		struct ntfs_mount_options *options = NULL;
1274:		struct inode *inode;
1275:		struct ntfs_inode *ni;
1276:		size_t i, tt, bad_len, bad_frags;
1277:		CLST vcn, lcn, len;
1278:		struct ATTRIB *attr;
1279:		const struct VOLUME_INFO *info;
1280:		u32 done, bytes;
1281:		struct ATTR_DEF_ENTRY *t;
1282:		u16 *shared;
1283:		struct MFT_REF ref;
1284:		bool ro = sb_rdonly(sb);
1285:		struct NTFS_BOOT *boot2 = NULL;
1286:	
1287:		ref.high = 0;
1288:	
1289:		sbi->sb = sb;
1290:		fc_opts = fc->fs_private;
1291:		if (!fc_opts) {
1292:			errorf(fc, "missing mount options");
1293:			return -EINVAL;
1294:		}
1295:		options = kmemdup(fc_opts, sizeof(*fc_opts), GFP_KERNEL);
1296:		if (!options)
1297:			return -ENOMEM;
1298:	
1299:		if (fc_opts->nls_name) {
1300:			options->nls_name = kstrdup(fc_opts->nls_name, GFP_KERNEL);
1301:			if (!options->nls_name) {
1302:				kfree(options);
1303:				return -ENOMEM;
1304:			}
1305:		}
1306:		sbi->options = options;
1307:		sb->s_flags |= SB_NODIRATIME;
1308:		sb->s_magic = 0x7366746e; // "ntfs"
1309:		sb->s_op = &ntfs_sops;
1310:		sb->s_export_op = &ntfs_export_ops;
1311:		sb->s_time_gran = NTFS_TIME_GRAN; // 100 nsec
1312:		sb->s_xattr = ntfs_xattr_handlers;
1313:		set_default_d_op(sb, options->nocase ? &ntfs_dentry_ops : NULL);
1314:	
1315:		options->nls = ntfs_load_nls(options->nls_name);
1316:		if (IS_ERR(options->nls)) {
1317:			options->nls = NULL;
1318:			errorf(fc, "Cannot load nls %s", options->nls_name);
1319:			err = -EINVAL;
1320:			goto out;
1321:		}
1322:	
1323:		if (bdev_max_discard_sectors(bdev) && bdev_discard_granularity(bdev)) {
1324:			sbi->discard_granularity = bdev_discard_granularity(bdev);
1325:			sbi->discard_granularity_mask_inv =
1326:				~(u64)(sbi->discard_granularity - 1);
1327:		}
1328:	
1329:		/* Parse boot. */
1330:		err = ntfs_init_from_boot(sb, bdev_logical_block_size(bdev),
1331:					  bdev_nr_bytes(bdev), &boot2);
1332:		if (err)
1333:			goto out;
1334:	
1335:		/*
1336:		 * Load $Volume. This should be done before $LogFile
1337:		 * 'cause 'sbi->volume.ni' is used in 'ntfs_set_state'.
1338:		 */
1339:		ref.low = cpu_to_le32(MFT_REC_VOL);
1340:		ref.seq = cpu_to_le16(MFT_REC_VOL);
1341:		inode = ntfs_iget5(sb, &ref, &NAME_VOLUME);
1342:		if (IS_ERR(inode)) {
1343:			err = PTR_ERR(inode);
1344:			ntfs_err(sb, "Failed to load $Volume (%d).", err);
1345:			goto out;
1346:		}
1347:	
1348:		ni = ntfs_i(inode);
1349:	
1350:		/* Load and save label (not necessary). */
1351:		attr = ni_find_attr(ni, NULL, NULL, ATTR_LABEL, NULL, 0, NULL, NULL);
1352:	
1353:		if (!attr) {
1354:			/* It is ok if no ATTR_LABEL */
1355:		} else if (!attr->non_res && !is_attr_ext(attr)) {
1356:			/* $AttrDef allows labels to be up to 128 symbols. */
1357:			err = utf16s_to_utf8s(resident_data(attr),
1358:					      le32_to_cpu(attr->res.data_size) >> 1,
1359:					      UTF16_LITTLE_ENDIAN, sbi->volume.label,
1360:					      sizeof(sbi->volume.label));
1361:			if (err < 0) {
1362:				sbi->volume.label[0] = 0;
1363:			} else if (err >= sizeof(sbi->volume.label)) {
1364:				sbi->volume.label[sizeof(sbi->volume.label) - 1] = 0;
1365:			} else {
1366:				sbi->volume.label[err] = 0;
1367:			}
1368:		} else {
1369:			/* Should we break mounting here? */
1370:			//err = -EINVAL;
1371:			//goto put_inode_out;
1372:		}
1373:	
1374:		attr = ni_find_attr(ni, attr, NULL, ATTR_VOL_INFO, NULL, 0, NULL, NULL);
1375:		if (!attr || is_attr_ext(attr) ||
1376:		    !(info = resident_data_ex(attr, SIZEOF_ATTRIBUTE_VOLUME_INFO))) {
1377:			ntfs_err(sb, "$Volume is corrupted.");
1378:			err = -EINVAL;
1379:			goto put_inode_out;
1380:		}
1381:	
1382:		sbi->volume.major_ver = info->major_ver;
1383:		sbi->volume.minor_ver = info->minor_ver;
1384:		sbi->volume.flags = info->flags;
1385:		sbi->volume.ni = ni;
1386:		if (info->flags & VOLUME_FLAG_DIRTY) {
1387:			sbi->volume.real_dirty = true;
1388:			ntfs_info(sb, "It is recommended to use chkdsk.");
1389:		}
1390:	
1391:		/* Load $MFTMirr to estimate recs_mirr. */
1392:		ref.low = cpu_to_le32(MFT_REC_MIRR);
1393:		ref.seq = cpu_to_le16(MFT_REC_MIRR);
1394:		inode = ntfs_iget5(sb, &ref, &NAME_MIRROR);
1395:		if (IS_ERR(inode)) {
1396:			err = PTR_ERR(inode);
1397:			ntfs_err(sb, "Failed to load $MFTMirr (%d).", err);
1398:			goto out;
1399:		}
1400:	
1401:		sbi->mft.recs_mirr = ntfs_up_cluster(sbi, inode->i_size) >>
1402:				     sbi->record_bits;
1403:	
1404:		iput(inode);
1405:	
1406:		/* Load LogFile to replay. */
1407:		ref.low = cpu_to_le32(MFT_REC_LOG);
1408:		ref.seq = cpu_to_le16(MFT_REC_LOG);
1409:		inode = ntfs_iget5(sb, &ref, &NAME_LOGFILE);
1410:		if (IS_ERR(inode)) {
1411:			err = PTR_ERR(inode);
1412:			ntfs_err(sb, "Failed to load \x24LogFile (%d).", err);
1413:			goto out;
1414:		}
1415:	
1416:		ni = ntfs_i(inode);
1417:	
1418:		err = ntfs_loadlog_and_replay(ni, sbi);
1419:		if (err)
1420:			goto put_inode_out;
1421:	
1422:		iput(inode);
1423:	
1424:		if ((sbi->flags & NTFS_FLAGS_NEED_REPLAY) && !ro) {
1425:			ntfs_warn(sb, "failed to replay log file. Can't mount rw!");
1426:			err = -EINVAL;
1427:			goto out;
1428:		}
1429:	
1430:		if ((sbi->volume.flags & VOLUME_FLAG_DIRTY) && !ro && !options->force) {
1431:			ntfs_warn(sb, "volume is dirty and \"force\" flag is not set!");
1432:			err = -EINVAL;
1433:			goto out;
1434:		}
1435:	
1436:		/* Load $MFT. */
1437:		ref.low = cpu_to_le32(MFT_REC_MFT);
1438:		ref.seq = cpu_to_le16(1);
1439:	
1440:		inode = ntfs_iget5(sb, &ref, &NAME_MFT);
1441:		if (IS_ERR(inode)) {
1442:			err = PTR_ERR(inode);
1443:			ntfs_err(sb, "Failed to load $MFT (%d).", err);
1444:			goto out;
1445:		}
1446:	
1447:		ni = ntfs_i(inode);
1448:	
1449:		sbi->mft.used = ni->i_valid >> sbi->record_bits;
1450:		tt = inode->i_size >> sbi->record_bits;
1451:		sbi->mft.next_free = MFT_REC_USER;
1452:	
1453:		err = ni_load_all_mi(ni);
1454:		if (err) {
1455:			ntfs_err(sb, "Failed to load $MFT's subrecords (%d).", err);
1456:			goto put_inode_out;
1457:		}
1458:	
1459:		/* Merge MFT bitmap runs from extent records loaded by ni_load_all_mi. */
1460:		{
1461:			struct ATTRIB *a = NULL;
1462:			struct ATTR_LIST_ENTRY *le = NULL;
1463:	
1464:			while ((a = ni_enum_attr_ex(ni, a, &le, NULL))) {
1465:				CLST svcn, evcn;
1466:				u16 roff;
1467:	
1468:				if (a->type != ATTR_BITMAP || !a->non_res)
1469:					continue;
1470:	
1471:				svcn = le64_to_cpu(a->nres.svcn);
1472:				if (!svcn)
1473:					continue; /* Base record runs already loaded. */
1474:	
1475:				evcn = le64_to_cpu(a->nres.evcn);
1476:				roff = le16_to_cpu(a->nres.run_off);
1477:	
1478:				err = run_unpack_ex(&sbi->mft.bitmap.run, sbi,
1479:						    MFT_REC_MFT, svcn, evcn, svcn,
1480:						    Add2Ptr(a, roff),
1481:						    le32_to_cpu(a->size) - roff);
1482:				if (err < 0) {
1483:					ntfs_err(
1484:						sb,
1485:						"Failed to unpack $MFT bitmap extent (%d).",
1486:						err);
1487:					goto put_inode_out;
1488:				}
1489:				err = 0;
1490:			}
1491:		}
1492:	
1493:		err = wnd_init(&sbi->mft.bitmap, sb, tt);
1494:		if (err)
1495:			goto put_inode_out;
1496:	
1497:		sbi->mft.ni = ni;
1498:	
1499:		/* Load $Bitmap. */
1500:		ref.low = cpu_to_le32(MFT_REC_BITMAP);
1501:		ref.seq = cpu_to_le16(MFT_REC_BITMAP);
1502:		inode = ntfs_iget5(sb, &ref, &NAME_BITMAP);
1503:		if (IS_ERR(inode)) {
1504:			err = PTR_ERR(inode);
1505:			ntfs_err(sb, "Failed to load $Bitmap (%d).", err);
1506:			goto out;
1507:		}
1508:	
1509:	#ifndef CONFIG_NTFS3_64BIT_CLUSTER
1510:		if (inode->i_size >> 32) {
1511:			err = -EINVAL;
1512:			goto put_inode_out;
1513:		}
1514:	#endif
1515:	
1516:		/* Check bitmap boundary. */
1517:		tt = sbi->used.bitmap.nbits;
1518:		if (inode->i_size < ntfs3_bitmap_size(tt)) {
1519:			ntfs_err(sb, "$Bitmap is corrupted.");
1520:			err = -EINVAL;
1521:			goto put_inode_out;
1522:		}
1523:	
1524:		err = wnd_init(&sbi->used.bitmap, sb, tt);
1525:		if (err) {
1526:			ntfs_err(sb, "Failed to initialize $Bitmap (%d).", err);
1527:			goto put_inode_out;
1528:		}
1529:	
1530:		iput(inode);
1531:	
1532:		/* Compute the MFT zone. */
1533:		err = ntfs_refresh_zone(sbi);
1534:		if (err) {
1535:			ntfs_err(sb, "Failed to initialize MFT zone (%d).", err);
1536:			goto out;
1537:		}
1538:	
1539:		/* Load $BadClus. */
1540:		ref.low = cpu_to_le32(MFT_REC_BADCLUST);
1541:		ref.seq = cpu_to_le16(MFT_REC_BADCLUST);
1542:		inode = ntfs_iget5(sb, &ref, &NAME_BADCLUS);
1543:		if (IS_ERR(inode)) {
1544:			err = PTR_ERR(inode);
1545:			ntfs_err(sb, "Failed to load $BadClus (%d).", err);
1546:			goto out;
1547:		}
1548:	
1549:		ni = ntfs_i(inode);
1550:		bad_len = bad_frags = 0;
1551:		for (i = 0; run_get_entry(&ni->file.run, i, &vcn, &lcn, &len); i++) {
1552:			if (lcn == SPARSE_LCN)
1553:				continue;
1554:	
1555:			bad_len += len;
1556:			bad_frags += 1;
1557:			if (ro)
1558:				continue;
1559:	
1560:			if (wnd_set_used_safe(&sbi->used.bitmap, lcn, len, &tt) || tt) {
1561:				/* Bad blocks marked as free in bitmap. */
1562:				ntfs_set_state(sbi, NTFS_DIRTY_ERROR);
1563:			}
1564:		}
1565:		if (bad_len) {
1566:			/*
1567:			 * Notice about bad blocks.
1568:			 * In normal cases these blocks are marked as used in bitmap.
1569:			 * And we never allocate space in it.
1570:			 */
1571:			ntfs_notice(sb,
1572:				    "Volume contains %zu bad blocks in %zu fragments.",
1573:				    bad_len, bad_frags);
1574:		}
1575:		iput(inode);
1576:	
1577:		/* Load $AttrDef. */
1578:		ref.low = cpu_to_le32(MFT_REC_ATTR);
1579:		ref.seq = cpu_to_le16(MFT_REC_ATTR);
1580:		inode = ntfs_iget5(sb, &ref, &NAME_ATTRDEF);
1581:		if (IS_ERR(inode)) {
1582:			err = PTR_ERR(inode);
1583:			ntfs_err(sb, "Failed to load $AttrDef (%d)", err);
1584:			goto out;
1585:		}
1586:	
1587:		/*
1588:		 * Typical $AttrDef contains up to 20 entries.
1589:		 * Check for extremely large/small size.
1590:		 */
1591:		if (inode->i_size < sizeof(struct ATTR_DEF_ENTRY) ||
1592:		    inode->i_size > 100 * sizeof(struct ATTR_DEF_ENTRY)) {
1593:			ntfs_err(sb, "Looks like $AttrDef is corrupted (size=%llu).",
1594:				 inode->i_size);
1595:			err = -EINVAL;
1596:			goto put_inode_out;
1597:		}
1598:	
1599:		bytes = inode->i_size;
1600:		sbi->def_table = t = kvmalloc(bytes, GFP_KERNEL);
1601:		if (!t) {
1602:			err = -ENOMEM;
1603:			goto put_inode_out;
1604:		}
1605:	
1606:		/* Read the entire file. */
1607:		err = inode_read_data(inode, sbi->def_table, bytes);
1608:		if (err) {
1609:			ntfs_err(sb, "Failed to read $AttrDef (%d).", err);
1610:			goto put_inode_out;
1611:		}
1612:	
1613:		if (ATTR_STD != t->type) {
1614:			ntfs_err(sb, "$AttrDef is corrupted.");
1615:			err = -EINVAL;
1616:			goto put_inode_out;
1617:		}
1618:	
1619:		t += 1;
1620:		sbi->def_entries = 1;
1621:		done = sizeof(struct ATTR_DEF_ENTRY);
1622:	
1623:		while (done + sizeof(struct ATTR_DEF_ENTRY) <= bytes) {
1624:			u32 t32 = le32_to_cpu(t->type);
1625:			u64 sz = le64_to_cpu(t->max_sz);
1626:	
1627:			if ((t32 & 0xF) || le32_to_cpu(t[-1].type) >= t32)
1628:				break;
1629:	
1630:			if (t->type == ATTR_REPARSE)
1631:				sbi->reparse.max_size = sz;
1632:			else if (t->type == ATTR_EA)
1633:				sbi->ea_max_size = sz;
1634:	
1635:			done += sizeof(struct ATTR_DEF_ENTRY);
1636:			t += 1;
1637:			sbi->def_entries += 1;
1638:		}
1639:		iput(inode);
1640:	
1641:		/* Load $UpCase. */
1642:		ref.low = cpu_to_le32(MFT_REC_UPCASE);
1643:		ref.seq = cpu_to_le16(MFT_REC_UPCASE);
1644:		inode = ntfs_iget5(sb, &ref, &NAME_UPCASE);
1645:		if (IS_ERR(inode)) {
1646:			err = PTR_ERR(inode);
1647:			ntfs_err(sb, "Failed to load $UpCase (%d).", err);
1648:			goto out;
1649:		}
1650:	
1651:		if (inode->i_size != 0x10000 * sizeof(short)) {
1652:			err = -EINVAL;
1653:			ntfs_err(sb, "$UpCase is corrupted.");
1654:			goto put_inode_out;
1655:		}
1656:	
1657:		/* Read the entire file. */
1658:		err = inode_read_data(inode, sbi->upcase, 0x10000 * sizeof(short));
1659:		if (err) {
1660:			ntfs_err(sb, "Failed to read $UpCase (%d).", err);
1661:			goto put_inode_out;
1662:		}
1663:	
1664:	#ifdef __BIG_ENDIAN
1665:		{
1666:			u16 *dst = sbi->upcase;
1667:	
1668:			for (i = 0; i < 0x10000; i++)
1669:				__swab16s(dst++);
1670:		}
1671:	#endif
1672:	
1673:		shared = ntfs_set_shared(sbi->upcase, 0x10000 * sizeof(short));
1674:		if (shared && sbi->upcase != shared) {
1675:			kvfree(sbi->upcase);
1676:			sbi->upcase = shared;
1677:		}
1678:	
1679:		iput(inode);
1680:	
1681:		if (is_ntfs3(sbi)) {
1682:			/* Load $Secure. */
1683:			err = ntfs_security_init(sbi);
1684:			if (err) {
1685:				ntfs_err(sb, "Failed to initialize $Secure (%d).", err);
1686:				goto out;
1687:			}
1688:	
1689:			/* Load $Extend. */
1690:			err = ntfs_extend_init(sbi);
1691:			if (err) {
1692:				ntfs_warn(sb, "Failed to initialize $Extend.");
1693:				goto load_root;
1694:			}
1695:	
1696:			/* Load $Extend/$Reparse. */
1697:			err = ntfs_reparse_init(sbi);
1698:			if (err) {
1699:				ntfs_warn(sb, "Failed to initialize $Extend/$Reparse.");
1700:				goto load_root;
1701:			}
1702:	
1703:			/* Load $Extend/$ObjId. */
1704:			err = ntfs_objid_init(sbi);
1705:			if (err) {
1706:				ntfs_warn(sb, "Failed to initialize $Extend/$ObjId.");
1707:				goto load_root;
1708:			}
1709:		}
1710:	
1711:	load_root:
1712:		/* Load root. */
1713:		ref.low = cpu_to_le32(MFT_REC_ROOT);
1714:		ref.seq = cpu_to_le16(MFT_REC_ROOT);
1715:		inode = ntfs_iget5(sb, &ref, &NAME_ROOT);
1716:		if (IS_ERR(inode)) {
1717:			err = PTR_ERR(inode);
1718:			ntfs_err(sb, "Failed to load root (%d).", err);
1719:			goto out;
1720:		}
1721:	
1722:		/*
1723:		 * Final check. Looks like this case should never occurs.
1724:		 */
1725:		if (!inode->i_op) {
1726:			err = -EINVAL;
1727:			ntfs_err(sb, "Failed to load root (%d).", err);
1728:			goto put_inode_out;
1729:		}
1730:	
1731:		sb->s_root = d_make_root(inode);
1732:		if (!sb->s_root) {
1733:			err = -ENOMEM;
1734:			goto out;
1735:		}
1736:	
1737:		if (boot2) {
1738:			/*
1739:		 	 * Alternative boot is ok but primary is not ok.
1740:		 	 * Volume is recognized as NTFS. Update primary boot.
1741:			 */
1742:			struct buffer_head *bh0 = sb_getblk(sb, 0);
1743:			if (bh0) {
1744:				wait_on_buffer(bh0);
1745:				lock_buffer(bh0);
1746:				memcpy(bh0->b_data, boot2, sizeof(*boot2));
1747:				set_buffer_uptodate(bh0);
1748:				mark_buffer_dirty(bh0);
1749:				unlock_buffer(bh0);
1750:				if (!sync_dirty_buffer(bh0))
1751:					ntfs_warn(sb, "primary boot is updated");
1752:				put_bh(bh0);
1753:			}
1754:	
1755:			kfree(boot2);
1756:		}
1757:	
1758:		ntfs_create_procdir(sb);
1759:	
1760:		return 0;
1761:	
1762:	put_inode_out:
1763:		iput(inode);
1764:	out:
1765:		/* sbi->options == options */
1766:		if (options) {
1767:			put_mount_options(sbi->options);
1768:			sbi->options = NULL;
1769:		}
1770:	
1771:		ntfs3_put_sbi(sbi);
1772:		kfree(boot2);
1773:		return err;
1774:	}
 SourceFile:fs/ntfs3/super.c]

55/2 2026/09/18 00:53 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 55283
							output: 39
							thoughts: 0
						

56/2 2026/09/18 00:53 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_fs_type]

Results:
map[SourceCode:1947:	// clang-format off
1948:	static struct file_system_type ntfs_fs_type = {
1949:		.owner			= THIS_MODULE,
1950:		.name			= "ntfs3",
1951:		.init_fs_context	= ntfs_init_fs_context,
1952:		.parameters		= ntfs_fs_parameters,
1953:		.kill_sb		= ntfs3_kill_sb,
1954:		.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
1955:	};
 SourceFile:fs/ntfs3/super.c]

57/2 2026/09/18 00:53 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 55517
							output: 39
							thoughts: 0
						

58/2 2026/09/18 00:53 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_read_folio]

Results:
map[SourceCode: 826:	static int ntfs_read_folio(struct file *file, struct folio *folio)
 827:	{
 828:		int err;
 829:		struct address_space *mapping = folio->mapping;
 830:		struct inode *inode = mapping->host;
 831:		struct ntfs_inode *ni = ntfs_i(inode);
 832:		loff_t vbo = folio_pos(folio);
 833:		struct iomap_read_folio_ctx ctx = {
 834:			.cur_folio = folio,
 835:			.ops = &ntfs_iomap_bio_read_ops,
 836:		};
 837:	
 838:		if (unlikely(is_bad_ni(ni))) {
 839:			folio_unlock(folio);
 840:			return -EIO;
 841:		}
 842:	
 843:		if (ni->i_valid <= vbo) {
 844:			folio_zero_range(folio, 0, folio_size(folio));
 845:			folio_mark_uptodate(folio);
 846:			folio_unlock(folio);
 847:			return 0;
 848:		}
 849:	
 850:		if (is_compressed(ni)) {
 851:			/* ni_lock is taken inside ni_read_folio_cmpr after page locks */
 852:			err = ni_read_folio_cmpr(ni, folio);
 853:			return err;
 854:		}
 855:	
 856:		iomap_read_folio(&ntfs_iomap_ops, &ctx, NULL);
 857:		return 0;
 858:	}
 SourceFile:fs/ntfs3/inode.c]

59/2 2026/09/18 00:53 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 56077
							output: 42
							thoughts: 0
						

60/2 2026/09/18 00:53 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/frecord.c Name:ni_read_folio_cmpr]

Results:
map[SourceCode:1923:	/*
1924:	 * ni_read_folio_cmpr
1925:	 *
1926:	 * When decompressing, we typically obtain more than one page per reference.
1927:	 * We inject the additional pages into the page cache.
1928:	 */
1929:	int ni_read_folio_cmpr(struct ntfs_inode *ni, struct folio *folio)
1930:	{
1931:		int err;
1932:		struct ntfs_sb_info *sbi = ni->mi.sbi;
1933:		struct address_space *mapping = folio->mapping;
1934:		pgoff_t index;
1935:		u64 frame_vbo, vbo = folio_pos(folio);
1936:		struct page **pages = NULL; /* Array of at most 16 pages. stack? */
1937:		u8 frame_bits;
1938:		CLST frame;
1939:		u32 i, idx, frame_size, pages_per_frame;
1940:		gfp_t gfp_mask;
1941:		struct page *pg;
1942:		struct folio *f;
1943:	
1944:		if (vbo >= i_size_read(&ni->vfs_inode)) {
1945:			folio_zero_range(folio, 0, folio_size(folio));
1946:			folio_mark_uptodate(folio);
1947:			err = 0;
1948:			goto out;
1949:		}
1950:	
1951:		if (ni->ni_flags & NI_FLAG_COMPRESSED_MASK) {
1952:			/* Xpress or LZX. */
1953:			frame_bits = ni_ext_compress_bits(ni);
1954:		} else {
1955:			/* LZNT compression. */
1956:			frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits;
1957:		}
1958:		frame_size = 1u << frame_bits;
1959:		frame = vbo >> frame_bits;
1960:		frame_vbo = (u64)frame << frame_bits;
1961:		idx = (vbo - frame_vbo) >> PAGE_SHIFT;
1962:	
1963:		pages_per_frame = frame_size >> PAGE_SHIFT;
1964:		pages = kzalloc_objs(struct page *, pages_per_frame, GFP_NOFS);
1965:		if (!pages) {
1966:			err = -ENOMEM;
1967:			goto out;
1968:		}
1969:	
1970:		pages[idx] = &folio->page;
1971:		index = frame_vbo >> PAGE_SHIFT;
1972:		gfp_mask = mapping_gfp_mask(mapping);
1973:	
1974:		for (i = 0; i < pages_per_frame; i++, index++) {
1975:			if (i == idx)
1976:				continue;
1977:	
1978:			f = ntfs_lock_new_page(mapping, index, gfp_mask);
1979:			if (IS_ERR(f)) {
1980:				err = PTR_ERR(f);
1981:				goto out1;
1982:			}
1983:			pages[i] = &f->page;
1984:		}
1985:	
1986:		ni_lock(ni);
1987:		err = ni_read_frame(ni, frame_vbo, pages, pages_per_frame, 0);
1988:		ni_unlock(ni);
1989:	
1990:	out1:
1991:		for (i = 0; i < pages_per_frame; i++) {
1992:			pg = pages[i];
1993:			if (i == idx || !pg)
1994:				continue;
1995:			unlock_page(pg);
1996:			put_page(pg);
1997:		}
1998:	
1999:	out:
2000:		/* At this point, err contains 0 or -EIO depending on the "critical" page. */
2001:		kfree(pages);
2002:		folio_unlock(folio);
2003:	
2004:		return err;
2005:	}
 SourceFile:fs/ntfs3/frecord.c]

61/2 2026/09/18 00:53 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 57391
							output: 39
							thoughts: 0
						

62/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/frecord.c Name:ni_read_frame]

Results:
map[SourceCode:2271:	/*
2272:	 * ni_read_frame
2273:	 *
2274:	 * Pages - Array of locked pages.
2275:	 */
2276:	int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
2277:			  u32 pages_per_frame, int copy)
2278:	{
2279:		int err;
2280:		struct ntfs_sb_info *sbi = ni->mi.sbi;
2281:		u8 cluster_bits = sbi->cluster_bits;
2282:		char *frame_ondisk = NULL;
2283:		char *frame_mem = NULL;
2284:		struct ATTR_LIST_ENTRY *le = NULL;
2285:		struct runs_tree *run = &ni->file.run;
2286:		u64 valid_size = ni->i_valid;
2287:		u64 vbo_disk;
2288:		size_t unc_size = 0;
2289:		u32 frame_size, i, ondisk_size;
2290:		struct page *pg;
2291:		struct ATTRIB *attr;
2292:		CLST frame, clst_data;
2293:	
2294:		ni = ni->base;
2295:		/*
2296:		 * To simplify decompress algorithm do vmap for source
2297:		 * and target pages.
2298:		 */
2299:		frame_size = pages_per_frame << PAGE_SHIFT;
2300:		frame_mem = vmap(pages, pages_per_frame, VM_MAP, PAGE_KERNEL);
2301:		if (!frame_mem) {
2302:			err = -ENOMEM;
2303:			goto out;
2304:		}
2305:	
2306:		attr = ni_find_attr(ni, NULL, &le, ATTR_DATA, NULL, 0, NULL, NULL);
2307:		if (!attr) {
2308:			err = -ENOENT;
2309:			goto out1;
2310:		}
2311:	
2312:		if (!attr->non_res) {
2313:			u32 data_size = le32_to_cpu(attr->res.data_size);
2314:	
2315:			memset(frame_mem, 0, frame_size);
2316:			if (frame_vbo < data_size) {
2317:				ondisk_size = data_size - frame_vbo;
2318:				memcpy(frame_mem, resident_data(attr) + frame_vbo,
2319:				       min(ondisk_size, frame_size));
2320:			}
2321:			err = 0;
2322:			goto out1;
2323:		}
2324:	
2325:		if (frame_vbo >= valid_size) {
2326:			memset(frame_mem, 0, frame_size);
2327:			err = 0;
2328:			goto out1;
2329:		}
2330:	
2331:		if (ni->ni_flags & NI_FLAG_COMPRESSED_MASK) {
2332:	#ifndef CONFIG_NTFS3_LZX_XPRESS
2333:			err = -EOPNOTSUPP;
2334:			goto out1;
2335:	#else
2336:			loff_t i_size = i_size_read(&ni->vfs_inode);
2337:			u32 frame_bits = ni_ext_compress_bits(ni);
2338:			u64 frame64 = frame_vbo >> frame_bits;
2339:			u64 frames, vbo_data;
2340:	
2341:			if (frame_size != (1u << frame_bits)) {
2342:				err = -EINVAL;
2343:				goto out1;
2344:			}
2345:			switch (frame_size) {
2346:			case 0x1000:
2347:			case 0x2000:
2348:			case 0x4000:
2349:			case 0x8000:
2350:				break;
2351:			default:
2352:				/* Unknown compression. */
2353:				err = -EOPNOTSUPP;
2354:				goto out1;
2355:			}
2356:	
2357:			attr = ni_find_attr(ni, attr, &le, ATTR_DATA, WOF_NAME,
2358:					    ARRAY_SIZE(WOF_NAME), NULL, NULL);
2359:			if (!attr) {
2360:				ntfs_inode_err(
2361:					&ni->vfs_inode,
2362:					"external compressed file should contains data attribute \"WofCompressedData\"");
2363:				err = -EINVAL;
2364:				goto out1;
2365:			}
2366:	
2367:			if (!attr->non_res) {
2368:				run = NULL;
2369:			} else {
2370:				run = run_alloc();
2371:				if (!run) {
2372:					err = -ENOMEM;
2373:					goto out1;
2374:				}
2375:			}
2376:	
2377:			frames = (i_size - 1) >> frame_bits;
2378:	
2379:			err = attr_wof_frame_info(ni, attr, run, frame64, frames,
2380:						  frame_bits, &ondisk_size, &vbo_data);
2381:			if (err)
2382:				goto out1;
2383:	
2384:			if (frame64 == frames) {
2385:				unc_size = 1 + ((i_size - 1) & (frame_size - 1));
2386:				ondisk_size = attr_size(attr) - vbo_data;
2387:			} else {
2388:				unc_size = frame_size;
2389:			}
2390:	
2391:			if (ondisk_size > frame_size) {
2392:				err = -EINVAL;
2393:				goto out1;
2394:			}
2395:	
2396:			if (!attr->non_res) {
2397:				if (vbo_data + ondisk_size >
2398:				    le32_to_cpu(attr->res.data_size)) {
2399:					err = -EINVAL;
2400:					goto out1;
2401:				}
2402:	
2403:				err = decompress_lzx_xpress(
2404:					sbi, Add2Ptr(resident_data(attr), vbo_data),
2405:					ondisk_size, frame_mem, unc_size, frame_size);
2406:				goto out1;
2407:			}
2408:			vbo_disk = vbo_data;
2409:			/* Load all runs to read [vbo_disk-vbo_to). */
2410:			err = attr_load_runs_range(ni, ATTR_DATA, WOF_NAME,
2411:						   ARRAY_SIZE(WOF_NAME), run, vbo_disk,
2412:						   vbo_data + ondisk_size);
2413:			if (err)
2414:				goto out1;
2415:	#endif
2416:		} else if (is_attr_compressed(attr)) {
2417:			/* LZNT compression. */
2418:			if (sbi->cluster_size > NTFS_LZNT_MAX_CLUSTER) {
2419:				err = -EOPNOTSUPP;
2420:				goto out1;
2421:			}
2422:	
2423:			if (attr->nres.c_unit != NTFS_LZNT_CUNIT) {
2424:				err = -EOPNOTSUPP;
2425:				goto out1;
2426:			}
2427:	
2428:			down_write(&ni->file.run_lock);
2429:			run_truncate_around(run, le64_to_cpu(attr->nres.svcn));
2430:			frame = frame_vbo >> (cluster_bits + NTFS_LZNT_CUNIT);
2431:			err = attr_is_frame_compressed(ni, attr, frame, &clst_data,
2432:						       run);
2433:			up_write(&ni->file.run_lock);
2434:			if (err)
2435:				goto out1;
2436:	
2437:			if (!clst_data) {
2438:				memset(frame_mem, 0, frame_size);
2439:				goto out1;
2440:			}
2441:	
2442:			frame_size = sbi->cluster_size << NTFS_LZNT_CUNIT;
2443:			ondisk_size = clst_data << cluster_bits;
2444:	
2445:			if (clst_data >= NTFS_LZNT_CLUSTERS) {
2446:				/* Frame is not compressed. */
2447:				down_read(&ni->file.run_lock);
2448:				err = ntfs_read_run(sbi, run, frame_mem, frame_vbo,
2449:						    ondisk_size);
2450:				up_read(&ni->file.run_lock);
2451:				goto out1;
2452:			}
2453:			vbo_disk = frame_vbo;
2454:		} else {
2455:			__builtin_unreachable();
2456:			err = -EINVAL;
2457:			goto out1;
2458:		}
2459:	
2460:		/* Allocate memory to read compressed data to. */
2461:		frame_ondisk = kvmalloc(ondisk_size, GFP_KERNEL);
2462:		if (!frame_ondisk) {
2463:			err = -ENOMEM;
2464:			goto out1;
2465:		}
2466:	
2467:		/* Read 'ondisk_size' bytes from disk. */
2468:		down_read(&ni->file.run_lock);
2469:		err = ntfs_read_run(sbi, run, frame_ondisk, vbo_disk, ondisk_size);
2470:		up_read(&ni->file.run_lock);
2471:		if (err)
2472:			goto out2;
2473:	
2474:	#ifdef CONFIG_NTFS3_LZX_XPRESS
2475:		if (run != &ni->file.run) {
2476:			/* LZX or XPRESS */
2477:			err = decompress_lzx_xpress(sbi, frame_ondisk, ondisk_size,
2478:						    frame_mem, unc_size, frame_size);
2479:		} else
2480:	#endif
2481:		{
2482:			/* LZNT - Native NTFS compression. */
2483:			unc_size = decompress_lznt(frame_ondisk, ondisk_size, frame_mem,
2484:						   frame_size);
2485:			if ((ssize_t)unc_size < 0)
2486:				err = unc_size;
2487:			else if (!unc_size || unc_size > frame_size)
2488:				err = -EINVAL;
2489:			else if (unc_size < frame_size) {
2490:				/*
2491:				 * Partial decompress: zero the [unc_size, frame_size)
2492:				 * tail.  decompress_lznt() leaves it untouched, so
2493:				 * without this the freshly vmapped pages would expose
2494:				 * uninitialized kernel memory to userspace.
2495:				 */
2496:				memset(frame_mem + unc_size, 0, frame_size - unc_size);
2497:			}
2498:		}
2499:		if (!err && valid_size < frame_vbo + frame_size) {
2500:			size_t ok = valid_size - frame_vbo;
2501:	
2502:			memset(frame_mem + ok, 0, frame_size - ok);
2503:		}
2504:	
2505:	out2:
2506:		kvfree(frame_ondisk);
2507:	out1:
2508:	#ifdef CONFIG_NTFS3_LZX_XPRESS
2509:		if (run != &ni->file.run)
2510:			run_free(run);
2511:		if (!err && copy) {
2512:			/* We are called from 'ni_decompress_file' */
2513:			/* Copy decompressed LZX or XPRESS data into new place. */
2514:			down_read(&ni->file.run_lock);
2515:			err = ntfs_write_run(sbi, &ni->file.run, frame_mem, frame_vbo,
2516:					     frame_size);
2517:			up_read(&ni->file.run_lock);
2518:		}
2519:	#endif
2520:		vunmap(frame_mem);
2521:	out:
2522:		for (i = 0; i < pages_per_frame; i++) {
2523:			pg = pages[i];
2524:			SetPageUptodate(pg);
2525:		}
2526:	
2527:		return err;
2528:	}
 SourceFile:fs/ntfs3/frecord.c]

63/2 2026/09/18 00:54 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 61359
							output: 46
							thoughts: 0
						

64/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_set_range_uptodate]

Results:
map[SourceCode:  81:	static void iomap_set_range_uptodate(struct folio *folio, size_t off,
  82:			size_t len)
  83:	{
  84:		struct iomap_folio_state *ifs = folio->private;
  85:		unsigned long flags;
  86:		bool mark_uptodate = true;
  87:	
  88:		if (folio_test_uptodate(folio))
  89:			return;
  90:	
  91:		if (ifs) {
  92:			spin_lock_irqsave(&ifs->state_lock, flags);
  93:			/*
  94:			 * If a read with bytes pending is in progress, we must not call
  95:			 * folio_mark_uptodate(). The read completion path
  96:			 * (iomap_read_end()) will call folio_end_read(), which uses XOR
  97:			 * semantics to set the uptodate bit. If we set it here, the XOR
  98:			 * in folio_end_read() will clear it, leaving the folio not
  99:			 * uptodate.
 100:			 */
 101:			mark_uptodate = ifs_set_range_uptodate(folio, ifs, off, len) &&
 102:					!ifs->read_bytes_pending;
 103:			spin_unlock_irqrestore(&ifs->state_lock, flags);
 104:		}
 105:	
 106:		if (mark_uptodate)
 107:			folio_mark_uptodate(folio);
 108:	}
 SourceFile:fs/iomap/buffered-io.c]

65/2 2026/09/18 00:54 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 61869
							output: 44
							thoughts: 0
						

66/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_set_range_uptodate]

Results:
map[SourceCode:  67:	static bool ifs_set_range_uptodate(struct folio *folio,
  68:			struct iomap_folio_state *ifs, size_t off, size_t len)
  69:	{
  70:		struct inode *inode = folio->mapping->host;
  71:		unsigned int first_blk, last_blk;
  72:	
  73:		if (len) {
  74:			first_blk = off >> inode->i_blkbits;
  75:			last_blk = (off + len - 1) >> inode->i_blkbits;
  76:			bitmap_set(ifs->state, first_blk, last_blk - first_blk + 1);
  77:		}
  78:		return ifs_is_fully_uptodate(folio, ifs);
  79:	}
 SourceFile:fs/iomap/buffered-io.c]

67/2 2026/09/18 00:54 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62163
							output: 38
							thoughts: 0
						

68/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_alloc]

Results:
map[SourceCode: 251:	static struct iomap_folio_state *ifs_alloc(struct inode *inode,
 252:			struct folio *folio, unsigned int flags)
 253:	{
 254:		struct iomap_folio_state *ifs = folio->private;
 255:		unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
 256:		gfp_t gfp;
 257:	
 258:		if (ifs || nr_blocks <= 1)
 259:			return ifs;
 260:	
 261:		if (flags & IOMAP_NOWAIT)
 262:			gfp = GFP_NOWAIT;
 263:		else
 264:			gfp = GFP_NOFS | __GFP_NOFAIL;
 265:	
 266:		/*
 267:		 * ifs->state tracks two sets of state flags when the
 268:		 * filesystem block size is smaller than the folio size.
 269:		 * The first state tracks per-block uptodate and the
 270:		 * second tracks per-block dirty state.
 271:		 */
 272:		ifs = kzalloc_flex(*ifs, state, BITS_TO_LONGS(2 * nr_blocks), gfp);
 273:		if (!ifs)
 274:			return ifs;
 275:	
 276:		spin_lock_init(&ifs->state_lock);
 277:		if (folio_test_uptodate(folio))
 278:			bitmap_set(ifs->state, 0, nr_blocks);
 279:		if (folio_test_dirty(folio))
 280:			bitmap_set(ifs->state, nr_blocks, nr_blocks);
 281:		folio_attach_private(folio, ifs);
 282:	
 283:		return ifs;
 284:	}
 SourceFile:fs/iomap/buffered-io.c]

69/2 2026/09/18 00:54 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62753
							output: 43
							thoughts: 0
						

70/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:__iomap_write_begin]

Results:
map[SourceCode: 875:	static int __iomap_write_begin(const struct iomap_iter *iter,
 876:			const struct iomap_write_ops *write_ops, size_t len,
 877:			struct folio *folio)
 878:	{
 879:		struct iomap_folio_state *ifs;
 880:		loff_t pos = iter->pos;
 881:		loff_t block_size = i_blocksize(iter->inode);
 882:		loff_t block_start = round_down(pos, block_size);
 883:		loff_t block_end = round_up(pos + len, block_size);
 884:		unsigned int nr_blocks = i_blocks_per_folio(iter->inode, folio);
 885:		size_t from = offset_in_folio(folio, pos), to = from + len;
 886:		size_t poff, plen;
 887:	
 888:		/*
 889:		 * If the write or zeroing completely overlaps the current folio, then
 890:		 * entire folio will be dirtied so there is no need for
 891:		 * per-block state tracking structures to be attached to this folio.
 892:		 * For the unshare case, we must read in the ondisk contents because we
 893:		 * are not changing pagecache contents.
 894:		 */
 895:		if (!(iter->flags & IOMAP_UNSHARE) && pos <= folio_pos(folio) &&
 896:		    pos + len >= folio_next_pos(folio))
 897:			return 0;
 898:	
 899:		ifs = ifs_alloc(iter->inode, folio, iter->flags);
 900:		if ((iter->flags & IOMAP_NOWAIT) && !ifs && nr_blocks > 1)
 901:			return -EAGAIN;
 902:	
 903:		if (folio_test_uptodate(folio))
 904:			return 0;
 905:	
 906:		do {
 907:			iomap_adjust_read_range(iter->inode, folio, &block_start,
 908:					block_end - block_start, &poff, &plen);
 909:			if (plen == 0)
 910:				break;
 911:	
 912:			/*
 913:			 * If the read range will be entirely overwritten by the write,
 914:			 * we can skip having to zero/read it in.
 915:			 */
 916:			if (!(iter->flags & IOMAP_UNSHARE) && from <= poff &&
 917:			    to >= poff + plen)
 918:				continue;
 919:	
 920:			if (iomap_block_needs_zeroing(iter, block_start)) {
 921:				if (WARN_ON_ONCE(iter->flags & IOMAP_UNSHARE))
 922:					return -EIO;
 923:				folio_zero_segments(folio, poff, from, to, poff + plen);
 924:			} else {
 925:				const struct iomap *iomap = iomap_iter_srcmap(iter);
 926:				int status;
 927:	
 928:				if (iter->flags & IOMAP_NOWAIT)
 929:					return -EAGAIN;
 930:	
 931:				if (write_ops && write_ops->read_folio_range)
 932:					status = write_ops->read_folio_range(iter,
 933:							folio, block_start, plen);
 934:				else
 935:					status = iomap_bio_read_folio_range_sync(iter,
 936:							folio, block_start, plen);
 937:				if (status < 0)
 938:					fserror_report_io(iter->inode,
 939:							  FSERR_BUFFERED_READ, pos,
 940:							  plen, status, GFP_NOFS);
 941:				if (status)
 942:					return status;
 943:	
 944:				if (iomap->flags & IOMAP_F_ZERO_TAIL)
 945:					folio_zero_segment(folio, to, poff + plen);
 946:			}
 947:			iomap_set_range_uptodate(folio, poff, plen);
 948:		} while ((block_start += plen) < block_end);
 949:	
 950:		return 0;
 951:	}
 SourceFile:fs/iomap/buffered-io.c]

71/2 2026/09/18 00:54 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 64110
							output: 42
							thoughts: 0
						

72/2 2026/09/18 00:54 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_write_end]

Results:
map[SourceCode:1164:	/*
1165:	 * Returns true if all copied bytes have been written to the pagecache,
1166:	 * otherwise return false.
1167:	 */
1168:	static bool iomap_write_end(struct iomap_iter *iter, size_t len, size_t copied,
1169:			struct folio *folio)
1170:	{
1171:		const struct iomap *srcmap = iomap_iter_srcmap(iter);
1172:		loff_t pos = iter->pos;
1173:	
1174:		if (srcmap->type == IOMAP_INLINE)
1175:			return iomap_write_end_inline(iter, folio, pos, copied);
1176:	
1177:		if (srcmap->flags & IOMAP_F_BUFFER_HEAD) {
1178:			size_t bh_written;
1179:	
1180:			bh_written = block_write_end(pos, len, copied, folio);
1181:			WARN_ON_ONCE(bh_written != copied && bh_written != 0);
1182:			return bh_written == copied;
1183:		}
1184:	
1185:		return __iomap_write_end(iter->inode, pos, len, copied, folio);
1186:	}
 SourceFile:fs/iomap/buffered-io.c]

73/2 2026/09/18 00:54 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 64560
							output: 43
							thoughts: 0
						

74/2 2026/09/18 00:55 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:__iomap_write_end]

Results:
map[SourceCode:1120:	static bool __iomap_write_end(struct inode *inode, loff_t pos, size_t len,
1121:			size_t copied, struct folio *folio)
1122:	{
1123:		flush_dcache_folio(folio);
1124:	
1125:		/*
1126:		 * The blocks that were entirely written will now be uptodate, so we
1127:		 * don't have to worry about a read_folio reading them and overwriting a
1128:		 * partial write.  However, if we've encountered a short write and only
1129:		 * partially written into a block, it will not be marked uptodate, so a
1130:		 * read_folio might come in and destroy our partial write.
1131:		 *
1132:		 * Do the simplest thing and just treat any short write to a
1133:		 * non-uptodate page as a zero-length write, and force the caller to
1134:		 * redo the whole thing.
1135:		 */
1136:		if (unlikely(copied < len && !folio_test_uptodate(folio)))
1137:			return false;
1138:		iomap_set_range_uptodate(folio, offset_in_folio(folio, pos), len);
1139:		iomap_set_range_dirty(folio, offset_in_folio(folio, pos), copied);
1140:		filemap_dirty_folio(inode->i_mapping, folio);
1141:		return true;
1142:	}
 SourceFile:fs/iomap/buffered-io.c]

75/2 2026/09/18 00:55 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 65060
							output: 40
							thoughts: 0
						

76/2 2026/09/18 00:56 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_evict_inode]

Results:
map[SourceCode:2010:	void ntfs_evict_inode(struct inode *inode)
2011:	{
2012:		truncate_inode_pages_final(&inode->i_data);
2013:	
2014:		clear_inode(inode);
2015:	
2016:		ni_clear(ntfs_i(inode));
2017:	}
 SourceFile:fs/ntfs3/inode.c]

77/2 2026/09/18 00:56 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 65235
							output: 37
							thoughts: 0
						

78/2 2026/09/18 00:56 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_i]

Results:
map[SourceCode:1152:	static inline struct ntfs_inode *ntfs_i(struct inode *inode)
1153:	{
1154:		return container_of(inode, struct ntfs_inode, vfs_inode);
1155:	}
 SourceFile:fs/ntfs3/ntfs_fs.h]

79/2 2026/09/18 00:56 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 65373
							output: 41
							thoughts: 0
						

80/2 2026/09/18 00:56 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_file_write_iter]

Results:
map[SourceCode:1236:	/*
1237:	 * ntfs_file_write_iter - file_operations::write_iter
1238:	 */
1239:	static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
1240:	{
1241:		struct file *file = iocb->ki_filp;
1242:		struct inode *inode = file_inode(file);
1243:		struct ntfs_inode *ni = ntfs_i(inode);
1244:		loff_t vbo, endbyte;
1245:		ssize_t ret, err;
1246:	
1247:		if (!inode_trylock(inode)) {
1248:			if (iocb->ki_flags & IOCB_NOWAIT)
1249:				return -EAGAIN;
1250:			inode_lock(inode);
1251:		}
1252:	
1253:		ret = check_write_restriction(inode);
1254:		if (ret)
1255:			goto out;
1256:	
1257:		if (is_compressed(ni) && (iocb->ki_flags & IOCB_DIRECT)) {
1258:			ntfs_inode_warn(inode, "direct i/o + compressed not supported");
1259:			ret = -EOPNOTSUPP;
1260:			goto out;
1261:		}
1262:	
1263:		ret = generic_write_checks(iocb, from);
1264:		if (ret <= 0)
1265:			goto out;
1266:	
1267:		err = file_modified(iocb->ki_filp);
1268:		if (err) {
1269:			ret = err;
1270:			goto out;
1271:		}
1272:	
1273:		if (WARN_ON(ni->ni_flags & NI_FLAG_COMPRESSED_MASK)) {
1274:			/* Should never be here, see ntfs_file_open(). */
1275:			ret = -EOPNOTSUPP;
1276:			goto out;
1277:		}
1278:	
1279:		vbo = iocb->ki_pos;
1280:		endbyte = vbo + ret;
1281:	
1282:		if (endbyte > inode->i_size) {
1283:			/*
1284:			 * Normal files: increase file size, allocate space.
1285:			 * Sparse/Compressed: increase file size. No space allocated.
1286:			 */
1287:			ret = ntfs_set_size(inode, endbyte);
1288:			if (ret)
1289:				goto out;
1290:		}
1291:	
1292:		if (is_compressed(ni)) {
1293:			ret = ntfs_compress_write(iocb, from);
1294:			goto out;
1295:		}
1296:	
1297:		if (vbo > ni->i_valid) {
1298:			ret = ntfs_extend_initialized_size(file, ni, vbo);
1299:			if (ret)
1300:				goto out;
1301:		}
1302:	
1303:		/* Fallback to buffered I/O if the inode does not support direct I/O. */
1304:		if (!(iocb->ki_flags & IOCB_DIRECT) ||
1305:		    !ntfs_should_use_dio(iocb, from)) {
1306:			iocb->ki_flags &= ~IOCB_DIRECT;
1307:	
1308:			ret = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
1309:							&ntfs_iomap_folio_ops, NULL);
1310:			inode_unlock(inode);
1311:	
1312:			if (likely(ret > 0))
1313:				ret = generic_write_sync(iocb, ret);
1314:	
1315:			return ret;
1316:		}
1317:	
1318:		if (ni->file.run_da.count) {
1319:			/* Direct I/O is not compatible with delalloc. */
1320:			ret = ni_allocate_da_blocks(ni);
1321:			if (ret)
1322:				goto out;
1323:		}
1324:	
1325:		ret = iomap_dio_rw(iocb, from, &ntfs_iomap_ops, NULL,
1326:				   IOMAP_DIO_FORCE_WAIT, NULL, 0);
1327:	
1328:		if (ret == -ENOTBLK) {
1329:			/* Returns -ENOTBLK in case of a page invalidation failure for writes.*/
1330:			/* The callers needs to fall back to buffered I/O in this case. */
1331:			ret = 0;
1332:		}
1333:	
1334:		if (ret >= 0 && iov_iter_count(from)) {
1335:			vbo = iocb->ki_pos;
1336:	
1337:			iocb->ki_flags &= ~IOCB_DIRECT;
1338:			err = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
1339:							&ntfs_iomap_folio_ops, NULL);
1340:			if (err < 0) {
1341:				ret = err;
1342:				goto out;
1343:			}
1344:	
1345:			/*
1346:			* We need to ensure that the pages within the page cache for
1347:			* the range covered by this I/O are written to disk and
1348:			* invalidated. This is in attempt to preserve the expected
1349:			* direct I/O semantics in the case we fallback to buffered I/O
1350:			* to complete off the I/O request.
1351:			*/
1352:			ret += err;
1353:			endbyte = vbo + err - 1;
1354:			err = filemap_write_and_wait_range(inode->i_mapping, vbo,
1355:							   endbyte);
1356:			if (err) {
1357:				ret = err;
1358:				goto out;
1359:			}
1360:	
1361:			invalidate_mapping_pages(inode->i_mapping, vbo >> PAGE_SHIFT,
1362:						 endbyte >> PAGE_SHIFT);
1363:		}
1364:	
1365:	out:
1366:		inode_unlock(inode);
1367:	
1368:		return ret;
1369:	}
 SourceFile:fs/ntfs3/file.c]

81/2 2026/09/18 00:56 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67380
							output: 41
							thoughts: 0
						

82/2 2026/09/18 00:56 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/file.c Name:ntfs_extend_initialized_size]

Results:
map[SourceCode: 301:	static int ntfs_extend_initialized_size(struct file *file,
 302:						struct ntfs_inode *ni,
 303:						const loff_t new_valid)
 304:	{
 305:		struct inode *inode = &ni->vfs_inode;
 306:		const loff_t valid = ni->i_valid;
 307:		int err;
 308:	
 309:		if (valid >= new_valid)
 310:			return 0;
 311:	
 312:		if (is_resident(ni)) {
 313:			ni->i_valid = new_valid;
 314:			return 0;
 315:		}
 316:	
 317:		err = iomap_zero_range(inode, valid, new_valid - valid, NULL,
 318:				       &ntfs_iomap_ops, &ntfs_iomap_folio_ops, NULL);
 319:		if (err) {
 320:			ni->i_valid = valid;
 321:			ntfs_inode_warn(inode,
 322:					"failed to extend initialized size to %llx.",
 323:					new_valid);
 324:			return err;
 325:		}
 326:	
 327:		return 0;
 328:	}
 SourceFile:fs/ntfs3/file.c]

83/2 2026/09/18 00:56 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 67841
							output: 41
							thoughts: 0
						

84/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_begin]

Results:
map[SourceCode: 921:	/*
 922:	 * Function to get mapping vbo -> lbo.
 923:	 * used with:
 924:	 * - iomap_zero_range
 925:	 * - iomap_truncate_page
 926:	 * - iomap_dio_rw
 927:	 * - iomap_file_buffered_write
 928:	 * - iomap_bmap
 929:	 * - iomap_fiemap
 930:	 * - iomap_bio_read_folio
 931:	 * - iomap_bio_readahead
 932:	 */
 933:	static int ntfs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
 934:				    unsigned int flags, struct iomap *iomap,
 935:				    struct iomap *srcmap)
 936:	{
 937:		struct ntfs_inode *ni = ntfs_i(inode);
 938:		struct ntfs_sb_info *sbi = ni->mi.sbi;
 939:		u8 cluster_bits = sbi->cluster_bits;
 940:		CLST vcn = offset >> cluster_bits;
 941:		u32 off = offset & sbi->cluster_mask;
 942:		bool rw = flags & IOMAP_WRITE;
 943:		loff_t endbyte = offset + length;
 944:		void *res = NULL;
 945:		int err;
 946:		CLST lcn, clen, clen_max = 1;
 947:		bool new_clst = false;
 948:		bool no_da;
 949:		bool zero = false;
 950:		if (unlikely(ntfs3_forced_shutdown(sbi->sb)))
 951:			return -EIO;
 952:	
 953:		if (flags & IOMAP_REPORT) {
 954:			if (offset > ntfs_get_maxbytes(ni)) {
 955:				/* called from fiemap/bmap. */
 956:				return -EINVAL;
 957:			}
 958:	
 959:			if (offset >= inode->i_size) {
 960:				/* special code for report. */
 961:				return -ENOENT;
 962:			}
 963:		}
 964:	
 965:		if (IOMAP_ZERO == flags && (endbyte & sbi->cluster_mask)) {
 966:			rw = true;
 967:		} else if (rw) {
 968:			clen_max = bytes_to_cluster(sbi, endbyte) - vcn;
 969:		}
 970:	
 971:		/*
 972:		 * Force to allocate clusters if directIO(write) or writeback_range.
 973:		 * NOTE: attr_data_get_block allocates clusters only for sparse file.
 974:		 * Normal file allocates clusters in attr_set_size.
 975:		*/
 976:		no_da = flags == (IOMAP_DIRECT | IOMAP_WRITE) || srcmap == WB_NO_DA;
 977:	
 978:		err = attr_data_get_block(ni, vcn, clen_max, &lcn, &clen,
 979:					  rw ? &new_clst : NULL, zero, &res, no_da);
 980:	
 981:		if (err) {
 982:			return err;
 983:		}
 984:	
 985:		if (lcn == EOF_LCN) {
 986:			/* request out of file. */
 987:			if (flags & IOMAP_REPORT) {
 988:				/* special code for report. */
 989:				return -ENOENT;
 990:			}
 991:	
 992:			if (rw) {
 993:				/* should never be here. */
 994:				return -EINVAL;
 995:			}
 996:			lcn = SPARSE_LCN;
 997:		}
 998:	
 999:		iomap->flags = new_clst ? IOMAP_F_NEW : 0;
1000:	
1001:		if (lcn == RESIDENT_LCN) {
1002:			if (offset >= clen) {
1003:				if (res)
1004:					__free_page(virt_to_page(res));
1005:				if (flags & IOMAP_REPORT) {
1006:					/* special code for report. */
1007:					return -ENOENT;
1008:				}
1009:				return -EFAULT;
1010:			}
1011:	
1012:			iomap->private = iomap->inline_data = res;
1013:			iomap->type = IOMAP_INLINE;
1014:			iomap->offset = 0;
1015:			iomap->length = clen; /* resident size in bytes. */
1016:			return 0;
1017:		}
1018:	
1019:		if (!clen) {
1020:			/* broken file? */
1021:			return -EINVAL;
1022:		}
1023:	
1024:		iomap->bdev = inode->i_sb->s_bdev;
1025:		iomap->offset = offset;
1026:		iomap->length = ((loff_t)clen << cluster_bits) - off;
1027:	
1028:		if (lcn == COMPRESSED_LCN) {
1029:			/* should never be here. */
1030:			return -EOPNOTSUPP;
1031:		}
1032:	
1033:		if (lcn == DELALLOC_LCN) {
1034:			iomap->type = IOMAP_DELALLOC;
1035:			iomap->addr = IOMAP_NULL_ADDR;
1036:		} else {
1037:			/* Translate clusters into bytes. */
1038:			iomap->addr = ((loff_t)lcn << cluster_bits) + off;
1039:			if (length && iomap->length > length)
1040:				iomap->length = length;
1041:			else
1042:				endbyte = offset + iomap->length;
1043:	
1044:			if (lcn == SPARSE_LCN) {
1045:				iomap->addr = IOMAP_NULL_ADDR;
1046:				iomap->type = IOMAP_HOLE;
1047:				//			if (IOMAP_ZERO == flags && !off) {
1048:				//				iomap->length = (endbyte - offset) &
1049:				//						sbi->cluster_mask_inv;
1050:				//			}
1051:			} else if (endbyte <= ni->i_valid) {
1052:				iomap->type = IOMAP_MAPPED;
1053:			} else if (offset < ni->i_valid) {
1054:				iomap->type = IOMAP_MAPPED;
1055:				if (flags & IOMAP_REPORT)
1056:					iomap->length = ni->i_valid - offset;
1057:			} else if (rw || (flags & IOMAP_ZERO)) {
1058:				iomap->type = IOMAP_MAPPED;
1059:			} else {
1060:				iomap->type = IOMAP_UNWRITTEN;
1061:			}
1062:		}
1063:	
1064:		if ((flags & IOMAP_ZERO) &&
1065:		    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
1066:			/* Avoid too large requests. */
1067:			u32 tail;
1068:			u32 off_a = offset & (PAGE_SIZE - 1);
1069:			if (off_a)
1070:				tail = PAGE_SIZE - off_a;
1071:			else
1072:				tail = PAGE_SIZE;
1073:	
1074:			if (iomap->length > tail)
1075:				iomap->length = tail;
1076:		}
1077:	
1078:		return 0;
1079:	}
 SourceFile:fs/ntfs3/inode.c]

85/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 70319
							output: 41
							thoughts: 0
						

86/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_end]

Results:
map[SourceCode:1081:	static int ntfs_iomap_end(struct inode *inode, loff_t pos, loff_t length,
1082:				  ssize_t written, unsigned int flags,
1083:				  struct iomap *iomap)
1084:	{
1085:		int err = 0;
1086:		struct ntfs_inode *ni = ntfs_i(inode);
1087:		loff_t endbyte = pos + written;
1088:	
1089:		if ((flags & IOMAP_WRITE) || (flags & IOMAP_ZERO)) {
1090:			if (iomap->type == IOMAP_INLINE) {
1091:				u32 data_size;
1092:				struct ATTRIB *attr;
1093:				struct mft_inode *mi;
1094:	
1095:				attr = ni_find_attr(ni, NULL, NULL, ATTR_DATA,
1096:						    ni->file.ads.name, ni->file.ads.len,
1097:						    NULL, &mi);
1098:				if (!attr || attr->non_res) {
1099:					err = -EINVAL;
1100:					goto out;
1101:				}
1102:	
1103:				data_size = le32_to_cpu(attr->res.data_size);
1104:				if (!(pos < data_size && endbyte <= data_size)) {
1105:					err = -EINVAL;
1106:					goto out;
1107:				}
1108:	
1109:				/* Update resident data. */
1110:				memcpy(resident_data(attr) + pos,
1111:				       iomap_inline_data(iomap, pos), written);
1112:				mi->dirty = true;
1113:				ni->i_valid = data_size;
1114:			} else if (ni->i_valid < endbyte) {
1115:				ni->i_valid = endbyte;
1116:				mark_inode_dirty(inode);
1117:			}
1118:		}
1119:	
1120:		if ((flags & IOMAP_ZERO) &&
1121:		    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
1122:			/* Pair for code in ntfs_iomap_begin. */
1123:			balance_dirty_pages_ratelimited(inode->i_mapping);
1124:			cond_resched();
1125:		}
1126:	
1127:	out:
1128:		if (iomap->type == IOMAP_INLINE) {
1129:			__free_page(virt_to_page(iomap->private));
1130:			iomap->private = NULL;
1131:		}
1132:	
1133:		return err;
1134:	}
 SourceFile:fs/ntfs3/inode.c]

87/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71226
							output: 41
							thoughts: 0
						

88/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_ops]

Results:
map[SourceCode:2322:	const struct iomap_ops ntfs_iomap_ops = {
2323:		.iomap_next	= ntfs_iomap_next,
2324:	};
 SourceFile:fs/ntfs3/inode.c]

89/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71355
							output: 41
							thoughts: 0
						

90/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_next]

Results:
map[SourceCode:2319:	static DEFINE_IOMAP_ITER_NEXT_END(ntfs_iomap_next, ntfs_iomap_begin,
 SourceFile:fs/ntfs3/inode.c]

91/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71467
							output: 43
							thoughts: 0
						

92/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_folio_ops]

Results:
map[SourceCode:2326:	const struct iomap_write_ops ntfs_iomap_folio_ops = {
2327:		.put_folio = ntfs_iomap_put_folio,
2328:	};
 SourceFile:fs/ntfs3/inode.c]

93/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71601
							output: 43
							thoughts: 0
						

94/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_iomap_put_folio]

Results:
map[SourceCode:1136:	/*
1137:	 * write_begin + put_folio + write_end.
1138:	 * iomap_zero_range
1139:	 * iomap_truncate_page
1140:	 * iomap_file_buffered_write
1141:	 */
1142:	static void ntfs_iomap_put_folio(struct inode *inode, loff_t pos,
1143:					 unsigned int len, struct folio *folio)
1144:	{
1145:		struct ntfs_inode *ni = ntfs_i(inode);
1146:		loff_t end = pos + len;
1147:		u32 f_size = folio_size(folio);
1148:		loff_t f_pos = folio_pos(folio);
1149:		loff_t f_end = f_pos + f_size;
1150:	
1151:		if (ni->i_valid <= end && end < f_end) {
1152:			/* zero range [end - f_end). */
1153:			/* The only thing ntfs_iomap_put_folio used for. */
1154:			folio_zero_segment(folio, offset_in_folio(folio, end), f_size);
1155:		}
1156:		folio_unlock(folio);
1157:		folio_put(folio);
1158:	}
 SourceFile:fs/ntfs3/inode.c]

95/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 72059
							output: 39
							thoughts: 0
						

96/2 2026/09/18 00:57 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/attrib.c Name:attr_make_nonresident]

Results:
map[SourceCode: 248:	/*
 249:	 * attr_make_nonresident
 250:	 *
 251:	 * If page is not NULL - it is already contains resident data
 252:	 * and locked (called from ni_write_frame()).
 253:	 */
 254:	int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
 255:				  struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
 256:				  u64 new_size, struct runs_tree *run,
 257:				  struct ATTRIB **ins_attr, struct page *page)
 258:	{
 259:		struct ntfs_sb_info *sbi;
 260:		struct ATTRIB *attr_s;
 261:		struct MFT_REC *rec;
 262:		u32 used, asize, rsize, aoff;
 263:		bool is_data;
 264:		CLST len, alen;
 265:		char *next;
 266:		int err;
 267:	
 268:		if (attr->non_res) {
 269:			*ins_attr = attr;
 270:			return 0;
 271:		}
 272:	
 273:		sbi = mi->sbi;
 274:		rec = mi->mrec;
 275:		attr_s = NULL;
 276:		used = le32_to_cpu(rec->used);
 277:		asize = le32_to_cpu(attr->size);
 278:		next = Add2Ptr(attr, asize);
 279:		aoff = PtrOffset(rec, attr);
 280:		rsize = le32_to_cpu(attr->res.data_size);
 281:		is_data = attr->type == ATTR_DATA;
 282:	
 283:		/* len - how many clusters required to store 'rsize' bytes */
 284:		if (is_attr_compressed(attr)) {
 285:			u8 shift = sbi->cluster_bits + NTFS_LZNT_CUNIT;
 286:			len = ((rsize + (1u << shift) - 1) >> shift) << NTFS_LZNT_CUNIT;
 287:		} else {
 288:			len = bytes_to_cluster(sbi, rsize);
 289:		}
 290:	
 291:		run_init(run);
 292:	
 293:		/* Make a copy of original attribute. */
 294:		attr_s = kmemdup(attr, asize, GFP_NOFS);
 295:		if (!attr_s) {
 296:			err = -ENOMEM;
 297:			goto out;
 298:		}
 299:	
 300:		if (!len) {
 301:			/* Empty resident -> Empty nonresident. */
 302:			alen = 0;
 303:		} else {
 304:			const char *data = resident_data(attr);
 305:	
 306:			err = attr_allocate_clusters(sbi, run, NULL, 0, 0, len, NULL,
 307:						     ALLOCATE_DEF, &alen, 0, NULL,
 308:						     NULL);
 309:			if (err)
 310:				goto out1;
 311:	
 312:			if (!rsize) {
 313:				/* Empty resident -> Non empty nonresident. */
 314:			} else if (!is_data) {
 315:				err = ntfs_sb_write_run(sbi, run, 0, data, rsize, 0);
 316:				if (err)
 317:					goto out2;
 318:			} else if (!page) {
 319:				struct address_space *mapping = ni->vfs_inode.i_mapping;
 320:				struct folio *folio;
 321:	
 322:				folio = __filemap_get_folio(
 323:					mapping, 0, FGP_LOCK | FGP_ACCESSED | FGP_CREAT,
 324:					mapping_gfp_mask(mapping));
 325:				if (IS_ERR(folio)) {
 326:					err = PTR_ERR(folio);
 327:					goto out2;
 328:				}
 329:				folio_fill_tail(folio, 0, data, rsize);
 330:				folio_mark_uptodate(folio);
 331:				folio_mark_dirty(folio);
 332:				folio_unlock(folio);
 333:				folio_put(folio);
 334:			}
 335:		}
 336:	
 337:		/* Remove original attribute. */
 338:		used -= asize;
 339:		memmove(attr, Add2Ptr(attr, asize), used - aoff);
 340:		rec->used = cpu_to_le32(used);
 341:		mi->dirty = true;
 342:		if (le)
 343:			al_remove_le(ni, le);
 344:	
 345:		err = ni_insert_nonresident(ni, attr_s->type, attr_name(attr_s),
 346:					    attr_s->name_len, run, 0, alen,
 347:					    attr_s->flags, &attr, NULL, NULL);
 348:		if (err)
 349:			goto out3;
 350:	
 351:		kfree(attr_s);
 352:		attr->nres.data_size = cpu_to_le64(rsize);
 353:		attr->nres.valid_size = attr->nres.data_size;
 354:	
 355:		*ins_attr = attr;
 356:	
 357:		if (is_data)
 358:			ni->ni_flags &= ~NI_FLAG_RESIDENT;
 359:	
 360:		/* Resident attribute becomes non resident. */
 361:		return 0;
 362:	
 363:	out3:
 364:		attr = Add2Ptr(rec, aoff);
 365:		memmove(next, attr, used - aoff);
 366:		memcpy(attr, attr_s, asize);
 367:		rec->used = cpu_to_le32(used + asize);
 368:		mi->dirty = true;
 369:	out2:
 370:		/* Undo: do not trim new allocated clusters. */
 371:		run_deallocate(sbi, run, false);
 372:		run_close(run);
 373:	out1:
 374:		kfree(attr_s);
 375:	out:
 376:		return err;
 377:	}
 SourceFile:fs/ntfs3/attrib.c]

97/2 2026/09/18 00:57 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 74074
							output: 40
							thoughts: 0
						

98/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_read_mft]

Results:
map[SourceCode:  26:	/*
  27:	 * ntfs_read_mft - Read record and parse MFT.
  28:	 */
  29:	static int ntfs_read_mft(struct inode *inode, const struct cpu_str *name,
  30:				 const struct MFT_REF *ref)
  31:	{
  32:		int err = 0;
  33:		struct ntfs_inode *ni = ntfs_i(inode);
  34:		struct super_block *sb = inode->i_sb;
  35:		struct ntfs_sb_info *sbi = sb->s_fs_info;
  36:		mode_t mode = 0;
  37:		struct ATTR_STD_INFO5 *std5 = NULL;
  38:		struct ATTR_LIST_ENTRY *le;
  39:		struct ATTRIB *attr;
  40:		bool is_match = false;
  41:		bool is_root = false;
  42:		bool is_dir;
  43:		u64 ino = inode->i_ino;
  44:		u32 rp_fa = 0, asize, t32;
  45:		u16 roff, rsize, names = 0, links = 0;
  46:		const struct ATTR_FILE_NAME *fname = NULL;
  47:		const struct INDEX_ROOT *root = NULL;
  48:		struct REPARSE_DATA_BUFFER rp; // 0x18 bytes
  49:		u64 t64;
  50:		struct MFT_REC *rec;
  51:		struct runs_tree *run;
  52:		struct timespec64 ts;
  53:		const __le16 *aname;
  54:	
  55:		inode->i_op = NULL;
  56:		/* Setup 'uid' and 'gid' */
  57:		inode->i_uid = sbi->options->fs_uid;
  58:		inode->i_gid = sbi->options->fs_gid;
  59:	
  60:		err = mi_init(&ni->mi, sbi, ino);
  61:		if (err)
  62:			goto out;
  63:	
  64:		if (!sbi->mft.ni && ino == MFT_REC_MFT && !sb->s_root) {
  65:			t64 = sbi->mft.lbo >> sbi->cluster_bits;
  66:			t32 = bytes_to_cluster(sbi, MFT_REC_VOL * sbi->record_size);
  67:			sbi->mft.ni = ni;
  68:			init_rwsem(&ni->file.run_lock);
  69:	
  70:			if (!run_add_entry(&ni->file.run, 0, t64, t32, true)) {
  71:				err = -ENOMEM;
  72:				goto out;
  73:			}
  74:		}
  75:	
  76:		err = mi_read(&ni->mi, ino == MFT_REC_MFT);
  77:	
  78:		if (err)
  79:			goto out;
  80:	
  81:		rec = ni->mi.mrec;
  82:	
  83:		if (sbi->flags & NTFS_FLAGS_LOG_REPLAYING) {
  84:			;
  85:		} else if (ref->seq != rec->seq) {
  86:			err = -EINVAL;
  87:			ntfs_err(sb, "MFT: r=%llx, expect seq=%x instead of %x!", ino,
  88:				 le16_to_cpu(ref->seq), le16_to_cpu(rec->seq));
  89:			goto out;
  90:		} else if (!is_rec_inuse(rec)) {
  91:			err = -ESTALE;
  92:			ntfs_err(sb, "Inode r=%x is not in use!", (u32)ino);
  93:			goto out;
  94:		}
  95:	
  96:		if (le32_to_cpu(rec->total) != sbi->record_size) {
  97:			/* Bad inode? */
  98:			err = -EINVAL;
  99:			goto out;
 100:		}
 101:	
 102:		if (!is_rec_base(rec)) {
 103:			err = -EINVAL;
 104:			goto out;
 105:		}
 106:	
 107:		/* Record should contain $I30 root. */
 108:		is_dir = rec->flags & RECORD_FLAG_DIR;
 109:	
 110:		/* MFT_REC_MFT is not a dir */
 111:		if (is_dir && ino == MFT_REC_MFT) {
 112:			err = -EINVAL;
 113:			goto out;
 114:		}
 115:	
 116:		inode->i_generation = le16_to_cpu(rec->seq);
 117:	
 118:		/* Enumerate all struct Attributes MFT. */
 119:		le = NULL;
 120:		attr = NULL;
 121:	
 122:		/*
 123:		 * To reduce tab pressure use goto instead of
 124:		 * while( (attr = ni_enum_attr_ex(ni, attr, &le, NULL) ))
 125:		 */
 126:	next_attr:
 127:		run = NULL;
 128:		err = -EINVAL;
 129:		attr = ni_enum_attr_ex(ni, attr, &le, NULL);
 130:		if (!attr)
 131:			goto end_enum;
 132:	
 133:		if (le && le->vcn) {
 134:			/* This is non primary attribute segment. Ignore if not MFT. */
 135:			if (ino != MFT_REC_MFT)
 136:				goto next_attr;
 137:	
 138:			if (attr->type == ATTR_DATA)
 139:				run = &ni->file.run;
 140:			else if (attr->type == ATTR_BITMAP)
 141:				run = &sbi->mft.bitmap.run;
 142:			else
 143:				goto next_attr;
 144:	
 145:			asize = le32_to_cpu(attr->size);
 146:			goto attr_unpack_run;
 147:		}
 148:	
 149:		roff = attr->non_res ? 0 : le16_to_cpu(attr->res.data_off);
 150:		rsize = attr->non_res ? 0 : le32_to_cpu(attr->res.data_size);
 151:		asize = le32_to_cpu(attr->size);
 152:		aname = attr_name(attr);
 153:	
 154:		/*
 155:		 * Really this check was done in 'ni_enum_attr_ex' -> ... 'mi_enum_attr'.
 156:		 * There not critical to check this case again
 157:		 */
 158:		if (attr->name_len &&
 159:		    sizeof(short) * attr->name_len + le16_to_cpu(attr->name_off) >
 160:			    asize)
 161:			goto out;
 162:	
 163:		if (attr->non_res) {
 164:			t64 = le64_to_cpu(attr->nres.alloc_size);
 165:			if (le64_to_cpu(attr->nres.data_size) > t64 ||
 166:			    le64_to_cpu(attr->nres.valid_size) > t64)
 167:				goto out;
 168:		}
 169:	
 170:		switch (attr->type) {
 171:		case ATTR_STD:
 172:			if (attr->non_res ||
 173:			    asize < sizeof(struct ATTR_STD_INFO) + roff ||
 174:			    rsize < sizeof(struct ATTR_STD_INFO))
 175:				goto out;
 176:	
 177:			if (std5)
 178:				goto next_attr;
 179:	
 180:			std5 = Add2Ptr(attr, roff);
 181:	
 182:			nt2kernel(std5->cr_time, &ni->i_crtime);
 183:			nt2kernel(std5->a_time, &ts);
 184:			inode_set_atime_to_ts(inode, ts);
 185:			nt2kernel(std5->c_time, &ts);
 186:			inode_set_ctime_to_ts(inode, ts);
 187:			nt2kernel(std5->m_time, &ts);
 188:			inode_set_mtime_to_ts(inode, ts);
 189:	
 190:			ni->std_fa = std5->fa;
 191:	
 192:			if (asize >= sizeof(struct ATTR_STD_INFO5) + roff &&
 193:			    rsize >= sizeof(struct ATTR_STD_INFO5))
 194:				ni->std_security_id = std5->security_id;
 195:			goto next_attr;
 196:	
 197:		case ATTR_LIST:
 198:			if (attr->name_len || le || ino == MFT_REC_LOG)
 199:				goto out;
 200:	
 201:			err = ntfs_load_attr_list(ni, attr);
 202:			if (err)
 203:				goto out;
 204:	
 205:			le = NULL;
 206:			attr = NULL;
 207:			goto next_attr;
 208:	
 209:		case ATTR_NAME:
 210:			if (attr->non_res || asize < SIZEOF_ATTRIBUTE_FILENAME + roff ||
 211:			    rsize < SIZEOF_ATTRIBUTE_FILENAME)
 212:				goto out;
 213:	
 214:			names += 1;
 215:			fname = Add2Ptr(attr, roff);
 216:			if (fname->type == FILE_NAME_DOS)
 217:				goto next_attr;
 218:	
 219:			links += 1;
 220:			if (name && name->len == fname->name_len &&
 221:			    !ntfs_cmp_names_cpu(name, (struct le_str *)&fname->name_len,
 222:						NULL, false))
 223:				is_match = true;
 224:	
 225:			goto next_attr;
 226:	
 227:		case ATTR_DATA:
 228:			if (is_dir) {
 229:				/* Ignore data attribute in dir record. */
 230:				goto next_attr;
 231:			}
 232:	
 233:			if (ino == MFT_REC_BADCLUST && !attr->non_res)
 234:				goto next_attr;
 235:	
 236:			if (attr->name_len &&
 237:			    ((ino != MFT_REC_BADCLUST || !attr->non_res ||
 238:			      attr->name_len != ARRAY_SIZE(BAD_NAME) ||
 239:			      memcmp(aname, BAD_NAME, sizeof(BAD_NAME))) &&
 240:			     (ino != MFT_REC_SECURE || !attr->non_res ||
 241:			      attr->name_len != ARRAY_SIZE(SDS_NAME) ||
 242:			      memcmp(aname, SDS_NAME, sizeof(SDS_NAME))))) {
 243:				/* File contains stream attribute. Ignore it. */
 244:				goto next_attr;
 245:			}
 246:	
 247:			if (is_attr_sparsed(attr))
 248:				ni->std_fa |= FILE_ATTRIBUTE_SPARSE_FILE;
 249:			else
 250:				ni->std_fa &= ~FILE_ATTRIBUTE_SPARSE_FILE;
 251:	
 252:			if (is_attr_compressed(attr))
 253:				ni->std_fa |= FILE_ATTRIBUTE_COMPRESSED;
 254:			else
 255:				ni->std_fa &= ~FILE_ATTRIBUTE_COMPRESSED;
 256:	
 257:			if (is_attr_encrypted(attr))
 258:				ni->std_fa |= FILE_ATTRIBUTE_ENCRYPTED;
 259:			else
 260:				ni->std_fa &= ~FILE_ATTRIBUTE_ENCRYPTED;
 261:	
 262:			mode = S_IFREG | (0777 & sbi->options->fs_fmask_inv);
 263:	
 264:			if (!attr->non_res) {
 265:				ni->i_valid = inode->i_size = rsize;
 266:				inode_set_bytes(inode, rsize);
 267:				ni->ni_flags |= NI_FLAG_RESIDENT;
 268:				goto next_attr;
 269:			}
 270:	
 271:			inode_set_bytes(inode, attr_ondisk_size(attr));
 272:	
 273:			ni->i_valid = le64_to_cpu(attr->nres.valid_size);
 274:			inode->i_size = le64_to_cpu(attr->nres.data_size);
 275:			if (!attr->nres.alloc_size)
 276:				goto next_attr;
 277:	
 278:			run = ino == MFT_REC_BITMAP ? &sbi->used.bitmap.run :
 279:						      &ni->file.run;
 280:			break;
 281:	
 282:		case ATTR_ROOT:
 283:			if (attr->non_res)
 284:				goto out;
 285:	
 286:			root = Add2Ptr(attr, roff);
 287:	
 288:			if (attr->name_len != ARRAY_SIZE(I30_NAME) ||
 289:			    memcmp(attr_name(attr), I30_NAME, sizeof(I30_NAME)))
 290:				goto next_attr;
 291:	
 292:			if (root->type != ATTR_NAME ||
 293:			    root->rule != NTFS_COLLATION_TYPE_FILENAME)
 294:				goto out;
 295:	
 296:			if (!is_dir)
 297:				goto next_attr;
 298:	
 299:			is_root = true;
 300:			ni->ni_flags |= NI_FLAG_DIR;
 301:	
 302:			err = indx_init(&ni->dir, sbi, attr, INDEX_MUTEX_I30);
 303:			if (err)
 304:				goto out;
 305:	
 306:			mode = sb->s_root ?
 307:				       (S_IFDIR | (0777 & sbi->options->fs_dmask_inv)) :
 308:				       (S_IFDIR | 0777);
 309:			goto next_attr;
 310:	
 311:		case ATTR_ALLOC:
 312:			if (!is_root || attr->name_len != ARRAY_SIZE(I30_NAME) ||
 313:			    memcmp(attr_name(attr), I30_NAME, sizeof(I30_NAME)))
 314:				goto next_attr;
 315:	
 316:			inode->i_size = le64_to_cpu(attr->nres.data_size);
 317:			ni->i_valid = le64_to_cpu(attr->nres.valid_size);
 318:			inode_set_bytes(inode, le64_to_cpu(attr->nres.alloc_size));
 319:	
 320:			run = &ni->dir.alloc_run;
 321:			break;
 322:	
 323:		case ATTR_BITMAP:
 324:			if (ino == MFT_REC_MFT) {
 325:				if (!attr->non_res)
 326:					goto out;
 327:	#ifndef CONFIG_NTFS3_64BIT_CLUSTER
 328:				/* 0x20000000 = 2^32 / 8 */
 329:				if (le64_to_cpu(attr->nres.alloc_size) >= 0x20000000)
 330:					goto out;
 331:	#endif
 332:				run = &sbi->mft.bitmap.run;
 333:				break;
 334:			} else if (is_dir && attr->name_len == ARRAY_SIZE(I30_NAME) &&
 335:				   !memcmp(attr_name(attr), I30_NAME,
 336:					   sizeof(I30_NAME)) &&
 337:				   attr->non_res) {
 338:				run = &ni->dir.bitmap_run;
 339:				break;
 340:			}
 341:			goto next_attr;
 342:	
 343:		case ATTR_REPARSE:
 344:			if (attr->name_len)
 345:				goto next_attr;
 346:	
 347:			rp_fa = ni_parse_reparse(ni, attr, &rp);
 348:			switch (rp_fa) {
 349:			case REPARSE_LINK:
 350:				/*
 351:				 * Normal symlink.
 352:				 * Assume one unicode symbol == one utf8.
 353:				 */
 354:				inode->i_size = le16_to_cpu(rp.SymbolicLinkReparseBuffer
 355:								    .PrintNameLength) /
 356:						sizeof(u16);
 357:				ni->i_valid = inode->i_size;
 358:				/* Clear directory bit. */
 359:				if (ni->ni_flags & NI_FLAG_DIR) {
 360:					indx_clear(&ni->dir);
 361:					memset(&ni->dir, 0, sizeof(ni->dir));
 362:					ni->ni_flags &= ~NI_FLAG_DIR;
 363:				} else {
 364:					run_close(&ni->file.run);
 365:				}
 366:				mode = S_IFLNK | 0777;
 367:				is_dir = false;
 368:				if (attr->non_res) {
 369:					run = &ni->file.run;
 370:					goto attr_unpack_run; // Double break.
 371:				}
 372:				break;
 373:	
 374:			case REPARSE_COMPRESSED:
 375:				break;
 376:	
 377:			case REPARSE_DEDUPLICATED:
 378:				break;
 379:			}
 380:			goto next_attr;
 381:	
 382:		case ATTR_EA_INFO:
 383:			if (!attr->name_len &&
 384:			    resident_data_ex(attr, sizeof(struct EA_INFO))) {
 385:				ni->ni_flags |= NI_FLAG_EA;
 386:				/*
 387:				 * ntfs_get_wsl_perm updates inode->i_uid, inode->i_gid, inode->i_mode
 388:				 */
 389:				inode->i_mode = mode;
 390:				ntfs_get_wsl_perm(inode);
 391:				mode = inode->i_mode;
 392:			}
 393:			goto next_attr;
 394:	
 395:		default:
 396:			goto next_attr;
 397:		}
 398:	
 399:	attr_unpack_run:
 400:		roff = le16_to_cpu(attr->nres.run_off);
 401:	
 402:		if (roff > asize) {
 403:			err = -EINVAL;
 404:			goto out;
 405:		}
 406:	
 407:		t64 = le64_to_cpu(attr->nres.svcn);
 408:	
 409:		err = run_unpack_ex(run, sbi, ino, t64, le64_to_cpu(attr->nres.evcn),
 410:				    t64, Add2Ptr(attr, roff), asize - roff);
 411:		if (err < 0)
 412:			goto out;
 413:		err = 0;
 414:		goto next_attr;
 415:	
 416:	end_enum:
 417:	
 418:		if (!std5)
 419:			goto out;
 420:	
 421:		if (is_bad_inode(inode))
 422:			goto out;
 423:	
 424:		if (!is_match && name) {
 425:			err = -ENOENT;
 426:			goto out;
 427:		}
 428:	
 429:		if (std5->fa & FILE_ATTRIBUTE_READONLY)
 430:			mode &= ~0222;
 431:	
 432:		if (!names) {
 433:			err = -EINVAL;
 434:			goto out;
 435:		}
 436:	
 437:		if (names != le16_to_cpu(rec->hard_links)) {
 438:			/* Correct minor error on the fly. Do not mark inode as dirty. */
 439:			ntfs_inode_warn(inode, "Correct links count -> %u.", names);
 440:			rec->hard_links = cpu_to_le16(names);
 441:			ni->mi.dirty = true;
 442:		}
 443:	
 444:		if (!links) {
 445:			err = -EINVAL;
 446:			goto out;
 447:		}
 448:	
 449:		set_nlink(inode, links);
 450:	
 451:		if (S_ISDIR(mode)) {
 452:			ni->std_fa |= FILE_ATTRIBUTE_DIRECTORY;
 453:	
 454:			/*
 455:			 * Dot and dot-dot should be included in count but was not
 456:			 * included in enumeration.
 457:			 * Usually a hard links to directories are disabled.
 458:			 */
 459:			inode->i_op = &ntfs_dir_inode_operations;
 460:			inode->i_fop = &ntfs_dir_operations;
 461:			ni->i_valid = 0;
 462:		} else if (S_ISLNK(mode)) {
 463:			ni->std_fa &= ~FILE_ATTRIBUTE_DIRECTORY;
 464:			inode->i_op = &ntfs_link_inode_operations;
 465:			inode->i_fop = NULL;
 466:			inode_nohighmem(inode);
 467:		} else if (S_ISREG(mode)) {
 468:			ni->std_fa &= ~FILE_ATTRIBUTE_DIRECTORY;
 469:			inode->i_op = &ntfs_file_inode_operations;
 470:			inode->i_fop = &ntfs_file_operations;
 471:			inode->i_mapping->a_ops = is_compressed(ni) ? &ntfs_aops_cmpr :
 472:								      &ntfs_aops;
 473:			if (ino != MFT_REC_MFT)
 474:				init_rwsem(&ni->file.run_lock);
 475:		} else if (S_ISCHR(mode) || S_ISBLK(mode) || S_ISFIFO(mode) ||
 476:			   S_ISSOCK(mode)) {
 477:			inode->i_op = &ntfs_special_inode_operations;
 478:			init_special_inode(inode, mode, inode->i_rdev);
 479:		} else if (fname && fname->home.low == cpu_to_le32(MFT_REC_EXTEND) &&
 480:			   fname->home.seq == cpu_to_le16(MFT_REC_EXTEND)) {
 481:			/* Records in $Extend are not a files or general directories. */
 482:			inode->i_op = &ntfs_file_inode_operations;
 483:			mode = S_IFREG;
 484:			init_rwsem(&ni->file.run_lock);
 485:		} else {
 486:			err = -EINVAL;
 487:			goto out;
 488:		}
 489:	
 490:		if ((sbi->options->sys_immutable &&
 491:		     (std5->fa & FILE_ATTRIBUTE_SYSTEM)) &&
 492:		    !S_ISFIFO(mode) && !S_ISSOCK(mode) && !S_ISLNK(mode)) {
 493:			inode->i_flags |= S_IMMUTABLE;
 494:		} else {
 495:			inode->i_flags &= ~S_IMMUTABLE;
 496:		}
 497:	
 498:		inode->i_mode = mode;
 499:		if (!(ni->ni_flags & NI_FLAG_EA)) {
 500:			/* If no xattr then no security (stored in xattr). */
 501:			inode->i_flags |= S_NOSEC;
 502:		}
 503:	
 504:		if (ino == MFT_REC_MFT && !sb->s_root)
 505:			sbi->mft.ni = NULL;
 506:	
 507:		return 0;
 508:	
 509:	out:
 510:		if (ino == MFT_REC_MFT && !sb->s_root)
 511:			sbi->mft.ni = NULL;
 512:	
 513:		return err;
 514:	}
 SourceFile:fs/ntfs3/inode.c]

99/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 81612
							output: 38
							thoughts: 0
						

100/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_aops]

Results:
map[SourceCode:2301:	const struct address_space_operations ntfs_aops = {
2302:		.read_folio	= ntfs_read_folio,
2303:		.readahead	= ntfs_readahead,
2304:		.writepages	= ntfs_writepages,
2305:		.bmap		= ntfs_bmap,
2306:		.dirty_folio	= iomap_dirty_folio,
2307:		.migrate_folio	= filemap_migrate_folio,
2308:		.release_folio	= iomap_release_folio,
2309:		.invalidate_folio = iomap_invalidate_folio,
2310:	};
 SourceFile:fs/ntfs3/inode.c]

101/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 81867
							output: 41
							thoughts: 0
						

102/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_aops_cmpr]

Results:
map[SourceCode:2312:	const struct address_space_operations ntfs_aops_cmpr = {
2313:		.read_folio	= ntfs_read_folio,
2314:		.dirty_folio	= iomap_dirty_folio,
2315:		.release_folio	= iomap_release_folio,
2316:		.invalidate_folio = iomap_invalidate_folio,
2317:	};
 SourceFile:fs/ntfs3/inode.c]

103/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 82054
							output: 42
							thoughts: 0
						

104/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:iomap_invalidate_folio]

Results:
map[SourceCode: 831:	void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
 832:	{
 833:		trace_iomap_invalidate_folio(folio->mapping->host,
 834:						folio_pos(folio) + offset, len);
 835:	
 836:		/*
 837:		 * If we're invalidating the entire folio, clear the dirty state
 838:		 * from it and release it to avoid unnecessary buildup of the LRU.
 839:		 */
 840:		if (offset == 0 && len == folio_size(folio)) {
 841:			WARN_ON_ONCE(folio_test_writeback(folio));
 842:			folio_cancel_dirty(folio);
 843:			ifs_free(folio);
 844:		} else {
 845:			iomap_clear_range_dirty(folio, offset, len);
 846:		}
 847:	}
 SourceFile:fs/iomap/buffered-io.c]

105/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 82400
							output: 38
							thoughts: 0
						

106/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_free]

Results:
map[SourceCode: 286:	static void ifs_free(struct folio *folio)
 287:	{
 288:		struct iomap_folio_state *ifs = folio_detach_private(folio);
 289:	
 290:		if (!ifs)
 291:			return;
 292:		WARN_ON_ONCE(ifs->read_bytes_pending != 0);
 293:		WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
 294:		WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
 295:				folio_test_uptodate(folio));
 296:		kfree(ifs);
 297:	}
 SourceFile:fs/iomap/buffered-io.c]

107/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 82668
							output: 44
							thoughts: 0
						

108/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/iomap/buffered-io.c Name:ifs_is_fully_uptodate]

Results:
map[SourceCode:  35:	static inline bool ifs_is_fully_uptodate(struct folio *folio,
  36:			struct iomap_folio_state *ifs)
  37:	{
  38:		struct inode *inode = folio->mapping->host;
  39:	
  40:		return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio));
  41:	}
 SourceFile:fs/iomap/buffered-io.c]

109/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 82851
							output: 38
							thoughts: 0
						

110/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_writepages]

Results:
map[SourceCode:1199:	static int ntfs_writepages(struct address_space *mapping,
1200:				   struct writeback_control *wbc)
1201:	{
1202:		int err;
1203:		struct inode *inode = mapping->host;
1204:		struct ntfs_inode *ni = ntfs_i(inode);
1205:		struct iomap_writepage_ctx wpc = {
1206:			.inode = inode,
1207:			.wbc = wbc,
1208:			.ops = &ntfs_writeback_ops,
1209:		};
1210:	
1211:		/* Avoid any operation if inode is bad. */
1212:		if (unlikely(is_bad_ni(ni)))
1213:			return -EINVAL;
1214:	
1215:		if (unlikely(ntfs3_forced_shutdown(inode->i_sb)))
1216:			return -EIO;
1217:	
1218:		if (is_resident(ni)) {
1219:			struct folio *folio = NULL;
1220:			err = 0;
1221:	
1222:			while ((folio = writeback_iter(mapping, wbc, folio, &err))) {
1223:				int err2;
1224:	
1225:				ni_lock(ni);
1226:				err2 = attr_data_write_resident(ni, folio);
1227:				ni_unlock(ni);
1228:	
1229:				folio_unlock(folio);
1230:				if (err2) {
1231:					mapping_set_error(mapping, err2);
1232:					if (!err)
1233:						err = err2;
1234:				}
1235:			}
1236:	
1237:			return err;
1238:		}
1239:	
1240:		return iomap_writepages(&wpc);
1241:	}
 SourceFile:fs/ntfs3/inode.c]

111/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 83487
							output: 40
							thoughts: 0
						

112/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/attrib.c Name:attr_data_write_resident]

Results:
map[SourceCode:1405:	int attr_data_write_resident(struct ntfs_inode *ni, struct folio *folio)
1406:	{
1407:		u64 vbo;
1408:		struct mft_inode *mi;
1409:		struct ATTRIB *attr;
1410:		u32 data_size;
1411:	
1412:		attr = ni_find_attr(ni, NULL, NULL, ATTR_DATA, ni->file.ads.name,
1413:				    ni->file.ads.len, NULL, &mi);
1414:		if (!attr)
1415:			return -EINVAL;
1416:	
1417:		if (attr->non_res) {
1418:			/* Return special error code to check this case. */
1419:			return E_NTFS_NONRESIDENT;
1420:		}
1421:	
1422:		vbo = folio_pos(folio);
1423:		data_size = le32_to_cpu(attr->res.data_size);
1424:		if (vbo < data_size) {
1425:			char *data = resident_data(attr);
1426:			size_t len = min(data_size - vbo, folio_size(folio));
1427:	
1428:			memcpy_from_folio(data + vbo, folio, 0, len);
1429:			mi->dirty = true;
1430:		}
1431:		ni->i_valid = data_size;
1432:	
1433:		return 0;
1434:	}
 SourceFile:fs/ntfs3/attrib.c]

113/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 84009
							output: 40
							thoughts: 0
						

114/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_writeback_ops]

Results:
map[SourceCode:1194:	static const struct iomap_writeback_ops ntfs_writeback_ops = {
1195:		.writeback_range = ntfs_writeback_range,
1196:		.writeback_submit = iomap_ioend_writeback_submit,
1197:	};
 SourceFile:fs/ntfs3/inode.c]

115/2 2026/09/18 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 84162
							output: 40
							thoughts: 0
						

116/2 2026/09/18 00:58 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/inode.c Name:ntfs_writeback_range]

Results:
map[SourceCode:1160:	/*
1161:	 * iomap_writeback_ops::writeback_range
1162:	 */
1163:	static ssize_t ntfs_writeback_range(struct iomap_writepage_ctx *wpc,
1164:					    struct folio *folio, u64 offset,
1165:					    unsigned int len, u64 end_pos)
1166:	{
1167:		struct iomap *iomap = &wpc->iomap;
1168:		/* Check iomap position. */
1169:		if (iomap->offset + iomap->length <= offset || offset < iomap->offset) {
1170:			int err;
1171:			struct inode *inode = wpc->inode;
1172:			struct ntfs_inode *ni = ntfs_i(inode);
1173:			struct ntfs_sb_info *sbi = ntfs_sb(inode->i_sb);
1174:			loff_t i_size_up = ntfs_up_cluster(sbi, inode->i_size);
1175:			loff_t len_max = i_size_up - offset;
1176:	
1177:			err = ni->file.run_da.count ? ni_allocate_da_blocks(ni) : 0;
1178:	
1179:			if (!err) {
1180:				/* Use local special value 'WB_NO_DA' to disable delalloc. */
1181:				err = ntfs_iomap_begin(inode, offset, len_max,
1182:						       IOMAP_WRITE, iomap, WB_NO_DA);
1183:			}
1184:	
1185:			if (err) {
1186:				ntfs_set_state(sbi, NTFS_DIRTY_DIRTY);
1187:				return err;
1188:			}
1189:		}
1190:	
1191:		return iomap_add_to_ioend(wpc, folio, offset, end_pos, len);
1192:	}
 SourceFile:fs/ntfs3/inode.c]

117/2 2026/09/18 00:58 llm expert
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 84810
							output: 372
							thoughts: 0
						

118/2 2026/09/18 00:59 tool codeexpert
3m Args:
map[Question:In `fs/iomap/buffered-io.c`, `ifs_free` has this warning:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

The bug report shows this warning is triggered when unmounting an ntfs3 filesystem.
The reproducer mounts an ntfs3 image, opens `cpu.stat`, writes to it, mmaps it, and then exits, which triggers unmount.

I'm trying to understand how `folio_test_uptodate(folio)` can be true while `ifs_is_fully_uptodate(folio, ifs)` is false (or vice versa), specifically in the context of `ntfs3`.

I noticed that `ntfs3` calls `folio_mark_uptodate(folio)` directly in a few places, such as `ntfs_compress_write` and `attr_make_nonresident`.
If a folio has an `ifs` attached (e.g. from a partial write via `__iomap_write_begin`), and then `ntfs3` directly calls `folio_mark_uptodate(folio)`, the `ifs->state` bitmap won't be updated, leading to this mismatch.

Can you analyze if this mismatch can lead to any memory corruption, use-after-free, or information leak?
If the warning is triggered, `ifs_free` just proceeds to `kfree(ifs)`.
Does this state mismatch cause any wild dereference or expose uninitialized memory to userspace?
Or is it just a harmless state mismatch that triggers a warning?]

Results:
map[Answer:Based on the analysis of `fs/iomap/buffered-io.c` and `fs/ntfs3/`:

### 1. Mechanism Behind the State Mismatch
In iomap, when the filesystem block size is smaller than the folio size (`i_blocks_per_folio(inode, folio) > 1`), an `iomap_folio_state` (`ifs`) is attached to `folio->private`.
- `ifs->state` maintains per-block uptodate bits (range `[0, nr_blocks)`) and dirty bits (range `[nr_blocks, 2 * nr_blocks)`).
- When iomap marks sub-block ranges uptodate (e.g., via `ifs_set_range_uptodate()`), it evaluates `ifs_is_fully_uptodate()` (`bitmap_full(ifs->state, nr_blocks)`). If all blocks are uptodate, iomap sets the folio-level uptodate flag with `folio_mark_uptodate(folio)`.
- If a folio already has an `ifs` attached (e.g., from prior buffered I/O, partial reads, or write preparations) and `ntfs3` subsequently calls `folio_mark_uptodate(folio)` directly (bypassing `iomap_set_range_uptodate()` / `iomap_folio_mark_uptodate()`), only the folio-level page cache flag is updated. The per-block bits in `ifs->state` remain clear for the unupdated blocks.
- Later, when the folio is evicted, released, or invalidated (e.g., during file close, truncation, or unmount via `iomap_release_folio` or `iomap_invalidate_folio`), `ifs_free()` checks:
  `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`
  Since `folio_test_uptodate(folio)` is true but `ifs_is_fully_uptodate(folio, ifs)` is false, the warning fires.

### 2. Memory Corruption, Use-After-Free, or Wild Dereferences
- **No Wild Dereferences or Out-of-Bounds Access:** `ifs` is allocated as a flex-array struct sized strictly for `2 * nr_blocks` bits. Bitmap operations are bound to `nr_blocks`. A boolean difference between `ifs_is_fully_uptodate` and `folio_test_uptodate` does not alter array lengths, pointer offsets, or struct bounds.
- **No Use-After-Free or Double Free:** In `ifs_free()`, `folio_detach_private(folio)` clears `folio->private` and the private flag atomically before `kfree(ifs)` is executed. The lifecycle of `ifs` is strictly tied to `folio->private`, and the warning does not alter the deallocation path.
- **No Memory Corruption:** The discrepancy is purely a high-level state tracking inconsistency between the page cache flag and the sub-block bitmap.

### 3. Information Leak / Uninitialized Memory
- The `ifs` bitmap mismatch in itself does not cause an information leak or expose uninitialized kernel memory.
- If `folio_test_uptodate(folio)` is set to true, the generic page cache read paths (`filemap_read`, page fault handlers) consider the folio valid and will not issue disk I/O to populate it.
- Whether stale or uninitialized data could reach userspace depends entirely on whether the `ntfs3` path calling `folio_mark_uptodate()` actually initialized the folio content (e.g., `attr_make_nonresident()` uses `folio_fill_tail()` to zero unwritten space, and `ntfs_compress_write()` zeroes segments). As long as the memory backing the folio was zeroed or populated, no uninitialized kernel heap/slab memory is exposed.

### Summary
The warning is an invariant check indicating that a caller updated folio uptodate state outside of the iomap sub-block state machine. It does not cause wild dereferences, use-after-free, or memory corruption, and in this path behaves as a harmless state bookkeeping mismatch that triggers a warning on deallocation.

*(Caveats/Unverified: The exact call chain in `ntfs3` triggering the reproducer was not uniquely traced down to whether it occurred in `attr_make_nonresident`, `ntfs_compress_write`, or another resident/nonresident conversion path).*]

119/3 2026/09/18 00:59 agent codeexpert
3m Model:
core

Results:
map[Answer:Based on the analysis of `fs/iomap/buffered-io.c` and `fs/ntfs3/`:

### 1. Mechanism Behind the State Mismatch
In iomap, when the filesystem block size is smaller than the folio size (`i_blocks_per_folio(inode, folio) > 1`), an `iomap_folio_state` (`ifs`) is attached to `folio->private`.
- `ifs->state` maintains per-block uptodate bits (range `[0, nr_blocks)`) and dirty bits (range `[nr_blocks, 2 * nr_blocks)`).
- When iomap marks sub-block ranges uptodate (e.g., via `ifs_set_range_uptodate()`), it evaluates `ifs_is_fully_uptodate()` (`bitmap_full(ifs->state, nr_blocks)`). If all blocks are uptodate, iomap sets the folio-level uptodate flag with `folio_mark_uptodate(folio)`.
- If a folio already has an `ifs` attached (e.g., from prior buffered I/O, partial reads, or write preparations) and `ntfs3` subsequently calls `folio_mark_uptodate(folio)` directly (bypassing `iomap_set_range_uptodate()` / `iomap_folio_mark_uptodate()`), only the folio-level page cache flag is updated. The per-block bits in `ifs->state` remain clear for the unupdated blocks.
- Later, when the folio is evicted, released, or invalidated (e.g., during file close, truncation, or unmount via `iomap_release_folio` or `iomap_invalidate_folio`), `ifs_free()` checks:
  `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`
  Since `folio_test_uptodate(folio)` is true but `ifs_is_fully_uptodate(folio, ifs)` is false, the warning fires.

### 2. Memory Corruption, Use-After-Free, or Wild Dereferences
- **No Wild Dereferences or Out-of-Bounds Access:** `ifs` is allocated as a flex-array struct sized strictly for `2 * nr_blocks` bits. Bitmap operations are bound to `nr_blocks`. A boolean difference between `ifs_is_fully_uptodate` and `folio_test_uptodate` does not alter array lengths, pointer offsets, or struct bounds.
- **No Use-After-Free or Double Free:** In `ifs_free()`, `folio_detach_private(folio)` clears `folio->private` and the private flag atomically before `kfree(ifs)` is executed. The lifecycle of `ifs` is strictly tied to `folio->private`, and the warning does not alter the deallocation path.
- **No Memory Corruption:** The discrepancy is purely a high-level state tracking inconsistency between the page cache flag and the sub-block bitmap.

### 3. Information Leak / Uninitialized Memory
- The `ifs` bitmap mismatch in itself does not cause an information leak or expose uninitialized kernel memory.
- If `folio_test_uptodate(folio)` is set to true, the generic page cache read paths (`filemap_read`, page fault handlers) consider the folio valid and will not issue disk I/O to populate it.
- Whether stale or uninitialized data could reach userspace depends entirely on whether the `ntfs3` path calling `folio_mark_uptodate()` actually initialized the folio content (e.g., `attr_make_nonresident()` uses `folio_fill_tail()` to zero unwritten space, and `ntfs_compress_write()` zeroes segments). As long as the memory backing the folio was zeroed or populated, no uninitialized kernel heap/slab memory is exposed.

### Summary
The warning is an invariant check indicating that a caller updated folio uptodate state outside of the iomap sub-block state machine. It does not cause wild dereferences, use-after-free, or memory corruption, and in this path behaves as a harmless state bookkeeping mismatch that triggers a warning on deallocation.

*(Caveats/Unverified: The exact call chain in `ntfs3` triggering the reproducer was not uniquely traced down to whether it occurred in `attr_make_nonresident`, `ntfs_compress_write`, or another resident/nonresident conversion path).*]

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

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

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

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

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


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

Prompt:
In `fs/iomap/buffered-io.c`, `ifs_free` has this warning:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

The bug report shows this warning is triggered when unmounting an ntfs3 filesystem.
The reproducer mounts an ntfs3 image, opens `cpu.stat`, writes to it, mmaps it, and then exits, which triggers unmount.

I'm trying to understand how `folio_test_uptodate(folio)` can be true while `ifs_is_fully_uptodate(folio, ifs)` is false (or vice versa), specifically in the context of `ntfs3`.

I noticed that `ntfs3` calls `folio_mark_uptodate(folio)` directly in a few places, such as `ntfs_compress_write` and `attr_make_nonresident`.
If a folio has an `ifs` attached (e.g. from a partial write via `__iomap_write_begin`), and then `ntfs3` directly calls `folio_mark_uptodate(folio)`, the `ifs->state` bitmap won't be updated, leading to this mismatch.

Can you analyze if this mismatch can lead to any memory corruption, use-after-free, or information leak?
If the warning is triggered, `ifs_free` just proceeds to `kfree(ifs)`.
Does this state mismatch cause any wild dereference or expose uninitialized memory to userspace?
Or is it just a harmless state mismatch that triggers a warning?

120/4 2026/09/18 00:59 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 4504
							output: 41
							thoughts: 367
						

Thoughts:
**Analyzing a Potential Linux Kernel Issue**

Okay, so someone's spotted a warning in `fs/iomap/buffered-io.c` within the Linux kernel, specifically within the `ifs_free` function. The warning, `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`, is firing when unmounting an ntfs3 filesystem, based on the bug report provided. Apparently, the reproducer involves mounting an ntfs3 image, interacting with a file (like `cpu.stat`), mapping it, writing to it, and then exiting and unmounting.

My immediate concern, naturally, is whether this mismatch between `ifs_is_fully_uptodate` and `folio_test_uptodate` can lead to anything serious. The code seems to simply `kfree(ifs)` after the warning triggers. The question is: does this state mismatch in the `iomap_folio_state` struct ( `ifs`)  allow a wild pointer dereference, expose uninitialized memory to userspace, or, worst-case, lead to memory corruption or a use-after-free scenario? Or is it a relatively benign state mismatch that's primarily a warning?

This warrants a deeper dive into the kernel code. We need to dissect the `iomap_folio_state` structure (`ifs`) and its interaction with `ifs_free`, `ifs_is_fully_uptodate`, and `folio_mark_uptodate`. We have to trace the state transitions and understand the implications of this mismatch.  My approach here is to thoroughly audit the relevant kernel code, paying close attention to any areas where a discrepancy in the 'uptodate' state could potentially lead to memory corruption, use-after-free vulnerabilities, or information leakage. This sounds like a low-severity, but potentially interesting, code review and security analysis task to assess if there are any real security implications. Let's get to work and analyze this code. We've got our tools, let's start digging.



121/4 2026/09/18 01:00 tool grepper
0m Args:
map[Expression:WARN_ON_ONCE\(ifs_is_fully_uptodate PathPrefix:fs/iomap]

Results:
map[Output:fs/iomap/buffered-io.c=286=static void ifs_free(struct folio *folio)
--
fs/iomap/buffered-io.c-293-	WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
fs/iomap/buffered-io.c:294:	WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
fs/iomap/buffered-io.c-295-			folio_test_uptodate(folio));
]

122/4 2026/09/18 01:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 5503
							output: 39
							thoughts: 24
						

Thoughts:
Here's my summary, as if I were the one thinking these thoughts, geared towards an expert:

**Diving into Buffered I/O**

Okay, time to get my hands dirty. Let's navigate directly to `fs/iomap/buffered-io.c` and zero in around line 286. I want to see exactly how this buffered I/O is handled at a granular level within the kernel. I'm especially interested in how they're dealing with... well, everything. Allocation? Caching? Syncing? Error handling? There’s probably some clever logic in there, and I need to remind myself of the current implementation. I'm assuming that it’s probably related to direct access bypassing the page cache, but I need to make sure I'm not making any assumptions at this level. Let's see how they do it.



123/4 2026/09/18 01:00 tool read-file
0m Args:
map[File:fs/iomap/buffered-io.c FirstLine:250 LineCount:80]

Results:
map[Contents: 250:	
 251:	static struct iomap_folio_state *ifs_alloc(struct inode *inode,
 252:			struct folio *folio, unsigned int flags)
 253:	{
 254:		struct iomap_folio_state *ifs = folio->private;
 255:		unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
 256:		gfp_t gfp;
 257:	
 258:		if (ifs || nr_blocks <= 1)
 259:			return ifs;
 260:	
 261:		if (flags & IOMAP_NOWAIT)
 262:			gfp = GFP_NOWAIT;
 263:		else
 264:			gfp = GFP_NOFS | __GFP_NOFAIL;
 265:	
 266:		/*
 267:		 * ifs->state tracks two sets of state flags when the
 268:		 * filesystem block size is smaller than the folio size.
 269:		 * The first state tracks per-block uptodate and the
 270:		 * second tracks per-block dirty state.
 271:		 */
 272:		ifs = kzalloc_flex(*ifs, state, BITS_TO_LONGS(2 * nr_blocks), gfp);
 273:		if (!ifs)
 274:			return ifs;
 275:	
 276:		spin_lock_init(&ifs->state_lock);
 277:		if (folio_test_uptodate(folio))
 278:			bitmap_set(ifs->state, 0, nr_blocks);
 279:		if (folio_test_dirty(folio))
 280:			bitmap_set(ifs->state, nr_blocks, nr_blocks);
 281:		folio_attach_private(folio, ifs);
 282:	
 283:		return ifs;
 284:	}
 285:	
 286:	static void ifs_free(struct folio *folio)
 287:	{
 288:		struct iomap_folio_state *ifs = folio_detach_private(folio);
 289:	
 290:		if (!ifs)
 291:			return;
 292:		WARN_ON_ONCE(ifs->read_bytes_pending != 0);
 293:		WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
 294:		WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
 295:				folio_test_uptodate(folio));
 296:		kfree(ifs);
 297:	}
 298:	
 299:	/*
 300:	 * Calculate how many bytes to truncate based off the number of blocks to
 301:	 * truncate and the end position to start truncating from.
 302:	 */
 303:	static size_t iomap_bytes_to_truncate(loff_t end_pos, unsigned block_bits,
 304:			unsigned blocks_truncated)
 305:	{
 306:		unsigned block_size = 1 << block_bits;
 307:		unsigned block_offset = end_pos & (block_size - 1);
 308:	
 309:		if (!block_offset)
 310:			return blocks_truncated << block_bits;
 311:	
 312:		return ((blocks_truncated - 1) << block_bits) + block_offset;
 313:	}
 314:	
 315:	/*
 316:	 * Calculate the range inside the folio that we actually need to read.
 317:	 */
 318:	static void iomap_adjust_read_range(struct inode *inode, struct folio *folio,
 319:			loff_t *pos, loff_t length, size_t *offp, size_t *lenp)
 320:	{
 321:		struct iomap_folio_state *ifs = folio->private;
 322:		loff_t orig_pos = *pos;
 323:		loff_t isize = i_size_read(inode);
 324:		unsigned block_bits = inode->i_blkbits;
 325:		unsigned block_size = (1 << block_bits);
 326:		size_t poff = offset_in_folio(folio, *pos);
 327:		size_t plen = min_t(loff_t, folio_size(folio) - poff, length);
 328:		size_t orig_plen = plen;
 329:		unsigned first = poff >> block_bits;
]

124/4 2026/09/18 01:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 7030
							output: 34
							thoughts: 39
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue, starting with a **bolded header**:

**Deconstructing `fs/iomap/buffered-io.c` and `ifs_is_fully_uptodate`**

Right, let's dive into this `buffered-io.c` file and map out the landscape. First, I need to figure out the definition of `ifs_is_fully_uptodate`. The name suggests it's likely a boolean check related to file system metadata consistency. My initial guess is it might be checking if the iomap's internal data structures, perhaps related to buffered I/O, are synchronized with the underlying on-disk data. It's probably key for ensuring read consistency or avoiding unnecessary I/O. I need to understand its function and what it protects and I need to verify that it does what I think it does.

Then, I'll need to chase down how `ifs` is used within that context. I expect `ifs` is an abbreviation for a struct - an `iomap_file_data` or something similar, likely holding context or state information relevant to the buffered I/O operations. I want to see how this `ifs` is initialized, how it's passed around, and most importantly, how `ifs_is_fully_uptodate` interacts with and potentially modifies this `ifs` structure, or elements within it. Are we dealing with locking here? Concurrency concerns? What’s the scope of the `ifs` variable, is it per-file, per-inode, per-iomap? That's going to be crucial to understanding the behavior. This is probably going to be pretty fundamental to the overall performance and robustness of the buffered I/O implementation.



125/4 2026/09/18 01:00 tool grepper
0m Args:
map[Expression:ifs_is_fully_uptodate PathPrefix:fs/iomap]

Results:
map[Output:fs/iomap/buffered-io.c=22=struct iomap_folio_state {
--
fs/iomap/buffered-io.c-34-
fs/iomap/buffered-io.c:35:static inline bool ifs_is_fully_uptodate(struct folio *folio,
fs/iomap/buffered-io.c-36-		struct iomap_folio_state *ifs)
--
fs/iomap/buffered-io.c=67=static bool ifs_set_range_uptodate(struct folio *folio,
--
fs/iomap/buffered-io.c-77-	}
fs/iomap/buffered-io.c:78:	return ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c-79-}
--
fs/iomap/buffered-io.c=286=static void ifs_free(struct folio *folio)
--
fs/iomap/buffered-io.c-293-	WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
fs/iomap/buffered-io.c:294:	WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
fs/iomap/buffered-io.c-295-			folio_test_uptodate(folio));
--
fs/iomap/buffered-io.c=510=static void iomap_read_end(struct folio *folio, size_t bytes_submitted)
--
fs/iomap/buffered-io.c-538-		if (end_read)
fs/iomap/buffered-io.c:539:			uptodate = ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c-540-		spin_unlock_irq(&ifs->state_lock);
]

126/4 2026/09/18 01:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 7976
							output: 38
							thoughts: 27
						

Thoughts:
Okay, let's dive into this. Here's my take on those lines from `fs/iomap/buffered-io.c`, from lines 20 to 120.

**Decoding Buffered I/O in the Linux Kernel: A Deep Dive**

Alright, I'm zeroing in on lines 20 through 120 of `fs/iomap/buffered-io.c`. Immediately, I can see this section is likely laying the groundwork for how the kernel handles buffered I/O, a fundamental aspect of file system performance. I need to understand this to have any chance of optimizing block storage performance, so this looks like a good place to be.

I'm expecting to see definitions, initializations, and maybe some preliminary function calls related to how the kernel stages data transfers. Let me look for things like buffer heads, bio structures, and perhaps even some hints about read-ahead strategies if we're dealing with a buffered setup. A crucial part to look for is the connection between the virtual filesystem layer and the block device layer; this is where the magic happens. I bet I'll see some mapping between the logical file offsets and the physical blocks.

Based on the file name, I'd expect to see some of the mechanisms which coordinate read and write operations. The code has to deal with data in memory while it is waiting to be read/written to disk. It’s also interesting to see if any of the code handles caching and how it will handle the various scenarios (dirty, clean, etc.). I bet I'm going to see some important lock management in here too. We have to be able to safely handle concurrent access to files on the block device.

Okay, let's get into the specifics. I'm going to carefully read this to see if there's any clever trickery or novel algorithms that I haven't seen before. I'm expecting standard buffered I/O techniques, but I'm always open to seeing some new optimization that someone came up with. I'll focus on how the code interacts with the underlying block device and how it handles cache management, especially in complex scenarios.



127/4 2026/09/18 01:00 tool read-file
0m Args:
map[File:fs/iomap/buffered-io.c FirstLine:20 LineCount:90]

Results:
map[Contents:  20:	 * and I/O completions.
  21:	 */
  22:	struct iomap_folio_state {
  23:		spinlock_t		state_lock;
  24:		unsigned int		read_bytes_pending;
  25:		atomic_t		write_bytes_pending;
  26:	
  27:		/*
  28:		 * Each block has two bits in this bitmap:
  29:		 * Bits [0..blocks_per_folio) has the uptodate status.
  30:		 * Bits [b_p_f...(2*b_p_f))   has the dirty status.
  31:		 */
  32:		unsigned long		state[];
  33:	};
  34:	
  35:	static inline bool ifs_is_fully_uptodate(struct folio *folio,
  36:			struct iomap_folio_state *ifs)
  37:	{
  38:		struct inode *inode = folio->mapping->host;
  39:	
  40:		return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio));
  41:	}
  42:	
  43:	/*
  44:	 * Find the next uptodate block in the folio. end_blk is inclusive.
  45:	 * If no uptodate block is found, this will return end_blk + 1.
  46:	 */
  47:	static unsigned ifs_next_uptodate_block(struct folio *folio,
  48:			unsigned start_blk, unsigned end_blk)
  49:	{
  50:		struct iomap_folio_state *ifs = folio->private;
  51:	
  52:		return find_next_bit(ifs->state, end_blk + 1, start_blk);
  53:	}
  54:	
  55:	/*
  56:	 * Find the next non-uptodate block in the folio. end_blk is inclusive.
  57:	 * If no non-uptodate block is found, this will return end_blk + 1.
  58:	 */
  59:	static unsigned ifs_next_nonuptodate_block(struct folio *folio,
  60:			unsigned start_blk, unsigned end_blk)
  61:	{
  62:		struct iomap_folio_state *ifs = folio->private;
  63:	
  64:		return find_next_zero_bit(ifs->state, end_blk + 1, start_blk);
  65:	}
  66:	
  67:	static bool ifs_set_range_uptodate(struct folio *folio,
  68:			struct iomap_folio_state *ifs, size_t off, size_t len)
  69:	{
  70:		struct inode *inode = folio->mapping->host;
  71:		unsigned int first_blk, last_blk;
  72:	
  73:		if (len) {
  74:			first_blk = off >> inode->i_blkbits;
  75:			last_blk = (off + len - 1) >> inode->i_blkbits;
  76:			bitmap_set(ifs->state, first_blk, last_blk - first_blk + 1);
  77:		}
  78:		return ifs_is_fully_uptodate(folio, ifs);
  79:	}
  80:	
  81:	static void iomap_set_range_uptodate(struct folio *folio, size_t off,
  82:			size_t len)
  83:	{
  84:		struct iomap_folio_state *ifs = folio->private;
  85:		unsigned long flags;
  86:		bool mark_uptodate = true;
  87:	
  88:		if (folio_test_uptodate(folio))
  89:			return;
  90:	
  91:		if (ifs) {
  92:			spin_lock_irqsave(&ifs->state_lock, flags);
  93:			/*
  94:			 * If a read with bytes pending is in progress, we must not call
  95:			 * folio_mark_uptodate(). The read completion path
  96:			 * (iomap_read_end()) will call folio_end_read(), which uses XOR
  97:			 * semantics to set the uptodate bit. If we set it here, the XOR
  98:			 * in folio_end_read() will clear it, leaving the folio not
  99:			 * uptodate.
 100:			 */
 101:			mark_uptodate = ifs_set_range_uptodate(folio, ifs, off, len) &&
 102:					!ifs->read_bytes_pending;
 103:			spin_unlock_irqrestore(&ifs->state_lock, flags);
 104:		}
 105:	
 106:		if (mark_uptodate)
 107:			folio_mark_uptodate(folio);
 108:	}
 109:	
]

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

Tokens:
							input: 9832
							output: 57
							thoughts: 416
						

Thoughts:
**Analyzing `iomap_set_range_uptodate` and Potential Race Conditions**

Okay, let's break down this `iomap_set_range_uptodate` function. The goal is to ensure a portion of a folio is marked as up-to-date, right? I see the code, and I'm immediately drawn to that early return on line 88: `if (folio_test_uptodate(folio)) return;`. My first thought is, "Okay, that's an optimization. If it's already up-to-date, we don't need to do anything." Makes sense.

But wait a minute... what if `ifs` (the `iomap_folio_state`) is *not* updated, but `folio_test_uptodate(folio)` *is* true? This suggests a potential race condition. The function skips setting the up-to-date flag if it is already set, and it seems this check doesn't consider scenarios where the `ifs` structure might have been modified concurrently. So, we immediately return without ensuring the relevant state in `ifs` is consistent.

My next step is to investigate the history around this function. I need to dive into the commit logs and surrounding code in `fs/iomap/buffered-io.c` to see if there were any warnings or fixes related to this potential issue. I'll be looking for commits that touch this section of code or its surrounding logic, especially those mentioning race conditions, data consistency, or concurrent access to the `folio`'s state. I need to understand how the up-to-date flag is *truly* maintained and if this early return is safe under all concurrent access scenarios. I'm especially interested in the relationship between this function and the `iomap_read_end()` function.



129/4 2026/09/18 01:00 tool git-log
0m Error:
log-in to see details

Args:
map[Count:5 PathPrefix:fs/iomap/buffered-io.c SourcePath:fs/iomap/buffered-io.c SymbolName:ifs_free]

Results:
map[Output:]

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

Tokens:
							input: 10722
							output: 40
							thoughts: 14
						

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

**Thinking Through Git Log Usage for Symbol Navigation**

Okay, so I need to find all instances of a specific symbol and its source path within a project's history. Given my expertise, the obvious route to take here is `git log`. But I need to be precise. Standard `git log` on its own will be too broad, especially in a large repository. I need to be able to filter by both the symbol's name and its file location. That leads me to think, I need to use `git log` in conjunction with options for searching specific patterns. I'm imagining how to combine it with a search pattern, perhaps using a combination of flags to zero in on just the changes I'm interested in. The trick will be crafting the exact command that gets the output format I need in the right way. This is going to require me to quickly formulate a query and see the output so I can assess whether it is suitable to my needs.



131/4 2026/09/18 01:00 tool git-log
0m Args:
map[Count:5 SourcePath:fs/iomap/buffered-io.c SymbolName:ifs_free]

Results:
map[Output:238650ef6c7c Merge tag 'powerpc-7.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
]

132/4 2026/09/18 01:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11051
							output: 39
							thoughts: 26
						

Thoughts:
Here's my attempt at summarizing the thought process, as if I were having it:

**Digging into a Potential IO Issue**

Okay, so we've got a reported problem and I'm pretty sure it's related to buffered I/O. Given my experience, I suspect there's something specific going on in the `fs/iomap/buffered-io.c` area. Let's start with a focused investigation. I think the best initial approach is to use `git blame` on line 294 of that file. That should give me the commit history for that specific line, which could be extremely helpful. I'm hoping to identify the author of that code, and see what the context of that line was within the wider change. This will illuminate if there was any significant change, recent or otherwise, that could be responsible. From there, I'll assess the code to see whether there is a bug, or an issue related to the commit.



133/4 2026/09/18 01:00 tool git-blame
0m Args:
map[End:298 File:fs/iomap/buffered-io.c Start:285]

Results:
map[Output:^238650ef6c7c 285) 
^238650ef6c7c 286) static void ifs_free(struct folio *folio)
^238650ef6c7c 287) {
^238650ef6c7c 288) 	struct iomap_folio_state *ifs = folio_detach_private(folio);
^238650ef6c7c 289) 
^238650ef6c7c 290) 	if (!ifs)
^238650ef6c7c 291) 		return;
^238650ef6c7c 292) 	WARN_ON_ONCE(ifs->read_bytes_pending != 0);
^238650ef6c7c 293) 	WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
^238650ef6c7c 294) 	WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
^238650ef6c7c 295) 			folio_test_uptodate(folio));
^238650ef6c7c 296) 	kfree(ifs);
^238650ef6c7c 297) }
^238650ef6c7c 298) 
]

134/4 2026/09/18 01:00 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11719
							output: 24
							thoughts: 65
						

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

**Diving into This Git History**

Okay, so I'm looking at this Git repository, and it's either a shallow clone or a brand-new one – the root commit is `238650ef6c7c`. Time to dig in and understand what's been happening. I need to get a clear picture of the state of the codebase. My plan is to use `git log`. But I need to narrow my focus. I'm specifically interested in the commits related to `ifs_is_fully_uptodate` or, if that isn't present, `ifs_free`. I'll use the `MessageRegexps` configuration to filter the commit messages and only show the relevant ones. This should quickly give me the information I need.



135/4 2026/09/18 01:01 tool git-log
0m Args:
map[Count:5 MessageRegexps:[ifs_free]]

Results:
map[Output:]

136/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12003
							output: 32
							thoughts: 60
						

Thoughts:
**Analyzing NTFS3 Code with Focus on Folio Updates**

Okay, the commit history is pretty shallow here, or at least recent. No worries, that's perfectly acceptable for now. My immediate focus is on the `ntfs3` code, specifically where the interplay of `folio_mark_uptodate` and `iomap` comes into play. These are key for understanding how NTFS3 handles data integrity and block mapping. I'm going to jump right in and search the `fs/ntfs3` directory for every instance of `folio_mark_uptodate`. That should give me a good starting point to trace the usage and see the surrounding context. Let's see what we can find.



137/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:folio_mark_uptodate PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/attrib.c=254=int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
--
fs/ntfs3/attrib.c-329-			folio_fill_tail(folio, 0, data, rsize);
fs/ntfs3/attrib.c:330:			folio_mark_uptodate(folio);
fs/ntfs3/attrib.c-331-			folio_mark_dirty(folio);
--
fs/ntfs3/file.c=984=static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
--
fs/ntfs3/file.c-1073-			flush_dcache_folio(folio);
fs/ntfs3/file.c:1074:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1075-		}
--
fs/ntfs3/file.c-1082-			folio = page_folio(pages[ip]);
fs/ntfs3/file.c:1083:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1084-			folio_unlock(folio);
--
fs/ntfs3/file.c-1168-			folio_clear_dirty(folio);
fs/ntfs3/file.c:1169:			folio_mark_uptodate(folio);
fs/ntfs3/file.c-1170-			folio_unlock(folio);
--
fs/ntfs3/frecord.c=1929=int ni_read_folio_cmpr(struct ntfs_inode *ni, struct folio *folio)
--
fs/ntfs3/frecord.c-1945-		folio_zero_range(folio, 0, folio_size(folio));
fs/ntfs3/frecord.c:1946:		folio_mark_uptodate(folio);
fs/ntfs3/frecord.c-1947-		err = 0;
--
fs/ntfs3/inode.c=826=static int ntfs_read_folio(struct file *file, struct folio *folio)
--
fs/ntfs3/inode.c-844-		folio_zero_range(folio, 0, folio_size(folio));
fs/ntfs3/inode.c:845:		folio_mark_uptodate(folio);
fs/ntfs3/inode.c-846-		folio_unlock(folio);
]

138/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12901
							output: 28
							thoughts: 35
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach this, thinking out loud, so to speak:

**Investigating NTFS3 and iomap Usage**

Alright, I need to understand more about how `iomap` is being utilized within the NTFS3 filesystem driver. My initial instinct is to use `grep` to quickly scan the code. Specifically, I'll focus that search within the `fs/ntfs3` directory. This should help me identify other areas within the NTFS3 code base that are also leveraging the `iomap` interface, beyond what I already know about. This should give me a good lay of the land, revealing additional usage patterns, dependencies, or potential areas to investigate further. A quick `grep` will get me the low-hanging fruit.



139/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:iomap PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/file.c-17-#include <linux/filelock.h>
fs/ntfs3/file.c:18:#include <linux/iomap.h>
fs/ntfs3/file.c-19-
--
fs/ntfs3/file.c=301=static int ntfs_extend_initialized_size(struct file *file,
--
fs/ntfs3/file.c-316-
fs/ntfs3/file.c:317:	err = iomap_zero_range(inode, valid, new_valid - valid, NULL,
fs/ntfs3/file.c:318:			       &ntfs_iomap_ops, &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-319-	if (err) {
--
fs/ntfs3/file.c=466=static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
--
fs/ntfs3/file.c-555-		if (tmp > from) {
fs/ntfs3/file.c:556:			err = iomap_zero_range(inode, from, tmp - from, NULL,
fs/ntfs3/file.c:557:					       &ntfs_iomap_ops,
fs/ntfs3/file.c:558:					       &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-559-			if (err)
--
fs/ntfs3/file.c-573-		if (vbo < end_a && end_a < end) {
fs/ntfs3/file.c:574:			err = iomap_zero_range(inode, end_a, end - end_a, NULL,
fs/ntfs3/file.c:575:					       &ntfs_iomap_ops,
fs/ntfs3/file.c:576:					       &ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-577-			if (err)
--
fs/ntfs3/file.c=817=static ssize_t ntfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
--
fs/ntfs3/file.c-892-
fs/ntfs3/file.c:893:		ret = iomap_dio_rw(iocb, iter, &ntfs_iomap_ops, NULL, dio_flags,
fs/ntfs3/file.c-894-				   NULL, 0);
--
fs/ntfs3/file.c=1239=static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
--
fs/ntfs3/file.c-1307-
fs/ntfs3/file.c:1308:		ret = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
fs/ntfs3/file.c:1309:						&ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-1310-		inode_unlock(inode);
--
fs/ntfs3/file.c-1324-
fs/ntfs3/file.c:1325:	ret = iomap_dio_rw(iocb, from, &ntfs_iomap_ops, NULL,
fs/ntfs3/file.c-1326-			   IOMAP_DIO_FORCE_WAIT, NULL, 0);
--
fs/ntfs3/file.c-1337-		iocb->ki_flags &= ~IOCB_DIRECT;
fs/ntfs3/file.c:1338:		err = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
fs/ntfs3/file.c:1339:						&ntfs_iomap_folio_ops, NULL);
fs/ntfs3/file.c-1340-		if (err < 0) {
--
fs/ntfs3/file.c=1457=int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
--
fs/ntfs3/file.c-1487-
fs/ntfs3/file.c:1488:	err = iomap_fiemap(inode, fieinfo, start, len, &ntfs_iomap_ops);
fs/ntfs3/file.c-1489-
--
fs/ntfs3/inode.c-14-#include <linux/writeback.h>
fs/ntfs3/inode.c:15:#include <linux/iomap.h>
fs/ntfs3/inode.c-16-
--
fs/ntfs3/inode.c=763=static sector_t ntfs_bmap(struct address_space *mapping, sector_t block)
--
fs/ntfs3/inode.c-783-
fs/ntfs3/inode.c:784:	return iomap_bmap(mapping, block, &ntfs_iomap_ops);
fs/ntfs3/inode.c-785-}
fs/ntfs3/inode.c-786-
fs/ntfs3/inode.c:787:static void ntfs_iomap_read_end_io(struct bio *bio)
fs/ntfs3/inode.c-788-{
--
fs/ntfs3/inode.c-803-					     offset_in_folio(folio, valid);
fs/ntfs3/inode.c:804:			/* The only thing ntfs_iomap_read_end_io used for. */
fs/ntfs3/inode.c-805-			folio_zero_segment(folio, z_from, f_size);
--
fs/ntfs3/inode.c-807-
fs/ntfs3/inode.c:808:		iomap_finish_folio_read(folio, fi.offset, fi.length, error);
fs/ntfs3/inode.c-809-	}
--
fs/ntfs3/inode.c-812-
fs/ntfs3/inode.c:813:static void ntfs_iomap_bio_submit_read(const struct iomap_iter *iter,
fs/ntfs3/inode.c:814:				       struct iomap_read_folio_ctx *ctx)
fs/ntfs3/inode.c-815-{
fs/ntfs3/inode.c:816:	iomap_bio_submit_read_endio(iter, ctx, ntfs_iomap_read_end_io);
fs/ntfs3/inode.c-817-}
--
fs/ntfs3/inode.c-819-// clang-format off
fs/ntfs3/inode.c:820:static const struct iomap_read_ops ntfs_iomap_bio_read_ops = {
fs/ntfs3/inode.c:821:	.read_folio_range	= iomap_bio_read_folio_range,
fs/ntfs3/inode.c:822:	.submit_read		= ntfs_iomap_bio_submit_read,
fs/ntfs3/inode.c-823-};
--
fs/ntfs3/inode.c=826=static int ntfs_read_folio(struct file *file, struct folio *folio)
--
fs/ntfs3/inode.c-832-	loff_t vbo = folio_pos(folio);
fs/ntfs3/inode.c:833:	struct iomap_read_folio_ctx ctx = {
fs/ntfs3/inode.c-834-		.cur_folio = folio,
fs/ntfs3/inode.c:835:		.ops = &ntfs_iomap_bio_read_ops,
fs/ntfs3/inode.c-836-	};
--
fs/ntfs3/inode.c-855-
fs/ntfs3/inode.c:856:	iomap_read_folio(&ntfs_iomap_ops, &ctx, NULL);
fs/ntfs3/inode.c-857-	return 0;
--
fs/ntfs3/inode.c=860=static void ntfs_readahead(struct readahead_control *rac)
--
fs/ntfs3/inode.c-864-	struct ntfs_inode *ni = ntfs_i(inode);
fs/ntfs3/inode.c:865:	struct iomap_read_folio_ctx ctx = {
fs/ntfs3/inode.c:866:		.ops = &ntfs_iomap_bio_read_ops,
fs/ntfs3/inode.c-867-		.rac = rac,
--
fs/ntfs3/inode.c-879-
fs/ntfs3/inode.c:880:	iomap_readahead(&ntfs_iomap_ops, &ctx, NULL);
fs/ntfs3/inode.c-881-}
--
fs/ntfs3/inode.c=883=int ntfs_set_size(struct inode *inode, u64 new_size)
--
fs/ntfs3/inode.c-919- */
fs/ntfs3/inode.c:920:#define WB_NO_DA (struct iomap *)1
fs/ntfs3/inode.c-921-/*
--
fs/ntfs3/inode.c-923- * used with:
fs/ntfs3/inode.c:924: * - iomap_zero_range
fs/ntfs3/inode.c:925: * - iomap_truncate_page
fs/ntfs3/inode.c:926: * - iomap_dio_rw
fs/ntfs3/inode.c:927: * - iomap_file_buffered_write
fs/ntfs3/inode.c:928: * - iomap_bmap
fs/ntfs3/inode.c:929: * - iomap_fiemap
fs/ntfs3/inode.c:930: * - iomap_bio_read_folio
fs/ntfs3/inode.c:931: * - iomap_bio_readahead
fs/ntfs3/inode.c-932- */
fs/ntfs3/inode.c:933:static int ntfs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
fs/ntfs3/inode.c:934:			    unsigned int flags, struct iomap *iomap,
fs/ntfs3/inode.c:935:			    struct iomap *srcmap)
fs/ntfs3/inode.c-936-{
--
fs/ntfs3/inode.c-998-
fs/ntfs3/inode.c:999:	iomap->flags = new_clst ? IOMAP_F_NEW : 0;
fs/ntfs3/inode.c-1000-
--
fs/ntfs3/inode.c-1011-
fs/ntfs3/inode.c:1012:		iomap->private = iomap->inline_data = res;
fs/ntfs3/inode.c:1013:		iomap->type = IOMAP_INLINE;
fs/ntfs3/inode.c:1014:		iomap->offset = 0;
fs/ntfs3/inode.c:1015:		iomap->length = clen; /* resident size in bytes. */
fs/ntfs3/inode.c-1016-		return 0;
--
fs/ntfs3/inode.c-1023-
fs/ntfs3/inode.c:1024:	iomap->bdev = inode->i_sb->s_bdev;
fs/ntfs3/inode.c:1025:	iomap->offset = offset;
fs/ntfs3/inode.c:1026:	iomap->length = ((loff_t)clen << cluster_bits) - off;
fs/ntfs3/inode.c-1027-
--
fs/ntfs3/inode.c-1033-	if (lcn == DELALLOC_LCN) {
fs/ntfs3/inode.c:1034:		iomap->type = IOMAP_DELALLOC;
fs/ntfs3/inode.c:1035:		iomap->addr = IOMAP_NULL_ADDR;
fs/ntfs3/inode.c-1036-	} else {
fs/ntfs3/inode.c-1037-		/* Translate clusters into bytes. */
fs/ntfs3/inode.c:1038:		iomap->addr = ((loff_t)lcn << cluster_bits) + off;
fs/ntfs3/inode.c:1039:		if (length && iomap->length > length)
fs/ntfs3/inode.c:1040:			iomap->length = length;
fs/ntfs3/inode.c-1041-		else
fs/ntfs3/inode.c:1042:			endbyte = offset + iomap->length;
fs/ntfs3/inode.c-1043-
fs/ntfs3/inode.c-1044-		if (lcn == SPARSE_LCN) {
fs/ntfs3/inode.c:1045:			iomap->addr = IOMAP_NULL_ADDR;
fs/ntfs3/inode.c:1046:			iomap->type = IOMAP_HOLE;
fs/ntfs3/inode.c-1047-			//			if (IOMAP_ZERO == flags && !off) {
fs/ntfs3/inode.c:1048:			//				iomap->length = (endbyte - offset) &
fs/ntfs3/inode.c-1049-			//						sbi->cluster_mask_inv;
--
fs/ntfs3/inode.c-1051-		} else if (endbyte <= ni->i_valid) {
fs/ntfs3/inode.c:1052:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1053-		} else if (offset < ni->i_valid) {
fs/ntfs3/inode.c:1054:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1055-			if (flags & IOMAP_REPORT)
fs/ntfs3/inode.c:1056:				iomap->length = ni->i_valid - offset;
fs/ntfs3/inode.c-1057-		} else if (rw || (flags & IOMAP_ZERO)) {
fs/ntfs3/inode.c:1058:			iomap->type = IOMAP_MAPPED;
fs/ntfs3/inode.c-1059-		} else {
fs/ntfs3/inode.c:1060:			iomap->type = IOMAP_UNWRITTEN;
fs/ntfs3/inode.c-1061-		}
--
fs/ntfs3/inode.c-1064-	if ((flags & IOMAP_ZERO) &&
fs/ntfs3/inode.c:1065:	    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
fs/ntfs3/inode.c-1066-		/* Avoid too large requests. */
--
fs/ntfs3/inode.c-1073-
fs/ntfs3/inode.c:1074:		if (iomap->length > tail)
fs/ntfs3/inode.c:1075:			iomap->length = tail;
fs/ntfs3/inode.c-1076-	}
--
fs/ntfs3/inode.c-1080-
fs/ntfs3/inode.c:1081:static int ntfs_iomap_end(struct inode *inode, loff_t pos, loff_t length,
fs/ntfs3/inode.c-1082-			  ssize_t written, unsigned int flags,
fs/ntfs3/inode.c:1083:			  struct iomap *iomap)
fs/ntfs3/inode.c-1084-{
--
fs/ntfs3/inode.c-1089-	if ((flags & IOMAP_WRITE) || (flags & IOMAP_ZERO)) {
fs/ntfs3/inode.c:1090:		if (iomap->type == IOMAP_INLINE) {
fs/ntfs3/inode.c-1091-			u32 data_size;
--
fs/ntfs3/inode.c-1110-			memcpy(resident_data(attr) + pos,
fs/ntfs3/inode.c:1111:			       iomap_inline_data(iomap, pos), written);
fs/ntfs3/inode.c-1112-			mi->dirty = true;
--
fs/ntfs3/inode.c-1120-	if ((flags & IOMAP_ZERO) &&
fs/ntfs3/inode.c:1121:	    (iomap->type == IOMAP_MAPPED || iomap->type == IOMAP_DELALLOC)) {
fs/ntfs3/inode.c:1122:		/* Pair for code in ntfs_iomap_begin. */
fs/ntfs3/inode.c-1123-		balance_dirty_pages_ratelimited(inode->i_mapping);
--
fs/ntfs3/inode.c-1127-out:
fs/ntfs3/inode.c:1128:	if (iomap->type == IOMAP_INLINE) {
fs/ntfs3/inode.c:1129:		__free_page(virt_to_page(iomap->private));
fs/ntfs3/inode.c:1130:		iomap->private = NULL;
fs/ntfs3/inode.c-1131-	}
--
fs/ntfs3/inode.c-1137- * write_begin + put_folio + write_end.
fs/ntfs3/inode.c:1138: * iomap_zero_range
fs/ntfs3/inode.c:1139: * iomap_truncate_page
fs/ntfs3/inode.c:1140: * iomap_file_buffered_write
fs/ntfs3/inode.c-1141- */
fs/ntfs3/inode.c:1142:static void ntfs_iomap_put_folio(struct inode *inode, loff_t pos,
fs/ntfs3/inode.c-1143-				 unsigned int len, struct folio *folio)
--
fs/ntfs3/inode.c-1152-		/* zero range [end - f_end). */
fs/ntfs3/inode.c:1153:		/* The only thing ntfs_iomap_put_folio used for. */
fs/ntfs3/inode.c-1154-		folio_zero_segment(folio, offset_in_folio(folio, end), f_size);
--
fs/ntfs3/inode.c-1160-/*
fs/ntfs3/inode.c:1161: * iomap_writeback_ops::writeback_range
fs/ntfs3/inode.c-1162- */
fs/ntfs3/inode.c:1163:static ssize_t ntfs_writeback_range(struct iomap_writepage_ctx *wpc,
fs/ntfs3/inode.c-1164-				    struct folio *folio, u64 offset,
--
fs/ntfs3/inode.c-1166-{
fs/ntfs3/inode.c:1167:	struct iomap *iomap = &wpc->iomap;
fs/ntfs3/inode.c:1168:	/* Check iomap position. */
fs/ntfs3/inode.c:1169:	if (iomap->offset + iomap->length <= offset || offset < iomap->offset) {
fs/ntfs3/inode.c-1170-		int err;
--
fs/ntfs3/inode.c-1180-			/* Use local special value 'WB_NO_DA' to disable delalloc. */
fs/ntfs3/inode.c:1181:			err = ntfs_iomap_begin(inode, offset, len_max,
fs/ntfs3/inode.c:1182:					       IOMAP_WRITE, iomap, WB_NO_DA);
fs/ntfs3/inode.c-1183-		}
--
fs/ntfs3/inode.c-1190-
fs/ntfs3/inode.c:1191:	return iomap_add_to_ioend(wpc, folio, offset, end_pos, len);
fs/ntfs3/inode.c-1192-}
fs/ntfs3/inode.c-1193-
fs/ntfs3/inode.c:1194:static const struct iomap_writeback_ops ntfs_writeback_ops = {
fs/ntfs3/inode.c-1195-	.writeback_range = ntfs_writeback_range,
fs/ntfs3/inode.c:1196:	.writeback_submit = iomap_ioend_writeback_submit,
fs/ntfs3/inode.c-1197-};
--
fs/ntfs3/inode.c=1199=static int ntfs_writepages(struct address_space *mapping,
--
fs/ntfs3/inode.c-1204-	struct ntfs_inode *ni = ntfs_i(inode);
fs/ntfs3/inode.c:1205:	struct iomap_writepage_ctx wpc = {
fs/ntfs3/inode.c-1206-		.inode = inode,
--
fs/ntfs3/inode.c-1239-
fs/ntfs3/inode.c:1240:	return iomap_writepages(&wpc);
fs/ntfs3/inode.c-1241-}
--
fs/ntfs3/inode.c=2301=const struct address_space_operations ntfs_aops = {
--
fs/ntfs3/inode.c-2305-	.bmap		= ntfs_bmap,
fs/ntfs3/inode.c:2306:	.dirty_folio	= iomap_dirty_folio,
fs/ntfs3/inode.c-2307-	.migrate_folio	= filemap_migrate_folio,
fs/ntfs3/inode.c:2308:	.release_folio	= iomap_release_folio,
fs/ntfs3/inode.c:2309:	.invalidate_folio = iomap_invalidate_folio,
fs/ntfs3/inode.c-2310-};
--
fs/ntfs3/inode.c=2312=const struct address_space_operations ntfs_aops_cmpr = {
fs/ntfs3/inode.c-2313-	.read_folio	= ntfs_read_folio,
fs/ntfs3/inode.c:2314:	.dirty_folio	= iomap_dirty_folio,
fs/ntfs3/inode.c:2315:	.release_folio	= iomap_release_folio,
fs/ntfs3/inode.c:2316:	.invalidate_folio = iomap_invalidate_folio,
fs/ntfs3/inode.c-2317-};
fs/ntfs3/inode.c-2318-
fs/ntfs3/inode.c:2319:static DEFINE_IOMAP_ITER_NEXT_END(ntfs_iomap_next, ntfs_iomap_begin,
fs/ntfs3/inode.c:2320:				  ntfs_iomap_end);
fs/ntfs3/inode.c-2321-
fs/ntfs3/inode.c:2322:const struct iomap_ops ntfs_iomap_ops = {
fs/ntfs3/inode.c:2323:	.iomap_next	= ntfs_iomap_next,
fs/ntfs3/inode.c-2324-};
fs/ntfs3/inode.c-2325-
fs/ntfs3/inode.c:2326:const struct iomap_write_ops ntfs_iomap_folio_ops = {
fs/ntfs3/inode.c:2327:	.put_folio = ntfs_iomap_put_folio,
fs/ntfs3/inode.c-2328-};
--
fs/ntfs3/ntfs_fs.h=812=void ntfs_evict_inode(struct inode *inode);
fs/ntfs3/ntfs_fs.h:813:extern const struct iomap_ops ntfs_iomap_ops;
fs/ntfs3/ntfs_fs.h:814:extern const struct iomap_write_ops ntfs_iomap_folio_ops;
fs/ntfs3/ntfs_fs.h-815-extern const struct inode_operations ntfs_link_inode_operations;
]

140/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 19778
							output: 28
							thoughts: 66
						

Thoughts:
Okay, let's break this down.

**Investigating iomap Folio Management and Invalidation**

Right, so `release_folio` in this context directly corresponds to `iomap_release_folio`. And `invalidate_folio` is definitely tied to `iomap_invalidate_folio`. Standard stuff, but good to have the direct mappings confirmed.

Now the million-dollar question: when is `ifs_free` triggered? I need to understand the lifecycle here. I'll need to dig into the call paths. Seems like the most efficient way to get that information is to search through the `fs/iomap/` directory for that specific function. I'll see where it's being used within the iomap framework. That'll give me a good handle on its role. Let's get to it.



141/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:ifs_free PathPrefix:fs/iomap]

Results:
map[Output:fs/iomap/buffered-io.c=251=static struct iomap_folio_state *ifs_alloc(struct inode *inode,
--
fs/iomap/buffered-io.c-285-
fs/iomap/buffered-io.c:286:static void ifs_free(struct folio *folio)
fs/iomap/buffered-io.c-287-{
--
fs/iomap/buffered-io.c=814=bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags)
--
fs/iomap/buffered-io.c-825-		return false;
fs/iomap/buffered-io.c:826:	ifs_free(folio);
fs/iomap/buffered-io.c-827-	return true;
--
fs/iomap/buffered-io.c=831=void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
--
fs/iomap/buffered-io.c-842-		folio_cancel_dirty(folio);
fs/iomap/buffered-io.c:843:		ifs_free(folio);
fs/iomap/buffered-io.c-844-	} else {
]

142/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20390
							output: 39
							thoughts: 54
						

Thoughts:
**Examining the I/O Mapping and Invalidation Process**

Okay, so I'm digging into how iomap handles memory releases and invalidations, specifically focusing on `iomap_release_folio` and `iomap_invalidate_folio`. It looks like these functions both call `ifs_free` – that's the key point to investigate. To get a better grasp of the logic, I need to check the relevant code section, which should be between lines 810 and 860 in `fs/iomap/buffered-io.c`. Time to see what's happening there with those `ifs_free` calls and how they relate to folio management in the I/O mapping process. Let's see if there are any subtle memory issues or inefficiencies related to this.



143/4 2026/09/18 01:01 tool read-file
0m Args:
map[File:fs/iomap/buffered-io.c FirstLine:810 LineCount:55]

Results:
map[Contents: 810:				fgp, mapping_gfp_mask(iter->inode->i_mapping));
 811:	}
 812:	EXPORT_SYMBOL_GPL(iomap_get_folio);
 813:	
 814:	bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags)
 815:	{
 816:		trace_iomap_release_folio(folio->mapping->host, folio_pos(folio),
 817:				folio_size(folio));
 818:	
 819:		/*
 820:		 * If the folio is dirty, we refuse to release our metadata because
 821:		 * it may be partially dirty.  Once we track per-block dirty state,
 822:		 * we can release the metadata if every block is dirty.
 823:		 */
 824:		if (folio_test_dirty(folio))
 825:			return false;
 826:		ifs_free(folio);
 827:		return true;
 828:	}
 829:	EXPORT_SYMBOL_GPL(iomap_release_folio);
 830:	
 831:	void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
 832:	{
 833:		trace_iomap_invalidate_folio(folio->mapping->host,
 834:						folio_pos(folio) + offset, len);
 835:	
 836:		/*
 837:		 * If we're invalidating the entire folio, clear the dirty state
 838:		 * from it and release it to avoid unnecessary buildup of the LRU.
 839:		 */
 840:		if (offset == 0 && len == folio_size(folio)) {
 841:			WARN_ON_ONCE(folio_test_writeback(folio));
 842:			folio_cancel_dirty(folio);
 843:			ifs_free(folio);
 844:		} else {
 845:			iomap_clear_range_dirty(folio, offset, len);
 846:		}
 847:	}
 848:	EXPORT_SYMBOL_GPL(iomap_invalidate_folio);
 849:	
 850:	bool iomap_dirty_folio(struct address_space *mapping, struct folio *folio)
 851:	{
 852:		struct inode *inode = mapping->host;
 853:		size_t len = folio_size(folio);
 854:	
 855:		ifs_alloc(inode, folio, 0);
 856:		iomap_set_range_dirty(folio, 0, len);
 857:		return filemap_dirty_folio(mapping, folio);
 858:	}
 859:	EXPORT_SYMBOL_GPL(iomap_dirty_folio);
 860:	
 861:	static void
 862:	iomap_write_failed(struct inode *inode, loff_t pos, unsigned len)
 863:	{
 864:		loff_t i_size = i_size_read(inode);
]

144/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 21526
							output: 31
							thoughts: 904
						

Thoughts:
**Analyzing a Potential NTFS3 Inconsistency and its Consequences**

Okay, let's break this down systematically. The user's spotted a potential inconsistency within NTFS3's interaction with the I/O mapping layer, specifically related to the `iomap_folio_state` (`ifs`). The core concern is that `ntfs3` is directly calling `folio_mark_uptodate(folio)` in a couple of places, and it might be doing so without properly updating the `ifs->state` bitmap. This looks like a race or inconsistency and needs close investigation.

My initial thought is that this kind of mismatch *could* lead to a range of nasty outcomes, so it's worth a deep dive: memory corruption, a use-after-free scenario, or even an information leak. We need to trace this from the very beginning.

Let me recap the flow: during unmount or inode truncation, the mapping's invalidated/truncated using a call chain from `truncate_inode_pages_final` down to `iomap_invalidate_folio` which, in turn, calls `ifs_free`. Within `ifs_free`, we see a few `WARN_ON_ONCE` checks to ensure the state is consistent.  Specifically, `ifs_is_fully_uptodate` should match `folio_test_uptodate`. The user is saying this isn't always the case.

Now, I need to understand:

1.  **Where does `ifs` come from?** How is it allocated and attached to the folio? I need to understand the lifecycle of this `iomap_folio_state` struct.
2.  **What does `ifs` *actually* track?**  What information does it hold about the folio's state? What's the purpose of the `ifs->state` bitmap?
3.  **How is `ifs` used in various scenarios?**  During reads, writes, writeback, truncation, invalidation, and folio release. I need to walk the paths carefully and see how `ifs` and the folio's state are maintained.
4.  **Crucially, what happens when `folio_test_uptodate` and `ifs_is_fully_uptodate` diverge?** What happens if one says the folio is fully up-to-date and the other doesn't? Is this checked in any read path? Could it lead to an information leak or a read of stale data? Might there be a chance of uninitialized memory being exposed?

The user's asking if this mismatch in state can cause a *wild dereference*, expose uninitialized memory to userspace, or lead to any other issues besides the warning.  My instinct is to first look for paths which read from these fields. We need to be exhaustive in tracing the read and write paths.

Let's also look at the user's reproducer: they're mounting an NTFS3 image, writing to a file, mmapping it, and then unmounting. The mention of `cpu.stat` is interesting! Is this a special file on NTFS3, or is there a cgroups context? I need to be sure this reproducer is understood completely.

Next steps: Let's search for similar issues, looking for recent Linux commits or discussions related to `ifs_is_fully_uptodate` or `ntfs3`. A `git log` or `grep` across the relevant codebase might reveal previous issues or relevant context. I also want to check `syzkaller` for any reports related to these functions and NTFS3.



145/4 2026/09/18 01:01 tool git-log
0m Args:
map[Count:10 MessageRegexps:[ifs_is_fully_uptodate]]

Results:
map[Output:]

146/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 23234
							output: 29
							thoughts: 34
						

Thoughts:
Okay, here's my interpretation of those thoughts, summarized from my perspective as a subject matter expert:

**Investigating Potential File System Issues**

Alright, time to get my hands dirty. I've got a hunch that something might be up with a file system interaction, likely in the kernel, and I need to dig into the git history to see what I can find. My plan is to use `git log` to zero in on relevant code changes. I'm going to leverage regular expressions to do some targeted searching, to avoid having to sift through irrelevant commits. I'm going to search for any commits mentioning either `ifs_free`, which likely pertains to an In-memory File System, `iomap_folio_state`, a function likely relevant to I/O mapping, or the `ntfs3` file system, as it's a common area of compatibility challenges. Using those keywords should let me focus on areas where file system behavior is changing or being improved. Let's see what the commit history reveals.



147/4 2026/09/18 01:01 tool git-log
0m Args:
map[Count:10 MessageRegexps:[iomap_folio_state]]

Results:
map[Output:]

148/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 23525
							output: 14
							thoughts: 11
						

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

**Analyzing the Repository's Commit History**

Alright, time to get a lay of the land. My initial thought process is always to understand the current state of a project, and the best place to start with that is examining the commit history. I need a clear picture of what changes have been made, when, and by whom. I want to see the evolution of the code base, identify any potential areas of concern, and ideally, quickly grasp the project's development trajectory. I'm going to leverage my familiarity with git commands and the project's structure to get a sense of the codebase and dependencies. I anticipate this will allow me to build a more accurate and efficient plan for the task at hand. Let's see what we've got.



149/4 2026/09/18 01:01 tool git-log
0m Error:
log-in to see details

Args:
map[Count:3]

Results:
map[Output:]

150/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 23758
							output: 25
							thoughts: 22
						

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

**Analyzing the `git-log` Entry**

Alright, let's break this down. Seeing `PathPrefix: "fs/ntfs3"` in the `git-log` immediately flags a specific area of interest. This isn't just about a generic file system; it's pinpointing modifications within the `ntfs3` file system implementation. Given the context of a `git-log` entry, I'm already formulating questions: What commits are associated with this? What's being changed within the `fs/ntfs3` subtree? Are we looking at bug fixes, performance improvements, feature additions, or perhaps even security enhancements related to NTFS3? The `PathPrefix` directive narrows the scope significantly, so I'll be laser-focused on changes impacting the core NTFS3 code. This tells me I need to pull up those specific commit hashes and start examining the diffs. I'm already anticipating the typical issues associated with NTFS3 – metadata handling, journaling, compatibility quirks, and potential vulnerabilities. I'll be looking for clues in the commit messages and code changes, trying to understand the intent behind these modifications.



151/4 2026/09/18 01:01 tool git-log
0m Args:
map[Count:5 PathPrefix:fs/ntfs3]

Results:
map[Output:238650ef6c7c Merge tag 'powerpc-7.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
]

152/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 24120
							output: 32
							thoughts: 299
						

Thoughts:
**My Initial Investigation into NTFS3 and IOMAP**

Okay, so I've got a shallow clone here, just the one commit, `238650ef6c7c`, but that doesn't concern me. The source code is all present, and that's what matters for this investigation.

My primary focus is going to be within `fs/ntfs3` and `fs/iomap`. I'm starting by zeroing in on a few key files within `ntfs3`: `attrib.c`, `file.c`, `inode.c`, and `frecord.c`. I need to understand the core mechanics.

Specifically, I need to get a clear picture of:

1.  How `attr_make_nonresident` works.
2.  The implementation of `ntfs_compress_write`.
3.  The process of `ntfs_extend_initialized_size`.
4.  How `ntfs_file_write_iter` functions.
5.  What's happening inside `ntfs_read_folio`.
6.  The roles of `ntfs_iomap_begin`, `ntfs_iomap_end`, and `ntfs_iomap_put_folio`.
7.  The interplay between IOMAP operations in read/write/zero paths.

After that, I'm going to shift gears to `fs/iomap/buffered-io.c`. The allocation and manipulation of `ifs` is critical here. I'll thoroughly trace every instance of `ifs` to understand its lifecycle and usage.



153/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:ifs PathPrefix:fs/iomap/buffered-io.c]

Results:
map[Output:fs/iomap/buffered-io.c=22=struct iomap_folio_state {
--
fs/iomap/buffered-io.c-34-
fs/iomap/buffered-io.c:35:static inline bool ifs_is_fully_uptodate(struct folio *folio,
fs/iomap/buffered-io.c:36:		struct iomap_folio_state *ifs)
fs/iomap/buffered-io.c-37-{
--
fs/iomap/buffered-io.c-39-
fs/iomap/buffered-io.c:40:	return bitmap_full(ifs->state, i_blocks_per_folio(inode, folio));
fs/iomap/buffered-io.c-41-}
--
fs/iomap/buffered-io.c-46- */
fs/iomap/buffered-io.c:47:static unsigned ifs_next_uptodate_block(struct folio *folio,
fs/iomap/buffered-io.c-48-		unsigned start_blk, unsigned end_blk)
fs/iomap/buffered-io.c-49-{
fs/iomap/buffered-io.c:50:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-51-
fs/iomap/buffered-io.c:52:	return find_next_bit(ifs->state, end_blk + 1, start_blk);
fs/iomap/buffered-io.c-53-}
--
fs/iomap/buffered-io.c-58- */
fs/iomap/buffered-io.c:59:static unsigned ifs_next_nonuptodate_block(struct folio *folio,
fs/iomap/buffered-io.c-60-		unsigned start_blk, unsigned end_blk)
fs/iomap/buffered-io.c-61-{
fs/iomap/buffered-io.c:62:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-63-
fs/iomap/buffered-io.c:64:	return find_next_zero_bit(ifs->state, end_blk + 1, start_blk);
fs/iomap/buffered-io.c-65-}
fs/iomap/buffered-io.c-66-
fs/iomap/buffered-io.c:67:static bool ifs_set_range_uptodate(struct folio *folio,
fs/iomap/buffered-io.c:68:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-69-{
--
fs/iomap/buffered-io.c-75-		last_blk = (off + len - 1) >> inode->i_blkbits;
fs/iomap/buffered-io.c:76:		bitmap_set(ifs->state, first_blk, last_blk - first_blk + 1);
fs/iomap/buffered-io.c-77-	}
fs/iomap/buffered-io.c:78:	return ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c-79-}
--
fs/iomap/buffered-io.c=81=static void iomap_set_range_uptodate(struct folio *folio, size_t off,
--
fs/iomap/buffered-io.c-83-{
fs/iomap/buffered-io.c:84:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-85-	unsigned long flags;
--
fs/iomap/buffered-io.c-90-
fs/iomap/buffered-io.c:91:	if (ifs) {
fs/iomap/buffered-io.c:92:		spin_lock_irqsave(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-93-		/*
--
fs/iomap/buffered-io.c-100-		 */
fs/iomap/buffered-io.c:101:		mark_uptodate = ifs_set_range_uptodate(folio, ifs, off, len) &&
fs/iomap/buffered-io.c:102:				!ifs->read_bytes_pending;
fs/iomap/buffered-io.c:103:		spin_unlock_irqrestore(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-104-	}
--
fs/iomap/buffered-io.c=114=EXPORT_SYMBOL_GPL(iomap_folio_mark_uptodate);
--
fs/iomap/buffered-io.c-119- */
fs/iomap/buffered-io.c:120:static unsigned ifs_next_dirty_block(struct folio *folio,
fs/iomap/buffered-io.c-121-		unsigned start_blk, unsigned end_blk)
fs/iomap/buffered-io.c-122-{
fs/iomap/buffered-io.c:123:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-124-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c-126-
fs/iomap/buffered-io.c:127:	return find_next_bit(ifs->state, blks + end_blk + 1,
fs/iomap/buffered-io.c-128-			blks + start_blk) - blks;
--
fs/iomap/buffered-io.c-134- */
fs/iomap/buffered-io.c:135:static unsigned ifs_next_clean_block(struct folio *folio,
fs/iomap/buffered-io.c-136-		unsigned start_blk, unsigned end_blk)
fs/iomap/buffered-io.c-137-{
fs/iomap/buffered-io.c:138:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-139-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c-141-
fs/iomap/buffered-io.c:142:	return find_next_zero_bit(ifs->state, blks + end_blk + 1,
fs/iomap/buffered-io.c-143-			blks + start_blk) - blks;
--
fs/iomap/buffered-io.c-145-
fs/iomap/buffered-io.c:146:static unsigned ifs_find_dirty_range(struct folio *folio,
fs/iomap/buffered-io.c:147:		struct iomap_folio_state *ifs, u64 *range_start, u64 range_end)
fs/iomap/buffered-io.c-148-{
--
fs/iomap/buffered-io.c-156-
fs/iomap/buffered-io.c:157:	start_blk = ifs_next_dirty_block(folio, start_blk, end_blk);
fs/iomap/buffered-io.c-158-	if (start_blk > end_blk)
--
fs/iomap/buffered-io.c-162-	else
fs/iomap/buffered-io.c:163:		nblks = ifs_next_clean_block(folio, start_blk + 1, end_blk) -
fs/iomap/buffered-io.c-164-				start_blk;
--
fs/iomap/buffered-io.c=170=static unsigned iomap_find_dirty_range(struct folio *folio, u64 *range_start,
--
fs/iomap/buffered-io.c-172-{
fs/iomap/buffered-io.c:173:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-174-
--
fs/iomap/buffered-io.c-177-
fs/iomap/buffered-io.c:178:	if (ifs)
fs/iomap/buffered-io.c:179:		return ifs_find_dirty_range(folio, ifs, range_start, range_end);
fs/iomap/buffered-io.c-180-	return range_end - *range_start;
--
fs/iomap/buffered-io.c-189- */
fs/iomap/buffered-io.c:190:static void ifs_clear_range_dirty(struct folio *folio,
fs/iomap/buffered-io.c:191:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-192-{
--
fs/iomap/buffered-io.c-202-
fs/iomap/buffered-io.c:203:	spin_lock_irqsave(&ifs->state_lock, flags);
fs/iomap/buffered-io.c:204:	bitmap_clear(ifs->state, first_blk + blks_per_folio,
fs/iomap/buffered-io.c-205-		     last_blk - first_blk);
fs/iomap/buffered-io.c:206:	spin_unlock_irqrestore(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-207-}
--
fs/iomap/buffered-io.c=209=static void iomap_clear_range_dirty(struct folio *folio, size_t off, size_t len)
fs/iomap/buffered-io.c-210-{
fs/iomap/buffered-io.c:211:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-212-
fs/iomap/buffered-io.c:213:	if (ifs)
fs/iomap/buffered-io.c:214:		ifs_clear_range_dirty(folio, ifs, off, len);
fs/iomap/buffered-io.c-215-}
--
fs/iomap/buffered-io.c-223- */
fs/iomap/buffered-io.c:224:static void ifs_set_range_dirty(struct folio *folio,
fs/iomap/buffered-io.c:225:		struct iomap_folio_state *ifs, size_t off, size_t len)
fs/iomap/buffered-io.c-226-{
--
fs/iomap/buffered-io.c-236-	last_blk = (off + len - 1) >> inode->i_blkbits;
fs/iomap/buffered-io.c:237:	spin_lock_irqsave(&ifs->state_lock, flags);
fs/iomap/buffered-io.c:238:	bitmap_set(ifs->state, first_blk + blks_per_folio,
fs/iomap/buffered-io.c-239-		   last_blk - first_blk + 1);
fs/iomap/buffered-io.c:240:	spin_unlock_irqrestore(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-241-}
--
fs/iomap/buffered-io.c=243=static void iomap_set_range_dirty(struct folio *folio, size_t off, size_t len)
fs/iomap/buffered-io.c-244-{
fs/iomap/buffered-io.c:245:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-246-
fs/iomap/buffered-io.c:247:	if (ifs)
fs/iomap/buffered-io.c:248:		ifs_set_range_dirty(folio, ifs, off, len);
fs/iomap/buffered-io.c-249-}
fs/iomap/buffered-io.c-250-
fs/iomap/buffered-io.c:251:static struct iomap_folio_state *ifs_alloc(struct inode *inode,
fs/iomap/buffered-io.c-252-		struct folio *folio, unsigned int flags)
fs/iomap/buffered-io.c-253-{
fs/iomap/buffered-io.c:254:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-255-	unsigned int nr_blocks = i_blocks_per_folio(inode, folio);
--
fs/iomap/buffered-io.c-257-
fs/iomap/buffered-io.c:258:	if (ifs || nr_blocks <= 1)
fs/iomap/buffered-io.c:259:		return ifs;
fs/iomap/buffered-io.c-260-
--
fs/iomap/buffered-io.c-266-	/*
fs/iomap/buffered-io.c:267:	 * ifs->state tracks two sets of state flags when the
fs/iomap/buffered-io.c-268-	 * filesystem block size is smaller than the folio size.
--
fs/iomap/buffered-io.c-271-	 */
fs/iomap/buffered-io.c:272:	ifs = kzalloc_flex(*ifs, state, BITS_TO_LONGS(2 * nr_blocks), gfp);
fs/iomap/buffered-io.c:273:	if (!ifs)
fs/iomap/buffered-io.c:274:		return ifs;
fs/iomap/buffered-io.c-275-
fs/iomap/buffered-io.c:276:	spin_lock_init(&ifs->state_lock);
fs/iomap/buffered-io.c-277-	if (folio_test_uptodate(folio))
fs/iomap/buffered-io.c:278:		bitmap_set(ifs->state, 0, nr_blocks);
fs/iomap/buffered-io.c-279-	if (folio_test_dirty(folio))
fs/iomap/buffered-io.c:280:		bitmap_set(ifs->state, nr_blocks, nr_blocks);
fs/iomap/buffered-io.c:281:	folio_attach_private(folio, ifs);
fs/iomap/buffered-io.c-282-
fs/iomap/buffered-io.c:283:	return ifs;
fs/iomap/buffered-io.c-284-}
fs/iomap/buffered-io.c-285-
fs/iomap/buffered-io.c:286:static void ifs_free(struct folio *folio)
fs/iomap/buffered-io.c-287-{
fs/iomap/buffered-io.c:288:	struct iomap_folio_state *ifs = folio_detach_private(folio);
fs/iomap/buffered-io.c-289-
fs/iomap/buffered-io.c:290:	if (!ifs)
fs/iomap/buffered-io.c-291-		return;
fs/iomap/buffered-io.c:292:	WARN_ON_ONCE(ifs->read_bytes_pending != 0);
fs/iomap/buffered-io.c:293:	WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
fs/iomap/buffered-io.c:294:	WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
fs/iomap/buffered-io.c-295-			folio_test_uptodate(folio));
fs/iomap/buffered-io.c:296:	kfree(ifs);
fs/iomap/buffered-io.c-297-}
--
fs/iomap/buffered-io.c=318=static void iomap_adjust_read_range(struct inode *inode, struct folio *folio,
--
fs/iomap/buffered-io.c-320-{
fs/iomap/buffered-io.c:321:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-322-	loff_t orig_pos = *pos;
--
fs/iomap/buffered-io.c-336-	 */
fs/iomap/buffered-io.c:337:	if (ifs) {
fs/iomap/buffered-io.c-338-		unsigned int next, blocks_skipped;
fs/iomap/buffered-io.c-339-
fs/iomap/buffered-io.c:340:		next = ifs_next_nonuptodate_block(folio, first, last);
fs/iomap/buffered-io.c-341-		blocks_skipped = next - first;
--
fs/iomap/buffered-io.c-355-		if (++next <= last) {
fs/iomap/buffered-io.c:356:			next = ifs_next_uptodate_block(folio, next, last);
fs/iomap/buffered-io.c-357-			if (next <= last) {
--
fs/iomap/buffered-io.c=418=static int iomap_read_inline_data(const struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-436-	if (offset > 0)
fs/iomap/buffered-io.c:437:		ifs_alloc(iter->inode, folio, iter->flags);
fs/iomap/buffered-io.c-438-
--
fs/iomap/buffered-io.c=444=void iomap_finish_folio_read(struct folio *folio, size_t off, size_t len,
--
fs/iomap/buffered-io.c-446-{
fs/iomap/buffered-io.c:447:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-448-	bool uptodate = !error;
--
fs/iomap/buffered-io.c-455-
fs/iomap/buffered-io.c:456:	if (ifs) {
fs/iomap/buffered-io.c-457-		unsigned long flags;
fs/iomap/buffered-io.c-458-
fs/iomap/buffered-io.c:459:		spin_lock_irqsave(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-460-		if (!error)
fs/iomap/buffered-io.c:461:			uptodate = ifs_set_range_uptodate(folio, ifs, off, len);
fs/iomap/buffered-io.c:462:		ifs->read_bytes_pending -= len;
fs/iomap/buffered-io.c:463:		finished = !ifs->read_bytes_pending;
fs/iomap/buffered-io.c:464:		spin_unlock_irqrestore(&ifs->state_lock, flags);
fs/iomap/buffered-io.c-465-	}
--
fs/iomap/buffered-io.c=472=static void iomap_read_init(struct folio *folio)
fs/iomap/buffered-io.c-473-{
fs/iomap/buffered-io.c:474:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-475-
fs/iomap/buffered-io.c:476:	if (ifs) {
fs/iomap/buffered-io.c-477-		/*
fs/iomap/buffered-io.c:478:		 * ifs->read_bytes_pending is used to track how many bytes are
fs/iomap/buffered-io.c-479-		 * read in asynchronously by the IO helper. We need to track
--
fs/iomap/buffered-io.c-489-		 * We do this because otherwise, we would have to increment
fs/iomap/buffered-io.c:490:		 * ifs->read_bytes_pending every time a range in the folio needs
fs/iomap/buffered-io.c-491-		 * to be read in, which can get expensive since the spinlock
fs/iomap/buffered-io.c:492:		 * needs to be held whenever modifying ifs->read_bytes_pending.
fs/iomap/buffered-io.c-493-		 */
fs/iomap/buffered-io.c:494:		spin_lock_irq(&ifs->state_lock);
fs/iomap/buffered-io.c:495:		WARN_ON_ONCE(ifs->read_bytes_pending != 0);
fs/iomap/buffered-io.c:496:		ifs->read_bytes_pending = folio_size(folio);
fs/iomap/buffered-io.c:497:		spin_unlock_irq(&ifs->state_lock);
fs/iomap/buffered-io.c-498-	}
--
fs/iomap/buffered-io.c-503- *
fs/iomap/buffered-io.c:504: * Otherwise, this calibrates ifs->read_bytes_pending to represent only the
fs/iomap/buffered-io.c-505- * submitted bytes (see comment in iomap_read_init()). If all bytes submitted
--
fs/iomap/buffered-io.c=510=static void iomap_read_end(struct folio *folio, size_t bytes_submitted)
fs/iomap/buffered-io.c-511-{
fs/iomap/buffered-io.c:512:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-513-
fs/iomap/buffered-io.c:514:	if (ifs) {
fs/iomap/buffered-io.c-515-		bool end_read, uptodate;
fs/iomap/buffered-io.c-516-
fs/iomap/buffered-io.c:517:		spin_lock_irq(&ifs->state_lock);
fs/iomap/buffered-io.c:518:		if (!ifs->read_bytes_pending) {
fs/iomap/buffered-io.c-519-			WARN_ON_ONCE(bytes_submitted);
fs/iomap/buffered-io.c:520:			spin_unlock_irq(&ifs->state_lock);
fs/iomap/buffered-io.c-521-			folio_unlock(folio);
--
fs/iomap/buffered-io.c-528-		 */
fs/iomap/buffered-io.c:529:		ifs->read_bytes_pending -= folio_size(folio) - bytes_submitted;
fs/iomap/buffered-io.c-530-
fs/iomap/buffered-io.c-531-		/*
fs/iomap/buffered-io.c:532:		 * If !ifs->read_bytes_pending, this means all pending reads by
fs/iomap/buffered-io.c-533-		 * the IO helper have already completed, which means we need to
fs/iomap/buffered-io.c:534:		 * end the folio read here. If ifs->read_bytes_pending != 0,
fs/iomap/buffered-io.c-535-		 * the IO helper will end the folio read.
fs/iomap/buffered-io.c-536-		 */
fs/iomap/buffered-io.c:537:		end_read = !ifs->read_bytes_pending;
fs/iomap/buffered-io.c-538-		if (end_read)
fs/iomap/buffered-io.c:539:			uptodate = ifs_is_fully_uptodate(folio, ifs);
fs/iomap/buffered-io.c:540:		spin_unlock_irq(&ifs->state_lock);
fs/iomap/buffered-io.c-541-		if (end_read)
--
fs/iomap/buffered-io.c-544-		/*
fs/iomap/buffered-io.c:545:		 * If a folio without an ifs is submitted to the IO helper, the
fs/iomap/buffered-io.c-546-		 * read must be on the entire folio and the IO helper takes
fs/iomap/buffered-io.c-547-		 * ownership of the folio. This means we should only enter
fs/iomap/buffered-io.c:548:		 * iomap_read_end() for the !ifs case if no bytes were submitted
fs/iomap/buffered-io.c-549-		 * to the IO helper, in which case we are responsible for
--
fs/iomap/buffered-io.c=557=static int iomap_read_folio_iter(struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-564-	size_t folio_len = folio_size(folio);
fs/iomap/buffered-io.c:565:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-566-	size_t poff, plen;
--
fs/iomap/buffered-io.c-576-
fs/iomap/buffered-io.c:577:	ifs = ifs_alloc(iter->inode, folio, iter->flags);
fs/iomap/buffered-io.c-578-
--
fs/iomap/buffered-io.c-631-			 * 1) The entire folio has been submitted for IO, or
fs/iomap/buffered-io.c:632:			 * 2) There is no ifs attached to the folio
fs/iomap/buffered-io.c-633-			 *
--
fs/iomap/buffered-io.c-637-			 */
fs/iomap/buffered-io.c:638:			if (*bytes_submitted == folio_len || !ifs)
fs/iomap/buffered-io.c-639-				ctx->cur_folio = NULL;
--
fs/iomap/buffered-io.c=770=bool iomap_is_partially_uptodate(struct folio *folio, size_t from, size_t count)
fs/iomap/buffered-io.c-771-{
fs/iomap/buffered-io.c:772:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-773-	struct inode *inode = folio->mapping->host;
--
fs/iomap/buffered-io.c-775-
fs/iomap/buffered-io.c:776:	if (!ifs)
fs/iomap/buffered-io.c-777-		return false;
--
fs/iomap/buffered-io.c-785-
fs/iomap/buffered-io.c:786:	return ifs_next_nonuptodate_block(folio, first, last) > last;
fs/iomap/buffered-io.c-787-}
--
fs/iomap/buffered-io.c=814=bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags)
--
fs/iomap/buffered-io.c-825-		return false;
fs/iomap/buffered-io.c:826:	ifs_free(folio);
fs/iomap/buffered-io.c-827-	return true;
--
fs/iomap/buffered-io.c=831=void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len)
--
fs/iomap/buffered-io.c-842-		folio_cancel_dirty(folio);
fs/iomap/buffered-io.c:843:		ifs_free(folio);
fs/iomap/buffered-io.c-844-	} else {
--
fs/iomap/buffered-io.c=850=bool iomap_dirty_folio(struct address_space *mapping, struct folio *folio)
--
fs/iomap/buffered-io.c-854-
fs/iomap/buffered-io.c:855:	ifs_alloc(inode, folio, 0);
fs/iomap/buffered-io.c-856-	iomap_set_range_dirty(folio, 0, len);
--
fs/iomap/buffered-io.c=875=static int __iomap_write_begin(const struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-878-{
fs/iomap/buffered-io.c:879:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-880-	loff_t pos = iter->pos;
--
fs/iomap/buffered-io.c-898-
fs/iomap/buffered-io.c:899:	ifs = ifs_alloc(iter->inode, folio, iter->flags);
fs/iomap/buffered-io.c:900:	if ((iter->flags & IOMAP_NOWAIT) && !ifs && nr_blocks > 1)
fs/iomap/buffered-io.c-901-		return -EAGAIN;
--
fs/iomap/buffered-io.c=1346=EXPORT_SYMBOL_GPL(iomap_fsverity_write);
fs/iomap/buffered-io.c-1347-
fs/iomap/buffered-io.c:1348:static void iomap_write_delalloc_ifs_punch(struct inode *inode,
fs/iomap/buffered-io.c-1349-		struct folio *folio, loff_t start_byte, loff_t end_byte,
--
fs/iomap/buffered-io.c-1354-	u8 blkbits = inode->i_blkbits;
fs/iomap/buffered-io.c:1355:	struct iomap_folio_state *ifs;
fs/iomap/buffered-io.c-1356-
--
fs/iomap/buffered-io.c-1362-	 */
fs/iomap/buffered-io.c:1363:	ifs = folio->private;
fs/iomap/buffered-io.c:1364:	if (!ifs)
fs/iomap/buffered-io.c-1365-		return;
--
fs/iomap/buffered-io.c-1369-	last_blk = offset_in_folio(folio, last_byte) >> blkbits;
fs/iomap/buffered-io.c:1370:	while ((first_blk = ifs_next_clean_block(folio, first_blk, last_blk))
fs/iomap/buffered-io.c-1371-		       <= last_blk) {
--
fs/iomap/buffered-io.c=1378=static void iomap_write_delalloc_punch(struct inode *inode, struct folio *folio,
--
fs/iomap/buffered-io.c-1391-	/* Punch non-dirty blocks within folio */
fs/iomap/buffered-io.c:1392:	iomap_write_delalloc_ifs_punch(inode, folio, start_byte, end_byte,
fs/iomap/buffered-io.c-1393-			iomap, punch);
--
fs/iomap/buffered-io.c=1856=static void iomap_writeback_init(struct inode *inode, struct folio *folio)
fs/iomap/buffered-io.c-1857-{
fs/iomap/buffered-io.c:1858:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1859-
fs/iomap/buffered-io.c:1860:	WARN_ON_ONCE(i_blocks_per_folio(inode, folio) > 1 && !ifs);
fs/iomap/buffered-io.c:1861:	if (ifs) {
fs/iomap/buffered-io.c:1862:		WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending) != 0);
fs/iomap/buffered-io.c-1863-		/*
--
fs/iomap/buffered-io.c-1868-		 * We do this because otherwise, we would have to atomically
fs/iomap/buffered-io.c:1869:		 * increment ifs->write_bytes_pending every time a range in the
fs/iomap/buffered-io.c-1870-		 * folio needs to be written back.
fs/iomap/buffered-io.c-1871-		 */
fs/iomap/buffered-io.c:1872:		atomic_set(&ifs->write_bytes_pending, folio_size(folio));
fs/iomap/buffered-io.c-1873-	}
--
fs/iomap/buffered-io.c=1876=void iomap_finish_folio_write(struct inode *inode, struct folio *folio,
--
fs/iomap/buffered-io.c-1878-{
fs/iomap/buffered-io.c:1879:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1880-
fs/iomap/buffered-io.c:1881:	WARN_ON_ONCE(i_blocks_per_folio(inode, folio) > 1 && !ifs);
fs/iomap/buffered-io.c:1882:	WARN_ON_ONCE(ifs && atomic_read(&ifs->write_bytes_pending) <= 0);
fs/iomap/buffered-io.c-1883-
fs/iomap/buffered-io.c:1884:	if (!ifs || atomic_sub_and_test(len, &ifs->write_bytes_pending))
fs/iomap/buffered-io.c-1885-		folio_end_writeback(folio);
--
fs/iomap/buffered-io.c=1980=int iomap_writeback_folio(struct iomap_writepage_ctx *wpc, struct folio *folio)
fs/iomap/buffered-io.c-1981-{
fs/iomap/buffered-io.c:1982:	struct iomap_folio_state *ifs = folio->private;
fs/iomap/buffered-io.c-1983-	struct inode *inode = wpc->inode;
--
fs/iomap/buffered-io.c-2002-	if (i_blocks_per_folio(inode, folio) > 1) {
fs/iomap/buffered-io.c:2003:		if (!ifs) {
fs/iomap/buffered-io.c:2004:			ifs = ifs_alloc(inode, folio, 0);
fs/iomap/buffered-io.c-2005-			iomap_set_range_dirty(folio, 0, end_pos - pos);
--
fs/iomap/buffered-io.c-2048-	 */
fs/iomap/buffered-io.c:2049:	if (ifs) {
fs/iomap/buffered-io.c-2050-		/*
]

154/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 34198
							output: 37
							thoughts: 772
						

Thoughts:
**Analyzing `ifs_alloc` and Its Usage in the IOMAP Context**

Okay, let's break this down. My immediate focus is understanding the lifecycle of the `ifs` structure, specifically how it's allocated and when its state is initialized within the IOMAP framework. The `ifs_alloc` function is key here.

First, I see the condition: `if (ifs || nr_blocks <= 1) return ifs;`.  So, if `ifs` is already present in the `folio`'s `private` data, or if the number of filesystem blocks within a folio is one or fewer, we just return the existing `ifs`, or `ifs` is not allocated.  Otherwise, if the filesystem block size is *smaller* than the folio size (which is the interesting case for optimization), we proceed with allocation.  The use of `kzalloc_flex` implies a flexible array, which makes sense for storing per-block metadata.  The `state` field within `ifs` looks like it tracks both the uptodate and dirty status for each block within the folio, given `BITS_TO_LONGS(2 * nr_blocks)`.  I'm noting that the `gfp` flags determine the memory allocation behavior; in particular, the `GFP_NOFS` flag is interesting as it suggests that the allocation might happen without blocking on filesystem operations.

The important bit is the state initialization.  If the `folio` is already marked as uptodate or dirty *before* `ifs_alloc` is called, the corresponding bitmap bits are set: `bitmap_set(ifs->state, 0, nr_blocks)` and `bitmap_set(ifs->state, nr_blocks, nr_blocks)`. This is a crucial observation: If the `folio` is initialized to being uptodate, then so is the `ifs` state.

Now, to understand when this state is set, I need to see when `ifs_alloc` is called. Let's trace all of the call sites. I'm going to look at the following:
1.  `iomap_dirty_folio`
2.  `iomap_read_inline_data`
3.  `iomap_read_folio_iter`
4.  `__iomap_write_begin`
5.  `iomap_writeback_folio`

This tells me the typical places where this `ifs` metadata is managed: during folio dirtification, inline data reads, iterated reads, write begins, and writeback operations. Understanding these call paths is important for understanding how the metadata state is propagated and managed.

I'll be taking a closer look at the `attr_make_nonresident` code now in `fs/ntfs3/attrib.c`. It's likely that this function interacts with IOMAP in some way.



155/4 2026/09/18 01:01 tool read-file
0m Args:
map[File:fs/ntfs3/attrib.c FirstLine:254 LineCount:85]

Results:
map[Contents: 254:	int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
 255:				  struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
 256:				  u64 new_size, struct runs_tree *run,
 257:				  struct ATTRIB **ins_attr, struct page *page)
 258:	{
 259:		struct ntfs_sb_info *sbi;
 260:		struct ATTRIB *attr_s;
 261:		struct MFT_REC *rec;
 262:		u32 used, asize, rsize, aoff;
 263:		bool is_data;
 264:		CLST len, alen;
 265:		char *next;
 266:		int err;
 267:	
 268:		if (attr->non_res) {
 269:			*ins_attr = attr;
 270:			return 0;
 271:		}
 272:	
 273:		sbi = mi->sbi;
 274:		rec = mi->mrec;
 275:		attr_s = NULL;
 276:		used = le32_to_cpu(rec->used);
 277:		asize = le32_to_cpu(attr->size);
 278:		next = Add2Ptr(attr, asize);
 279:		aoff = PtrOffset(rec, attr);
 280:		rsize = le32_to_cpu(attr->res.data_size);
 281:		is_data = attr->type == ATTR_DATA;
 282:	
 283:		/* len - how many clusters required to store 'rsize' bytes */
 284:		if (is_attr_compressed(attr)) {
 285:			u8 shift = sbi->cluster_bits + NTFS_LZNT_CUNIT;
 286:			len = ((rsize + (1u << shift) - 1) >> shift) << NTFS_LZNT_CUNIT;
 287:		} else {
 288:			len = bytes_to_cluster(sbi, rsize);
 289:		}
 290:	
 291:		run_init(run);
 292:	
 293:		/* Make a copy of original attribute. */
 294:		attr_s = kmemdup(attr, asize, GFP_NOFS);
 295:		if (!attr_s) {
 296:			err = -ENOMEM;
 297:			goto out;
 298:		}
 299:	
 300:		if (!len) {
 301:			/* Empty resident -> Empty nonresident. */
 302:			alen = 0;
 303:		} else {
 304:			const char *data = resident_data(attr);
 305:	
 306:			err = attr_allocate_clusters(sbi, run, NULL, 0, 0, len, NULL,
 307:						     ALLOCATE_DEF, &alen, 0, NULL,
 308:						     NULL);
 309:			if (err)
 310:				goto out1;
 311:	
 312:			if (!rsize) {
 313:				/* Empty resident -> Non empty nonresident. */
 314:			} else if (!is_data) {
 315:				err = ntfs_sb_write_run(sbi, run, 0, data, rsize, 0);
 316:				if (err)
 317:					goto out2;
 318:			} else if (!page) {
 319:				struct address_space *mapping = ni->vfs_inode.i_mapping;
 320:				struct folio *folio;
 321:	
 322:				folio = __filemap_get_folio(
 323:					mapping, 0, FGP_LOCK | FGP_ACCESSED | FGP_CREAT,
 324:					mapping_gfp_mask(mapping));
 325:				if (IS_ERR(folio)) {
 326:					err = PTR_ERR(folio);
 327:					goto out2;
 328:				}
 329:				folio_fill_tail(folio, 0, data, rsize);
 330:				folio_mark_uptodate(folio);
 331:				folio_mark_dirty(folio);
 332:				folio_unlock(folio);
 333:				folio_put(folio);
 334:			}
 335:		}
 336:	
 337:		/* Remove original attribute. */
 338:		used -= asize;
]

156/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36922
							output: 28
							thoughts: 274
						

Thoughts:
**Analyzing `attr_make_nonresident` and the Impact of `folio_mark_dirty`**

Okay, here we go, diving into `attr_make_nonresident`. I'm focusing on that conditional block, specifically when `page` is null. Right, so we grab a folio using `__filemap_get_folio`, create it if it doesn't exist, fill it with data, and... hold on. Lines 330 and 331, let me make sure I'm following the process. `folio_mark_uptodate` then `folio_mark_dirty`. I remember seeing this pattern before, it looks pretty common.

The critical piece here is `folio_mark_dirty(folio)`. Now, I need to jog my memory. What exactly happens when we mark the folio as dirty? What effects does it have on the data and its eventual persistence to storage? I need a refresher on the precise semantics of that function. Let's head over to the kernel source and dig into `folio_mark_dirty` itself. I need to understand how this function interacts with the page cache, the dirty page lists, and ultimately, the backing storage. Let's see...



157/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:folio_mark_dirty\( PathPrefix:mm/]

Results:
map[Output:mm/filemap.c=4006=vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
--
mm/filemap.c-4024-	 */
mm/filemap.c:4025:	folio_mark_dirty(folio);
mm/filemap.c-4026-	folio_wait_stable(folio);
--
mm/folio-compat.c=42=EXPORT_SYMBOL(set_page_writeback);
mm/folio-compat.c-43-
mm/folio-compat.c:44:/* Read the comment above folio_mark_dirty() regarding required locks! */
mm/folio-compat.c-45-bool set_page_dirty(struct page *page)
mm/folio-compat.c-46-{
mm/folio-compat.c:47:	return folio_mark_dirty(page_folio(page));
mm/folio-compat.c-48-}
--
mm/gup.c=284=void unpin_user_pages_dirty_lock(struct page **pages, unsigned long npages,
--
mm/gup.c-320-			folio_lock(folio);
mm/gup.c:321:			folio_mark_dirty(folio);
mm/gup.c-322-			folio_unlock(folio);
--
mm/gup.c=354=void unpin_user_page_range_dirty_lock(struct page *page, unsigned long npages,
--
mm/gup.c-366-			folio_lock(folio);
mm/gup.c:367:			folio_mark_dirty(folio);
mm/gup.c-368-			folio_unlock(folio);
--
mm/gup.c=802=static struct page *follow_page_pte(struct vm_area_struct *vma,
--
mm/gup.c-879-		    !pte_dirty(pte) && !folio_test_dirty(folio))
mm/gup.c:880:			folio_mark_dirty(folio);
mm/gup.c-881-		/*
--
mm/huge_memory.c=2479=static void zap_huge_pmd_folio(struct mm_struct *mm, struct vm_area_struct *vma,
--
mm/huge_memory.c-2494-		if (is_present && pmd_dirty(pmdval))
mm/huge_memory.c:2495:			folio_mark_dirty(folio);
mm/huge_memory.c-2496-		if (is_present && pmd_young(pmdval) &&
--
mm/huge_memory.c=3080=static void __split_huge_pud_locked(struct vm_area_struct *vma, pud_t *pud,
--
mm/huge_memory.c-3102-	if (!folio_test_dirty(folio) && pud_dirty(old_pud))
mm/huge_memory.c:3103:		folio_mark_dirty(folio);
mm/huge_memory.c-3104-	if (!folio_test_referenced(folio) && pud_young(old_pud))
--
mm/huge_memory.c=3184=static void __split_huge_pmd_locked(struct vm_area_struct *vma, pmd_t *pmd,
--
mm/huge_memory.c-3225-			if (!folio_test_dirty(folio) && pmd_dirty(old_pmd))
mm/huge_memory.c:3226:				folio_mark_dirty(folio);
mm/huge_memory.c-3227-			if (!folio_test_referenced(folio) && pmd_young(old_pmd))
--
mm/huge_memory.c=5062=int set_pmd_migration_entry(struct page_vma_mapped_walk *pvmw,
--
mm/huge_memory.c-5115-	if (present && pmd_dirty(pmdval)) {
mm/huge_memory.c:5116:		folio_mark_dirty(folio);
mm/huge_memory.c-5117-		entry = make_migration_entry_dirty(entry);
--
mm/hugetlb.c=5198=void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
--
mm/hugetlb.c-5291-		if (huge_pte_dirty(pte))
mm/hugetlb.c:5292:			folio_mark_dirty(folio);
mm/hugetlb.c-5293-		/* Leave a uffd-wp pte marker if needed */
--
mm/hugetlb.c=5688=int hugetlb_add_to_page_cache(struct folio *folio, struct address_space *mapping,
--
mm/hugetlb.c-5708-	 */
mm/hugetlb.c:5709:	folio_mark_dirty(folio);
mm/hugetlb.c-5710-
--
mm/khugepaged.c=2242=static enum scan_result collapse_file(struct mm_struct *mm, unsigned long addr,
--
mm/khugepaged.c-2610-	if (is_shmem)
mm/khugepaged.c:2611:		folio_mark_dirty(new_folio);
mm/khugepaged.c-2612-	folio_add_lru(new_folio);
--
mm/ksm.c=1293=static int write_protect_page(struct vm_area_struct *vma, struct folio *folio,
--
mm/ksm.c-1364-		if (pte_dirty(entry))
mm/ksm.c:1365:			folio_mark_dirty(folio);
mm/ksm.c-1366-		entry = pte_mkclean(entry);
--
mm/ksm.c=1496=static int try_to_merge_one_page(struct vm_area_struct *vma,
--
mm/ksm.c-1543-			if (!folio_test_dirty(folio))
mm/ksm.c:1544:				folio_mark_dirty(folio);
mm/ksm.c-1545-			err = 0;
--
mm/memfd_luo.c=87=static int memfd_luo_preserve_folios(struct file *file,
--
mm/memfd_luo.c-176-		 */
mm/memfd_luo.c:177:		folio_mark_dirty(folio);
mm/memfd_luo.c-178-
--
mm/memfd_luo.c=417=static int memfd_luo_retrieve_folios(struct file *file,
--
mm/memfd_luo.c-469-		if (flags & MEMFD_LUO_FOLIO_DIRTY)
mm/memfd_luo.c:470:			folio_mark_dirty(folio);
mm/memfd_luo.c-471-
--
mm/memory.c=1769=static __always_inline void zap_present_folio_ptes(struct mmu_gather *tlb,
--
mm/memory.c-1780-		if (pte_dirty(ptent)) {
mm/memory.c:1781:			folio_mark_dirty(folio);
mm/memory.c-1782-			if (tlb_delay_rmap(tlb)) {
--
mm/memory.c=3838=static vm_fault_t fault_dirty_shared_page(struct vm_fault *vmf)
--
mm/memory.c-3845-
mm/memory.c:3846:	dirtied = folio_mark_dirty(folio);
mm/memory.c-3847-	VM_BUG_ON_FOLIO(folio_test_anon(folio), folio);
--
mm/migrate_device.c=245=static int migrate_vma_collect_pmd(pmd_t *pmdp,
--
mm/migrate_device.c-436-			if (pte_present(pte) && pte_dirty(pte))
mm/migrate_device.c:437:				folio_mark_dirty(folio);
mm/migrate_device.c-438-
--
mm/page-writeback.c=2636=void folio_account_cleaned(struct folio *folio, struct bdi_writeback *wb)
--
mm/page-writeback.c-2662- */
mm/page-writeback.c:2663:void __folio_mark_dirty(struct folio *folio, struct address_space *mapping,
mm/page-writeback.c-2664-			     int warn)
--
mm/page-writeback.c=2703=bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio)
--
mm/page-writeback.c-2707-
mm/page-writeback.c:2708:	__folio_mark_dirty(folio, mapping, !folio_test_private(folio));
mm/page-writeback.c-2709-
--
mm/page-writeback.c=2752=EXPORT_SYMBOL(folio_redirty_for_writepage);
--
mm/page-writeback.c-2771- */
mm/page-writeback.c:2772:bool folio_mark_dirty(struct folio *folio)
mm/page-writeback.c-2773-{
--
mm/page-writeback.c=2795=EXPORT_SYMBOL(folio_mark_dirty);
--
mm/page-writeback.c-2797-/*
mm/page-writeback.c:2798: * folio_mark_dirty() is racy if the caller has no reference against
mm/page-writeback.c-2799- * folio->mapping->host, and if the folio is unlocked.  This is because another
--
mm/page-writeback.c-2804- *
mm/page-writeback.c:2805: * In other cases, the folio should be locked before running folio_mark_dirty().
mm/page-writeback.c-2806- */
mm/page-writeback.c=2807=bool folio_mark_dirty_lock(struct folio *folio)
--
mm/page-writeback.c-2811-	folio_lock(folio);
mm/page-writeback.c:2812:	ret = folio_mark_dirty(folio);
mm/page-writeback.c-2813-	folio_unlock(folio);
--
mm/page-writeback.c=2850=EXPORT_SYMBOL(__folio_cancel_dirty);
--
mm/page-writeback.c-2859- * The ->writepage implementation will run either folio_start_writeback()
mm/page-writeback.c:2860: * or folio_mark_dirty(), at which stage we bring the folio's dirty flag
mm/page-writeback.c-2861- * and xarray dirty tag back into sync.
--
mm/page-writeback.c=2866=bool folio_clear_dirty_for_io(struct folio *folio)
--
mm/page-writeback.c-2892-		 *
mm/page-writeback.c:2893:		 * Note! Normally the "folio_mark_dirty(folio)"
mm/page-writeback.c-2894-		 * has no effect on the actual dirty bit - since
--
mm/page-writeback.c-2903-		if (folio_mkclean(folio))
mm/page-writeback.c:2904:			folio_mark_dirty(folio);
mm/page-writeback.c-2905-		/*
--
mm/page_io.c=204=int swap_writeout(struct swap_io_ctx *ctx, struct folio *folio)
--
mm/page_io.c-216-	if (ret) {
mm/page_io.c:217:		folio_mark_dirty(folio);
mm/page_io.c-218-		goto out_unlock;
--
mm/page_io.c-245-		rcu_read_unlock();
mm/page_io.c:246:		folio_mark_dirty(folio);
mm/page_io.c-247-		return AOP_WRITEPAGE_ACTIVATE;
--
mm/rmap.c=1984=static bool try_to_unmap_poisoned_hugetlb_one(struct folio *folio,
--
mm/rmap.c-2058-	if (huge_pte_dirty(pteval))
mm/rmap.c:2059:		folio_mark_dirty(folio);
mm/rmap.c-2060-
--
mm/rmap.c=2201=static bool try_to_unmap_one(struct folio *folio, struct vm_area_struct *vma,
--
mm/rmap.c-2340-			if (pte_dirty(pteval))
mm/rmap.c:2341:				folio_mark_dirty(folio);
mm/rmap.c-2342-		} else {
--
mm/rmap.c=2465=static bool try_to_migrate_one(struct folio *folio, struct vm_area_struct *vma,
--
mm/rmap.c-2625-			if (pte_dirty(pteval))
mm/rmap.c:2626:				folio_mark_dirty(folio);
mm/rmap.c-2627-			writable = pte_write(pteval);
--
mm/rmap.c-2646-			if (pte_dirty(pteval))
mm/rmap.c:2647:				folio_mark_dirty(folio);
mm/rmap.c-2648-			writable = pte_write(pteval);
--
mm/rmap.c=2869=struct page *make_device_exclusive(struct mm_struct *mm, unsigned long addr,
--
mm/rmap.c-2943-	if (pte_dirty(fw.pte))
mm/rmap.c:2944:		folio_mark_dirty(folio);
mm/rmap.c-2945-
--
mm/shmem.c=1120=static void shmem_undo_range(struct inode *inode, loff_t lstart, uoff_t lend,
--
mm/shmem.c-1177-		same_folio = lend < folio_next_pos(folio);
mm/shmem.c:1178:		folio_mark_dirty(folio);
mm/shmem.c-1179-		if (!truncate_inode_partial_folio(folio, lstart, lend)) {
--
mm/shmem.c-1191-	if (folio) {
mm/shmem.c:1192:		folio_mark_dirty(folio);
mm/shmem.c-1193-		if (!truncate_inode_partial_folio(folio, lstart, lend))
--
mm/shmem.c=1607=int shmem_writeout(struct swap_io_ctx *ctx, struct folio *folio,
--
mm/shmem.c-1751-redirty:
mm/shmem.c:1752:	folio_mark_dirty(folio);
mm/shmem.c-1753-	return AOP_WRITEPAGE_ACTIVATE;	/* Return with folio locked */
--
mm/shmem.c=2254=static int shmem_swapin_folio(struct inode *inode, pgoff_t index,
--
mm/shmem.c-2397-	swap_cache_del_folio(folio);
mm/shmem.c:2398:	folio_mark_dirty(folio);
mm/shmem.c-2399-	put_swap_device(si);
--
mm/shmem.c=2428=static int shmem_get_folio_gfp(struct inode *inode, pgoff_t index,
--
mm/shmem.c-2617- *
mm/shmem.c:2618: * If the caller modifies data in the folio, it must call folio_mark_dirty()
mm/shmem.c-2619- * before unlocking the folio to ensure that the folio is not reclaimed.
mm/shmem.c:2620: * There is no need to reserve space before calling folio_mark_dirty().
mm/shmem.c-2621- *
--
mm/shmem.c=3280=shmem_write_end(const struct kiocb *iocb, struct address_space *mapping,
--
mm/shmem.c-3296-	}
mm/shmem.c:3297:	folio_mark_dirty(folio);
mm/shmem.c-3298-	folio_unlock(folio);
--
mm/shmem.c=3623=static long shmem_fallocate(struct file *file, int mode, loff_t offset,
--
mm/shmem.c-3773-		 */
mm/shmem.c:3774:		folio_mark_dirty(folio);
mm/shmem.c-3775-		folio_unlock(folio);
--
mm/shmem.c=4050=static int shmem_symlink(struct mnt_idmap *idmap, struct inode *dir,
--
mm/shmem.c-4095-		folio_mark_uptodate(folio);
mm/shmem.c:4096:		folio_mark_dirty(folio);
mm/shmem.c-4097-		folio_unlock(folio);
--
mm/truncate.c=846=void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)
--
mm/truncate.c-865-	/*
mm/truncate.c:866:	 * See folio_clear_dirty_for_io() for details why folio_mark_dirty()
mm/truncate.c-867-	 * is needed.
--
mm/truncate.c-869-	if (folio_mkclean(folio))
mm/truncate.c:870:		folio_mark_dirty(folio);
mm/truncate.c-871-
--
mm/vmscan.c=1058=static unsigned int shrink_folio_list(struct list_head *folio_list,
--
mm/vmscan.c-1310-			 */
mm/vmscan.c:1311:			folio_mark_dirty(folio);
mm/vmscan.c-1312-		}
--
mm/vmscan.c=3514=static void walk_update_folio(struct lru_gen_mm_walk *walk, struct vm_area_struct *vma,
--
mm/vmscan.c-3524-	      !folio_test_swapcache(folio)))
mm/vmscan.c:3525:		folio_mark_dirty(folio);
mm/vmscan.c-3526-
--
mm/zswap.c=1594=int zswap_load(struct folio *folio)
--
mm/zswap.c-1638-	 */
mm/zswap.c:1639:	folio_mark_dirty(folio);
mm/zswap.c-1640-	xa_erase(tree, offset);
]

158/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 42446
							output: 31
							thoughts: 741
						

Thoughts:
**Analyzing the Folio Dirtying Process in NTFS**

Okay, let's break this down. We're looking at how a folio gets marked dirty in the NTFS file system, specifically in the context of the `attr_make_nonresident` function. The starting point is `folio_mark_dirty`, which, as we see, ultimately calls `iomap_dirty_folio`. That function, in turn, calls `ifs_alloc`. Now, here's where it gets interesting.

`ifs_alloc`, when run, first checks if the `folio` is already marked as up-to-date with `folio_test_uptodate`. If it *is* up-to-date, it does something with a bitmap: `bitmap_set(ifs->state, 0, nr_blocks)`. Now, the key is the order in which these things happen within `attr_make_nonresident`. We see that `folio_mark_uptodate` is called *before* `folio_mark_dirty`.

So, the sequence goes:
1.  `folio_fill_tail` to populate the folio with data.
2.  `folio_mark_uptodate` sets the folio as up-to-date.
3.  `folio_mark_dirty` eventually calls `iomap_dirty_folio` which calls `ifs_alloc`.

Now, if this is a *new* folio (no existing `ifs`), `ifs_alloc` *will* find the folio uptodate and initialize the bitmap accordingly. This implies that all blocks are marked uptodate.

But what if the folio *already* has an `ifs`? That's the critical question! When does a folio have an `ifs` *before* `attr_make_nonresident`? Let's trace back to `attr_make_nonresident`. It acquires a folio with `__filemap_get_folio(mapping, 0, FGP_LOCK | FGP_ACCESSED | FGP_CREAT, mapping_gfp_mask(mapping))`. If index 0 is *already* in the page cache, then the folio already has an ifs.

Why would index 0 be in the page cache? That's the next line of inquiry. We need to check the callers of `attr_make_nonresident` to understand the context and identify when this situation might arise. That's the next step to gain clarity here.



159/4 2026/09/18 01:01 tool grepper
0m Args:
map[Expression:attr_make_nonresident PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/attrib.c=160=int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run,
--
fs/ntfs3/attrib.c-248-/*
fs/ntfs3/attrib.c:249: * attr_make_nonresident
fs/ntfs3/attrib.c-250- *
--
fs/ntfs3/attrib.c-253- */
fs/ntfs3/attrib.c:254:int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
fs/ntfs3/attrib.c-255-			  struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
--
fs/ntfs3/attrib.c=382=static int attr_set_size_res(struct ntfs_inode *ni, struct ATTRIB *attr,
--
fs/ntfs3/attrib.c-400-		if (used + dsize > sbi->max_bytes_per_attr)
fs/ntfs3/attrib.c:401:			return attr_make_nonresident(ni, attr, le, mi, new_size,
fs/ntfs3/attrib.c-402-						     run, ins_attr, NULL);
--
fs/ntfs3/attrib.c=2786=int attr_force_nonresident(struct ntfs_inode *ni)
--
fs/ntfs3/attrib.c-2805-	down_write(&ni->file.run_lock);
fs/ntfs3/attrib.c:2806:	err = attr_make_nonresident(ni, attr, le, mi,
fs/ntfs3/attrib.c-2807-				    le32_to_cpu(attr->res.data_size),
--
fs/ntfs3/frecord.c=2535=int ni_write_frame(struct ntfs_inode *ni, struct page **pages,
--
fs/ntfs3/frecord.c-2571-		down_write(&ni->file.run_lock);
fs/ntfs3/frecord.c:2572:		err = attr_make_nonresident(ni, attr, le, mi,
fs/ntfs3/frecord.c-2573-					    le32_to_cpu(attr->res.data_size),
--
fs/ntfs3/ntfs_fs.h=460=int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run,
--
fs/ntfs3/ntfs_fs.h-464-			   CLST *new_len);
fs/ntfs3/ntfs_fs.h:465:int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
fs/ntfs3/ntfs_fs.h-466-			  struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
]

160/4 2026/09/18 01:01 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 44509
							output: 32
							thoughts: 30
						

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

**Finding the Origin of `attr_set_size_res`**

Okay, hold on a second! I need to understand the context of `attr_set_size_res`. I can't just jump into analyzing its implementation without knowing where it's being used. The crucial first step is figuring out where this function is actually called within the codebase. Time to identify its callers. I need to trace back from its definition to see what's triggering its execution and how it fits into the broader application flow. This is going to be key to any proper analysis.



161/4 2026/09/18 01:02 tool grepper
0m Args:
map[Expression:attr_set_size_res PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/attrib.c=254=int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
--
fs/ntfs3/attrib.c-379-/*
fs/ntfs3/attrib.c:380: * attr_set_size_res - Helper for attr_set_size().
fs/ntfs3/attrib.c-381- */
fs/ntfs3/attrib.c:382:static int attr_set_size_res(struct ntfs_inode *ni, struct ATTRIB *attr,
fs/ntfs3/attrib.c-383-			     struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
--
fs/ntfs3/attrib.c=430=int attr_set_size_ex(struct ntfs_inode *ni, enum ATTR_TYPE type,
--
fs/ntfs3/attrib.c-466-	if (!attr_b->non_res) {
fs/ntfs3/attrib.c:467:		err = attr_set_size_res(ni, attr_b, le_b, mi_b, new_size, run,
fs/ntfs3/attrib.c-468-					&attr_b);
]

162/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 45032
							output: 38
							thoughts: 41
						

Thoughts:
Okay, let's dive into this `ntfs3` buffered write situation. I'm going to start by tracing the execution path of `ntfs_file_write_iter`. I want to understand exactly what's happening within that function, specifically the buffered write scenario. It's in `fs/ntfs3/file.c`, so that's where I'll begin. This is where the core logic of writing to the file system resides, so understanding this function is key to diagnosing write performance or potential issues. I'll need to pay close attention to the data structures involved, and the conditions under which the buffered write path is taken. Let's see how this unfolds.



163/4 2026/09/18 01:02 tool read-file
0m Args:
map[File:fs/ntfs3/file.c FirstLine:1239 LineCount:80]

Results:
map[Contents:1239:	static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
1240:	{
1241:		struct file *file = iocb->ki_filp;
1242:		struct inode *inode = file_inode(file);
1243:		struct ntfs_inode *ni = ntfs_i(inode);
1244:		loff_t vbo, endbyte;
1245:		ssize_t ret, err;
1246:	
1247:		if (!inode_trylock(inode)) {
1248:			if (iocb->ki_flags & IOCB_NOWAIT)
1249:				return -EAGAIN;
1250:			inode_lock(inode);
1251:		}
1252:	
1253:		ret = check_write_restriction(inode);
1254:		if (ret)
1255:			goto out;
1256:	
1257:		if (is_compressed(ni) && (iocb->ki_flags & IOCB_DIRECT)) {
1258:			ntfs_inode_warn(inode, "direct i/o + compressed not supported");
1259:			ret = -EOPNOTSUPP;
1260:			goto out;
1261:		}
1262:	
1263:		ret = generic_write_checks(iocb, from);
1264:		if (ret <= 0)
1265:			goto out;
1266:	
1267:		err = file_modified(iocb->ki_filp);
1268:		if (err) {
1269:			ret = err;
1270:			goto out;
1271:		}
1272:	
1273:		if (WARN_ON(ni->ni_flags & NI_FLAG_COMPRESSED_MASK)) {
1274:			/* Should never be here, see ntfs_file_open(). */
1275:			ret = -EOPNOTSUPP;
1276:			goto out;
1277:		}
1278:	
1279:		vbo = iocb->ki_pos;
1280:		endbyte = vbo + ret;
1281:	
1282:		if (endbyte > inode->i_size) {
1283:			/*
1284:			 * Normal files: increase file size, allocate space.
1285:			 * Sparse/Compressed: increase file size. No space allocated.
1286:			 */
1287:			ret = ntfs_set_size(inode, endbyte);
1288:			if (ret)
1289:				goto out;
1290:		}
1291:	
1292:		if (is_compressed(ni)) {
1293:			ret = ntfs_compress_write(iocb, from);
1294:			goto out;
1295:		}
1296:	
1297:		if (vbo > ni->i_valid) {
1298:			ret = ntfs_extend_initialized_size(file, ni, vbo);
1299:			if (ret)
1300:				goto out;
1301:		}
1302:	
1303:		/* Fallback to buffered I/O if the inode does not support direct I/O. */
1304:		if (!(iocb->ki_flags & IOCB_DIRECT) ||
1305:		    !ntfs_should_use_dio(iocb, from)) {
1306:			iocb->ki_flags &= ~IOCB_DIRECT;
1307:	
1308:			ret = iomap_file_buffered_write(iocb, from, &ntfs_iomap_ops,
1309:							&ntfs_iomap_folio_ops, NULL);
1310:			inode_unlock(inode);
1311:	
1312:			if (likely(ret > 0))
1313:				ret = generic_write_sync(iocb, ret);
1314:	
1315:			return ret;
1316:		}
1317:	
1318:		if (ni->file.run_da.count) {
]

164/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 46424
							output: 38
							thoughts: 196
						

Thoughts:
**Deconstructing NTFS File Writing**

Okay, let's break down this `ntfs_file_write_iter` function. I see a few key decision points here. First, the code checks if the write extends beyond the current file size, and if so, calls `ntfs_set_size`. Makes sense, we need to adjust the file's known extent. Then, if the file is compressed, it calls `ntfs_compress_write`. *That's* the interesting bit – I need to understand what's happening there with the compression. Then, there is a check for whether the logical block offset goes beyond the valid data, which calls `ntfs_extend_initialized_size`. Finally, if none of those apply, it falls back to the buffered write path, using `iomap_file_buffered_write`.

But, back to that compression path... what's really going on in `ntfs_compress_write`? I need to delve into `fs/ntfs3/file.c` and figure out how the compression algorithm is implemented and, most importantly, how it interacts with the file system metadata. How does it handle the on-disk format and block allocation? That's key for understanding performance and any potential gotchas. I need to understand what "from" is in relation to this, and how it is related to the compression algorithms.



165/4 2026/09/18 01:02 tool read-file
0m Args:
map[File:fs/ntfs3/file.c FirstLine:984 LineCount:100]

Results:
map[Contents: 984:	static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
 985:	{
 986:		int err;
 987:		struct file *file = iocb->ki_filp;
 988:		size_t count = iov_iter_count(from);
 989:		loff_t pos = iocb->ki_pos;
 990:		struct inode *inode = file_inode(file);
 991:		loff_t i_size = i_size_read(inode);
 992:		struct address_space *mapping = inode->i_mapping;
 993:		struct ntfs_inode *ni = ntfs_i(inode);
 994:		u64 valid = ni->i_valid;
 995:		struct ntfs_sb_info *sbi = ni->mi.sbi;
 996:		struct page **pages = NULL;
 997:		struct folio *folio;
 998:		size_t written = 0;
 999:		u8 frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits;
1000:		u32 frame_size = 1u << frame_bits;
1001:		u32 pages_per_frame = frame_size >> PAGE_SHIFT;
1002:		u32 ip, off;
1003:		CLST frame;
1004:		u64 frame_vbo;
1005:		pgoff_t index;
1006:		bool frame_uptodate;
1007:	
1008:		if (frame_size < PAGE_SIZE) {
1009:			/*
1010:			 * frame_size == 8K if cluster 512
1011:			 * frame_size == 64K if cluster 4096
1012:			 */
1013:			ntfs_inode_warn(inode, "page size is bigger than frame size");
1014:			return -EOPNOTSUPP;
1015:		}
1016:	
1017:		pages = kmalloc_objs(struct page *, pages_per_frame, GFP_NOFS);
1018:		if (!pages)
1019:			return -ENOMEM;
1020:	
1021:		err = file_remove_privs(file);
1022:		if (err)
1023:			goto out;
1024:	
1025:		err = file_update_time(file);
1026:		if (err)
1027:			goto out;
1028:	
1029:		/* Zero range [valid : pos). */
1030:		while (valid < pos) {
1031:			CLST lcn, clen;
1032:	
1033:			frame = valid >> frame_bits;
1034:			frame_vbo = valid & ~(u64)(frame_size - 1);
1035:			off = valid & (frame_size - 1);
1036:	
1037:			err = attr_data_get_block(ni, frame << NTFS_LZNT_CUNIT, 1, &lcn,
1038:						  &clen, NULL, false, NULL, false);
1039:			if (err)
1040:				goto out;
1041:	
1042:			if (lcn == SPARSE_LCN) {
1043:				ni->i_valid = valid =
1044:					frame_vbo + ((u64)clen << sbi->cluster_bits);
1045:				continue;
1046:			}
1047:	
1048:			/* Load full frame. */
1049:			err = ntfs_get_frame_pages(mapping, frame_vbo >> PAGE_SHIFT,
1050:						   pages, pages_per_frame,
1051:						   &frame_uptodate);
1052:			if (err)
1053:				goto out;
1054:	
1055:			if (!frame_uptodate && off) {
1056:				err = ni_read_frame(ni, frame_vbo, pages,
1057:						    pages_per_frame, 0);
1058:				if (err) {
1059:					for (ip = 0; ip < pages_per_frame; ip++) {
1060:						folio = page_folio(pages[ip]);
1061:						folio_unlock(folio);
1062:						folio_put(folio);
1063:					}
1064:					goto out;
1065:				}
1066:			}
1067:	
1068:			ip = off >> PAGE_SHIFT;
1069:			off = offset_in_page(valid);
1070:			for (; ip < pages_per_frame; ip++, off = 0) {
1071:				folio = page_folio(pages[ip]);
1072:				folio_zero_segment(folio, off, PAGE_SIZE);
1073:				flush_dcache_folio(folio);
1074:				folio_mark_uptodate(folio);
1075:			}
1076:	
1077:			ni_lock(ni);
1078:			err = ni_write_frame(ni, pages, pages_per_frame);
1079:			ni_unlock(ni);
1080:	
1081:			for (ip = 0; ip < pages_per_frame; ip++) {
1082:				folio = page_folio(pages[ip]);
1083:				folio_mark_uptodate(folio);
]

166/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 48502
							output: 38
							thoughts: 16
						

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

**Diving into `ntfs_compress_write`**

Alright, time to dig deeper into the `ntfs_compress_write` function. That's the one we need to really understand, and probably where the core of the compression logic resides. We've got to see how it interacts with the underlying data structures, how it handles the allocation of compressed clusters, and, crucially, how it manages the various error conditions that can crop up. I'm expecting to see calls to the compression libraries - probably Zlib or something similar, maybe even a custom implementation if we're dealing with something optimized for NTFS. Beyond that, I need to see how they're handling write failures and retries, the implications of partial compression, the management of the resident attribute, the handling of sparse files or extended attributes, and of course all of that with security context, permissions, and so on. We can't neglect the transaction and logging aspects, ensuring data integrity is never compromised during a compression operation. I want to see how they're dealing with cluster fragmentation, and the general allocation strategy. This one is where the rubber meets the road. Let's get to it.



167/4 2026/09/18 01:02 tool read-file
0m Args:
map[File:fs/ntfs3/file.c FirstLine:1085 LineCount:90]

Results:
map[Contents:1085:				folio_put(folio);
1086:			}
1087:	
1088:			if (err)
1089:				goto out;
1090:	
1091:			ni->i_valid = valid = frame_vbo + frame_size;
1092:		}
1093:	
1094:		/* Copy user data [pos : pos + count). */
1095:		while (count) {
1096:			size_t copied, bytes;
1097:	
1098:			off = pos & (frame_size - 1);
1099:			bytes = frame_size - off;
1100:			if (bytes > count)
1101:				bytes = count;
1102:	
1103:			frame_vbo = pos & ~(u64)(frame_size - 1);
1104:			index = frame_vbo >> PAGE_SHIFT;
1105:	
1106:			if (unlikely(fault_in_iov_iter_readable(from, bytes))) {
1107:				err = -EFAULT;
1108:				goto out;
1109:			}
1110:	
1111:			/* Load full frame. */
1112:			err = ntfs_get_frame_pages(mapping, index, pages,
1113:						   pages_per_frame, &frame_uptodate);
1114:			if (err)
1115:				goto out;
1116:	
1117:			if (!frame_uptodate) {
1118:				loff_t to = pos + bytes;
1119:	
1120:				if (off || (to < i_size && (to & (frame_size - 1)))) {
1121:					err = ni_read_frame(ni, frame_vbo, pages,
1122:							    pages_per_frame, 0);
1123:					if (err) {
1124:						for (ip = 0; ip < pages_per_frame;
1125:						     ip++) {
1126:							folio = page_folio(pages[ip]);
1127:							folio_unlock(folio);
1128:							folio_put(folio);
1129:						}
1130:						goto out;
1131:					}
1132:				}
1133:			}
1134:	
1135:			WARN_ON(!bytes);
1136:			copied = 0;
1137:			ip = off >> PAGE_SHIFT;
1138:			off = offset_in_page(pos);
1139:	
1140:			/* Copy user data to pages. */
1141:			for (;;) {
1142:				size_t cp, tail = PAGE_SIZE - off;
1143:	
1144:				folio = page_folio(pages[ip]);
1145:				cp = copy_folio_from_iter_atomic(
1146:					folio, off, min(tail, bytes), from);
1147:				flush_dcache_folio(folio);
1148:	
1149:				copied += cp;
1150:				bytes -= cp;
1151:				if (!bytes || !cp)
1152:					break;
1153:	
1154:				if (cp < tail) {
1155:					off += cp;
1156:				} else {
1157:					ip++;
1158:					off = 0;
1159:				}
1160:			}
1161:	
1162:			ni_lock(ni);
1163:			err = ni_write_frame(ni, pages, pages_per_frame);
1164:			ni_unlock(ni);
1165:	
1166:			for (ip = 0; ip < pages_per_frame; ip++) {
1167:				folio = page_folio(pages[ip]);
1168:				folio_clear_dirty(folio);
1169:				folio_mark_uptodate(folio);
1170:				folio_unlock(folio);
1171:				folio_put(folio);
1172:			}
1173:	
1174:			if (err)
]

168/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 50010
							output: 33
							thoughts: 61
						

Thoughts:
**Diving into NTFS Compression**

Okay, let's take a look at this `ntfs_compress_write` function. Interesting. Now, hold on, how exactly does this function manage to get its hands on those `pages` it needs for the compression process? Aha! It calls `ntfs_get_frame_pages`. Right, so that's the key. Let's dig into `ntfs_get_frame_pages` and see what's actually happening under the hood there. Time to trace the flow and understand how the data gets prepped for compression.



169/4 2026/09/18 01:02 tool grepper
0m Args:
map[Expression:ntfs_get_frame_pages PathPrefix:fs/ntfs3]

Results:
map[Output:fs/ntfs3/file.c=922=static ssize_t ntfs_file_splice_read(struct file *file, loff_t *ppos,
--
fs/ntfs3/file.c-942-/*
fs/ntfs3/file.c:943: * ntfs_get_frame_pages
fs/ntfs3/file.c-944- *
--
fs/ntfs3/file.c-946- */
fs/ntfs3/file.c:947:static int ntfs_get_frame_pages(struct address_space *mapping, pgoff_t index,
fs/ntfs3/file.c-948-				struct page **pages, u32 pages_per_frame,
--
fs/ntfs3/file.c=984=static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
--
fs/ntfs3/file.c-1048-		/* Load full frame. */
fs/ntfs3/file.c:1049:		err = ntfs_get_frame_pages(mapping, frame_vbo >> PAGE_SHIFT,
fs/ntfs3/file.c-1050-					   pages, pages_per_frame,
--
fs/ntfs3/file.c-1111-		/* Load full frame. */
fs/ntfs3/file.c:1112:		err = ntfs_get_frame_pages(mapping, index, pages,
fs/ntfs3/file.c-1113-					   pages_per_frame, &frame_uptodate);
]

170/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 50651
							output: 37
							thoughts: 26
						

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

**Diving into `ntfs_get_frame_pages`**

Okay, time to dissect `ntfs_get_frame_pages` within the NTFS3 file system code, specifically in `fs/ntfs3/file.c`. I need to understand how the driver handles page-level retrieval of data frames. This function likely sits at the core of the file I/O path, and a deep understanding of its logic is crucial for performance analysis, debugging potential fragmentation issues, or even optimizing the block allocation strategies if it touches on those aspects. I'm assuming it interacts directly with the NTFS metadata structures—perhaps MFT entries or attribute lists—to locate the physical blocks corresponding to the requested data. I'm keen to see how it manages potential sparse files and deals with extents. It will be important to grasp how it interacts with the underlying page cache. I'll be looking for any signs of direct I/O versus buffered I/O, how the driver handles different frame sizes, and if there are any optimizations for sequential reads or writes. My immediate interest centers around its interplay with the virtual memory system, ensuring that page faults are handled efficiently and data gets mapped to user space in a timely fashion.



171/4 2026/09/18 01:02 tool read-file
0m Args:
map[File:fs/ntfs3/file.c FirstLine:942 LineCount:45]

Results:
map[Contents: 942:	/*
 943:	 * ntfs_get_frame_pages
 944:	 *
 945:	 * Return: Array of locked pages.
 946:	 */
 947:	static int ntfs_get_frame_pages(struct address_space *mapping, pgoff_t index,
 948:					struct page **pages, u32 pages_per_frame,
 949:					bool *frame_uptodate)
 950:	{
 951:		gfp_t gfp_mask = mapping_gfp_mask(mapping);
 952:		u32 npages;
 953:	
 954:		*frame_uptodate = true;
 955:	
 956:		for (npages = 0; npages < pages_per_frame; npages++, index++) {
 957:			struct folio *folio;
 958:	
 959:			folio = __filemap_get_folio(mapping, index,
 960:						    FGP_LOCK | FGP_ACCESSED | FGP_CREAT,
 961:						    gfp_mask | __GFP_ZERO);
 962:			if (IS_ERR(folio)) {
 963:				while (npages--) {
 964:					folio = page_folio(pages[npages]);
 965:					folio_unlock(folio);
 966:					folio_put(folio);
 967:				}
 968:	
 969:				return -ENOMEM;
 970:			}
 971:	
 972:			if (!folio_test_uptodate(folio))
 973:				*frame_uptodate = false;
 974:	
 975:			pages[npages] = &folio->page;
 976:		}
 977:	
 978:		return 0;
 979:	}
 980:	
 981:	/*
 982:	 * ntfs_compress_write - Helper for ntfs_file_write_iter() (compressed files).
 983:	 */
 984:	static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
 985:	{
 986:		int err;
]

172/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 51623
							output: 34
							thoughts: 1776
						

Thoughts:
**Analyzing Potential Data Consistency Issues in NTFS3 with IOMAP**

Okay, let's break this down systematically. The user's bug report highlights a warning triggered during NTFS3 unmount, potentially due to a discrepancy between `folio_test_uptodate(folio)` and `ifs_is_fully_uptodate(folio, ifs)`. My immediate focus is on understanding the root cause of this mismatch within the context of NTFS3's interaction with the IOMAP infrastructure.

First, I need to know what the reproducer is doing exactly, including the role of `cpu.stat`, so that I can recreate the conditions myself and fully understand them. I need to know if it is a standard file or a special file. More importantly, is the file compressed or resident.

The core concern revolves around direct calls to `folio_mark_uptodate(folio)` within NTFS3, particularly in functions like `ntfs_compress_write` and `attr_make_nonresident`. If these calls bypass the IOMAP's state management (`ifs`), a desynchronization can occur. Remember that `iomap` has a folio state `ifs` associated with the folio.

My strategy involves a deep dive into the IOMAP code, specifically looking at how `ifs` is used. I'll need to identify every place where `ifs` is accessed, checked, and modified to trace data consistency issues.

Specifically, I need to examine `iomap_folio_mark_uptodate`, which is exported and seems to be the intended method for marking folios as uptodate when using IOMAP for buffered I/O. I'll meticulously review the `iomap_set_range_uptodate` function, paying close attention to its logic and how it interacts with the `ifs` structure, particularly the `state_lock` and the `read_bytes_pending` flag.

I see that `iomap_set_range_uptodate` calls `ifs_set_range_uptodate`, which is crucial. I also see that `ifs` is used in several places: `ifs_is_fully_uptodate`, `ifs_next_uptodate_block`, and `ifs_next_nonuptodate_block`. I will check where these are called.

The `ifs_free` function includes a `WARN_ON_ONCE` check that might be the key to the warning. This check compares `ifs_is_fully_uptodate` with `folio_test_uptodate`. The key here is to find the condition under which they are different, and then check how it can lead to memory corruption, use-after-free, or information leak.

Finally, the `iomap_adjust_read_range` function, utilizing the `ifs_next_uptodate_block` and `ifs_next_nonuptodate_block` functions, is particularly interesting. I'll analyze how it adjusts the read range based on the IOMAP state and, in conjunction with the caller of it, whether it can expose uninitialized memory if the state of `ifs` is not updated correctly.



173/4 2026/09/18 01:02 tool grepper
0m Args:
map[Expression:iomap_adjust_read_range PathPrefix:fs/iomap]

Results:
map[Output:fs/iomap/buffered-io.c=303=static size_t iomap_bytes_to_truncate(loff_t end_pos, unsigned block_bits,
--
fs/iomap/buffered-io.c-317- */
fs/iomap/buffered-io.c:318:static void iomap_adjust_read_range(struct inode *inode, struct folio *folio,
fs/iomap/buffered-io.c-319-		loff_t *pos, loff_t length, size_t *offp, size_t *lenp)
--
fs/iomap/buffered-io.c=557=static int iomap_read_folio_iter(struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-580-	while (length) {
fs/iomap/buffered-io.c:581:		iomap_adjust_read_range(iter->inode, folio, &pos, length, &poff,
fs/iomap/buffered-io.c-582-				&plen);
--
fs/iomap/buffered-io.c=875=static int __iomap_write_begin(const struct iomap_iter *iter,
--
fs/iomap/buffered-io.c-906-	do {
fs/iomap/buffered-io.c:907:		iomap_adjust_read_range(iter->inode, folio, &block_start,
fs/iomap/buffered-io.c-908-				block_end - block_start, &poff, &plen);
]

174/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 54533
							output: 39
							thoughts: 53
						

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

**Diving into iomap_read_folio_iter and __iomap_write_begin**

Right, so I need to refresh my memory on the data flow here. Let's start with `iomap_read_folio_iter`. I'm going to focus specifically on that function – I'll start by checking around line 570 to 600. That should give me a good handle on how it's iterating and handling the read process, which, considering my expertise, should be enough to start gaining some understanding. Now I need to check __iomap_write_begin and its interactions.



175/4 2026/09/18 01:02 tool read-file
0m Args:
map[File:fs/iomap/buffered-io.c FirstLine:560 LineCount:45]

Results:
map[Contents: 560:		const struct iomap *iomap = &iter->iomap;
 561:		loff_t pos = iter->pos;
 562:		loff_t length = iomap_length(iter);
 563:		struct folio *folio = ctx->cur_folio;
 564:		size_t folio_len = folio_size(folio);
 565:		struct iomap_folio_state *ifs;
 566:		size_t poff, plen;
 567:		loff_t pos_diff;
 568:		int ret;
 569:	
 570:		if (iomap->type == IOMAP_INLINE) {
 571:			ret = iomap_read_inline_data(iter, folio);
 572:			if (ret)
 573:				return ret;
 574:			return iomap_iter_advance(iter, length);
 575:		}
 576:	
 577:		ifs = ifs_alloc(iter->inode, folio, iter->flags);
 578:	
 579:		length = min_t(loff_t, length, folio_len - offset_in_folio(folio, pos));
 580:		while (length) {
 581:			iomap_adjust_read_range(iter->inode, folio, &pos, length, &poff,
 582:					&plen);
 583:	
 584:			pos_diff = pos - iter->pos;
 585:			if (WARN_ON_ONCE(pos_diff + plen > length))
 586:				return -EIO;
 587:	
 588:			ret = iomap_iter_advance(iter, pos_diff);
 589:			if (ret)
 590:				return ret;
 591:	
 592:			if (plen == 0)
 593:				return 0;
 594:	
 595:			/*
 596:			 * Handling of fsverity "holes". We hit this for two case:
 597:			 *   1. No need to go further, the hole after fsverity
 598:			 *	descriptor is the end of the fsverity metadata.
 599:			 *
 600:			 *   2. This folio contains merkle tree blocks which need to be
 601:			 *	synthesized. If we already have fsverity info (ctx->vi)
 602:			 *	synthesize these blocks.
 603:			 */
 604:			if ((iomap->flags & IOMAP_F_FSVERITY) &&
]

176/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 55494
							output: 34
							thoughts: 59
						

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

**Deconstructing the I/O Path**

Okay, hold on a second. Before I dive into `iomap_read_folio_iter`, I need to ground myself. Let's step back and understand what's happening at the *very* start of this read process. What's the fundamental building block? That means I need to zoom in on `iomap_read_folio` first. I'm pretty sure that's the key function called *before* the iterator stuff. Time to crack open `fs/iomap/buffered-io.c` and refresh my memory of its core purpose and any potential implications for the higher-level iteration. Let's see how `iomap_read_folio` lays the groundwork for the more complex iterative reads.



177/4 2026/09/18 01:02 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:int iomap_read_folio\( PathPrefix:fs/iomap]

Results:
map[Output:]

178/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 55782
							output: 32
							thoughts: 16
						

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

**Investigating `iomap_read_folio`**

Alright, let's dive into this `iomap_read_folio` function. I need to refresh my memory on the exact semantics. My initial hunch is it's handling a folio read within the I/O mapping layer, but specifics are key. Let me quickly pull up the definition, probably in the core I/O code, likely under the block or file system sections of the kernel source. I'm assuming it handles things like mapping the folio to the underlying storage, issuing the I/O requests, and possibly managing error handling or caching. The fact that it's `_folio` suggests it's working at the folio granularity, likely optimizing for larger I/O operations and coalescing requests. I'm also curious about its relationship to other related functions like `iomap_write_folio` and whether there are any significant differences in their implementations. Knowing the precise data flow through this function is key to understanding performance implications, potential bottlenecks, and how to debug I/O-related issues. I'll need to pay close attention to the lock usage and any interaction with page cache, and block device driver callbacks. Time to get to the code.



179/4 2026/09/18 01:02 tool grepper
0m Args:
map[Expression:iomap_read_folio PathPrefix:fs/iomap]

Results:
map[Output:fs/iomap/bio.c=81=void iomap_bio_submit_read_endio(const struct iomap_iter *iter,
fs/iomap/bio.c:82:		struct iomap_read_folio_ctx *ctx, bio_end_io_t end_io)
fs/iomap/bio.c-83-{
--
fs/iomap/bio.c=95=static void iomap_bio_submit_read(const struct iomap_iter *iter,
fs/iomap/bio.c:96:		struct iomap_read_folio_ctx *ctx)
fs/iomap/bio.c-97-{
--
fs/iomap/bio.c-100-
fs/iomap/bio.c:101:static struct bio_set *iomap_read_bio_set(struct iomap_read_folio_ctx *ctx)
fs/iomap/bio.c-102-{
--
fs/iomap/bio.c=108=static void iomap_read_alloc_bio(const struct iomap_iter *iter,
fs/iomap/bio.c:109:		struct iomap_read_folio_ctx *ctx, size_t plen)
fs/iomap/bio.c-110-{
--
fs/iomap/bio.c=146=int iomap_bio_read_folio_range(const struct iomap_iter *iter,
fs/iomap/bio.c:147:		struct iomap_read_folio_ctx *ctx, size_t plen)
fs/iomap/bio.c-148-{
--
fs/iomap/buffered-io.c=510=static void iomap_read_end(struct folio *folio, size_t bytes_submitted)
--
fs/iomap/buffered-io.c-556-
fs/iomap/buffered-io.c:557:static int iomap_read_folio_iter(struct iomap_iter *iter,
fs/iomap/buffered-io.c:558:		struct iomap_read_folio_ctx *ctx, size_t *bytes_submitted)
fs/iomap/buffered-io.c-559-{
--
fs/iomap/buffered-io.c-650-
fs/iomap/buffered-io.c:651:void iomap_read_folio(const struct iomap_ops *ops,
fs/iomap/buffered-io.c:652:		struct iomap_read_folio_ctx *ctx, void *private)
fs/iomap/buffered-io.c-653-{
--
fs/iomap/buffered-io.c-675-	while ((ret = iomap_iter(&iter, ops)) > 0) {
fs/iomap/buffered-io.c:676:		iter.status = iomap_read_folio_iter(&iter, ctx,
fs/iomap/buffered-io.c-677-				&bytes_submitted);
--
fs/iomap/buffered-io.c-684-}
fs/iomap/buffered-io.c:685:EXPORT_SYMBOL_GPL(iomap_read_folio);
fs/iomap/buffered-io.c-686-
fs/iomap/buffered-io.c=687=static int iomap_readahead_iter(struct iomap_iter *iter,
fs/iomap/buffered-io.c:688:		struct iomap_read_folio_ctx *ctx, size_t *cur_bytes_submitted)
fs/iomap/buffered-io.c-689-{
--
fs/iomap/buffered-io.c-703-		}
fs/iomap/buffered-io.c:704:		ret = iomap_read_folio_iter(iter, ctx, cur_bytes_submitted);
fs/iomap/buffered-io.c-705-		if (ret)
--
fs/iomap/buffered-io.c=728=void iomap_readahead(const struct iomap_ops *ops,
fs/iomap/buffered-io.c:729:		struct iomap_read_folio_ctx *ctx, void *private)
fs/iomap/buffered-io.c-730-{
]

180/4 2026/09/18 01:02 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 50833
							output: 1011
							thoughts: 3531
						

Thoughts:
**Analysis of the iomap and ntfs3 uptodate state mismatch**

Okay, here's my understanding of the issue, synthesized from the provided context. I've broken it down into components, just to make sure I've got it right.

The core problem is a discrepancy between two indicators of a folio's data status in the page cache: `folio_test_uptodate(folio)` and `ifs_is_fully_uptodate(folio, ifs)`. The `ifs` structure, which stands for `iomap_folio_state`, is used by iomap to track the uptodate status of individual blocks within a folio, particularly when the filesystem block size is smaller than the page size (i.e., multi-page folios).

Here's the mechanism causing the problem:
1.  **iomap's Expectation**: iomap expects these two states to be synchronized. When all sub-blocks within an `ifs` are uptodate, iomap calls `folio_mark_uptodate(folio)`, which sets the `PG_uptodate` flag.
2.  **The Mismatch**: `ntfs3` sometimes directly calls `folio_mark_uptodate(folio)` without going through iomap's functions that update the `ifs->state` bitmap (e.g. not calling `iomap_set_range_uptodate` or similar). This can happen, for example, during operations like converting resident attributes to non-resident, or when compressing data. Because of this, `folio_test_uptodate(folio)` becomes true (the entire folio is marked as "uptodate"), but `ifs_is_fully_uptodate(folio, ifs)` remains false, as the individual block bitmaps inside `ifs->state` were not updated.
3.  **The Warning**: This discrepancy is detected by `ifs_free` (which is called, for example, during unmount). `ifs_free` performs a check `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio))`, which triggers a warning when the states are inconsistent, as they are supposed to be kept consistent.

Now, about the consequences:

1.  **Memory Corruption, Use-After-Free, or Wild Dereferences:** I'm confident there are none of these.
    *   The `ifs` structure is correctly managed as part of the folio's private data, allocated and deallocated with the folio. The `kfree` in `ifs_free` is safe, the pointer is valid, and there are no double frees, or use-after-free conditions.
    *   The state mismatch itself doesn't corrupt memory pointers or buffer lengths. The `ifs->state` bitmap indexes are bounded by the valid block indices within the folio.

2.  **Information Leak:** The situation could *potentially* lead to an information leak, *depending* on how the filesystem uses `folio_mark_uptodate`.
    *   If `folio_test_uptodate` is set, and if the generic page cache reads via filemap, it bypasses I/O, assuming the entire folio is valid. It will return whatever is in the folio.
    *   If `ntfs3` sets the folio uptodate *before* the entire folio has been initialized (e.g., if there's uninitialized kernel memory remaining in part of the folio), then the user might read that uninitialized memory. However, the inconsistency between the iomap and folio state is not the direct cause, but rather it indicates a bug in ntfs3 code marking a folio uptodate prematurely. I've also noted that in the examples in ntfs_compress_write or attr_make_nonresident, `ntfs3` appears to zero-fill the folio before marking it uptodate.

In summary, the root cause is a state bookkeeping inconsistency. It causes a warning, but doesn't lead to memory safety issues. The potential for an information leak depends on whether the filesystem driver has correctly initialized the folio before calling `folio_mark_uptodate`. The warning is therefore an important indication of the bug and the synchronization needs improvement, but it is a "benign" issue, so to speak.



181/4 2026/09/18 01:03 tool set-results
0m Args:
map[Answer:Based on the analysis of `fs/iomap/buffered-io.c` and `fs/ntfs3/`:

### 1. Mechanism Behind the State Mismatch
In iomap, when the filesystem block size is smaller than the folio size (`i_blocks_per_folio(inode, folio) > 1`), an `iomap_folio_state` (`ifs`) is attached to `folio->private`.
- `ifs->state` maintains per-block uptodate bits (range `[0, nr_blocks)`) and dirty bits (range `[nr_blocks, 2 * nr_blocks)`).
- When iomap marks sub-block ranges uptodate (e.g., via `ifs_set_range_uptodate()`), it evaluates `ifs_is_fully_uptodate()` (`bitmap_full(ifs->state, nr_blocks)`). If all blocks are uptodate, iomap sets the folio-level uptodate flag with `folio_mark_uptodate(folio)`.
- If a folio already has an `ifs` attached (e.g., from prior buffered I/O, partial reads, or write preparations) and `ntfs3` subsequently calls `folio_mark_uptodate(folio)` directly (bypassing `iomap_set_range_uptodate()` / `iomap_folio_mark_uptodate()`), only the folio-level page cache flag is updated. The per-block bits in `ifs->state` remain clear for the unupdated blocks.
- Later, when the folio is evicted, released, or invalidated (e.g., during file close, truncation, or unmount via `iomap_release_folio` or `iomap_invalidate_folio`), `ifs_free()` checks:
  `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`
  Since `folio_test_uptodate(folio)` is true but `ifs_is_fully_uptodate(folio, ifs)` is false, the warning fires.

### 2. Memory Corruption, Use-After-Free, or Wild Dereferences
- **No Wild Dereferences or Out-of-Bounds Access:** `ifs` is allocated as a flex-array struct sized strictly for `2 * nr_blocks` bits. Bitmap operations are bound to `nr_blocks`. A boolean difference between `ifs_is_fully_uptodate` and `folio_test_uptodate` does not alter array lengths, pointer offsets, or struct bounds.
- **No Use-After-Free or Double Free:** In `ifs_free()`, `folio_detach_private(folio)` clears `folio->private` and the private flag atomically before `kfree(ifs)` is executed. The lifecycle of `ifs` is strictly tied to `folio->private`, and the warning does not alter the deallocation path.
- **No Memory Corruption:** The discrepancy is purely a high-level state tracking inconsistency between the page cache flag and the sub-block bitmap.

### 3. Information Leak / Uninitialized Memory
- The `ifs` bitmap mismatch in itself does not cause an information leak or expose uninitialized kernel memory.
- If `folio_test_uptodate(folio)` is set to true, the generic page cache read paths (`filemap_read`, page fault handlers) consider the folio valid and will not issue disk I/O to populate it.
- Whether stale or uninitialized data could reach userspace depends entirely on whether the `ntfs3` path calling `folio_mark_uptodate()` actually initialized the folio content (e.g., `attr_make_nonresident()` uses `folio_fill_tail()` to zero unwritten space, and `ntfs_compress_write()` zeroes segments). As long as the memory backing the folio was zeroed or populated, no uninitialized kernel heap/slab memory is exposed.

### Summary
The warning is an invariant check indicating that a caller updated folio uptodate state outside of the iomap sub-block state machine. It does not cause wild dereferences, use-after-free, or memory corruption, and in this path behaves as a harmless state bookkeeping mismatch that triggers a warning on deallocation.

*(Caveats/Unverified: The exact call chain in `ntfs3` triggering the reproducer was not uniquely traced down to whether it occurred in `attr_make_nonresident`, `ntfs_compress_write`, or another resident/nonresident conversion path).*]

Results:
map[Answer:Based on the analysis of `fs/iomap/buffered-io.c` and `fs/ntfs3/`:

### 1. Mechanism Behind the State Mismatch
In iomap, when the filesystem block size is smaller than the folio size (`i_blocks_per_folio(inode, folio) > 1`), an `iomap_folio_state` (`ifs`) is attached to `folio->private`.
- `ifs->state` maintains per-block uptodate bits (range `[0, nr_blocks)`) and dirty bits (range `[nr_blocks, 2 * nr_blocks)`).
- When iomap marks sub-block ranges uptodate (e.g., via `ifs_set_range_uptodate()`), it evaluates `ifs_is_fully_uptodate()` (`bitmap_full(ifs->state, nr_blocks)`). If all blocks are uptodate, iomap sets the folio-level uptodate flag with `folio_mark_uptodate(folio)`.
- If a folio already has an `ifs` attached (e.g., from prior buffered I/O, partial reads, or write preparations) and `ntfs3` subsequently calls `folio_mark_uptodate(folio)` directly (bypassing `iomap_set_range_uptodate()` / `iomap_folio_mark_uptodate()`), only the folio-level page cache flag is updated. The per-block bits in `ifs->state` remain clear for the unupdated blocks.
- Later, when the folio is evicted, released, or invalidated (e.g., during file close, truncation, or unmount via `iomap_release_folio` or `iomap_invalidate_folio`), `ifs_free()` checks:
  `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`
  Since `folio_test_uptodate(folio)` is true but `ifs_is_fully_uptodate(folio, ifs)` is false, the warning fires.

### 2. Memory Corruption, Use-After-Free, or Wild Dereferences
- **No Wild Dereferences or Out-of-Bounds Access:** `ifs` is allocated as a flex-array struct sized strictly for `2 * nr_blocks` bits. Bitmap operations are bound to `nr_blocks`. A boolean difference between `ifs_is_fully_uptodate` and `folio_test_uptodate` does not alter array lengths, pointer offsets, or struct bounds.
- **No Use-After-Free or Double Free:** In `ifs_free()`, `folio_detach_private(folio)` clears `folio->private` and the private flag atomically before `kfree(ifs)` is executed. The lifecycle of `ifs` is strictly tied to `folio->private`, and the warning does not alter the deallocation path.
- **No Memory Corruption:** The discrepancy is purely a high-level state tracking inconsistency between the page cache flag and the sub-block bitmap.

### 3. Information Leak / Uninitialized Memory
- The `ifs` bitmap mismatch in itself does not cause an information leak or expose uninitialized kernel memory.
- If `folio_test_uptodate(folio)` is set to true, the generic page cache read paths (`filemap_read`, page fault handlers) consider the folio valid and will not issue disk I/O to populate it.
- Whether stale or uninitialized data could reach userspace depends entirely on whether the `ntfs3` path calling `folio_mark_uptodate()` actually initialized the folio content (e.g., `attr_make_nonresident()` uses `folio_fill_tail()` to zero unwritten space, and `ntfs_compress_write()` zeroes segments). As long as the memory backing the folio was zeroed or populated, no uninitialized kernel heap/slab memory is exposed.

### Summary
The warning is an invariant check indicating that a caller updated folio uptodate state outside of the iomap sub-block state machine. It does not cause wild dereferences, use-after-free, or memory corruption, and in this path behaves as a harmless state bookkeeping mismatch that triggers a warning on deallocation.

*(Caveats/Unverified: The exact call chain in `ntfs3` triggering the reproducer was not uniquely traced down to whether it occurred in `attr_make_nonresident`, `ntfs_compress_write`, or another resident/nonresident conversion path).*]

182/2 2026/09/18 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 86190
							output: 39
							thoughts: 0
						

183/2 2026/09/18 01:03 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_fs_type]

Results:
map[SourceCode:1947:	// clang-format off
1948:	static struct file_system_type ntfs_fs_type = {
1949:		.owner			= THIS_MODULE,
1950:		.name			= "ntfs3",
1951:		.init_fs_context	= ntfs_init_fs_context,
1952:		.parameters		= ntfs_fs_parameters,
1953:		.kill_sb		= ntfs3_kill_sb,
1954:		.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
1955:	};
 SourceFile:fs/ntfs3/super.c]

184/2 2026/09/18 01:03 llm expert-compressor
0m Model:
gemini-3.8-flash

Reply:
### Workspace & Investigation Summary

#### 1. Bug Summary & Call Trace
- **Bug Warning:**
  ```text
  ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)
  WARNING: fs/iomap/buffered-io.c:295 at ifs_free+0x34a/0x410 fs/iomap/buffered-io.c:294, CPU#0: syz-executor344/5612
  ```
- **Call Trace:**
  ```text
  folio_invalidate mm/truncate.c:140 [inline]
  truncate_cleanup_folio+0xcb/0x190 mm/truncate.c:160
  truncate_inode_pages_range+0x2c4/0xd80 mm/truncate.c:404
  ntfs_evict_inode+0x19/0x40 fs/ntfs3/inode.c:2012
  evict+0x624/0xb50 fs/inode.c:822
  dispose_list fs/inode.c:864 [inline]
  evict_inodes+0x7e3/0x870 fs/inode.c:918
  generic_shutdown_super+0xaa/0x2d0 fs/super.c:741
  kill_block_super+0x44/0xa0 fs/super.c:1904
  ntfs3_kill_sb+0x44/0x1c0 fs/ntfs3/super.c:1940
  deactivate_locked_super+0xbc/0x110 fs/super.c:589
  cleanup_mnt+0x3d3/0x460 fs/namespace.c:1317
  ```
- **Trigger Scenario (from syzkaller reproducer):**
  - Mounts a crafted `ntfs3` filesystem image using loop device (mount options include `force,iocharset=cp874,acl,discard,showmeta`).
  - Opens/creates file `./file0/cpu.stat` with `O_RDWR | O_CREAT | O_TRUNC | O_APPEND | O_NONBLOCK | O_NOCTTY | 0x18`.
  - Writes data (size 0x1006 bytes, header `type = 0x8`, `size = 0x1000`).
  - Calls `mmap` on the file descriptor.
  - Process exits; filesystem is unmounted (`cleanup_mnt` -> `ntfs3_kill_sb`), triggering inode eviction (`ntfs_evict_inode` -> `truncate_inode_pages_final` -> `truncate_cleanup_folio` -> `folio_invalidate` -> `iomap_invalidate_folio` -> `ifs_free`).
  - `ifs_free()` asserts `WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio))`.

---

#### 2. Root Cause & Code Analysis

- **`fs/iomap/buffered-io.c: ifs_free`**:
  ```c
  static void ifs_free(struct folio *folio)
  {
      struct iomap_folio_state *ifs = folio_detach_private(folio);
      if (!ifs)
          return;
      WARN_ON_ONCE(ifs->read_bytes_pending != 0);
      WARN_ON_ONCE(atomic_read(&ifs->write_bytes_pending));
      WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) !=
              folio_test_uptodate(folio));
      kfree(ifs);
  }
  ```
- **How `ifs` is allocated and updated:**
  - `ifs` (`struct iomap_folio_state`) is attached to a folio when `nr_blocks = i_blocks_per_folio(inode, folio) > 1` (e.g. cluster/block size < page size, such as 512, 1024, or 2048 bytes per block on 4KB page).
  - When `ifs_alloc()` runs, if `folio_test_uptodate(folio)` is already true, it marks all block uptodate bits in `ifs->state`.
  - When writing buffered data via iomap (`__iomap_write_begin`, `__iomap_write_end`), `ifs_set_range_uptodate()` sets the bits in `ifs->state`. If the whole folio is not uptodate, `folio_test_uptodate` remains false and `ifs` has only a subset of bits set.
- **Where the mismatch occurs in NTFS3:**
  1. `ntfs_file_write_iter`:
     - If writing to a compressed file (`is_compressed(ni)`), or if `vbo > ni->i_valid`, it calls `ntfs_extend_initialized_size()` which uses `iomap_zero_range()` to zero between `i_valid` and `vbo`.
     - `iomap_zero_range` calls `__iomap_write_begin` / `__iomap_write_end`, which allocates and attaches `ifs` to a folio when cluster size < page size, setting only the zeroed range bits in `ifs->state` (so `ifs_is_fully_uptodate` is false, and `folio_test_uptodate` is false).
     - Next, for compressed files, `ntfs_file_write_iter` calls `ntfs_compress_write()`:
       ```c
       folio_mark_uptodate(folio); // fs/ntfs3/file.c: 1074, 1083, 1169
       ```
       `ntfs_compress_write` operates on page-cache pages directly, sets `folio_mark_uptodate(folio)` directly without calling iomap functions or updating `ifs->state`!
     2. Also in `fs/ntfs3/inode.c: ntfs_read_folio`:
        ```c
        if (ni->i_valid <= vbo) {
            folio_zero_range(folio, 0, folio_size(folio));
            folio_mark_uptodate(folio);
            folio_unlock(folio);
            return 0;
        }
        ```
        And in `fs/ntfs3/frecord.c: ni_read_folio_cmpr`:
        ```c
        if (vbo >= i_size_read(&ni->vfs_inode)) {
            folio_zero_range(folio, 0, folio_size(folio));
            folio_mark_uptodate(folio);
            ...
        ```
        And in `ni_read_frame()`:
        ```c
        SetPageUptodate(pg);
        ```
  - When `ntfs3` bypasses iomap and calls `folio_mark_uptodate()` directly on a folio that already has an `ifs` attached with partial uptodate bits, `folio_test_uptodate(folio)` becomes `true`, but `ifs_is_fully_uptodate(folio, ifs)` remains `false`.
  - When the folio is later freed/truncated on umount or file close, `ifs_free()` checks `ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)`, which fails and triggers `WARN_ON_ONCE`.

---

#### 3. Security Dimension Assessment

- **Exploitable:**
  - **No.**
  - The bug is an internal book-keeping state discrepancy between the folio-level uptodate flag (`PG_uptodate`) and the per-block iomap tracking bitmap in `ifs->state`.
  - In `ifs_free()`, after the `WARN_ON_ONCE`, the function simply executes `kfree(ifs);`.
  - There is no out-of-bounds read/write, no use-after-free, no memory corruption, no double free, and no user-controlled pointer dereference.
  - No sensitive kernel data or uninitialized kernel heap/stack is leaked to userspace (the data in the folio was zeroed or decompressed).
  - In a production build without debugging / without `panic_on_warn`, the warning is either printed once or compiled away; `kfree(ifs)` frees the allocation properly and teardown proceeds normally.
- **Denial of Service (DoS):**
  - **No.**
  - `WARN_ON_ONCE` does not panic in production kernels.
  - The control flow in `ifs_free` does not abort or leak resources; it finishes with `kfree(ifs)` cleanly.
  - Normal file operations continue without hanging, deadlock, or crash.
- **Accessible from Unprivileged Processes:**
  - **No.**
  - The bug requires mounting an NTFS3 filesystem (`syz_mount_image$ntfs3`).
  - Unprivileged user processes cannot invoke `mount()` on block devices or loop devices (`mount` syscall requires `CAP_SYS_ADMIN`).
- **Accessible from User Namespaces:**
  - **No.**
  - Checked `ntfs_fs_type` in `fs/ntfs3/super.c:1948`:
    ```c
    static struct file_system_type ntfs_fs_type = {
        ...
        .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
    };
    ```
  - `FS_USERNS_MOUNT` is **NOT** set in `.fs_flags`.
  - Therefore, `mount -t ntfs3` cannot be performed inside a user namespace even with full capabilities in that namespace.
- **VM Guest Trigger / CC Host Trigger / Network / Remote / Peripheral:**
  - **No** to VM Guest, CC Host, Ethernet, Other Remote, Peripheral directly.
- **Malicious Filesystem Trigger:**
  - **Yes.**
  - A crafted NTFS3 filesystem image (with cluster size < 4096, e.g. 512-byte clusters, and compressed attributes / specific valid vs size boundaries) when mounted (e.g. auto-mounted on desktop or mounted by root) and written to triggers this warning upon file access/umount.

---

#### 4. Active Investigation State & Dead-Ends
- *Dead-ends eliminated:*
  - Exploitability via memory corruption: Disproven. `ifs_free` only frees `ifs` via standard `kfree()`; no invalid free or wild pointer.
  - Userns accessibility: Disproven. `ntfs3` lacks `FS_USERNS_MOUNT`.
  - Denial of Service: Disproven for production kernels. It is a non-fatal `WARN_ON_ONCE` in clean-up code.
- *Conclusion reached:*
  - All dimensions analyzed and verified directly in the source code. Ready to formulate final response and submit with `set-results`.

Tokens:
							input: 74640
							output: 2556
							thoughts: 0
						

185/2 2026/09/18 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47404
							output: 66
							thoughts: 0
						

186/2 2026/09/18 01:03 tool set-results
0m Args:
map[DenialOfService:false Exploitable:false FilesystemTrigger:true NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:false UserNamespace:false VMGuestTrigger:false VMHostTrigger:false]

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

187/2 2026/09/18 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47534
							output: 97
							thoughts: 0
						

188/2 2026/09/18 01:03 tool codeexpert
3m Args:
map[Question:Can you confirm if `ntfs3` can be mounted by an unprivileged user inside a user namespace?
I see `FS_USERNS_MOUNT` is not set in `.fs_flags` of `ntfs_fs_type`. Does this mean it's impossible to mount it inside a user namespace, even if the user has `CAP_SYS_ADMIN` in that namespace?]

Results:
map[Answer:Yes, it is impossible for an unprivileged user inside a user namespace to mount `ntfs3`, even if they hold `CAP_SYS_ADMIN` within that namespace. The absence of `FS_USERNS_MOUNT` in `.fs_flags` is precisely what enforces this restriction in the VFS.]

189/3 2026/09/18 01:03 agent codeexpert
3m Model:
core

Results:
map[Answer:Yes, it is impossible for an unprivileged user inside a user namespace to mount `ntfs3`, even if they hold `CAP_SYS_ADMIN` within that namespace. The absence of `FS_USERNS_MOUNT` in `.fs_flags` is precisely what enforces this restriction in the VFS.]

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

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

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

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

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


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

Prompt:
Can you confirm if `ntfs3` can be mounted by an unprivileged user inside a user namespace?
I see `FS_USERNS_MOUNT` is not set in `.fs_flags` of `ntfs_fs_type`. Does this mean it's impossible to mount it inside a user namespace, even if the user has `CAP_SYS_ADMIN` in that namespace?

190/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 4229
							output: 29
							thoughts: 359
						

Thoughts:
**Analyzing NTFS3 Mountability in User Namespaces**

Okay, so the question is clear. Can an unprivileged user mount `ntfs3` within a user namespace, even *with* `CAP_SYS_ADMIN` in that namespace? The core of the issue seems to be the absence of `FS_USERNS_MOUNT` in the `ntfs_fs_type` definition. This is the crux I need to investigate.

First, I need to dive into the kernel code. I'll focus on:

1.  The `ntfs_fs_type` structure itself, to confirm the filesystem flags. I need to be *absolutely* certain that `FS_USERNS_MOUNT` isn't set, because that's the starting point.
2.  The mount syscall path – `sys_mount`, `fsopen`, `fsmount`, `vfs_kern_mount`, and so on. Where are the permission checks for user namespace mounts *actually* done? I need to find the specific point where `FS_USERNS_MOUNT` is evaluated. Does the kernel explicitly mandate this flag for user namespace mounts, or is it merely a *recommended* practice?
3.  I need to consider the interaction with `CAP_SYS_ADMIN`. Does the presence of `CAP_SYS_ADMIN` in the user namespace *override* the requirement for `FS_USERNS_MOUNT`? Is there some implicit allowance, or does the kernel always strictly enforce the flag?

The real key is to pinpoint where the kernel makes its decision. Does it check just the flag, or does it also take the capabilities of the user namespace into account? And if it's checking the flag, *where* is that check done?

I also need to keep an open mind. Are there any workarounds? Is there a way, like FUSE, where it *could* be done, or perhaps a helper daemon? Can the kernel itself be configured to allow it with certain flags or configuration? I need to explore *all* possibilities, to give a complete answer.

Ultimately, I will have to search the kernel code for `FS_USERNS_MOUNT` to understand exactly how the mount process works.



191/4 2026/09/18 01:03 tool grepper
0m Args:
map[Expression:FS_USERNS_MOUNT PathPrefix:fs/]

Results:
map[Output:fs/binfmt_misc.c=1666=static struct file_system_type bm_fs_type = {
--
fs/binfmt_misc.c-1669-	.init_fs_context = bm_init_fs_context,
fs/binfmt_misc.c:1670:	.fs_flags	= FS_USERNS_MOUNT,
fs/binfmt_misc.c-1671-	.kill_sb	= bm_kill_sb,
--
fs/devpts/inode.c=453=static struct file_system_type devpts_fs_type = {
--
fs/devpts/inode.c-457-	.kill_sb	= devpts_kill_sb,
fs/devpts/inode.c:458:	.fs_flags	= FS_USERNS_MOUNT,
fs/devpts/inode.c-459-};
--
fs/fuse/inode.c=2005=static struct file_system_type fuse_fs_type = {
--
fs/fuse/inode.c-2007-	.name		= "fuse",
fs/fuse/inode.c:2008:	.fs_flags	= FS_HAS_SUBTYPE | FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
fs/fuse/inode.c-2009-	.init_fs_context = fuse_init_fs_context,
--
fs/namespace.c=1076=static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt)
--
fs/namespace.c-1101-
fs/namespace.c:1102:	if ((mnt->mnt.mnt_sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED) &&
fs/namespace.c-1103-	    mnt->mnt.mnt_root == mnt->mnt.mnt_sb->s_root)
--
fs/namespace.c=6426=static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)
--
fs/namespace.c-6435-	/* Can this filesystem be too revealing? */
fs/namespace.c:6436:	if (!(sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED))
fs/namespace.c-6437-		return false;
--
fs/overlayfs/params.c=782=static const struct fs_context_operations ovl_context_ops = {
--
fs/overlayfs/params.c-791- * This is called during fsopen() and will record the user namespace of
fs/overlayfs/params.c:792: * the caller in fc->user_ns since we've raised FS_USERNS_MOUNT. We'll
fs/overlayfs/params.c-793- * need it when we actually create the superblock to verify that the
--
fs/overlayfs/super.c=1572=struct file_system_type ovl_fs_type = {
--
fs/overlayfs/super.c-1576-	.parameters		= ovl_parameter_spec,
fs/overlayfs/super.c:1577:	.fs_flags		= FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
fs/overlayfs/super.c-1578-	.kill_sb		= kill_anon_super,
--
fs/proc/root.c=369=static struct file_system_type proc_fs_type = {
--
fs/proc/root.c-373-	.kill_sb		= proc_kill_sb,
fs/proc/root.c:374:	.fs_flags		= FS_USERNS_MOUNT | FS_USERNS_MOUNT_RESTRICTED | FS_DISALLOW_NOTIFY_PERM,
fs/proc/root.c-375-};
--
fs/ramfs/inode.c=317=static struct file_system_type ramfs_fs_type = {
--
fs/ramfs/inode.c-321-	.kill_sb	= ramfs_kill_sb,
fs/ramfs/inode.c:322:	.fs_flags	= FS_USERNS_MOUNT,
fs/ramfs/inode.c-323-};
--
fs/super.c=803=bool mount_capable(struct fs_context *fc)
fs/super.c-804-{
fs/super.c:805:	if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
fs/super.c-806-		return capable(CAP_SYS_ADMIN);
--
fs/super.c=843=struct super_block *sget_fc(struct fs_context *fc,
--
fs/super.c-852-	/*
fs/super.c:853:	 * Never allow s_user_ns != &init_user_ns when FS_USERNS_MOUNT or
fs/super.c-854-	 * FS_USERNS_DELEGATABLE is not set, as the filesystem is likely
--
fs/super.c-858-	if (user_ns != &init_user_ns &&
fs/super.c:859:	    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
fs/super.c-860-		errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
--
fs/sysfs/mount.c=78=static struct file_system_type sysfs_fs_type = {
--
fs/sysfs/mount.c-81-	.kill_sb		= sysfs_kill_sb,
fs/sysfs/mount.c:82:	.fs_flags		= FS_USERNS_MOUNT | FS_USERNS_MOUNT_RESTRICTED,
fs/sysfs/mount.c-83-};
]

192/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 6597
							output: 33
							thoughts: 46
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Examining the Filesystem Superblock in Depth**

Okay, let's dive in. I need to refresh my memory on how the superblock gets handled, particularly in relation to mounting capabilities. Right, where's the best place to start? My initial instinct is to go straight to `fs/super.c`. And specifically, the function pointers `mount_capable` and `sget_fc` are key here. I need to understand how these interplay during the mount process. Let me pull up `fs/super.c` and focus on that critical section around lines 800-880. That chunk should give me a good handle on how the kernel determines if a mount is even possible and how it acquires the filesystem control block. Time to dig in and see how the pieces fit together.



193/4 2026/09/18 01:03 tool read-file
0m Args:
map[File:fs/super.c FirstLine:795 LineCount:80]

Results:
map[Contents: 795:				bdi_unregister(sb->s_bdi);
 796:			bdi_put(sb->s_bdi);
 797:			sb->s_bdi = &noop_backing_dev_info;
 798:		}
 799:	}
 800:	
 801:	EXPORT_SYMBOL(generic_shutdown_super);
 802:	
 803:	bool mount_capable(struct fs_context *fc)
 804:	{
 805:		if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
 806:			return capable(CAP_SYS_ADMIN);
 807:		else
 808:			return ns_capable(fc->user_ns, CAP_SYS_ADMIN);
 809:	}
 810:	
 811:	/**
 812:	 * sget_fc - Find or create a superblock
 813:	 * @fc:	Filesystem context.
 814:	 * @test: Comparison callback
 815:	 * @set: Setup callback
 816:	 *
 817:	 * Create a new superblock or find an existing one.
 818:	 *
 819:	 * The @test callback is used to find a matching existing superblock.
 820:	 * Whether or not the requested parameters in @fc are taken into account
 821:	 * is specific to the @test callback that is used. They may even be
 822:	 * completely ignored.
 823:	 *
 824:	 * If an extant superblock is matched, it will be returned unless:
 825:	 *
 826:	 * (1) the namespace the filesystem context @fc and the extant
 827:	 *     superblock's namespace differ
 828:	 *
 829:	 * (2) the filesystem context @fc has requested that reusing an extant
 830:	 *     superblock is not allowed
 831:	 *
 832:	 * In both cases EBUSY will be returned.
 833:	 *
 834:	 * If no match is made, a new superblock will be allocated and basic
 835:	 * initialisation will be performed (s_type, s_fs_info and s_id will be
 836:	 * set and the @set callback will be invoked), the superblock will be
 837:	 * published and it will be returned in a partially constructed state
 838:	 * with SB_BORN and SB_ACTIVE as yet unset.
 839:	 *
 840:	 * Return: On success, an extant or newly created superblock is
 841:	 *         returned. On failure an error pointer is returned.
 842:	 */
 843:	struct super_block *sget_fc(struct fs_context *fc,
 844:				    int (*test)(struct super_block *, struct fs_context *),
 845:				    int (*set)(struct super_block *, struct fs_context *))
 846:	{
 847:		struct super_block *s = NULL;
 848:		struct super_block *old;
 849:		struct user_namespace *user_ns = fc->global ? &init_user_ns : fc->user_ns;
 850:		int err;
 851:	
 852:		/*
 853:		 * Never allow s_user_ns != &init_user_ns when FS_USERNS_MOUNT or
 854:		 * FS_USERNS_DELEGATABLE is not set, as the filesystem is likely
 855:		 * unprepared to handle it. This can happen when fsconfig() is called
 856:		 * from init_user_ns with an fs_fd opened in another user namespace.
 857:		 */
 858:		if (user_ns != &init_user_ns &&
 859:		    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
 860:			errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
 861:			return ERR_PTR(-EPERM);
 862:		}
 863:	
 864:	retry:
 865:		spin_lock(&sb_lock);
 866:		if (test) {
 867:			hlist_for_each_entry(old, &fc->fs_type->fs_supers, s_instances) {
 868:				if (test(old, fc))
 869:					goto share_extant_sb;
 870:			}
 871:		}
 872:		if (!s) {
 873:			spin_unlock(&sb_lock);
 874:	
]

194/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 8138
							output: 39
							thoughts: 30
						

Thoughts:
Okay, here's the summary, rendered as if I'm the one thinking it:

**Digging Deeper into Mount Capabilities**

Alright, I need to get a really good handle on how the `mount_capable` function is used and where it's called from. I've already explored some key areas, but I should take a look specifically at `fs/super.c`. That's where a lot of the superblock operations and filesystem-level stuff lives, so it's a likely candidate for places that check mount capabilities or utilize the results.

I'll specifically search within that file for callers of `mount_capable` to see the conditions under which it's invoked. Then, I need to understand where the return value of `mount_capable` is used. That will give me the complete picture: what's calling it, and what actions are taken based on whether or not a mount operation is deemed "capable." This investigation within `fs/super.c` should provide valuable insight into the finer details of how the mount permissions are being enforced at the filesystem level. It'll give me context to add to the overall picture.



195/4 2026/09/18 01:03 tool codesearch-find-references
0m Args:
map[ContextFile:fs/super.c IncludeSnippetLines:10 Name:mount_capable]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:do_new_mount SourceFile:fs/namespace.c SourceLine:3845 SourceSnippet:3835:		 * from the legacy mount system call.
3836:		 */
3837:		fc->oldapi = true;
3838:	
3839:		if (subtype)
3840:			err = vfs_parse_fs_string(fc, "subtype", subtype);
3841:		if (!err && name)
3842:			err = vfs_parse_fs_string(fc, "source", name);
3843:		if (!err)
3844:			err = parse_monolithic_mount_data(fc, data);
3845:		if (!err && !mount_capable(fc))
3846:			err = -EPERM;
3847:		if (!err)
3848:			err = do_new_mount_fc(fc, path, mnt_flags);
3849:	
3850:		put_fs_context(fc);
3851:		return err;
3852:	}
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:vfs_cmd_create SourceFile:fs/fsopen.c SourceLine:225 SourceSnippet: 217:	static int vfs_cmd_create(struct fs_context *fc, bool exclusive)
 218:	{
 219:		struct super_block *sb;
 220:		int ret;
 221:	
 222:		if (fc->phase != FS_CONTEXT_CREATE_PARAMS)
 223:			return -EBUSY;
 224:	
 225:		if (!mount_capable(fc))
 226:			return -EPERM;
 227:	
 228:		fc->phase = FS_CONTEXT_CREATING;
 229:		fc->exclusive = exclusive;
 230:	
 231:		ret = vfs_get_tree(fc);
 232:		if (ret) {
 233:			fc->phase = FS_CONTEXT_FAILED;
 234:			return ret;
 235:		}
]] TruncatedOutput:false]

196/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9082
							output: 30
							thoughts: 183
						

Thoughts:
**My Initial Thoughts on Mount Capability**

Okay, so `mount_capable` is called from two key places: the classic `mount(2)` system call within `do_new_mount` and the newer `fsconfig` API's `vfs_cmd_create`. Let's dig into the implementation of `mount_capable` itself.

Alright, here's what I see:

```c
bool mount_capable(struct fs_context *fc)
{
	if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
		return capable(CAP_SYS_ADMIN);
	else
		return ns_capable(fc->user_ns, CAP_SYS_ADMIN);
}
```

The logic splits based on the `FS_USERNS_MOUNT` flag. If it's *not* set, the code uses `capable(CAP_SYS_ADMIN)`. But if `FS_USERNS_MOUNT` *is* set, then it switches to `ns_capable` on `fc->user_ns` and `CAP_SYS_ADMIN`. That seems right, but let me quickly confirm what the difference between `capable` and `ns_capable` is here. I want to be certain I have a good grasp of the security implications. Time to look up those definitions and comments!



197/4 2026/09/18 01:03 tool codesearch-definition-comment
0m Args:
map[ContextFile:kernel/capability.c Name:capable]

Results:
map[Comment: 403:	/**
 404:	 * capable - Determine if the current task has a superior capability in effect
 405:	 * @cap: The capability to be tested for
 406:	 *
 407:	 * Return true if the current task has the given superior capability currently
 408:	 * available for use, false if not.
 409:	 *
 410:	 * This sets PF_SUPERPRIV on the task if the capability is available on the
 411:	 * assumption that it's about to be used.
 412:	 */
 Kind:function]

198/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9757
							output: 30
							thoughts: 19
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Peering into the Kernel's Capabilities**

Okay, so I'm digging into how the kernel handles capabilities, and the first place my mind goes is the source definition of `capable`. I need to understand what defines this function, and where it lives in the codebase. Clearly, I should be looking in `kernel/capability.c`. This file is the likely repository for the heart of the capabilities implementation, so it's the obvious starting point to understand the core logic. Time to dive in and get a handle on what `capable` actually means within the kernel's context. I'm expecting to find the nitty-gritty of privilege checks and how specific capabilities are evaluated. Let's see what gems this file holds.



199/4 2026/09/18 01:03 tool codesearch-definition-source
0m Args:
map[ContextFile:kernel/capability.c Name:capable]

Results:
map[SourceCode: 403:	/**
 404:	 * capable - Determine if the current task has a superior capability in effect
 405:	 * @cap: The capability to be tested for
 406:	 *
 407:	 * Return true if the current task has the given superior capability currently
 408:	 * available for use, false if not.
 409:	 *
 410:	 * This sets PF_SUPERPRIV on the task if the capability is available on the
 411:	 * assumption that it's about to be used.
 412:	 */
 413:	bool capable(int cap)
 414:	{
 415:		return ns_capable(&init_user_ns, cap);
 416:	}
 SourceFile:kernel/capability.c]

200/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10200
							output: 32
							thoughts: 125
						

Thoughts:
**Examining Capability Checks and User Namespaces**

Okay, so `capable(int cap)` ultimately boils down to `ns_capable(&init_user_ns, cap)`. That's the crux of it: this function is checking for the capability against the *initial* user namespace, `&init_user_ns`. Right, got it.

Now, here's where it gets interesting. An unprivileged user, who's created a new user namespace, doesn't automatically inherit `CAP_SYS_ADMIN` in that original, initial namespace. Nope, they only get that powerful capability within their own created user namespace, and any namespaces that descend from it. So when I see `capable(CAP_SYS_ADMIN)` on such a user, that call returns *false*. That's the expected behavior. It's security 101.

Alright, but wait... Let's switch gears a little here... How is `fsopen` handled in all this? Let's take a look.



201/4 2026/09/18 01:03 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:fs/fsopen.c Name:fsopen]

Results:
map[SourceCode: SourceFile:]

202/4 2026/09/18 01:03 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10593
							output: 28
							thoughts: 18
						

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

**Hunting Down `fsopen`**

Okay, so I need to understand the `fsopen` system call. The obvious starting point is the source code itself. Since it's a file system related call, I'm pretty certain it'll live within the `fs` directory. Given the name, `fsopen`, I'm betting that `fs/fsopen.c` is the most likely location for its definition and implementation. Let's head there and see what's what. Time to dig in.



203/4 2026/09/18 01:04 tool grepper
0m Args:
map[Expression:fsopen PathPrefix:fs/fsopen.c]

Results:
map[Output:fs/fsopen.c=103=static int fscontext_alloc_log(struct fs_context *fc)
--
fs/fsopen.c-119- */
fs/fsopen.c:120:SYSCALL_DEFINE2(fsopen, const char __user *, _fs_name, unsigned int, flags)
fs/fsopen.c-121-{
]

204/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10871
							output: 34
							thoughts: 19
						

Thoughts:
Here's my summary, as though I'm reading and processing the provided code reference:

**Diving into `fs/fsopen.c` around Line 120**

Okay, let's pull up that file and navigate to line 120. I'm expecting this section to deal with some core file system opening functionality. Considering the file name, `fsopen`, it's likely involved in the initial setup or the final stages of the open process, probably after the VFS layer has done its work. I'm hoping to see some of the underlying system call interactions – maybe flags handling, permission checks, or resource allocation associated with a file descriptor. I'll be looking specifically for how the kernel decides what the internal file structure will actually do. Perhaps the specifics of a particular file system type are decided at this stage too. I also wouldn't be surprised to find some memory management and potential error handling right about here. Line 120... let's see what gems we find!



205/4 2026/09/18 01:04 tool read-file
0m Args:
map[File:fs/fsopen.c FirstLine:115 LineCount:40]

Results:
map[Contents: 115:	 *
 116:	 * We are allowed to specify a container in which the filesystem will be
 117:	 * opened, thereby indicating which namespaces will be used (notably, which
 118:	 * network namespace will be used for network filesystems).
 119:	 */
 120:	SYSCALL_DEFINE2(fsopen, const char __user *, _fs_name, unsigned int, flags)
 121:	{
 122:		struct file_system_type *fs_type;
 123:		struct fs_context *fc;
 124:		const char *fs_name;
 125:		int ret;
 126:	
 127:		if (!may_mount())
 128:			return -EPERM;
 129:	
 130:		if (flags & ~FSOPEN_CLOEXEC)
 131:			return -EINVAL;
 132:	
 133:		fs_name = strndup_user(_fs_name, PAGE_SIZE);
 134:		if (IS_ERR(fs_name))
 135:			return PTR_ERR(fs_name);
 136:	
 137:		fs_type = get_fs_type(fs_name);
 138:		kfree(fs_name);
 139:		if (!fs_type)
 140:			return -ENODEV;
 141:	
 142:		fc = fs_context_for_mount(fs_type, 0);
 143:		put_filesystem(fs_type);
 144:		if (IS_ERR(fc))
 145:			return PTR_ERR(fc);
 146:	
 147:		fc->phase = FS_CONTEXT_CREATE_PARAMS;
 148:	
 149:		ret = fscontext_alloc_log(fc);
 150:		if (ret < 0)
 151:			goto err_fc;
 152:	
 153:		return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0);
 154:	
]

206/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11729
							output: 33
							thoughts: 22
						

Thoughts:
**My Investigation into `may_mount()`**

Okay, so I'm diving into this code and I see `may_mount()`. First thought? *Where* is this beast defined? Let's not make assumptions; I need to quickly ascertain its origin. I need to trace back to its implementation. Time to crack open the definitions and see where we go from there. This is a crucial first step; I need to understand this function's scope and behavior before I can really dig into the surrounding logic.



207/4 2026/09/18 01:04 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/fsopen.c Name:may_mount]

Results:
map[SourceCode:2004:	/*
2005:	 * Is the caller allowed to modify his namespace?
2006:	 */
2007:	bool may_mount(void)
2008:	{
2009:		return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN);
2010:	}
 SourceFile:fs/namespace.c]

208/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12015
							output: 37
							thoughts: 88
						

Thoughts:
Here's my analysis of what's happening, laid out as if it were my thought process:

**Diving into the Filesystem Mount Setup**

Okay, so I'm looking at `fsopen` here. The critical bit seems to be that `may_mount()` check. It's verifying if the caller has `CAP_SYS_ADMIN` *within* the context of the `current->nsproxy->mnt_ns->user_ns`. Ah, right, that's the key. This means if you're an unprivileged user, and you manage to create your own user namespace and *then* a mount namespace within that user namespace... you'll effectively bypass the `CAP_SYS_ADMIN` check! `may_mount()` will happily pass you through, thinking everything is kosher. That’s a concerning oversight in a privileged operation!

Now that `may_mount()` is happy, `fs_context_for_mount` is up next. I need to understand what this function does with this potentially bypassed check! Let’s get to the bottom of how it handles the filesystem context... it will be critical to understand how the system is actually handling the mount request and if this bypass is exploited further down the line. I'm going to look at the internals of `fs_context_for_mount` in detail.



209/4 2026/09/18 01:04 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/fsopen.c Name:fs_context_for_mount]

Results:
map[SourceCode: 306:	struct fs_context *fs_context_for_mount(struct file_system_type *fs_type,
 307:						unsigned int sb_flags)
 308:	{
 309:		return alloc_fs_context(fs_type, NULL, sb_flags, 0,
 310:						FS_CONTEXT_FOR_MOUNT);
 311:	}
 SourceFile:fs/fs_context.c]

210/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12557
							output: 36
							thoughts: 21
						

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

**Diving into `alloc_fs_context`**

Alright, let's get down to brass tacks. I need to understand this filesystem context allocation. The target is the `alloc_fs_context` function, specifically in `fs/fs_context.c`. This is where the magic begins – where the kernel starts creating the essential structures for a new filesystem instance. I'm assuming this is the primary entry point for context initialization when a filesystem is *being mounted*. I should be prepared to see some memory allocation calls – this has to create the foundational structure. I'll need to pay close attention to the `fs_context` data structure itself and how it's initialized. I'll bet it's probably setting up pointers, maybe some default values, possibly handling errors, and definitely figuring out which filesystem driver is responsible. Now let's see what's really happening.



211/4 2026/09/18 01:04 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/fs_context.c Name:alloc_fs_context]

Results:
map[SourceCode: 245:	/**
 246:	 * alloc_fs_context - Create a filesystem context.
 247:	 * @fs_type: The filesystem type.
 248:	 * @reference: The dentry from which this one derives (or NULL)
 249:	 * @sb_flags: Filesystem/superblock flags (SB_*)
 250:	 * @sb_flags_mask: Applicable members of @sb_flags
 251:	 * @purpose: The purpose that this configuration shall be used for.
 252:	 *
 253:	 * Open a filesystem and create a mount context.  The mount context is
 254:	 * initialised with the supplied flags and, if a submount/automount from
 255:	 * another superblock (referred to by @reference) is supplied, may have
 256:	 * parameters such as namespaces copied across from that superblock.
 257:	 */
 258:	static struct fs_context *alloc_fs_context(struct file_system_type *fs_type,
 259:					      struct dentry *reference,
 260:					      unsigned int sb_flags,
 261:					      unsigned int sb_flags_mask,
 262:					      enum fs_context_purpose purpose)
 263:	{
 264:		struct fs_context *fc;
 265:		int ret = -ENOMEM;
 266:	
 267:		fc = kzalloc_obj(struct fs_context, GFP_KERNEL_ACCOUNT);
 268:		if (!fc)
 269:			return ERR_PTR(-ENOMEM);
 270:	
 271:		fc->purpose	= purpose;
 272:		fc->sb_flags	= sb_flags;
 273:		fc->sb_flags_mask = sb_flags_mask;
 274:		fc->fs_type	= get_filesystem(fs_type);
 275:		fc->cred	= get_current_cred();
 276:		fc->net_ns	= get_net(current->nsproxy->net_ns);
 277:		fc->log.prefix	= fs_type->name;
 278:	
 279:		mutex_init(&fc->uapi_mutex);
 280:	
 281:		switch (purpose) {
 282:		case FS_CONTEXT_FOR_MOUNT:
 283:			fc->user_ns = get_user_ns(fc->cred->user_ns);
 284:			break;
 285:		case FS_CONTEXT_FOR_SUBMOUNT:
 286:			fc->user_ns = get_user_ns(reference->d_sb->s_user_ns);
 287:			break;
 288:		case FS_CONTEXT_FOR_RECONFIGURE:
 289:			atomic_inc(&reference->d_sb->s_active);
 290:			fc->user_ns = get_user_ns(reference->d_sb->s_user_ns);
 291:			fc->root = dget(reference);
 292:			break;
 293:		}
 294:	
 295:		ret = fc->fs_type->init_fs_context(fc);
 296:		if (ret < 0)
 297:			goto err_fc;
 298:		fc->need_free = true;
 299:		return fc;
 300:	
 301:	err_fc:
 302:		put_fs_context(fc);
 303:		return ERR_PTR(ret);
 304:	}
 SourceFile:fs/fs_context.c]

212/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13809
							output: 34
							thoughts: 424
						

Thoughts:
**My Analysis of Filesystem Mount Capabilities**

Okay, let me break down this potential security issue I see in filesystem mounting, particularly in the context of unprivileged users and user namespaces. My thoughts are flowing like this:

First, in the `alloc_fs_context` function, I see that the `user_ns` of the filesystem context (`fc->user_ns`) is grabbed from the credentials of the caller (`fc->cred->user_ns`). This is crucial. If an unprivileged user is calling this *within* a user namespace, that `fc->cred->user_ns` is *their* namespace! This is the starting point to understand the issue.

Now, fast forward to the configuration and creation of the superblock. With the new mount API (the one that uses the `fsconfig` system call), I see that when `fsconfig` is used with `FSCONFIG_CMD_CREATE`, the kernel calls `vfs_cmd_create`. Inside `vfs_cmd_create`, there's a critical check: `mount_capable(fc)`. What does *that* do?

Looking at `mount_capable(fc)`, it seems to boil down to this: If the filesystem type does *not* have the `FS_USERNS_MOUNT` flag set, then it requires `capable(CAP_SYS_ADMIN)`. And we all know that `capable(CAP_SYS_ADMIN)` actually checks for `ns_capable(&init_user_ns, CAP_SYS_ADMIN)`. The issue is, an unprivileged user who *only* has `CAP_SYS_ADMIN` *within* their user namespace does *not* have that capability in the `init_user_ns`. So, if the filesystem type doesn't support the user namespace mount ( `FS_USERNS_MOUNT` is not set), `mount_capable(fc)` will return `false`, which then causes `vfs_cmd_create` to return `-EPERM`. This blocks our unprivileged user.

But what about the legacy `mount(2)` system call? I need to trace that code path too. Going from `mount(2)` down to `do_mount`, then `path_mount`, and finally `do_new_mount`, will show us the related logic. The crucial part for me to understand is in `fs/namespace.c` around `do_new_mount`. I suspect there might be a difference in the checks or a potential vulnerability there that is not present in the new API. I need to dig deeper.



213/4 2026/09/18 01:04 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/namespace.c Name:do_new_mount]

Results:
map[SourceCode:3797:	/*
3798:	 * create a new mount for userspace and request it to be added into the
3799:	 * namespace's tree
3800:	 */
3801:	static int do_new_mount(const struct path *path, const char *fstype,
3802:				int sb_flags, int mnt_flags,
3803:				const char *name, void *data)
3804:	{
3805:		struct file_system_type *type;
3806:		struct fs_context *fc;
3807:		const char *subtype = NULL;
3808:		int err = 0;
3809:	
3810:		if (!fstype)
3811:			return -EINVAL;
3812:	
3813:		type = get_fs_type(fstype);
3814:		if (!type)
3815:			return -ENODEV;
3816:	
3817:		if (type->fs_flags & FS_HAS_SUBTYPE) {
3818:			subtype = strchr(fstype, '.');
3819:			if (subtype) {
3820:				subtype++;
3821:				if (!*subtype) {
3822:					put_filesystem(type);
3823:					return -EINVAL;
3824:				}
3825:			}
3826:		}
3827:	
3828:		fc = fs_context_for_mount(type, sb_flags);
3829:		put_filesystem(type);
3830:		if (IS_ERR(fc))
3831:			return PTR_ERR(fc);
3832:	
3833:		/*
3834:		 * Indicate to the filesystem that the mount request is coming
3835:		 * from the legacy mount system call.
3836:		 */
3837:		fc->oldapi = true;
3838:	
3839:		if (subtype)
3840:			err = vfs_parse_fs_string(fc, "subtype", subtype);
3841:		if (!err && name)
3842:			err = vfs_parse_fs_string(fc, "source", name);
3843:		if (!err)
3844:			err = parse_monolithic_mount_data(fc, data);
3845:		if (!err && !mount_capable(fc))
3846:			err = -EPERM;
3847:		if (!err)
3848:			err = do_new_mount_fc(fc, path, mnt_flags);
3849:	
3850:		put_fs_context(fc);
3851:		return err;
3852:	}
 SourceFile:fs/namespace.c]

214/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15590
							output: 31
							thoughts: 80
						

Thoughts:
**Analyzing Potential Filesystem Errors**

Okay, so I'm looking at this code and specifically at line 3845. It seems like we're checking for an error condition and then verifying if the filesystem controller is mountable. If everything's clean *and* the controller isn't mountable, we're returning a "permission denied" error. That makes sense, but I want to dive a little deeper. Let's shift our focus to the `ntfs3` filesystem to see if there's anything specific defined that might clarify this behavior. I'll need to locate something like `ntfs_fs_type` within the `fs/ntfs3/` directory; this should give me the relevant definitions and context for what's happening.



215/4 2026/09/18 01:04 tool grepper
0m Args:
map[Expression:file_system_type PathPrefix:fs/ntfs3/]

Results:
map[Output:fs/ntfs3/super.c=1936=static void ntfs3_kill_sb(struct super_block *sb)
--
fs/ntfs3/super.c-1947-// clang-format off
fs/ntfs3/super.c:1948:static struct file_system_type ntfs_fs_type = {
fs/ntfs3/super.c-1949-	.owner			= THIS_MODULE,
]

216/4 2026/09/18 01:04 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15987
							output: 38
							thoughts: 23
						

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

**Diving into the NTFS3 Superblock Implementation**

Alright, let's get down to brass tacks. I'm focusing on the NTFS3 driver, specifically the `super.c` file. Given the context, I'm likely debugging, analyzing performance, or perhaps contributing a patch. I want to understand what's happening around line 1948. This likely involves superblock operations. I'm probably looking at initialization, mount, unmount, or some sort of superblock-related metadata access or modification. My immediate goal is to understand the logic flow around that specific area of the code. Is it reading/writing key fields? Handling specific error conditions? I expect to quickly identify any potential issues, bottlenecks, or areas for optimization based on my existing knowledge of filesystem internals and the NTFS specification. Let's see what we can find.



217/4 2026/09/18 01:05 tool read-file
0m Args:
map[File:fs/ntfs3/super.c FirstLine:1940 LineCount:35]

Results:
map[Contents:1940:		kill_block_super(sb);
1941:	
1942:		if (sbi->options)
1943:			put_mount_options(sbi->options);
1944:		ntfs3_free_sbi(sbi);
1945:	}
1946:	
1947:	// clang-format off
1948:	static struct file_system_type ntfs_fs_type = {
1949:		.owner			= THIS_MODULE,
1950:		.name			= "ntfs3",
1951:		.init_fs_context	= ntfs_init_fs_context,
1952:		.parameters		= ntfs_fs_parameters,
1953:		.kill_sb		= ntfs3_kill_sb,
1954:		.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
1955:	};
1956:	// clang-format on
1957:	
1958:	static int __init init_ntfs_fs(void)
1959:	{
1960:		int err;
1961:	
1962:		if (IS_ENABLED(CONFIG_NTFS3_FS_POSIX_ACL))
1963:			pr_info("ntfs3: Enabled Linux POSIX ACLs support\n");
1964:		if (IS_ENABLED(CONFIG_NTFS3_64BIT_CLUSTER))
1965:			pr_notice(
1966:				"ntfs3: Warning: Activated 64 bits per cluster. Windows does not support this\n");
1967:		if (IS_ENABLED(CONFIG_NTFS3_LZX_XPRESS))
1968:			pr_info("ntfs3: Read-only LZX/Xpress compression included\n");
1969:	
1970:		ntfs_create_proc_root();
1971:	
1972:		err = ntfs3_init_bitmap();
1973:		if (err)
1974:			goto out2;
]

218/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 16809
							output: 28
							thoughts: 128
						

Thoughts:
**My Initial Thoughts on NTFS Filesystem Flagging**

Okay, so I'm looking at the `ntfs_fs_type` struct, specifically its filesystem flags. Hmm, I see that it's got `.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP`. Interesting. First, I'm struck by the absence of `FS_USERNS_MOUNT`. That's a little unusual, given the general trend toward namespace support. Secondly, and more immediately concerning, is that `FS_REQUIRES_DEV` is present. That raises some red flags for me. I need to understand this better.

The question that immediately pops into my head is, how does this interact with block devices and user namespaces? I know `FS_REQUIRES_DEV` signifies something about needing a device node, but how does that play out in the context of user namespaces and block device mounting, which has its own nuances? The interplay of these two things requires me to refresh my memory and better understand the implications here. I should probably dig into the kernel code to see exactly *where* `FS_REQUIRES_DEV` is checked, and understand what that check is supposed to be doing.



219/4 2026/09/18 01:05 tool grepper
0m Args:
map[Expression:FS_REQUIRES_DEV PathPrefix:fs/]

Results:
map[Output:fs/adfs/super.c=468=static struct file_system_type adfs_fs_type = {
--
fs/adfs/super.c-471-	.kill_sb	= adfs_kill_sb,
fs/adfs/super.c:472:	.fs_flags	= FS_REQUIRES_DEV,
fs/adfs/super.c-473-	.init_fs_context = adfs_init_fs_context,
--
fs/affs/super.c=649=static struct file_system_type affs_fs_type = {
--
fs/affs/super.c-652-	.kill_sb	= affs_kill_sb,
fs/affs/super.c:653:	.fs_flags	= FS_REQUIRES_DEV,
fs/affs/super.c-654-	.init_fs_context = affs_init_fs_context,
--
fs/befs/linuxvfs.c=982=static struct file_system_type befs_fs_type = {
--
fs/befs/linuxvfs.c-985-	.kill_sb	= kill_block_super,
fs/befs/linuxvfs.c:986:	.fs_flags	= FS_REQUIRES_DEV,
fs/befs/linuxvfs.c-987-	.init_fs_context = befs_init_fs_context,
--
fs/bfs/inode.c=507=static struct file_system_type bfs_fs_type = {
--
fs/bfs/inode.c-511-	.kill_sb		= kill_block_super,
fs/bfs/inode.c:512:	.fs_flags		= FS_REQUIRES_DEV,
fs/bfs/inode.c-513-};
--
fs/btrfs/super.c=2222=static struct file_system_type btrfs_fs_type = {
--
fs/btrfs/super.c-2227-	.kill_sb		= btrfs_kill_super,
fs/btrfs/super.c:2228:	.fs_flags		= FS_REQUIRES_DEV | FS_BINARY_MOUNTDATA |
fs/btrfs/super.c-2229-				  FS_ALLOW_IDMAP | FS_MGTIME,
--
fs/cramfs/inode.c=981=static struct file_system_type cramfs_fs_type = {
--
fs/cramfs/inode.c-985-	.kill_sb	= cramfs_kill_sb,
fs/cramfs/inode.c:986:	.fs_flags	= FS_REQUIRES_DEV,
fs/cramfs/inode.c-987-};
--
fs/erofs/super.c=972=static struct file_system_type erofs_fs_type = {
--
fs/erofs/super.c-976-	.kill_sb        = erofs_kill_sb,
fs/erofs/super.c:977:	.fs_flags       = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/erofs/super.c-978-};
--
fs/exfat/super.c=874=static struct file_system_type exfat_fs_type = {
--
fs/exfat/super.c-879-	.kill_sb		= exfat_kill_sb,
fs/exfat/super.c:880:	.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/exfat/super.c-881-};
--
fs/ext2/super.c=1665=static struct file_system_type ext2_fs_type = {
--
fs/ext2/super.c-1668-	.kill_sb	= kill_block_super,
fs/ext2/super.c:1669:	.fs_flags	= FS_REQUIRES_DEV,
fs/ext2/super.c-1670-	.init_fs_context = ext2_init_fs_context,
--
fs/ext4/super.c=134=static struct file_system_type ext2_fs_type = {
--
fs/ext4/super.c-139-	.kill_sb		= ext4_kill_sb,
fs/ext4/super.c:140:	.fs_flags		= FS_REQUIRES_DEV,
fs/ext4/super.c-141-};
--
fs/ext4/super.c=150=static struct file_system_type ext3_fs_type = {
--
fs/ext4/super.c-155-	.kill_sb		= ext4_kill_sb,
fs/ext4/super.c:156:	.fs_flags		= FS_REQUIRES_DEV,
fs/ext4/super.c-157-};
--
fs/ext4/super.c=7533=static struct file_system_type ext4_fs_type = {
--
fs/ext4/super.c-7538-	.kill_sb		= ext4_kill_sb,
fs/ext4/super.c:7539:	.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME |
fs/ext4/super.c-7540-				  FS_LBS,
--
fs/f2fs/super.c=5697=static struct file_system_type f2fs_fs_type = {
--
fs/f2fs/super.c-5701-	.kill_sb	= kill_f2fs_super,
fs/f2fs/super.c:5702:	.fs_flags	= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/f2fs/super.c-5703-};
--
fs/fat/namei_msdos.c=695=static struct file_system_type msdos_fs_type = {
--
fs/fat/namei_msdos.c-698-	.kill_sb	= kill_block_super,
fs/fat/namei_msdos.c:699:	.fs_flags	= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/fat/namei_msdos.c-700-	.init_fs_context = msdos_init_fs_context,
--
fs/fat/namei_vfat.c=1236=static struct file_system_type vfat_fs_type = {
--
fs/fat/namei_vfat.c-1239-	.kill_sb	= kill_block_super,
fs/fat/namei_vfat.c:1240:	.fs_flags	= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/fat/namei_vfat.c-1241-	.init_fs_context = vfat_init_fs_context,
--
fs/filesystems.c=220=int __init list_bdev_fs_names(char *buf, size_t size)
--
fs/filesystems.c-227-	hlist_for_each_entry_rcu(p, &file_systems, list) {
fs/filesystems.c:228:		if (!(p->fs_flags & FS_REQUIRES_DEV))
fs/filesystems.c-229-			continue;
--
fs/filesystems.c=256=static __cold noinline int regen_filesystems_string(void)
--
fs/filesystems.c-269-	hlist_for_each_entry_rcu(p, &file_systems, list) {
fs/filesystems.c:270:		if (!(p->fs_flags & FS_REQUIRES_DEV))
fs/filesystems.c-271-			newlen += strlen("nodev");
--
fs/filesystems.c-315-		usedlen += sprintf(&new->string[usedlen], "%s\t%s\n",
fs/filesystems.c:316:				   (p->fs_flags & FS_REQUIRES_DEV) ? "" : "nodev",
fs/filesystems.c-317-				   p->name);
--
fs/filesystems.c=337=static __cold noinline int filesystems_proc_show_fallback(struct seq_file *m, void *v)
--
fs/filesystems.c-343-		seq_printf(m, "%s\t%s\n",
fs/filesystems.c:344:			   (p->fs_flags & FS_REQUIRES_DEV) ? "" : "nodev",
fs/filesystems.c-345-			   p->name);
--
fs/fuse/inode.c=2023=static struct file_system_type fuseblk_fs_type = {
--
fs/fuse/inode.c-2028-	.kill_sb	= fuse_kill_sb_blk,
fs/fuse/inode.c:2029:	.fs_flags	= FS_REQUIRES_DEV | FS_HAS_SUBTYPE | FS_ALLOW_IDMAP,
fs/fuse/inode.c-2030-};
--
fs/gfs2/ops_fstype.c=1801=struct file_system_type gfs2_fs_type = {
fs/gfs2/ops_fstype.c-1802-	.name = "gfs2",
fs/gfs2/ops_fstype.c:1803:	.fs_flags = FS_REQUIRES_DEV,
fs/gfs2/ops_fstype.c-1804-	.init_fs_context = gfs2_init_fs_context,
--
fs/gfs2/ops_fstype.c=1811=struct file_system_type gfs2meta_fs_type = {
fs/gfs2/ops_fstype.c-1812-	.name = "gfs2meta",
fs/gfs2/ops_fstype.c:1813:	.fs_flags = FS_REQUIRES_DEV,
fs/gfs2/ops_fstype.c-1814-	.init_fs_context = gfs2_meta_init_fs_context,
--
fs/hfs/super.c=459=static struct file_system_type hfs_fs_type = {
--
fs/hfs/super.c-462-	.kill_sb	= hfs_kill_super,
fs/hfs/super.c:463:	.fs_flags	= FS_REQUIRES_DEV,
fs/hfs/super.c-464-	.init_fs_context = hfs_init_fs_context,
--
fs/hfsplus/super.c=747=static struct file_system_type hfsplus_fs_type = {
--
fs/hfsplus/super.c-750-	.kill_sb	= hfsplus_kill_super,
fs/hfsplus/super.c:751:	.fs_flags	= FS_REQUIRES_DEV,
fs/hfsplus/super.c-752-	.init_fs_context = hfsplus_init_fs_context,
--
fs/hpfs/super.c=755=static struct file_system_type hpfs_fs_type = {
--
fs/hpfs/super.c-758-	.kill_sb	= kill_block_super,
fs/hpfs/super.c:759:	.fs_flags	= FS_REQUIRES_DEV,
fs/hpfs/super.c-760-	.init_fs_context = hpfs_init_fs_context,
--
fs/isofs/inode.c=1590=static struct file_system_type iso9660_fs_type = {
--
fs/isofs/inode.c-1593-	.kill_sb	= kill_block_super,
fs/isofs/inode.c:1594:	.fs_flags	= FS_REQUIRES_DEV,
fs/isofs/inode.c-1595-	.init_fs_context = isofs_init_fs_context,
--
fs/jfs/super.c=928=static struct file_system_type jfs_fs_type = {
--
fs/jfs/super.c-931-	.kill_sb	= kill_block_super,
fs/jfs/super.c:932:	.fs_flags	= FS_REQUIRES_DEV,
fs/jfs/super.c-933-	.init_fs_context = jfs_init_fs_context,
--
fs/minix/inode.c=755=static struct file_system_type minix_fs_type = {
--
fs/minix/inode.c-758-	.kill_sb		= kill_block_super,
fs/minix/inode.c:759:	.fs_flags		= FS_REQUIRES_DEV,
fs/minix/inode.c-760-	.init_fs_context	= minix_init_fs_context,
--
fs/nfsd/export.c=1106=static int check_export(const struct path *path, int *flags, unsigned char *uuid)
--
fs/nfsd/export.c-1127-	 * 1:  We must be able to identify the filesystem from a number.
fs/nfsd/export.c:1128:	 *       either a device number (so FS_REQUIRES_DEV needed)
fs/nfsd/export.c-1129-	 *       or an FSID number (so NFSEXP_FSID or ->uuid is needed).
--
fs/nfsd/export.c-1134-	 */
fs/nfsd/export.c:1135:	if (!(inode->i_sb->s_type->fs_flags & FS_REQUIRES_DEV) &&
fs/nfsd/export.c-1136-	    !(*flags & NFSEXP_FSID) &&
--
fs/nfsd/nfsfh.c=586=static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp)
--
fs/nfsd/nfsfh.c-594-	case FSID_ENCODE_DEV:
fs/nfsd/nfsfh.c:595:		return exp_sb(exp)->s_type->fs_flags & FS_REQUIRES_DEV;
fs/nfsd/nfsfh.c-596-	case FSID_NUM:
--
fs/nfsd/nfsfh.c=899=enum fsid_source fsid_source_fh(const struct knfsd_fh *fh,
--
fs/nfsd/nfsfh.c-907-	case FSID_MAJOR_MINOR:
fs/nfsd/nfsfh.c:908:		if (exp_sb(exp)->s_type->fs_flags & FS_REQUIRES_DEV)
fs/nfsd/nfsfh.c-909-			return FSIDSOURCE_DEV;
--
fs/nilfs2/super.c=1304=struct file_system_type nilfs_fs_type = {
--
fs/nilfs2/super.c-1307-	.kill_sb  = kill_block_super,
fs/nilfs2/super.c:1308:	.fs_flags = FS_REQUIRES_DEV,
fs/nilfs2/super.c-1309-	.init_fs_context = nilfs_init_fs_context,
--
fs/ntfs/super.c=2569=static struct file_system_type ntfs_fs_type = {
--
fs/ntfs/super.c-2574-	.kill_sb                = kill_block_super,
fs/ntfs/super.c:2575:	.fs_flags               = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/ntfs/super.c-2576-};
--
fs/ntfs3/super.c=1948=static struct file_system_type ntfs_fs_type = {
--
fs/ntfs3/super.c-1953-	.kill_sb		= ntfs3_kill_sb,
fs/ntfs3/super.c:1954:	.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/ntfs3/super.c-1955-};
--
fs/ocfs2/super.c=1222=static struct file_system_type ocfs2_fs_type = {
--
fs/ocfs2/super.c-1225-	.kill_sb        = kill_block_super,
fs/ocfs2/super.c:1226:	.fs_flags       = FS_REQUIRES_DEV|FS_RENAME_DOES_D_MOVE,
fs/ocfs2/super.c-1227-	.init_fs_context = ocfs2_init_fs_context,
--
fs/omfs/inode.c=643=static struct file_system_type omfs_fs_type = {
--
fs/omfs/inode.c-646-	.kill_sb	 = kill_block_super,
fs/omfs/inode.c:647:	.fs_flags	 = FS_REQUIRES_DEV,
fs/omfs/inode.c-648-	.init_fs_context = omfs_init_fs_context,
--
fs/qnx4/inode.c=399=static struct file_system_type qnx4_fs_type = {
--
fs/qnx4/inode.c-402-	.kill_sb		= qnx4_kill_sb,
fs/qnx4/inode.c:403:	.fs_flags		= FS_REQUIRES_DEV,
fs/qnx4/inode.c-404-	.init_fs_context	= qnx4_init_fs_context,
--
fs/qnx6/inode.c=657=static struct file_system_type qnx6_fs_type = {
--
fs/qnx6/inode.c-660-	.kill_sb		= kill_block_super,
fs/qnx6/inode.c:661:	.fs_flags		= FS_REQUIRES_DEV,
fs/qnx6/inode.c-662-	.init_fs_context	= qnx6_init_fs_context,
--
fs/romfs/super.c=603=static struct file_system_type romfs_fs_type = {
--
fs/romfs/super.c-607-	.kill_sb	= romfs_kill_sb,
fs/romfs/super.c:608:	.fs_flags	= FS_REQUIRES_DEV,
fs/romfs/super.c-609-};
--
fs/squashfs/super.c=684=static struct file_system_type squashfs_fs_type = {
--
fs/squashfs/super.c-689-	.kill_sb = kill_block_super,
fs/squashfs/super.c:690:	.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
fs/squashfs/super.c-691-};
--
fs/udf/super.c=138=static struct file_system_type udf_fstype = {
--
fs/udf/super.c-141-	.kill_sb	= kill_block_super,
fs/udf/super.c:142:	.fs_flags	= FS_REQUIRES_DEV,
fs/udf/super.c-143-	.init_fs_context = udf_init_fs_context,
--
fs/ufs/super.c=1462=static struct file_system_type ufs_fs_type = {
--
fs/ufs/super.c-1467-	.parameters	= ufs_param_spec,
fs/ufs/super.c:1468:	.fs_flags	= FS_REQUIRES_DEV,
fs/ufs/super.c-1469-};
--
fs/xfs/xfs_super.c=2341=static struct file_system_type xfs_fs_type = {
--
fs/xfs/xfs_super.c-2346-	.kill_sb		= xfs_kill_sb,
fs/xfs/xfs_super.c:2347:	.fs_flags		= FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME |
fs/xfs/xfs_super.c-2348-				  FS_LBS,
--
fs/zonefs/super.c=1406=static struct file_system_type zonefs_type = {
--
fs/zonefs/super.c-1409-	.kill_sb		= zonefs_kill_super,
fs/zonefs/super.c:1410:	.fs_flags		= FS_REQUIRES_DEV,
fs/zonefs/super.c-1411-	.init_fs_context	= zonefs_init_fs_context,
]

220/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 22660
							output: 29
							thoughts: 120
						

Thoughts:
**Investigating the Absence of `FS_USERNS_MOUNT` on Block Device Filesystems**

Okay, so I'm looking at this list of block device filesystems, and I'm really surprised. I can't find *any* that have the `FS_USERNS_MOUNT` flag set. That seems… wrong. Why is that? I need to dig deeper. Let's check `fuseblk_fs_type` specifically; even FUSE on a block device doesn't have it? That's definitely unexpected. Time to go back to basics. I need to refresh my understanding of what `FS_USERNS_MOUNT` is even *supposed* to mean. Let's go straight to the source. Time to search the Documentation directory for the definitive explanation of `FS_USERNS_MOUNT`.



221/4 2026/09/18 01:05 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:FS_USERNS_MOUNT PathPrefix:Documentation/]

Results:
map[Output:]

222/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 23002
							output: 21
							thoughts: 30
						

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

**Investigating User Namespaces and Mounting in the Kernel**

Right, so I need to dig into the kernel documentation again. I'm thinking I'll start with a targeted search. I'll head over to the documentation directory – `Documentation/` is usually a good starting point. I want to see how these user namespaces and mount operations are handled. I need the specifics. Specifically, I'll search for "user namespace" as a general keyword, along with a focus on mount-related operations, looking for keywords like "mount" and also keeping an eye out for `FS_USERNS_MOUNT`, as I remember it being relevant to some of the complexities around these features. This should give me a solid base of information to work from.



223/4 2026/09/18 01:05 tool grepper
0m Args:
map[Expression:FS_USERNS_MOUNT]

Results:
map[Output:drivers/android/binder/rust_binderfs.c=756=static struct file_system_type binder_fs_type = {
--
drivers/android/binder/rust_binderfs.c-760-	.kill_sb		= binderfs_kill_super,
drivers/android/binder/rust_binderfs.c:761:	.fs_flags		= FS_USERNS_MOUNT,
drivers/android/binder/rust_binderfs.c-762-};
--
drivers/android/binderfs.c=749=static struct file_system_type binder_fs_type = {
--
drivers/android/binderfs.c-753-	.kill_sb		= binderfs_kill_super,
drivers/android/binderfs.c:754:	.fs_flags		= FS_USERNS_MOUNT,
drivers/android/binderfs.c-755-};
--
fs/binfmt_misc.c=1666=static struct file_system_type bm_fs_type = {
--
fs/binfmt_misc.c-1669-	.init_fs_context = bm_init_fs_context,
fs/binfmt_misc.c:1670:	.fs_flags	= FS_USERNS_MOUNT,
fs/binfmt_misc.c-1671-	.kill_sb	= bm_kill_sb,
--
fs/devpts/inode.c=453=static struct file_system_type devpts_fs_type = {
--
fs/devpts/inode.c-457-	.kill_sb	= devpts_kill_sb,
fs/devpts/inode.c:458:	.fs_flags	= FS_USERNS_MOUNT,
fs/devpts/inode.c-459-};
--
fs/fuse/inode.c=2005=static struct file_system_type fuse_fs_type = {
--
fs/fuse/inode.c-2007-	.name		= "fuse",
fs/fuse/inode.c:2008:	.fs_flags	= FS_HAS_SUBTYPE | FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
fs/fuse/inode.c-2009-	.init_fs_context = fuse_init_fs_context,
--
fs/namespace.c=1076=static void mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt)
--
fs/namespace.c-1101-
fs/namespace.c:1102:	if ((mnt->mnt.mnt_sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED) &&
fs/namespace.c-1103-	    mnt->mnt.mnt_root == mnt->mnt.mnt_sb->s_root)
--
fs/namespace.c=6426=static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)
--
fs/namespace.c-6435-	/* Can this filesystem be too revealing? */
fs/namespace.c:6436:	if (!(sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED))
fs/namespace.c-6437-		return false;
--
fs/overlayfs/params.c=782=static const struct fs_context_operations ovl_context_ops = {
--
fs/overlayfs/params.c-791- * This is called during fsopen() and will record the user namespace of
fs/overlayfs/params.c:792: * the caller in fc->user_ns since we've raised FS_USERNS_MOUNT. We'll
fs/overlayfs/params.c-793- * need it when we actually create the superblock to verify that the
--
fs/overlayfs/super.c=1572=struct file_system_type ovl_fs_type = {
--
fs/overlayfs/super.c-1576-	.parameters		= ovl_parameter_spec,
fs/overlayfs/super.c:1577:	.fs_flags		= FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
fs/overlayfs/super.c-1578-	.kill_sb		= kill_anon_super,
--
fs/proc/root.c=369=static struct file_system_type proc_fs_type = {
--
fs/proc/root.c-373-	.kill_sb		= proc_kill_sb,
fs/proc/root.c:374:	.fs_flags		= FS_USERNS_MOUNT | FS_USERNS_MOUNT_RESTRICTED | FS_DISALLOW_NOTIFY_PERM,
fs/proc/root.c-375-};
--
fs/ramfs/inode.c=317=static struct file_system_type ramfs_fs_type = {
--
fs/ramfs/inode.c-321-	.kill_sb	= ramfs_kill_sb,
fs/ramfs/inode.c:322:	.fs_flags	= FS_USERNS_MOUNT,
fs/ramfs/inode.c-323-};
--
fs/super.c=803=bool mount_capable(struct fs_context *fc)
fs/super.c-804-{
fs/super.c:805:	if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
fs/super.c-806-		return capable(CAP_SYS_ADMIN);
--
fs/super.c=843=struct super_block *sget_fc(struct fs_context *fc,
--
fs/super.c-852-	/*
fs/super.c:853:	 * Never allow s_user_ns != &init_user_ns when FS_USERNS_MOUNT or
fs/super.c-854-	 * FS_USERNS_DELEGATABLE is not set, as the filesystem is likely
--
fs/super.c-858-	if (user_ns != &init_user_ns &&
fs/super.c:859:	    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
fs/super.c-860-		errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
--
fs/sysfs/mount.c=78=static struct file_system_type sysfs_fs_type = {
--
fs/sysfs/mount.c-81-	.kill_sb		= sysfs_kill_sb,
fs/sysfs/mount.c:82:	.fs_flags		= FS_USERNS_MOUNT | FS_USERNS_MOUNT_RESTRICTED,
fs/sysfs/mount.c-83-};
--
include/linux/fs.h=2285=struct file_system_type {
--
include/linux/fs.h-2290-#define FS_HAS_SUBTYPE		4
include/linux/fs.h:2291:#define FS_USERNS_MOUNT		8	/* Can be mounted by userns root */
include/linux/fs.h-2292-#define FS_DISALLOW_NOTIFY_PERM	16	/* Disable fanotify permission events */
--
include/linux/fs.h-2296-#define FS_POWER_FREEZE		256	/* Always freeze on suspend/hibernate */
include/linux/fs.h:2297:#define FS_USERNS_MOUNT_RESTRICTED 512	/* Restrict mount in userns if not already visible */
include/linux/fs.h-2298-#define FS_USERNS_DELEGATABLE	1024	/* Can be mounted inside userns from outside */
--
ipc/mqueue.c=1612=static struct file_system_type mqueue_fs_type = {
--
ipc/mqueue.c-1615-	.kill_sb		= kill_anon_super,
ipc/mqueue.c:1616:	.fs_flags		= FS_USERNS_MOUNT,
ipc/mqueue.c-1617-};
--
kernel/acct.c=216=static int acct_on(const char __user *name)
--
kernel/acct.c-251-	/* Exclude procfs and sysfs. */
kernel/acct.c:252:	if (file_inode(file)->i_sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED)
kernel/acct.c-253-		return -EINVAL;
--
kernel/bpf/inode.c=1277=static struct file_system_type bpf_fs_type = {
--
kernel/bpf/inode.c-1282-	.kill_sb	= bpf_kill_super,
kernel/bpf/inode.c:1283:	.fs_flags	= FS_USERNS_MOUNT,
kernel/bpf/inode.c-1284-};
--
kernel/cgroup/cgroup.c=2390=struct file_system_type cgroup_fs_type = {
--
kernel/cgroup/cgroup.c-2394-	.kill_sb		= cgroup_kill_sb,
kernel/cgroup/cgroup.c:2395:	.fs_flags		= FS_USERNS_MOUNT,
kernel/cgroup/cgroup.c-2396-};
--
kernel/cgroup/cgroup.c=2398=static struct file_system_type cgroup2_fs_type = {
--
kernel/cgroup/cgroup.c-2402-	.kill_sb		= cgroup_kill_sb,
kernel/cgroup/cgroup.c:2403:	.fs_flags		= FS_USERNS_MOUNT,
kernel/cgroup/cgroup.c-2404-};
--
kernel/cgroup/cgroup.c=2471=static struct file_system_type cpuset_fs_type = {
--
kernel/cgroup/cgroup.c-2474-	.parameters		= cpuset_fs_parameters,
kernel/cgroup/cgroup.c:2475:	.fs_flags		= FS_USERNS_MOUNT,
kernel/cgroup/cgroup.c-2476-};
--
mm/shmem.c=5305=static struct file_system_type shmem_fs_type = {
--
mm/shmem.c-5312-	.kill_sb	= kill_anon_super,
mm/shmem.c:5313:	.fs_flags	= FS_USERNS_MOUNT | FS_ALLOW_IDMAP | FS_MGTIME,
mm/shmem.c-5314-};
--
mm/shmem.c=5737=static struct file_system_type shmem_fs_type = {
--
mm/shmem.c-5741-	.kill_sb	= ramfs_kill_sb,
mm/shmem.c:5742:	.fs_flags	= FS_USERNS_MOUNT,
mm/shmem.c-5743-};
--
tools/testing/selftests/exec/binfmt_misc_interplimit.c-5- * the mount it came from. It costs no file descriptor, and binfmt_misc is
tools/testing/selftests/exec/binfmt_misc_interplimit.c:6: * FS_USERNS_MOUNT, so an unprivileged user namespace can create them without
tools/testing/selftests/exec/binfmt_misc_interplimit.c-7- * bound. Check that UCOUNT_BINFMT_MISC_INTERPRETERS bounds it, that an entry
--
tools/testing/selftests/exec/binfmt_misc_selfpin.c-9- *
tools/testing/selftests/exec/binfmt_misc_selfpin.c:10: * Runs unprivileged in a user namespace; binfmt_misc is FS_USERNS_MOUNT.
tools/testing/selftests/exec/binfmt_misc_selfpin.c-11- */
--
tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c-12- * socket. vfs_cmd_create() authorizes the create with mount_capable(),
tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c:13: * which for FS_USERNS_MOUNT checks ns_capable(fc->user_ns, CAP_SYS_ADMIN),
tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c-14- * and that succeeds for a task holding CAP_SYS_ADMIN in an ancestor of
]

224/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 26463
							output: 23
							thoughts: 143
						

Thoughts:
**Examining User Namespaces and Mount Restrictions**

Okay, let's dive into the kernel source. I need to understand the nuances of user namespaces and how mounts are handled within them. I'm focusing on these specific flags defined in `include/linux/fs.h`:

*   `FS_USERNS_MOUNT`: This seems straightforward; it indicates that a filesystem can be mounted by the root user within a user namespace.
*   `FS_USERNS_MOUNT_RESTRICTED`: Hmm, this is interesting. This flag implies there are restrictions on mounting within a user namespace if the mount isn't already visible. I'll need to look at the surrounding code to understand the specific nature of these restrictions. What exactly triggers the "visibility" condition?
*   `FS_USERNS_DELEGATABLE`: This flag suggests a filesystem can be mounted *inside* a user namespace, even if the mounting request originates from *outside* that namespace. This is potentially important for delegation and containerization scenarios.

My next step is to really dig into `FS_USERNS_DELEGATABLE` because that’s the most interesting. I'll need to examine the commit history related to this flag, and any other usage of `FS_USERNS_MOUNT` and `FS_USERNS_DELEGATABLE` through grep to understand their intended use cases and how they interact. Context is key here; the implementation details will make these definitions meaningful. Understanding the interaction between these mount flags is critical for secure namespace handling.



225/4 2026/09/18 01:05 tool grepper
0m Args:
map[Expression:FS_USERNS_DELEGATABLE]

Results:
map[Output:fs/nfs/fs_context.c=1766=struct file_system_type nfs_fs_type = {
--
fs/nfs/fs_context.c-1773-				  FS_BINARY_MOUNTDATA	|
fs/nfs/fs_context.c:1774:				  FS_USERNS_DELEGATABLE,
fs/nfs/fs_context.c-1775-};
--
fs/nfs/fs_context.c=1780=struct file_system_type nfs4_fs_type = {
--
fs/nfs/fs_context.c-1787-				  FS_BINARY_MOUNTDATA	|
fs/nfs/fs_context.c:1788:				  FS_USERNS_DELEGATABLE,
fs/nfs/fs_context.c-1789-};
--
fs/super.c=843=struct super_block *sget_fc(struct fs_context *fc,
--
fs/super.c-853-	 * Never allow s_user_ns != &init_user_ns when FS_USERNS_MOUNT or
fs/super.c:854:	 * FS_USERNS_DELEGATABLE is not set, as the filesystem is likely
fs/super.c-855-	 * unprepared to handle it. This can happen when fsconfig() is called
--
fs/super.c-858-	if (user_ns != &init_user_ns &&
fs/super.c:859:	    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
fs/super.c-860-		errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
--
include/linux/fs.h=2285=struct file_system_type {
--
include/linux/fs.h-2297-#define FS_USERNS_MOUNT_RESTRICTED 512	/* Restrict mount in userns if not already visible */
include/linux/fs.h:2298:#define FS_USERNS_DELEGATABLE	1024	/* Can be mounted inside userns from outside */
include/linux/fs.h-2299-#define FS_RENAME_DOES_D_MOVE	32768	/* FS will handle d_move() during rename() internally. */
]

226/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 27569
							output: 50
							thoughts: 64
						

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

**Diving into the Filesystem Context Namespace Test**

Okay, time to get my hands dirty. Let's dig into the details of that filesystem context namespace test – specifically, that `fscontext_ns_test.c` file tucked away in the testing tools. I need to understand how this is being validated. Let me start by actually reading the darn thing.



227/4 2026/09/18 01:05 tool read-file
0m Args:
map[File:tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c FirstLine:1 LineCount:40]

Results:
map[Contents:   1:	// SPDX-License-Identifier: GPL-2.0
   2:	/*
   3:	 * Copyright (C) 2026 Christian Brauner <brauner@kernel.org>
   4:	 *
   5:	 * Test that completing a filesystem context from another user namespace
   6:	 * doesn't warn.
   7:	 *
   8:	 * fsopen() records the caller's user namespace in fc->user_ns and hands
   9:	 * back an ordinary file descriptor. The task that issues
  10:	 * FSCONFIG_CMD_CREATE need not be the one that created the context: the fd
  11:	 * is inherited across fork() and exec() and it can be passed over a unix
  12:	 * socket. vfs_cmd_create() authorizes the create with mount_capable(),
  13:	 * which for FS_USERNS_MOUNT checks ns_capable(fc->user_ns, CAP_SYS_ADMIN),
  14:	 * and that succeeds for a task holding CAP_SYS_ADMIN in an ancestor of
  15:	 * fc->user_ns.
  16:	 *
  17:	 * binfmt_misc and overlayfs used to WARN_ON() that mismatch, which let an
  18:	 * unprivileged user taint the kernel, flood the log and panic a kernel
  19:	 * booted with panic_on_warn. The mount must still be refused, but it must
  20:	 * not warn.
  21:	 */
  22:	#define _GNU_SOURCE
  23:	
  24:	#include <errno.h>
  25:	#include <sched.h>
  26:	#include <stdio.h>
  27:	#include <stdlib.h>
  28:	#include <string.h>
  29:	#include <sys/socket.h>
  30:	#include <sys/wait.h>
  31:	#include <unistd.h>
  32:	
  33:	#include "../wrappers.h"
  34:	#include "../utils.h"
  35:	#include "../../kselftest_harness.h"
  36:	
  37:	#ifndef FSCONFIG_CMD_CREATE
  38:	#define FSCONFIG_CMD_CREATE	6
  39:	#endif
  40:	
]

228/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 28385
							output: 41
							thoughts: 38
						

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

**Investigating NTFS3 Mounting**

Alright, so we need to drill down and understand precisely how `ntfs3` gets mounted. Where's the initialization happening?  My first instinct, based on experience, is to zero in on the file system's core initialization code. That's usually where the magic happens.  Specifically, I'm thinking we should examine the `fs/ntfs3/super.c` file.  Within that file, the function that seems most relevant and interesting is `ntfs_init_fs_context`. Let's start there. I'll bet that's where the mounting process kicks off, and it probably holds the key to the parameters we are interested in.



229/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_init_fs_context]

Results:
map[SourceCode:1876:	/*
1877:	 * ntfs_init_fs_context - Initialize sbi and opts
1878:	 *
1879:	 * This will called when mount/remount. We will first initialize
1880:	 * options so that if remount we can use just that.
1881:	 */
1882:	static int ntfs_init_fs_context(struct fs_context *fc)
1883:	{
1884:		struct ntfs_mount_options *opts;
1885:		struct ntfs_sb_info *sbi;
1886:	
1887:		opts = kzalloc_obj(struct ntfs_mount_options, GFP_NOFS);
1888:		if (!opts)
1889:			return -ENOMEM;
1890:	
1891:		/* Default options. */
1892:		opts->fs_uid = current_uid();
1893:		opts->fs_gid = current_gid();
1894:		opts->fs_fmask_inv = opts->fs_dmask_inv = ~current_umask();
1895:		opts->prealloc = 1;
1896:		opts->ads = 1;
1897:	
1898:	#ifdef CONFIG_NTFS3_FS_POSIX_ACL
1899:		/* Set the default value 'acl' */
1900:		fc->sb_flags |= SB_POSIXACL;
1901:	#endif
1902:	
1903:		if (fc->purpose == FS_CONTEXT_FOR_RECONFIGURE)
1904:			goto ok;
1905:	
1906:		sbi = kzalloc_obj(struct ntfs_sb_info, GFP_NOFS);
1907:		if (!sbi)
1908:			goto free_opts;
1909:	
1910:		sbi->upcase = kvmalloc(0x10000 * sizeof(short), GFP_KERNEL);
1911:		if (!sbi->upcase)
1912:			goto free_sbi;
1913:	
1914:		ratelimit_state_init(&sbi->msg_ratelimit, DEFAULT_RATELIMIT_INTERVAL,
1915:				     DEFAULT_RATELIMIT_BURST);
1916:	
1917:		mutex_init(&sbi->compress.mtx_lznt);
1918:	#ifdef CONFIG_NTFS3_LZX_XPRESS
1919:		mutex_init(&sbi->compress.mtx_xpress);
1920:		mutex_init(&sbi->compress.mtx_lzx);
1921:	#endif
1922:	
1923:		fc->s_fs_info = sbi;
1924:	ok:
1925:		fc->fs_private = opts;
1926:		fc->ops = &ntfs_context_ops;
1927:	
1928:		return 0;
1929:	free_sbi:
1930:		kfree(sbi);
1931:	free_opts:
1932:		kfree(opts);
1933:		return -ENOMEM;
1934:	}
 SourceFile:fs/ntfs3/super.c]

230/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 29540
							output: 39
							thoughts: 12
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience, presented in the first person:

**Diving into `ntfs_context_ops`**

Alright, let's get down to brass tacks. The mental checklist starts with `ntfs_context_ops`. My immediate thought is, what are the subtle nuances of *this* implementation? We know the general structure, the entry points, the intended purpose of this context structure for NTFS operations. But I'm going beyond the basic framework here; I need to drill down and understand the implementation details. I'm thinking about the finer points of how it handles I/O, error propagation, and resource management within an NTFS context. What are the key synchronization primitives used? Are there any potential race conditions I should be looking out for?

Is the data structure as performant as it could be? Are there any obvious bottlenecks, or areas that could benefit from optimization? I'm visualizing the data flow, the interplay between the different functions. I'm wondering if any of the assumptions made in this context are particularly sensitive or prone to error. Are there any unusual or non-standard practices that this particular implementation uses? Are there any edge cases that were particularly tricky to handle? I'm running through possible scenarios and asking myself if this context would handle all scenarios. I need a clear understanding of its strengths, weaknesses, and potential vulnerabilities. It's time to dig deeper.



231/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_context_ops]

Results:
map[SourceCode:1867:	// clang-format off
1868:	static const struct fs_context_operations ntfs_context_ops = {
1869:		.parse_param	= ntfs_fs_parse_param,
1870:		.get_tree	= ntfs_fs_get_tree,
1871:		.reconfigure	= ntfs_fs_reconfigure,
1872:		.free		= ntfs_fs_free,
1873:	};
 SourceFile:fs/ntfs3/super.c]

232/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 30050
							output: 41
							thoughts: 14
						

Thoughts:
Okay, let's dive into this `ntfs_fs_get_tree` function, shall we? Here's my take on what's likely running through my mental processes as I approach it.

**Dissecting `ntfs_fs_get_tree`**

Alright, *ntfs_fs_get_tree*. Right off the bat, I know this is kernel-level, likely related to the NTFS filesystem driver. The name itself suggests we're dealing with retrieving or traversing some sort of hierarchical structure, a "tree," within an NTFS volume. My immediate questions are:

*   **What kind of tree?** Is this an on-disk B-tree used for indexing, a memory-resident representation, or something else entirely? The context of the function's location within the driver will be key here.
*   **What are the inputs?** What parameters does it take? We'll need pointers to structures describing the filesystem volume, probably a file context, and likely a path or some form of identifier for the target directory or file we're trying to locate.
*   **What's the output?** Does it return a pointer to the root of the "tree," a specific node, an error code, or populate a provided structure? Knowing the return type is crucial.
*   **What level of detail are we working at?** Am I working with the MFT directly, the index or metadata on the disk, or an abstraction? This matters greatly for performance considerations.

My next step would be to start pulling the source code and understanding the data structures involved, looking at things like `ntfs_inode`, `ntfs_volume`, and any related structures. I'd be looking for the fields in those structures that are relevant to traversing the file system, like MFT pointers, index entries, attribute lists, etc. I'd also be trying to identify any potential race conditions, or lockings.

I'll be paying close attention to any error handling. NTFS is complex, and failures can happen for a lot of reasons, from corrupted metadata to full disks. How does this function deal with those potential failures? Does it report errors to the caller, attempt recovery, or gracefully fail? What are the implications of different failure scenarios?

If the function is dealing with on-disk structures, I'll be focused on how it handles caching and buffering, and whether it uses any read-ahead or write-behind techniques to improve performance. I'll also be mentally mapping the function's logic to the actual NTFS on-disk format. What happens if the MFT record is fragmented? How are index entries handled? I will also be working with the assumption that NTFS is a journaling file system and understand what that means for this function.

Finally, I'll consider how this function fits into the larger picture of the NTFS driver. How does it interact with other functions? Does it call any other utility functions or is this a self contained unit? I'll probably start cross-referencing this function to its callers and callees to understand its use and dependencies better.



233/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/ntfs3/super.c Name:ntfs_fs_get_tree]

Results:
map[SourceCode:1842:	static int ntfs_fs_get_tree(struct fs_context *fc)
1843:	{
1844:		return get_tree_bdev(fc, ntfs_fill_super);
1845:	}
 SourceFile:fs/ntfs3/super.c]

234/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 30849
							output: 35
							thoughts: 12
						

Thoughts:
Okay, here's my interpretation of "Let's see `get_tree_bdev`", summarized in the first person, assuming I'm a subject matter expert:

**Investigating `get_tree_bdev`**

Alright, so the focus is `get_tree_bdev`. My initial thought is, "Okay, what's the context here?" This likely means I'm looking at a piece of code, a system design, or perhaps a performance analysis where this function, `get_tree_bdev`, is relevant. I immediately start mentally cataloging what I *expect* to find with that name. Given my experience, "tree" suggests a hierarchical data structure. Could be a file system, a block device management system, or something else entirely. "bdev" screams "block device" to me, right away. So this function is probably related to identifying or retrieving information about block devices within some kind of tree-like organization. I'm already formulating questions:

*   What's the *purpose* of this tree? Is it a representation of physical devices, virtual devices, or some logical grouping?
*   What information does it retrieve about the `bdev`? Just the device itself? Metadata? Capacity? Properties?
*   How is the tree structured? Is it a B-tree, a red-black tree, a simple linked list masquerading as a tree (shudder)? The tree structure will have *significant* performance implications.
*   What are the failure modes? Does it handle device removals or additions gracefully? Does it deal with device errors?

My next step would be to start digging. I'd either look at the code where `get_tree_bdev` is defined or, if I have access to good documentation, start there. I'm looking for the function signature, its purpose, what the input parameters are, and, crucially, what it returns. The return value is key, what's a "bdev" defined as? Is there a struct? Class? And how is this tree populated? How is it maintained?

I'm ready to dive deeper. Let's see what we've got!



235/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/super.c Name:get_tree_bdev]

Results:
map[SourceCode:1887:	/**
1888:	 * get_tree_bdev - Get a superblock based on a single block device
1889:	 * @fc: The filesystem context holding the parameters
1890:	 * @fill_super: Helper to initialise a new superblock
1891:	 */
1892:	int get_tree_bdev(struct fs_context *fc,
1893:			int (*fill_super)(struct super_block *,
1894:					  struct fs_context *))
1895:	{
1896:		return get_tree_bdev_flags(fc, fill_super, 0);
1897:	}
 SourceFile:fs/super.c]

236/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 31556
							output: 37
							thoughts: 22
						

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

**Diving into `get_tree_bdev_flags`**

Okay, so I'm thinking about `get_tree_bdev_flags`. Seems like a good place to start my investigation into [*insert relevant field/problem here, e.g., the current block device handling, performance implications, or security issues*]. I know it's in `fs/super.c`, which makes sense; superblocks, block devices... the connection is obvious. Now the real question is, what's *really* going on inside this function? Is it doing something clever with caching, or perhaps some optimization related to the VFS layers? I need to analyze how it acquires the block device flags, when it's called, and what the implications are for my particular area of interest. Need to dig in.



237/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/super.c Name:get_tree_bdev_flags]

Results:
map[SourceCode:1835:	/**
1836:	 * get_tree_bdev_flags - Get a superblock based on a single block device
1837:	 * @fc: The filesystem context holding the parameters
1838:	 * @fill_super: Helper to initialise a new superblock
1839:	 * @flags: GET_TREE_BDEV_* flags
1840:	 */
1841:	int get_tree_bdev_flags(struct fs_context *fc,
1842:			int (*fill_super)(struct super_block *sb,
1843:					  struct fs_context *fc), unsigned int flags)
1844:	{
1845:		struct super_block *s;
1846:		int error = 0;
1847:		dev_t dev;
1848:	
1849:		if (!fc->source)
1850:			return invalf(fc, "No source specified");
1851:	
1852:		error = lookup_bdev(fc->source, &dev);
1853:		if (error) {
1854:			if (!(flags & GET_TREE_BDEV_QUIET_LOOKUP))
1855:				errorf(fc, "%s: Can't lookup blockdev", fc->source);
1856:			return error;
1857:		}
1858:		fc->sb_flags |= SB_NOSEC;
1859:		s = sget_dev(fc, dev);
1860:		if (IS_ERR(s))
1861:			return PTR_ERR(s);
1862:	
1863:		if (s->s_root) {
1864:			/* Don't summarily change the RO/RW state. */
1865:			if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) {
1866:				warnf(fc, "%pg: Can't mount, would change RO state", s->s_bdev);
1867:				deactivate_locked_super(s);
1868:				return -EBUSY;
1869:			}
1870:		} else {
1871:			error = setup_bdev_super(s, fc->sb_flags, fc);
1872:			if (!error)
1873:				error = fill_super(s, fc);
1874:			if (error) {
1875:				deactivate_locked_super(s);
1876:				return error;
1877:			}
1878:			s->s_flags |= SB_ACTIVE;
1879:		}
1880:	
1881:		BUG_ON(fc->root);
1882:		fc->root = dget(s->s_root);
1883:		return 0;
1884:	}
 SourceFile:fs/super.c]

238/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 32585
							output: 33
							thoughts: 23
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Analyzing the Device Acquisition Function**

Okay, let's dive into this code. My immediate focus is on `sget_dev(fc, dev)`. I'm going to carefully examine the `sget_dev` function. The goal here is to understand how the system acquires or accesses the specific device, `dev`, given the file context `fc`. I'll need to dissect its internal logic to grasp the control flow and potential points of interest for resource management, error handling, and the overall device interaction strategy. I'm looking for the key to its underlying mechanism.



239/4 2026/09/18 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:fs/super.c Name:sget_dev]

Results:
map[SourceCode:1449:	/**
1450:	 * sget_dev - Find or create a superblock by device number
1451:	 * @fc: Filesystem context.
1452:	 * @dev: device number
1453:	 *
1454:	 * Find or create a superblock using the provided device number that
1455:	 * will be stored in fc->sget_key.
1456:	 *
1457:	 * If an extant superblock is matched, then that will be returned with
1458:	 * an elevated reference count that the caller must transfer or discard.
1459:	 *
1460:	 * If no match is made, a new superblock will be allocated and basic
1461:	 * initialisation will be performed (s_type, s_fs_info, s_id, s_dev will
1462:	 * be set). The superblock will be published and it will be returned in
1463:	 * a partially constructed state with SB_BORN and SB_ACTIVE as yet
1464:	 * unset.
1465:	 *
1466:	 * Return: an existing or newly created superblock on success, an error
1467:	 *         pointer on failure.
1468:	 */
1469:	struct super_block *sget_dev(struct fs_context *fc, dev_t dev)
1470:	{
1471:		fc->sget_key = &dev;
1472:		return sget_fc(fc, super_s_dev_test, super_s_dev_set);
1473:	}
 SourceFile:fs/super.c]

240/4 2026/09/18 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 33218
							output: 30
							thoughts: 1326
						

Thoughts:
**Analyzing NTFS3 Mountability within User Namespaces**

Okay, so I've been digging into the `ntfs3` kernel filesystem and its interaction with user namespaces, and here's the breakdown of my thinking. The question is: can an unprivileged user mount `ntfs3` inside a user namespace, even with `CAP_SYS_ADMIN` within that namespace?

First, I see that `sget_dev` calls `sget_fc`, which is a key function. Inside `sget_fc`, the code explicitly checks the `user_ns`. Specifically:

```c
	if (user_ns != &init_user_ns &&
	    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
		errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
		return ERR_PTR(-EPERM);
	}
```

This is the killer.  Essentially, the code verifies that the filesystem is prepared for user namespaces.  `ntfs3` doesn't have `FS_USERNS_MOUNT` set, so we're looking at a direct comparison to the initial namespace.  And, both `mount_capable(fc)` and `sget_fc` independently enforce this check.

`mount_capable` is the other crucial piece:

```c
bool mount_capable(struct fs_context *fc)
{
	if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
		return capable(CAP_SYS_ADMIN);
	else
		return ns_capable(fc->user_ns, CAP_SYS_ADMIN);
}
```

Because `ntfs3` doesn't have `FS_USERNS_MOUNT` set, it falls back to the `capable(CAP_SYS_ADMIN)` check, which is effectively checking if the user has this capability in the *initial* user namespace (`ns_capable(&init_user_ns, CAP_SYS_ADMIN)`). Even if the user has `CAP_SYS_ADMIN` in their *own* namespace, this check fails because it is evaluated in the context of the initial namespace.

Now, let's look at the mounting process itself:

1.  **`mount(2)`**:  The `do_new_mount` system call does the initial capability check via `mount_capable(fc)`. Since `ntfs_fs_type->fs_flags` does not include `FS_USERNS_MOUNT`, it ends up calling `capable(CAP_SYS_ADMIN)`, which fails for an unprivileged user, resulting in an immediate `-EPERM`.

2.  **New Mount API (`fsopen`, `fsconfig`, `fsmount`)**:  Even if the user manages to call `fsopen` and create an `fs_context`, and even if they somehow get an `fs_context` from the initial user namespace, the `fsconfig` call will hit that same `mount_capable` check or, more likely, the check inside `sget_fc`. Both return `-EPERM`.

3.  Furthermore, `ntfs3` also has `FS_REQUIRES_DEV`.  An unprivileged user in a namespace is unlikely to be able to create or access block device nodes (think `/dev/sda1`). Even if they somehow had access to a block device, the kernel filesystem mounting would still require `CAP_SYS_ADMIN` due to the above checks.

Finally, the FUSE question popped into my mind. I know `ntfs-3g` is a userspace implementation, and FUSE *does* have `FS_USERNS_MOUNT` set.  However, this user is specifically asking about `ntfs3` which is the *in-kernel* implementation.  The user's conclusion is correct: because `FS_USERNS_MOUNT` is not set in `ntfs_fs_type.fs_flags`, it is not possible to mount it inside a user namespace using these standard methods, even if the user has `CAP_SYS_ADMIN` in that namespace, because the kernel performs capabilities checks against the initial user namespace. My next step would be to consult the git history to better understand why FS_USERNS_MOUNT was never enabled for ntfs3.



241/4 2026/09/18 01:05 tool git-log
0m Args:
map[CodeRegexp:#define FS_USERNS_MOUNT Count:5]

Results:
map[Output:238650ef6c7c Merge tag 'powerpc-7.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
]

242/4 2026/09/18 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 35581
							output: 39
							thoughts: 15
						

Thoughts:
Here's a summary of my thoughts, as if I were considering the introduction of `FS_USERNS_MOUNT`:

**Deconstructing the `FS_USERNS_MOUNT` Commit**

Alright, let's dive into this `FS_USERNS_MOUNT` commit. First, I need to understand its context within the broader namespace and security landscape. This flag signals a significant shift in how user namespaces are integrated with file system mounts, so I need to go deeper than a cursory glance. I'm immediately looking for how this alters mount propagation and what it does in relation to the root user within the mounted namespace.

My initial questions are: does this effectively isolate the mount, preventing leaks between the parent and child namespaces? How does this impact capabilities within the newly mounted file system, and does this change how we delegate mount capabilities? Is it compatible with other mount flags and configurations? Specifically, I need to understand if this interacts cleanly with shared or slave mounts.

I need to confirm the use case; is it about sandboxing, containerization, or something else? Understanding the motivations for introducing this flag are critical to a comprehensive assessment of the security implications. I'll need to go through the code, meticulously, to see how the kernel handles permissions, and how the interaction with other flags (e.g., `MS_NOSUID`, `MS_NODEV`) is managed.

I'm also looking for potential attack vectors. Can this flag be exploited to elevate privileges or bypass existing security constraints? Are there any subtle race conditions introduced by this change, given the asynchronous nature of mount operations? Any impact on performance due to the added checks and isolation? These are my main concerns as I start to fully understand the impact of the changes.



243/4 2026/09/18 01:06 tool git-log
0m Args:
map[CodeRegexp:FS_USERNS_MOUNT Count:3 PathPrefix:fs/super.c]

Results:
map[Output:238650ef6c7c Merge tag 'powerpc-7.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
]

244/4 2026/09/18 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36058
							output: 33
							thoughts: 20
						

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

**Diving into `mount_capable` in `fs/super.c`**

Okay, so I need to refresh my memory on the `mount_capable` check, specifically where it's implemented in `fs/super.c`. I'm guessing this function is central to determining if a particular superblock, or by extension, a filesystem, is allowed to be mounted. I want to see what conditions are being evaluated. Is it as simple as checking permissions, or are there deeper checks related to capabilities, security flags, or maybe even filesystem-specific constraints? I'm anticipating it's probably pretty tightly intertwined with the superblock structure itself – that's often where the core mount information resides. Time to dig into the commit history there, and see what the most recent changes have been to this check, and why they were made. I'm hoping to get a quick overview of potential vulnerabilities or recent issues addressed that relate to improper or unexpected use of this call.



245/4 2026/09/18 01:06 tool git-blame
0m Args:
map[End:809 File:fs/super.c Start:803]

Results:
map[Output:^238650ef6c7c 803) bool mount_capable(struct fs_context *fc)
^238650ef6c7c 804) {
^238650ef6c7c 805) 	if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
^238650ef6c7c 806) 		return capable(CAP_SYS_ADMIN);
^238650ef6c7c 807) 	else
^238650ef6c7c 808) 		return ns_capable(fc->user_ns, CAP_SYS_ADMIN);
^238650ef6c7c 809) }
]

246/4 2026/09/18 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36539
							output: 33
							thoughts: 11
						

Thoughts:
Okay, let's dive into this commit, `sget_fc`. My initial thought process would unfold something like this:

**Analyzing `sget_fc` - Initial Impressions and Expectations**

Alright, `sget_fc`... that naming convention suggests we're dealing with something related to "get" operations, perhaps specifically focused on a "single" element retrieval ('s') from a 'fc', which I immediately presume is some kind of functional component or context. Given my experience, I'd expect this function to be involved in fetching data, configuration settings, or state from a defined scope, potentially within a larger application architecture. I'd be anticipating to see how it might be optimized, or handle error cases and edge conditions. I'm already mentally forming hypotheses about the typical use cases and where this function probably sits within the application's overall workflow. Let's see what's actually under the hood.



247/4 2026/09/18 01:06 tool git-blame
0m Args:
map[End:863 File:fs/super.c Start:852]

Results:
map[Output:^238650ef6c7c 852) 	/*
^238650ef6c7c 853) 	 * Never allow s_user_ns != &init_user_ns when FS_USERNS_MOUNT or
^238650ef6c7c 854) 	 * FS_USERNS_DELEGATABLE is not set, as the filesystem is likely
^238650ef6c7c 855) 	 * unprepared to handle it. This can happen when fsconfig() is called
^238650ef6c7c 856) 	 * from init_user_ns with an fs_fd opened in another user namespace.
^238650ef6c7c 857) 	 */
^238650ef6c7c 858) 	if (user_ns != &init_user_ns &&
^238650ef6c7c 859) 	    !(fc->fs_type->fs_flags & (FS_USERNS_MOUNT | FS_USERNS_DELEGATABLE))) {
^238650ef6c7c 860) 		errorfc(fc, "VFS: Mounting from non-initial user namespace is not allowed");
^238650ef6c7c 861) 		return ERR_PTR(-EPERM);
^238650ef6c7c 862) 	}
^238650ef6c7c 863) 
]

248/4 2026/09/18 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 37182
							output: 80
							thoughts: 1570
						

Thoughts:
**Unprivileged NTFS3 Mounts in User Namespaces: A Deep Dive**

Okay, let's break this down systematically. I started by refreshing my memory on the kernel's mounting semantics, specifically looking at `man 2 mount` and user namespaces via `user_namespaces(7)`. The core issue, as I understand it, hinges on how the kernel handles privilege escalation, and how `ntfs3` is designed.

First, I confirmed the basic requirements for mounting in Linux: You need `CAP_SYS_ADMIN` within the mount namespace's owning user namespace, checked by `may_mount()`. But, for the filesystem *itself*, things get more interesting. If `FS_USERNS_MOUNT` isn't set, then `CAP_SYS_ADMIN` in the *initial* user namespace (`init_user_ns`) is required, verified via `capable(CAP_SYS_ADMIN)`. If `FS_USERNS_MOUNT` *is* set, then `CAP_SYS_ADMIN` in the filesystem context's user namespace (`ns_capable(fc->user_ns, CAP_SYS_ADMIN)`) is sufficient.

A key point is that an unprivileged user, creating a user namespace (e.g., via `unshare -U -m`), possesses `CAP_SYS_ADMIN` *within* their new namespace, but *not* in `init_user_ns`. This distinction is crucial.

Given this setup, I then checked `ntfs3`'s behavior, and why an unprivileged mount fails. I confirmed that `ntfs3` *does not* have `FS_USERNS_MOUNT` set, which means that `mount_capable()` returns `false`. This directly leads to the mount attempt failing with `-EPERM`.

My next step was to understand *why* `FS_USERNS_MOUNT` isn't set for `ntfs3`. The answer lies in the kernel's security model. Block-device filesystems like `ntfs3` (along with `ext4`, `xfs`, etc.) have complex parsers that have historically been vulnerable to bugs – buffer overflows, memory corruption, and use-after-free conditions. Allowing unprivileged users to mount arbitrary filesystem images directly within the kernel would open a huge attack surface for local privilege escalation. Therefore, only filesystems specifically *designed* and *audited* to be safe from unprivileged user attacks – like `tmpfs`, `ramfs`, `devpts`, `proc`, `sysfs`, `fuse`, `overlayfs`, and `binderfs` – have `FS_USERNS_MOUNT`. No block-based filesystem does. Users who need unprivileged NTFS mounting generally use FUSE (`ntfs-3g`), because the parsing is isolated in userspace, and `fuse` *does* set `FS_USERNS_MOUNT`.

Just to eliminate any ambiguity, I dug deeper to see if other flags might be relevant, like `FS_USERNS_DELEGATABLE`. After checking `fs/super.c`, it's clear that it isn't relevant here. `FS_USERNS_DELEGATABLE` is only used for NFS, and `ntfs3` has neither `FS_USERNS_DELEGATABLE` nor `FS_USERNS_MOUNT`, only `FS_REQUIRES_DEV | FS_ALLOW_IDMAP`.

To be absolutely sure, I checked the code directly:
- I found that `ntfs3`'s `fs_flags` (in `fs/ntfs3/super.c`) is set to `FS_REQUIRES_DEV | FS_ALLOW_IDMAP`.
- The `mount_capable()` function in `fs/super.c` confirms the initial reasoning.
- `sget_fc()` explicitly rejects the mount with `-EPERM` if `user_ns != &init_user_ns` and neither `FS_USERNS_MOUNT` nor `FS_USERNS_DELEGATABLE` are set.
- And within `do_new_mount` and `vfs_cmd_create`, I could see the `mount_capable()` check which ensures `-EPERM`.
- `capable(CAP_SYS_ADMIN)` directly calls `ns_capable(&init_user_ns, CAP_SYS_ADMIN)` meaning the user has to have the `CAP_SYS_ADMIN` in the initial user namespace.

So, to summarize:

1.  Yes, it's definitively confirmed: `ntfs3` cannot be mounted by an unprivileged user inside a user namespace.
2.  The *absence* of `FS_USERNS_MOUNT` in `ntfs_fs_type.fs_flags` is the


249/4 2026/09/18 01:06 tool set-results
0m Args:
map[Answer:Yes, it is impossible for an unprivileged user inside a user namespace to mount `ntfs3`, even if they hold `CAP_SYS_ADMIN` within that namespace. The absence of `FS_USERNS_MOUNT` in `.fs_flags` is precisely what enforces this restriction in the VFS.]

Results:
map[Answer:Yes, it is impossible for an unprivileged user inside a user namespace to mount `ntfs3`, even if they hold `CAP_SYS_ADMIN` within that namespace. The absence of `FS_USERNS_MOUNT` in `.fs_flags` is precisely what enforces this restriction in the VFS.]

250/2 2026/09/18 01:06 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47708
							output: 590
							thoughts: 362
						

Thoughts:
**My Assessment of the `ifs_free` Warning in `ntfs3`**

Okay, so I've been looking at this `ntfs3` bug, specifically that `WARNING` in `ifs_free`. It's a classic state mismatch issue – `ifs_is_fully_uptodate(folio, ifs)` isn't lining up with `folio_test_uptodate(folio)`. Seems like `ntfs3` is juggling `iomap` and direct calls to `folio_mark_uptodate(folio)` and they're stepping on each other's toes. When that folio gets freed or invalidated, `ifs_free` understandably gets upset and throws a `WARN_ON_ONCE`.

The good news is, it's not a security catastrophe. No memory corruption, no use-after-free, no information leakage. Just a warning message. And, crucially, it's not going to panic the kernel in a standard production environment, unless someone's gone out of their way to enable `panic_on_warn`.

The trigger is a maliciously crafted `ntfs3` filesystem image. Considering the nature of the filesystem, unprivileged users are out of the picture; `ntfs3` doesn't support `FS_USERNS_MOUNT`, so no user namespace shenanigans will work. You'd need root privileges or physical access to a system (e.g., a USB drive auto-mounted by a desktop environment). Therefore, a `FilesystemTrigger` is certainly applicable, but nothing else.

Given that it's a warning and `kfree(ifs)` proceeds without a hitch, it's not exploitable for privilege escalation or denial of service, so `Exploitable` and `DenialOfService` are `false`. It's not unprivileged and it doesn't involve user namespaces. It's also not triggered through virtual machines, networking, or peripherals. I've already set the correct values and provided the technical details. All set.



251/1 2026/09/18 01:07 action format-explanation
0m Results:
map[Explanation:**Bug Analysis:**

The bug is a `WARN_ON_ONCE` triggered in `fs/iomap/buffered-io.c:ifs_free()`.
The warning asserts that the folio's uptodate state matches the iomap sub-block
state:
`WARN_ON_ONCE(ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio));`

This mismatch occurs because the `ntfs3` filesystem mixes `iomap` infrastructure
with direct page cache manipulation. When a file is written to or read from,
`iomap` allocates an `iomap_folio_state` (`ifs`) to track per-block uptodate
bits (used when the filesystem cluster size is smaller than the page size).
However, in certain paths (like handling compressed attributes or
resident-to-nonresident conversions), `ntfs3` directly calls
`folio_mark_uptodate(folio)` or `SetPageUptodate(pg)`. This sets the folio-level
uptodate flag but fails to update the underlying `ifs->state` bitmap. Later,
when the file is closed, truncated, or unmounted, the folio is invalidated, and
`ifs_free()` detects the discrepancy and triggers the warning.

**Security Impact:**

*   **Exploitable:** No. This is purely a high-level state bookkeeping mismatch
between the generic page cache flag and the iomap sub-block bitmap. After the
warning is emitted, `ifs_free()` proceeds to safely free the `ifs` structure via
`kfree(ifs)`. There is no memory corruption, use-after-free, double free, or
out-of-bounds access. It also does not leak uninitialized kernel memory to
userspace.
*   **Denial of Service:** No. In production kernels (where `panic_on_warn` is
disabled), the `WARN_ON_ONCE` simply prints a stack trace and execution
continues normally. It does not cause a crash, hang, deadlock, or resource leak.
*   **Accessible From Unprivileged Processes / User Namespaces:** No. Triggering
this bug requires mounting a crafted `ntfs3` filesystem image. The `mount`
syscall requires `CAP_SYS_ADMIN`. Furthermore, the `ntfs3` filesystem type
(`ntfs_fs_type`) does not have the `FS_USERNS_MOUNT` flag set in its
`.fs_flags`. This means it cannot be mounted inside a user namespace, even if
the user has full capabilities within that namespace.
*   **Malicious Filesystem Trigger:** Yes. The bug is triggered by parsing and
interacting with a maliciously crafted NTFS filesystem image. This could be
relevant in desktop environments that automatically mount inserted USB drives.]

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)