ID Workflow Result Correct Bug Created Started Finished Revision
73f2715e patching WARNING in __alloc_frozen_pages_noprof 2026/06/15 15:30 2026/06/15 15:30 2026/06/15 16:39 50bb0618
Agent: prod-syz-agent-5
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle WARNING in __alloc_frozen_pages_noprof
CrashLogID 6511481341870080
CrashReportID 6376930003124224
KernelCommit 03d38806a902b36bf364cae8de6f1183c0a35a67
KernelConfig
Show (266578 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.14.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-14) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24000
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=24000
CONFIG_LLD_VERSION=0
CONFIG_RUSTC_VERSION=0
CONFIG_RUSTC_LLVM_VERSION=0
CONFIG_CC_CAN_LINK=y
CONFIG_CC_CAN_LINK_STATIC=y
CONFIG_GCC_ASM_GOTO_OUTPUT_BROKEN=y
CONFIG_TOOLS_SUPPORT_RELR=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_PAHOLE_VERSION=124
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_USELIB is not set
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_IRQ_MSI_IOMMU=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_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=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_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=125
# end of Timers subsystem

CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y

#
# BPF subsystem
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
CONFIG_USERMODE_DRIVER=y
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_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
# CONFIG_PREEMPT_LAZY is not set
# CONFIG_PREEMPT_RT is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y

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

CONFIG_CPU_ISOLATION=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_TREE_SRCU=y
CONFIG_TASKS_RCU_GENERIC=y
CONFIG_NEED_TASKS_RCU=y
CONFIG_TASKS_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem

CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not set
CONFIG_LOG_BUF_SHIFT=18
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
# CONFIG_PRINTK_INDEX is not set
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y

#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# end of Scheduler features

CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_CC_HAS_INT128=y
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_CC_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_CC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_NUMA_BALANCING=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
CONFIG_MEMCG=y
CONFIG_MEMCG_V1=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_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_PROC_PID_CPUSET=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_BPF=y
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_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_INITRAMFS_PRESERVE_MTIME=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_LD_ORPHAN_WARN=y
CONFIG_LD_ORPHAN_WARN_LEVEL="warn"
CONFIG_SYSCTL=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_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_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
# CONFIG_DEBUG_RSEQ is not set
CONFIG_CACHESTAT_SYSCALL=y
# CONFIG_PC104 is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_GUEST_PERF_EVENTS=y

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

CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y

#
# Kexec and crash features
#
CONFIG_CRASH_RESERVE=y
CONFIG_VMCORE_INFO=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set
# CONFIG_KEXEC_JUMP is not set
CONFIG_CRASH_DUMP=y
CONFIG_CRASH_HOTPLUG=y
CONFIG_CRASH_MAX_MEMORY_RANGES=8192
# end of Kexec and crash features
# 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_X86_64_SMP=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=4
CONFIG_CC_HAS_SANE_STACKPROTECTOR=y

#
# 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 is not set
CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not set
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID 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_DEBUG=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_MK8 is not set
# CONFIG_MPSC is not set
CONFIG_MCORE2=y
# CONFIG_MATOM is not set
# CONFIG_GENERIC_CPU is not set
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_P6_NOP=y
CONFIG_X86_TSC=y
CONFIG_X86_HAVE_PAE=y
CONFIG_X86_CMPXCHG64=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_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_CLUSTER=y
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
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_X86_MSR=y
CONFIG_X86_CPUID=y
# CONFIG_X86_5LEVEL is not set
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_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_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 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_X86_BUS_LOCK_DETECT=y
# end of Processor type and features

CONFIG_CC_HAS_NAMED_AS=y
CONFIG_CC_HAS_SLS=y
CONFIG_CC_HAS_RETURN_THUNK=y
CONFIG_CC_HAS_ENTRY_PADDING=y
CONFIG_FUNCTION_PADDING_CFI=11
CONFIG_FUNCTION_PADDING_BYTES=16
CONFIG_CALL_PADDING=y
CONFIG_HAVE_CALL_THUNKS=y
CONFIG_CALL_THUNKS=y
CONFIG_PREFIX_SYMBOLS=y
CONFIG_CPU_MITIGATIONS=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_MITIGATION_RETPOLINE=y
CONFIG_MITIGATION_RETHUNK=y
CONFIG_MITIGATION_UNRET_ENTRY=y
CONFIG_MITIGATION_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not set
CONFIG_MITIGATION_IBPB_ENTRY=y
CONFIG_MITIGATION_IBRS_ENTRY=y
CONFIG_MITIGATION_SRSO=y
# CONFIG_MITIGATION_SLS is not set
CONFIG_MITIGATION_GDS=y
CONFIG_MITIGATION_RFDS=y
CONFIG_MITIGATION_SPECTRE_BHI=y
CONFIG_MITIGATION_MDS=y
CONFIG_MITIGATION_TAA=y
CONFIG_MITIGATION_MMIO_STALE_DATA=y
CONFIG_MITIGATION_L1TF=y
CONFIG_MITIGATION_RETBLEED=y
CONFIG_MITIGATION_SPECTRE_V1=y
CONFIG_MITIGATION_SPECTRE_V2=y
CONFIG_MITIGATION_SRBDS=y
CONFIG_MITIGATION_SSB=y
CONFIG_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=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 is not set
# 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_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
#
# 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_PCI_CNB20LE_QUIRK is not set
# CONFIG_ISA_BUS is not set
CONFIG_ISA_DMA_API=y
CONFIG_AMD_NB=y
CONFIG_AMD_NODE=y
# end of Bus options (PCI etc.)

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

CONFIG_KVM_COMMON=y
CONFIG_HAVE_KVM_PFNCACHE=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_DIRTY_RING=y
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_READONLY_MEM=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_GENERIC_PRE_FAULT_MEMORY=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_HAVE_KVM_PM_NOTIFIER=y
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
CONFIG_KVM_GENERIC_MMU_NOTIFIER=y
CONFIG_KVM_ELIDE_TLB_FLUSH_IF_YOUNG=y
CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES=y
CONFIG_KVM_PRIVATE_MEM=y
CONFIG_KVM_GENERIC_PRIVATE_MEM=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_SMM is not set
CONFIG_KVM_HYPERV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_PROVE_MMU=y
CONFIG_KVM_MAX_NR_VCPUS=1024
CONFIG_AS_AVX512=y
CONFIG_AS_SHA1_NI=y
CONFIG_AS_SHA256_NI=y
CONFIG_AS_TPAUSE=y
CONFIG_AS_GFNI=y
CONFIG_AS_VAES=y
CONFIG_AS_VPCLMULQDQ=y
CONFIG_AS_WRUSS=y
CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y

#
# General architecture-dependent options
#
CONFIG_HOTPLUG_SMT=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_ENTRY=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y
CONFIG_HAVE_NMI=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
CONFIG_ARCH_HAS_CPU_PASID=y
CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_ARCH_WANTS_NO_INSTR=y
CONFIG_HAVE_ASM_MODVERSIONS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_RUST=y
CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y
CONFIG_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_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_STACKLEAK=y
CONFIG_HAVE_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR_STRONG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y
CONFIG_LTO_NONE=y
CONFIG_ARCH_SUPPORTS_AUTOFDO_CLANG=y
CONFIG_ARCH_SUPPORTS_PROPELLER_CLANG=y
CONFIG_ARCH_SUPPORTS_CFI_CLANG=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_MOVE_PUD=y
CONFIG_HAVE_MOVE_PMD=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_HUGE_VMALLOC=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_PMD_MKWRITE=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y
CONFIG_SOFTIRQ_ON_OWN_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
CONFIG_HAVE_EXIT_THREAD=y
CONFIG_ARCH_MMAP_RND_BITS=28
CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y
CONFIG_HAVE_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
CONFIG_PAGE_SHIFT=12
CONFIG_HAVE_OBJTOOL=y
CONFIG_HAVE_JUMP_LABEL_HACK=y
CONFIG_HAVE_NOINSTR_HACK=y
CONFIG_HAVE_NOINSTR_VALIDATION=y
CONFIG_HAVE_UACCESS_VALIDATION=y
CONFIG_HAVE_STACK_VALIDATION=y
CONFIG_HAVE_RELIABLE_STACKTRACE=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_COMPAT_OLD_SIGACTION=y
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_ARCH_SUPPORTS_RT=y
CONFIG_HAVE_ARCH_VMAP_STACK=y
CONFIG_VMAP_STACK=y
CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y
CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y
# CONFIG_LOCK_EVENT_COUNTS is not set
CONFIG_ARCH_HAS_MEM_ENCRYPT=y
CONFIG_HAVE_STATIC_CALL=y
CONFIG_HAVE_STATIC_CALL_INLINE=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y
CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y
CONFIG_DYNAMIC_SIGFRAME=y
CONFIG_HAVE_ARCH_NODE_DEV_GROUP=y
CONFIG_ARCH_HAS_HW_PTE_YOUNG=y
CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
CONFIG_ARCH_HAS_KERNEL_FPU_SUPPORT=y

#
# 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
# 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_SHA1=y
# CONFIG_MODULE_SIG_SHA256 is not set
# 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="sha1"
# 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_MQ_PCI=y
CONFIG_BLK_MQ_VIRTIO=y
CONFIG_BLK_PM=y
CONFIG_BLOCK_HOLDER_DEPRECATED=y
CONFIG_BLK_MQ_STACKING=y

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

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

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

#
# Memory Management options
#
CONFIG_ZPOOL=y
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_ZSWAP_ZPOOL_DEFAULT_ZBUD is not set
CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD_DEPRECATED=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set
CONFIG_ZSWAP_ZPOOL_DEFAULT="z3fold"
# CONFIG_ZBUD is not set
CONFIG_Z3FOLD_DEPRECATED=y
CONFIG_Z3FOLD=y
CONFIG_ZSMALLOC=y
# CONFIG_ZSMALLOC_STAT is not set
CONFIG_ZSMALLOC_CHAIN_SIZE=8

#
# Slab allocator options
#
CONFIG_SLUB=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_SLUB_CPU_PARTIAL=y
# CONFIG_RANDOM_KMALLOC_CACHES is not set
# end of Slab allocator options

# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not set
CONFIG_SPARSEMEM=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=y
CONFIG_HAVE_GUP_FAST=y
CONFIG_NUMA_KEEP_MEMINFO=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_HAVE_BOOTMEM_INFO_NODE=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=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_MEMORY_BALLOON=y
# CONFIG_BALLOON_COMPACTION is not set
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
CONFIG_PAGE_REPORTING=y
CONFIG_MIGRATION=y
CONFIG_DEVICE_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_ARCH_ENABLE_THP_MIGRATION=y
CONFIG_CONTIG_ALLOC=y
CONFIG_PCP_BATCH_SCALE_MAX=5
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_MMU_NOTIFIER=y
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_WANTS_THP_SWAP=y
CONFIG_TRANSPARENT_HUGEPAGE=y
# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_NEVER is not set
CONFIG_THP_SWAP=y
CONFIG_READ_ONLY_THP_FOR_FS=y
CONFIG_PGTABLE_HAS_HUGE_LEAVES=y
CONFIG_ARCH_SUPPORTS_HUGE_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PMD_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PUD_PFNMAP=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_CMA=y
# CONFIG_CMA_DEBUGFS is not set
# CONFIG_CMA_SYSFS is not set
CONFIG_CMA_AREAS=20
CONFIG_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_PTE_DEVMAP=y
CONFIG_ARCH_HAS_ZONE_DMA_SET=y
CONFIG_ZONE_DMA=y
CONFIG_ZONE_DMA32=y
CONFIG_ZONE_DEVICE=y
CONFIG_HMM_MIRROR=y
CONFIG_GET_FREE_REGION=y
CONFIG_DEVICE_PRIVATE=y
CONFIG_VMAP_PFN=y
CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_ARCH_USES_PG_ARCH_2=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PERCPU_STATS=y
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_KMAP_LOCAL=y
CONFIG_MEMFD_CREATE=y
CONFIG_SECRETMEM=y
CONFIG_ANON_VMA_NAME=y
CONFIG_HAVE_ARCH_USERFAULTFD_WP=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_USERFAULTFD=y
# CONFIG_PTE_MARKER_UFFD_WP is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
CONFIG_LRU_GEN_WALKS_MMU=y
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
CONFIG_PER_VMA_LOCK=y
CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
CONFIG_NUMA_EMU=y
CONFIG_ARCH_HAS_USER_SHADOW_STACK=y
CONFIG_ARCH_SUPPORTS_PT_RECLAIM=y
CONFIG_PT_RECLAIM=y

#
# Data Access Monitoring
#
CONFIG_DAMON=y
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
# 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

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_DIAG=y
CONFIG_UNIX=y
CONFIG_AF_UNIX_OOB=y
CONFIG_UNIX_DIAG=y
CONFIG_TLS=y
CONFIG_TLS_DEVICE=y
CONFIG_TLS_TOE=y
CONFIG_XFRM=y
CONFIG_XFRM_OFFLOAD=y
CONFIG_XFRM_ALGO=y
CONFIG_XFRM_USER=y
CONFIG_XFRM_USER_COMPAT=y
CONFIG_XFRM_INTERFACE=y
CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_MIGRATE=y
CONFIG_XFRM_STATISTICS=y
CONFIG_XFRM_AH=y
CONFIG_XFRM_ESP=y
CONFIG_XFRM_IPCOMP=y
CONFIG_NET_KEY=y
CONFIG_NET_KEY_MIGRATE=y
# CONFIG_XFRM_IPTFS is not set
CONFIG_XFRM_ESPINTCP=y
CONFIG_SMC=y
CONFIG_SMC_DIAG=y
# CONFIG_SMC_LO is not set
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_SIGPOOL=y
# 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_DCCP=y
CONFIG_NF_CT_PROTO_GRE=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CT_PROTO_UDPLITE=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_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=y
CONFIG_NETFILTER_XT_TARGET_DSCP=y
CONFIG_NETFILTER_XT_TARGET_HL=y
CONFIG_NETFILTER_XT_TARGET_HMARK=y
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
CONFIG_NETFILTER_XT_TARGET_LED=y
CONFIG_NETFILTER_XT_TARGET_LOG=y
CONFIG_NETFILTER_XT_TARGET_MARK=y
CONFIG_NETFILTER_XT_NAT=y
CONFIG_NETFILTER_XT_TARGET_NETMAP=y
CONFIG_NETFILTER_XT_TARGET_NFLOG=y
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=y
CONFIG_NETFILTER_XT_TARGET_NOTRACK=y
CONFIG_NETFILTER_XT_TARGET_RATEEST=y
CONFIG_NETFILTER_XT_TARGET_REDIRECT=y
CONFIG_NETFILTER_XT_TARGET_MASQUERADE=y
CONFIG_NETFILTER_XT_TARGET_TEE=y
CONFIG_NETFILTER_XT_TARGET_TPROXY=y
CONFIG_NETFILTER_XT_TARGET_TRACE=y
CONFIG_NETFILTER_XT_TARGET_SECMARK=y
CONFIG_NETFILTER_XT_TARGET_TCPMSS=y
CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y

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

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

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

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

#
# IPVS SH scheduler
#
CONFIG_IP_VS_SH_TAB_BITS=8

#
# IPVS MH scheduler
#
CONFIG_IP_VS_MH_TAB_INDEX=12

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

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

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

CONFIG_NF_DEFRAG_IPV6=y
CONFIG_NF_TABLES_BRIDGE=y
CONFIG_NFT_BRIDGE_META=y
CONFIG_NFT_BRIDGE_REJECT=y
CONFIG_NF_CONNTRACK_BRIDGE=y
CONFIG_BRIDGE_NF_EBTABLES_LEGACY=y
CONFIG_BRIDGE_NF_EBTABLES=y
CONFIG_BRIDGE_EBT_BROUTE=y
CONFIG_BRIDGE_EBT_T_FILTER=y
CONFIG_BRIDGE_EBT_T_NAT=y
CONFIG_BRIDGE_EBT_802_3=y
CONFIG_BRIDGE_EBT_AMONG=y
CONFIG_BRIDGE_EBT_ARP=y
CONFIG_BRIDGE_EBT_IP=y
CONFIG_BRIDGE_EBT_IP6=y
CONFIG_BRIDGE_EBT_LIMIT=y
CONFIG_BRIDGE_EBT_MARK=y
CONFIG_BRIDGE_EBT_PKTTYPE=y
CONFIG_BRIDGE_EBT_STP=y
CONFIG_BRIDGE_EBT_VLAN=y
CONFIG_BRIDGE_EBT_ARPREPLY=y
CONFIG_BRIDGE_EBT_DNAT=y
CONFIG_BRIDGE_EBT_MARK_T=y
CONFIG_BRIDGE_EBT_REDIRECT=y
CONFIG_BRIDGE_EBT_SNAT=y
CONFIG_BRIDGE_EBT_LOG=y
CONFIG_BRIDGE_EBT_NFLOG=y
CONFIG_IP_DCCP=y
CONFIG_INET_DCCP_DIAG=y

#
# DCCP CCIDs Configuration
#
# CONFIG_IP_DCCP_CCID2_DEBUG is not set
CONFIG_IP_DCCP_CCID3=y
# CONFIG_IP_DCCP_CCID3_DEBUG is not set
CONFIG_IP_DCCP_TFRC_LIB=y
# end of DCCP CCIDs Configuration

#
# DCCP Kernel Hacking
#
# CONFIG_IP_DCCP_DEBUG is not set
# end of DCCP Kernel Hacking

CONFIG_IP_SCTP=y
# CONFIG_SCTP_DBG_OBJCNT is not set
CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set
CONFIG_SCTP_COOKIE_HMAC_MD5=y
CONFIG_SCTP_COOKIE_HMAC_SHA1=y
CONFIG_INET_SCTP_DIAG=y
CONFIG_RDS=y
CONFIG_RDS_RDMA=y
CONFIG_RDS_TCP=y
# CONFIG_RDS_DEBUG is not set
CONFIG_TIPC=y
CONFIG_TIPC_MEDIA_IB=y
CONFIG_TIPC_MEDIA_UDP=y
CONFIG_TIPC_CRYPTO=y
CONFIG_TIPC_DIAG=y
CONFIG_ATM=y
CONFIG_ATM_CLIP=y
# CONFIG_ATM_CLIP_NO_ICMP is not set
CONFIG_ATM_LANE=y
CONFIG_ATM_MPOA=y
CONFIG_ATM_BR2684=y
# CONFIG_ATM_BR2684_IPFILTER is not set
CONFIG_L2TP=y
# CONFIG_L2TP_DEBUGFS is not set
CONFIG_L2TP_V3=y
CONFIG_L2TP_IP=y
CONFIG_L2TP_ETH=y
CONFIG_STP=y
CONFIG_GARP=y
CONFIG_MRP=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_IGMP_SNOOPING=y
CONFIG_BRIDGE_VLAN_FILTERING=y
CONFIG_BRIDGE_MRP=y
CONFIG_BRIDGE_CFM=y
CONFIG_NET_DSA=y
# CONFIG_NET_DSA_TAG_NONE is not set
# CONFIG_NET_DSA_TAG_AR9331 is not set
CONFIG_NET_DSA_TAG_BRCM_COMMON=y
CONFIG_NET_DSA_TAG_BRCM=y
# CONFIG_NET_DSA_TAG_BRCM_LEGACY is not set
CONFIG_NET_DSA_TAG_BRCM_PREPEND=y
# CONFIG_NET_DSA_TAG_HELLCREEK is not set
# CONFIG_NET_DSA_TAG_GSWIP is not set
# CONFIG_NET_DSA_TAG_DSA is not set
# CONFIG_NET_DSA_TAG_EDSA is not set
CONFIG_NET_DSA_TAG_MTK=y
# CONFIG_NET_DSA_TAG_KSZ is not set
# CONFIG_NET_DSA_TAG_OCELOT is not set
# CONFIG_NET_DSA_TAG_OCELOT_8021Q is not set
CONFIG_NET_DSA_TAG_QCA=y
CONFIG_NET_DSA_TAG_RTL4_A=y
# CONFIG_NET_DSA_TAG_RTL8_4 is not set
# CONFIG_NET_DSA_TAG_RZN1_A5PSW is not set
# CONFIG_NET_DSA_TAG_LAN9303 is not set
# CONFIG_NET_DSA_TAG_SJA1105 is not set
# CONFIG_NET_DSA_TAG_TRAILER is not set
# CONFIG_NET_DSA_TAG_VSC73XX_8021Q is not set
# CONFIG_NET_DSA_TAG_XRS700X is not set
CONFIG_VLAN_8021Q=y
CONFIG_VLAN_8021Q_GVRP=y
CONFIG_VLAN_8021Q_MVRP=y
CONFIG_LLC=y
CONFIG_LLC2=y
# CONFIG_ATALK is not set
CONFIG_X25=y
CONFIG_LAPB=y
CONFIG_PHONET=y
CONFIG_6LOWPAN=y
# CONFIG_6LOWPAN_DEBUGFS is not set
CONFIG_6LOWPAN_NHC=y
CONFIG_6LOWPAN_NHC_DEST=y
CONFIG_6LOWPAN_NHC_FRAGMENT=y
CONFIG_6LOWPAN_NHC_HOP=y
CONFIG_6LOWPAN_NHC_IPV6=y
CONFIG_6LOWPAN_NHC_MOBILITY=y
CONFIG_6LOWPAN_NHC_ROUTING=y
CONFIG_6LOWPAN_NHC_UDP=y
CONFIG_6LOWPAN_GHC_EXT_HDR_HOP=y
CONFIG_6LOWPAN_GHC_UDP=y
CONFIG_6LOWPAN_GHC_ICMPV6=y
CONFIG_6LOWPAN_GHC_EXT_HDR_DEST=y
CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=y
CONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=y
CONFIG_IEEE802154=y
CONFIG_IEEE802154_NL802154_EXPERIMENTAL=y
CONFIG_IEEE802154_SOCKET=y
CONFIG_IEEE802154_6LOWPAN=y
CONFIG_MAC802154=y
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_MULTIQ=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFB=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_CBS=y
CONFIG_NET_SCH_ETF=y
CONFIG_NET_SCH_MQPRIO_LIB=y
CONFIG_NET_SCH_TAPRIO=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_NETEM=y
CONFIG_NET_SCH_DRR=y
CONFIG_NET_SCH_MQPRIO=y
CONFIG_NET_SCH_SKBPRIO=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_SCH_CAKE=y
CONFIG_NET_SCH_FQ=y
CONFIG_NET_SCH_HHF=y
CONFIG_NET_SCH_PIE=y
CONFIG_NET_SCH_FQ_PIE=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_PLUG=y
CONFIG_NET_SCH_ETS=y
CONFIG_NET_SCH_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_NC=y
CONFIG_BATMAN_ADV_MCAST=y
# CONFIG_BATMAN_ADV_DEBUG is not set
# CONFIG_BATMAN_ADV_TRACING is not set
CONFIG_OPENVSWITCH=y
CONFIG_OPENVSWITCH_GRE=y
CONFIG_OPENVSWITCH_VXLAN=y
CONFIG_OPENVSWITCH_GENEVE=y
CONFIG_VSOCKETS=y
CONFIG_VSOCKETS_DIAG=y
CONFIG_VSOCKETS_LOOPBACK=y
# CONFIG_VMWARE_VMCI_VSOCKETS is not set
CONFIG_VIRTIO_VSOCKETS=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
CONFIG_NETLINK_DIAG=y
CONFIG_MPLS=y
CONFIG_NET_MPLS_GSO=y
CONFIG_MPLS_ROUTING=y
CONFIG_MPLS_IPTUNNEL=y
CONFIG_NET_NSH=y
CONFIG_HSR=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_QRTR=y
CONFIG_QRTR_TUN=y
# CONFIG_QRTR_MHI is not set
CONFIG_NET_NCSI=y
# CONFIG_NCSI_OEM_CMD_GET_MAC is not set
# CONFIG_NCSI_OEM_CMD_KEEP_PHY is not set
# CONFIG_PCPU_DEV_REFCNT is not set
CONFIG_MAX_SKB_FRAGS=17
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_BPF_STREAM_PARSER=y
CONFIG_NET_FLOW_LIMIT=y

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

CONFIG_HAMRADIO=y

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

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

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

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

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

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

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

#
# Device Drivers
#
CONFIG_HAVE_EISA=y
# CONFIG_EISA is not set
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_ECAM=y
CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_IOV=y
# CONFIG_PCI_NPEM is not set
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
# CONFIG_PCIE_TPH is not set
# CONFIG_PCI_P2PDMA is not set
CONFIG_PCI_LABEL=y
# CONFIG_PCI_DYNAMIC_OF_NODES is not set
# CONFIG_PCIE_BUS_TUNE_OFF is not set
CONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_OCTEONEP is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# PCI controller drivers
#
# CONFIG_PCI_FTPCI100 is not set
CONFIG_PCI_HOST_COMMON=y
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_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_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_I82092 is not set
CONFIG_PCCARD_NONSTATIC=y
# CONFIG_RAPIDIO 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_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y

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

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

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

#
# Cache Drivers
#
# end of Cache Drivers

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Firmware Drivers
#

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

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

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

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

CONFIG_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_CDROM_PKTCDVD is not set
CONFIG_ATA_OVER_ETH=y
CONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_UBLK is not set
CONFIG_BLK_DEV_RNBD=y
CONFIG_BLK_DEV_RNBD_CLIENT=y

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

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

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

# CONFIG_CB710_CORE is not set
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not set
CONFIG_INTEL_MEI=y
CONFIG_INTEL_MEI_ME=y
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_GSC is not set
# CONFIG_INTEL_MEI_VSC_HW is not set
# CONFIG_INTEL_MEI_HDCP is not set
# CONFIG_INTEL_MEI_PXP is not set
# CONFIG_INTEL_MEI_GSC_PROXY is not set
CONFIG_VMWARE_VMCI=y
# CONFIG_GENWQE is not set
# CONFIG_ECHO 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
# end of Misc devices

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

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

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

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

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

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

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

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

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

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

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_LEGACY is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_MD_BITMAP_FILE=y
# CONFIG_MD_LINEAR is not set
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
# CONFIG_MD_CLUSTER is not set
CONFIG_BCACHE=y
# CONFIG_BCACHE_DEBUG is not set
# CONFIG_BCACHE_ASYNC_REGISTRATION is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
CONFIG_DM_BUFIO=y
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
CONFIG_DM_BIO_PRISON=y
CONFIG_DM_PERSISTENT_DATA=y
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=y
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_THIN_PROVISIONING=y
CONFIG_DM_CACHE=y
CONFIG_DM_CACHE_SMQ=y
CONFIG_DM_WRITECACHE=y
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
CONFIG_DM_CLONE=y
CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
CONFIG_DM_RAID=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=y
CONFIG_DM_MULTIPATH_QL=y
CONFIG_DM_MULTIPATH_ST=y
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
CONFIG_DM_UEVENT=y
CONFIG_DM_FLAKEY=y
CONFIG_DM_VERITY=y
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
CONFIG_DM_VERITY_FEC=y
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
CONFIG_DM_INTEGRITY=y
CONFIG_DM_ZONED=y
CONFIG_DM_AUDIT=y
# CONFIG_DM_VDO is not set
CONFIG_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_EQUALIZER=y
CONFIG_NET_FC=y
CONFIG_IFB=y
CONFIG_NET_TEAM=y
CONFIG_NET_TEAM_MODE_BROADCAST=y
CONFIG_NET_TEAM_MODE_ROUNDROBIN=y
CONFIG_NET_TEAM_MODE_RANDOM=y
CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=y
CONFIG_NET_TEAM_MODE_LOADBALANCE=y
CONFIG_MACVLAN=y
CONFIG_MACVTAP=y
CONFIG_IPVLAN_L3S=y
CONFIG_IPVLAN=y
CONFIG_IPVTAP=y
CONFIG_VXLAN=y
CONFIG_GENEVE=y
CONFIG_BAREUDP=y
CONFIG_GTP=y
# CONFIG_PFCP is not set
# CONFIG_AMT is not set
CONFIG_MACSEC=y
CONFIG_NETCONSOLE=y
# CONFIG_NETCONSOLE_DYNAMIC is not set
# CONFIG_NETCONSOLE_EXTENDED_LOG is not set
CONFIG_NETPOLL=y
CONFIG_NET_POLL_CONTROLLER=y
CONFIG_TUN=y
CONFIG_TAP=y
CONFIG_TUN_VNET_CROSS_LE=y
CONFIG_VETH=y
CONFIG_VIRTIO_NET=y
CONFIG_NLMON=y
# CONFIG_NETKIT is not set
CONFIG_NET_VRF=y
CONFIG_VSOCKMON=y
# CONFIG_MHI_NET is not set
# CONFIG_ARCNET is not set
CONFIG_ATM_DRIVERS=y
# CONFIG_ATM_DUMMY is not set
CONFIG_ATM_TCP=y
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not set
# CONFIG_ATM_NICSTAR is not set
# CONFIG_ATM_IDT77252 is not set
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not set
# CONFIG_ATM_SOLOS is not set
CONFIG_CAIF_DRIVERS=y
CONFIG_CAIF_TTY=y
CONFIG_CAIF_VIRTIO=y

#
# Distributed Switch Architecture drivers
#
# CONFIG_B53 is not set
# CONFIG_NET_DSA_BCM_SF2 is not set
# CONFIG_NET_DSA_LOOP is not set
# CONFIG_NET_DSA_HIRSCHMANN_HELLCREEK is not set
# CONFIG_NET_DSA_LANTIQ_GSWIP is not set
# CONFIG_NET_DSA_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_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_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
# 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_ALTEON=y
# CONFIG_ACENIC 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_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
# CONFIG_NET_VENDOR_FUJITSU is not set
CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set
CONFIG_NET_VENDOR_GOOGLE=y
CONFIG_GVE=y
CONFIG_NET_VENDOR_HISILICON=y
# CONFIG_HIBMCGE is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_E100=y
CONFIG_E1000=y
CONFIG_E1000E=y
CONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not set
# CONFIG_IDPF is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_ADI is not set
CONFIG_NET_VENDOR_LITEX=y
# CONFIG_LITEX_LITEETH is not set
# CONFIG_NET_VENDOR_MARVELL is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
CONFIG_MLX4_CORE=y
# CONFIG_MLX4_DEBUG is not set
# CONFIG_MLX4_CORE_GEN2 is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set
CONFIG_NET_VENDOR_META=y
# CONFIG_FBNIC is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
CONFIG_NET_VENDOR_MICROSOFT=y
# CONFIG_NET_VENDOR_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_NETERION is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PACKET_ENGINES is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
CONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not set
# CONFIG_NET_VENDOR_VIA is not set
CONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_NET_VENDOR_XILINX is not set
# CONFIG_NET_VENDOR_XIRCOM is not set
CONFIG_FDDI=y
# CONFIG_DEFXX is not set
# CONFIG_SKFP is not set
# CONFIG_HIPPI is not set
CONFIG_PHYLINK=y
CONFIG_PHYLIB=y
CONFIG_SWPHY=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_AIR_EN8811H_PHY is not set
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_ADIN1100_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
CONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88Q2XXX_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_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=y
# 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_MICREL_KS8995MA 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_FLEXCAN is not set
# CONFIG_CAN_GRCAN is not set
# CONFIG_CAN_KVASER_PCIEFD is not set
CONFIG_CAN_SLCAN=y
# CONFIG_CAN_C_CAN is not set
# CONFIG_CAN_CC770 is not set
# CONFIG_CAN_CTUCANFD_PCI is not set
# CONFIG_CAN_CTUCANFD_PLATFORM is not set
# CONFIG_CAN_ESD_402_PCI is not set
CONFIG_CAN_IFI_CANFD=y
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not set
# CONFIG_CAN_SJA1000 is not set
# CONFIG_CAN_SOFTING is not set

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

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

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

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

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

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

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

CONFIG_VMXNET3=y
# CONFIG_FUJITSU_ES is not set
CONFIG_USB4_NET=y
CONFIG_NETDEVSIM=y
CONFIG_NET_FAILOVER=y
CONFIG_ISDN=y
CONFIG_ISDN_CAPI=y
CONFIG_MISDN=y
CONFIG_MISDN_DSP=y
CONFIG_MISDN_L1OIP=y

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

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

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

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 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_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX 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_HYCON_HY46XX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CSTXXX is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_ILITEK is not set
# CONFIG_TOUCHSCREEN_S6SY761 is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
# CONFIG_TOUCHSCREEN_ELAN is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MSG2638 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_NOVATEK_NVT_TS is not set
# CONFIG_TOUCHSCREEN_IMAGIS is not set
# CONFIG_TOUCHSCREEN_IMX6UL_TSC is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
# CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
CONFIG_TOUCHSCREEN_USB_COMPOSITE=y
CONFIG_TOUCHSCREEN_USB_EGALAX=y
CONFIG_TOUCHSCREEN_USB_PANJIT=y
CONFIG_TOUCHSCREEN_USB_3M=y
CONFIG_TOUCHSCREEN_USB_ITM=y
CONFIG_TOUCHSCREEN_USB_ETURBO=y
CONFIG_TOUCHSCREEN_USB_GUNZE=y
CONFIG_TOUCHSCREEN_USB_DMC_TSC10=y
CONFIG_TOUCHSCREEN_USB_IRTOUCH=y
CONFIG_TOUCHSCREEN_USB_IDEALTEK=y
CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=y
CONFIG_TOUCHSCREEN_USB_GOTOP=y
CONFIG_TOUCHSCREEN_USB_JASTEC=y
CONFIG_TOUCHSCREEN_USB_ELO=y
CONFIG_TOUCHSCREEN_USB_E2I=y
CONFIG_TOUCHSCREEN_USB_ZYTRONIC=y
CONFIG_TOUCHSCREEN_USB_ETT_TC45USB=y
CONFIG_TOUCHSCREEN_USB_NEXIO=y
CONFIG_TOUCHSCREEN_USB_EASYTOUCH=y
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
# CONFIG_TOUCHSCREEN_STMFTS is not set
CONFIG_TOUCHSCREEN_SUR40=y
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_SX8654 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_ZET6223 is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_TOUCHSCREEN_COLIBRI_VF50 is not set
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
# CONFIG_TOUCHSCREEN_IQS5XX is not set
# CONFIG_TOUCHSCREEN_IQS7211 is not set
# CONFIG_TOUCHSCREEN_ZINITIX is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX83112B is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_ATMEL_CAPTOUCH is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_E3X0_BUTTON is not set
# CONFIG_INPUT_PCSPKR is not set
# CONFIG_INPUT_MMA8450 is not set
# CONFIG_INPUT_APANEL is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_GPIO_VIBRA is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
CONFIG_INPUT_ATI_REMOTE2=y
CONFIG_INPUT_KEYSPAN_REMOTE=y
# CONFIG_INPUT_KXTJ9 is not set
CONFIG_INPUT_POWERMATE=y
CONFIG_INPUT_YEALINK=y
CONFIG_INPUT_CM109=y
# CONFIG_INPUT_REGULATOR_HAPTIC is not set
# CONFIG_INPUT_RETU_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_VIBRA is not set
CONFIG_INPUT_UINPUT=y
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA7280_HAPTICS is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_IBM_PANEL is not set
CONFIG_INPUT_IMS_PCU=y
# CONFIG_INPUT_IQS269A is not set
# CONFIG_INPUT_IQS626A is not set
# CONFIG_INPUT_IQS7222 is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not set
# CONFIG_INPUT_DRV2667_HAPTICS is not set
CONFIG_RMI4_CORE=y
# CONFIG_RMI4_I2C is not set
# CONFIG_RMI4_SPI is not set
# CONFIG_RMI4_SMB is not set
CONFIG_RMI4_F03=y
CONFIG_RMI4_F03_SERIO=y
CONFIG_RMI4_2D_SENSOR=y
CONFIG_RMI4_F11=y
CONFIG_RMI4_F12=y
CONFIG_RMI4_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_CT82C710 is not set
# 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_DEPRECATED_OPTIONS=y
CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set
# CONFIG_SERIAL_8250_FINTEK is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCILIB=y
CONFIG_SERIAL_8250_PCI=y
# CONFIG_SERIAL_8250_EXAR is not set
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_DWLIB=y
# 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_OF_PLATFORM is not set

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

CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
CONFIG_N_HDLC=y
# CONFIG_IPWIRELESS is not set
CONFIG_N_GSM=y
CONFIG_NOZOMI=y
CONFIG_NULL_TTY=y
CONFIG_HVC_DRIVER=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
CONFIG_TTY_PRINTK=y
CONFIG_TTY_PRINTK_LEVEL=6
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
# CONFIG_SSIF_IPMI_BMC is not set
# CONFIG_IPMB_DEVICE_INTERFACE is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_INTEL is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_BA431 is not set
# CONFIG_HW_RANDOM_VIA is not set
CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_CCTRNG is not set
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE 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_SLAVE is not set
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_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 is not set
# CONFIG_SPI_MICROCHIP_CORE_QSPI 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_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_AMD 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
# end of PTP clock support

# CONFIG_PINCTRL is not set
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_CADENCE is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_FTGPIO010 is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_GRANITERAPIDS is not set
# CONFIG_GPIO_GRGPIO is not set
# CONFIG_GPIO_HLWD is not set
# CONFIG_GPIO_ICH is not set
# CONFIG_GPIO_LOGICVC is not set
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_POLARFIRE_SOC is not set
# CONFIG_GPIO_SIFIVE is not set
# CONFIG_GPIO_SYSCON is not set
# CONFIG_GPIO_XILINX is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers

#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_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_ELKHARTLAKE is not set
CONFIG_GPIO_LJCA=y
# CONFIG_GPIO_TWL4030 is not set
# CONFIG_GPIO_WHISKEY_COVE is not set
# end of MFD GPIO expanders

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

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

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

#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_LATCH is not set
# CONFIG_GPIO_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_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_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_MT6360 is not set
# CONFIG_CHARGER_MT6370 is not set
# CONFIG_CHARGER_BQ2415X is not set
CONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_RT9467 is not set
# CONFIG_CHARGER_RT9471 is not set
# CONFIG_FUEL_GAUGE_STC3117 is not set
# CONFIG_CHARGER_UCS1002 is not set
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_UG3105 is not set
# CONFIG_FUEL_GAUGE_MM8013 is not set
CONFIG_HWMON=y
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM1177 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not set
CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=y
# CONFIG_SENSORS_AS370 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ASUS_ROG_RYUJIN is not set
# CONFIG_SENSORS_AXI_FAN_CONTROL is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_CHIPCAP2 is not set
CONFIG_SENSORS_CORSAIR_CPRO=y
CONFIG_SENSORS_CORSAIR_PSU=y
# CONFIG_SENSORS_DRIVETEMP is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_FTSTEUTATES is not set
CONFIG_SENSORS_GIGABYTE_WATERFORCE=y
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_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_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_LENOVO_EC is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2991 is not set
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_LTC4282 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX31760 is not set
# CONFIG_MAX31827 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MC34VR500 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_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_OXP is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_PT5161L is not set
# CONFIG_SENSORS_SBTSI is not set
# CONFIG_SENSORS_SBRMI is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC2305 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_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_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

#
# 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_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_ITCO_WDT is not set
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not set
# CONFIG_HP_WATCHDOG is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_NV_TCO is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not set
# CONFIG_VIA_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_MACHZ_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
# CONFIG_INTEL_MEI_WDT is not set
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set

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

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

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=y
# CONFIG_MFD_ADP5585 is not set
# CONFIG_MFD_ACT8945A is not set
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_SMPRO is not set
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_ATMEL_FLEXCOM is not set
# CONFIG_MFD_ATMEL_HLCDC is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CGBC is not set
# CONFIG_MFD_CS42L43_I2C is not set
# CONFIG_MFD_CS42L43_SDW is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_MFD_MAX5970 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_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_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_MAX77714 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_OCELOT is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_CPCAP is not set
CONFIG_MFD_VIPERBOARD=y
# CONFIG_MFD_NTXEC is not set
CONFIG_MFD_RETU=y
# CONFIG_MFD_PCF50633 is not set
# 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_CORE 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_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_WL1273_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_LOCHNAGAR 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_MFD_CS40L50_I2C is not set
# CONFIG_MFD_CS40L50_SPI 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
# 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_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_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_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_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_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_RASPBERRYPI_TOUCHSCREEN_ATTINY is not set
# CONFIG_REGULATOR_RT4801 is not set
# CONFIG_REGULATOR_RT4803 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_RTQ2134 is not set
# CONFIG_REGULATOR_RTMV20 is not set
# CONFIG_REGULATOR_RTQ6752 is not set
# CONFIG_REGULATOR_RTQ2208 is not set
# CONFIG_REGULATOR_SLG51000 is not set
# CONFIG_REGULATOR_SY8106A is not set
# CONFIG_REGULATOR_SY8824X is not set
# CONFIG_REGULATOR_SY8827N is not set
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS62360 is not set
# CONFIG_REGULATOR_TPS6286X is not set
# CONFIG_REGULATOR_TPS6287X is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_TPS65132 is not set
# CONFIG_REGULATOR_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_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_RADIO_WL1273 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_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

#
# Lens drivers
#
# CONFIG_VIDEO_AD5820 is not set
# CONFIG_VIDEO_AK7375 is not set
# CONFIG_VIDEO_DW9714 is not set
# CONFIG_VIDEO_DW9719 is not set
# CONFIG_VIDEO_DW9768 is not set
# CONFIG_VIDEO_DW9807_VCM is not set
# end of Lens drivers

#
# 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_KS0127 is not set
# CONFIG_VIDEO_MAX9286 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
CONFIG_VIDEO_SAA711X=y
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TC358746 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9900 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set

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

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

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

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

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

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

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

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

CONFIG_MEDIA_TUNER=y

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

#
# Customise DVB Frontends
#

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

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

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

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

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

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

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

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

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

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

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

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

#
# Graphics support
#
CONFIG_APERTURE_HELPERS=y
CONFIG_SCREEN_INFO=y
CONFIG_VIDEO=y
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not set
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
CONFIG_INTEL_GTT=y
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=y
CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_DEBUG_MM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_PANIC is not set
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
CONFIG_DRM_CLIENT=y
CONFIG_DRM_CLIENT_LIB=y
CONFIG_DRM_CLIENT_SELECTION=y
CONFIG_DRM_CLIENT_SETUP=y

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

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

#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips

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

# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
# CONFIG_DRM_I915_GVT_KVMGT is not set
# CONFIG_DRM_I915_DP_TUNNEL is not set

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

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

# CONFIG_DRM_XE is not set
CONFIG_DRM_VGEM=y
CONFIG_DRM_VKMS=y
CONFIG_DRM_VMWGFX=y
# CONFIG_DRM_VMWGFX_MKSSTATS is not set
# CONFIG_DRM_GMA500 is not set
CONFIG_DRM_UDL=y
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_QXL is not set
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VIRTIO_GPU_KMS=y
CONFIG_DRM_PANEL=y

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

CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_AUX_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_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_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_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_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_HISI_HIBMC is not set
# CONFIG_DRM_LOGICVC 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_SIMPLEDRM=y
# 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_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_DRM_VBOXVIDEO is not set
CONFIG_DRM_GUD=y
# CONFIG_DRM_SSD130X is not set
# CONFIG_DRM_WERROR is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

#
# Frame buffer Devices
#
CONFIG_FB=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_VGA16=y
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
CONFIG_FB_VIRTUAL=y
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_FB_SM712 is not set
CONFIG_FB_CORE=y
CONFIG_FB_NOTIFY=y
# CONFIG_FIRMWARE_EDID is not set
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_MODE_HELPERS is not set
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_KTD253 is not set
# CONFIG_BACKLIGHT_KTD2801 is not set
# CONFIG_BACKLIGHT_KTZ8866 is not set
# CONFIG_BACKLIGHT_MT6370 is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3509 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_PANDORA is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# CONFIG_BACKLIGHT_LED is not set
# end of Backlight & LCD device support

CONFIG_VGASTATE=y
CONFIG_VIDEOMODE_HELPERS=y
CONFIG_HDMI=y

#
# 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_VGA16=y
# CONFIG_LOGO_LINUX_CLUT224 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=y
CONFIG_SND_MAX_CARDS=32
CONFIG_SND_SUPPORT_OLD_API=y
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_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=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_SCODEC_COMPONENT=y
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_SPI is not set
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
# CONFIG_SND_HDA_CODEC_CS8409 is not set
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_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
# CONFIG_SND_HDA_CTL_DEV_ID is not set
# end of HD-Audio

CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_COMPONENT=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=0
CONFIG_SND_INTEL_NHLT=y
CONFIG_SND_INTEL_DSP_CONFIG=y
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=y
# 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_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_ADI is not set
# 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
# CONFIG_SND_SOC_AMD_RPL_ACP6x is not set
# CONFIG_SND_ATMEL_SOC is not set
# CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
# CONFIG_SND_DESIGNWARE_I2S is not set

#
# SoC Audio for Freescale CPUs
#

#
# 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 SoC Audio for Freescale CPUs

# CONFIG_SND_SOC_CHV3_I2S is not set
# CONFIG_SND_I2S_HI6210_I2S is not set

#
# SoC Audio for Loongson CPUs
#
# end of SoC Audio for Loongson CPUs

# CONFIG_SND_SOC_IMG is not set
# CONFIG_SND_SOC_INTEL_SST_TOPLEVEL is not set
# CONFIG_SND_SOC_INTEL_AVS is not set
# CONFIG_SND_SOC_MTK_BTCVSD is not set
CONFIG_SND_SOC_SDCA_OPTIONAL=y
# CONFIG_SND_SOC_SOF_TOPLEVEL is not set

#
# STMicroelectronics STM32 SOC audio support
#
# end of STMicroelectronics STM32 SOC audio support

# 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
# CONFIG_SND_SOC_XTFPGA_I2S 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_AW88261 is not set
# CONFIG_SND_SOC_AW88081 is not set
# CONFIG_SND_SOC_AW87390 is not set
# CONFIG_SND_SOC_AW88399 is not set
# CONFIG_SND_SOC_BD28623 is not set
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CHV3_CODEC is not set
# CONFIG_SND_SOC_CS35L32 is not set
# CONFIG_SND_SOC_CS35L33 is not set
# CONFIG_SND_SOC_CS35L34 is not set
# CONFIG_SND_SOC_CS35L35 is not set
# CONFIG_SND_SOC_CS35L36 is not set
# CONFIG_SND_SOC_CS35L41_SPI is not set
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_SPI is not set
# CONFIG_SND_SOC_CS35L45_I2C is not set
# CONFIG_SND_SOC_CS35L56_I2C is not set
# CONFIG_SND_SOC_CS35L56_SPI is not set
# CONFIG_SND_SOC_CS35L56_SDW is not set
# CONFIG_SND_SOC_CS42L42 is not set
# CONFIG_SND_SOC_CS42L42_SDW is not set
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS42L52 is not set
# CONFIG_SND_SOC_CS42L56 is not set
# CONFIG_SND_SOC_CS42L73 is not set
# CONFIG_SND_SOC_CS42L83 is not set
# CONFIG_SND_SOC_CS42L84 is not set
# CONFIG_SND_SOC_CS4234 is not set
# CONFIG_SND_SOC_CS4265 is not set
# CONFIG_SND_SOC_CS4270 is not set
# CONFIG_SND_SOC_CS4271_I2C is not set
# CONFIG_SND_SOC_CS4271_SPI is not set
# CONFIG_SND_SOC_CS42XX8_I2C is not set
# CONFIG_SND_SOC_CS43130 is not set
# CONFIG_SND_SOC_CS4341 is not set
# CONFIG_SND_SOC_CS4349 is not set
# CONFIG_SND_SOC_CS53L30 is not set
# CONFIG_SND_SOC_CS530X_I2C 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_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_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_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_RT5616 is not set
# CONFIG_SND_SOC_RT5631 is not set
# CONFIG_SND_SOC_RT5640 is not set
# CONFIG_SND_SOC_RT5659 is not set
# CONFIG_SND_SOC_RT5682_SDW is not set
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW is not set
# CONFIG_SND_SOC_RT721_SDCA_SDW is not set
# CONFIG_SND_SOC_RT722_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_RTQ9128 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not set
# CONFIG_SND_SOC_SGTL5000 is not set
# CONFIG_SND_SOC_SIMPLE_AMPLIFIER is not set
# CONFIG_SND_SOC_SIMPLE_MUX is not set
# CONFIG_SND_SOC_SMA1303 is not set
# CONFIG_SND_SOC_SMA1307 is not set
# CONFIG_SND_SOC_SPDIF is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2305 is not set
# CONFIG_SND_SOC_SSM2518 is not set
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM3515 is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not set
# CONFIG_SND_SOC_STA350 is not set
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not set
# CONFIG_SND_SOC_TAS2562 is not set
# CONFIG_SND_SOC_TAS2764 is not set
# CONFIG_SND_SOC_TAS2770 is not set
# CONFIG_SND_SOC_TAS2780 is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TAS5086 is not set
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not set
# CONFIG_SND_SOC_TFA989X is not set
# CONFIG_SND_SOC_TLV320ADC3XXX is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not set
# CONFIG_SND_SOC_TLV320ADCX140 is not set
# CONFIG_SND_SOC_TS3A227E is not set
# CONFIG_SND_SOC_TSCS42XX is not set
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_UDA1334 is not set
# CONFIG_SND_SOC_UDA1342 is not set
# CONFIG_SND_SOC_WCD937X_SDW is not set
# CONFIG_SND_SOC_WCD938X_SDW is not set
# CONFIG_SND_SOC_WCD939X_SDW is not set
# CONFIG_SND_SOC_WM8510 is not set
# CONFIG_SND_SOC_WM8523 is not set
# CONFIG_SND_SOC_WM8524 is not set
# CONFIG_SND_SOC_WM8580 is not set
# CONFIG_SND_SOC_WM8711 is not set
# CONFIG_SND_SOC_WM8728 is not set
# CONFIG_SND_SOC_WM8731_I2C is not set
# CONFIG_SND_SOC_WM8731_SPI is not set
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not set
# CONFIG_SND_SOC_WM8750 is not set
# CONFIG_SND_SOC_WM8753 is not set
# CONFIG_SND_SOC_WM8770 is not set
# CONFIG_SND_SOC_WM8776 is not set
# CONFIG_SND_SOC_WM8782 is not set
# CONFIG_SND_SOC_WM8804_I2C is not set
# CONFIG_SND_SOC_WM8804_SPI is not set
# CONFIG_SND_SOC_WM8903 is not set
# CONFIG_SND_SOC_WM8904 is not set
# CONFIG_SND_SOC_WM8940 is not set
# CONFIG_SND_SOC_WM8960 is not set
# CONFIG_SND_SOC_WM8961 is not set
# CONFIG_SND_SOC_WM8962 is not set
# CONFIG_SND_SOC_WM8974 is not set
# CONFIG_SND_SOC_WM8978 is not set
# CONFIG_SND_SOC_WM8985 is not set
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_WSA883X is not set
# CONFIG_SND_SOC_WSA884X is not set
# CONFIG_SND_SOC_ZL38060 is not set
# CONFIG_SND_SOC_MAX9759 is not set
# CONFIG_SND_SOC_MT6351 is not set
# CONFIG_SND_SOC_MT6357 is not set
# CONFIG_SND_SOC_MT6358 is not set
# CONFIG_SND_SOC_MT6660 is not set
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_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

# 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
CONFIG_SND_X86=y
# CONFIG_HDMI_LPE_AUDIO is not set
CONFIG_SND_VIRTIO=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
CONFIG_UHID=y
CONFIG_HID_GENERIC=y

#
# 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_ASUS=y
CONFIG_HID_AUREAL=y
CONFIG_HID_BELKIN=y
CONFIG_HID_BETOP_FF=y
CONFIG_HID_BIGBEN_FF=y
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
CONFIG_HID_CORSAIR=y
CONFIG_HID_COUGAR=y
CONFIG_HID_MACALLY=y
CONFIG_HID_PRODIKEYS=y
CONFIG_HID_CMEDIA=y
CONFIG_HID_CP2112=y
CONFIG_HID_CREATIVE_SB0540=y
CONFIG_HID_CYPRESS=y
CONFIG_HID_DRAGONRISE=y
CONFIG_DRAGONRISE_FF=y
CONFIG_HID_EMS_FF=y
CONFIG_HID_ELAN=y
CONFIG_HID_ELECOM=y
CONFIG_HID_ELO=y
CONFIG_HID_EVISION=y
CONFIG_HID_EZKEY=y
CONFIG_HID_FT260=y
CONFIG_HID_GEMBIRD=y
CONFIG_HID_GFRM=y
CONFIG_HID_GLORIOUS=y
CONFIG_HID_HOLTEK=y
CONFIG_HOLTEK_FF=y
CONFIG_HID_VIVALDI_COMMON=y
# CONFIG_HID_GOODIX_SPI is not set
CONFIG_HID_GOOGLE_STADIA_FF=y
CONFIG_HID_VIVALDI=y
CONFIG_HID_GT683R=y
CONFIG_HID_KEYTOUCH=y
CONFIG_HID_KYE=y
# CONFIG_HID_KYSONA is not set
CONFIG_HID_UCLOGIC=y
CONFIG_HID_WALTOP=y
CONFIG_HID_VIEWSONIC=y
CONFIG_HID_VRC2=y
CONFIG_HID_XIAOMI=y
CONFIG_HID_GYRATION=y
CONFIG_HID_ICADE=y
CONFIG_HID_ITE=y
CONFIG_HID_JABRA=y
CONFIG_HID_TWINHAN=y
CONFIG_HID_KENSINGTON=y
CONFIG_HID_LCPOWER=y
CONFIG_HID_LED=y
CONFIG_HID_LENOVO=y
CONFIG_HID_LETSKETCH=y
CONFIG_HID_LOGITECH=y
CONFIG_HID_LOGITECH_DJ=y
CONFIG_HID_LOGITECH_HIDPP=y
CONFIG_LOGITECH_FF=y
CONFIG_LOGIRUMBLEPAD2_FF=y
CONFIG_LOGIG940_FF=y
CONFIG_LOGIWHEELS_FF=y
CONFIG_HID_MAGICMOUSE=y
CONFIG_HID_MALTRON=y
CONFIG_HID_MAYFLASH=y
CONFIG_HID_MEGAWORLD_FF=y
CONFIG_HID_REDRAGON=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MONTEREY=y
CONFIG_HID_MULTITOUCH=y
CONFIG_HID_NINTENDO=y
CONFIG_NINTENDO_FF=y
CONFIG_HID_NTI=y
CONFIG_HID_NTRIG=y
CONFIG_HID_NVIDIA_SHIELD=y
CONFIG_NVIDIA_SHIELD_FF=y
CONFIG_HID_ORTEK=y
CONFIG_HID_PANTHERLORD=y
CONFIG_PANTHERLORD_FF=y
CONFIG_HID_PENMOUNT=y
CONFIG_HID_PETALYNX=y
CONFIG_HID_PICOLCD=y
CONFIG_HID_PICOLCD_FB=y
CONFIG_HID_PICOLCD_BACKLIGHT=y
CONFIG_HID_PICOLCD_LCD=y
CONFIG_HID_PICOLCD_LEDS=y
CONFIG_HID_PICOLCD_CIR=y
CONFIG_HID_PLANTRONICS=y
CONFIG_HID_PLAYSTATION=y
CONFIG_PLAYSTATION_FF=y
CONFIG_HID_PXRC=y
CONFIG_HID_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_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
# 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

#
# 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_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_EHCI_FSL=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
CONFIG_USB_OXU210HP_HCD=y
CONFIG_USB_ISP116X_HCD=y
CONFIG_USB_MAX3421_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_SSB is not set
CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_SL811_HCD=y
CONFIG_USB_SL811_HCD_ISO=y
CONFIG_USB_SL811_CS=y
CONFIG_USB_R8A66597_HCD=y
CONFIG_USB_HCD_BCMA=y
CONFIG_USB_HCD_SSB=y
# CONFIG_USB_HCD_TEST_MODE is not set

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

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

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

#
# USB dual-mode controller drivers
#
CONFIG_USB_CDNS_SUPPORT=y
CONFIG_USB_CDNS_HOST=y
CONFIG_USB_CDNS3=y
CONFIG_USB_CDNS3_GADGET=y
CONFIG_USB_CDNS3_HOST=y
CONFIG_USB_CDNS3_PCI_WRAP=y
CONFIG_USB_CDNSP_PCI=y
CONFIG_USB_CDNSP_GADGET=y
CONFIG_USB_CDNSP_HOST=y
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_GADGET is not set
CONFIG_USB_MUSB_DUAL_ROLE=y

#
# Platform Glue Layer
#

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

#
# Platform Glue Driver Support
#
CONFIG_USB_DWC3_PCI=y
CONFIG_USB_DWC3_HAPS=y
CONFIG_USB_DWC3_OF_SIMPLE=y
CONFIG_USB_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_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_MV_UDC=y
CONFIG_USB_MV_U3D=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_NET2272=y
CONFIG_USB_NET2272_DMA=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_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_AW200XX is not set
# CONFIG_LEDS_AW2013 is not set
# CONFIG_LEDS_BCM6328 is not set
# CONFIG_LEDS_BCM6358 is not set
# CONFIG_LEDS_CHT_WCOVE is not set
# CONFIG_LEDS_CR0014114 is not set
# CONFIG_LEDS_EL15203000 is not set
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_LM3692X is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not set
# CONFIG_LEDS_LP55XX_COMMON is not set
# CONFIG_LEDS_LP8860 is not set
# CONFIG_LEDS_LP8864 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_PCA995X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_REGULATOR is not set
# CONFIG_LEDS_BD2606MVV is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
# CONFIG_LEDS_IS31FL319X is not set
# CONFIG_LEDS_IS31FL32XX is not set

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

#
# Flash and Torch LED drivers
#

#
# RGB LED drivers
#
# CONFIG_LEDS_GROUP_MULTICOLOR is not set
# CONFIG_LEDS_KTD202X is not set
# CONFIG_LEDS_NCP5623 is not set
# CONFIG_LEDS_MT6370_RGB is not set

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

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

#
# Simple LED drivers
#
# CONFIG_ACCESSIBILITY is not set
CONFIG_INFINIBAND=y
CONFIG_INFINIBAND_USER_MAD=y
CONFIG_INFINIBAND_USER_ACCESS=y
CONFIG_INFINIBAND_USER_MEM=y
CONFIG_INFINIBAND_ON_DEMAND_PAGING=y
CONFIG_INFINIBAND_ADDR_TRANS=y
CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y
CONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_EFA is not set
# CONFIG_INFINIBAND_ERDMA is not set
CONFIG_MLX4_INFINIBAND=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_VMWARE_PVRDMA is not set
# CONFIG_INFINIBAND_RDMAVT is not set
CONFIG_RDMA_RXE=y
CONFIG_RDMA_SIW=y
CONFIG_INFINIBAND_IPOIB=y
CONFIG_INFINIBAND_IPOIB_CM=y
CONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
CONFIG_INFINIBAND_SRP=y
# CONFIG_INFINIBAND_SRPT is not set
CONFIG_INFINIBAND_ISER=y
CONFIG_INFINIBAND_RTRS=y
CONFIG_INFINIBAND_RTRS_CLIENT=y
# CONFIG_INFINIBAND_RTRS_SERVER is not set
# CONFIG_INFINIBAND_OPA_VNIC is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
# CONFIG_EDAC_LEGACY_SYSFS is not set
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_DECODE_MCE 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_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_PCF85063 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_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

#
# HID Sensor RTC drivers
#
CONFIG_RTC_DRV_HID_SENSOR_TIME=y
# CONFIG_RTC_DRV_GOLDFISH is not set
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_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_MOVE_NOTIFY=y
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not set
CONFIG_DMABUF_HEAPS=y
# CONFIG_DMABUF_SYSFS_STATS is not set
CONFIG_DMABUF_HEAPS_SYSTEM=y
CONFIG_DMABUF_HEAPS_CMA=y
# end of DMABUF options

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

#
# VFIO support for PCI devices
#
CONFIG_VFIO_PCI_CORE=y
CONFIG_VFIO_PCI_MMAP=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_VDPA=y
CONFIG_VDPA_SIM=y
CONFIG_VDPA_SIM_NET=y
CONFIG_VDPA_SIM_BLOCK=y
# 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

#
# 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 is not set
# CONFIG_COMEDI_PCI_DRIVERS is not set
# CONFIG_COMEDI_PCMCIA_DRIVERS 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_8255_SA is not set
# CONFIG_COMEDI_KCOMEDILIB is not set
# CONFIG_COMEDI_TESTS is not set
CONFIG_STAGING=y
# CONFIG_RTL8723BS is not set

#
# IIO staging drivers
#

#
# Accelerometers
#
# CONFIG_ADIS16203 is not set
# CONFIG_ADIS16240 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_GPIB 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_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
# CONFIG_SURFACE_AGGREGATOR is not set
CONFIG_X86_PLATFORM_DEVICES=y
CONFIG_ACPI_WMI=y
CONFIG_WMI_BMOF=y
# CONFIG_HUAWEI_WMI is not set
# CONFIG_MXM_WMI is not set
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
# CONFIG_YOGABOOK is not set
# CONFIG_YT2_1380 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_3D_VCACHE is not set
# CONFIG_AMD_WBRF 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_WMI=y
# CONFIG_ASUS_NB_WMI is not set
CONFIG_ASUS_TF103C_DOCK=y
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_IDEAPAD_LAPTOP is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_THINKPAD_LMI 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_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_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_BARCO_P50_GPIO 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_MLX_PLATFORM is not set
# CONFIG_INSPUR_PLATFORM_PROFILE is not set
# CONFIG_LENOVO_WMI_CAMERA 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_P2SB=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI514 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_SI570 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CDCE925 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_CLK_TWL is not set
# CONFIG_COMMON_CLK_AXI_CLKGEN is not set
# CONFIG_COMMON_CLK_RS9_PCIE is not set
# CONFIG_COMMON_CLK_SI521XX is not set
# CONFIG_COMMON_CLK_VC3 is not set
# CONFIG_COMMON_CLK_VC5 is not set
# CONFIG_COMMON_CLK_VC7 is not set
# CONFIG_COMMON_CLK_FIXED_MMIO is not set
# CONFIG_CLK_LGM_CGU is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set
# CONFIG_HWSPINLOCK is not set

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

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

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

# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_OF_IOMMU=y
CONFIG_IOMMU_DMA=y
CONFIG_IOMMU_SVA=y
CONFIG_IOMMU_IOPF=y
# CONFIG_AMD_IOMMU 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_FLOPPY_WA=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

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

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

CONFIG_SOUNDWIRE=y

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

#
# SOC (System On Chip) specific Drivers
#

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

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

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

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

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

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

# CONFIG_WPCM450_SOC is not set

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

# CONFIG_SOC_TI is not set

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

#
# PM Domains
#

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

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

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

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

# CONFIG_PM_DEVFREQ is not set
CONFIG_EXTCON=y

#
# Extcon Device Drivers
#
# CONFIG_EXTCON_ADC_JACK is not set
# CONFIG_EXTCON_FSA9480 is not set
# CONFIG_EXTCON_GPIO is not set
# CONFIG_EXTCON_INTEL_INT3496 is not set
CONFIG_EXTCON_INTEL_CHT_WC=y
# CONFIG_EXTCON_LC824206XA is not set
# CONFIG_EXTCON_MAX3355 is not set
CONFIG_EXTCON_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_AD4130 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_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_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_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_PAC1921 is not set
# CONFIG_PAC1934 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_ADC12138 is not set
# CONFIG_TI_ADC108S102 is not set
# CONFIG_TI_ADC128S052 is not set
# CONFIG_TI_ADC161S626 is not set
# CONFIG_TI_ADS1015 is not set
# CONFIG_TI_ADS1119 is not set
# CONFIG_TI_ADS7924 is not set
# CONFIG_TI_ADS1100 is not set
# CONFIG_TI_ADS1298 is not set
# CONFIG_TI_ADS7950 is not set
# CONFIG_TI_ADS8344 is not set
# CONFIG_TI_ADS8688 is not set
# CONFIG_TI_ADS124S08 is not set
# CONFIG_TI_ADS131E08 is not set
# CONFIG_TI_LMP92064 is not set
# CONFIG_TI_TLC4541 is not set
# CONFIG_TI_TSC2046 is not set
# CONFIG_TWL4030_MADC is not set
# CONFIG_TWL6030_GPADC is not set
# CONFIG_VF610_ADC is not set
CONFIG_VIPERBOARD_ADC=y
# CONFIG_XILINX_XADC is not set
# end of Analog to digital converters

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

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

#
# Amplifiers
#
# CONFIG_AD8366 is not set
# CONFIG_ADA4250 is not set
# CONFIG_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_PMS7003 is not set
# CONFIG_SCD30_CORE is not set
# CONFIG_SCD4X 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_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 is not set
# CONFIG_AD5449 is not set
# CONFIG_AD5592R is not set
# CONFIG_AD5593R is not set
# CONFIG_AD5504 is not set
# CONFIG_AD5624R_SPI is not set
# CONFIG_AD9739A is not set
# CONFIG_LTC2688 is not set
# CONFIG_AD5686_SPI is not set
# CONFIG_AD5696_I2C is not set
# CONFIG_AD5755 is not set
# CONFIG_AD5758 is not set
# CONFIG_AD5761 is not set
# CONFIG_AD5764 is not set
# CONFIG_AD5766 is not set
# CONFIG_AD5770R is not set
# CONFIG_AD5791 is not set
# CONFIG_AD7293 is not set
# CONFIG_AD7303 is not set
# CONFIG_AD8460 is not set
# CONFIG_AD8801 is not set
# CONFIG_BD79703 is not set
# CONFIG_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_MAX5522 is not set
# CONFIG_MAX5821 is not set
# CONFIG_MCP4725 is not set
# CONFIG_MCP4728 is not set
# CONFIG_MCP4821 is not set
# CONFIG_MCP4922 is not set
# CONFIG_TI_DAC082S085 is not set
# CONFIG_TI_DAC5571 is not set
# CONFIG_TI_DAC7311 is not set
# CONFIG_TI_DAC7612 is not set
# CONFIG_VF610_DAC is not set
# end of Digital to analog converters

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

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

#
# Frequency Synthesizers DDS/PLL
#

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

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

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

#
# Health Sensors
#

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

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

#
# Inertial measurement units
#
# CONFIG_ADIS16400 is not set
# CONFIG_ADIS16460 is not set
# CONFIG_ADIS16475 is not set
# CONFIG_ADIS16480 is not set
# CONFIG_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_MPU6050_I2C is not set
# CONFIG_INV_MPU6050_SPI is not set
# CONFIG_SMI240 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_AL3010 is not set
# CONFIG_AL3320A is not set
# CONFIG_APDS9300 is not set
# CONFIG_APDS9306 is not set
# CONFIG_APDS9960 is not set
# CONFIG_AS73211 is not set
# CONFIG_BH1745 is not set
# CONFIG_BH1750 is not set
# CONFIG_BH1780 is not set
# CONFIG_CM32181 is not set
# CONFIG_CM3232 is not set
# CONFIG_CM3323 is not set
# CONFIG_CM3605 is not set
# CONFIG_CM36651 is not set
# CONFIG_GP2AP002 is not set
# CONFIG_GP2AP020A00F is not set
# CONFIG_SENSORS_ISL29018 is not set
# CONFIG_SENSORS_ISL29028 is not set
# CONFIG_ISL29125 is not set
# CONFIG_ISL76682 is not set
CONFIG_HID_SENSOR_ALS=y
CONFIG_HID_SENSOR_PROX=y
# CONFIG_JSA1212 is not set
# CONFIG_ROHM_BU27034 is not set
# CONFIG_RPR0521 is not set
# CONFIG_LTR390 is not set
# CONFIG_LTR501 is not set
# CONFIG_LTRF216A is not set
# CONFIG_LV0104CS is not set
# CONFIG_MAX44000 is not set
# CONFIG_MAX44009 is not set
# CONFIG_NOA1305 is not set
# CONFIG_OPT3001 is not set
# CONFIG_OPT4001 is not set
# CONFIG_OPT4060 is not set
# CONFIG_PA12203001 is not set
# CONFIG_SI1133 is not set
# CONFIG_SI1145 is not set
# CONFIG_STK3310 is not set
# CONFIG_ST_UVIS25 is not set
# CONFIG_TCS3414 is not set
# CONFIG_TCS3472 is not set
# CONFIG_SENSORS_TSL2563 is not set
# CONFIG_TSL2583 is not set
# CONFIG_TSL2591 is not set
# CONFIG_TSL2772 is not set
# CONFIG_TSL4531 is not set
# CONFIG_US5182D is not set
# CONFIG_VCNL4000 is not set
# CONFIG_VCNL4035 is not set
# CONFIG_VEML3235 is not set
# CONFIG_VEML6030 is not set
# CONFIG_VEML6040 is not set
# CONFIG_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_IIO_ST_MAGN_3AXIS 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_TI_TMAG5273 is not set
# CONFIG_YAMAHA_YAS530 is not set
# end of Magnetometer sensors

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

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

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

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

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

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

#
# Pressure sensors
#
# CONFIG_ABP060MG is not set
# CONFIG_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 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
# end of Pressure sensors

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

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

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

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

# CONFIG_NTB is not set
# CONFIG_PWM is not set

#
# IRQ chip support
#
CONFIG_IRQCHIP=y
# CONFIG_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_USB_LGM_PHY=y
# CONFIG_PHY_CAN_TRANSCEIVER is not set
# CONFIG_PHY_NXP_PTN3222 is not set

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

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

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

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

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

#
# Android
#
CONFIG_ANDROID_BINDER_IPC=y
# CONFIG_ANDROID_BINDERFS is not set
CONFIG_ANDROID_BINDER_DEVICES="binder0,binder1"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# 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_NVDIMM_KEYS=y
# CONFIG_NVDIMM_SECURITY_TEST is not set
CONFIG_DAX=y
CONFIG_DEV_DAX=y
# CONFIG_DEV_DAX_PMEM is not set
# CONFIG_DEV_DAX_KMEM is not set
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
CONFIG_NVMEM_LAYOUTS=y

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

# CONFIG_NVMEM_RMEM is not set
# CONFIG_NVMEM_U_BOOT_ENV is not set

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

# CONFIG_FPGA is not set
# CONFIG_FSI is not set
CONFIG_TEE=y
# CONFIG_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_EXT3_FS=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_SUPPORT_V4 is not set
# CONFIG_XFS_SUPPORT_ASCII_CI is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_ONLINE_SCRUB is not set
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_BTRFS_FS_REF_VERIFY=y
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_BCACHEFS_FS=y
CONFIG_BCACHEFS_QUOTA=y
CONFIG_BCACHEFS_ERASURE_CODING=y
CONFIG_BCACHEFS_POSIX_ACL=y
CONFIG_BCACHEFS_DEBUG=y
# CONFIG_BCACHEFS_INJECT_TRANSACTION_RESTARTS is not set
# CONFIG_BCACHEFS_TESTS is not set
# CONFIG_BCACHEFS_LOCK_TIME_STATS is not set
# CONFIG_BCACHEFS_NO_LATENCY_ACCT is not set
CONFIG_BCACHEFS_SIX_OPTIMISTIC_SPIN=y
# CONFIG_BCACHEFS_PATH_TRACEPOINTS is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_ENCRYPTION_INLINE_CRYPT is not set
CONFIG_FS_VERITY=y
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
CONFIG_FUSE_FS=y
CONFIG_CUSE=y
CONFIG_VIRTIO_FS=y
CONFIG_FUSE_DAX=y
# CONFIG_FUSE_PASSTHROUGH is not set
# CONFIG_FUSE_IO_URING is not set
CONFIG_OVERLAY_FS=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
CONFIG_OVERLAY_FS_INDEX=y
# CONFIG_OVERLAY_FS_NFS_EXPORT is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
CONFIG_OVERLAY_FS_DEBUG=y

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

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

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

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

CONFIG_MISC_FILESYSTEMS=y
CONFIG_ORANGEFS_FS=y
CONFIG_ADFS_FS=y
# CONFIG_ADFS_FS_RW is not set
CONFIG_AFFS_FS=y
CONFIG_ECRYPT_FS=y
CONFIG_ECRYPT_FS_MESSAGING=y
CONFIG_HFS_FS=y
CONFIG_HFSPLUS_FS=y
CONFIG_BEFS_FS=y
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=y
CONFIG_EFS_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_FS_XATTR=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_RUBIN=y
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UBIFS_ATIME_SUPPORT=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y
# CONFIG_UBIFS_FS_AUTHENTICATION is not set
CONFIG_CRAMFS=y
CONFIG_CRAMFS_BLOCKDEV=y
CONFIG_CRAMFS_MTD=y
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_MULTI=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set
# CONFIG_SQUASHFS_COMPILE_DECOMP_SINGLE is not set
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI=y
# CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU is not set
# CONFIG_SQUASHFS_MOUNT_DECOMP_THREADS is not set
CONFIG_SQUASHFS_XATTR=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_VXFS_FS=y
CONFIG_MINIX_FS=y
CONFIG_OMFS_FS=y
CONFIG_HPFS_FS=y
CONFIG_QNX4FS_FS=y
CONFIG_QNX6FS_FS=y
# CONFIG_QNX6FS_DEBUG is not set
CONFIG_ROMFS_FS=y
# CONFIG_ROMFS_BACKED_BY_BLOCK is not set
# CONFIG_ROMFS_BACKED_BY_MTD is not set
CONFIG_ROMFS_BACKED_BY_BOTH=y
CONFIG_ROMFS_ON_BLOCK=y
CONFIG_ROMFS_ON_MTD=y
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_PSTORE_BLK is not set
CONFIG_SYSV_FS=y
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_ONDEMAND is not set
# CONFIG_EROFS_FS_PCPU_KTHREAD 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_1=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_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
# CONFIG_NFS_LOCALIO is not set
CONFIG_NFS_V4_2_SSC_HELPER=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_SUNRPC_BACKCHANNEL=y
CONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1 is not set
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA is not set
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2 is not set
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_SUNRPC_XPRT_RDMA is not set
CONFIG_CEPH_FS=y
CONFIG_CEPH_FSCACHE=y
CONFIG_CEPH_FS_POSIX_ACL=y
# CONFIG_CEPH_FS_SECURITY_LABEL is not set
CONFIG_CIFS=y
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
CONFIG_CIFS_DFS_UPCALL=y
CONFIG_CIFS_SWN_UPCALL=y
CONFIG_CIFS_SMB_DIRECT=y
CONFIG_CIFS_FSCACHE=y
# CONFIG_CIFS_ROOT is not set
# CONFIG_CIFS_COMPRESSION is not set
CONFIG_SMB_SERVER=y
# CONFIG_SMB_SERVER_SMBDIRECT is not set
# CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN is not set
# CONFIG_SMB_SERVER_KERBEROS5 is not set
CONFIG_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_UNICODE_NORMALIZATION_SELFTEST is not set
CONFIG_IO_WQ=y
# end of File systems

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

#
# No trust source selected!
#
CONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
CONFIG_KEY_DH_OPERATIONS=y
CONFIG_KEY_NOTIFICATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set
CONFIG_PROC_MEM_ALWAYS_FORCE=y
# CONFIG_PROC_MEM_FORCE_PTRACE is not set
# CONFIG_PROC_MEM_NO_FORCE is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
CONFIG_LSM_MMAP_MIN_ADDR=65536
CONFIG_HARDENED_USERCOPY=y
CONFIG_FORTIFY_SOURCE=y
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
# CONFIG_SECURITY_SELINUX_DEBUG is not set
# CONFIG_SECURITY_SMACK is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=64
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=32
CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER=y
CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_ADD_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,selinux,bpf"

#
# Kernel hardening options
#

#
# Memory initialization
#
CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_BARE=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not set
CONFIG_INIT_STACK_ALL_ZERO=y
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization

#
# Hardening of kernel data structures
#
CONFIG_LIST_HARDENED=y
CONFIG_BUG_ON_DATA_CORRUPTION=y
# end of Hardening of kernel data structures

CONFIG_RANDSTRUCT_NONE=y
# end of Kernel hardening options
# end of Security options

CONFIG_XOR_BLOCKS=y
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_RNG_DEFAULT=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_KPP=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
CONFIG_CRYPTO_USER=y
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
CONFIG_CRYPTO_PCRYPT=y
CONFIG_CRYPTO_CRYPTD=y
CONFIG_CRYPTO_AUTHENC=y
# CONFIG_CRYPTO_TEST is not set
CONFIG_CRYPTO_SIMD=y
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=y
CONFIG_CRYPTO_ECRDSA=y
CONFIG_CRYPTO_CURVE25519=y
# end of Public-key cryptography

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

#
# Length-preserving ciphers and modes
#
CONFIG_CRYPTO_ADIANTUM=y
CONFIG_CRYPTO_ARC4=y
CONFIG_CRYPTO_CHACHA20=y
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
CONFIG_CRYPTO_HCTR2=y
CONFIG_CRYPTO_LRW=y
CONFIG_CRYPTO_PCBC=y
CONFIG_CRYPTO_XCTR=y
CONFIG_CRYPTO_XTS=y
CONFIG_CRYPTO_NHPOLY1305=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=y
CONFIG_CRYPTO_CMAC=y
CONFIG_CRYPTO_GHASH=y
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_MICHAEL_MIC=y
CONFIG_CRYPTO_POLYVAL=y
CONFIG_CRYPTO_POLY1305=y
CONFIG_CRYPTO_RMD160=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_SHA3=y
CONFIG_CRYPTO_SM3=y
# CONFIG_CRYPTO_SM3_GENERIC is not set
CONFIG_CRYPTO_STREEBOG=y
CONFIG_CRYPTO_WP512=y
CONFIG_CRYPTO_XCBC=y
CONFIG_CRYPTO_XXHASH=y
# end of Hashes, digests, and MACs

#
# CRCs (cyclic redundancy checks)
#
CONFIG_CRYPTO_CRC32C=y
CONFIG_CRYPTO_CRC32=y
# CONFIG_CRYPTO_CRCT10DIF is not set
CONFIG_CRYPTO_CRC64_ROCKSOFT=y
# 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_ANSI_CPRNG=y
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
CONFIG_CRYPTO_DRBG_HASH=y
CONFIG_CRYPTO_DRBG_CTR=y
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKS=64
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKSIZE=32
CONFIG_CRYPTO_JITTERENTROPY_OSR=1
CONFIG_CRYPTO_KDF800108_CTR=y
# end of Random number generation

#
# Userspace interface
#
CONFIG_CRYPTO_USER_API=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
CONFIG_CRYPTO_USER_API_RNG=y
# CONFIG_CRYPTO_USER_API_RNG_CAVP is not set
CONFIG_CRYPTO_USER_API_AEAD=y
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
# end of Userspace interface

CONFIG_CRYPTO_HASH_INFO=y

#
# Accelerated Cryptographic Algorithms for CPU (x86)
#
CONFIG_CRYPTO_CURVE25519_X86=y
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_DES3_EDE_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_CHACHA20_X86_64=y
CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=y
CONFIG_CRYPTO_NHPOLY1305_SSE2=y
CONFIG_CRYPTO_NHPOLY1305_AVX2=y
CONFIG_CRYPTO_BLAKE2S_X86=y
CONFIG_CRYPTO_POLYVAL_CLMUL_NI=y
CONFIG_CRYPTO_POLY1305_X86_64=y
CONFIG_CRYPTO_SHA1_SSSE3=y
CONFIG_CRYPTO_SHA256_SSSE3=y
CONFIG_CRYPTO_SHA512_SSSE3=y
CONFIG_CRYPTO_SM3_AVX_X86_64=y
CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=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_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_DH895xCCVF=y
CONFIG_CRYPTO_DEV_QAT_C3XXXVF=y
CONFIG_CRYPTO_DEV_QAT_C62XVF=y
# CONFIG_CRYPTO_DEV_QAT_ERROR_INJECTION is not set
CONFIG_CRYPTO_DEV_VIRTIO=y
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
# CONFIG_CRYPTO_DEV_CCREE is not set
# CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
CONFIG_X509_CERTIFICATE_PARSER=y
CONFIG_PKCS8_PRIVATE_KEY_PARSER=y
CONFIG_PKCS7_MESSAGE_PARSER=y
CONFIG_PKCS7_TEST_KEY=y
CONFIG_SIGNED_PE_FILE_VERIFICATION=y
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set

#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
# CONFIG_MODULE_SIG_KEY_TYPE_RSA is not set
CONFIG_MODULE_SIG_KEY_TYPE_ECDSA=y
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
# end of Certificates for signature checking

CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_RAID6_PQ=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_ARCH_USE_SYM_ANNOTATIONS=y

#
# Crypto library routines
#
CONFIG_CRYPTO_LIB_UTILS=y
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_LIB_ARC4=y
CONFIG_CRYPTO_LIB_GF128MUL=y
CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=y
CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y
CONFIG_CRYPTO_LIB_CHACHA_GENERIC=y
CONFIG_CRYPTO_LIB_CHACHA=y
CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
CONFIG_CRYPTO_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=y
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y
CONFIG_CRYPTO_LIB_POLY1305=y
CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
CONFIG_CRYPTO_LIB_SHA1=y
CONFIG_CRYPTO_LIB_SHA256=y
# end of Crypto library routines

CONFIG_CRC_CCITT=y
CONFIG_CRC16=y
CONFIG_CRC_T10DIF=y
CONFIG_ARCH_HAS_CRC_T10DIF=y
CONFIG_CRC_T10DIF_ARCH=y
CONFIG_CRC64_ROCKSOFT=y
CONFIG_CRC_ITU_T=y
CONFIG_CRC32=y
CONFIG_ARCH_HAS_CRC32=y
CONFIG_CRC32_ARCH=y
CONFIG_CRC64=y
CONFIG_CRC4=y
CONFIG_CRC7=y
CONFIG_LIBCRC32C=y
CONFIG_CRC8=y
CONFIG_CRC_OPTIMIZATIONS=y
CONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_ARM64=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_RISCV=y
# CONFIG_XZ_DEC_MICROLZMA is not set
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_DECOMPRESS_ZSTD=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_REED_SOLOMON=y
CONFIG_REED_SOLOMON_DEC8=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=y
CONFIG_TEXTSEARCH_BM=y
CONFIG_TEXTSEARCH_FSM=y
CONFIG_INTERVAL_TREE=y
CONFIG_INTERVAL_TREE_SPAN_ITER=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_CLOSURES=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DMA_OPS_HELPERS=y
CONFIG_NEED_SG_DMA_FLAGS=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_DMA_DECLARE_COHERENT=y
CONFIG_SWIOTLB=y
# CONFIG_SWIOTLB_DYNAMIC is not set
CONFIG_DMA_NEED_SYNC=y
# CONFIG_DMA_RESTRICTED_POOL is not set
CONFIG_DMA_CMA=y
# CONFIG_DMA_NUMA_CMA is not set

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_CPUMASK_OFFSTACK is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_DIMLIB=y
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=y
CONFIG_HAVE_GENERIC_VDSO=y
CONFIG_GENERIC_GETTIMEOFDAY=y
CONFIG_GENERIC_VDSO_TIME_NS=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
CONFIG_MIN_HEAP=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
# 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_SPLIT is not set
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_PAHOLE_HAS_SPLIT_BTF=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_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set
CONFIG_OBJTOOL=y
CONFIG_NOINSTR_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options

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

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

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

# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Oops, Lockups and Hangs
#
CONFIG_PANIC_ON_OOPS=y
CONFIG_PANIC_ON_OOPS_VALUE=1
CONFIG_PANIC_TIMEOUT=86400
CONFIG_LOCKUP_DETECTOR=y
CONFIG_SOFTLOCKUP_DETECTOR=y
# CONFIG_SOFTLOCKUP_DETECTOR_INTR_STORM is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
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=y
CONFIG_WQ_WATCHDOG=y
# 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_DEBUG is not set
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
# end of Scheduler Debugging

CONFIG_DEBUG_PREEMPT=y

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

CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACE_IRQFLAGS_NMI=y
CONFIG_NMI_CHECK_CPU=y
CONFIG_DEBUG_IRQFLAGS=y
CONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
# 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_FTRACE_MCOUNT_RECORD=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_BOOTTIME_TRACING is not set
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_UPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
CONFIG_PROBE_EVENTS=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_USER_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
CONFIG_TRACE_EVENT_INJECT=y
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS=y
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_RV is not set
CONFIG_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_CC_HAS_SANCOV_TRACE_PC=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_MIN_HEAP 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_PRINTF is not set
# CONFIG_TEST_SCANF is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_UUID 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_BPF is not set
# CONFIG_TEST_BLACKHOLE_DEV is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_HMM is not set
# CONFIG_TEST_FREE_PAGES is not set
# CONFIG_TEST_CLOCKSOURCE_WATCHDOG is not set
# CONFIG_TEST_OBJPOOL is not set
CONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage

#
# Rust hacking
#
# end of Rust hacking
# end of Kernel hacking
KernelRepo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 4681893993250816
ReproOpts {"procs":1,"slowdown":1,"sandbox":"","sandbox_arg":0,"close_fds":false}
ReproSyzID 4838090478190592
SyzkallerCommit c3901742785ff25afdc6f470af7b25b69d7c4f2f
TargetArch amd64
TargetOS linux

Current Stage: moderation
Next Stage: upstream

Reporting Stages and Comments:
Stage Source Reported At Ext ID Comments
moderation lore 2026/06/15 16:39 <46506931-ba8f-4048-ab27-9777411db2fe@mail.kernel.org>
4 Comments
  • syzbot@kernel.org (2026/06/15 16:44):
    In drm_mode_create_lease_ioctl(), a user-controlled object_count is used to
    allocate memory for object_ids and objects. If a user provides a very large
    object_count (e.g., 1,000,000), the kernel attempts to allocate a
    contiguous memory chunk that exceeds the maximum allowed size by the slab
    allocator (KMALLOC_MAX_SIZE).
    
    For the objects array, kzalloc_objs() is used, which expands to a standard
    kzalloc() call without the __GFP_NOWARN flag. When the requested size
    exceeds KMALLOC_MAX_SIZE, the SLUB allocator passes the request to the page
    allocator, which triggers a WARN_ON_ONCE_GFP because the required page
    order is greater than MAX_PAGE_ORDER:
    
    WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380
    mm/page_alloc.c:5197
    Call Trace:
     <TASK>
     alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
     ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
     __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
     __do_kmalloc_node mm/slub.c:5284 [inline]
     __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
     kmalloc_noprof include/linux/slab.h:954 [inline]
     kzalloc_noprof include/linux/slab.h:1188 [inline]
     fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
     drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
    
    To fix this, replace memdup_array_user() with vmemdup_array_user() and
    kzalloc_objs() with kvcalloc(), along with changing their respective
    kfree() calls to kvfree(). The kvmalloc family of functions attempts a
    kmalloc() first with __GFP_NOWARN applied internally, and gracefully falls
    back to vmalloc() for large allocations. This prevents the kernel warning
    and makes the allocations more robust against memory fragmentation,
    gracefully returning -ENOMEM if the system cannot satisfy the request.
    
    Fixes: 62884cd386b8 ("drm: Add four ioctls for managing drm mode object leases [v7]")
    Assisted-by: Gemini:gemini-3.1-pro-preview syzbot
    Reported-by: syzbot+03fb58296859d8dbab4d@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=03fb58296859d8dbab4d
    Link: https://syzkaller.appspot.com/ai_job?id=73f2715e-0f0e-4924-ad92-d4ef4f06a14f
    To: "David Airlie" <airlied@gmail.com>
    To: <dri-devel@lists.freedesktop.org>
    To: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>
    To: "Maxime Ripard" <mripard@kernel.org>
    To: "Simona Vetter" <simona@ffwll.ch>
    To: "Thomas Zimmermann" <tzimmermann@suse.de>
    Cc: <linux-kernel@vger.kernel.org>
    
    ---
    diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
    index 5d2cf724c..240e0ea6c 100644
    --- a/drivers/gpu/drm/drm_lease.c
    +++ b/drivers/gpu/drm/drm_lease.c
    @@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
     	int ret;
     	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
     
    -	objects = kzalloc_objs(struct drm_mode_object *, object_count);
    +	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
    +			   GFP_KERNEL);
     	if (!objects)
     		return -ENOMEM;
     
    @@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
     		if (objects[o])
     			drm_mode_object_put(objects[o]);
     	}
    -	kfree(objects);
    +	kvfree(objects);
     	return ret;
     }
     
    @@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
     	/* Handle leased objects, if any */
     	idr_init(&leases);
     	if (object_count != 0) {
    -		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
    -					       object_count, sizeof(__u32));
    +		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
    +						object_count, sizeof(__u32));
     		if (IS_ERR(object_ids)) {
     			ret = PTR_ERR(object_ids);
     			idr_destroy(&leases);
    @@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
     		/* fill and validate the object idr */
     		ret = fill_object_idr(dev, lessor_priv, &leases,
     				      object_count, object_ids);
    -		kfree(object_ids);
    +		kvfree(object_ids);
     		if (ret) {
     			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
     			idr_destroy(&leases);
    
    
    base-commit: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6
    -- 
    This is an AI-generated patch subject to moderation.
    Reply with '#syz upstream' to Sign-off the patch as a human author
    and send it to the upstream kernel mailing lists.
    Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    
    See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    You can comment on the patch as usual, syzbot will try to address
    the comments and send a new version of the patch if necessary.
    syzbot engineers can be reached at syzkaller@googlegroups.com.
    
  • nogikh@google.com (2026/06/18 15:14):
    Wasn't drm allocating physically contigious memory blocks on purpose?
    But in this patch you are trying to change it to virtual memory allocations.
    
    On Mon, Jun 15, 2026 at 6:39 PM 'syzbot' via
    syzkaller-upstream-moderation
    <syzkaller-upstream-moderation@googlegroups.com> wrote:
    >
    > In drm_mode_create_lease_ioctl(), a user-controlled object_count is used to
    > allocate memory for object_ids and objects. If a user provides a very large
    > object_count (e.g., 1,000,000), the kernel attempts to allocate a
    > contiguous memory chunk that exceeds the maximum allowed size by the slab
    > allocator (KMALLOC_MAX_SIZE).
    >
    > For the objects array, kzalloc_objs() is used, which expands to a standard
    > kzalloc() call without the __GFP_NOWARN flag. When the requested size
    > exceeds KMALLOC_MAX_SIZE, the SLUB allocator passes the request to the page
    > allocator, which triggers a WARN_ON_ONCE_GFP because the required page
    > order is greater than MAX_PAGE_ORDER:
    >
    > WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380
    > mm/page_alloc.c:5197
    > Call Trace:
    >  <TASK>
    >  alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
    >  ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
    >  __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
    >  __do_kmalloc_node mm/slub.c:5284 [inline]
    >  __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
    >  kmalloc_noprof include/linux/slab.h:954 [inline]
    >  kzalloc_noprof include/linux/slab.h:1188 [inline]
    >  fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
    >  drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
    >
    > To fix this, replace memdup_array_user() with vmemdup_array_user() and
    > kzalloc_objs() with kvcalloc(), along with changing their respective
    > kfree() calls to kvfree(). The kvmalloc family of functions attempts a
    > kmalloc() first with __GFP_NOWARN applied internally, and gracefully falls
    > back to vmalloc() for large allocations. This prevents the kernel warning
    > and makes the allocations more robust against memory fragmentation,
    > gracefully returning -ENOMEM if the system cannot satisfy the request.
    >
    > Fixes: 62884cd386b8 ("drm: Add four ioctls for managing drm mode object leases [v7]")
    > Assisted-by: Gemini:gemini-3.1-pro-preview syzbot
    > Reported-by: syzbot+03fb58296859d8dbab4d@syzkaller.appspotmail.com
    > Closes: https://syzkaller.appspot.com/bug?extid=03fb58296859d8dbab4d
    > Link: https://syzkaller.appspot.com/ai_job?id=73f2715e-0f0e-4924-ad92-d4ef4f06a14f
    > To: "David Airlie" <airlied@gmail.com>
    > To: <dri-devel@lists.freedesktop.org>
    > To: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>
    > To: "Maxime Ripard" <mripard@kernel.org>
    > To: "Simona Vetter" <simona@ffwll.ch>
    > To: "Thomas Zimmermann" <tzimmermann@suse.de>
    > Cc: <linux-kernel@vger.kernel.org>
    >
    > ---
    > diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
    > index 5d2cf724c..240e0ea6c 100644
    > --- a/drivers/gpu/drm/drm_lease.c
    > +++ b/drivers/gpu/drm/drm_lease.c
    > @@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
    >         int ret;
    >         bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
    >
    > -       objects = kzalloc_objs(struct drm_mode_object *, object_count);
    > +       objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
    > +                          GFP_KERNEL);
    >         if (!objects)
    >                 return -ENOMEM;
    >
    > @@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
    >                 if (objects[o])
    >                         drm_mode_object_put(objects[o]);
    >         }
    > -       kfree(objects);
    > +       kvfree(objects);
    >         return ret;
    >  }
    >
    > @@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
    >         /* Handle leased objects, if any */
    >         idr_init(&leases);
    >         if (object_count != 0) {
    > -               object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
    > -                                              object_count, sizeof(__u32));
    > +               object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
    > +                                               object_count, sizeof(__u32));
    >                 if (IS_ERR(object_ids)) {
    >                         ret = PTR_ERR(object_ids);
    >                         idr_destroy(&leases);
    > @@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
    >                 /* fill and validate the object idr */
    >                 ret = fill_object_idr(dev, lessor_priv, &leases,
    >                                       object_count, object_ids);
    > -               kfree(object_ids);
    > +               kvfree(object_ids);
    >                 if (ret) {
    >                         drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
    >                         idr_destroy(&leases);
    >
    >
    > base-commit: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6
    > --
    > This is an AI-generated patch subject to moderation.
    > Reply with '#syz upstream' to Sign-off the patch as a human author
    > and send it to the upstream kernel mailing lists.
    > Reply with '#syz reject' to reject it ('#syz unreject' to undo).
    >
    > See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    > You can comment on the patch as usual, syzbot will try to address
    > the comments and send a new version of the patch if necessary.
    > syzbot engineers can be reached at syzkaller@googlegroups.com.
    >
    > --
    > You received this message because you are subscribed to the Google Groups "syzkaller-upstream-moderation" group.
    > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-upstream-moderation+unsubscribe@googlegroups.com.
    > To view this discussion visit https://groups.google.com/d/msgid/syzkaller-upstream-moderation/46506931-ba8f-4048-ab27-9777411db2fe%40mail.kernel.org.
    
  • syzbot@kernel.org (2026/06/18 16:24):
    > Wasn't drm allocating physically contigious memory blocks on purpose?
    > But in this patch you are trying to change it to virtual memory allocations.
    These specific allocations (`object_ids` and `objects`) are temporary
    arrays used within the ioctl to store object IDs and pointers. Since
    they are not used for DMA or hardware access, they do not need to be
    physically contiguous. Using the `kvmalloc` family of functions here is
    safe and prevents the warning when a user requests a very large number
    of objects.
    
    -- 
    This reply was generated by an AI model.
    See https://goo.gle/syzbot-ai-patches for information about AI-generated patches.
    syzbot engineers can be reached at syzkaller@googlegroups.com.
    
  • nogikh@google.com (2026/06/19 05:24):
    On Thu, Jun 18, 2026 at 6:19 PM syzbot <syzbot@kernel.org> wrote:
    >
    > > Wasn't drm allocating physically contigious memory blocks on purpose?
    > > But in this patch you are trying to change it to virtual memory allocations.
    > These specific allocations (`object_ids` and `objects`) are temporary
    > arrays used within the ioctl to store object IDs and pointers. Since
    > they are not used for DMA or hardware access, they do not need to be
    > physically contiguous. Using the `kvmalloc` family of functions here is
    > safe and prevents the warning when a user requests a very large number
    > of objects.
    >
    
    
    Then say it explicitly in the patch description.
    

Outputs:
AckedBy
[]
Fixes
map[Hash:62884cd386b876638720ef88374b31a84ca7ee5f Title:drm: Add four ioctls for managing drm mode object leases [v7]]
KernelBranch
master
KernelCommit
8cd9520d35a6c38db6567e97dd93b1f11f185dc6
KernelRepo
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
PatchDescription
drm/lease: use kvmalloc for user-controlled allocations

In drm_mode_create_lease_ioctl(), a user-controlled object_count is used to
allocate memory for object_ids and objects. If a user provides a very large
object_count (e.g., 1,000,000), the kernel attempts to allocate a
contiguous memory chunk that exceeds the maximum allowed size by the slab
allocator (KMALLOC_MAX_SIZE).

For the objects array, kzalloc_objs() is used, which expands to a standard
kzalloc() call without the __GFP_NOWARN flag. When the requested size
exceeds KMALLOC_MAX_SIZE, the SLUB allocator passes the request to the page
allocator, which triggers a WARN_ON_ONCE_GFP because the required page
order is greater than MAX_PAGE_ORDER:

WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380
mm/page_alloc.c:5197
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521

To fix this, replace memdup_array_user() with vmemdup_array_user() and
kzalloc_objs() with kvcalloc(), along with changing their respective
kfree() calls to kvfree(). The kvmalloc family of functions attempts a
kmalloc() first with __GFP_NOWARN applied internally, and gracefully falls
back to vmalloc() for large allocations. This prevents the kernel warning
and makes the allocations more robust against memory fragmentation,
gracefully returning -ENOMEM if the system cannot satisfy the request.
PatchDiff
diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..240e0ea6c 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
+			   GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
@@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
@@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
-					       object_count, sizeof(__u32));
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
+						object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
@@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);
Recipients
[map[Email:airlied@gmail.com Name:David Airlie To:true] map[Email:dri-devel@lists.freedesktop.org Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:maarten.lankhorst@linux.intel.com Name:Maarten Lankhorst To:true] map[Email:mripard@kernel.org Name:Maxime Ripard To:true] map[Email:simona@ffwll.ch Name:Simona Vetter To:true] map[Email:tzimmermann@suse.de Name:Thomas Zimmermann To:true]]
ReportedBy
[]
ReviewedBy
[]
TestedBy
[]

Crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5936 at mm/page_alloc.c:4715 __alloc_frozen_pages_noprof+0x1f66/0x2470 mm/page_alloc.c:4715
Modules linked in:
CPU: 0 UID: 0 PID: 5936 Comm: syz-executor305 Not tainted 6.14.0-rc4-syzkaller-00248-g03d38806a902 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x1f66/0x2470 mm/page_alloc.c:4715
Code: 24 38 41 89 c6 0f b6 c0 44 8b ac 24 84 00 00 00 89 44 24 18 e9 a8 f7 ff ff 90 0f 0b 90 e9 b6 f7 ff ff c6 05 2d 52 3a 0e 01 90 <0f> 0b 90 e9 d9 e4 ff ff 90 0f 0b 90 e9 4e fb ff ff 83 bc 24 80 00
RSP: 0018:ffffc900039677c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000040dc0
RBP: 00000000007a1200 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000b
R13: 1ffff9200072cf0c R14: 00000000007a1200 R15: ffffffff855c28fd
FS:  00005555724b6380(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00004000003d0000 CR3: 0000000025918000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __alloc_pages_noprof+0xb/0x1b0 mm/page_alloc.c:4773
 __alloc_pages_node_noprof include/linux/gfp.h:265 [inline]
 alloc_pages_node_noprof include/linux/gfp.h:292 [inline]
 ___kmalloc_large_node+0x84/0x1b0 mm/slub.c:4239
 __kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:4266
 __do_kmalloc_node mm/slub.c:4282 [inline]
 __kmalloc_noprof.cold+0xc/0x61 mm/slub.c:4306
 kmalloc_noprof include/linux/slab.h:905 [inline]
 kmalloc_array_noprof include/linux/slab.h:946 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x4bd/0x1f60 drivers/gpu/drm/drm_lease.c:522
 drm_ioctl_kernel+0x1e6/0x3d0 drivers/gpu/drm/drm_ioctl.c:796
 drm_ioctl+0x5d6/0xc00 drivers/gpu/drm/drm_ioctl.c:893
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fee89044129
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe5200dad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000400000000000 RCX: 00007fee89044129
RDX: 00004000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fee890b7610 R08: 0023647261632f69 R09: 00007ffe5200dca8
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe5200dc98 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/06/15 15:30 flow patching
1h08m Results:
map[AckedBy:[] Fixes:map[Hash:62884cd386b876638720ef88374b31a84ca7ee5f Title:drm: Add four ioctls for managing drm mode object leases [v7]] KernelBranch:master KernelCommit:8cd9520d35a6c38db6567e97dd93b1f11f185dc6 KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git PatchDescription:drm/lease: use kvmalloc for user-controlled allocations

In drm_mode_create_lease_ioctl(), a user-controlled object_count is used to
allocate memory for object_ids and objects. If a user provides a very large
object_count (e.g., 1,000,000), the kernel attempts to allocate a
contiguous memory chunk that exceeds the maximum allowed size by the slab
allocator (KMALLOC_MAX_SIZE).

For the objects array, kzalloc_objs() is used, which expands to a standard
kzalloc() call without the __GFP_NOWARN flag. When the requested size
exceeds KMALLOC_MAX_SIZE, the SLUB allocator passes the request to the page
allocator, which triggers a WARN_ON_ONCE_GFP because the required page
order is greater than MAX_PAGE_ORDER:

WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380
mm/page_alloc.c:5197
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521

To fix this, replace memdup_array_user() with vmemdup_array_user() and
kzalloc_objs() with kvcalloc(), along with changing their respective
kfree() calls to kvfree(). The kvmalloc family of functions attempts a
kmalloc() first with __GFP_NOWARN applied internally, and gracefully falls
back to vmalloc() for large allocations. This prevents the kernel warning
and makes the allocations more robust against memory fragmentation,
gracefully returning -ENOMEM if the system cannot satisfy the request. PatchDiff:diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..240e0ea6c 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
+			   GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
@@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
@@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
-					       object_count, sizeof(__u32));
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
+						object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
@@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);
 Recipients:[map[Email:airlied@gmail.com Name:David Airlie To:true] map[Email:dri-devel@lists.freedesktop.org Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:maarten.lankhorst@linux.intel.com Name:Maarten Lankhorst To:true] map[Email:mripard@kernel.org Name:Maxime Ripard To:true] map[Email:simona@ffwll.ch Name:Simona Vetter To:true] map[Email:tzimmermann@suse.de Name:Thomas Zimmermann To:true]] ReportedBy:[] ReviewedBy:[] TestedBy:[]]

1/1 2026/06/15 15:30 action base-commit-picker
0m Results:
map[KernelBranch:master KernelCommit:8cd9520d35a6c38db6567e97dd93b1f11f185dc6 KernelRepo:git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git]

2/1 2026/06/15 15:31 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 <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
{
	if (a0 == 0xc || a0 == 0xb) {
		char buf[128];
		sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2);
		return open(buf, O_RDWR, 0);
	} else {
		unsigned long nb = a1;
		char buf[1024];
		char* hash;
		strncpy(buf, (char*)a0, sizeof(buf) - 1);
		buf[sizeof(buf) - 1] = 0;
		while ((hash = strchr(buf, '#'))) {
			*hash = '0' + (char)(nb % 10);
			nb /= 10;
		}
		return open(buf, a2 & ~O_CREAT, 0);
	}
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_open_dev$dri arguments: [
//    dev: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 64 72 69 2f 63 61 72 64 23 00} (length 0xf)
//    }
//    id: intptr = 0x1f (8 bytes)
//    flags: open_flags = 0x0 (8 bytes)
//  ]
//  returns fd_dri
memcpy((void*)0x200000000000, "/dev/dri/card#\000", 15);
	res = -1;
res = syz_open_dev(/*dev=*/0x200000000000, /*id=*/0x1f, /*flags=*/0);
	if (res != -1)
		r[0] = res;
//  ioctl$DRM_IOCTL_MODE_CREATE_LEASE arguments: [
//    fd: fd_dri (resource)
//    cmd: const = 0xc01864c6 (4 bytes)
//    arg: ptr[inout, drm_mode_create_lease] {
//      drm_mode_create_lease {
//        object_ids: ptr[in, array[drm_obj_id]] {
//          array[drm_obj_id] {
//            drm_obj_id (resource)
//          }
//        }
//        object_count: len = 0xf4240 (4 bytes)
//        flags: drm_mode_create_lease_flag = 0x0 (4 bytes)
//        lessee_id: drm_lessee_id (resource)
//        fd: fd (resource)
//      }
//    }
//  ]
*(uint64_t*)0x2000000003c0 = 0x200000000280;
*(uint32_t*)0x200000000280 = 0;
*(uint32_t*)0x2000000003c8 = 0xf4240;
*(uint32_t*)0x2000000003cc = 0;
	syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0xc01864c6, /*arg=*/0x2000000003c0ul);
	return 0;
}
]

3/1 2026/06/15 15:31 action kernel-checkouter
1m Results:
map[KernelSrc:/app/workdir/cache/src/1583fc50e73bc268b47064ec35fa43904fad8ca1]

4/1 2026/06/15 15:32 action kernel-builder
14m Results:
map[KernelObj:/app/workdir/cache/build/b53f680cef6f7dd872861412531ef646b7563759]

5/1 2026/06/15 15:47 action crash-reproducer
1m Results:
map[OtherCrashReports:<nil> ReproducedBugTitle:WARNING in drm_mode_create_lease_ioctl ReproducedCrashReport:------------[ cut here ]------------
WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197, CPU#0: syz.0.17/6137
Modules linked in:
CPU: 0 UID: 0 PID: 6137 Comm: syz.0.17 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197
Code: 74 10 4c 89 e7 89 54 24 0c e8 6e a2 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 ab fe ff ff e9 ac fe ff ff c6 05 92 0e b2 0d 01 90 <0f> 0b 90 e9 17 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc90003aa7800 EFLAGS: 00010246
RAX: ffffc90003aa7800 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003aa7868
RBP: ffffc90003aa78e8 R08: ffffc90003aa7867 R09: 0000000000000000
R10: ffffc90003aa7840 R11: fffff52000754f0d R12: 0000000000000000
R13: 1ffff92000754f04 R14: 0000000000040dc0 R15: dffffc0000000000
FS:  00007fe037ac16c0(0000) GS:ffff8881a59ad000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003d0000 CR3: 0000000104ab0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
 drm_ioctl_kernel+0x2df/0x3b0 drivers/gpu/drm/drm_ioctl.c:805
 drm_ioctl+0x6fa/0xbc0 drivers/gpu/drm/drm_ioctl.c:902
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe036b9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe037ac1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe036e15fa0 RCX: 00007fe036b9ce59
RDX: 00002000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fe036c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe036e16038 R14: 00007fe036e15fa0 R15: 00007fffcab0e958
 </TASK>
 ReproducedFaultInjection:]

6/1 2026/06/15 15:48 action codesearch-prepare
18m Results:
map[Index:codesearch-index]

7/1 2026/06/15 16:07 agent debugger
5m Model:
gemini-3.1-pro-preview

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



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

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

Prompt:
The crash is:

------------[ cut here ]------------
WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197, CPU#0: syz.0.17/6137
Modules linked in:
CPU: 0 UID: 0 PID: 6137 Comm: syz.0.17 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197
Code: 74 10 4c 89 e7 89 54 24 0c e8 6e a2 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 ab fe ff ff e9 ac fe ff ff c6 05 92 0e b2 0d 01 90 <0f> 0b 90 e9 17 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc90003aa7800 EFLAGS: 00010246
RAX: ffffc90003aa7800 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003aa7868
RBP: ffffc90003aa78e8 R08: ffffc90003aa7867 R09: 0000000000000000
R10: ffffc90003aa7840 R11: fffff52000754f0d R12: 0000000000000000
R13: 1ffff92000754f04 R14: 0000000000040dc0 R15: dffffc0000000000
FS:  00007fe037ac16c0(0000) GS:ffff8881a59ad000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003d0000 CR3: 0000000104ab0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
 drm_ioctl_kernel+0x2df/0x3b0 drivers/gpu/drm/drm_ioctl.c:805
 drm_ioctl+0x6fa/0xbc0 drivers/gpu/drm/drm_ioctl.c:902
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe036b9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe037ac1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe036e15fa0 RCX: 00007fe036b9ce59
RDX: 00002000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fe036c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe036e16038 R14: 00007fe036e15fa0 R15: 00007fffcab0e958
 </TASK>


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

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

#define _GNU_SOURCE 

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

static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
{
	if (a0 == 0xc || a0 == 0xb) {
		char buf[128];
		sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2);
		return open(buf, O_RDWR, 0);
	} else {
		unsigned long nb = a1;
		char buf[1024];
		char* hash;
		strncpy(buf, (char*)a0, sizeof(buf) - 1);
		buf[sizeof(buf) - 1] = 0;
		while ((hash = strchr(buf, '#'))) {
			*hash = '0' + (char)(nb % 10);
			nb /= 10;
		}
		return open(buf, a2 & ~O_CREAT, 0);
	}
}

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
		syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul);
	const char* reason;
	(void)reason;
				intptr_t res = 0;
	if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {}
//  syz_open_dev$dri arguments: [
//    dev: ptr[in, buffer] {
//      buffer: {2f 64 65 76 2f 64 72 69 2f 63 61 72 64 23 00} (length 0xf)
//    }
//    id: intptr = 0x1f (8 bytes)
//    flags: open_flags = 0x0 (8 bytes)
//  ]
//  returns fd_dri
memcpy((void*)0x200000000000, "/dev/dri/card#\000", 15);
	res = -1;
res = syz_open_dev(/*dev=*/0x200000000000, /*id=*/0x1f, /*flags=*/0);
	if (res != -1)
		r[0] = res;
//  ioctl$DRM_IOCTL_MODE_CREATE_LEASE arguments: [
//    fd: fd_dri (resource)
//    cmd: const = 0xc01864c6 (4 bytes)
//    arg: ptr[inout, drm_mode_create_lease] {
//      drm_mode_create_lease {
//        object_ids: ptr[in, array[drm_obj_id]] {
//          array[drm_obj_id] {
//            drm_obj_id (resource)
//          }
//        }
//        object_count: len = 0xf4240 (4 bytes)
//        flags: drm_mode_create_lease_flag = 0x0 (4 bytes)
//        lessee_id: drm_lessee_id (resource)
//        fd: fd (resource)
//      }
//    }
//  ]
*(uint64_t*)0x2000000003c0 = 0x200000000280;
*(uint32_t*)0x200000000280 = 0;
*(uint32_t*)0x2000000003c8 = 0xf4240;
*(uint32_t*)0x2000000003cc = 0;
	syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0xc01864c6, /*arg=*/0x2000000003c0ul);
	return 0;
}





Reply:
The root cause of this kernel crash is an unbounded memory allocation based on a user-controlled value, which attempts to allocate a contiguous memory chunk larger than the maximum allowed by the slab allocator (`KMALLOC_MAX_SIZE`), triggering a warning in the page allocator.

### Detailed Root Cause Analysis

1. **User-controlled `object_count`**:
   In `drivers/gpu/drm/drm_lease.c`, the `drm_mode_create_lease_ioctl()` function retrieves `object_count` directly from the user-provided `struct drm_mode_create_lease` argument:
   ```c
   object_count = cl->object_count;
   ```
   The syzkaller reproducer sets this value to `0xf4240` (1,000,000).

2. **First Allocation (`memdup_array_user`)**:
   The ioctl first allocates an array to hold the object IDs:
   ```c
   object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
                                  object_count, sizeof(__u32));
   ```
   For `1,000,000` objects, this requires `4,000,000` bytes (~3.8 MB). This size is typically just under the `KMALLOC_MAX_SIZE` limit (usually 4 MB on many architectures). Furthermore, `memdup_array_user()` internally uses `memdup_user()`, which allocates memory with the `__GFP_NOWARN` flag. Thus, even if it were to fail, it would gracefully return `-ENOMEM` without triggering a kernel warning.

3. **Second Allocation (`kzalloc_objs`)**:
   After successfully allocating `object_ids`, the ioctl calls `fill_object_idr()`:
   ```c
   ret = fill_object_idr(dev, lessor_priv, &leases, object_count, object_ids);
   ```
   Inside `fill_object_idr()`, the kernel attempts to allocate an array of pointers for the objects:
   ```c
   objects = kzalloc_objs(struct drm_mode_object *, object_count);
   ```
   The size of `struct drm_mode_object *` is 8 bytes (on 64-bit systems). For `1,000,000` objects, this requires `8,000,000` bytes (~7.6 MB). This size strictly exceeds the `KMALLOC_MAX_SIZE` limit. 
   
   Unlike `memdup_user()`, the `kzalloc_objs()` macro expands to a standard `kzalloc()` call using `GFP_KERNEL | __GFP_ZERO` **without** the `__GFP_NOWARN` flag. 

4. **The Crash (Warning)**:
   Because the requested size is larger than `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request directly to the page allocator (`___kmalloc_large_node`). The page allocator calculates the required page order (order 11 for 8 MB). Since order 11 is strictly greater than `MAX_PAGE_ORDER` (typically 10), the page allocator hits the following safety check in `__alloc_frozen_pages_noprof()`:
   ```c
   if (WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp))
       return NULL;
   ```
   Because `__GFP_NOWARN` was not provided, this triggers the `WARN_ON_ONCE_GFP` warning, which syzkaller correctly identifies as a crash.

### Proposed Fix

To fix this issue, both allocations should be updated to use the `kvmalloc` family of functions. These functions automatically fall back to `vmalloc()` for large allocations (avoiding memory fragmentation issues) and internally apply `__GFP_NOWARN` when attempting the initial `kmalloc()`, preventing the page allocator warning.

1. In `drm_mode_create_lease_ioctl()`, replace `memdup_array_user()` with `vmemdup_array_user()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~512
   - object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   + object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   
   // drivers/gpu/drm/drm_lease.c : ~523
   - kfree(object_ids);
   + kvfree(object_ids);
   ```

2. In `fill_object_idr()`, replace `kzalloc_objs()` with `kvcalloc()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~389
   - objects = kzalloc_objs(struct drm_mode_object *, object_count);
   + objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
   
   // drivers/gpu/drm/drm_lease.c : ~465
   - kfree(objects);
   + kvfree(objects);
   ```

This ensures that userspace cannot trigger a kernel warning by passing an arbitrarily large `object_count`, and the kernel will gracefully return `-ENOMEM` if the system truly cannot satisfy the `vmalloc` request.

8/2 2026/06/15 16:07 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 6832
							output: 44
							thoughts: 536
						

Thoughts:
**Kernel Crash Investigation: A Deep Dive**

Okay, so we've got a kernel crash, and the trace points us directly to `mm/page_alloc.c`, specifically the `__alloc_frozen_pages_noprof` function. That's immediately interesting, because `page_alloc.c` is the heart of memory management. The trace shows a call path that looks like:

`drm_mode_create_lease_ioctl` -> `fill_object_idr` -> `kzalloc_noprof` -> `kmalloc_noprof` -> `__kmalloc_large_node_noprof` -> `___kmalloc_large_node` -> `alloc_pages_mpol`.

That indicates a memory allocation issue during a lease creation attempt within the DRM (Direct Rendering Manager) subsystem. `alloc_pages_mpol` suggests it's related to memory policy, probably a NUMA node issue if it is a large allocation. It seems we're requesting a page allocation that's hitting a limit or an error. This kind of error is a pretty common pitfall during lease management, so, let's look at the C reproducer.

The C reproducer is interesting. We're setting up a memory region with a few specific addresses: `0x2000000003c0`, `0x200000000280`, and then we perform an `ioctl` with a specific command code `0xc01864c6`. The key here is that we're setting an `object_count` to 1000000. It looks like we're setting up an `drm_lease` request with a *very* large number of objects. Given that the crash is in `page_alloc.c`, I'm guessing this large allocation request is what's causing the problem. My guess is that memory is being exhausted or there's some kind of integer overflow/underflow error when attempting to allocate the space.

The next thing I need to do is jump into the code for `drm_mode_create_lease_ioctl` and `fill_object_idr`, understand the data structure and look closely at the memory allocation size calculations, and the constraints on the number of objects we can lease at once. This smells like a classic denial-of-service vulnerability due to excessive memory usage. Or, it could just be a coding error. Either way, it's time to dig into the source.



9/2 2026/06/15 16:07 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/gpu/drm/drm_lease.c Name:drm_mode_create_lease_ioctl]

Results:
map[SourceCode: 469:	/*
 470:	 * The master associated with the specified file will have a lease
 471:	 * created containing the objects specified in the ioctl structure.
 472:	 * A file descriptor will be allocated for that and returned to the
 473:	 * application.
 474:	 */
 475:	int drm_mode_create_lease_ioctl(struct drm_device *dev,
 476:					void *data, struct drm_file *lessor_priv)
 477:	{
 478:		struct drm_mode_create_lease *cl = data;
 479:		size_t object_count;
 480:		int ret = 0;
 481:		struct idr leases;
 482:		struct drm_master *lessor;
 483:		struct drm_master *lessee = NULL;
 484:		struct file *lessee_file = NULL;
 485:		struct file *lessor_file = lessor_priv->filp;
 486:		struct drm_file *lessee_priv;
 487:		int fd = -1;
 488:		uint32_t *object_ids;
 489:	
 490:		/* Can't lease without MODESET */
 491:		if (!drm_core_check_feature(dev, DRIVER_MODESET))
 492:			return -EOPNOTSUPP;
 493:	
 494:		if (cl->flags && (cl->flags & ~(O_CLOEXEC | O_NONBLOCK))) {
 495:			drm_dbg_lease(dev, "invalid flags\n");
 496:			return -EINVAL;
 497:		}
 498:	
 499:		lessor = drm_file_get_master(lessor_priv);
 500:		/* Do not allow sub-leases */
 501:		if (lessor->lessor) {
 502:			drm_dbg_lease(dev, "recursive leasing not allowed\n");
 503:			ret = -EINVAL;
 504:			goto out_lessor;
 505:		}
 506:	
 507:		object_count = cl->object_count;
 508:	
 509:		/* Handle leased objects, if any */
 510:		idr_init(&leases);
 511:		if (object_count != 0) {
 512:			object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
 513:						       object_count, sizeof(__u32));
 514:			if (IS_ERR(object_ids)) {
 515:				ret = PTR_ERR(object_ids);
 516:				idr_destroy(&leases);
 517:				goto out_lessor;
 518:			}
 519:	
 520:			/* fill and validate the object idr */
 521:			ret = fill_object_idr(dev, lessor_priv, &leases,
 522:					      object_count, object_ids);
 523:			kfree(object_ids);
 524:			if (ret) {
 525:				drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 526:				idr_destroy(&leases);
 527:				goto out_lessor;
 528:			}
 529:		}
 530:	
 531:		/* Allocate a file descriptor for the lease */
 532:		fd = get_unused_fd_flags(cl->flags & (O_CLOEXEC | O_NONBLOCK));
 533:		if (fd < 0) {
 534:			idr_destroy(&leases);
 535:			ret = fd;
 536:			goto out_lessor;
 537:		}
 538:	
 539:		drm_dbg_lease(dev, "Creating lease\n");
 540:		/* lessee will take the ownership of leases */
 541:		lessee = drm_lease_create(lessor, &leases);
 542:	
 543:		if (IS_ERR(lessee)) {
 544:			ret = PTR_ERR(lessee);
 545:			idr_destroy(&leases);
 546:			goto out_leases;
 547:		}
 548:	
 549:		/* Clone the lessor file to create a new file for us */
 550:		drm_dbg_lease(dev, "Allocating lease file\n");
 551:		lessee_file = file_clone_open(lessor_file);
 552:		if (IS_ERR(lessee_file)) {
 553:			ret = PTR_ERR(lessee_file);
 554:			goto out_lessee;
 555:		}
 556:	
 557:		lessee_priv = lessee_file->private_data;
 558:		/* Change the file to a master one */
 559:		drm_master_put(&lessee_priv->master);
 560:		lessee_priv->master = lessee;
 561:		lessee_priv->is_master = 1;
 562:		lessee_priv->authenticated = 1;
 563:	
 564:		/* Pass fd back to userspace */
 565:		drm_dbg_lease(dev, "Returning fd %d id %d\n", fd, lessee->lessee_id);
 566:		cl->fd = fd;
 567:		cl->lessee_id = lessee->lessee_id;
 568:	
 569:		/* Hook up the fd */
 570:		fd_install(fd, lessee_file);
 571:	
 572:		drm_master_put(&lessor);
 573:		drm_dbg_lease(dev, "drm_mode_create_lease_ioctl succeeded\n");
 574:		return 0;
 575:	
 576:	out_lessee:
 577:		drm_master_put(&lessee);
 578:	
 579:	out_leases:
 580:		put_unused_fd(fd);
 581:	
 582:	out_lessor:
 583:		drm_master_put(&lessor);
 584:		drm_dbg_lease(dev, "drm_mode_create_lease_ioctl failed: %d\n", ret);
 585:		return ret;
 586:	}
 SourceFile:drivers/gpu/drm/drm_lease.c]

10/2 2026/06/15 16:07 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9773
							output: 41
							thoughts: 25
						

Thoughts:
Here's a summary of my immediate thought process:

**Diving into the Root Cause**

Okay, so we've got a crash, and the backtrace points directly to `fill_object_idr`. That's our starting point. No need to chase ghosts; we go straight to the source. Time to dig into the `fill_object_idr` function. Let's see what's happening in there. What are its inputs? What's the logic flow? Gotta understand this function intimately to figure out why it's failing and how we can prevent this crash going forward. It's time to put on my debugging hat and get to work.



11/2 2026/06/15 16:08 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/gpu/drm/drm_lease.c Name:fill_object_idr]

Results:
map[SourceCode: 378:	static int fill_object_idr(struct drm_device *dev,
 379:				   struct drm_file *lessor_priv,
 380:				   struct idr *leases,
 381:				   int object_count,
 382:				   u32 *object_ids)
 383:	{
 384:		struct drm_mode_object **objects;
 385:		u32 o;
 386:		int ret;
 387:		bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 388:	
 389:		objects = kzalloc_objs(struct drm_mode_object *, object_count);
 390:		if (!objects)
 391:			return -ENOMEM;
 392:	
 393:		/* step one - get references to all the mode objects
 394:		   and check for validity. */
 395:		for (o = 0; o < object_count; o++) {
 396:			objects[o] = drm_mode_object_find(dev, lessor_priv,
 397:							  object_ids[o],
 398:							  DRM_MODE_OBJECT_ANY);
 399:			if (!objects[o]) {
 400:				ret = -ENOENT;
 401:				goto out_free_objects;
 402:			}
 403:	
 404:			if (!drm_mode_object_lease_required(objects[o]->type)) {
 405:				DRM_DEBUG_KMS("invalid object for lease\n");
 406:				ret = -EINVAL;
 407:				goto out_free_objects;
 408:			}
 409:		}
 410:	
 411:		ret = validate_lease(dev, object_count, objects, universal_planes);
 412:		if (ret) {
 413:			drm_dbg_lease(dev, "lease validation failed\n");
 414:			goto out_free_objects;
 415:		}
 416:	
 417:		/* add their IDs to the lease request - taking into account
 418:		   universal planes */
 419:		for (o = 0; o < object_count; o++) {
 420:			struct drm_mode_object *obj = objects[o];
 421:			u32 object_id = objects[o]->id;
 422:	
 423:			drm_dbg_lease(dev, "Adding object %d to lease\n", object_id);
 424:	
 425:			/*
 426:			 * We're using an IDR to hold the set of leased
 427:			 * objects, but we don't need to point at the object's
 428:			 * data structure from the lease as the main object_idr
 429:			 * will be used to actually find that. Instead, all we
 430:			 * really want is a 'leased/not-leased' result, for
 431:			 * which any non-NULL pointer will work fine.
 432:			 */
 433:			ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL);
 434:			if (ret < 0) {
 435:				drm_dbg_lease(dev, "Object %d cannot be inserted into leases (%d)\n",
 436:					      object_id, ret);
 437:				goto out_free_objects;
 438:			}
 439:			if (obj->type == DRM_MODE_OBJECT_CRTC && !universal_planes) {
 440:				struct drm_crtc *crtc = obj_to_crtc(obj);
 441:	
 442:				ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1, GFP_KERNEL);
 443:				if (ret < 0) {
 444:					drm_dbg_lease(dev, "Object primary plane %d cannot be inserted into leases (%d)\n",
 445:						      object_id, ret);
 446:					goto out_free_objects;
 447:				}
 448:				if (crtc->cursor) {
 449:					ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, GFP_KERNEL);
 450:					if (ret < 0) {
 451:						drm_dbg_lease(dev, "Object cursor plane %d cannot be inserted into leases (%d)\n",
 452:							      object_id, ret);
 453:						goto out_free_objects;
 454:					}
 455:				}
 456:			}
 457:		}
 458:	
 459:		ret = 0;
 460:	out_free_objects:
 461:		for (o = 0; o < object_count; o++) {
 462:			if (objects[o])
 463:				drm_mode_object_put(objects[o]);
 464:		}
 465:		kfree(objects);
 466:		return ret;
 467:	}
 SourceFile:drivers/gpu/drm/drm_lease.c]

12/2 2026/06/15 16:08 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11476
							output: 18
							thoughts: 59
						

Thoughts:
**Debugging the Graphics Driver Crash**

Okay, so the kernel is crashing, and the backtrace points directly to `kzalloc_objs(struct drm_mode_object *, object_count);`. That's the key. Now, hold on a minute... `kzalloc_objs` doesn't ring any bells as a standard kernel function. It feels custom. Right, maybe it's a macro. Let's not jump to conclusions about a non-existent function. It's time to fire up the search tools and look for where `kzalloc_objs` is defined. This could be a driver-specific allocation routine, or perhaps even an incorrectly used standard function with an odd name. I need to understand what this macro is doing before I can even begin to understand the crash. Let's see what the source code reveals.



13/2 2026/06/15 16:08 tool grepper
0m Args:
map[Expression:kzalloc_objs]

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

Documentation/process/deprecated.rst=393=become, respectively::
--
Documentation/process/deprecated.rst-397-	ptr = kmalloc_objs(*ptr, count, gfp);
Documentation/process/deprecated.rst:398:	ptr = kzalloc_objs(*ptr, count, gfp);
Documentation/process/deprecated.rst-399-	ptr = kmalloc_flex(*ptr, flex_member, count, gfp);
--
arch/alpha/kernel/module.c=64=module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
--
arch/alpha/kernel/module.c-95-	nsyms = symtab->sh_size / sizeof(Elf64_Sym);
arch/alpha/kernel/module.c:96:	chains = kzalloc_objs(struct got_entry, nsyms);
arch/alpha/kernel/module.c-97-	if (!chains) {
--
arch/arm/kernel/vdso.c=169=static int __init vdso_init(void)
--
arch/arm/kernel/vdso.c-181-	/* Allocate the VDSO text pagelist */
arch/arm/kernel/vdso.c:182:	vdso_text_pagelist = kzalloc_objs(struct page *, text_pages);
arch/arm/kernel/vdso.c-183-	if (vdso_text_pagelist == NULL)
--
arch/arm/mach-footbridge/dc21285.c=261=int __init dc21285_setup(int nr, struct pci_sys_data *sys)
--
arch/arm/mach-footbridge/dc21285.c-264-
arch/arm/mach-footbridge/dc21285.c:265:	res = kzalloc_objs(struct resource, 2);
arch/arm/mach-footbridge/dc21285.c-266-	if (!res) {
--
arch/arm/mach-omap1/mcbsp.c=292=static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
--
arch/arm/mach-omap1/mcbsp.c-296-
arch/arm/mach-omap1/mcbsp.c:297:	omap_mcbsp_devices = kzalloc_objs(struct platform_device *, size);
arch/arm/mach-omap1/mcbsp.c-298-	if (!omap_mcbsp_devices) {
--
arch/arm/mach-omap2/omap_device.c=131=static int omap_device_build_from_dt(struct platform_device *pdev)
--
arch/arm/mach-omap2/omap_device.c-158-
arch/arm/mach-omap2/omap_device.c:159:	hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt);
arch/arm/mach-omap2/omap_device.c-160-	if (!hwmods) {
--
arch/arm/mach-omap2/pm33xx-core.c=379=static int __init amx3_idle_init(struct device_node *cpu_node, int cpu)
--
arch/arm/mach-omap2/pm33xx-core.c-412-
arch/arm/mach-omap2/pm33xx-core.c:413:	idle_states = kzalloc_objs(*idle_states, state_count);
arch/arm/mach-omap2/pm33xx-core.c-414-	if (!idle_states)
--
arch/arm/mach-omap2/sr_device.c=30=static void __init sr_set_nvalues(struct omap_volt_data *volt_data,
--
arch/arm/mach-omap2/sr_device.c-41-
arch/arm/mach-omap2/sr_device.c:42:	nvalue_table = kzalloc_objs(*nvalue_table, count);
arch/arm/mach-omap2/sr_device.c-43-	if (!nvalue_table)
--
arch/arm/mach-versatile/spc.c=393=static int ve_spc_populate_opps(uint32_t cluster)
--
arch/arm/mach-versatile/spc.c-397-
arch/arm/mach-versatile/spc.c:398:	opps = kzalloc_objs(*opps, MAX_OPPS);
arch/arm/mach-versatile/spc.c-399-	if (!opps)
--
arch/arm/xen/enlighten.c=316=int __init arch_xen_unpopulated_init(struct resource **res)
--
arch/arm/xen/enlighten.c-343-
arch/arm/xen/enlighten.c:344:	regs = kzalloc_objs(*regs, nr_reg);
arch/arm/xen/enlighten.c-345-	if (!regs) {
--
arch/arm64/kernel/vdso.c=68=static int __init __vdso_init(enum vdso_abi abi)
--
arch/arm64/kernel/vdso.c-83-
arch/arm64/kernel/vdso.c:84:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info[abi].vdso_pages);
arch/arm64/kernel/vdso.c-85-	if (vdso_pagelist == NULL)
--
arch/arm64/kvm/vgic/vgic-init.c=207=static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis)
--
arch/arm64/kvm/vgic/vgic-init.c-213-	dist->active_spis = (atomic_t)ATOMIC_INIT(0);
arch/arm64/kvm/vgic/vgic-init.c:214:	dist->spis = kzalloc_objs(struct vgic_irq, nr_spis, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-init.c-215-	if (!dist->spis)
--
arch/arm64/kvm/vgic/vgic-init.c=329=static int vgic_allocate_private_irqs_locked(struct kvm_vcpu *vcpu, u32 type)
--
arch/arm64/kvm/vgic/vgic-init.c-344-
arch/arm64/kvm/vgic/vgic-init.c:345:	vgic_cpu->private_irqs = kzalloc_objs(struct vgic_irq,
arch/arm64/kvm/vgic/vgic-init.c-346-					      num_private_irqs,
--
arch/arm64/kvm/vgic/vgic-irqfd.c=136=int kvm_vgic_setup_default_irq_routing(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-irqfd.c-142-
arch/arm64/kvm/vgic/vgic-irqfd.c:143:	entries = kzalloc_objs(*entries, nr, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-irqfd.c-144-	if (!entries)
--
arch/arm64/kvm/vgic/vgic-v4.c=242=int vgic_v4_init(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-v4.c-258-
arch/arm64/kvm/vgic/vgic-v4.c:259:	dist->its_vm.vpes = kzalloc_objs(*dist->its_vm.vpes, nr_vcpus,
arch/arm64/kvm/vgic/vgic-v4.c-260-					 GFP_KERNEL_ACCOUNT);
--
arch/csky/kernel/vdso.c=17=static int __init vdso_init(void)
--
arch/csky/kernel/vdso.c-22-	vdso_pagelist =
arch/csky/kernel/vdso.c:23:		kzalloc_objs(struct page *, vdso_pages);
arch/csky/kernel/vdso.c-24-	if (unlikely(vdso_pagelist == NULL)) {
--
arch/loongarch/kernel/vdso.c=45=static int __init init_vdso(void)
--
arch/loongarch/kernel/vdso.c-55-	vdso_info.code_mapping.pages =
arch/loongarch/kernel/vdso.c:56:		kzalloc_objs(struct page *, vdso_info.size / PAGE_SIZE);
arch/loongarch/kernel/vdso.c-57-
--
arch/loongarch/kvm/intc/pch_pic.c=410=static int kvm_setup_default_irq_routing(struct kvm *kvm)
--
arch/loongarch/kvm/intc/pch_pic.c-415-
arch/loongarch/kvm/intc/pch_pic.c:416:	entries = kzalloc_objs(*entries, nr);
arch/loongarch/kvm/intc/pch_pic.c-417-	if (!entries)
--
arch/mips/alchemy/common/clock.c=754=static int __init alchemy_clk_init_fgens(int ctype)
--
arch/mips/alchemy/common/clock.c-777-
arch/mips/alchemy/common/clock.c:778:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-779-	if (!a)
--
arch/mips/alchemy/common/clock.c=960=static int __init alchemy_clk_setup_imux(int ctype)
--
arch/mips/alchemy/common/clock.c-998-
arch/mips/alchemy/common/clock.c:999:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-1000-	if (!a)
--
arch/mips/alchemy/common/dbdma.c=1056=static int __init dbdma_setup(unsigned int irq, dbdev_tab_t *idtable)
--
arch/mips/alchemy/common/dbdma.c-1059-
arch/mips/alchemy/common/dbdma.c:1060:	dbdev_tab = kzalloc_objs(dbdev_tab_t, DBDEV_TAB_SIZE);
arch/mips/alchemy/common/dbdma.c-1061-	if (!dbdev_tab)
--
arch/mips/alchemy/common/platform.c=203=static int __init _new_usbres(struct resource **r, struct platform_device **d)
arch/mips/alchemy/common/platform.c-204-{
arch/mips/alchemy/common/platform.c:205:	*r = kzalloc_objs(struct resource, 2);
arch/mips/alchemy/common/platform.c-206-	if (!*r)
--
arch/mips/alchemy/devboards/platform.c=68=int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start,
--
arch/mips/alchemy/devboards/platform.c-89-
arch/mips/alchemy/devboards/platform.c:90:	sr = kzalloc_objs(struct resource, cnt);
arch/mips/alchemy/devboards/platform.c-91-	if (!sr)
--
arch/mips/alchemy/devboards/platform.c=152=int __init db1x_register_norflash(unsigned long size, int width,
--
arch/mips/alchemy/devboards/platform.c-164-	ret = -ENOMEM;
arch/mips/alchemy/devboards/platform.c:165:	parts = kzalloc_objs(struct mtd_partition, 5);
arch/mips/alchemy/devboards/platform.c-166-	if (!parts)
--
arch/mips/kernel/smp-cps.c=295=static void __init cps_prepare_cpus(unsigned int max_cpus)
--
arch/mips/kernel/smp-cps.c-343-	nclusters = mips_cps_numclusters();
arch/mips/kernel/smp-cps.c:344:	mips_cps_cluster_bootcfg = kzalloc_objs(*mips_cps_cluster_bootcfg,
arch/mips/kernel/smp-cps.c-345-						nclusters);
--
arch/mips/kernel/smp-cps.c-354-		ncores = mips_cps_numcores(cl);
arch/mips/kernel/smp-cps.c:355:		core_bootcfg = kzalloc_objs(*core_bootcfg, ncores);
arch/mips/kernel/smp-cps.c-356-		if (!core_bootcfg)
--
arch/mips/kernel/smp-cps.c-369-			core_vpes = core_vpe_count(cl, c);
arch/mips/kernel/smp-cps.c:370:			core_bootcfg[c].vpe_config = kzalloc_objs(*core_bootcfg[c].vpe_config,
arch/mips/kernel/smp-cps.c-371-								  core_vpes);
--
arch/parisc/kernel/vdso.c=99=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/parisc/kernel/vdso.c-104-
arch/parisc/kernel/vdso.c:105:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/parisc/kernel/vdso.c-106-	if (!pagelist)
--
arch/parisc/net/bpf_jit_core.c=44=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/parisc/net/bpf_jit_core.c-71-	ctx->prog = prog;
arch/parisc/net/bpf_jit_core.c:72:	ctx->offset = kzalloc_objs(int, prog->len);
arch/parisc/net/bpf_jit_core.c-73-	if (!ctx->offset)
--
arch/powerpc/kernel/smp.c=1113=void __init smp_prepare_cpus(unsigned int max_cpus)
--
arch/powerpc/kernel/smp.c-1174-		 */
arch/powerpc/kernel/smp.c:1175:		chip_id_lookup_table = kzalloc_objs(int, idx);
arch/powerpc/kernel/smp.c-1176-		if (chip_id_lookup_table)
--
arch/powerpc/kernel/vdso.c=242=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/powerpc/kernel/vdso.c-247-
arch/powerpc/kernel/vdso.c:248:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/powerpc/kernel/vdso.c-249-	if (!pagelist)
--
arch/powerpc/kvm/e500_mmu.c=731=int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu,
--
arch/powerpc/kvm/e500_mmu.c-794-
arch/powerpc/kvm/e500_mmu.c:795:	privs[0] = kzalloc_objs(*privs[0], params.tlb_sizes[0]);
arch/powerpc/kvm/e500_mmu.c-796-	if (!privs[0]) {
--
arch/powerpc/kvm/e500_mmu.c-800-
arch/powerpc/kvm/e500_mmu.c:801:	privs[1] = kzalloc_objs(*privs[1], params.tlb_sizes[1]);
arch/powerpc/kvm/e500_mmu.c-802-	if (!privs[1]) {
--
arch/powerpc/kvm/e500_mmu.c=898=int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
--
arch/powerpc/kvm/e500_mmu.c-922-
arch/powerpc/kvm/e500_mmu.c:923:	vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-924-					       vcpu_e500->gtlb_params[0].entries);
--
arch/powerpc/kvm/e500_mmu.c-927-
arch/powerpc/kvm/e500_mmu.c:928:	vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-929-					       vcpu_e500->gtlb_params[1].entries);
--
arch/powerpc/mm/drmem.c=425=static void __init init_drmem_v1_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-432-
arch/powerpc/mm/drmem.c:433:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-434-	if (!drmem_info->lmbs)
--
arch/powerpc/mm/drmem.c=441=static void __init init_drmem_v2_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-459-
arch/powerpc/mm/drmem.c:460:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-461-	if (!drmem_info->lmbs)
--
arch/powerpc/perf/imc-pmu.c=221=static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu)
--
arch/powerpc/perf/imc-pmu.c-259-	/* Allocate memory for the events */
arch/powerpc/perf/imc-pmu.c:260:	pmu->events = kzalloc_objs(struct imc_events, ct);
arch/powerpc/perf/imc-pmu.c-261-	if (!pmu->events) {
--
arch/powerpc/perf/imc-pmu.c-290-	 */
arch/powerpc/perf/imc-pmu.c:291:	attrs = kzalloc_objs(struct attribute *, ((ct * 3) + 1));
arch/powerpc/perf/imc-pmu.c-292-	if (!attrs) {
--
arch/powerpc/perf/imc-pmu.c=1526=static int init_nest_pmu_ref(void)
--
arch/powerpc/perf/imc-pmu.c-1529-
arch/powerpc/perf/imc-pmu.c:1530:	nest_imc_refc = kzalloc_objs(*nest_imc_refc, num_possible_nodes());
arch/powerpc/perf/imc-pmu.c-1531-
--
arch/powerpc/perf/imc-pmu.c=1683=static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,
--
arch/powerpc/perf/imc-pmu.c-1700-		if (!per_nest_pmu_arr) {
arch/powerpc/perf/imc-pmu.c:1701:			per_nest_pmu_arr = kzalloc_objs(struct imc_pmu *,
arch/powerpc/perf/imc-pmu.c-1702-							get_max_nest_dev() + 1);
--
arch/powerpc/perf/imc-pmu.c-1714-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1715:		pmu_ptr->mem_info = kzalloc_objs(struct imc_mem_info, nr_cores);
arch/powerpc/perf/imc-pmu.c-1716-
--
arch/powerpc/perf/imc-pmu.c-1719-
arch/powerpc/perf/imc-pmu.c:1720:		core_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1721-
--
arch/powerpc/perf/imc-pmu.c-1752-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1753:		trace_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1754-		if (!trace_imc_refc)
--
arch/powerpc/perf/vpa-dtl.c=508=static void *vpa_dtl_setup_aux(struct perf_event *event, void **pages,
--
arch/powerpc/perf/vpa-dtl.c-525-
arch/powerpc/perf/vpa-dtl.c:526:	pglist = kzalloc_objs(*pglist, nr_pages);
arch/powerpc/perf/vpa-dtl.c-527-	if (!pglist)
--
arch/powerpc/platforms/44x/pci.c=1307=static int __init ppc4xx_pciex_check_core_init(struct device_node *np)
--
arch/powerpc/platforms/44x/pci.c-1341-		ppc4xx_pciex_ports =
arch/powerpc/platforms/44x/pci.c:1342:		       kzalloc_objs(struct ppc4xx_pciex_port, count);
arch/powerpc/platforms/44x/pci.c-1343-		if (ppc4xx_pciex_ports) {
--
arch/powerpc/platforms/powernv/idle.c=1322=static int __init pnv_parse_cpuidle_dt(void)
--
arch/powerpc/platforms/powernv/idle.c-1338-
arch/powerpc/platforms/powernv/idle.c:1339:	pnv_idle_states = kzalloc_objs(*pnv_idle_states, nr_idle_states);
arch/powerpc/platforms/powernv/idle.c-1340-	temp_u32 = kcalloc(nr_idle_states, sizeof(u32),  GFP_KERNEL);
--
arch/powerpc/platforms/powernv/memtrace.c=131=static int memtrace_init_regions_runtime(u64 size)
--
arch/powerpc/platforms/powernv/memtrace.c-135-
arch/powerpc/platforms/powernv/memtrace.c:136:	memtrace_array = kzalloc_objs(struct memtrace_entry, num_online_nodes());
arch/powerpc/platforms/powernv/memtrace.c-137-	if (!memtrace_array) {
--
arch/powerpc/platforms/powernv/opal-async.c=246=int __init opal_async_comp_init(void)
--
arch/powerpc/platforms/powernv/opal-async.c-267-	opal_max_async_tokens = be32_to_cpup(async);
arch/powerpc/platforms/powernv/opal-async.c:268:	opal_async_tokens = kzalloc_objs(*opal_async_tokens,
arch/powerpc/platforms/powernv/opal-async.c-269-					 opal_max_async_tokens);
--
arch/powerpc/platforms/powernv/opal-imc.c=82=static int imc_get_mem_addr_nest(struct device_node *node,
--
arch/powerpc/platforms/powernv/opal-imc.c-110-
arch/powerpc/platforms/powernv/opal-imc.c:111:	pmu_ptr->mem_info = kzalloc_objs(*pmu_ptr->mem_info, nr_chips + 1);
arch/powerpc/platforms/powernv/opal-imc.c-112-	if (!pmu_ptr->mem_info)
--
arch/powerpc/platforms/powernv/opal-irqchip.c=174=int __init opal_event_init(void)
--
arch/powerpc/platforms/powernv/opal-irqchip.c-223-	/* Allocate an IRQ resources array */
arch/powerpc/platforms/powernv/opal-irqchip.c:224:	opal_irqs = kzalloc_objs(struct resource, opal_irq_count);
arch/powerpc/platforms/powernv/opal-irqchip.c-225-	if (WARN_ON(!opal_irqs)) {
--
arch/powerpc/platforms/powernv/opal-powercap.c=142=void __init opal_powercap_init(void)
--
arch/powerpc/platforms/powernv/opal-powercap.c-152-
arch/powerpc/platforms/powernv/opal-powercap.c:153:	pcaps = kzalloc_objs(*pcaps, of_get_child_count(powercap));
arch/powerpc/platforms/powernv/opal-powercap.c-154-	if (!pcaps)
--
arch/powerpc/platforms/powernv/opal-powercap.c-183-
arch/powerpc/platforms/powernv/opal-powercap.c:184:		pcaps[i].pattrs = kzalloc_objs(struct powercap_attr, j);
arch/powerpc/platforms/powernv/opal-powercap.c-185-		if (!pcaps[i].pattrs)
--
arch/powerpc/platforms/powernv/opal-powercap.c-187-
arch/powerpc/platforms/powernv/opal-powercap.c:188:		pcaps[i].pg.attrs = kzalloc_objs(struct attribute *, j + 1);
arch/powerpc/platforms/powernv/opal-powercap.c-189-		if (!pcaps[i].pg.attrs) {
--
arch/powerpc/platforms/powernv/opal-psr.c=123=void __init opal_psr_init(void)
--
arch/powerpc/platforms/powernv/opal-psr.c-134-
arch/powerpc/platforms/powernv/opal-psr.c:135:	psr_attrs = kzalloc_objs(*psr_attrs, of_get_child_count(psr));
arch/powerpc/platforms/powernv/opal-psr.c-136-	if (!psr_attrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c=160=void __init opal_sensor_groups_init(void)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-170-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:171:	sgs = kzalloc_objs(*sgs, of_get_child_count(sg));
arch/powerpc/platforms/powernv/opal-sensor-groups.c-172-	if (!sgs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-192-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:193:		sgs[i].sgattrs = kzalloc_objs(*sgs[i].sgattrs, nr_attrs);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-194-		if (!sgs[i].sgattrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-196-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:197:		sgs[i].sg.attrs = kzalloc_objs(*sgs[i].sg.attrs, nr_attrs + 1);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-198-
--
arch/powerpc/platforms/powernv/opal-sysparam.c=143=void __init opal_sys_param_init(void)
--
arch/powerpc/platforms/powernv/opal-sysparam.c-224-
arch/powerpc/platforms/powernv/opal-sysparam.c:225:	attr = kzalloc_objs(*attr, count);
arch/powerpc/platforms/powernv/opal-sysparam.c-226-	if (!attr) {
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c=233=static int __init papr_init(void)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-297-
arch/powerpc/platforms/pseries/papr_platform_attributes.c:298:	papr_groups = kzalloc_objs(*papr_groups, num_attrs);
arch/powerpc/platforms/pseries/papr_platform_attributes.c-299-	if (!papr_groups)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-315-	for (idx = 0; idx < num_attrs; idx++) {
arch/powerpc/platforms/pseries/papr_platform_attributes.c:316:		papr_groups[idx].pg.attrs = kzalloc_objs(*papr_groups[idx].pg.attrs,
arch/powerpc/platforms/pseries/papr_platform_attributes.c-317-							 KOBJ_MAX_ATTRS + 1);
--
arch/powerpc/sysdev/mpic.c=542=static void __init mpic_scan_ht_pics(struct mpic *mpic)
--
arch/powerpc/sysdev/mpic.c-549-	/* Allocate fixups array */
arch/powerpc/sysdev/mpic.c:550:	mpic->fixups = kzalloc_objs(*mpic->fixups, 128);
arch/powerpc/sysdev/mpic.c-551-	BUG_ON(mpic->fixups == NULL);
--
arch/powerpc/sysdev/mpic_msgr.c=167=static int mpic_msgr_probe(struct platform_device *dev)
--
arch/powerpc/sysdev/mpic_msgr.c-190-
arch/powerpc/sysdev/mpic_msgr.c:191:		mpic_msgrs = kzalloc_objs(*mpic_msgrs, mpic_msgr_count);
arch/powerpc/sysdev/mpic_msgr.c-192-		if (!mpic_msgrs) {
--
arch/powerpc/sysdev/xive/common.c=1118=static int __init xive_init_ipis(void)
--
arch/powerpc/sysdev/xive/common.c-1133-
arch/powerpc/sysdev/xive/common.c:1134:	xive_ipis = kzalloc_objs(*xive_ipis, nr_node_ids,
arch/powerpc/sysdev/xive/common.c-1135-				 GFP_KERNEL | __GFP_NOFAIL);
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c=13=static void test_kprobe_riscv(struct kunit *test)
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c-22-
arch/riscv/kernel/tests/kprobes/test-kprobes.c:23:	kp = kzalloc_objs(*kp, num_kprobe);
arch/riscv/kernel/tests/kprobes/test-kprobes.c-24-	KUNIT_EXPECT_TRUE(test, kp);
--
arch/riscv/kernel/unaligned_access_speed.c=154=static void __init check_unaligned_access_speed_all_cpus(void)
--
arch/riscv/kernel/unaligned_access_speed.c-157-	unsigned int cpu_count = num_possible_cpus();
arch/riscv/kernel/unaligned_access_speed.c:158:	struct page **bufs = kzalloc_objs(*bufs, cpu_count);
arch/riscv/kernel/unaligned_access_speed.c-159-
--
arch/riscv/kernel/vdso.c=44=static void __init __vdso_init(struct __vdso_info *vdso_info)
--
arch/riscv/kernel/vdso.c-57-
arch/riscv/kernel/vdso.c:58:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info->vdso_pages);
arch/riscv/kernel/vdso.c-59-	if (vdso_pagelist == NULL)
--
arch/riscv/kvm/aia_aplic.c=574=int kvm_riscv_aia_aplic_init(struct kvm *kvm)
--
arch/riscv/kvm/aia_aplic.c-591-	aplic->nr_words = DIV_ROUND_UP(aplic->nr_irqs, 32);
arch/riscv/kvm/aia_aplic.c:592:	aplic->irqs = kzalloc_objs(*aplic->irqs, aplic->nr_irqs);
arch/riscv/kvm/aia_aplic.c-593-	if (!aplic->irqs) {
--
arch/riscv/kvm/vcpu_sbi_fwft.c=348=static int kvm_sbi_ext_fwft_init(struct kvm_vcpu *vcpu)
--
arch/riscv/kvm/vcpu_sbi_fwft.c-354-
arch/riscv/kvm/vcpu_sbi_fwft.c:355:	fwft->configs = kzalloc_objs(struct kvm_sbi_fwft_config,
arch/riscv/kvm/vcpu_sbi_fwft.c-356-				     ARRAY_SIZE(features));
--
arch/riscv/kvm/vm.c=93=int kvm_riscv_setup_default_irq_routing(struct kvm *kvm, u32 lines)
--
arch/riscv/kvm/vm.c-97-
arch/riscv/kvm/vm.c:98:	ents = kzalloc_objs(*ents, lines);
arch/riscv/kvm/vm.c-99-	if (!ents)
--
arch/riscv/net/bpf_jit_comp64.c=1022=static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
--
arch/riscv/net/bpf_jit_comp64.c-1197-	if (fmod_ret->nr_links) {
arch/riscv/net/bpf_jit_comp64.c:1198:		branches_off = kzalloc_objs(int, fmod_ret->nr_links);
arch/riscv/net/bpf_jit_comp64.c-1199-		if (!branches_off)
--
arch/riscv/net/bpf_jit_core.c=44=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/riscv/net/bpf_jit_core.c-74-	ctx->prog = prog;
arch/riscv/net/bpf_jit_core.c:75:	ctx->offset = kzalloc_objs(int, prog->len);
arch/riscv/net/bpf_jit_core.c-76-	if (!ctx->offset)
--
arch/s390/appldata/appldata_base.c=348=int appldata_register_ops(struct appldata_ops *ops)
--
arch/s390/appldata/appldata_base.c-352-
arch/s390/appldata/appldata_base.c:353:	ops->ctl_table = kzalloc_objs(struct ctl_table, 1);
arch/s390/appldata/appldata_base.c-354-	if (!ops->ctl_table)
--
arch/s390/include/asm/idals.h=88=static inline int set_normalized_cda(struct ccw1 *ccw, void *vaddr)
--
arch/s390/include/asm/idals.h-96-	if (nridaws > 0) {
arch/s390/include/asm/idals.h:97:		idal = kzalloc_objs(*idal, nridaws, GFP_ATOMIC | GFP_DMA);
arch/s390/include/asm/idals.h-98-		if (!idal)
--
arch/s390/kernel/cert_store.c=315=static int invalidate_keyring_keys(struct key *keyring)
--
arch/s390/kernel/cert_store.c-324-	num_keys = keyring_payload_len / sizeof(key_serial_t);
arch/s390/kernel/cert_store.c:325:	key_array = kzalloc_objs(key_serial_t, num_keys);
arch/s390/kernel/cert_store.c-326-	if (!key_array)
--
arch/s390/kernel/debug.c=220=static debug_info_t *debug_info_alloc(const char *name, int pages_per_area,
--
arch/s390/kernel/debug.c-229-		goto fail_malloc_rc;
arch/s390/kernel/debug.c:230:	rc->active_entries = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-231-	if (!rc->active_entries)
arch/s390/kernel/debug.c-232-		goto fail_malloc_active_entries;
arch/s390/kernel/debug.c:233:	rc->active_pages = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-234-	if (!rc->active_pages)
--
arch/s390/kernel/vdso.c=129=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/s390/kernel/vdso.c-134-
arch/s390/kernel/vdso.c:135:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/s390/kernel/vdso.c-136-	if (!pagelist)
--
arch/s390/kvm/pci.c=120=int kvm_s390_pci_aen_init(u8 nisc)
--
arch/s390/kvm/pci.c-128-	mutex_lock(&aift->aift_lock);
arch/s390/kvm/pci.c:129:	aift->kzdev = kzalloc_objs(struct kvm_zdev *, ZPCI_NR_DEVICES);
arch/s390/kvm/pci.c-130-	if (!aift->kzdev) {
--
arch/s390/pci/pci.c=1065=static int zpci_mem_init(void)
--
arch/s390/pci/pci.c-1076-
arch/s390/pci/pci.c:1077:	zpci_iomap_start = kzalloc_objs(*zpci_iomap_start, ZPCI_IOMAP_ENTRIES);
arch/s390/pci/pci.c-1078-	if (!zpci_iomap_start)
--
arch/s390/pci/pci_irq.c=552=static int __init zpci_directed_irq_init(void)
--
arch/s390/pci/pci_irq.c-565-
arch/s390/pci/pci_irq.c:566:	zpci_ibv = kzalloc_objs(*zpci_ibv, num_possible_cpus());
arch/s390/pci/pci_irq.c-567-	if (!zpci_ibv)
--
arch/s390/pci/pci_irq.c=590=static int __init zpci_floating_irq_init(void)
arch/s390/pci/pci_irq.c-591-{
arch/s390/pci/pci_irq.c:592:	zpci_ibv = kzalloc_objs(*zpci_ibv, ZPCI_NR_DEVICES);
arch/s390/pci/pci_irq.c-593-	if (!zpci_ibv)
--
arch/sh/drivers/dma/dmabrg.c=151=static int __init dmabrg_init(void)
--
arch/sh/drivers/dma/dmabrg.c-155-
arch/sh/drivers/dma/dmabrg.c:156:	dmabrg_handlers = kzalloc_objs(struct dmabrg_handler, 10);
arch/sh/drivers/dma/dmabrg.c-157-	if (!dmabrg_handlers)
--
arch/sh/drivers/pci/pcie-sh7786.c=545=static int __init sh7786_pcie_init(void)
--
arch/sh/drivers/pci/pcie-sh7786.c-560-
arch/sh/drivers/pci/pcie-sh7786.c:561:	sh7786_pcie_ports = kzalloc_objs(struct sh7786_pcie_port, nr_ports);
arch/sh/drivers/pci/pcie-sh7786.c-562-	if (unlikely(!sh7786_pcie_ports))
--
arch/sparc/kernel/sys_sparc_64.c=625=SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type,
--
arch/sparc/kernel/sys_sparc_64.c-649-		current_thread_info()->utraps =
arch/sparc/kernel/sys_sparc_64.c:650:			kzalloc_objs(long, UT_TRAP_INSTRUCTION_31 + 1);
arch/sparc/kernel/sys_sparc_64.c-651-		if (!current_thread_info()->utraps)
--
arch/sparc/vdso/vma.c=46=static int __init init_vdso_image(const struct vdso_image *image,
--
arch/sparc/vdso/vma.c-60-
arch/sparc/vdso/vma.c:61:	cpp = kzalloc_objs(struct page *, cnpages);
arch/sparc/vdso/vma.c-62-	vdso_mapping->pages = cpp;
--
arch/x86/events/amd/iommu.c=382=static __init int _init_events_attrs(void)
--
arch/x86/events/amd/iommu.c-389-
arch/x86/events/amd/iommu.c:390:	attrs = kzalloc_objs(*attrs, i + 1);
arch/x86/events/amd/iommu.c-391-	if (!attrs)
--
arch/x86/events/intel/core.c=7420=static __always_inline int intel_pmu_init_hybrid(enum hybrid_pmu_type pmus)
--
arch/x86/events/intel/core.c-7426-	x86_pmu.num_hybrid_pmus = hweight_long(pmus_mask);
arch/x86/events/intel/core.c:7427:	x86_pmu.hybrid_pmu = kzalloc_objs(struct x86_hybrid_pmu,
arch/x86/events/intel/core.c-7428-					  x86_pmu.num_hybrid_pmus);
--
arch/x86/events/intel/uncore.c=988=static int __init uncore_type_init(struct intel_uncore_type *type)
--
arch/x86/events/intel/uncore.c-993-

]

14/2 2026/06/15 16:08 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23590
							output: 20
							thoughts: 124
						

Thoughts:
**Investigating an Unfamiliar Allocation Macro**

Okay, so I've come across this `kzalloc_objs` thing. My first instinct, being familiar with the kernel's memory management, is to quickly check where it's defined. My first thought is to look in the standard slab headers, `include/linux/slab.h` or maybe the related `include/linux/slab_def.h`. Hmm, that's not quite right. `kzalloc_objs` doesn't immediately ring a bell. Is it a non-standard name? I think the proper approach would be to use `kcalloc` or `kmalloc_array`.

Wait... is `kzalloc_objs` not even showing up when I search for its definition? That's odd. Let me double-check the immediate output related to `kzalloc_objs`. Still nothing. Okay, perhaps it's defined in `include/linux/slab.h` after all, despite it not seeming like the most standard of allocations. Let me run a search for `#define kzalloc_objs` or something similar, just to be absolutely sure. This is an unusual allocation construct, I need to figure out where it comes from.



15/2 2026/06/15 16:08 tool grepper
0m Args:
map[Expression:#define kzalloc_objs]

Results:
map[Output:include/linux/slab.h=958=void *kmalloc_nolock_noprof(size_t size, gfp_t gfp_flags, int node);
--
include/linux/slab.h-1040-	__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
include/linux/slab.h:1041:#define kzalloc_objs(P, COUNT, ...) \
include/linux/slab.h-1042-	__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), COUNT)
]

16/2 2026/06/15 16:08 llm debugger
1m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24151
							output: 41
							thoughts: 510
						

Thoughts:
**Analyzing a Potential Memory Allocation Issue**

Okay, so I'm looking at this `kzalloc_objs` function, which appears to allocate an array of `drm_mode_object` pointers. The core of it seems to be calling `kzalloc`, which makes me immediately think of memory allocation limits. Let's see, `object_count` is a hefty `0xf4240` (1,000,000). And since a `drm_mode_object *` is 8 bytes, the total size of the allocation is a substantial 8MB.

Now, alarm bells are going off. While `kzalloc` is generally safe, it relies on `kmalloc` underneath, and `kmalloc` *definitely* has size limits. So, allocating an 8MB block directly with `kzalloc` (or, by extension, `kmalloc`) is making me a bit nervous. I need to be sure this is handled correctly.

Let me refresh my memory and examine the crash again. The backtrace shows a warning from `mm/page_alloc.c:5197`, a clear red flag. That's a strong hint that the underlying memory allocation isn't happening properly. Let's dig into that specific line of code in `mm/page_alloc.c` and figure out why it's complaining. It's time to understand exactly where the allocation is failing and why the kernel's memory management is issuing a warning. We need to prevent such allocations from crashing the system.



17/2 2026/06/15 16:09 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/page_alloc.c Name:__alloc_frozen_pages_noprof]

Results:
map[SourceCode:5182:	/*
5183:	 * This is the 'heart' of the zoned buddy allocator.
5184:	 */
5185:	struct page *__alloc_frozen_pages_noprof(gfp_t gfp, unsigned int order,
5186:			int preferred_nid, nodemask_t *nodemask)
5187:	{
5188:		struct page *page;
5189:		unsigned int alloc_flags = ALLOC_WMARK_LOW;
5190:		gfp_t alloc_gfp; /* The gfp_t that was actually used for allocation */
5191:		struct alloc_context ac = { };
5192:	
5193:		/*
5194:		 * There are several places where we assume that the order value is sane
5195:		 * so bail out early if the request is out of bound.
5196:		 */
5197:		if (WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp))
5198:			return NULL;
5199:	
5200:		gfp &= gfp_allowed_mask;
5201:		/*
5202:		 * Apply scoped allocation constraints. This is mainly about GFP_NOFS
5203:		 * resp. GFP_NOIO which has to be inherited for all allocation requests
5204:		 * from a particular context which has been marked by
5205:		 * memalloc_no{fs,io}_{save,restore}. And PF_MEMALLOC_PIN which ensures
5206:		 * movable zones are not used during allocation.
5207:		 */
5208:		gfp = current_gfp_context(gfp);
5209:		alloc_gfp = gfp;
5210:		if (!prepare_alloc_pages(gfp, order, preferred_nid, nodemask, &ac,
5211:				&alloc_gfp, &alloc_flags))
5212:			return NULL;
5213:	
5214:		/*
5215:		 * Forbid the first pass from falling back to types that fragment
5216:		 * memory until all local zones are considered.
5217:		 */
5218:		alloc_flags |= alloc_flags_nofragment(zonelist_zone(ac.preferred_zoneref), gfp);
5219:	
5220:		/* First allocation attempt */
5221:		page = get_page_from_freelist(alloc_gfp, order, alloc_flags, &ac);
5222:		if (likely(page))
5223:			goto out;
5224:	
5225:		alloc_gfp = gfp;
5226:		ac.spread_dirty_pages = false;
5227:	
5228:		/*
5229:		 * Restore the original nodemask if it was potentially replaced with
5230:		 * &cpuset_current_mems_allowed to optimize the fast-path attempt.
5231:		 */
5232:		ac.nodemask = nodemask;
5233:	
5234:		page = __alloc_pages_slowpath(alloc_gfp, order, &ac);
5235:	
5236:	out:
5237:		if (memcg_kmem_online() && (gfp & __GFP_ACCOUNT) && page &&
5238:		    unlikely(__memcg_kmem_charge_page(page, gfp, order) != 0)) {
5239:			free_frozen_pages(page, order);
5240:			page = NULL;
5241:		}
5242:	
5243:		trace_mm_page_alloc(page, order, alloc_gfp, ac.migratetype);
5244:		kmsan_alloc_page(page, order, alloc_gfp);
5245:	
5246:		return page;
5247:	}
 SourceFile:mm/page_alloc.c]

18/2 2026/06/15 16:09 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26103
							output: 35
							thoughts: 266
						

Thoughts:
**Analyzing a Potential Memory Allocation Issue**

Okay, so I'm looking at this warning: `WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp)`. My initial thought is to figure out when this condition is met. I know `MAX_PAGE_ORDER` is typically 10 or 11. Let's work through an example. If we have an `object_count` of 1,000,000, and assuming a size of 8 bytes per object (just making an assumption here, but I need a representative value), then the total allocation size is 8MB. Converting that to pages gives us roughly 1953 pages. Now, 1953 pages corresponds to an order of 11. So, if `MAX_PAGE_ORDER` is set to 10, then yes, this *would* trigger the warning because 11 is greater than 10. That makes perfect sense.

But wait a minute... where is this memory being allocated? Ah, the `drm_mode_create_lease_ioctl` function calls `memdup_array_user` to copy the `object_ids` array:

```c
		if (object_count != 0) {
			object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
						       object_count, sizeof(__u32));
			if (IS_ERR(object_ids)) {
```

Okay, so the `object_ids` are allocated using `memdup_array_user`. I need to look closely at that. Is it using the standard kernel allocators, or does it have its own mechanisms? I need to understand how the user-space data is being copied, the allocation size, and the potential for abuse (i.e., user-provided `object_count` being too large.)



19/2 2026/06/15 16:09 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/util.c Name:memdup_array_user]

Results:
map[SourceCode:  22:	/**
  23:	 * memdup_array_user - duplicate array from user space
  24:	 * @src: source address in user space
  25:	 * @n: number of array members to copy
  26:	 * @size: size of one array member
  27:	 *
  28:	 * Return: an ERR_PTR() on failure. Result is physically
  29:	 * contiguous, to be freed by kfree().
  30:	 */
  31:	static inline __realloc_size(2, 3)
  32:	void *memdup_array_user(const void __user *src, size_t n, size_t size)
  33:	{
  34:		size_t nbytes;
  35:	
  36:		if (check_mul_overflow(n, size, &nbytes))
  37:			return ERR_PTR(-EOVERFLOW);
  38:	
  39:		return memdup_user(src, nbytes);
  40:	}
 SourceFile:include/linux/string.h]

20/2 2026/06/15 16:09 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27116
							output: 33
							thoughts: 29
						

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

**Investigating `memdup_user` and Memory Allocation**

Okay, so I'm dealing with `memdup_user` again. Hmm, I need to refresh my memory on the underlying memory allocation used by this function. I seem to recall it being one of the kernel's memory allocators, but I need to be precise. Does it use `kvmalloc` or the more general `kmalloc`? Time to dig into the implementation of `memdup_user` itself. Let's get to the source and verify how it handles its memory allocation. I need to be certain about this before I proceed.



21/2 2026/06/15 16:10 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/util.c Name:memdup_user]

Results:
map[SourceCode: 208:	/**
 209:	 * memdup_user - duplicate memory region from user space
 210:	 *
 211:	 * @src: source address in user space
 212:	 * @len: number of bytes to copy
 213:	 *
 214:	 * Return: an ERR_PTR() on failure.  Result is physically
 215:	 * contiguous, to be freed by kfree().
 216:	 */
 217:	void *memdup_user(const void __user *src, size_t len)
 218:	{
 219:		void *p;
 220:	
 221:		p = kmem_buckets_alloc_track_caller(user_buckets, len, GFP_USER | __GFP_NOWARN);
 222:		if (!p)
 223:			return ERR_PTR(-ENOMEM);
 224:	
 225:		if (copy_from_user(p, src, len)) {
 226:			kfree(p);
 227:			return ERR_PTR(-EFAULT);
 228:		}
 229:	
 230:		return p;
 231:	}
 SourceFile:mm/util.c]

22/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27678
							output: 35
							thoughts: 272
						

Thoughts:
**My Analysis of a Memory Allocation Pattern**

Okay, so I'm looking at `memdup_user` here. It seems to be using `kmem_buckets_alloc_track_caller` with `GFP_USER | __GFP_NOWARN`. Hmm, the `__GFP_NOWARN` flag... that means it's *not* going to complain if the memory allocation fails. That's a red flag. But wait, `fill_object_idr` uses `kzalloc_objs(struct drm_mode_object *, object_count)` which appears as:

```c
	objects = kzalloc_objs(struct drm_mode_object *, object_count);
```

Right, but `kzalloc_objs` expands, which is where things get interesting: `__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), COUNT)`.  `kzalloc_objs` is using `kzalloc`. And *that* uses `kmalloc` with `GFP_KERNEL | __GFP_ZERO`. Crucially, `kzalloc` doesn't have the `__GFP_NOWARN` flag.

So, here's the problem. If `object_count` is large, `kzalloc` is going to attempt to allocate a *large* chunk of physically contiguous memory. This will likely trigger `WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp)` within `__alloc_frozen_pages_noprof`. I need to review `kzalloc_objs` to be certain.



23/2 2026/06/15 16:10 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:include/linux/slab.h Name:kzalloc_objs]

Results:
map[SourceCode: SourceFile:]

24/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28345
							output: 43
							thoughts: 196
						

Thoughts:
**Analyzing a Potential Vulnerability in the DRM Lease Creation IOCTL**

Okay, so I'm looking at this macro, `kzalloc_objs`, found in `include/linux/slab.h`. It looks like it's a wrapper for `kzalloc`, and I see the definition:
```c
#define kzalloc_objs(P, COUNT, ...) \
	__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), COUNT)
```
The key thing here is `kzalloc`. That means it's allocating memory, and if `COUNT` gets big, it'll allocate a really big chunk. Hmmm, the next thing I see, a user controls `object_count`. This is in the `drm_mode_create_lease_ioctl` function:
```c
	object_count = cl->object_count;
```
Okay, `cl` is a `struct drm_mode_create_lease *cl = data;` so that's where `object_count` comes from. This `cl->object_count` is passed directly into the `kzalloc_objs` macro. But wait a minute, `object_count` itself is `size_t` but, `cl->object_count` is `__u32` according to the struct. Time to verify what `struct drm_mode_create_lease` holds. This is interesting... this could be a classic integer overflow vulnerability right here.



25/2 2026/06/15 16:10 tool codesearch-definition-source
0m Args:
map[ContextFile:include/uapi/drm/drm_mode.h Name:drm_mode_create_lease]

Results:
map[SourceCode:1441:	/**
1442:	 * struct drm_mode_create_lease - Create lease
1443:	 *
1444:	 * Lease mode resources, creating another drm_master.
1445:	 *
1446:	 * The @object_ids array must reference at least one CRTC, one connector and
1447:	 * one plane if &DRM_CLIENT_CAP_UNIVERSAL_PLANES is enabled. Alternatively,
1448:	 * the lease can be completely empty.
1449:	 */
1450:	struct drm_mode_create_lease {
1451:		/** @object_ids: Pointer to array of object ids (__u32) */
1452:		__u64 object_ids;
1453:		/** @object_count: Number of object ids */
1454:		__u32 object_count;
1455:		/** @flags: flags for new FD (O_CLOEXEC, etc) */
1456:		__u32 flags;
1457:	
1458:		/** @lessee_id: Return: unique identifier for lessee. */
1459:		__u32 lessee_id;
1460:		/** @fd: Return: file descriptor to new drm_master file */
1461:		__u32 fd;
1462:	};
 SourceFile:include/uapi/drm/drm_mode.h]

26/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29291
							output: 37
							thoughts: 620
						

Thoughts:
**Analyzing a Potential Vulnerability in DRM Lease Creation**

Okay, so I'm looking at this `drm_mode_create_lease_ioctl` function, specifically the section dealing with object IDs. I see `object_count` is a `__u32`, which is important for the potential size of the array. The code uses `memdup_array_user` to copy these IDs from userspace, and that's where things get interesting.

`memdup_array_user` ultimately calls `memdup_user`, which uses `kmem_buckets_alloc_track_caller`. That's basically a `kmalloc` under the hood. Now, if `object_count` is a substantial number like 1,000,000 (0xf4240), then the size of the allocation is `4 * 1,000,000 = 4,000,000` bytes, since each ID is a `__u32`. I need to think about potential integer overflows here, but I don't see anything obvious that indicates that is a problem here.

I see that `kmem_buckets_alloc_track_caller` with `__GFP_NOWARN` means it'll silently fail if the allocation is too big. That's a good first check. If `KMALLOC_MAX_SIZE` is, say, 4MB, then the 4MB allocation *succeeds*, because it's exactly the same size. That's fine, so far.

The code then calls `fill_object_idr`. Within that function, `kzalloc_objs` is called which is simply `kzalloc` with a suffix. This attempts to allocate an array of `struct drm_mode_object *` entries. With `object_count` at 1,000,000, and the size of a pointer (let's assume 8 bytes), that's an allocation of `8 * 1,000,000 = 8,000,000` bytes, or 8MB.

Now, if `KMALLOC_MAX_SIZE` is only 4MB, this allocation is *too large* for `kmalloc`. It looks like `kzalloc` will use `kmalloc`, which then would use `kmalloc_large`. I need to double-check that `kmalloc_large` or `__kmalloc_large_node` is not subject to a size limit that could be bypassed. I suspect, as a large allocation, we might see it try to allocate a large contiguous region. I'll check how that allocation works to look for potential flaws.



27/2 2026/06/15 16:10 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:mm/slub.c Name:__kmalloc_large_node]

Results:
map[SourceCode: SourceFile:]

28/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30549
							output: 41
							thoughts: 17
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Diving into `__kmalloc_large_node_noprof`**

Alright, time to get my hands dirty. Let's start with a look at `__kmalloc_large_node_noprof`. It's a key function in the memory management realm, specifically dealing with the allocation of larger memory chunks. Given the "large" and "node" elements, I'm already anticipating considerations related to NUMA architectures and potentially the complexities of allocating memory across different nodes in the system. The "noprof" suffix is particularly interesting. That strongly suggests that we're dealing with an uninstrumented version, possibly for performance-critical path. This usually means that any debugging will require extreme care! I should quickly check the surrounding context to understand what the larger code is intending to achieve, or where it's called from. I need to understand its relationship to things like `slab` and `buddy` allocators, and how it handles potential fragmentation issues or different memory policies. Time to see what the code has to say.



29/2 2026/06/15 16:10 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/slub.c Name:__kmalloc_large_node_noprof]

Results:
map[SourceCode:5266:	void *__kmalloc_large_node_noprof(size_t size, gfp_t flags, int node)
5267:	{
5268:		void *ret = ___kmalloc_large_node(size, flags, node);
5269:	
5270:		trace_kmalloc(_RET_IP_, ret, size, PAGE_SIZE << get_order(size),
5271:			      flags, node);
5272:		return ret;
5273:	}
 SourceFile:mm/slub.c]

30/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31016
							output: 37
							thoughts: 13
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience, presented in the first person:

**Diving into `kmalloc_large_node`**

Alright, time to get my hands dirty. Let's see what's happening with `___kmalloc_large_node`. I need to understand its behavior and potential edge cases within the broader memory allocation landscape. I’m thinking specifically about how it interacts with NUMA, and what sort of performance implications its large-node focus carries. I should probably be considering things like fragmentation risks within that particular node and how it handles allocation failures, especially when dealing with large requests, and if there are considerations regarding the size of the request relative to available memory. I’ll need to make sure to look at how it interacts with other memory allocation schemes as well, making sure there are no unexpected conflicts. I'm also curious about its interplay with any slab or page allocation internals. Let's see if this is handling prefetching properly too. The devil is always in the details, so I need to dig deep into the implementation.



31/2 2026/06/15 16:10 tool codesearch-definition-source
0m Args:
map[ContextFile:mm/slub.c Name:___kmalloc_large_node]

Results:
map[SourceCode:5220:	/*
5221:	 * To avoid unnecessary overhead, we pass through large allocation requests
5222:	 * directly to the page allocator. We use __GFP_COMP, because we will need to
5223:	 * know the allocation order to free the pages properly in kfree.
5224:	 */
5225:	static void *___kmalloc_large_node(size_t size, gfp_t flags, int node)
5226:	{
5227:		struct page *page;
5228:		void *ptr = NULL;
5229:		unsigned int order = get_order(size);
5230:	
5231:		if (unlikely(flags & GFP_SLAB_BUG_MASK))
5232:			flags = kmalloc_fix_flags(flags);
5233:	
5234:		flags |= __GFP_COMP;
5235:	
5236:		if (node == NUMA_NO_NODE)
5237:			page = alloc_frozen_pages_noprof(flags, order);
5238:		else
5239:			page = __alloc_frozen_pages_noprof(flags, order, node, NULL);
5240:	
5241:		if (page) {
5242:			ptr = page_address(page);
5243:			mod_lruvec_page_state(page, NR_SLAB_UNRECLAIMABLE_B,
5244:					      PAGE_SIZE << order);
5245:			__SetPageLargeKmalloc(page);
5246:		}
5247:	
5248:		ptr = kasan_kmalloc_large(ptr, size, flags);
5249:		/* As ptr might get tagged, call kmemleak hook after KASAN. */
5250:		kmemleak_alloc(ptr, size, 1, flags);
5251:		kmsan_kmalloc_large(ptr, size, flags);
5252:	
5253:		return ptr;
5254:	}
 SourceFile:mm/slub.c]

32/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31866
							output: 34
							thoughts: 470
						

Thoughts:
**Analyzing Potential Memory Allocation Issues**

Okay, so I'm following the code path, starting with `___kmalloc_large_node`, which leads me to `alloc_frozen_pages_noprof` called with the `order` parameter. Right, so if the size is 8MB, the order is 11, which is important. Now, here's where it gets interesting: if `MAX_PAGE_ORDER` is set to 10, then `__alloc_frozen_pages_noprof` is going to trigger `WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp)`.

I'm making sure I have this right. The `kzalloc_objs` function, it relies on `kzalloc`, which in turn uses `kmalloc` with `GFP_KERNEL | __GFP_ZERO`. And wait, `kmalloc` here *doesn't* have `__GFP_NOWARN` set, which is crucial. So, since the `order` is 11 and `MAX_PAGE_ORDER` is 10, the `WARN_ON_ONCE_GFP` will indeed be triggered because that `__GFP_NOWARN` flag isn't there to suppress the warning.

Now, I'm thinking about the contrast... I know that `memdup_array_user` *does* have `__GFP_NOWARN` inside `memdup_user`, so that specific call doesn't generate a warning on failure. But hold on, `memdup_array_user` allocates `object_count * 4` bytes. Let's say, just hypothetically, `object_count` is 1,000,000, then we get 4,000,000 bytes, which is 976 pages. 976 pages translates to an order of 10. And if `MAX_PAGE_ORDER` is 10, then order 10 is fine because it is less than or equal to `MAX_PAGE_ORDER`, so `memdup_user` succeeds, no warning.

Now the problem is clear, `kzalloc_objs` *then* allocates `object_count * 8` bytes. With the same `object_count` of 1,000,000, that’s 8,000,000 bytes. This is 1953 pages, order 11, which exceeds our `MAX_PAGE_ORDER` of 10. So *that's* why `kzalloc_objs` is triggering the warning!

The question now becomes, why does `fill_object_idr` use `kzalloc_objs` instead of something like `kvzalloc` or even the array version, `kvmalloc_array`? If `object_count` can potentially be large, it seems like `kvmalloc_array` would be much better, or at least a hard limit on `object_count`. I need to see if there's any kind of protection or limitations on how large `object_count` can be. I'll need to check the code for any bounds checks.



33/2 2026/06/15 16:10 tool grepper
0m Args:
map[Expression:object_count PathPrefix:drivers/gpu/drm/drm_lease.c]

Results:
map[Output:drivers/gpu/drm/drm_lease.c=346=static int validate_lease(struct drm_device *dev,
drivers/gpu/drm/drm_lease.c:347:			  int object_count,
drivers/gpu/drm/drm_lease.c-348-			  struct drm_mode_object **objects,
--
drivers/gpu/drm/drm_lease.c-358-
drivers/gpu/drm/drm_lease.c:359:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-360-		if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) {
--
drivers/gpu/drm/drm_lease.c=378=static int fill_object_idr(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-380-			   struct idr *leases,
drivers/gpu/drm/drm_lease.c:381:			   int object_count,
drivers/gpu/drm/drm_lease.c-382-			   u32 *object_ids)
--
drivers/gpu/drm/drm_lease.c-388-
drivers/gpu/drm/drm_lease.c:389:	objects = kzalloc_objs(struct drm_mode_object *, object_count);
drivers/gpu/drm/drm_lease.c-390-	if (!objects)
--
drivers/gpu/drm/drm_lease.c-394-	   and check for validity. */
drivers/gpu/drm/drm_lease.c:395:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-396-		objects[o] = drm_mode_object_find(dev, lessor_priv,
--
drivers/gpu/drm/drm_lease.c-410-
drivers/gpu/drm/drm_lease.c:411:	ret = validate_lease(dev, object_count, objects, universal_planes);
drivers/gpu/drm/drm_lease.c-412-	if (ret) {
--
drivers/gpu/drm/drm_lease.c-418-	   universal planes */
drivers/gpu/drm/drm_lease.c:419:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-420-		struct drm_mode_object *obj = objects[o];
--
drivers/gpu/drm/drm_lease.c-460-out_free_objects:
drivers/gpu/drm/drm_lease.c:461:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-462-		if (objects[o])
--
drivers/gpu/drm/drm_lease.c=475=int drm_mode_create_lease_ioctl(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-478-	struct drm_mode_create_lease *cl = data;
drivers/gpu/drm/drm_lease.c:479:	size_t object_count;
drivers/gpu/drm/drm_lease.c-480-	int ret = 0;
--
drivers/gpu/drm/drm_lease.c-506-
drivers/gpu/drm/drm_lease.c:507:	object_count = cl->object_count;
drivers/gpu/drm/drm_lease.c-508-
--
drivers/gpu/drm/drm_lease.c-510-	idr_init(&leases);
drivers/gpu/drm/drm_lease.c:511:	if (object_count != 0) {
drivers/gpu/drm/drm_lease.c-512-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
drivers/gpu/drm/drm_lease.c:513:					       object_count, sizeof(__u32));
drivers/gpu/drm/drm_lease.c-514-		if (IS_ERR(object_ids)) {
--
drivers/gpu/drm/drm_lease.c-521-		ret = fill_object_idr(dev, lessor_priv, &leases,
drivers/gpu/drm/drm_lease.c:522:				      object_count, object_ids);
drivers/gpu/drm/drm_lease.c-523-		kfree(object_ids);
]

34/2 2026/06/15 16:10 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34217
							output: 19
							thoughts: 997
						

Thoughts:
**Analyzing a Potential Kernel Crash in drm_mode_create_lease_ioctl**

Okay, so I'm looking at this `drm_mode_create_lease_ioctl` function, and it seems there's a potential vulnerability due to how it handles the `object_count` parameter from userspace. There's no inherent limit enforced on this `object_count`, which immediately raises a red flag. Let's see what happens if a user passes a large value, like `0xf4240` (1000000).

The `memdup_array_user` function is called, which allocates memory based on `object_count`. With the given example, it will try to allocate `1000000 * 4 = 4000000` bytes. Now, this is where it gets interesting: is this allocation size valid? I know `KMALLOC_MAX_SIZE` can be crucial here. On many systems, this is 4MB, sometimes 8MB. Let me check the math. `KMALLOC_MAX_SIZE` is defined as `PAGE_SIZE << MAX_PAGE_ORDER`. Assuming a standard 4096-byte page size and `MAX_PAGE_ORDER` of 10, that makes it `4096 << 10 = 4194304` bytes (4MB). So, the `memdup_array_user` allocation *succeeds* because 4MB is less than 4MB, I have to be careful with my words!

However, the problem comes next. The code then calls `fill_object_idr`, which calls `kzalloc_objs` to allocate memory for the objects. The allocation size here is `1000000 * 8 = 8000000` bytes. 8MB is larger than the 4MB `KMALLOC_MAX_SIZE`.

`kzalloc_objs` uses `kmalloc` without `__GFP_NOWARN`. This means it *will* trigger a warning from the page allocator when it tries to allocate memory larger than allowed. This isn't just a potential performance issue, this is a kernel crash! Syzkaller treats warnings as crashes, so this is a serious problem.

Let's drill down: `kzalloc_objs` is just a wrapper for `kzalloc`, which, in turn, uses `kmalloc` with the `__GFP_ZERO` flag. Now, if the requested size exceeds `KMALLOC_MAX_SIZE`, `kmalloc` calls `kmalloc_large`. `kmalloc_large` calls `alloc_pages` with an order exceeding `MAX_PAGE_ORDER`. And `alloc_pages` *has* a `WARN_ON_ONCE_GFP` check for this condition! It prints a warning and returns NULL, which then cascades up to `kzalloc`, which returns NULL. Then `fill_object_idr` returns `-ENOMEM`. The core of the problem here is the warning that gets triggered due to the `kmalloc` with a size greater than `KMALLOC_MAX_SIZE`.

So, the immediate fix? I need to look at using `kvmalloc_array` or `kvzalloc` for the `objects` allocation.

Also, let's revisit `memdup_array_user`: It uses `memdup_user`, which uses `kmalloc` with `GFP_USER | __GFP_NOWARN`. If `object_count` were even *larger*, say 2000000, `memdup_array_user` would try to allocate 8MB. Because of `__GFP_NOWARN`, it would *fail* and return `-ENOMEM` silently, which is better than a kernel panic, but still not ideal.

But if `object_count` is large enough to pass the first allocation, but small enough to fail on the second, we still have a problem. Let's say `object_count` is 1000000, `memdup_array_user` allocates successfully (4MB), and `kzalloc_objs` fails (8MB).

I'm starting to think that `memdup_array_user` should also consider `kvmalloc` for larger arrays, even though it currently just uses `kmalloc`. It's defined in `include/linux/string.h` and uses `memdup_user`, which in turn, uses `kmalloc`. If a user wants a huge array, `memdup_user` fails because it exceeds the `4MB` limit. Is there something like `vmemdup_user`?



35/2 2026/06/15 16:11 tool grepper
0m Args:
map[Expression:vmemdup_user]

Results:
map[Output:Documentation/core-api/kernel-api.rst=30=String Manipulation
--
Documentation/core-api/kernel-api.rst-43-   :functions: kstrdup kstrdup_const kstrndup kmemdup kmemdup_nul memdup_user
Documentation/core-api/kernel-api.rst:44:               vmemdup_user strndup_user memdup_user_nul
Documentation/core-api/kernel-api.rst-45-
--
drivers/cxl/core/mbox.c=359=static int cxl_mbox_cmd_ctor(struct cxl_mbox_cmd *mbox_cmd,
--
drivers/cxl/core/mbox.c-368-	if (in_size) {
drivers/cxl/core/mbox.c:369:		mbox_cmd->payload_in = vmemdup_user(u64_to_user_ptr(in_payload),
drivers/cxl/core/mbox.c-370-						    in_size);
--
drivers/gpu/drm/nouveau/nouveau_drv.h=194=u_memcpya(uint64_t user, unsigned int nmemb, unsigned int size)
--
drivers/gpu/drm/nouveau/nouveau_drv.h-200-		return ERR_PTR(-EOVERFLOW);
drivers/gpu/drm/nouveau/nouveau_drv.h:201:	return vmemdup_user(userptr, bytes);
drivers/gpu/drm/nouveau/nouveau_drv.h-202-}
--
drivers/gpu/drm/tegra/submit.c=161=static void *alloc_copy_user_array(void __user *from, size_t count, size_t size)
--
drivers/gpu/drm/tegra/submit.c-171-
drivers/gpu/drm/tegra/submit.c:172:	data = vmemdup_user(from, copy_len);
drivers/gpu/drm/tegra/submit.c-173-	if (IS_ERR(data))
--
drivers/gpu/drm/virtio/virtgpu_submit.c=369=static int virtio_gpu_init_submit(struct virtio_gpu_submit *submit,
--
drivers/gpu/drm/virtio/virtgpu_submit.c-417-
drivers/gpu/drm/virtio/virtgpu_submit.c:418:	submit->buf = vmemdup_user(u64_to_user_ptr(exbuf->command), exbuf->size);
drivers/gpu/drm/virtio/virtgpu_submit.c-419-	if (IS_ERR(submit->buf))
--
drivers/gpu/drm/xe/xe_exec_queue.c=796=static int exec_queue_set_hang_replay_state(struct xe_device *xe,
--
drivers/gpu/drm/xe/xe_exec_queue.c-803-
drivers/gpu/drm/xe/xe_exec_queue.c:804:	ptr = vmemdup_user(address, size);
drivers/gpu/drm/xe/xe_exec_queue.c-805-	if (XE_IOCTL_DBG(xe, IS_ERR(ptr)))
--
drivers/hv/mshv_root_main.c=1571=mshv_partition_ioctl_set_msi_routing(struct mshv_partition *partition,
--
drivers/hv/mshv_root_main.c-1587-
drivers/hv/mshv_root_main.c:1588:		entries = vmemdup_user(urouting->entries,
drivers/hv/mshv_root_main.c-1589-				       array_size(sizeof(*entries),
--
drivers/staging/axis-fifo/axis-fifo.c=213=static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
--
drivers/staging/axis-fifo/axis-fifo.c-253-
drivers/staging/axis-fifo/axis-fifo.c:254:	txbuf = vmemdup_user(buf, len);
drivers/staging/axis-fifo/axis-fifo.c-255-	if (IS_ERR(txbuf)) {
--
drivers/vdpa/vdpa_user/vduse_dev.c=2142=static long vduse_ioctl(struct file *file, unsigned int cmd,
--
drivers/vdpa/vdpa_user/vduse_dev.c-2185-
drivers/vdpa/vdpa_user/vduse_dev.c:2186:		buf = vmemdup_user(argp + size, config.config_size);
drivers/vdpa/vdpa_user/vduse_dev.c-2187-		if (IS_ERR(buf)) {
--
drivers/vhost/vdpa.c=382=static long vhost_vdpa_set_config(struct vhost_vdpa *v,
--
drivers/vhost/vdpa.c-394-
drivers/vhost/vdpa.c:395:	buf = vmemdup_user(c->buf, config.len);
drivers/vhost/vdpa.c-396-	if (IS_ERR(buf))
--
fs/coda/psdev.c=91=static ssize_t coda_psdev_write(struct file *file, const char __user *buf, 
--
fs/coda/psdev.c-125-
fs/coda/psdev.c:126:		dcbuf = vmemdup_user(buf, nbytes);
fs/coda/psdev.c-127-		if (IS_ERR(dcbuf)) {
--
fs/nilfs2/ioctl.c=834=static int nilfs_ioctl_clean_segments(struct inode *inode, struct file *filp,
--
fs/nilfs2/ioctl.c-895-
fs/nilfs2/ioctl.c:896:		kbufs[n] = vmemdup_user(u64_to_user_ptr(argv[n].v_base), len);
fs/nilfs2/ioctl.c-897-		if (IS_ERR(kbufs[n])) {
--
fs/nilfs2/ioctl.c=1176=static int nilfs_ioctl_set_suinfo(struct inode *inode, struct file *filp,
--
fs/nilfs2/ioctl.c-1212-
fs/nilfs2/ioctl.c:1213:	kbuf = vmemdup_user(u64_to_user_ptr(argv.v_base), len);
fs/nilfs2/ioctl.c-1214-	if (IS_ERR(kbuf)) {
--
fs/pstore/platform.c=436=static int pstore_write_user_compat(struct pstore_record *record,
--
fs/pstore/platform.c-443-
fs/pstore/platform.c:444:	record->buf = vmemdup_user(buf, record->size);
fs/pstore/platform.c-445-	if (IS_ERR(record->buf)) {
--
fs/xattr.c=622=int setxattr_copy(const char __user *name, struct kernel_xattr_ctx *ctx)
--
fs/xattr.c-636-
fs/xattr.c:637:		ctx->kvalue = vmemdup_user(ctx->cvalue, ctx->size);
fs/xattr.c-638-		if (IS_ERR(ctx->kvalue)) {
--
include/linux/string.h=18=extern void *memdup_user(const void __user *, size_t) __realloc_size(2);
include/linux/string.h:19:extern void *vmemdup_user(const void __user *, size_t) __realloc_size(2);
include/linux/string.h-20-extern void *memdup_user_nul(const void __user *, size_t);
--
include/linux/string.h=52=void *vmemdup_array_user(const void __user *src, size_t n, size_t size)
--
include/linux/string.h-58-
include/linux/string.h:59:	return vmemdup_user(src, nbytes);
include/linux/string.h-60-}
--
kernel/bpf/syscall.c=1679=static void *__bpf_copy_key(void __user *ukey, u64 key_size)
--
kernel/bpf/syscall.c-1681-	if (key_size)
kernel/bpf/syscall.c:1682:		return vmemdup_user(ukey, key_size);
kernel/bpf/syscall.c-1683-
--
mm/util.c=232=EXPORT_SYMBOL(memdup_user);
--
mm/util.c-234-/**
mm/util.c:235: * vmemdup_user - duplicate memory region from user space
mm/util.c-236- *
--
mm/util.c-242- */
mm/util.c:243:void *vmemdup_user(const void __user *src, size_t len)
mm/util.c-244-{
--
mm/util.c-257-}
mm/util.c:258:EXPORT_SYMBOL(vmemdup_user);
mm/util.c-259-
--
scripts/coccinelle/api/memdup_user.cocci=16=virtual report
--
scripts/coccinelle/api/memdup_user.cocci-19-@@
scripts/coccinelle/api/memdup_user.cocci:20:filter = frozenset(['memdup_user', 'vmemdup_user'])
scripts/coccinelle/api/memdup_user.cocci-21-
--
scripts/coccinelle/api/memdup_user.cocci=53=position p : script:python() { relevant(p) };
--
scripts/coccinelle/api/memdup_user.cocci-56--  to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
scripts/coccinelle/api/memdup_user.cocci:57:+  to = vmemdup_user(from,size);
scripts/coccinelle/api/memdup_user.cocci-58-   if (
--
scripts/coccinelle/api/memdup_user.cocci=110=p << rv.p;
--
scripts/coccinelle/api/memdup_user.cocci-112-
scripts/coccinelle/api/memdup_user.cocci:113:coccilib.org.print_todo(p[0], "WARNING opportunity for vmemdup_user")
scripts/coccinelle/api/memdup_user.cocci-114-
--
scripts/coccinelle/api/memdup_user.cocci=116=p << rv.p;
--
scripts/coccinelle/api/memdup_user.cocci-118-
scripts/coccinelle/api/memdup_user.cocci:119:coccilib.report.print_report(p[0], "WARNING opportunity for vmemdup_user")
--
sound/core/control.c=1549=static int replace_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf,
--
sound/core/control.c-1566-
sound/core/control.c:1567:	container = vmemdup_user(buf, size);
sound/core/control.c-1568-	if (IS_ERR(container))
--
sound/core/control.c=1629=static int snd_ctl_elem_init_enum_names(struct user_element *ue)
--
sound/core/control.c-1643-		return -ENOMEM;
sound/core/control.c:1644:	names = vmemdup_user((const void __user *)user_ptrval, buf_len);
sound/core/control.c-1645-	if (IS_ERR(names))
--
sound/soc/codecs/wm_adsp.c=425=static int wm_coeff_tlv_put(struct snd_kcontrol *kctl,
--
sound/soc/codecs/wm_adsp.c-431-	struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl;
sound/soc/codecs/wm_adsp.c:432:	void *scratch __free(kvfree) = vmemdup_user(bytes, size);
sound/soc/codecs/wm_adsp.c-433-
]

36/2 2026/06/15 16:11 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 39470
							output: 19
							thoughts: 553
						

Thoughts:
**Refactoring Memory Allocation in `fill_object_idr`**

Okay, so I see `vmemdup_array_user` exists, that's good to know. But I'm looking at `fill_object_idr` and it's using `kzalloc_objs` which in turn calls `kmalloc`. Hmm, if I remember correctly, there are warnings associated with the page allocator with kmalloc. I wonder if I can replace it with `kvmalloc_array` or `kvzalloc`?

Hold on... `kzalloc_objs` isn't a standard function; it's a macro. Let me check... Ah, right, I remember now, I grepped for it and it's defined in `include/linux/slab.h`. Let's see what this macro expands to... Okay, so it's expanding to `kzalloc(sizeof(struct drm_mode_object *) * object_count, GFP_KERNEL)`. Got it.

So, `kzalloc_objs` is basically just allocating memory. But `objects` here is an array of *pointers*, a classic case of allocating the array of pointers with `kzalloc`. So then, why *not* use `kvmalloc_array`? I think this would be cleaner:

```c
	objects = kvmalloc_array(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL | __GFP_ZERO);
```

Yes, that makes sense. Using `kvmalloc_array` or even `kvzalloc` would sidestep those potential page allocator warnings because `kvmalloc` will fall back to `vmalloc` if `kmalloc` fails and `vmalloc` can handle larger chunks, and avoid the warnings!  Just to clarify, `kvmalloc` first tries `kmalloc` with `__GFP_NOWARN` for larger sizes and falls back to `vmalloc` if it fails.

So, `kvmalloc_array` is definitely the right choice in this scenario.

Let's look at that `fill_object_idr` code again:

```c
	objects = kzalloc_objs(struct drm_mode_object *, object_count);
	if (!objects)
		return -ENOMEM;
```

If I change that to:

```c
	objects = kvmalloc_array(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL | __GFP_ZERO);
```

Wait a second... isn't `kzalloc_objs` a macro that expands to `kzalloc` with `__GFP_ZERO`? I wonder if there is a `kvzalloc_objs` macro defined somewhere? Let me quickly check...



37/2 2026/06/15 16:11 tool grepper
0m Args:
map[Expression:kvzalloc_objs]

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

arch/arm64/net/bpf_jit_comp.c=2006=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/arm64/net/bpf_jit_comp.c-2060-
arch/arm64/net/bpf_jit_comp.c:2061:	ctx.offset = kvzalloc_objs(int, prog->len + 1);
arch/arm64/net/bpf_jit_comp.c-2062-	if (ctx.offset == NULL)
--
arch/x86/kvm/cpuid.c=1977=int kvm_dev_ioctl_get_cpuid(struct kvm_cpuid2 *cpuid,
--
arch/x86/kvm/cpuid.c-1997-
arch/x86/kvm/cpuid.c:1998:	array.entries = kvzalloc_objs(struct kvm_cpuid_entry2, cpuid->nent);
arch/x86/kvm/cpuid.c-1999-	if (!array.entries)
--
arch/x86/kvm/mmu/mmu.c=3991=static int kvm_mmu_alloc_page_hash(struct kvm *kvm)
--
arch/x86/kvm/mmu/mmu.c-3997-
arch/x86/kvm/mmu/mmu.c:3998:	h = kvzalloc_objs(*h, KVM_NUM_MMU_PAGES, GFP_KERNEL_ACCOUNT);
arch/x86/kvm/mmu/mmu.c-3999-	if (!h)
--
arch/x86/kvm/svm/sev.c=723=static struct page **sev_pin_memory(struct kvm *kvm, unsigned long uaddr,
--
arch/x86/kvm/svm/sev.c-762-	 */
arch/x86/kvm/svm/sev.c:763:	pages = kvzalloc_objs(*pages, npages, GFP_KERNEL_ACCOUNT | __GFP_NOWARN);
arch/x86/kvm/svm/sev.c-764-	if (!pages)
--
block/blk-crypto-profile.c=74=int blk_crypto_profile_init(struct blk_crypto_profile *profile,
--
block/blk-crypto-profile.c-95-
block/blk-crypto-profile.c:96:	profile->slots = kvzalloc_objs(profile->slots[0], num_slots);
block/blk-crypto-profile.c-97-	if (!profile->slots)
--
drivers/accel/amdxdna/amdxdna_gem.c=287=static int amdxdna_hmm_register(struct amdxdna_gem_obj *abo,
--
drivers/accel/amdxdna/amdxdna_gem.c-304-	nr_pages = (PAGE_ALIGN(addr + len) - (addr & PAGE_MASK)) >> PAGE_SHIFT;
drivers/accel/amdxdna/amdxdna_gem.c:305:	mapp->range.hmm_pfns = kvzalloc_objs(*mapp->range.hmm_pfns, nr_pages);
drivers/accel/amdxdna/amdxdna_gem.c-306-	if (!mapp->range.hmm_pfns) {
--
drivers/accel/amdxdna/amdxdna_ubuf.c=78=struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev,
--
drivers/accel/amdxdna/amdxdna_ubuf.c-99-
drivers/accel/amdxdna/amdxdna_ubuf.c:100:	va_ent = kvzalloc_objs(*va_ent, num_entries);
drivers/accel/amdxdna/amdxdna_ubuf.c-101-	if (!va_ent) {
--
drivers/accel/habanalabs/common/mmu/mmu.c=824=int hl_mmu_hr_init(struct hl_device *hdev, struct hl_mmu_hr_priv *hr_priv, u32 hop_table_size,
--
drivers/accel/habanalabs/common/mmu/mmu.c-845-
drivers/accel/habanalabs/common/mmu/mmu.c:846:	hr_priv->mmu_asid_hop0 = kvzalloc_objs(struct pgt_info, prop->max_asid);
drivers/accel/habanalabs/common/mmu/mmu.c-847-	if (ZERO_OR_NULL_PTR(hr_priv->mmu_asid_hop0)) {
--
drivers/accel/qaic/qaic_data.c=391=static int qaic_map_one_slice(struct qaic_device *qdev, struct qaic_bo *bo,
--
drivers/accel/qaic/qaic_data.c-407-
drivers/accel/qaic/qaic_data.c:408:	slice->reqs = kvzalloc_objs(*slice->reqs, sgt->nents);
drivers/accel/qaic/qaic_data.c-409-	if (!slice->reqs) {
--
drivers/android/binder_alloc.c=894=int binder_alloc_mmap_handler(struct binder_alloc *alloc,
--
drivers/android/binder_alloc.c-918-
drivers/android/binder_alloc.c:919:	alloc->pages = kvzalloc_objs(alloc->pages[0],
drivers/android/binder_alloc.c-920-				     alloc->buffer_size / PAGE_SIZE);
--
drivers/block/xen-blkfront.c=2161=static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
--
drivers/block/xen-blkfront.c-2209-		rinfo->shadow[i].grants_used =
drivers/block/xen-blkfront.c:2210:			kvzalloc_objs(rinfo->shadow[i].grants_used[0], grants);
drivers/block/xen-blkfront.c:2211:		rinfo->shadow[i].sg = kvzalloc_objs(rinfo->shadow[i].sg[0],
drivers/block/xen-blkfront.c-2212-						    psegs);
--
drivers/block/xen-blkfront.c-2214-			rinfo->shadow[i].indirect_grants =
drivers/block/xen-blkfront.c:2215:				kvzalloc_objs(rinfo->shadow[i].indirect_grants[0],
drivers/block/xen-blkfront.c-2216-					      INDIRECT_GREFS(grants));
--
drivers/dma-buf/udmabuf.c=208=static __always_inline int init_udmabuf(struct udmabuf *ubuf, pgoff_t pgcnt)
--
drivers/dma-buf/udmabuf.c-213-
drivers/dma-buf/udmabuf.c:214:	ubuf->offsets = kvzalloc_objs(*ubuf->offsets, pgcnt);
drivers/dma-buf/udmabuf.c-215-	if (!ubuf->offsets)
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c=1166=int amdgpu_gem_list_handles_ioctl(struct drm_device *dev, void *data,
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c-1190-
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:1191:	bo_entries = kvzalloc_objs(*bo_entries, num_bos);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c-1192-	if (!bo_entries)
--
drivers/gpu/drm/amd/amdkfd/kfd_svm.c=160=svm_range_dma_map_dev(struct amdgpu_device *adev, struct svm_range *prange,
--
drivers/gpu/drm/amd/amdkfd/kfd_svm.c-170-	if (!addr) {
drivers/gpu/drm/amd/amdkfd/kfd_svm.c:171:		addr = kvzalloc_objs(*addr, prange->npages);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c-172-		if (!addr)
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c=1672=bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps,
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1718-	if (map_user_ramp && ramp && ramp->type == GAMMA_RGB_256) {
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1719:		rgb_user = kvzalloc_objs(*rgb_user,
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1720-					 ramp->num_entries + _EXTRA_POINTS);
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1723-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1724:		axis_x = kvzalloc_objs(*axis_x,
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1725-				       ramp->num_entries + _EXTRA_POINTS);
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1740-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1741:	curve = kvzalloc_objs(*curve, MAX_HW_POINTS + _EXTRA_POINTS);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1742-	if (!curve)
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1744-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1745:	coeff = kvzalloc_objs(*coeff, MAX_HW_POINTS + _EXTRA_POINTS);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1746-	if (!coeff)
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c=1907=bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf,
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1941-	    (map_user_ramp || ramp->type != GAMMA_RGB_256)) {
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1942:		rgb_user = kvzalloc_objs(*rgb_user,
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1943-					 ramp->num_entries + _EXTRA_POINTS);
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1946-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1947:		axis_x = kvzalloc_objs(*axis_x, ramp->num_entries + 3);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1948-		if (!axis_x)
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1965-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1966:	rgb_regamma = kvzalloc_objs(*rgb_regamma, MAX_HW_POINTS + _EXTRA_POINTS);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1967-	if (!rgb_regamma)
--
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1969-
drivers/gpu/drm/amd/display/modules/color/color_gamma.c:1970:	coeff = kvzalloc_objs(*coeff, MAX_HW_POINTS + _EXTRA_POINTS);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c-1971-	if (!coeff)
--
drivers/gpu/drm/nouveau/nouveau_dmem.c=475=nouveau_dmem_evict_chunk(struct nouveau_dmem_chunk *chunk)
--
drivers/gpu/drm/nouveau/nouveau_dmem.c-483-	dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL);
drivers/gpu/drm/nouveau/nouveau_dmem.c:484:	dma_info = kvzalloc_objs(*dma_info, npages, GFP_KERNEL | __GFP_NOFAIL);
drivers/gpu/drm/nouveau/nouveau_dmem.c-485-
--
drivers/gpu/drm/nouveau/nouveau_svm.c=985=nouveau_svm_fault_buffer_ctor(struct nouveau_svm *svm, s32 oclass, int id)
--
drivers/gpu/drm/nouveau/nouveau_svm.c-1012-
drivers/gpu/drm/nouveau/nouveau_svm.c:1013:	buffer->fault = kvzalloc_objs(*buffer->fault, buffer->entries);
drivers/gpu/drm/nouveau/nouveau_svm.c-1014-	if (!buffer->fault)
--
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c=40=nvkm_vmm_pt_new(const struct nvkm_vmm_desc *desc, bool sparse,
--
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c-61-	if (desc->type == PGD) {
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c:62:		pgt->pde = kvzalloc_objs(*pgt->pde, pten);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c-63-		if (!pgt->pde) {
--
drivers/gpu/drm/radeon/radeon_cs.c=81=static int radeon_cs_parser_relocs(struct radeon_cs_parser *p)
--
drivers/gpu/drm/radeon/radeon_cs.c-95-	p->nrelocs = chunk->length_dw / 4;
drivers/gpu/drm/radeon/radeon_cs.c:96:	p->relocs = kvzalloc_objs(struct radeon_bo_list, p->nrelocs);
drivers/gpu/drm/radeon/radeon_cs.c-97-	if (p->relocs == NULL) {
--
drivers/gpu/drm/radeon/radeon_cs.c=264=int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
--
drivers/gpu/drm/radeon/radeon_cs.c-298-	p->nchunks = cs->num_chunks;
drivers/gpu/drm/radeon/radeon_cs.c:299:	p->chunks = kvzalloc_objs(struct radeon_cs_chunk, p->nchunks);
drivers/gpu/drm/radeon/radeon_cs.c-300-	if (p->chunks == NULL) {
--
drivers/gpu/drm/ttm/ttm_tt.c=138=static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm)
drivers/gpu/drm/ttm/ttm_tt.c-139-{
drivers/gpu/drm/ttm/ttm_tt.c:140:	ttm->dma_address = kvzalloc_objs(*ttm->dma_address, ttm->num_pages);
drivers/gpu/drm/ttm/ttm_tt.c-141-	if (!ttm->dma_address)
--
drivers/gpu/drm/virtio/virtgpu_submit.c=91=virtio_gpu_parse_deps(struct virtio_gpu_submit *submit)
--
drivers/gpu/drm/virtio/virtgpu_submit.c-108-	 */
drivers/gpu/drm/virtio/virtgpu_submit.c:109:	syncobjs = kvzalloc_objs(*syncobjs, num_in_syncobjs);
drivers/gpu/drm/virtio/virtgpu_submit.c-110-	if (!syncobjs)
--
drivers/gpu/drm/virtio/virtgpu_submit.c=188=static int virtio_gpu_parse_post_deps(struct virtio_gpu_submit *submit)
--
drivers/gpu/drm/virtio/virtgpu_submit.c-199-
drivers/gpu/drm/virtio/virtgpu_submit.c:200:	post_deps = kvzalloc_objs(*post_deps, num_out_syncobjs);
drivers/gpu/drm/virtio/virtgpu_submit.c-201-	if (!post_deps)
--
drivers/gpu/drm/xe/xe_vm.c=3854=int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
--
drivers/gpu/drm/xe/xe_vm.c-3921-	if (args->num_binds) {
drivers/gpu/drm/xe/xe_vm.c:3922:		bos = kvzalloc_objs(*bos, args->num_binds,
drivers/gpu/drm/xe/xe_vm.c-3923-				    GFP_KERNEL | __GFP_ACCOUNT | __GFP_RETRY_MAYFAIL | __GFP_NOWARN);
--
drivers/gpu/drm/xe/xe_vm.c-3928-
drivers/gpu/drm/xe/xe_vm.c:3929:		ops = kvzalloc_objs(*ops, args->num_binds,
drivers/gpu/drm/xe/xe_vm.c-3930-				    GFP_KERNEL | __GFP_ACCOUNT | __GFP_RETRY_MAYFAIL | __GFP_NOWARN);
--
drivers/infiniband/hw/hns/hns_roce_main.c=1154=static int hns_roce_alloc_dfx_cnt(struct hns_roce_dev *hr_dev)
drivers/infiniband/hw/hns/hns_roce_main.c-1155-{
drivers/infiniband/hw/hns/hns_roce_main.c:1156:	hr_dev->dfx_cnt = kvzalloc_objs(atomic64_t, HNS_ROCE_DFX_CNT_TOTAL);
drivers/infiniband/hw/hns/hns_roce_main.c-1157-	if (!hr_dev->dfx_cnt)
--
drivers/infiniband/hw/hns/hns_roce_mr.c=449=int hns_roce_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
--
drivers/infiniband/hw/hns/hns_roce_mr.c-464-	mr->npages = 0;
drivers/infiniband/hw/hns/hns_roce_mr.c:465:	mr->page_list = kvzalloc_objs(dma_addr_t,
drivers/infiniband/hw/hns/hns_roce_mr.c-466-				      mr->pbl_mtr.hem_cfg.buf_pg_count);
--
drivers/infiniband/hw/hns/hns_roce_mr.c=645=static int mtr_map_bufs(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr)
--
drivers/infiniband/hw/hns/hns_roce_mr.c-656-	/* alloc a tmp array to store buffer's dma address */
drivers/infiniband/hw/hns/hns_roce_mr.c:657:	pages = kvzalloc_objs(dma_addr_t, page_count);
drivers/infiniband/hw/hns/hns_roce_mr.c-658-	if (!pages)
--
drivers/infiniband/ulp/ipoib/ipoib_main.c=1589=static int ipoib_neigh_hash_init(struct ipoib_dev_priv *priv)
--
drivers/infiniband/ulp/ipoib/ipoib_main.c-1601-	size = roundup_pow_of_two(arp_tbl.gc_thresh3);
drivers/infiniband/ulp/ipoib/ipoib_main.c:1602:	buckets = kvzalloc_objs(*buckets, size);
drivers/infiniband/ulp/ipoib/ipoib_main.c-1603-	if (!buckets) {
--
drivers/iommu/amd/init.c=663=static inline int __init alloc_rlookup_table(struct amd_iommu_pci_seg *pci_seg)
drivers/iommu/amd/init.c-664-{
drivers/iommu/amd/init.c:665:	pci_seg->rlookup_table = kvzalloc_objs(*pci_seg->rlookup_table,
drivers/iommu/amd/init.c-666-					       pci_seg->last_bdf + 1);
--
drivers/iommu/amd/init.c=679=static inline int __init alloc_irq_lookup_table(struct amd_iommu_pci_seg *pci_seg)
drivers/iommu/amd/init.c-680-{
drivers/iommu/amd/init.c:681:	pci_seg->irq_lookup_table = kvzalloc_objs(*pci_seg->irq_lookup_table,
drivers/iommu/amd/init.c-682-						  pci_seg->last_bdf + 1);
--
drivers/iommu/dma-iommu.c=884=static struct page **__iommu_dma_alloc_pages(struct device *dev,
--
drivers/iommu/dma-iommu.c-893-
drivers/iommu/dma-iommu.c:894:	pages = kvzalloc_objs(*pages, count);
drivers/iommu/dma-iommu.c-895-	if (!pages)
--
drivers/iommu/iommufd/selftest.c=1529=static int iommufd_test_access_pages(struct iommufd_ucmd *ucmd,
--
drivers/iommu/iommufd/selftest.c-1563-		 PAGE_SIZE;
drivers/iommu/iommufd/selftest.c:1564:	pages = kvzalloc_objs(*pages, npages, GFP_KERNEL_ACCOUNT);
drivers/iommu/iommufd/selftest.c-1565-	if (!pages) {
--
drivers/iommu/iommufd/viommu.c=290=iommufd_hw_queue_alloc_phys(struct iommu_hw_queue_alloc *cmd,
--
drivers/iommu/iommufd/viommu.c-314-	 */
drivers/iommu/iommufd/viommu.c:315:	pages = kvzalloc_objs(*pages, max_npages, GFP_KERNEL | __GFP_NOWARN);
drivers/iommu/iommufd/viommu.c-316-	if (!pages)
--
drivers/md/dm-pcache/cache.c=134=static int cache_init(struct dm_pcache *pcache)
--
drivers/md/dm-pcache/cache.c-140-
drivers/md/dm-pcache/cache.c:141:	cache->segments = kvzalloc_objs(struct pcache_cache_segment,
drivers/md/dm-pcache/cache.c-142-					cache_dev->seg_num);
--
drivers/md/dm-pcache/cache_key.c=823=int cache_tree_init(struct pcache_cache *cache, struct pcache_cache_tree *cache_tree, u32 n_subtrees)
--
drivers/md/dm-pcache/cache_key.c-839-	 */
drivers/md/dm-pcache/cache_key.c:840:	cache_tree->subtrees = kvzalloc_objs(struct pcache_cache_subtree,
drivers/md/dm-pcache/cache_key.c-841-					     cache_tree->n_subtrees);
--
drivers/md/dm-snap-persistent.c=609=static int persistent_read_metadata(struct dm_exception_store *store,
--
drivers/md/dm-snap-persistent.c-628-				  sizeof(struct disk_exception);
drivers/md/dm-snap-persistent.c:629:	ps->callbacks = kvzalloc_objs(*ps->callbacks, ps->exceptions_per_area);
drivers/md/dm-snap-persistent.c-630-	if (!ps->callbacks)
--
drivers/md/raid0.c=65=static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf)
--
drivers/md/raid0.c-145-	err = -ENOMEM;
drivers/md/raid0.c:146:	conf->strip_zone = kvzalloc_objs(struct strip_zone, conf->nr_strip_zones);
drivers/md/raid0.c-147-	if (!conf->strip_zone)
--
drivers/media/common/videobuf2/videobuf2-dma-sg.c=101=static void *vb2_dma_sg_alloc(struct vb2_buffer *vb, struct device *dev,
--
drivers/media/common/videobuf2/videobuf2-dma-sg.c-128-	 */
drivers/media/common/videobuf2/videobuf2-dma-sg.c:129:	buf->pages = kvzalloc_objs(struct page *, buf->num_pages);
drivers/media/common/videobuf2/videobuf2-dma-sg.c-130-	if (!buf->pages)
--
drivers/media/v4l2-core/v4l2-ctrls-core.c=1718=int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl,
--
drivers/media/v4l2-core/v4l2-ctrls-core.c-1727-	hdl->nr_of_buckets = 1 + nr_of_controls_hint / 8;
drivers/media/v4l2-core/v4l2-ctrls-core.c:1728:	hdl->buckets = kvzalloc_objs(hdl->buckets[0], hdl->nr_of_buckets);
drivers/media/v4l2-core/v4l2-ctrls-core.c-1729-	hdl->error = hdl->buckets ? 0 : -ENOMEM;
--
drivers/media/v4l2-core/v4l2-subdev.c=1603=__v4l2_subdev_state_alloc(struct v4l2_subdev *sd, const char *lock_name,
--
drivers/media/v4l2-core/v4l2-subdev.c-1622-	if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS) && sd->entity.num_pads) {
drivers/media/v4l2-core/v4l2-subdev.c:1623:		state->pads = kvzalloc_objs(*state->pads, sd->entity.num_pads);
drivers/media/v4l2-core/v4l2-subdev.c-1624-		if (!state->pads) {
--
drivers/media/v4l2-core/v4l2-subdev.c=1875=v4l2_subdev_init_stream_configs(struct v4l2_subdev_stream_configs *stream_configs,
--
drivers/media/v4l2-core/v4l2-subdev.c-1890-	if (new_configs.num_configs) {
drivers/media/v4l2-core/v4l2-subdev.c:1891:		new_configs.configs = kvzalloc_objs(*new_configs.configs,
drivers/media/v4l2-core/v4l2-subdev.c-1892-						    new_configs.num_configs);
--
drivers/net/ethernet/broadcom/cnic.c=4100=static int cnic_cm_alloc_mem(struct cnic_dev *dev)
--
drivers/net/ethernet/broadcom/cnic.c-4105-
drivers/net/ethernet/broadcom/cnic.c:4106:	cp->csk_tbl = kvzalloc_objs(struct cnic_sock, MAX_CM_SK_TBL_SZ);
drivers/net/ethernet/broadcom/cnic.c-4107-	if (!cp->csk_tbl)
--
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c=276=struct clip_tbl *t4_init_clip_tbl(unsigned int clipt_start,
--
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c-303-
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c:304:	cl_list = kvzalloc_objs(struct clip_entry, clipt_size);
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c-305-	if (!cl_list) {
--
drivers/net/ethernet/fungible/funcore/fun_dev.c=209=static int fun_init_cmd_ctx(struct fun_dev *fdev, unsigned int ntags)
--
drivers/net/ethernet/fungible/funcore/fun_dev.c-212-
drivers/net/ethernet/fungible/funcore/fun_dev.c:213:	fdev->cmd_ctx = kvzalloc_objs(*fdev->cmd_ctx, ntags);
drivers/net/ethernet/fungible/funcore/fun_dev.c-214-	if (!fdev->cmd_ctx)
--
drivers/net/ethernet/fungible/funeth/funeth_main.c=1173=static int fun_init_vports(struct fun_ethdev *ed, unsigned int n)
--
drivers/net/ethernet/fungible/funeth/funeth_main.c-1177-
drivers/net/ethernet/fungible/funeth/funeth_main.c:1178:	ed->vport_info = kvzalloc_objs(*ed->vport_info, n);
drivers/net/ethernet/fungible/funeth/funeth_main.c-1179-	if (!ed->vport_info)
--
drivers/net/ethernet/google/gve/gve_main.c=146=static int gve_alloc_flow_rule_caches(struct gve_priv *priv)
--
drivers/net/ethernet/google/gve/gve_main.c-154-	flow_rules_cache->rules_cache =
drivers/net/ethernet/google/gve/gve_main.c:155:		kvzalloc_objs(*flow_rules_cache->rules_cache,
drivers/net/ethernet/google/gve/gve_main.c-156-			      GVE_FLOW_RULES_CACHE_SIZE);
--
drivers/net/ethernet/google/gve/gve_main.c=480=static int gve_alloc_notify_blocks(struct gve_priv *priv)
--
drivers/net/ethernet/google/gve/gve_main.c-488-
drivers/net/ethernet/google/gve/gve_main.c:489:	priv->msix_vectors = kvzalloc_objs(*priv->msix_vectors,
drivers/net/ethernet/google/gve/gve_main.c-490-					   num_vecs_requested);
--
drivers/net/ethernet/google/gve/gve_main.c=1123=struct gve_queue_page_list *gve_alloc_queue_page_list(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_main.c-1135-	qpl->num_entries = 0;
drivers/net/ethernet/google/gve/gve_main.c:1136:	qpl->pages = kvzalloc_objs(*qpl->pages, pages);
drivers/net/ethernet/google/gve/gve_main.c-1137-	if (!qpl->pages)
--
drivers/net/ethernet/google/gve/gve_main.c-1139-
drivers/net/ethernet/google/gve/gve_main.c:1140:	qpl->page_buses = kvzalloc_objs(*qpl->page_buses, pages);
drivers/net/ethernet/google/gve/gve_main.c-1141-	if (!qpl->page_buses)
--
drivers/net/ethernet/google/gve/gve_rx.c=383=int gve_rx_alloc_rings_gqi(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_rx.c-389-
drivers/net/ethernet/google/gve/gve_rx.c:390:	rx = kvzalloc_objs(struct gve_rx_ring, cfg->qcfg_rx->max_queues);
drivers/net/ethernet/google/gve/gve_rx.c-391-	if (!rx)
--
drivers/net/ethernet/google/gve/gve_rx_dqo.c=314=int gve_rx_alloc_rings_dqo(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_rx_dqo.c-320-
drivers/net/ethernet/google/gve/gve_rx_dqo.c:321:	rx = kvzalloc_objs(struct gve_rx_ring, cfg->qcfg_rx->max_queues);
drivers/net/ethernet/google/gve/gve_rx_dqo.c-322-	if (!rx)
--
drivers/net/ethernet/google/gve/gve_tx.c=330=int gve_tx_alloc_rings_gqi(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_tx.c-344-
drivers/net/ethernet/google/gve/gve_tx.c:345:	tx = kvzalloc_objs(struct gve_tx_ring, cfg->qcfg->max_queues);
drivers/net/ethernet/google/gve/gve_tx.c-346-	if (!tx)
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c=273=static int gve_tx_qpl_buf_init(struct gve_tx_ring *tx)
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c-278-
drivers/net/ethernet/google/gve/gve_tx_dqo.c:279:	tx->dqo.tx_qpl_buf_next = kvzalloc_objs(tx->dqo.tx_qpl_buf_next[0],
drivers/net/ethernet/google/gve/gve_tx_dqo.c-280-						num_tx_qpl_bufs);
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c=307=static int gve_tx_alloc_ring_dqo(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c-347-	tx->dqo.num_pending_packets = min_t(int, num_pending_packets, S16_MAX);
drivers/net/ethernet/google/gve/gve_tx_dqo.c:348:	tx->dqo.pending_packets = kvzalloc_objs(tx->dqo.pending_packets[0],
drivers/net/ethernet/google/gve/gve_tx_dqo.c-349-						tx->dqo.num_pending_packets);
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c=411=int gve_tx_alloc_rings_dqo(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c-425-
drivers/net/ethernet/google/gve/gve_tx_dqo.c:426:	tx = kvzalloc_objs(struct gve_tx_ring, cfg->qcfg->max_queues);
drivers/net/ethernet/google/gve/gve_tx_dqo.c-427-	if (!tx)
--
drivers/net/ethernet/intel/idpf/xdp.c=152=int idpf_xdpsqs_get(const struct idpf_vport *vport)
--
drivers/net/ethernet/intel/idpf/xdp.c-160-
drivers/net/ethernet/intel/idpf/xdp.c:161:	timers = kvzalloc_objs(*timers, vport->num_xdp_txq);
drivers/net/ethernet/intel/idpf/xdp.c-162-	if (!timers)
--
drivers/net/ethernet/mellanox/mlx4/icm.c=414=int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
--
drivers/net/ethernet/mellanox/mlx4/icm.c-428-
drivers/net/ethernet/mellanox/mlx4/icm.c:429:	table->icm      = kvzalloc_objs(*table->icm, num_icm);
drivers/net/ethernet/mellanox/mlx4/icm.c-430-	if (!table->icm)
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c=69=int mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs,
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-89-
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:90:		stats_list = kvzalloc_objs(*stats_list,
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-91-					   mlx5e_qos_max_leaf_nodes(priv->mdev));
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c=269=int mlx5e_qos_alloc_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs)
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-278-
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:279:		sqs = kvzalloc_objs(struct mlx5e_txqsq *, qos_sqs_size);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-280-		if (!sqs)
--
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c=350=static int mlx5e_rx_res_channels_init(struct mlx5e_rx_res *res)
--
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-361-
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:362:	res->channels = kvzalloc_objs(*res->channels, res->max_nch);
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-363-	if (!res->channels) {
--
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c=53=mlx5_esw_bridge_mdb_flow_create(u16 esw_owner_vhca_id, struct mlx5_esw_bridge_mdb_entry *entry,
--
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c-71-
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c:72:	dests = kvzalloc_objs(*dests, num_dests);
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast.c-73-	if (!dests) {
--
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c=1183=static int esw_add_fdb_peer_miss_rules(struct mlx5_eswitch *esw,
--
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c-1206-
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:1207:	flows = kvzalloc_objs(*flows, peer_esw->total_vports);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c-1208-	if (!flows) {
--
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c=510=static int mlx5_fpga_conn_create_qp(struct mlx5_fpga_conn *conn,
--
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c-533-
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c:534:	conn->qp.rq.bufs = kvzalloc_objs(conn->qp.rq.bufs[0], conn->qp.rq.size);
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c-535-	if (!conn->qp.rq.bufs) {
--
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c-539-
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c:540:	conn->qp.sq.bufs = kvzalloc_objs(conn->qp.sq.bufs[0], conn->qp.sq.size);
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c-541-	if (!conn->qp.sq.bufs) {
--
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c=1072=hws_matcher_set_templates(struct mlx5hws_matcher *matcher,
--
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c-1092-		num_of_at + matcher->attr.max_num_of_at_attach;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c:1093:	matcher->at = kvzalloc_objs(*matcher->at, matcher->size_of_at_array);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c-1094-	if (!matcher->at) {
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c=225=static int dr_icm_buddy_init_ste_cache(struct mlx5dr_icm_buddy_mem *buddy)
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-229-
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c:230:	buddy->ste_arr = kvzalloc_objs(struct mlx5dr_ste, num_of_entries);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-231-	if (!buddy->ste_arr)
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c=504=struct mlx5dr_icm_pool *mlx5dr_icm_pool_create(struct mlx5dr_domain *dmn,
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-549-
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c:550:	pool->hot_chunks_arr = kvzalloc_objs(struct mlx5dr_icm_hot_chunk,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-551-					     num_of_chunks);
--
drivers/net/ethernet/netronome/nfp/nfd3/rings.c=127=nfp_nfd3_tx_ring_alloc(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
--
drivers/net/ethernet/netronome/nfp/nfd3/rings.c-142-
drivers/net/ethernet/netronome/nfp/nfd3/rings.c:143:	tx_ring->txbufs = kvzalloc_objs(*tx_ring->txbufs, tx_ring->cnt);
drivers/net/ethernet/netronome/nfp/nfd3/rings.c-144-	if (!tx_ring->txbufs)
--
drivers/net/ethernet/netronome/nfp/nfdk/rings.c=93=nfp_nfdk_tx_ring_alloc(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
--
drivers/net/ethernet/netronome/nfp/nfdk/rings.c-107-
drivers/net/ethernet/netronome/nfp/nfdk/rings.c:108:	tx_ring->ktxbufs = kvzalloc_objs(*tx_ring->ktxbufs, tx_ring->cnt);
drivers/net/ethernet/netronome/nfp/nfdk/rings.c-109-	if (!tx_ring->ktxbufs)
--
drivers/net/veth.c=1433=static int veth_alloc_queues(struct net_device *dev)
--
drivers/net/veth.c-1437-
drivers/net/veth.c:1438:	priv->rq = kvzalloc_objs(*priv->rq, dev->num_rx_queues,
drivers/net/veth.c-1439-				 GFP_KERNEL_ACCOUNT | __GFP_RETRY_MAYFAIL);
--
drivers/net/virtio_net.c=5879=static int virtnet_xsk_pool_enable(struct net_device *dev,
--
drivers/net/virtio_net.c-5920-
drivers/net/virtio_net.c:5921:	rq->xsk_buffs = kvzalloc_objs(*rq->xsk_buffs, size);
drivers/net/virtio_net.c-5922-	if (!rq->xsk_buffs)
--
drivers/net/wireguard/ratelimiter.c=158=int wg_ratelimiter_init(void)
--
drivers/net/wireguard/ratelimiter.c-178-
drivers/net/wireguard/ratelimiter.c:179:	table_v4 = kvzalloc_objs(*table_v4, table_size);
drivers/net/wireguard/ratelimiter.c-180-	if (unlikely(!table_v4))
--
drivers/net/wireguard/ratelimiter.c-183-#if IS_ENABLED(CONFIG_IPV6)
drivers/net/wireguard/ratelimiter.c:184:	table_v6 = kvzalloc_objs(*table_v6, table_size);
drivers/net/wireguard/ratelimiter.c-185-	if (unlikely(!table_v6)) {
--
drivers/nvme/host/auth.c=1015=int nvme_auth_init_ctrl(struct nvme_ctrl *ctrl)
--
drivers/nvme/host/auth.c-1034-
drivers/nvme/host/auth.c:1035:	ctrl->dhchap_ctxs = kvzalloc_objs(*chap, ctrl_max_dhchaps(ctrl));
drivers/nvme/host/auth.c-1036-	if (!ctrl->dhchap_ctxs) {
--
drivers/nvme/target/rdma.c=364=nvmet_rdma_alloc_cmds(struct nvmet_rdma_device *ndev,
--
drivers/nvme/target/rdma.c-369-
drivers/nvme/target/rdma.c:370:	cmds = kvzalloc_objs(struct nvmet_rdma_cmd, nr_cmds);
drivers/nvme/target/rdma.c-371-	if (!cmds)
--
drivers/nvme/target/rdma.c=448=nvmet_rdma_alloc_rsps(struct nvmet_rdma_queue *queue)
--
drivers/nvme/target/rdma.c-457-
drivers/nvme/target/rdma.c:458:	queue->rsps = kvzalloc_objs(struct nvmet_rdma_rsp, nr_rsps);
drivers/nvme/target/rdma.c-459-	if (!queue->rsps)
--
drivers/nvme/target/tcp.c=1523=static int nvmet_tcp_alloc_cmds(struct nvmet_tcp_queue *queue)
--
drivers/nvme/target/tcp.c-1527-
drivers/nvme/target/tcp.c:1528:	cmds = kvzalloc_objs(struct nvmet_tcp_cmd, nr_cmds);
drivers/nvme/target/tcp.c-1529-	if (!cmds)
--
drivers/s390/crypto/zcrypt_api.c=1597=static long zcrypt_unlocked_ioctl(struct file *filp, unsigned int cmd,
--
drivers/s390/crypto/zcrypt_api.c-1621-
drivers/s390/crypto/zcrypt_api.c:1622:		device_status = kvzalloc_objs(struct zcrypt_device_status_ext,
drivers/s390/crypto/zcrypt_api.c-1623-					      MAX_ZDEV_ENTRIES_EXT);
--
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c=299=ia_css_isp_dvs_statistics_allocate(
--
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c-311-

]

38/2 2026/06/15 16:11 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54080
							output: 29
							thoughts: 1154
						

Thoughts:
**Memory Allocation Review: Refining Object Handling**

Okay, so I'm looking at memory allocation, specifically around these `drm_mode_object` structures. Initially, I saw mentions of `kvzalloc_objs`, but a quick check reveals it's not directly defined in the standard include files. That's a bit odd, I thought I'd seen it around. Grepping for it was inconclusive too. The standard approach seems to be `kvmalloc_array`, which I'm familiar with, and it's used here:
```c
objects = kvmalloc_array(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL | __GFP_ZERO);
```
`kvmalloc_array` is preferred because it handles potential integer overflows in the size calculation, and it's quite safe to use. Alternatively I can use `kvzalloc` which is equivalent but, `kvmalloc_array` is safer due to overflow checking. I see that `kvmalloc_array` is implemented using `kvmalloc`, with a size check. This then led me to `kvcalloc`, which is essentially `kvmalloc_array` with `__GFP_ZERO`. Perfect! I think `kvcalloc` is the best replacement in this case.

Next, I'm checking the `fill_object_idr` function, where I want to replace the macro `kzalloc_objs`. This macro expands to `__alloc_objs`, using `kzalloc` which will use `kmalloc` and, on large allocations, it might trigger the page allocator warning. Replacing it with `kvcalloc` should allocate memory via `kvmalloc`, which can fallback to `vmalloc` for larger sizes, avoiding the warning. This seems like a straightforward and good improvement.

Then I moved to `drm_mode_create_lease_ioctl`, where `object_count` is used with `memdup_array_user`:
```c
		if (object_count != 0) {
			object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
						       object_count, sizeof(__u32));
			if (IS_ERR(object_ids)) {
```
Now, `memdup_array_user` ultimately uses `memdup_user` which uses `kmem_buckets_alloc_track_caller` which, internally, uses `kmalloc` with `__GFP_NOWARN`. So an extremely large `object_count` will be caught by `check_mul_overflow` in `memdup_array_user`. Even if the numbers don't overflow, but create a large allocation, `kmalloc` will return `NULL` (or `ERR_PTR(-ENOMEM)`) due to `__GFP_NOWARN` so there won't be a warning. This is ok from a safety perspective.

However, if `memdup_array_user` fails for a large, but not absurd, `object_count` (like 1,000,000 - 4MB), the user just gets `-ENOMEM`. That's normal, but the kmalloc might succeed or fail depending on fragmentation. So that got me thinking, if we want to support these edge cases, should we use `vmemdup_array_user`? I saw that `vmemdup_array_user` exists. If `object_count` is large, it would use `vmalloc`. The question then becomes, is `object_count = 1000000` a valid use case? It seems absurd for a DRM device, which typically has only a few dozen objects. So, `object_count` should be small. Should we just limit `object_count` in this ioctl? Maybe I should check if there's similar limits on object counts in other DRM ioctls.



39/2 2026/06/15 16:11 tool grepper
0m Args:
map[Expression:object_count PathPrefix:drivers/gpu/drm/]

Results:
map[Output:drivers/gpu/drm/drm_lease.c=346=static int validate_lease(struct drm_device *dev,
drivers/gpu/drm/drm_lease.c:347:			  int object_count,
drivers/gpu/drm/drm_lease.c-348-			  struct drm_mode_object **objects,
--
drivers/gpu/drm/drm_lease.c-358-
drivers/gpu/drm/drm_lease.c:359:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-360-		if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) {
--
drivers/gpu/drm/drm_lease.c=378=static int fill_object_idr(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-380-			   struct idr *leases,
drivers/gpu/drm/drm_lease.c:381:			   int object_count,
drivers/gpu/drm/drm_lease.c-382-			   u32 *object_ids)
--
drivers/gpu/drm/drm_lease.c-388-
drivers/gpu/drm/drm_lease.c:389:	objects = kzalloc_objs(struct drm_mode_object *, object_count);
drivers/gpu/drm/drm_lease.c-390-	if (!objects)
--
drivers/gpu/drm/drm_lease.c-394-	   and check for validity. */
drivers/gpu/drm/drm_lease.c:395:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-396-		objects[o] = drm_mode_object_find(dev, lessor_priv,
--
drivers/gpu/drm/drm_lease.c-410-
drivers/gpu/drm/drm_lease.c:411:	ret = validate_lease(dev, object_count, objects, universal_planes);
drivers/gpu/drm/drm_lease.c-412-	if (ret) {
--
drivers/gpu/drm/drm_lease.c-418-	   universal planes */
drivers/gpu/drm/drm_lease.c:419:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-420-		struct drm_mode_object *obj = objects[o];
--
drivers/gpu/drm/drm_lease.c-460-out_free_objects:
drivers/gpu/drm/drm_lease.c:461:	for (o = 0; o < object_count; o++) {
drivers/gpu/drm/drm_lease.c-462-		if (objects[o])
--
drivers/gpu/drm/drm_lease.c=475=int drm_mode_create_lease_ioctl(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-478-	struct drm_mode_create_lease *cl = data;
drivers/gpu/drm/drm_lease.c:479:	size_t object_count;
drivers/gpu/drm/drm_lease.c-480-	int ret = 0;
--
drivers/gpu/drm/drm_lease.c-506-
drivers/gpu/drm/drm_lease.c:507:	object_count = cl->object_count;
drivers/gpu/drm/drm_lease.c-508-
--
drivers/gpu/drm/drm_lease.c-510-	idr_init(&leases);
drivers/gpu/drm/drm_lease.c:511:	if (object_count != 0) {
drivers/gpu/drm/drm_lease.c-512-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
drivers/gpu/drm/drm_lease.c:513:					       object_count, sizeof(__u32));
drivers/gpu/drm/drm_lease.c-514-		if (IS_ERR(object_ids)) {
--
drivers/gpu/drm/drm_lease.c-521-		ret = fill_object_idr(dev, lessor_priv, &leases,
drivers/gpu/drm/drm_lease.c:522:				      object_count, object_ids);
drivers/gpu/drm/drm_lease.c-523-		kfree(object_ids);
]

40/2 2026/06/15 16:11 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 57261
							output: 17
							thoughts: 920
						

Thoughts:
**Analyzing Potential Memory Allocation Issues in the DRM Lease Implementation**

Okay, let's break this down. I see that `object_count`, passed from the `drm_mode_create_lease_ioctl` ioctl to `fill_object_idr`, is a potential area for abuse.  Specifically, `cl->object_count` from the user-space structure is a `__u32`, while the same variable is an `int` within `fill_object_idr`. That jump in types has my attention.

My immediate thought is, if `cl->object_count` is large, say `0x80000000`, the `memdup_array_user` call, using `size_t object_count`, will attempt an 8GB allocation because of that multiplication. However, `kmalloc`, which `memdup_array_user` uses internally, isn't going to handle an 8GB allocation. It should fail with `-ENOMEM`. We can't let that become an unhandled resource exhaustion.

But even a smaller allocation, like 1GB (`0x40000000`), is a problem because `kmalloc` has a limit.  It's typically capped at 4MB or 8MB, or similar. So, `memdup_array_user` is going to fail for anything significantly above 4MB. That means `object_count` has a strict upper bound. Doing the math, with 4MB as the limit, it looks like `object_count` can be at most 1,048,576. 

Let's assume that it's 1,000,000.  Then `memdup_array_user` will allocate 4MB, which is fine. But when we call `fill_object_idr` with that value, the function's integer `object_count` is fine since it's a valid integer value. The problem comes in the next allocation. `kzalloc_objs` is going to allocate 8MB, and that's *greater* than the expected max of 4MB. It will trigger a warning.  

I also want to consider the case where `object_count` is `0xffffffff`. The multiplication in `memdup_array_user` will overflow, but the check for that overflow correctly detects the problem. It will try to allocate an enormous amount and fail, but in this case, the `kmalloc` will return `-ENOMEM`, so that's handled. So, that's not the critical issue.

The real problem lies in the window where `object_count * 4 <= KMALLOC_MAX_SIZE`, but `object_count * 8 > KMALLOC_MAX_SIZE`.  Let's say `KMALLOC_MAX_SIZE` is 4MB. Then this happens when `object_count` is between 524,288 and 1,048,576. With 8MB, that range shifts to between 1,048,576 and 2,097,152. This is the scenario that needs a fix, so that the allocation does not fail later.

The fix I'm thinking of is to use a different allocator in `fill_object_idr`, specifically `kvmalloc_array` instead of `kzalloc_objs`, since `kvmalloc` can handle larger allocations. But, wait, `kzalloc_objs` is a macro! I need to replace the macro with a call to a function. I could use `kvzalloc` or `kvmalloc_array`. But `kvmalloc_array` doesn't zero the memory. So, I need to use either `kvcalloc` or `kvmalloc_array` with `GFP_KERNEL | __GFP_ZERO`. Now, the important question is: is `kvcalloc` available for this? Let's check.



41/2 2026/06/15 16:11 tool grepper
0m Args:
map[Expression:kvcalloc]

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

arch/arm64/kvm/nested.c=68=int kvm_vcpu_init_nested(struct kvm_vcpu *vcpu)
--
arch/arm64/kvm/nested.c-93-	if (num_mmus > kvm->arch.nested_mmus_size) {
arch/arm64/kvm/nested.c:94:		tmp = kvcalloc(num_mmus, sizeof(*tmp), GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/nested.c-95-		if (!tmp)
--
arch/loongarch/net/bpf_jit.c=2169=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/loongarch/net/bpf_jit.c-2208-
arch/loongarch/net/bpf_jit.c:2209:	ctx.offset = kvcalloc(prog->len + 1, sizeof(u32), GFP_KERNEL);
arch/loongarch/net/bpf_jit.c-2210-	if (ctx.offset == NULL)
--
arch/s390/net/bpf_jit_comp.c=2315=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *fp)
--
arch/s390/net/bpf_jit_comp.c-2341-	memset(&jit, 0, sizeof(jit));
arch/s390/net/bpf_jit_comp.c:2342:	jit.addrs = kvcalloc(fp->len + 1, sizeof(*jit.addrs), GFP_KERNEL);
arch/s390/net/bpf_jit_comp.c-2343-	if (jit.addrs == NULL)
--
drivers/accel/habanalabs/common/mmu/mmu.c=1380=int hl_mmu_dr_init(struct hl_device *hdev)
--
drivers/accel/habanalabs/common/mmu/mmu.c-1401-
drivers/accel/habanalabs/common/mmu/mmu.c:1402:	hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid,
drivers/accel/habanalabs/common/mmu/mmu.c-1403-						prop->dmmu.hop_table_size, GFP_KERNEL);
--
drivers/accel/habanalabs/gaudi2/gaudi2.c=10669=static int gaudi2_memset_device_memory(struct hl_device *hdev, u64 addr, u64 size, u64 val)
--
drivers/accel/habanalabs/gaudi2/gaudi2.c-10709-
drivers/accel/habanalabs/gaudi2/gaudi2.c:10710:	lin_dma_pkts_arr = kvcalloc(num_of_pkts, pkt_size, GFP_KERNEL);
drivers/accel/habanalabs/gaudi2/gaudi2.c-10711-	if (!lin_dma_pkts_arr)
--
drivers/block/xen-blkfront.c=1894=static int negotiate_mq(struct blkfront_info *info)
--
drivers/block/xen-blkfront.c-1911-				       BLK_RING_SIZE(info));
drivers/block/xen-blkfront.c:1912:	info->rinfo = kvcalloc(info->nr_rings, info->rinfo_size, GFP_KERNEL);
drivers/block/xen-blkfront.c-1913-	if (!info->rinfo) {
--
drivers/crypto/intel/qat/qat_common/qat_comp_algs.c=40=static void *qat_zstd_alloc_scratch(void)
--
drivers/crypto/intel/qat/qat_common/qat_comp_algs.c-61-
drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:62:	scratch->out_seqs = kvcalloc(QAT_MAX_SEQUENCES, sizeof(ZSTD_Sequence),
drivers/crypto/intel/qat/qat_common/qat_comp_algs.c-63-				     GFP_KERNEL);
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c=1005=int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,
--
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c-1100-
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:1101:		vm_entries = kvcalloc(args->num_entries, sizeof(*vm_entries), GFP_KERNEL);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c-1102-		if (!vm_entries) {
--
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c=393=svm_migrate_vma_to_vram(struct kfd_node *node, struct svm_range *prange,
--
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c-415-
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:416:	buf = kvcalloc(npages,
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c-417-		       2 * sizeof(*migrate.src) + sizeof(u64) + sizeof(dma_addr_t),
--
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c=692=svm_migrate_vma_to_ram(struct kfd_node *node, struct svm_range *prange,
--
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c-717-
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:718:	buf = kvcalloc(npages,
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c-719-		       2 * sizeof(*migrate.src) + sizeof(u64) + sizeof(dma_addr_t),
--
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c=480=void dm_dtn_log_append_v(struct dc_context *ctx,
--
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c-513-	if (total > log_ctx->size) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:514:		char *buf = kvcalloc(total, sizeof(char), GFP_KERNEL);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c-515-
--
drivers/gpu/drm/drm_pagemap.c=517=int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
--
drivers/gpu/drm/drm_pagemap.c-563-
drivers/gpu/drm/drm_pagemap.c:564:	buf = kvcalloc(npages, 2 * sizeof(*migrate.src) + sizeof(*pagemap_addr) +
drivers/gpu/drm/drm_pagemap.c-565-		       sizeof(*pages), GFP_KERNEL);
--
drivers/gpu/drm/drm_pagemap.c=1012=int drm_pagemap_evict_to_ram(struct drm_pagemap_devmem *devmem_allocation)
--
drivers/gpu/drm/drm_pagemap.c-1029-
drivers/gpu/drm/drm_pagemap.c:1030:	buf = kvcalloc(npages, 2 * sizeof(*src) + sizeof(*pagemap_addr) +
drivers/gpu/drm/drm_pagemap.c-1031-		       sizeof(*pages), GFP_KERNEL);
--
drivers/gpu/drm/drm_pagemap.c=1113=static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
--
drivers/gpu/drm/drm_pagemap.c-1153-
drivers/gpu/drm/drm_pagemap.c:1154:	buf = kvcalloc(npages, 2 * sizeof(*migrate.src) + sizeof(*pagemap_addr) +
drivers/gpu/drm/drm_pagemap.c-1155-		       sizeof(*pages), GFP_KERNEL);
--
drivers/gpu/drm/lima/lima_drv.c=102=static int lima_ioctl_gem_submit(struct drm_device *dev, void *data, struct drm_file *file)
--
drivers/gpu/drm/lima/lima_drv.c-124-
drivers/gpu/drm/lima/lima_drv.c:125:	bos = kvcalloc(args->nr_bos, sizeof(*submit.bos) + sizeof(*submit.lbos), GFP_KERNEL);
drivers/gpu/drm/lima/lima_drv.c-126-	if (!bos)
--
drivers/gpu/drm/nouveau/nouveau_dmem.c=475=nouveau_dmem_evict_chunk(struct nouveau_dmem_chunk *chunk)
--
drivers/gpu/drm/nouveau/nouveau_dmem.c-481-
drivers/gpu/drm/nouveau/nouveau_dmem.c:482:	src_pfns = kvcalloc(npages, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL);
drivers/gpu/drm/nouveau/nouveau_dmem.c:483:	dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL);
drivers/gpu/drm/nouveau/nouveau_dmem.c-484-	dma_info = kvzalloc_objs(*dma_info, npages, GFP_KERNEL | __GFP_NOFAIL);
--
drivers/gpu/drm/ttm/ttm_tt.c=118=static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm)
drivers/gpu/drm/ttm/ttm_tt.c-119-{
drivers/gpu/drm/ttm/ttm_tt.c:120:	ttm->pages = kvcalloc(ttm->num_pages, sizeof(void*), GFP_KERNEL);
drivers/gpu/drm/ttm/ttm_tt.c-121-	if (!ttm->pages)
--
drivers/gpu/drm/ttm/ttm_tt.c=127=static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm)
drivers/gpu/drm/ttm/ttm_tt.c-128-{
drivers/gpu/drm/ttm/ttm_tt.c:129:	ttm->pages = kvcalloc(ttm->num_pages, sizeof(*ttm->pages) +
drivers/gpu/drm/ttm/ttm_tt.c-130-			      sizeof(*ttm->dma_address), GFP_KERNEL);
--
drivers/infiniband/core/umem_odp.c=58=static int ib_init_umem_odp(struct ib_umem_odp *umem_odp,
--
drivers/infiniband/core/umem_odp.c-96-	if (ib_uses_virt_dma(dev)) {
drivers/infiniband/core/umem_odp.c:97:		map->pfn_list = kvcalloc(nr_entries, sizeof(*map->pfn_list),
drivers/infiniband/core/umem_odp.c-98-					 GFP_KERNEL | __GFP_NOWARN);
--
drivers/infiniband/hw/mlx5/srq.c=96=static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq,
--
drivers/infiniband/hw/mlx5/srq.c-129-	mlx5_ib_dbg(dev, "srq->buf.page_shift = %d\n", srq->buf.page_shift);
drivers/infiniband/hw/mlx5/srq.c:130:	in->pas = kvcalloc(srq->buf.npages, sizeof(*in->pas), GFP_KERNEL);
drivers/infiniband/hw/mlx5/srq.c-131-	if (!in->pas) {
--
drivers/iommu/iommufd/viommu.c=290=iommufd_hw_queue_alloc_phys(struct iommu_hw_queue_alloc *cmd,
--
drivers/iommu/iommufd/viommu.c-311-	/*
drivers/iommu/iommufd/viommu.c:312:	 * Use kvcalloc() to avoid memory fragmentation for a large page array.
drivers/iommu/iommufd/viommu.c-313-	 * Set __GFP_NOWARN to avoid syzkaller blowups
--
drivers/md/dm-pcache/cache.c=134=static int cache_init(struct dm_pcache *pcache)
--
drivers/md/dm-pcache/cache.c-147-
drivers/md/dm-pcache/cache.c:148:	cache->seg_map = kvcalloc(BITS_TO_LONGS(cache_dev->seg_num), sizeof(unsigned long), GFP_KERNEL);
drivers/md/dm-pcache/cache.c-149-	if (!cache->seg_map) {
--
drivers/md/dm-pcache/cache.c=281=static int cache_init_req_keys(struct pcache_cache *cache, u32 n_paral)
--
drivers/md/dm-pcache/cache.c-294-	cache->n_ksets = n_paral;
drivers/md/dm-pcache/cache.c:295:	cache->ksets = kvcalloc(cache->n_ksets, PCACHE_KSET_SIZE, GFP_KERNEL);
drivers/md/dm-pcache/cache.c-296-	if (!cache->ksets) {
--
drivers/md/dm-pcache/cache_dev.c=217=static int cache_dev_init(struct pcache_cache_dev *cache_dev, u32 seg_num)
--
drivers/md/dm-pcache/cache_dev.c-219-	cache_dev->seg_num = seg_num;
drivers/md/dm-pcache/cache_dev.c:220:	cache_dev->seg_bitmap = kvcalloc(BITS_TO_LONGS(cache_dev->seg_num), sizeof(unsigned long), GFP_KERNEL);
drivers/md/dm-pcache/cache_dev.c-221-	if (!cache_dev->seg_bitmap)
--
drivers/md/dm-table.c=104=static int alloc_targets(struct dm_table *t, unsigned int num)
--
drivers/md/dm-table.c-111-	 */
drivers/md/dm-table.c:112:	n_highs = kvcalloc(num, sizeof(struct dm_target) + sizeof(sector_t),
drivers/md/dm-table.c-113-			   GFP_KERNEL);
--
drivers/md/dm-table.c=1089=static int setup_indexes(struct dm_table *t)
--
drivers/md/dm-table.c-1100-
drivers/md/dm-table.c:1101:	indexes = kvcalloc(total, NODE_SIZE, GFP_KERNEL);
drivers/md/dm-table.c-1102-	if (!indexes)
--
drivers/md/dm-verity-target.c=1103=static int verity_alloc_most_once(struct dm_verity *v)
--
drivers/md/dm-verity-target.c-1115-
drivers/md/dm-verity-target.c:1116:	v->validated_blocks = kvcalloc(BITS_TO_LONGS(v->data_blocks),
drivers/md/dm-verity-target.c-1117-				       sizeof(unsigned long),
--
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c=495=struct cxgb4_tc_u32_table *cxgb4_init_tc_u32(struct adapter *adap)
--
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c-514-		bmap_size = BITS_TO_LONGS(max_tids);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:515:		link->tid_map = kvcalloc(bmap_size, sizeof(unsigned long),
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c-516-					 GFP_KERNEL);
--
drivers/net/ethernet/google/gve/gve_main.c=146=static int gve_alloc_flow_rule_caches(struct gve_priv *priv)
--
drivers/net/ethernet/google/gve/gve_main.c-162-	flow_rules_cache->rule_ids_cache =
drivers/net/ethernet/google/gve/gve_main.c:163:		kvcalloc(GVE_FLOW_RULE_IDS_CACHE_SIZE, sizeof(*flow_rules_cache->rule_ids_cache),
drivers/net/ethernet/google/gve/gve_main.c-164-			 GFP_KERNEL);
--
drivers/net/ethernet/google/gve/gve_rx.c=181=static int gve_rx_prefill_pages(struct gve_rx_ring *rx,
--
drivers/net/ethernet/google/gve/gve_rx.c-194-
drivers/net/ethernet/google/gve/gve_rx.c:195:	rx->data.page_info = kvcalloc_node(slots, sizeof(*rx->data.page_info),
drivers/net/ethernet/google/gve/gve_rx.c-196-					   GFP_KERNEL, priv->numa_node);
--
drivers/net/ethernet/google/gve/gve_rx.c=273=int gve_rx_alloc_ring_gqi(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_rx.c-305-	rx->qpl_copy_pool_head = 0;
drivers/net/ethernet/google/gve/gve_rx.c:306:	rx->qpl_copy_pool = kvcalloc_node(rx->qpl_copy_pool_mask + 1,
drivers/net/ethernet/google/gve/gve_rx.c-307-					  sizeof(rx->qpl_copy_pool[0]),
--
drivers/net/ethernet/google/gve/gve_rx_dqo.c=214=int gve_rx_alloc_ring_dqo(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_rx_dqo.c-248-		cfg->pages_per_qpl;
drivers/net/ethernet/google/gve/gve_rx_dqo.c:249:	rx->dqo.buf_states = kvcalloc_node(rx->dqo.num_buf_states,
drivers/net/ethernet/google/gve/gve_rx_dqo.c-250-					   sizeof(rx->dqo.buf_states[0]),
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c=307=static int gve_tx_alloc_ring_dqo(struct gve_priv *priv,
--
drivers/net/ethernet/google/gve/gve_tx_dqo.c-362-		tx->dqo.xsk_reorder_queue =
drivers/net/ethernet/google/gve/gve_tx_dqo.c:363:			kvcalloc(tx->dqo.complq_mask + 1,
drivers/net/ethernet/google/gve/gve_tx_dqo.c-364-				 sizeof(tx->dqo.xsk_reorder_queue[0]),
--
drivers/net/ethernet/intel/libeth/rx.c=152=int libeth_rx_fq_create(struct libeth_fq *fq, struct napi_struct *napi)
--
drivers/net/ethernet/intel/libeth/rx.c-179-
drivers/net/ethernet/intel/libeth/rx.c:180:	fqes = kvcalloc_node(fq->count, sizeof(*fqes), GFP_KERNEL, fq->nid);
drivers/net/ethernet/intel/libeth/rx.c-181-	if (!fqes) {
--
drivers/net/ethernet/intel/libeth/xsk.c=160=int libeth_xskfq_create(struct libeth_xskfq *fq)
drivers/net/ethernet/intel/libeth/xsk.c-161-{
drivers/net/ethernet/intel/libeth/xsk.c:162:	fq->fqes = kvcalloc_node(fq->count, sizeof(*fq->fqes), GFP_KERNEL,
drivers/net/ethernet/intel/libeth/xsk.c-163-				 fq->nid);
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c=471=int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc,
--
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-485-	rl->num_tc = num_tc;
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:486:	rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c-487-	if (!rl->leaves_id)
--
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c=323=static struct mlx5e_rx_res *mlx5e_rx_res_alloc(struct mlx5_core_dev *mdev, unsigned int max_nch,
--
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-331-
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:332:	rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-333-	if (!rx_res->rss_rqns) {
--
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-338-	if (multi_vhca) {
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:339:		rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c-340-		if (!rx_res->rss_vhca_ids) {
--
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c=169=static int mlx5e_vport_context_update_vlans(struct mlx5e_flow_steering *fs)
--
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c-189-
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c:190:	vlans = kvcalloc(list_size, sizeof(*vlans), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c-191-	if (!vlans)
--
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c=569=mlx5e_add_sqs_fwd_rules(struct mlx5e_priv *priv)
--
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c-590-
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:591:	sqs = kvcalloc(nch * sqs_per_channel, sizeof(*sqs), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c-592-	if (!sqs)
--
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c=7=int mlx5_fs_bulk_bitmap_alloc(struct mlx5_core_dev *dev,
--
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c-11-
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c:12:	fs_bulk->bitmask = kvcalloc(BITS_TO_LONGS(fs_bulk->bulk_len),
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c-13-				    sizeof(unsigned long), GFP_KERNEL);
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c=225=static int dr_icm_buddy_init_ste_cache(struct mlx5dr_icm_buddy_mem *buddy)
--
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-236-	 */
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c:237:	buddy->hw_ste_arr = kvcalloc(num_of_entries,
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool.c-238-				     dr_icm_buddy_get_ste_size(buddy), GFP_KERNEL);
--
drivers/net/ethernet/netronome/nfp/abm/main.c=443=static int nfp_abm_init(struct nfp_app *app)
--
drivers/net/ethernet/netronome/nfp/abm/main.c-479-
drivers/net/ethernet/netronome/nfp/abm/main.c:480:	abm->thresholds = kvcalloc(abm->num_thresholds,
drivers/net/ethernet/netronome/nfp/abm/main.c-481-				   sizeof(*abm->thresholds), GFP_KERNEL);
--
drivers/net/ethernet/netronome/nfp/abm/main.c-484-
drivers/net/ethernet/netronome/nfp/abm/main.c:485:	abm->actions = kvcalloc(abm->num_thresholds, sizeof(*abm->actions),
drivers/net/ethernet/netronome/nfp/abm/main.c-486-				GFP_KERNEL);
--
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c=283=nfp_net_rx_ring_alloc(struct nfp_net_dp *dp, struct nfp_net_rx_ring *rx_ring)
--
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c-319-	if (nfp_net_has_xsk_pool_slow(dp, rx_ring->idx)) {
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c:320:		rx_ring->xsk_rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz,
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c-321-					       GFP_KERNEL);
--
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c-324-	} else {
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c:325:		rx_ring->rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz,
drivers/net/ethernet/netronome/nfp/nfp_net_dp.c-326-					   GFP_KERNEL);
--
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c=92=int hp_alloc_enumeration_data(void)
--
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c-98-		return -EINVAL;
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c:99:	bioscfg_drv.enumeration_data = kvcalloc(bioscfg_drv.enumeration_instances_count,
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c-100-						sizeof(*bioscfg_drv.enumeration_data), GFP_KERNEL);
--
drivers/scsi/libiscsi.c=2771=iscsi_pool_init(struct iscsi_pool *q, int max, void ***items, int item_size)
--
drivers/scsi/libiscsi.c-2782-		num_arrays++;
drivers/scsi/libiscsi.c:2783:	q->pool = kvcalloc(num_arrays * max, sizeof(void *), GFP_KERNEL);
drivers/scsi/libiscsi.c-2784-	if (q->pool == NULL)
--
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c=97=ia_css_isp_param_allocate_isp_parameters(
--
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c-116-			if (size) {
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c:117:				mem_params->params[pclass][mem].address = kvcalloc(1,
drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c-118-										   size,
--
drivers/target/target_core_transport.c=313=int transport_alloc_session_tags(struct se_session *se_sess,
--
drivers/target/target_core_transport.c-317-
drivers/target/target_core_transport.c:318:	se_sess->sess_cmd_map = kvcalloc(tag_size, tag_num,
drivers/target/target_core_transport.c-319-					 GFP_KERNEL | __GFP_RETRY_MAYFAIL);
--
drivers/vdpa/mlx5/core/mr.c=211=static int create_direct_keys(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mr)
--
drivers/vdpa/mlx5/core/mr.c-227-		mttcount = mttlen / sizeof(cmd_mem->mtt[0]);
drivers/vdpa/mlx5/core/mr.c:228:		cmd_mem = kvcalloc(1, struct_size(cmd_mem, mtt, mttcount), GFP_KERNEL);
drivers/vdpa/mlx5/core/mr.c-229-		if (!cmd_mem) {
--
fs/btrfs/file-item.c=346=int btrfs_lookup_bio_sums(struct btrfs_bio *bbio)
--
fs/btrfs/file-item.c-381-	if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) {
fs/btrfs/file-item.c:382:		bbio->csum = kvcalloc(nblocks, csum_size, GFP_NOFS);
fs/btrfs/file-item.c-383-		if (!bbio->csum)
--
fs/exfat/nls.c=647=static int exfat_load_upcase_table(struct super_block *sb,
--
fs/exfat/nls.c-657-
fs/exfat/nls.c:658:	upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL);
fs/exfat/nls.c-659-	if (!upcase_table)
--
fs/exfat/nls.c=702=static int exfat_load_default_upcase_table(struct super_block *sb)
--
fs/exfat/nls.c-709-
fs/exfat/nls.c:710:	upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL);
fs/exfat/nls.c-711-	if (!upcase_table)
--
fs/ntfs/runlist.c=1676=struct runlist_element *ntfs_rl_insert_range(struct runlist_element *dst_rl, int dst_cnt,
--
fs/ntfs/runlist.c-1750-	new_cnt += dst_rl_split.lcn >= LCN_HOLE ? 1 : 0;
fs/ntfs/runlist.c:1751:	new_rl = kvcalloc(new_cnt, sizeof(*new_rl), GFP_NOFS);
fs/ntfs/runlist.c-1752-	if (!new_rl)
--
fs/ntfs/runlist.c=1796=struct runlist_element *ntfs_rl_punch_hole(struct runlist_element *dst_rl, int dst_cnt,
--
fs/ntfs/runlist.c-1834-
fs/ntfs/runlist.c:1835:	*punch_rl = kvcalloc(punch_cnt + 1, sizeof(struct runlist_element),
fs/ntfs/runlist.c-1836-			GFP_NOFS);
--
fs/ntfs/runlist.c-1840-	new_cnt = dst_cnt - (int)(e_rl - s_rl + 1) + 3;
fs/ntfs/runlist.c:1841:	new_rl = kvcalloc(new_cnt, sizeof(struct runlist_element), GFP_NOFS);
fs/ntfs/runlist.c-1842-	if (!new_rl) {
--
fs/ntfs/runlist.c=1947=struct runlist_element *ntfs_rl_collapse_range(struct runlist_element *dst_rl, int dst_cnt,
--
fs/ntfs/runlist.c-1984-	punch_cnt = (int)(e_rl - s_rl) + 1;
fs/ntfs/runlist.c:1985:	*punch_rl = kvcalloc(punch_cnt + 1, sizeof(struct runlist_element),
fs/ntfs/runlist.c-1986-			GFP_NOFS);
--
fs/ntfs/runlist.c-1990-	new_cnt = dst_cnt - (int)(e_rl - s_rl + 1) + 3;
fs/ntfs/runlist.c:1991:	new_rl = kvcalloc(new_cnt, sizeof(struct runlist_element), GFP_NOFS);
fs/ntfs/runlist.c-1992-	if (!new_rl) {
--
fs/ntfs/upcase.c=11=__le16 *generate_default_upcase(void)
--
fs/ntfs/upcase.c-54-
fs/ntfs/upcase.c:55:	uc = kvcalloc(default_upcase_len, sizeof(__le16), GFP_NOFS);
fs/ntfs/upcase.c-56-	if (!uc)
--
fs/smb/client/compress/lz77.c=218=noinline int lz77_compress(const void *src, const u32 slen, void *dst, u32 *dlen)
--
fs/smb/client/compress/lz77.c-236-
fs/smb/client/compress/lz77.c:237:	htable = kvcalloc(LZ77_HASH_SIZE, sizeof(*htable), GFP_KERNEL);
fs/smb/client/compress/lz77.c-238-	if (!htable)
--
fs/verity/open.c=186=struct fsverity_info *fsverity_create_info(struct inode *inode,
--
fs/verity/open.c-235-
fs/verity/open.c:236:		vi->hash_block_verified = kvcalloc(BITS_TO_LONGS(num_bits),
fs/verity/open.c-237-						   sizeof(unsigned long),
--
include/linux/bpf.h=2665=void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags);
include/linux/bpf.h:2666:void *bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size,
include/linux/bpf.h-2667-		       gfp_t flags);
include/linux/bpf.h=2668=void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size,
--
include/linux/bpf.h-2680-		kzalloc(_size, _flags)
include/linux/bpf.h:2681:#define bpf_map_kvcalloc(_map, _n, _size, _flags)		\
include/linux/bpf.h:2682:		kvcalloc(_n, _size, _flags)
include/linux/bpf.h-2683-#define bpf_map_alloc_percpu(_map, _size, _align, _flags)	\
--
include/linux/slab.h=1209=kvmalloc_array_node_noprof(size_t n, size_t size, gfp_t flags, int node)
--
include/linux/slab.h-1219-#define kvmalloc_array_noprof(...)		kvmalloc_array_node_noprof(__VA_ARGS__, NUMA_NO_NODE)
include/linux/slab.h:1220:#define kvcalloc_node_noprof(_n,_s,_f,_node)	kvmalloc_array_node_noprof(_n,_s,(_f)|__GFP_ZERO,_node)
include/linux/slab.h:1221:#define kvcalloc_noprof(...)			kvcalloc_node_noprof(__VA_ARGS__, NUMA_NO_NODE)
include/linux/slab.h-1222-
include/linux/slab.h-1223-#define kvmalloc_array(...)			alloc_hooks(kvmalloc_array_noprof(__VA_ARGS__))
include/linux/slab.h:1224:#define kvcalloc_node(...)			alloc_hooks(kvcalloc_node_noprof(__VA_ARGS__))
include/linux/slab.h:1225:#define kvcalloc(...)				alloc_hooks(kvcalloc_noprof(__VA_ARGS__))
include/linux/slab.h-1226-
--
kernel/bpf/bpf_local_storage.c=773=bpf_local_storage_map_alloc(union bpf_attr *attr,
--
kernel/bpf/bpf_local_storage.c-790-
kernel/bpf/bpf_local_storage.c:791:	smap->buckets = bpf_map_kvcalloc(&smap->map, nbuckets,
kernel/bpf/bpf_local_storage.c-792-					 sizeof(*smap->buckets), GFP_USER | __GFP_NOWARN);
--
kernel/bpf/btf.c=1926=static int env_resolve_init(struct btf_verifier_env *env)
--
kernel/bpf/btf.c-1933-
kernel/bpf/btf.c:1934:	resolved_sizes = kvcalloc(nr_types, sizeof(*resolved_sizes),
kernel/bpf/btf.c-1935-				  GFP_KERNEL | __GFP_NOWARN);
--
kernel/bpf/btf.c-1938-
kernel/bpf/btf.c:1939:	resolved_ids = kvcalloc(nr_types, sizeof(*resolved_ids),
kernel/bpf/btf.c-1940-				GFP_KERNEL | __GFP_NOWARN);
--
kernel/bpf/btf.c-1943-
kernel/bpf/btf.c:1944:	visit_states = kvcalloc(nr_types, sizeof(*visit_states),
kernel/bpf/btf.c-1945-				GFP_KERNEL | __GFP_NOWARN);
--
kernel/bpf/cfg.c=248=static struct bpf_iarray *jt_from_map(struct bpf_map *map)
--
kernel/bpf/cfg.c-276- * Find and collect all maps which fit in the subprog. Return the result as one
kernel/bpf/cfg.c:277: * combined jump table in jt->items (allocated with kvcalloc)
kernel/bpf/cfg.c-278- */
--
kernel/bpf/cfg.c=708=int bpf_compute_scc(struct bpf_verifier_env *env)
--
kernel/bpf/cfg.c-729-	 */
kernel/bpf/cfg.c:730:	stack = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT);
kernel/bpf/cfg.c:731:	pre = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT);
kernel/bpf/cfg.c:732:	low = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT);
kernel/bpf/cfg.c:733:	dfs = kvcalloc(insn_cnt, sizeof(*dfs), GFP_KERNEL_ACCOUNT);
kernel/bpf/cfg.c-734-	if (!stack || !pre || !low || !dfs) {
--
kernel/bpf/check_btf.c=31=static int check_btf_func_early(struct bpf_verifier_env *env,
--
kernel/bpf/check_btf.c-65-
kernel/bpf/check_btf.c:66:	krecord = kvcalloc(nfuncs, krec_size, GFP_KERNEL_ACCOUNT | __GFP_NOWARN);
kernel/bpf/check_btf.c-67-	if (!krecord)
--
kernel/bpf/syscall.c=551=void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags)
--
kernel/bpf/syscall.c-562-
kernel/bpf/syscall.c:563:void *bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size,
kernel/bpf/syscall.c-564-		       gfp_t flags)
--
kernel/bpf/syscall.c-569-	bpf_map_memcg_enter(map, &old_memcg, &memcg);
kernel/bpf/syscall.c:570:	ptr = kvcalloc(n, size, flags | __GFP_ACCOUNT);
kernel/bpf/syscall.c-571-	bpf_map_memcg_exit(old_memcg, memcg);
--
kernel/bpf/verifier.c=5504=static int check_max_stack_depth(struct bpf_verifier_env *env)
--
kernel/bpf/verifier.c-5511-
kernel/bpf/verifier.c:5512:	dinfo = kvcalloc(env->subprog_cnt, sizeof(*dinfo), GFP_KERNEL_ACCOUNT);
kernel/bpf/verifier.c-5513-	if (!dinfo)
--
lib/stackdepot.c=150=int __init stack_depot_early_init(void)
--
lib/stackdepot.c-226-
lib/stackdepot.c:227:/* Allocates a hash table via kvcalloc. Can be used after boot. */
lib/stackdepot.c-228-int stack_depot_init(void)
--
lib/stackdepot.c-261-
lib/stackdepot.c:262:	pr_info("allocating hash table of %lu entries via kvcalloc\n", entries);
lib/stackdepot.c-263-	stack_table = kvzalloc_objs(struct list_head, entries);
--
lib/stackdepot.c-272-
lib/stackdepot.c:273:	pr_info("allocating space for %u stack pools via kvcalloc\n",
lib/stackdepot.c-274-		stack_max_pools);
lib/stackdepot.c:275:	stack_pools = kvcalloc(stack_max_pools, sizeof(void *), GFP_KERNEL);
lib/stackdepot.c-276-	if (!stack_pools) {
--
lib/test_hmm.c=188=static void dmirror_device_evict_chunk(struct dmirror_chunk *chunk)
--
lib/test_hmm.c-197-
lib/test_hmm.c:198:	src_pfns = kvcalloc(npages, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL);
lib/test_hmm.c:199:	dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL);
lib/test_hmm.c-200-
--
lib/test_hmm.c=1101=static int dmirror_migrate_to_system(struct dmirror *dmirror,
--
lib/test_hmm.c-1113-
lib/test_hmm.c:1114:	src_pfns = kvcalloc(PTRS_PER_PTE, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL);
lib/test_hmm.c:1115:	dst_pfns = kvcalloc(PTRS_PER_PTE, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL);
lib/test_hmm.c-1116-
--
lib/test_hmm.c=1166=static int dmirror_migrate_to_device(struct dmirror *dmirror,
--
lib/test_hmm.c-1189-	ret = -ENOMEM;
lib/test_hmm.c:1190:	src_pfns = kvcalloc(PTRS_PER_PTE, sizeof(*src_pfns),
lib/test_hmm.c-1191-			  GFP_KERNEL | __GFP_NOFAIL);
--
lib/test_hmm.c-1194-
lib/test_hmm.c:1195:	dst_pfns = kvcalloc(PTRS_PER_PTE, sizeof(*dst_pfns),
lib/test_hmm.c-1196-			  GFP_KERNEL | __GFP_NOFAIL);
--
lib/tests/fortify_kunit.c=289=DEFINE_ALLOC_SIZE_TEST_PAIR(vmalloc)
--
lib/tests/fortify_kunit.c-309-	checker((expected_pages) * PAGE_SIZE,				\
lib/tests/fortify_kunit.c:310:		kvcalloc(1, (alloc_pages) * PAGE_SIZE, gfp),		\
lib/tests/fortify_kunit.c-311-		kvfree(p));						\
lib/tests/fortify_kunit.c-312-	checker((expected_pages) * PAGE_SIZE,				\
lib/tests/fortify_kunit.c:313:		kvcalloc((alloc_pages) * PAGE_SIZE, 1, gfp),		\
lib/tests/fortify_kunit.c-314-		kvfree(p));						\
--
mm/gup_test.c=101=static int __gup_test_ioctl(unsigned int cmd,
--
mm/gup_test.c-115-	nr_pages = gup->size / PAGE_SIZE;
mm/gup_test.c:116:	pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL);
mm/gup_test.c-117-	if (!pages)
--
mm/gup_test.c=223=static inline int pin_longterm_test_start(unsigned long arg)
--
mm/gup_test.c-248-
mm/gup_test.c:249:	pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL);
mm/gup_test.c-250-	if (!pages)
--
mm/hmm.c=698=int hmm_dma_map_alloc(struct device *dev, struct hmm_dma_map *map,

]

42/2 2026/06/15 16:11 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 71899
							output: 21
							thoughts: 2898
						

Thoughts:
**Analysis of DRM Lease Integer Overflow Vulnerability and Proposed Fix**

Alright, let's break this down. First, `kvcalloc` *is* a common utility, but so is `kvmalloc_array`. My gut tells me using `kvcalloc` instead of `kzalloc_objs` in `fill_object_idr` is the right move to address that warning. Digging into it, `kzalloc_objs` is just a macro wrapping `__alloc_objs`, which in turn, simply calls `alloc`, that means `kzalloc` is the ultimate allocator used.

Okay, so `kzalloc_objs` expands to `kzalloc` with a size derived from `sizeof(struct drm_mode_object *) * (object_count)`. Aha! Now we're getting somewhere. `kzalloc` doesn't protect against integer overflow, and `object_count` is passed as an `int`. Size of the pointer is 8 bytes, so `8 * object_count` can overflow, especially on 32-bit architectures.

Yes, indeed, on a 32-bit system, a large `object_count` results in the multiplication overflowing, and the allocation request is smaller than expected. That leads to a buffer overflow during `fill_object_idr` when it writes outside the allocated memory region. The integer overflow occurs on 32-bit because `8 * 0x7fffffff` overflows the 32-bit size type. It's a textbook buffer overflow condition!

The `object_count` comes from userspace as a `__u32` value, so it can be manipulated by users. In `drm_mode_create_lease_ioctl`, the `object_count` value is directly used. However, `memdup_array_user` is then called. It appears to check for overflow with `check_mul_overflow(n, size, &nbytes)`. Good! That check will detect the potential overflow of `object_count * sizeof(__u32)` and return an error code, which should prevent the vulnerability, right?

Wait, even if the multiplication in `memdup_array_user` overflows, `check_mul_overflow` is safe, so it will return true. `memdup_array_user` will return `-EOVERFLOW` and we do not reach the vulnerable `fill_object_idr` code. Then, `memdup_array_user` allocates via `kmalloc`, and its maximum is 4MB. Because it won't allocate more than 4MB, it's safe. Therefore, there's no actual overflow vulnerability, but we should address the warning in the kernel log.

The primary issue stems from `kzalloc_objs` allocating 8MB which triggers `WARN_ON_ONCE_GFP`. Okay, so `memdup_array_user` has `__GFP_NOWARN`, which means if `object_count` is greater than a certain size, it'll fail without warning. But `fill_object_idr` calls `kzalloc_objs` with potentially very large sizes and *will* trigger a warning.

The solution is to use `kvmalloc_array` or `kvcalloc` in `fill_object_idr` as a replacement for `kzalloc_objs`. Since `kvcalloc` uses `kvmalloc_array` which calls `kvmalloc`, this approach uses the `vmalloc` fallback for large allocations to avoid the warning. The size will be large, but it can avoid the warning. We must also change `kfree` to `kvfree` for the freed memory.

Let's double-check that the `objects` is always freed at the end of `fill_object_idr`. Good, the pointer array is temporary, used to hold object pointers. We can safely change the allocation and deallocation to use `kvcalloc` and `kvfree` respectively.

Looking again at the crash report, the reproducer sets `object_count` to 1,000,000, which confirms our understanding. The allocation size is `1000000 * 8 = 8,000,000`, matching our analysis perfectly.

Now, let's explore if other allocations within `drm_mode_create_lease_ioctl` are affected.

Yes, `memdup_array_user`'s size depends on `object_count` too. If we pass a large enough number to `object_count`, `memdup_array_user` fails because it is using `kmalloc`. It's possible that a large number will fail. Is there an legitimate use case where a user would ask for more than one million objects? No, this is likely because of


43/2 2026/06/15 16:12 tool grepper
0m Args:
map[Expression:vmemdup_array_user]

Results:
map[Output:arch/x86/kvm/cpuid.c=589=int kvm_vcpu_ioctl_set_cpuid(struct kvm_vcpu *vcpu,
--
arch/x86/kvm/cpuid.c-600-	if (cpuid->nent) {
arch/x86/kvm/cpuid.c:601:		e = vmemdup_array_user(entries, cpuid->nent, sizeof(*e));
arch/x86/kvm/cpuid.c-602-		if (IS_ERR(e))
--
arch/x86/kvm/cpuid.c=634=int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu,
--
arch/x86/kvm/cpuid.c-644-	if (cpuid->nent) {
arch/x86/kvm/cpuid.c:645:		e2 = vmemdup_array_user(entries, cpuid->nent, sizeof(*e2));
arch/x86/kvm/cpuid.c-646-		if (IS_ERR(e2))
--
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c=183=int amdgpu_bo_create_list_entry_array(struct drm_amdgpu_bo_list_in *in,
--
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c-196-	if (likely(info_size == bo_info_size)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c:197:		info = vmemdup_array_user(uptr, bo_number, info_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c-198-		if (IS_ERR(info))
--
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c=169=static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
--
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c-209-
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:210:		p->chunks[i].kdata = vmemdup_array_user(u64_to_user_ptr(user_chunk.chunk_data),
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c-211-							size,
--
drivers/gpu/drm/drm_gem.c=833=int drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles,
--
drivers/gpu/drm/drm_gem.c-848-
drivers/gpu/drm/drm_gem.c:849:	handles = vmemdup_array_user(bo_handles, count, sizeof(u32));
drivers/gpu/drm/drm_gem.c-850-	if (IS_ERR(handles)) {
--
drivers/tty/vt/consolemap.c=632=int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list)
--
drivers/tty/vt/consolemap.c-640-
drivers/tty/vt/consolemap.c:641:	struct unipair *unilist __free(kvfree) = vmemdup_array_user(list, ct, sizeof(*unilist));
drivers/tty/vt/consolemap.c-642-	if (IS_ERR(unilist))
--
include/linux/string.h=32=void *memdup_array_user(const void __user *src, size_t n, size_t size)
--
include/linux/string.h-42-/**
include/linux/string.h:43: * vmemdup_array_user - duplicate array from user space
include/linux/string.h-44- * @src: source address in user space
--
include/linux/string.h=51=static inline __realloc_size(2, 3)
include/linux/string.h:52:void *vmemdup_array_user(const void __user *src, size_t n, size_t size)
include/linux/string.h-53-{
--
virt/kvm/kvm_main.c=5148=static long kvm_vm_ioctl(struct file *filp,
--
virt/kvm/kvm_main.c-5315-			urouting = argp;
virt/kvm/kvm_main.c:5316:			entries = vmemdup_array_user(urouting->entries,
virt/kvm/kvm_main.c-5317-						     routing.nr, sizeof(*entries));
]

44/2 2026/06/15 16:12 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 77069
							output: 35
							thoughts: 436
						

Thoughts:
**Refactoring drm_lease.c for Improved Memory Management**

Okay, so `vmemdup_array_user` *does* exist! That's excellent news. My immediate thought is to replace the existing `memdup_array_user` calls with `vmemdup_array_user` and the corresponding `kfree(object_ids)` calls with `kvfree(object_ids)`. That should make things more robust against fragmentation, right? Let me see... yes, in `drm_mode_create_lease_ioctl`, there it is!

```c
		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
					       object_count, sizeof(__u32));
		if (IS_ERR(object_ids)) {
			ret = PTR_ERR(object_ids);
			idr_destroy(&leases);
			goto out_lessor;
		}

		/* fill and validate the object idr */
		ret = fill_object_idr(dev, lessor_priv, &leases,
				      object_count, object_ids);
		kfree(object_ids);
```

So I'll change that to `vmemdup_array_user` and `kvfree` as planned. Moving on to `fill_object_idr`:

```c
	objects = kzalloc_objs(struct drm_mode_object *, object_count);
```

Alright, here, I can switch this over to `kvcalloc`:

```c
	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
```

And of course, change the corresponding `kfree(objects)` to `kvfree(objects)`.

Wait, just to be thorough, I should double check what that `objects` pointer is used for. Ah, in `validate_lease`:

```c
	ret = validate_lease(dev, object_count, objects, universal_planes);
```

It takes a `struct drm_mode_object **objects` as an argument. The function just iterates over this array, which means `kvcalloc` is perfectly appropriate and safe to use here. Great!

Okay, one last check: I should quickly grep the rest of `drm_lease.c` to make sure there are no other instances of `kzalloc_objs` that need attention.



45/2 2026/06/15 16:12 tool grepper
0m Args:
map[Expression:kzalloc_objs PathPrefix:drivers/gpu/drm/drm_lease.c]

Results:
map[Output:drivers/gpu/drm/drm_lease.c=378=static int fill_object_idr(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-388-
drivers/gpu/drm/drm_lease.c:389:	objects = kzalloc_objs(struct drm_mode_object *, object_count);
drivers/gpu/drm/drm_lease.c-390-	if (!objects)
]

46/2 2026/06/15 16:12 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 78194
							output: 37
							thoughts: 31
						

Thoughts:
Okay, here's my interpretation of those thoughts, presented as a first-person summary, keeping in mind my expertise:

**Single Focus and Immediate Verification**

Right, only one instance of what I'm looking for. I need to be absolutely certain though, given the potential implications of this function, `memdup_array_user`, within `drm_lease.c`. Let's perform a quick, thorough scan of the code within that file to ensure there isn't another hidden instance, perhaps under a slightly different name or context, that I've missed. Confirmation is key here before proceeding further.



47/2 2026/06/15 16:12 tool grepper
0m Args:
map[Expression:memdup_array_user PathPrefix:drivers/gpu/drm/drm_lease.c]

Results:
map[Output:drivers/gpu/drm/drm_lease.c=475=int drm_mode_create_lease_ioctl(struct drm_device *dev,
--
drivers/gpu/drm/drm_lease.c-511-	if (object_count != 0) {
drivers/gpu/drm/drm_lease.c:512:		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
drivers/gpu/drm/drm_lease.c-513-					       object_count, sizeof(__u32));
]

48/2 2026/06/15 16:12 llm debugger
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 78541
							output: 1277
							thoughts: 2010
						

Thoughts:
**Analysis of the drm_mode_create_lease_ioctl Crash**

Okay, so here's the breakdown of this crash situation. It seems the core problem lies within `drm_mode_create_lease_ioctl`. The issue is that it accepts a user-provided `object_count`, which directly influences memory allocation sizes. Specifically, it uses `drm_mode_create_lease_ioctl` and `fill_object_idr`.

Here's the sequence:

1.  **Uncontrolled Allocation Size:** The ioctl takes a `cl->object_count` from userspace, which is then used to determine the size of two memory allocations.

2.  **Initial memdup_array_user**: First, `memdup_array_user` is called to allocate `object_ids`. This function allocates memory using `kmalloc` with the `__GFP_NOWARN` flag. This flag is important because it means that even if `kmalloc` can't directly satisfy the request, it won't immediately trigger a warning. If `object_count` is large (say, 1,000,000), `memdup_array_user` requests 4MB. Because it's within `KMALLOC_MAX_SIZE`, it *succeeds*, but sets the stage for a later failure.

3.  **The Fatal kzalloc_objs Call:** The function then calls `fill_object_idr`, which, in turn, allocates an array of pointers, `objects`, using `kzalloc_objs`. `kzalloc_objs` expands into `kzalloc`, which calls `kmalloc` without `__GFP_NOWARN`. This means that if the allocation size is problematic, the kernel *will* issue a warning.

4.  **Exceeding KMALLOC_MAX_SIZE**: In this case, `object_count` is still 1,000,000. Each element of the array `objects` is a pointer (8 bytes on 64-bit systems), leading to a total allocation size of 8MB. This exceeds the typical `KMALLOC_MAX_SIZE` (usually 4MB), which is linked to `MAX_PAGE_ORDER`.

5.  **Page Allocator Panic**: Because the `kmalloc` call now needs to allocate pages larger than `MAX_PAGE_ORDER`, it falls back to the page allocator. But `kzalloc` doesn't suppress the warning. The page allocator then triggers a `WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp)` warning in `__alloc_frozen_pages_noprof` (or `alloc_pages`). Syzkaller detects this warning as a crash.

The key is that the initial `kmalloc` in `memdup_array_user` is *masked* by `__GFP_NOWARN`, while the second `kmalloc` triggered by `kzalloc` in `fill_object_idr` isn't, so that's where the problem manifests.

**The Fix:**

The solution is straightforward and involves switching to memory allocators that gracefully handle large requests:

1.  **Use vmemdup_array_user for object_ids**: In `drm_mode_create_lease_ioctl`, replace `memdup_array_user` with `vmemdup_array_user`. This new function will use `vmalloc` if necessary, which is designed for allocating large, contiguous regions of virtual memory and avoiding the `KMALLOC_MAX_SIZE` limitation. This also means updating `kfree(object_ids)` to `kvfree(object_ids)`.

2.  **Use kvcalloc for objects**: In `fill_object_idr`, replace `kzalloc_objs` (which expands to `kzalloc`) with `kvcalloc`. The `kvcalloc` function is similar to `kzalloc`, but uses `kvmalloc`, which also gracefully falls back to `vmalloc` when necessary, *and* doesn't trigger warnings for large allocations. This also means updating `kfree(objects)` to `kvfree(objects)`.

**Safety Checks:**

The `vmemdup_array_user` function includes an overflow check, returning `-EOVERFLOW` if the multiplication of size and count results in an overflow. This helps to prevent problems where extremely large values are passed as inputs. In addition, if `vmalloc` fails, `vmemdup_array_user` will return -ENOMEM, which is a recoverable error.

This approach ensures that the ioctl function handles large allocations safely and without triggering kernel warnings, preventing the identified crash.



49/1 2026/06/15 16:13 action kernel-scratch-checkouter
0m Results:
map[KernelScratchSrc:/app/workdir/cache/tmp/tmp2222411375]

50/1 2026/06/15 16:13 loop
23m
51/2 2026/06/15 16:13 iteration 0
23m
52/3 2026/06/15 16:13 agent patch-generator
1m Model:
gemini-3.1-pro-preview

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

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

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

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

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


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


If you will end up removing the WARN_ON macro because the condition can legitimately happen,
add a pr_err/dev_err/... (whatever is the macro for printing runtime errors used in the file)
call that logs that the unlikely condition has happened. The pr_err/dev_err/... message
must not include "WARNING" nor "BUG" strings.


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

Prompt:
The crash that corresponds to the bug is:

------------[ cut here ]------------
WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197, CPU#0: syz.0.17/6137
Modules linked in:
CPU: 0 UID: 0 PID: 6137 Comm: syz.0.17 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197
Code: 74 10 4c 89 e7 89 54 24 0c e8 6e a2 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 ab fe ff ff e9 ac fe ff ff c6 05 92 0e b2 0d 01 90 <0f> 0b 90 e9 17 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc90003aa7800 EFLAGS: 00010246
RAX: ffffc90003aa7800 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003aa7868
RBP: ffffc90003aa78e8 R08: ffffc90003aa7867 R09: 0000000000000000
R10: ffffc90003aa7840 R11: fffff52000754f0d R12: 0000000000000000
R13: 1ffff92000754f04 R14: 0000000000040dc0 R15: dffffc0000000000
FS:  00007fe037ac16c0(0000) GS:ffff8881a59ad000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003d0000 CR3: 0000000104ab0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
 drm_ioctl_kernel+0x2df/0x3b0 drivers/gpu/drm/drm_ioctl.c:805
 drm_ioctl+0x6fa/0xbc0 drivers/gpu/drm/drm_ioctl.c:902
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe036b9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe037ac1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe036e15fa0 RCX: 00007fe036b9ce59
RDX: 00002000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fe036c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe036e16038 R14: 00007fe036e15fa0 R15: 00007fffcab0e958
 </TASK>


The explanation of the root cause of the bug is:

The root cause of this kernel crash is an unbounded memory allocation based on a user-controlled value, which attempts to allocate a contiguous memory chunk larger than the maximum allowed by the slab allocator (`KMALLOC_MAX_SIZE`), triggering a warning in the page allocator.

### Detailed Root Cause Analysis

1. **User-controlled `object_count`**:
   In `drivers/gpu/drm/drm_lease.c`, the `drm_mode_create_lease_ioctl()` function retrieves `object_count` directly from the user-provided `struct drm_mode_create_lease` argument:
   ```c
   object_count = cl->object_count;
   ```
   The syzkaller reproducer sets this value to `0xf4240` (1,000,000).

2. **First Allocation (`memdup_array_user`)**:
   The ioctl first allocates an array to hold the object IDs:
   ```c
   object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
                                  object_count, sizeof(__u32));
   ```
   For `1,000,000` objects, this requires `4,000,000` bytes (~3.8 MB). This size is typically just under the `KMALLOC_MAX_SIZE` limit (usually 4 MB on many architectures). Furthermore, `memdup_array_user()` internally uses `memdup_user()`, which allocates memory with the `__GFP_NOWARN` flag. Thus, even if it were to fail, it would gracefully return `-ENOMEM` without triggering a kernel warning.

3. **Second Allocation (`kzalloc_objs`)**:
   After successfully allocating `object_ids`, the ioctl calls `fill_object_idr()`:
   ```c
   ret = fill_object_idr(dev, lessor_priv, &leases, object_count, object_ids);
   ```
   Inside `fill_object_idr()`, the kernel attempts to allocate an array of pointers for the objects:
   ```c
   objects = kzalloc_objs(struct drm_mode_object *, object_count);
   ```
   The size of `struct drm_mode_object *` is 8 bytes (on 64-bit systems). For `1,000,000` objects, this requires `8,000,000` bytes (~7.6 MB). This size strictly exceeds the `KMALLOC_MAX_SIZE` limit. 
   
   Unlike `memdup_user()`, the `kzalloc_objs()` macro expands to a standard `kzalloc()` call using `GFP_KERNEL | __GFP_ZERO` **without** the `__GFP_NOWARN` flag. 

4. **The Crash (Warning)**:
   Because the requested size is larger than `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request directly to the page allocator (`___kmalloc_large_node`). The page allocator calculates the required page order (order 11 for 8 MB). Since order 11 is strictly greater than `MAX_PAGE_ORDER` (typically 10), the page allocator hits the following safety check in `__alloc_frozen_pages_noprof()`:
   ```c
   if (WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp))
       return NULL;
   ```
   Because `__GFP_NOWARN` was not provided, this triggers the `WARN_ON_ONCE_GFP` warning, which syzkaller correctly identifies as a crash.

### Proposed Fix

To fix this issue, both allocations should be updated to use the `kvmalloc` family of functions. These functions automatically fall back to `vmalloc()` for large allocations (avoiding memory fragmentation issues) and internally apply `__GFP_NOWARN` when attempting the initial `kmalloc()`, preventing the page allocator warning.

1. In `drm_mode_create_lease_ioctl()`, replace `memdup_array_user()` with `vmemdup_array_user()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~512
   - object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   + object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   
   // drivers/gpu/drm/drm_lease.c : ~523
   - kfree(object_ids);
   + kvfree(object_ids);
   ```

2. In `fill_object_idr()`, replace `kzalloc_objs()` with `kvcalloc()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~389
   - objects = kzalloc_objs(struct drm_mode_object *, object_count);
   + objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
   
   // drivers/gpu/drm/drm_lease.c : ~465
   - kfree(objects);
   + kvfree(objects);
   ```

This ensures that userspace cannot trigger a kernel warning by passing an arbitrarily large `object_count`, and the kernel will gracefully return `-ENOMEM` if the system truly cannot satisfy the `vmalloc` request.



Reply:
I have implemented the proposed fix.

### Explanation of the Fix

The crash is caused by an unbounded memory allocation in `drm_mode_create_lease_ioctl()` where the `object_count` is directly controlled by the user. A malicious or buggy userspace program can pass a very large `object_count` (e.g., 1,000,000), causing the kernel to attempt allocating a contiguous memory chunk that exceeds the maximum allowed size by the slab allocator (`KMALLOC_MAX_SIZE`).

There are two allocations involved:
1. **`object_ids` array**: Allocated using `memdup_array_user()`. While this doesn't trigger a warning because `memdup_user()` internally uses `__GFP_NOWARN`, it still attempts a large contiguous allocation (up to ~4MB) which can fail due to memory fragmentation.
2. **`objects` array**: Allocated using `kzalloc_objs()` in `fill_object_idr()`. This macro expands to a standard `kzalloc()` call without the `__GFP_NOWARN` flag. For 1,000,000 objects, this requires ~8MB of memory. Since this exceeds `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request to the page allocator, which triggers a `WARN_ON_ONCE_GFP` because the required page order is greater than `MAX_PAGE_ORDER`.

To fix this, I replaced both allocations with their `kvmalloc` family equivalents:
- In `drm_mode_create_lease_ioctl()`, `memdup_array_user()` was replaced with `vmemdup_array_user()`, and the corresponding `kfree()` was changed to `kvfree()`.
- In `fill_object_idr()`, `kzalloc_objs()` was replaced with `kvcalloc()`, and the corresponding `kfree()` was changed to `kvfree()`.

The `kvmalloc` family of functions attempts a `kmalloc()` first (with `__GFP_NOWARN` applied internally to prevent warnings if it fails), and gracefully falls back to `vmalloc()` for large allocations. This not only prevents the kernel warning but also makes the allocations more robust against memory fragmentation, as `vmalloc()` can satisfy large requests using non-contiguous physical pages. If the system truly cannot satisfy the request, it will gracefully return `-ENOMEM` to userspace.

53/4 2026/06/15 16:13 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7361
							output: 44
							thoughts: 215
						

Thoughts:
**Analyzing a Bug Report: Large Allocation in DRM Lease Creation**

Okay, so I've got this bug report about a warning popping up in `__alloc_frozen_pages_noprof`. It seems the warning is triggered by an excessively large allocation within `fill_object_idr`, which itself is being called from `drm_mode_create_lease_ioctl`. Right away, the alarm bells are ringing; anytime I see a warning about large allocations, especially coming from a user-space interaction like this, I get concerned.

Digging deeper, the root cause appears to be that the `object_count` variable, which determines the allocation size, is sourced from user space. The report mentions it can reach a substantial value, up to `0xf4240`, or 1,000,000. That's immediately problematic. One million objects, each taking 8 bytes, leads to an 8MB allocation. And that's where the problem arises: this exceeds `KMALLOC_MAX_SIZE`, which in turn triggers the warning because `kzalloc_objs` is utilizing `kzalloc` directly, without the safety net of `__GFP_NOWARN`. This means we are falling into a known trap and should use the more flexible `kvmalloc` family of functions.

The proposed solution seems sensible. The fix involves swapping out `memdup_array_user` for `vmemdup_array_user` and `kzalloc_objs` for `kvcalloc`. These are all logical replacements, and would likely resolve the size limitations. I'll need to confirm that this change is appropriate and doesn't introduce any new regressions.

First, I need to check the exact code in `drivers/gpu/drm/drm_lease.c` to understand the flow and context of these allocations. It looks like it is going to be a straightforward fix.



54/4 2026/06/15 16:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/gpu/drm/drm_lease.c Name:drm_mode_create_lease_ioctl]

Results:
map[SourceCode: 469:	/*
 470:	 * The master associated with the specified file will have a lease
 471:	 * created containing the objects specified in the ioctl structure.
 472:	 * A file descriptor will be allocated for that and returned to the
 473:	 * application.
 474:	 */
 475:	int drm_mode_create_lease_ioctl(struct drm_device *dev,
 476:					void *data, struct drm_file *lessor_priv)
 477:	{
 478:		struct drm_mode_create_lease *cl = data;
 479:		size_t object_count;
 480:		int ret = 0;
 481:		struct idr leases;
 482:		struct drm_master *lessor;
 483:		struct drm_master *lessee = NULL;
 484:		struct file *lessee_file = NULL;
 485:		struct file *lessor_file = lessor_priv->filp;
 486:		struct drm_file *lessee_priv;
 487:		int fd = -1;
 488:		uint32_t *object_ids;
 489:	
 490:		/* Can't lease without MODESET */
 491:		if (!drm_core_check_feature(dev, DRIVER_MODESET))
 492:			return -EOPNOTSUPP;
 493:	
 494:		if (cl->flags && (cl->flags & ~(O_CLOEXEC | O_NONBLOCK))) {
 495:			drm_dbg_lease(dev, "invalid flags\n");
 496:			return -EINVAL;
 497:		}
 498:	
 499:		lessor = drm_file_get_master(lessor_priv);
 500:		/* Do not allow sub-leases */
 501:		if (lessor->lessor) {
 502:			drm_dbg_lease(dev, "recursive leasing not allowed\n");
 503:			ret = -EINVAL;
 504:			goto out_lessor;
 505:		}
 506:	
 507:		object_count = cl->object_count;
 508:	
 509:		/* Handle leased objects, if any */
 510:		idr_init(&leases);
 511:		if (object_count != 0) {
 512:			object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
 513:						       object_count, sizeof(__u32));
 514:			if (IS_ERR(object_ids)) {
 515:				ret = PTR_ERR(object_ids);
 516:				idr_destroy(&leases);
 517:				goto out_lessor;
 518:			}
 519:	
 520:			/* fill and validate the object idr */
 521:			ret = fill_object_idr(dev, lessor_priv, &leases,
 522:					      object_count, object_ids);
 523:			kfree(object_ids);
 524:			if (ret) {
 525:				drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 526:				idr_destroy(&leases);
 527:				goto out_lessor;
 528:			}
 529:		}
 530:	
 531:		/* Allocate a file descriptor for the lease */
 532:		fd = get_unused_fd_flags(cl->flags & (O_CLOEXEC | O_NONBLOCK));
 533:		if (fd < 0) {
 534:			idr_destroy(&leases);
 535:			ret = fd;
 536:			goto out_lessor;
 537:		}
 538:	
 539:		drm_dbg_lease(dev, "Creating lease\n");
 540:		/* lessee will take the ownership of leases */
 541:		lessee = drm_lease_create(lessor, &leases);
 542:	
 543:		if (IS_ERR(lessee)) {
 544:			ret = PTR_ERR(lessee);
 545:			idr_destroy(&leases);
 546:			goto out_leases;
 547:		}
 548:	
 549:		/* Clone the lessor file to create a new file for us */
 550:		drm_dbg_lease(dev, "Allocating lease file\n");
 551:		lessee_file = file_clone_open(lessor_file);
 552:		if (IS_ERR(lessee_file)) {
 553:			ret = PTR_ERR(lessee_file);
 554:			goto out_lessee;
 555:		}
 556:	
 557:		lessee_priv = lessee_file->private_data;
 558:		/* Change the file to a master one */
 559:		drm_master_put(&lessee_priv->master);
 560:		lessee_priv->master = lessee;
 561:		lessee_priv->is_master = 1;
 562:		lessee_priv->authenticated = 1;
 563:	
 564:		/* Pass fd back to userspace */
 565:		drm_dbg_lease(dev, "Returning fd %d id %d\n", fd, lessee->lessee_id);
 566:		cl->fd = fd;
 567:		cl->lessee_id = lessee->lessee_id;
 568:	
 569:		/* Hook up the fd */
 570:		fd_install(fd, lessee_file);
 571:	
 572:		drm_master_put(&lessor);
 573:		drm_dbg_lease(dev, "drm_mode_create_lease_ioctl succeeded\n");
 574:		return 0;
 575:	
 576:	out_lessee:
 577:		drm_master_put(&lessee);
 578:	
 579:	out_leases:
 580:		put_unused_fd(fd);
 581:	
 582:	out_lessor:
 583:		drm_master_put(&lessor);
 584:		drm_dbg_lease(dev, "drm_mode_create_lease_ioctl failed: %d\n", ret);
 585:		return ret;
 586:	}
 SourceFile:drivers/gpu/drm/drm_lease.c]

55/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9839
							output: 41
							thoughts: 12
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:

**Investigating `fill_object_idr`**

Alright, time to dive in. *Let's check `fill_object_idr`*. Given the context, my initial thought is, what specifically needs to be assessed within this function? I'm already mentally running through the typical areas I'd look at for a routine with that name: data validation, edge case handling, potential for race conditions or concurrent access issues if it's operating on shared resources, performance bottlenecks related to memory allocation or object creation, and of course, the logical correctness of the filling algorithm itself. Is there a specific use-case I'm interested in, or am I running a general review? Either way, let's start with a systematic examination of the code and its dependencies.



56/4 2026/06/15 16:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/gpu/drm/drm_lease.c Name:fill_object_idr]

Results:
map[SourceCode: 378:	static int fill_object_idr(struct drm_device *dev,
 379:				   struct drm_file *lessor_priv,
 380:				   struct idr *leases,
 381:				   int object_count,
 382:				   u32 *object_ids)
 383:	{
 384:		struct drm_mode_object **objects;
 385:		u32 o;
 386:		int ret;
 387:		bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 388:	
 389:		objects = kzalloc_objs(struct drm_mode_object *, object_count);
 390:		if (!objects)
 391:			return -ENOMEM;
 392:	
 393:		/* step one - get references to all the mode objects
 394:		   and check for validity. */
 395:		for (o = 0; o < object_count; o++) {
 396:			objects[o] = drm_mode_object_find(dev, lessor_priv,
 397:							  object_ids[o],
 398:							  DRM_MODE_OBJECT_ANY);
 399:			if (!objects[o]) {
 400:				ret = -ENOENT;
 401:				goto out_free_objects;
 402:			}
 403:	
 404:			if (!drm_mode_object_lease_required(objects[o]->type)) {
 405:				DRM_DEBUG_KMS("invalid object for lease\n");
 406:				ret = -EINVAL;
 407:				goto out_free_objects;
 408:			}
 409:		}
 410:	
 411:		ret = validate_lease(dev, object_count, objects, universal_planes);
 412:		if (ret) {
 413:			drm_dbg_lease(dev, "lease validation failed\n");
 414:			goto out_free_objects;
 415:		}
 416:	
 417:		/* add their IDs to the lease request - taking into account
 418:		   universal planes */
 419:		for (o = 0; o < object_count; o++) {
 420:			struct drm_mode_object *obj = objects[o];
 421:			u32 object_id = objects[o]->id;
 422:	
 423:			drm_dbg_lease(dev, "Adding object %d to lease\n", object_id);
 424:	
 425:			/*
 426:			 * We're using an IDR to hold the set of leased
 427:			 * objects, but we don't need to point at the object's
 428:			 * data structure from the lease as the main object_idr
 429:			 * will be used to actually find that. Instead, all we
 430:			 * really want is a 'leased/not-leased' result, for
 431:			 * which any non-NULL pointer will work fine.
 432:			 */
 433:			ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL);
 434:			if (ret < 0) {
 435:				drm_dbg_lease(dev, "Object %d cannot be inserted into leases (%d)\n",
 436:					      object_id, ret);
 437:				goto out_free_objects;
 438:			}
 439:			if (obj->type == DRM_MODE_OBJECT_CRTC && !universal_planes) {
 440:				struct drm_crtc *crtc = obj_to_crtc(obj);
 441:	
 442:				ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1, GFP_KERNEL);
 443:				if (ret < 0) {
 444:					drm_dbg_lease(dev, "Object primary plane %d cannot be inserted into leases (%d)\n",
 445:						      object_id, ret);
 446:					goto out_free_objects;
 447:				}
 448:				if (crtc->cursor) {
 449:					ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, GFP_KERNEL);
 450:					if (ret < 0) {
 451:						drm_dbg_lease(dev, "Object cursor plane %d cannot be inserted into leases (%d)\n",
 452:							      object_id, ret);
 453:						goto out_free_objects;
 454:					}
 455:				}
 456:			}
 457:		}
 458:	
 459:		ret = 0;
 460:	out_free_objects:
 461:		for (o = 0; o < object_count; o++) {
 462:			if (objects[o])
 463:				drm_mode_object_put(objects[o]);
 464:		}
 465:		kfree(objects);
 466:		return ret;
 467:	}
 SourceFile:drivers/gpu/drm/drm_lease.c]

57/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11574
							output: 39
							thoughts: 96
						

Thoughts:
**Refactoring for Enhanced Memory Management**

Okay, let's get down to some code optimization. My plan is to swap out some of the memory allocation and deallocation functions in the kernel. Specifically, I'm going to leverage the `codeeditor` tool to make a few targeted changes within the `drm_mode_create_lease_ioctl` function. I'll replace instances of `memdup_array_user` with `vmemdup_array_user`, and, crucially, substitute `kfree` with `kvfree` there.

Then I'm going to move on to `fill_object_idr`.  I'll update the function to use `kvcalloc` instead of `kzalloc_objs`, and, again, switch `kfree` to `kvfree`.

Before I commit to these substitutions, I want to take a quick look at the `kzalloc_objs` definition just to refresh my memory and make sure this is the correct move, ensuring I understand its exact behavior to confidently replace it.



58/4 2026/06/15 16:14 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:drivers/gpu/drm/drm_lease.c Name:kzalloc_objs]

Results:
map[SourceCode: SourceFile:]

59/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 11949
							output: 18
							thoughts: 20
						

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

**Investigating a Possible Macro**

Okay, so I've encountered `kzalloc_objs` in the code, and my initial hunch is that it's likely a macro. Given the naming convention and context, that's the most probable scenario. To confirm and understand its expansion, I'm going to quickly grep through the codebase. I'll need to locate its definition to see what it's doing under the hood, any potential side effects, and what context its used in. Time to fire up the grep command and see what we can dig up. Hopefully, it's not buried in some header file three directories deep.



60/4 2026/06/15 16:14 tool grepper
0m Args:
map[Expression:kzalloc_objs]

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

Documentation/process/deprecated.rst=393=become, respectively::
--
Documentation/process/deprecated.rst-397-	ptr = kmalloc_objs(*ptr, count, gfp);
Documentation/process/deprecated.rst:398:	ptr = kzalloc_objs(*ptr, count, gfp);
Documentation/process/deprecated.rst-399-	ptr = kmalloc_flex(*ptr, flex_member, count, gfp);
--
arch/alpha/kernel/module.c=64=module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
--
arch/alpha/kernel/module.c-95-	nsyms = symtab->sh_size / sizeof(Elf64_Sym);
arch/alpha/kernel/module.c:96:	chains = kzalloc_objs(struct got_entry, nsyms);
arch/alpha/kernel/module.c-97-	if (!chains) {
--
arch/arm/kernel/vdso.c=169=static int __init vdso_init(void)
--
arch/arm/kernel/vdso.c-181-	/* Allocate the VDSO text pagelist */
arch/arm/kernel/vdso.c:182:	vdso_text_pagelist = kzalloc_objs(struct page *, text_pages);
arch/arm/kernel/vdso.c-183-	if (vdso_text_pagelist == NULL)
--
arch/arm/mach-footbridge/dc21285.c=261=int __init dc21285_setup(int nr, struct pci_sys_data *sys)
--
arch/arm/mach-footbridge/dc21285.c-264-
arch/arm/mach-footbridge/dc21285.c:265:	res = kzalloc_objs(struct resource, 2);
arch/arm/mach-footbridge/dc21285.c-266-	if (!res) {
--
arch/arm/mach-omap1/mcbsp.c=292=static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
--
arch/arm/mach-omap1/mcbsp.c-296-
arch/arm/mach-omap1/mcbsp.c:297:	omap_mcbsp_devices = kzalloc_objs(struct platform_device *, size);
arch/arm/mach-omap1/mcbsp.c-298-	if (!omap_mcbsp_devices) {
--
arch/arm/mach-omap2/omap_device.c=131=static int omap_device_build_from_dt(struct platform_device *pdev)
--
arch/arm/mach-omap2/omap_device.c-158-
arch/arm/mach-omap2/omap_device.c:159:	hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt);
arch/arm/mach-omap2/omap_device.c-160-	if (!hwmods) {
--
arch/arm/mach-omap2/pm33xx-core.c=379=static int __init amx3_idle_init(struct device_node *cpu_node, int cpu)
--
arch/arm/mach-omap2/pm33xx-core.c-412-
arch/arm/mach-omap2/pm33xx-core.c:413:	idle_states = kzalloc_objs(*idle_states, state_count);
arch/arm/mach-omap2/pm33xx-core.c-414-	if (!idle_states)
--
arch/arm/mach-omap2/sr_device.c=30=static void __init sr_set_nvalues(struct omap_volt_data *volt_data,
--
arch/arm/mach-omap2/sr_device.c-41-
arch/arm/mach-omap2/sr_device.c:42:	nvalue_table = kzalloc_objs(*nvalue_table, count);
arch/arm/mach-omap2/sr_device.c-43-	if (!nvalue_table)
--
arch/arm/mach-versatile/spc.c=393=static int ve_spc_populate_opps(uint32_t cluster)
--
arch/arm/mach-versatile/spc.c-397-
arch/arm/mach-versatile/spc.c:398:	opps = kzalloc_objs(*opps, MAX_OPPS);
arch/arm/mach-versatile/spc.c-399-	if (!opps)
--
arch/arm/xen/enlighten.c=316=int __init arch_xen_unpopulated_init(struct resource **res)
--
arch/arm/xen/enlighten.c-343-
arch/arm/xen/enlighten.c:344:	regs = kzalloc_objs(*regs, nr_reg);
arch/arm/xen/enlighten.c-345-	if (!regs) {
--
arch/arm64/kernel/vdso.c=68=static int __init __vdso_init(enum vdso_abi abi)
--
arch/arm64/kernel/vdso.c-83-
arch/arm64/kernel/vdso.c:84:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info[abi].vdso_pages);
arch/arm64/kernel/vdso.c-85-	if (vdso_pagelist == NULL)
--
arch/arm64/kvm/vgic/vgic-init.c=207=static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis)
--
arch/arm64/kvm/vgic/vgic-init.c-213-	dist->active_spis = (atomic_t)ATOMIC_INIT(0);
arch/arm64/kvm/vgic/vgic-init.c:214:	dist->spis = kzalloc_objs(struct vgic_irq, nr_spis, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-init.c-215-	if (!dist->spis)
--
arch/arm64/kvm/vgic/vgic-init.c=329=static int vgic_allocate_private_irqs_locked(struct kvm_vcpu *vcpu, u32 type)
--
arch/arm64/kvm/vgic/vgic-init.c-344-
arch/arm64/kvm/vgic/vgic-init.c:345:	vgic_cpu->private_irqs = kzalloc_objs(struct vgic_irq,
arch/arm64/kvm/vgic/vgic-init.c-346-					      num_private_irqs,
--
arch/arm64/kvm/vgic/vgic-irqfd.c=136=int kvm_vgic_setup_default_irq_routing(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-irqfd.c-142-
arch/arm64/kvm/vgic/vgic-irqfd.c:143:	entries = kzalloc_objs(*entries, nr, GFP_KERNEL_ACCOUNT);
arch/arm64/kvm/vgic/vgic-irqfd.c-144-	if (!entries)
--
arch/arm64/kvm/vgic/vgic-v4.c=242=int vgic_v4_init(struct kvm *kvm)
--
arch/arm64/kvm/vgic/vgic-v4.c-258-
arch/arm64/kvm/vgic/vgic-v4.c:259:	dist->its_vm.vpes = kzalloc_objs(*dist->its_vm.vpes, nr_vcpus,
arch/arm64/kvm/vgic/vgic-v4.c-260-					 GFP_KERNEL_ACCOUNT);
--
arch/csky/kernel/vdso.c=17=static int __init vdso_init(void)
--
arch/csky/kernel/vdso.c-22-	vdso_pagelist =
arch/csky/kernel/vdso.c:23:		kzalloc_objs(struct page *, vdso_pages);
arch/csky/kernel/vdso.c-24-	if (unlikely(vdso_pagelist == NULL)) {
--
arch/loongarch/kernel/vdso.c=45=static int __init init_vdso(void)
--
arch/loongarch/kernel/vdso.c-55-	vdso_info.code_mapping.pages =
arch/loongarch/kernel/vdso.c:56:		kzalloc_objs(struct page *, vdso_info.size / PAGE_SIZE);
arch/loongarch/kernel/vdso.c-57-
--
arch/loongarch/kvm/intc/pch_pic.c=410=static int kvm_setup_default_irq_routing(struct kvm *kvm)
--
arch/loongarch/kvm/intc/pch_pic.c-415-
arch/loongarch/kvm/intc/pch_pic.c:416:	entries = kzalloc_objs(*entries, nr);
arch/loongarch/kvm/intc/pch_pic.c-417-	if (!entries)
--
arch/mips/alchemy/common/clock.c=754=static int __init alchemy_clk_init_fgens(int ctype)
--
arch/mips/alchemy/common/clock.c-777-
arch/mips/alchemy/common/clock.c:778:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-779-	if (!a)
--
arch/mips/alchemy/common/clock.c=960=static int __init alchemy_clk_setup_imux(int ctype)
--
arch/mips/alchemy/common/clock.c-998-
arch/mips/alchemy/common/clock.c:999:	a = kzalloc_objs(*a, 6);
arch/mips/alchemy/common/clock.c-1000-	if (!a)
--
arch/mips/alchemy/common/dbdma.c=1056=static int __init dbdma_setup(unsigned int irq, dbdev_tab_t *idtable)
--
arch/mips/alchemy/common/dbdma.c-1059-
arch/mips/alchemy/common/dbdma.c:1060:	dbdev_tab = kzalloc_objs(dbdev_tab_t, DBDEV_TAB_SIZE);
arch/mips/alchemy/common/dbdma.c-1061-	if (!dbdev_tab)
--
arch/mips/alchemy/common/platform.c=203=static int __init _new_usbres(struct resource **r, struct platform_device **d)
arch/mips/alchemy/common/platform.c-204-{
arch/mips/alchemy/common/platform.c:205:	*r = kzalloc_objs(struct resource, 2);
arch/mips/alchemy/common/platform.c-206-	if (!*r)
--
arch/mips/alchemy/devboards/platform.c=68=int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start,
--
arch/mips/alchemy/devboards/platform.c-89-
arch/mips/alchemy/devboards/platform.c:90:	sr = kzalloc_objs(struct resource, cnt);
arch/mips/alchemy/devboards/platform.c-91-	if (!sr)
--
arch/mips/alchemy/devboards/platform.c=152=int __init db1x_register_norflash(unsigned long size, int width,
--
arch/mips/alchemy/devboards/platform.c-164-	ret = -ENOMEM;
arch/mips/alchemy/devboards/platform.c:165:	parts = kzalloc_objs(struct mtd_partition, 5);
arch/mips/alchemy/devboards/platform.c-166-	if (!parts)
--
arch/mips/kernel/smp-cps.c=295=static void __init cps_prepare_cpus(unsigned int max_cpus)
--
arch/mips/kernel/smp-cps.c-343-	nclusters = mips_cps_numclusters();
arch/mips/kernel/smp-cps.c:344:	mips_cps_cluster_bootcfg = kzalloc_objs(*mips_cps_cluster_bootcfg,
arch/mips/kernel/smp-cps.c-345-						nclusters);
--
arch/mips/kernel/smp-cps.c-354-		ncores = mips_cps_numcores(cl);
arch/mips/kernel/smp-cps.c:355:		core_bootcfg = kzalloc_objs(*core_bootcfg, ncores);
arch/mips/kernel/smp-cps.c-356-		if (!core_bootcfg)
--
arch/mips/kernel/smp-cps.c-369-			core_vpes = core_vpe_count(cl, c);
arch/mips/kernel/smp-cps.c:370:			core_bootcfg[c].vpe_config = kzalloc_objs(*core_bootcfg[c].vpe_config,
arch/mips/kernel/smp-cps.c-371-								  core_vpes);
--
arch/parisc/kernel/vdso.c=99=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/parisc/kernel/vdso.c-104-
arch/parisc/kernel/vdso.c:105:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/parisc/kernel/vdso.c-106-	if (!pagelist)
--
arch/parisc/net/bpf_jit_core.c=44=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/parisc/net/bpf_jit_core.c-71-	ctx->prog = prog;
arch/parisc/net/bpf_jit_core.c:72:	ctx->offset = kzalloc_objs(int, prog->len);
arch/parisc/net/bpf_jit_core.c-73-	if (!ctx->offset)
--
arch/powerpc/kernel/smp.c=1113=void __init smp_prepare_cpus(unsigned int max_cpus)
--
arch/powerpc/kernel/smp.c-1174-		 */
arch/powerpc/kernel/smp.c:1175:		chip_id_lookup_table = kzalloc_objs(int, idx);
arch/powerpc/kernel/smp.c-1176-		if (chip_id_lookup_table)
--
arch/powerpc/kernel/vdso.c=242=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/powerpc/kernel/vdso.c-247-
arch/powerpc/kernel/vdso.c:248:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/powerpc/kernel/vdso.c-249-	if (!pagelist)
--
arch/powerpc/kvm/e500_mmu.c=731=int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu,
--
arch/powerpc/kvm/e500_mmu.c-794-
arch/powerpc/kvm/e500_mmu.c:795:	privs[0] = kzalloc_objs(*privs[0], params.tlb_sizes[0]);
arch/powerpc/kvm/e500_mmu.c-796-	if (!privs[0]) {
--
arch/powerpc/kvm/e500_mmu.c-800-
arch/powerpc/kvm/e500_mmu.c:801:	privs[1] = kzalloc_objs(*privs[1], params.tlb_sizes[1]);
arch/powerpc/kvm/e500_mmu.c-802-	if (!privs[1]) {
--
arch/powerpc/kvm/e500_mmu.c=898=int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
--
arch/powerpc/kvm/e500_mmu.c-922-
arch/powerpc/kvm/e500_mmu.c:923:	vcpu_e500->gtlb_priv[0] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-924-					       vcpu_e500->gtlb_params[0].entries);
--
arch/powerpc/kvm/e500_mmu.c-927-
arch/powerpc/kvm/e500_mmu.c:928:	vcpu_e500->gtlb_priv[1] = kzalloc_objs(struct tlbe_priv,
arch/powerpc/kvm/e500_mmu.c-929-					       vcpu_e500->gtlb_params[1].entries);
--
arch/powerpc/mm/drmem.c=425=static void __init init_drmem_v1_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-432-
arch/powerpc/mm/drmem.c:433:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-434-	if (!drmem_info->lmbs)
--
arch/powerpc/mm/drmem.c=441=static void __init init_drmem_v2_lmbs(const __be32 *prop)
--
arch/powerpc/mm/drmem.c-459-
arch/powerpc/mm/drmem.c:460:	drmem_info->lmbs = kzalloc_objs(*lmb, drmem_info->n_lmbs);
arch/powerpc/mm/drmem.c-461-	if (!drmem_info->lmbs)
--
arch/powerpc/perf/imc-pmu.c=221=static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu)
--
arch/powerpc/perf/imc-pmu.c-259-	/* Allocate memory for the events */
arch/powerpc/perf/imc-pmu.c:260:	pmu->events = kzalloc_objs(struct imc_events, ct);
arch/powerpc/perf/imc-pmu.c-261-	if (!pmu->events) {
--
arch/powerpc/perf/imc-pmu.c-290-	 */
arch/powerpc/perf/imc-pmu.c:291:	attrs = kzalloc_objs(struct attribute *, ((ct * 3) + 1));
arch/powerpc/perf/imc-pmu.c-292-	if (!attrs) {
--
arch/powerpc/perf/imc-pmu.c=1526=static int init_nest_pmu_ref(void)
--
arch/powerpc/perf/imc-pmu.c-1529-
arch/powerpc/perf/imc-pmu.c:1530:	nest_imc_refc = kzalloc_objs(*nest_imc_refc, num_possible_nodes());
arch/powerpc/perf/imc-pmu.c-1531-
--
arch/powerpc/perf/imc-pmu.c=1683=static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,
--
arch/powerpc/perf/imc-pmu.c-1700-		if (!per_nest_pmu_arr) {
arch/powerpc/perf/imc-pmu.c:1701:			per_nest_pmu_arr = kzalloc_objs(struct imc_pmu *,
arch/powerpc/perf/imc-pmu.c-1702-							get_max_nest_dev() + 1);
--
arch/powerpc/perf/imc-pmu.c-1714-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1715:		pmu_ptr->mem_info = kzalloc_objs(struct imc_mem_info, nr_cores);
arch/powerpc/perf/imc-pmu.c-1716-
--
arch/powerpc/perf/imc-pmu.c-1719-
arch/powerpc/perf/imc-pmu.c:1720:		core_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1721-
--
arch/powerpc/perf/imc-pmu.c-1752-		nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core);
arch/powerpc/perf/imc-pmu.c:1753:		trace_imc_refc = kzalloc_objs(struct imc_pmu_ref, nr_cores);
arch/powerpc/perf/imc-pmu.c-1754-		if (!trace_imc_refc)
--
arch/powerpc/perf/vpa-dtl.c=508=static void *vpa_dtl_setup_aux(struct perf_event *event, void **pages,
--
arch/powerpc/perf/vpa-dtl.c-525-
arch/powerpc/perf/vpa-dtl.c:526:	pglist = kzalloc_objs(*pglist, nr_pages);
arch/powerpc/perf/vpa-dtl.c-527-	if (!pglist)
--
arch/powerpc/platforms/44x/pci.c=1307=static int __init ppc4xx_pciex_check_core_init(struct device_node *np)
--
arch/powerpc/platforms/44x/pci.c-1341-		ppc4xx_pciex_ports =
arch/powerpc/platforms/44x/pci.c:1342:		       kzalloc_objs(struct ppc4xx_pciex_port, count);
arch/powerpc/platforms/44x/pci.c-1343-		if (ppc4xx_pciex_ports) {
--
arch/powerpc/platforms/powernv/idle.c=1322=static int __init pnv_parse_cpuidle_dt(void)
--
arch/powerpc/platforms/powernv/idle.c-1338-
arch/powerpc/platforms/powernv/idle.c:1339:	pnv_idle_states = kzalloc_objs(*pnv_idle_states, nr_idle_states);
arch/powerpc/platforms/powernv/idle.c-1340-	temp_u32 = kcalloc(nr_idle_states, sizeof(u32),  GFP_KERNEL);
--
arch/powerpc/platforms/powernv/memtrace.c=131=static int memtrace_init_regions_runtime(u64 size)
--
arch/powerpc/platforms/powernv/memtrace.c-135-
arch/powerpc/platforms/powernv/memtrace.c:136:	memtrace_array = kzalloc_objs(struct memtrace_entry, num_online_nodes());
arch/powerpc/platforms/powernv/memtrace.c-137-	if (!memtrace_array) {
--
arch/powerpc/platforms/powernv/opal-async.c=246=int __init opal_async_comp_init(void)
--
arch/powerpc/platforms/powernv/opal-async.c-267-	opal_max_async_tokens = be32_to_cpup(async);
arch/powerpc/platforms/powernv/opal-async.c:268:	opal_async_tokens = kzalloc_objs(*opal_async_tokens,
arch/powerpc/platforms/powernv/opal-async.c-269-					 opal_max_async_tokens);
--
arch/powerpc/platforms/powernv/opal-imc.c=82=static int imc_get_mem_addr_nest(struct device_node *node,
--
arch/powerpc/platforms/powernv/opal-imc.c-110-
arch/powerpc/platforms/powernv/opal-imc.c:111:	pmu_ptr->mem_info = kzalloc_objs(*pmu_ptr->mem_info, nr_chips + 1);
arch/powerpc/platforms/powernv/opal-imc.c-112-	if (!pmu_ptr->mem_info)
--
arch/powerpc/platforms/powernv/opal-irqchip.c=174=int __init opal_event_init(void)
--
arch/powerpc/platforms/powernv/opal-irqchip.c-223-	/* Allocate an IRQ resources array */
arch/powerpc/platforms/powernv/opal-irqchip.c:224:	opal_irqs = kzalloc_objs(struct resource, opal_irq_count);
arch/powerpc/platforms/powernv/opal-irqchip.c-225-	if (WARN_ON(!opal_irqs)) {
--
arch/powerpc/platforms/powernv/opal-powercap.c=142=void __init opal_powercap_init(void)
--
arch/powerpc/platforms/powernv/opal-powercap.c-152-
arch/powerpc/platforms/powernv/opal-powercap.c:153:	pcaps = kzalloc_objs(*pcaps, of_get_child_count(powercap));
arch/powerpc/platforms/powernv/opal-powercap.c-154-	if (!pcaps)
--
arch/powerpc/platforms/powernv/opal-powercap.c-183-
arch/powerpc/platforms/powernv/opal-powercap.c:184:		pcaps[i].pattrs = kzalloc_objs(struct powercap_attr, j);
arch/powerpc/platforms/powernv/opal-powercap.c-185-		if (!pcaps[i].pattrs)
--
arch/powerpc/platforms/powernv/opal-powercap.c-187-
arch/powerpc/platforms/powernv/opal-powercap.c:188:		pcaps[i].pg.attrs = kzalloc_objs(struct attribute *, j + 1);
arch/powerpc/platforms/powernv/opal-powercap.c-189-		if (!pcaps[i].pg.attrs) {
--
arch/powerpc/platforms/powernv/opal-psr.c=123=void __init opal_psr_init(void)
--
arch/powerpc/platforms/powernv/opal-psr.c-134-
arch/powerpc/platforms/powernv/opal-psr.c:135:	psr_attrs = kzalloc_objs(*psr_attrs, of_get_child_count(psr));
arch/powerpc/platforms/powernv/opal-psr.c-136-	if (!psr_attrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c=160=void __init opal_sensor_groups_init(void)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-170-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:171:	sgs = kzalloc_objs(*sgs, of_get_child_count(sg));
arch/powerpc/platforms/powernv/opal-sensor-groups.c-172-	if (!sgs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-192-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:193:		sgs[i].sgattrs = kzalloc_objs(*sgs[i].sgattrs, nr_attrs);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-194-		if (!sgs[i].sgattrs)
--
arch/powerpc/platforms/powernv/opal-sensor-groups.c-196-
arch/powerpc/platforms/powernv/opal-sensor-groups.c:197:		sgs[i].sg.attrs = kzalloc_objs(*sgs[i].sg.attrs, nr_attrs + 1);
arch/powerpc/platforms/powernv/opal-sensor-groups.c-198-
--
arch/powerpc/platforms/powernv/opal-sysparam.c=143=void __init opal_sys_param_init(void)
--
arch/powerpc/platforms/powernv/opal-sysparam.c-224-
arch/powerpc/platforms/powernv/opal-sysparam.c:225:	attr = kzalloc_objs(*attr, count);
arch/powerpc/platforms/powernv/opal-sysparam.c-226-	if (!attr) {
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c=233=static int __init papr_init(void)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-297-
arch/powerpc/platforms/pseries/papr_platform_attributes.c:298:	papr_groups = kzalloc_objs(*papr_groups, num_attrs);
arch/powerpc/platforms/pseries/papr_platform_attributes.c-299-	if (!papr_groups)
--
arch/powerpc/platforms/pseries/papr_platform_attributes.c-315-	for (idx = 0; idx < num_attrs; idx++) {
arch/powerpc/platforms/pseries/papr_platform_attributes.c:316:		papr_groups[idx].pg.attrs = kzalloc_objs(*papr_groups[idx].pg.attrs,
arch/powerpc/platforms/pseries/papr_platform_attributes.c-317-							 KOBJ_MAX_ATTRS + 1);
--
arch/powerpc/sysdev/mpic.c=542=static void __init mpic_scan_ht_pics(struct mpic *mpic)
--
arch/powerpc/sysdev/mpic.c-549-	/* Allocate fixups array */
arch/powerpc/sysdev/mpic.c:550:	mpic->fixups = kzalloc_objs(*mpic->fixups, 128);
arch/powerpc/sysdev/mpic.c-551-	BUG_ON(mpic->fixups == NULL);
--
arch/powerpc/sysdev/mpic_msgr.c=167=static int mpic_msgr_probe(struct platform_device *dev)
--
arch/powerpc/sysdev/mpic_msgr.c-190-
arch/powerpc/sysdev/mpic_msgr.c:191:		mpic_msgrs = kzalloc_objs(*mpic_msgrs, mpic_msgr_count);
arch/powerpc/sysdev/mpic_msgr.c-192-		if (!mpic_msgrs) {
--
arch/powerpc/sysdev/xive/common.c=1118=static int __init xive_init_ipis(void)
--
arch/powerpc/sysdev/xive/common.c-1133-
arch/powerpc/sysdev/xive/common.c:1134:	xive_ipis = kzalloc_objs(*xive_ipis, nr_node_ids,
arch/powerpc/sysdev/xive/common.c-1135-				 GFP_KERNEL | __GFP_NOFAIL);
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c=13=static void test_kprobe_riscv(struct kunit *test)
--
arch/riscv/kernel/tests/kprobes/test-kprobes.c-22-
arch/riscv/kernel/tests/kprobes/test-kprobes.c:23:	kp = kzalloc_objs(*kp, num_kprobe);
arch/riscv/kernel/tests/kprobes/test-kprobes.c-24-	KUNIT_EXPECT_TRUE(test, kp);
--
arch/riscv/kernel/unaligned_access_speed.c=154=static void __init check_unaligned_access_speed_all_cpus(void)
--
arch/riscv/kernel/unaligned_access_speed.c-157-	unsigned int cpu_count = num_possible_cpus();
arch/riscv/kernel/unaligned_access_speed.c:158:	struct page **bufs = kzalloc_objs(*bufs, cpu_count);
arch/riscv/kernel/unaligned_access_speed.c-159-
--
arch/riscv/kernel/vdso.c=44=static void __init __vdso_init(struct __vdso_info *vdso_info)
--
arch/riscv/kernel/vdso.c-57-
arch/riscv/kernel/vdso.c:58:	vdso_pagelist = kzalloc_objs(struct page *, vdso_info->vdso_pages);
arch/riscv/kernel/vdso.c-59-	if (vdso_pagelist == NULL)
--
arch/riscv/kvm/aia_aplic.c=574=int kvm_riscv_aia_aplic_init(struct kvm *kvm)
--
arch/riscv/kvm/aia_aplic.c-591-	aplic->nr_words = DIV_ROUND_UP(aplic->nr_irqs, 32);
arch/riscv/kvm/aia_aplic.c:592:	aplic->irqs = kzalloc_objs(*aplic->irqs, aplic->nr_irqs);
arch/riscv/kvm/aia_aplic.c-593-	if (!aplic->irqs) {
--
arch/riscv/kvm/vcpu_sbi_fwft.c=348=static int kvm_sbi_ext_fwft_init(struct kvm_vcpu *vcpu)
--
arch/riscv/kvm/vcpu_sbi_fwft.c-354-
arch/riscv/kvm/vcpu_sbi_fwft.c:355:	fwft->configs = kzalloc_objs(struct kvm_sbi_fwft_config,
arch/riscv/kvm/vcpu_sbi_fwft.c-356-				     ARRAY_SIZE(features));
--
arch/riscv/kvm/vm.c=93=int kvm_riscv_setup_default_irq_routing(struct kvm *kvm, u32 lines)
--
arch/riscv/kvm/vm.c-97-
arch/riscv/kvm/vm.c:98:	ents = kzalloc_objs(*ents, lines);
arch/riscv/kvm/vm.c-99-	if (!ents)
--
arch/riscv/net/bpf_jit_comp64.c=1022=static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
--
arch/riscv/net/bpf_jit_comp64.c-1197-	if (fmod_ret->nr_links) {
arch/riscv/net/bpf_jit_comp64.c:1198:		branches_off = kzalloc_objs(int, fmod_ret->nr_links);
arch/riscv/net/bpf_jit_comp64.c-1199-		if (!branches_off)
--
arch/riscv/net/bpf_jit_core.c=44=struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog)
--
arch/riscv/net/bpf_jit_core.c-74-	ctx->prog = prog;
arch/riscv/net/bpf_jit_core.c:75:	ctx->offset = kzalloc_objs(int, prog->len);
arch/riscv/net/bpf_jit_core.c-76-	if (!ctx->offset)
--
arch/s390/appldata/appldata_base.c=348=int appldata_register_ops(struct appldata_ops *ops)
--
arch/s390/appldata/appldata_base.c-352-
arch/s390/appldata/appldata_base.c:353:	ops->ctl_table = kzalloc_objs(struct ctl_table, 1);
arch/s390/appldata/appldata_base.c-354-	if (!ops->ctl_table)
--
arch/s390/include/asm/idals.h=88=static inline int set_normalized_cda(struct ccw1 *ccw, void *vaddr)
--
arch/s390/include/asm/idals.h-96-	if (nridaws > 0) {
arch/s390/include/asm/idals.h:97:		idal = kzalloc_objs(*idal, nridaws, GFP_ATOMIC | GFP_DMA);
arch/s390/include/asm/idals.h-98-		if (!idal)
--
arch/s390/kernel/cert_store.c=315=static int invalidate_keyring_keys(struct key *keyring)
--
arch/s390/kernel/cert_store.c-324-	num_keys = keyring_payload_len / sizeof(key_serial_t);
arch/s390/kernel/cert_store.c:325:	key_array = kzalloc_objs(key_serial_t, num_keys);
arch/s390/kernel/cert_store.c-326-	if (!key_array)
--
arch/s390/kernel/debug.c=220=static debug_info_t *debug_info_alloc(const char *name, int pages_per_area,
--
arch/s390/kernel/debug.c-229-		goto fail_malloc_rc;
arch/s390/kernel/debug.c:230:	rc->active_entries = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-231-	if (!rc->active_entries)
arch/s390/kernel/debug.c-232-		goto fail_malloc_active_entries;
arch/s390/kernel/debug.c:233:	rc->active_pages = kzalloc_objs(int, nr_areas);
arch/s390/kernel/debug.c-234-	if (!rc->active_pages)
--
arch/s390/kernel/vdso.c=129=static struct page ** __init vdso_setup_pages(void *start, void *end)
--
arch/s390/kernel/vdso.c-134-
arch/s390/kernel/vdso.c:135:	pagelist = kzalloc_objs(struct page *, pages + 1);
arch/s390/kernel/vdso.c-136-	if (!pagelist)
--
arch/s390/kvm/pci.c=120=int kvm_s390_pci_aen_init(u8 nisc)
--
arch/s390/kvm/pci.c-128-	mutex_lock(&aift->aift_lock);
arch/s390/kvm/pci.c:129:	aift->kzdev = kzalloc_objs(struct kvm_zdev *, ZPCI_NR_DEVICES);
arch/s390/kvm/pci.c-130-	if (!aift->kzdev) {
--
arch/s390/pci/pci.c=1065=static int zpci_mem_init(void)
--
arch/s390/pci/pci.c-1076-
arch/s390/pci/pci.c:1077:	zpci_iomap_start = kzalloc_objs(*zpci_iomap_start, ZPCI_IOMAP_ENTRIES);
arch/s390/pci/pci.c-1078-	if (!zpci_iomap_start)
--
arch/s390/pci/pci_irq.c=552=static int __init zpci_directed_irq_init(void)
--
arch/s390/pci/pci_irq.c-565-
arch/s390/pci/pci_irq.c:566:	zpci_ibv = kzalloc_objs(*zpci_ibv, num_possible_cpus());
arch/s390/pci/pci_irq.c-567-	if (!zpci_ibv)
--
arch/s390/pci/pci_irq.c=590=static int __init zpci_floating_irq_init(void)
arch/s390/pci/pci_irq.c-591-{
arch/s390/pci/pci_irq.c:592:	zpci_ibv = kzalloc_objs(*zpci_ibv, ZPCI_NR_DEVICES);
arch/s390/pci/pci_irq.c-593-	if (!zpci_ibv)
--
arch/sh/drivers/dma/dmabrg.c=151=static int __init dmabrg_init(void)
--
arch/sh/drivers/dma/dmabrg.c-155-
arch/sh/drivers/dma/dmabrg.c:156:	dmabrg_handlers = kzalloc_objs(struct dmabrg_handler, 10);
arch/sh/drivers/dma/dmabrg.c-157-	if (!dmabrg_handlers)
--
arch/sh/drivers/pci/pcie-sh7786.c=545=static int __init sh7786_pcie_init(void)
--
arch/sh/drivers/pci/pcie-sh7786.c-560-
arch/sh/drivers/pci/pcie-sh7786.c:561:	sh7786_pcie_ports = kzalloc_objs(struct sh7786_pcie_port, nr_ports);
arch/sh/drivers/pci/pcie-sh7786.c-562-	if (unlikely(!sh7786_pcie_ports))
--
arch/sparc/kernel/sys_sparc_64.c=625=SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type,
--
arch/sparc/kernel/sys_sparc_64.c-649-		current_thread_info()->utraps =
arch/sparc/kernel/sys_sparc_64.c:650:			kzalloc_objs(long, UT_TRAP_INSTRUCTION_31 + 1);
arch/sparc/kernel/sys_sparc_64.c-651-		if (!current_thread_info()->utraps)
--
arch/sparc/vdso/vma.c=46=static int __init init_vdso_image(const struct vdso_image *image,
--
arch/sparc/vdso/vma.c-60-
arch/sparc/vdso/vma.c:61:	cpp = kzalloc_objs(struct page *, cnpages);
arch/sparc/vdso/vma.c-62-	vdso_mapping->pages = cpp;
--
arch/x86/events/amd/iommu.c=382=static __init int _init_events_attrs(void)
--
arch/x86/events/amd/iommu.c-389-
arch/x86/events/amd/iommu.c:390:	attrs = kzalloc_objs(*attrs, i + 1);
arch/x86/events/amd/iommu.c-391-	if (!attrs)
--
arch/x86/events/intel/core.c=7420=static __always_inline int intel_pmu_init_hybrid(enum hybrid_pmu_type pmus)
--
arch/x86/events/intel/core.c-7426-	x86_pmu.num_hybrid_pmus = hweight_long(pmus_mask);
arch/x86/events/intel/core.c:7427:	x86_pmu.hybrid_pmu = kzalloc_objs(struct x86_hybrid_pmu,
arch/x86/events/intel/core.c-7428-					  x86_pmu.num_hybrid_pmus);
--
arch/x86/events/intel/uncore.c=988=static int __init uncore_type_init(struct intel_uncore_type *type)
--
arch/x86/events/intel/uncore.c-993-

]

61/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24000
							output: 351
							thoughts: 44
						

Thoughts:
Okay, here's my take on those thoughts, as if they were my own:

**Replacing `kzalloc_objs` with `kvcalloc`**

Right, `kzalloc_objs`... a macro. No need to delve into its inner workings right now; all I really need is to swap it out for `kvcalloc`. That should be a straightforward substitution. Time to get this done.



62/4 2026/06/15 16:14 tool codeeditor
0m Args:
map[CurrentCode:	if (object_count != 0) {
		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
					       object_count, sizeof(__u32));
		if (IS_ERR(object_ids)) {
			ret = PTR_ERR(object_ids);
			idr_destroy(&leases);
			goto out_lessor;
		}

		/* fill and validate the object idr */
		ret = fill_object_idr(dev, lessor_priv, &leases,
				      object_count, object_ids);
		kfree(object_ids);
		if (ret) { NewCode:	if (object_count != 0) {
		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
					       object_count, sizeof(__u32));
		if (IS_ERR(object_ids)) {
			ret = PTR_ERR(object_ids);
			idr_destroy(&leases);
			goto out_lessor;
		}

		/* fill and validate the object idr */
		ret = fill_object_idr(dev, lessor_priv, &leases,
				      object_count, object_ids);
		kvfree(object_ids);
		if (ret) { SourceFile:drivers/gpu/drm/drm_lease.c]

Results:
map[]

63/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24489
							output: 344
							thoughts: 13
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience, presented in the first person:

**Editing `fill_object_idr` Functionality**

Alright, time to get into the weeds with `fill_object_idr`. I'm going to need to carefully review the current implementation. We're dealing with potentially sensitive data or complex object relationships here, so any changes need to be thoroughly vetted. My primary concern is maintaining data integrity and ensuring the IDR fill process doesn't introduce any unforeseen side effects or performance bottlenecks. I need to keep in mind any dependencies this function might have. I'll need to consider how it interacts with other related modules or systems. I'll approach this with the assumption that I am already familiar with the codebase.



64/4 2026/06/15 16:14 tool codeeditor
0m Args:
map[CurrentCode:static int fill_object_idr(struct drm_device *dev,
			   struct drm_file *lessor_priv,
			   struct idr *leases,
			   int object_count,
			   u32 *object_ids)
{
	struct drm_mode_object **objects;
	u32 o;
	int ret;
	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);

	objects = kzalloc_objs(struct drm_mode_object *, object_count);
	if (!objects)
		return -ENOMEM;

	/* step one - get references to all the mode objects NewCode:static int fill_object_idr(struct drm_device *dev,
			   struct drm_file *lessor_priv,
			   struct idr *leases,
			   int object_count,
			   u32 *object_ids)
{
	struct drm_mode_object **objects;
	u32 o;
	int ret;
	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);

	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
	if (!objects)
		return -ENOMEM;

	/* step one - get references to all the mode objects SourceFile:drivers/gpu/drm/drm_lease.c]

Results:
map[]

65/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25017
							output: 178
							thoughts: 15
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm already deep in the weeds of kernel development:

**Kfree and the Object IDR**

Right, so I'm thinking about `fill_object_idr`. What's nagging at me is that `kfree` call in that function. It's a key spot. I need to ensure that the memory freed in the context of `fill_object_idr` is handled correctly. This part of the code is responsible for populating the object IDR, likely associating IDs with specific kernel objects or data structures. I'm wondering if there's any potential for a double free, or a use-after-free scenario. Is the memory being freed safely after it's been used? Is there any chance that the freed memory is still referenced or could be later, which could introduce subtle and hard-to-debug memory corruption problems? I need to analyze the whole call stack and all possible return paths from the function. I also need to make sure the free is conditional and correct for all possible circumstances. If I don't look closely, it's very easy to miss a crucial detail here.



66/4 2026/06/15 16:14 tool codeeditor
0m Args:
map[CurrentCode:	ret = 0;
out_free_objects:
	for (o = 0; o < object_count; o++) {
		if (objects[o])
			drm_mode_object_put(objects[o]);
	}
	kfree(objects);
	return ret;
} NewCode:	ret = 0;
out_free_objects:
	for (o = 0; o < object_count; o++) {
		if (objects[o])
			drm_mode_object_put(objects[o]);
	}
	kvfree(objects);
	return ret;
} SourceFile:drivers/gpu/drm/drm_lease.c]

Results:
map[]

67/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 25465
							output: 26
							thoughts: 7
						

Thoughts:
Okay, I'm ready to dive into that diff. Let's get this done.
***

**Analyzing the Changes**

Alright, first things first: let's get a good look at the diff. I need to understand exactly what's changed and the scope of these modifications. I'm focusing on the delta here - pinpointing what's been added, deleted, or modified. My mind's already ticking through possible implications, considering the impact on existing systems and potential areas that might break or interact in unexpected ways. Are these isolated changes, or do they ripple out? Are there dependencies I need to flag immediately? I need to quickly assess the context: what project are we working on? What components? What was the previous state? From that, I will understand what this means. I'm already asking myself, 'is this change as straightforward as it appears?'. The goal is a clear understanding. Let's dig in.



68/4 2026/06/15 16:14 tool patch-diff
0m Args:
map[File:drivers/gpu/drm/drm_lease.c]

Results:
map[Output:diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..1666dba7b 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -378,209 +378,209 @@ static int validate_lease(struct drm_device *dev,
 static int fill_object_idr(struct drm_device *dev,
 			   struct drm_file *lessor_priv,
 			   struct idr *leases,
 			   int object_count,
 			   u32 *object_ids)
 {
 	struct drm_mode_object **objects;
 	u32 o;
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
 	/* step one - get references to all the mode objects
 	   and check for validity. */
 	for (o = 0; o < object_count; o++) {
 		objects[o] = drm_mode_object_find(dev, lessor_priv,
 						  object_ids[o],
 						  DRM_MODE_OBJECT_ANY);
 		if (!objects[o]) {
 			ret = -ENOENT;
 			goto out_free_objects;
 		}
 
 		if (!drm_mode_object_lease_required(objects[o]->type)) {
 			DRM_DEBUG_KMS("invalid object for lease\n");
 			ret = -EINVAL;
 			goto out_free_objects;
 		}
 	}
 
 	ret = validate_lease(dev, object_count, objects, universal_planes);
 	if (ret) {
 		drm_dbg_lease(dev, "lease validation failed\n");
 		goto out_free_objects;
 	}
 
 	/* add their IDs to the lease request - taking into account
 	   universal planes */
 	for (o = 0; o < object_count; o++) {
 		struct drm_mode_object *obj = objects[o];
 		u32 object_id = objects[o]->id;
 
 		drm_dbg_lease(dev, "Adding object %d to lease\n", object_id);
 
 		/*
 		 * We're using an IDR to hold the set of leased
 		 * objects, but we don't need to point at the object's
 		 * data structure from the lease as the main object_idr
 		 * will be used to actually find that. Instead, all we
 		 * really want is a 'leased/not-leased' result, for
 		 * which any non-NULL pointer will work fine.
 		 */
 		ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL);
 		if (ret < 0) {
 			drm_dbg_lease(dev, "Object %d cannot be inserted into leases (%d)\n",
 				      object_id, ret);
 			goto out_free_objects;
 		}
 		if (obj->type == DRM_MODE_OBJECT_CRTC && !universal_planes) {
 			struct drm_crtc *crtc = obj_to_crtc(obj);
 
 			ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1, GFP_KERNEL);
 			if (ret < 0) {
 				drm_dbg_lease(dev, "Object primary plane %d cannot be inserted into leases (%d)\n",
 					      object_id, ret);
 				goto out_free_objects;
 			}
 			if (crtc->cursor) {
 				ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, GFP_KERNEL);
 				if (ret < 0) {
 					drm_dbg_lease(dev, "Object cursor plane %d cannot be inserted into leases (%d)\n",
 						      object_id, ret);
 					goto out_free_objects;
 				}
 			}
 		}
 	}
 
 	ret = 0;
 out_free_objects:
 	for (o = 0; o < object_count; o++) {
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
 /*
  * The master associated with the specified file will have a lease
  * created containing the objects specified in the ioctl structure.
  * A file descriptor will be allocated for that and returned to the
  * application.
  */
 int drm_mode_create_lease_ioctl(struct drm_device *dev,
 				void *data, struct drm_file *lessor_priv)
 {
 	struct drm_mode_create_lease *cl = data;
 	size_t object_count;
 	int ret = 0;
 	struct idr leases;
 	struct drm_master *lessor;
 	struct drm_master *lessee = NULL;
 	struct file *lessee_file = NULL;
 	struct file *lessor_file = lessor_priv->filp;
 	struct drm_file *lessee_priv;
 	int fd = -1;
 	uint32_t *object_ids;
 
 	/* Can't lease without MODESET */
 	if (!drm_core_check_feature(dev, DRIVER_MODESET))
 		return -EOPNOTSUPP;
 
 	if (cl->flags && (cl->flags & ~(O_CLOEXEC | O_NONBLOCK))) {
 		drm_dbg_lease(dev, "invalid flags\n");
 		return -EINVAL;
 	}
 
 	lessor = drm_file_get_master(lessor_priv);
 	/* Do not allow sub-leases */
 	if (lessor->lessor) {
 		drm_dbg_lease(dev, "recursive leasing not allowed\n");
 		ret = -EINVAL;
 		goto out_lessor;
 	}
 
 	object_count = cl->object_count;
 
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
 					       object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
 			goto out_lessor;
 		}
 
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);
 			goto out_lessor;
 		}
 	}
 
 	/* Allocate a file descriptor for the lease */
 	fd = get_unused_fd_flags(cl->flags & (O_CLOEXEC | O_NONBLOCK));
 	if (fd < 0) {
 		idr_destroy(&leases);
 		ret = fd;
 		goto out_lessor;
 	}
 
 	drm_dbg_lease(dev, "Creating lease\n");
 	/* lessee will take the ownership of leases */
 	lessee = drm_lease_create(lessor, &leases);
 
 	if (IS_ERR(lessee)) {
 		ret = PTR_ERR(lessee);
 		idr_destroy(&leases);
 		goto out_leases;
 	}
 
 	/* Clone the lessor file to create a new file for us */
 	drm_dbg_lease(dev, "Allocating lease file\n");
 	lessee_file = file_clone_open(lessor_file);
 	if (IS_ERR(lessee_file)) {
 		ret = PTR_ERR(lessee_file);
 		goto out_lessee;
 	}
 
 	lessee_priv = lessee_file->private_data;
 	/* Change the file to a master one */
 	drm_master_put(&lessee_priv->master);
 	lessee_priv->master = lessee;
 	lessee_priv->is_master = 1;
 	lessee_priv->authenticated = 1;
 
 	/* Pass fd back to userspace */
 	drm_dbg_lease(dev, "Returning fd %d id %d\n", fd, lessee->lessee_id);
 	cl->fd = fd;
 	cl->lessee_id = lessee->lessee_id;
 
 	/* Hook up the fd */
 	fd_install(fd, lessee_file);
 
 	drm_master_put(&lessor);
 	drm_dbg_lease(dev, "drm_mode_create_lease_ioctl succeeded\n");
 	return 0;
 
 out_lessee:
 	drm_master_put(&lessee);
 
 out_leases:
 	put_unused_fd(fd);
 
 out_lessor:
 	drm_master_put(&lessor);
 	drm_dbg_lease(dev, "drm_mode_create_lease_ioctl failed: %d\n", ret);
 	return ret;
 }
]

69/4 2026/06/15 16:14 llm patch-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28265
							output: 520
							thoughts: 287
						

Thoughts:
**Analyzing the Memory Allocation in `drm_mode_create_lease_ioctl`**

Okay, the diff seems spot on, lining up perfectly with the fix they're proposing. The core issue is this `drm_mode_create_lease_ioctl` function. It's accepting this `object_count` value from userspace, and that value could be as high as a million. That's the problem.

My first thought is, this is where it gets tricky. That initial `memdup_array_user` call… it's allocating `object_count * sizeof(__u32)` bytes. That could be up to 4MB, which is substantial. And the thing is, internally it's using `memdup_user`, which in turn uses `kmalloc` with `__GFP_NOWARN`. So, it won’t throw up a warning if the memory allocation fails. That's not ideal. Using `vmemdup_array_user` makes much more sense. It can fall back to `vmalloc` if `kmalloc` can’t find a contiguous chunk. This circumvents potential fragmentation issues, making the allocation more resilient to failures when contiguous memory isn't available. Good thinking.

The next allocation, `kzalloc_objs`, that’s the real kicker. That’s allocating `object_count * sizeof(struct drm_mode_object *)` bytes, potentially up to 8MB. And it's using a plain `kzalloc`. No `__GFP_NOWARN` in sight. That means we're going to get a warning from the page allocator if the requested size exceeds `KMALLOC_MAX_SIZE`. The proposed solution, using `kvcalloc`, is elegant. That'll switch to `vmalloc` when dealing with big allocations, while also applying `__GFP_NOWARN` to the initial `kmalloc` attempt. It’s the right way to fix this, no doubt.

Alright, I'm ready to craft the final response. I'll summarize these changes concisely and explain why this is a good improvement.



70/3 2026/06/15 16:15 action test-patch
21m Results:
map[PatchDiff:diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..240e0ea6c 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
+			   GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
@@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
@@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
-					       object_count, sizeof(__u32));
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
+						object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
@@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);
 TestError:]

71/1 2026/06/15 16:36 agent fixes-finder
2m Model:
gemini-3.1-pro-preview

Results:
map[FixesHash:62884cd386b876638720ef88374b31a84ca7ee5f]

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

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

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

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

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


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

Prompt:
The crash is:

------------[ cut here ]------------
WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197, CPU#0: syz.0.17/6137
Modules linked in:
CPU: 0 UID: 0 PID: 6137 Comm: syz.0.17 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197
Code: 74 10 4c 89 e7 89 54 24 0c e8 6e a2 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 ab fe ff ff e9 ac fe ff ff c6 05 92 0e b2 0d 01 90 <0f> 0b 90 e9 17 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc90003aa7800 EFLAGS: 00010246
RAX: ffffc90003aa7800 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003aa7868
RBP: ffffc90003aa78e8 R08: ffffc90003aa7867 R09: 0000000000000000
R10: ffffc90003aa7840 R11: fffff52000754f0d R12: 0000000000000000
R13: 1ffff92000754f04 R14: 0000000000040dc0 R15: dffffc0000000000
FS:  00007fe037ac16c0(0000) GS:ffff8881a59ad000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003d0000 CR3: 0000000104ab0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
 drm_ioctl_kernel+0x2df/0x3b0 drivers/gpu/drm/drm_ioctl.c:805
 drm_ioctl+0x6fa/0xbc0 drivers/gpu/drm/drm_ioctl.c:902
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe036b9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe037ac1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe036e15fa0 RCX: 00007fe036b9ce59
RDX: 00002000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fe036c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe036e16038 R14: 00007fe036e15fa0 R15: 00007fffcab0e958
 </TASK>



The explanation of the root cause is:

The root cause of this kernel crash is an unbounded memory allocation based on a user-controlled value, which attempts to allocate a contiguous memory chunk larger than the maximum allowed by the slab allocator (`KMALLOC_MAX_SIZE`), triggering a warning in the page allocator.

### Detailed Root Cause Analysis

1. **User-controlled `object_count`**:
   In `drivers/gpu/drm/drm_lease.c`, the `drm_mode_create_lease_ioctl()` function retrieves `object_count` directly from the user-provided `struct drm_mode_create_lease` argument:
   ```c
   object_count = cl->object_count;
   ```
   The syzkaller reproducer sets this value to `0xf4240` (1,000,000).

2. **First Allocation (`memdup_array_user`)**:
   The ioctl first allocates an array to hold the object IDs:
   ```c
   object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
                                  object_count, sizeof(__u32));
   ```
   For `1,000,000` objects, this requires `4,000,000` bytes (~3.8 MB). This size is typically just under the `KMALLOC_MAX_SIZE` limit (usually 4 MB on many architectures). Furthermore, `memdup_array_user()` internally uses `memdup_user()`, which allocates memory with the `__GFP_NOWARN` flag. Thus, even if it were to fail, it would gracefully return `-ENOMEM` without triggering a kernel warning.

3. **Second Allocation (`kzalloc_objs`)**:
   After successfully allocating `object_ids`, the ioctl calls `fill_object_idr()`:
   ```c
   ret = fill_object_idr(dev, lessor_priv, &leases, object_count, object_ids);
   ```
   Inside `fill_object_idr()`, the kernel attempts to allocate an array of pointers for the objects:
   ```c
   objects = kzalloc_objs(struct drm_mode_object *, object_count);
   ```
   The size of `struct drm_mode_object *` is 8 bytes (on 64-bit systems). For `1,000,000` objects, this requires `8,000,000` bytes (~7.6 MB). This size strictly exceeds the `KMALLOC_MAX_SIZE` limit. 
   
   Unlike `memdup_user()`, the `kzalloc_objs()` macro expands to a standard `kzalloc()` call using `GFP_KERNEL | __GFP_ZERO` **without** the `__GFP_NOWARN` flag. 

4. **The Crash (Warning)**:
   Because the requested size is larger than `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request directly to the page allocator (`___kmalloc_large_node`). The page allocator calculates the required page order (order 11 for 8 MB). Since order 11 is strictly greater than `MAX_PAGE_ORDER` (typically 10), the page allocator hits the following safety check in `__alloc_frozen_pages_noprof()`:
   ```c
   if (WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp))
       return NULL;
   ```
   Because `__GFP_NOWARN` was not provided, this triggers the `WARN_ON_ONCE_GFP` warning, which syzkaller correctly identifies as a crash.

### Proposed Fix

To fix this issue, both allocations should be updated to use the `kvmalloc` family of functions. These functions automatically fall back to `vmalloc()` for large allocations (avoiding memory fragmentation issues) and internally apply `__GFP_NOWARN` when attempting the initial `kmalloc()`, preventing the page allocator warning.

1. In `drm_mode_create_lease_ioctl()`, replace `memdup_array_user()` with `vmemdup_array_user()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~512
   - object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   + object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   
   // drivers/gpu/drm/drm_lease.c : ~523
   - kfree(object_ids);
   + kvfree(object_ids);
   ```

2. In `fill_object_idr()`, replace `kzalloc_objs()` with `kvcalloc()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~389
   - objects = kzalloc_objs(struct drm_mode_object *, object_count);
   + objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
   
   // drivers/gpu/drm/drm_lease.c : ~465
   - kfree(objects);
   + kvfree(objects);
   ```

This ensures that userspace cannot trigger a kernel warning by passing an arbitrarily large `object_count`, and the kernel will gracefully return `-ENOMEM` if the system truly cannot satisfy the `vmalloc` request.


The patch that fixes the bug is:

diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..240e0ea6c 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
+			   GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
@@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
@@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
-					       object_count, sizeof(__u32));
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
+						object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
@@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);


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

72/2 2026/06/15 16:36 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 7608
							output: 54
							thoughts: 205
						

Thoughts:
**Analyzing a Potential Memory Allocation Bug in drm_lease.c**

Okay, so I'm looking at a potential unbounded memory allocation issue in the DRM subsystem, specifically in `drivers/gpu/drm/drm_lease.c`. The core problem seems to be linked to `fill_object_idr()` and `drm_mode_create_lease_ioctl()`.  The vulnerability stems from the use of `kzalloc_objs(struct drm_mode_object *, object_count)` and `memdup_array_user(..., object_count, ...)` which are clearly the culprits.

The proposed patch is smart; it's suggesting we replace `kzalloc_objs` with `kvcalloc` and `memdup_array_user` with `vmemdup_array_user`. That substitution looks like a solid approach to mitigate the risk. The replacement seems reasonable at face value, but I need to dive deeper.

To fully grasp the context and potential implications, I'm going to trace the history of these functions. I'll leverage `git log` to meticulously investigate when `fill_object_idr` and `drm_mode_create_lease_ioctl` were introduced into the code base, and more importantly, when the vulnerable allocation routines were implemented. Understanding the timeline and the commit messages will reveal the rationale behind their introduction and any potential oversight. I'll need to pay close attention to the parameter `object_count` to understand the origin of the potential unboundness. I'll also double-check the other function.



73/2 2026/06/15 16:36 tool git-log
0m Args:
map[CodeRegexp:kzalloc_objs.*object_count SourcePath:drivers/gpu/drm/drm_lease.c SymbolName:fill_object_idr]

Results:
map[Output:32a92f8c8932 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
7bd224b6625a drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
676f11b5a4a0 drm: clean up unused kerneldoc in drm_lease.c
948de84233d3 drm : Insert blank lines after declarations.
e40b76428842 drm/leases: Drop object_id validation for negative ids
b5f06893c499 drm: Rename crtc_idr as object_idr to KMS cleanups
968029057192 drm/lease: look at ->universal_planes only once
a0c1af46e9d7 drm/lease: debug output for lease creation
7591844c197c drm: Fix kerneldoc warnings for drm_lease
]

74/2 2026/06/15 16:37 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8462
							output: 44
							thoughts: 16
						

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

**Investigating the Implementation of `fill_object_idr`**

Alright, I need to understand this new `fill_object_idr` function. The first thing I'll do is trace back its introduction in the codebase. I need to pinpoint the commit that brought it in – that's often where the original motivation and initial design choices are documented. Knowing *why* it was added will give me a huge head start in understanding *how* it's intended to work and, potentially, where its limitations might lie. The commit message itself is key. I'm expecting to see a clear explanation of the problem this function solves or the optimization it provides, along with any relevant design considerations. I'm hoping I can easily see how it fits into the broader architecture. Let's start digging.



75/2 2026/06/15 16:37 tool git-log
0m Args:
map[Count:10 SourcePath:drivers/gpu/drm/drm_lease.c SymbolName:fill_object_idr]

Results:
map[Output:32a92f8c8932 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
7bd224b6625a drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
676f11b5a4a0 drm: clean up unused kerneldoc in drm_lease.c
948de84233d3 drm : Insert blank lines after declarations.
e40b76428842 drm/leases: Drop object_id validation for negative ids
b5f06893c499 drm: Rename crtc_idr as object_idr to KMS cleanups
968029057192 drm/lease: look at ->universal_planes only once
a0c1af46e9d7 drm/lease: debug output for lease creation
7591844c197c drm: Fix kerneldoc warnings for drm_lease
]

76/2 2026/06/15 16:37 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8971
							output: 33
							thoughts: 50
						

Thoughts:
Okay, let's see...

**Checking the Origins of `fill_object_idr`**

Hmm, I have a hunch that this `fill_object_idr` function might be a relatively recent addition. My gut says it showed up around the time we brought in the display lease core changes, specifically the commit with the ID `62884cd386b8` (drm: Add display lease core). Best practice is to verify my assumptions, so I'll go ahead and dig into the history of `drm_lease.c` to confirm or disprove my suspicion. A quick check of the commit history should give me the answer pretty quickly.



77/2 2026/06/15 16:37 tool git-log
0m Args:
map[Count:100 PathPrefix:drivers/gpu/drm/drm_lease.c]

Results:
map[Output:32a92f8c8932 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
69050f8d6d07 treewide: Replace kmalloc with kmalloc_obj for non-scalar types
f37d63e219c3 drm_lease.c: copy user-array safely
cde3d37b19df drm: Remove unnecessary include statements for drm_crtc_helper.h
7bd224b6625a drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
4bb2d367a5a2 drm/lease: allow empty leases
676f11b5a4a0 drm: clean up unused kerneldoc in drm_lease.c
d793b8f732d6 drm: clarify usage of drm leases
56f0729a510f drm: protect drm_master pointers in drm_lease.c
7988fdf5f0a3 drm: Don't include drm_legacy.h in drm_lease.c
948de84233d3 drm : Insert blank lines after declarations.
b216a8e7908c drm/lease: fix WARNING in idr_destroy
c942fddf8793 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
0500c04ea14a drm: drop use of drmP.h in drm/*
46b757780dfe drm/lease: Check for lessor outside of locks
ae9d6c076c0d drm/lease: Drop recursive leads checks
e40b76428842 drm/leases: Drop object_id validation for negative ids
69ef943dbc14 drm: Use array_size() when creating lease
b5f06893c499 drm: Rename crtc_idr as object_idr to KMS cleanups
ce85882860f0 drm/lease: Send a distinct uevent
968029057192 drm/lease: look at ->universal_planes only once
a0c1af46e9d7 drm/lease: debug output for lease creation
6caec6a04717 drm/lease: drop EXPORT_SYMBOL
918d89bb1a63 gpu: drm/lease: fix spelling mistake, EACCESS -> EACCES
12d43deb1ee6 drm: fix use-after-free read in drm_mode_create_lease_ioctl()
69fdf4206a8b drm: Differentiate the lack of an interface from invalid parameter
19f391eb05b8 turn filp_clone_open() into inline wrapper for dentry_open()
b4e7a7a88b5d drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()
aec06c7606be gpu: drm/lease:: Use list_{next/prev}_entry instead of list_entry
7591844c197c drm: Fix kerneldoc warnings for drm_lease
d2a48e52541c drm: move lease init after validation in drm_lease_create
bd36d3bab2e3 drm/drm_lease: Prevent deadlock in case drm_lease_create() fails
62884cd386b8 drm: Add four ioctls for managing drm mode object leases [v7]
2ed077e467ee drm: Add drm_object lease infrastructure [v5]
]

78/2 2026/06/15 16:37 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10069
							output: 26
							thoughts: 30
						

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

**Analyzing Potential Commit IDs**

Okay, time to get down to it. Let's start by digging into `62884cd386b8` and `2ed077e467ee`. Based on these commit IDs, I'm expecting this analysis to involve a specific code change investigation or log review; likely related to a recent bug report or integration issue. Knowing the context will heavily influence the direction of this analysis. I'll need to pull up the repo and examine the changesets these IDs represent. From there, I'll compare timestamps, delve into the file modifications, and begin debugging or evaluating from a code review perspective. My immediate objective is to ascertain the function, scope, and impact, and determine its potential effect on the system as a whole.



79/2 2026/06/15 16:37 tool git-show
0m Args:
map[Commit:62884cd386b8]

Results:
map[Output:commit 62884cd386b876638720ef88374b31a84ca7ee5f
Author: Keith Packard <keithp@keithp.com>
Date:   Thu Mar 16 17:56:28 2017 -0700

    drm: Add four ioctls for managing drm mode object leases [v7]
    
    drm_mode_create_lease
    
            Creates a lease for a list of drm mode objects, returning an
            fd for the new drm_master and a 64-bit identifier for the lessee
    
    drm_mode_list_lesees
    
            List the identifiers of the lessees for a master file
    
    drm_mode_get_lease
    
            List the leased objects for a master file
    
    drm_mode_revoke_lease
    
            Erase the set of objects managed by a lease.
    
    This should suffice to at least create and query leases.
    
    Changes for v2 as suggested by Daniel Vetter <daniel.vetter@ffwll.ch>:
    
     * query ioctls only query the master associated with
       the provided file.
    
     * 'mask_lease' value has been removed
    
     * change ioctl has been removed.
    
    Changes for v3 suggested in part by Dave Airlie <airlied@gmail.com>
    
     * Add revoke ioctl.
    
    Changes for v4 suggested by Dave Airlie <airlied@gmail.com>
    
     * Expand on the comment about the magic use of &drm_lease_idr_object
     * Pad lease ioctl structures to align on 64-bit boundaries
    
    Changes for v5 suggested by Dave Airlie <airlied@gmail.com>
    
     * Check for non-negative object_id in create_lease to avoid debug
       output from the kernel.
    
    Changes for v6 provided by Dave Airlie <airlied@gmail.com>
    
     * For non-universal planes add primary/cursor planes to lease
    
       If we aren't exposing universal planes to this userspace client,
       and it requests a lease on a crtc, we should implicitly export the
       primary and cursor planes for the crtc.
    
       If the lessee doesn't request universal planes, it will just see
       the crtc, but if it does request them it will then see the plane
       objects as well.
    
       This also moves the object look ups earlier as a side effect, so
       we'd exit the ioctl quicker for non-existant objects.
    
     * Restrict leases to crtc/connector/planes.
    
       This only allows leasing for objects we wish to allow.
    
    Changes for v7 provided by Dave Airlie <airlied@gmail.com>
    
     * Check pad args are 0
     * Check create flags and object count are valid.
     * Check return from fd allocation
     * Refactor lease idr setup and add some simple validation
     * Use idr_mutex uniformly (Keith)
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index 9c435a4c0c82..4aafe4802099 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -665,6 +665,10 @@ static const struct drm_ioctl_desc drm_ioctls[] = {
 		      DRM_UNLOCKED|DRM_RENDER_ALLOW),
 	DRM_IOCTL_DEF(DRM_IOCTL_CRTC_GET_SEQUENCE, drm_crtc_get_sequence_ioctl, DRM_UNLOCKED),
 	DRM_IOCTL_DEF(DRM_IOCTL_CRTC_QUEUE_SEQUENCE, drm_crtc_queue_sequence_ioctl, DRM_UNLOCKED),
+	DRM_IOCTL_DEF(DRM_IOCTL_MODE_CREATE_LEASE, drm_mode_create_lease_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),
+	DRM_IOCTL_DEF(DRM_IOCTL_MODE_LIST_LESSEES, drm_mode_list_lessees_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),
+	DRM_IOCTL_DEF(DRM_IOCTL_MODE_GET_LEASE, drm_mode_get_lease_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),
+	DRM_IOCTL_DEF(DRM_IOCTL_MODE_REVOKE_LEASE, drm_mode_revoke_lease_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),
 };
 
 #define DRM_CORE_IOCTL_COUNT	ARRAY_SIZE( drm_ioctls )
diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 030db1170570..d1eb56a1eff4 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -23,6 +23,8 @@
 #define drm_for_each_lessee(lessee, lessor) \
 	list_for_each_entry((lessee), &(lessor)->lessees, lessee_list)
 
+static uint64_t drm_lease_idr_object;
+
 /**
  * drm_lease_owner - return ancestor owner drm_master
  * @master: drm_master somewhere within tree of lessees and lessors
@@ -353,3 +355,413 @@ void drm_lease_revoke(struct drm_master *top)
 	_drm_lease_revoke(top);
 	mutex_unlock(&top->dev->mode_config.idr_mutex);
 }
+
+static int validate_lease(struct drm_device *dev,
+			  struct drm_file *lessor_priv,
+			  int object_count,
+			  struct drm_mode_object **objects)
+{
+	int o;
+	int has_crtc = -1;
+	int has_connector = -1;
+	int has_plane = -1;
+
+	/* we want to confirm that there is at least one crtc, plane
+	   connector object. */
+
+	for (o = 0; o < object_count; o++) {
+		if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) {
+			has_crtc = o;
+		}
+		if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1)
+			has_connector = o;
+
+		if (lessor_priv->universal_planes) {
+			if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1)
+				has_plane = o;
+		}
+	}
+	if (has_crtc == -1 || has_connector == -1)
+		return -EINVAL;
+	if (lessor_priv->universal_planes && has_plane == -1)
+		return -EINVAL;
+	return 0;
+}
+
+static int fill_object_idr(struct drm_device *dev,
+			   struct drm_file *lessor_priv,
+			   struct idr *leases,
+			   int object_count,
+			   u32 *object_ids)
+{
+	struct drm_mode_object **objects;
+	u32 o;
+	int ret;
+	objects = kcalloc(object_count, sizeof(struct drm_mode_object *),
+			  GFP_KERNEL);
+	if (!objects)
+		return -ENOMEM;
+
+	/* step one - get references to all the mode objects
+	   and check for validity. */
+	for (o = 0; o < object_count; o++) {
+		if ((int) object_ids[o] < 0) {
+			ret = -EINVAL;
+			goto out_free_objects;
+		}
+
+		objects[o] = drm_mode_object_find(dev, lessor_priv,
+						  object_ids[o],
+						  DRM_MODE_OBJECT_ANY);
+		if (!objects[o]) {
+			ret = -ENOENT;
+			goto out_free_objects;
+		}
+
+		if (!drm_mode_object_lease_required(objects[o]->type)) {
+			ret = -EINVAL;
+			goto out_free_objects;
+		}
+	}
+
+	ret = validate_lease(dev, lessor_priv, object_count, objects);
+	if (ret)
+		goto out_free_objects;
+
+	/* add their IDs to the lease request - taking into account
+	   universal planes */
+	for (o = 0; o < object_count; o++) {
+		struct drm_mode_object *obj = objects[o];
+		u32 object_id = objects[o]->id;
+		DRM_DEBUG_LEASE("Adding object %d to lease\n", object_id);
+
+		/*
+		 * We're using an IDR to hold the set of leased
+		 * objects, but we don't need to point at the object's
+		 * data structure from the lease as the main crtc_idr
+		 * will be used to actually find that. Instead, all we
+		 * really want is a 'leased/not-leased' result, for
+		 * which any non-NULL pointer will work fine.
+		 */
+		ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL);
+		if (ret < 0) {
+			DRM_DEBUG_LEASE("Object %d cannot be inserted into leases (%d)\n",
+					object_id, ret);
+			goto out_free_objects;
+		}
+		if (obj->type == DRM_MODE_OBJECT_CRTC && !lessor_priv->universal_planes) {
+			struct drm_crtc *crtc = obj_to_crtc(obj);
+			ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1, GFP_KERNEL);
+			if (ret < 0) {
+				DRM_DEBUG_LEASE("Object primary plane %d cannot be inserted into leases (%d)\n",
+						object_id, ret);
+				goto out_free_objects;
+			}
+			if (crtc->cursor) {
+				ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, GFP_KERNEL);
+				if (ret < 0) {
+					DRM_DEBUG_LEASE("Object cursor plane %d cannot be inserted into leases (%d)\n",
+							object_id, ret);
+					goto out_free_objects;
+				}
+			}
+		}
+	}
+
+	ret = 0;
+out_free_objects:
+	for (o = 0; o < object_count; o++) {
+		if (objects[o])
+			drm_mode_object_put(objects[o]);
+	}
+	kfree(objects);
+	return ret;
+}
+
+/**
+ * drm_mode_create_lease_ioctl - create a new lease
+ * @dev: the drm device
+ * @data: pointer to struct drm_mode_create_lease
+ * @file_priv: the file being manipulated
+ *
+ * The master associated with the specified file will have a lease
+ * created containing the objects specified in the ioctl structure.
+ * A file descriptor will be allocated for that and returned to the
+ * application.
+ */
+int drm_mode_create_lease_ioctl(struct drm_device *dev,
+				void *data, struct drm_file *lessor_priv)
+{
+	struct drm_mode_create_lease *cl = data;
+	size_t object_count;
+	int ret = 0;
+	struct idr leases;
+	struct drm_master *lessor = lessor_priv->master;
+	struct drm_master *lessee = NULL;
+	struct file *lessee_file = NULL;
+	struct file *lessor_file = lessor_priv->filp;
+	struct drm_file *lessee_priv;
+	int fd = -1;
+	uint32_t *object_ids;
+
+	/* Can't lease without MODESET */
+	if (!drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
+	/* Do not allow sub-leases */
+	if (lessor->lessor)
+		return -EINVAL;
+
+	/* need some objects */
+	if (cl->object_count == 0)
+		return -EINVAL;
+
+	if (cl->flags && (cl->flags & ~(O_CLOEXEC | O_NONBLOCK)))
+		return -EINVAL;
+
+	object_count = cl->object_count;
+
+	object_ids = memdup_user(u64_to_user_ptr(cl->object_ids), object_count * sizeof(__u32));
+	if (IS_ERR(object_ids))
+		return PTR_ERR(object_ids);
+
+	idr_init(&leases);
+
+	/* fill and validate the object idr */
+	ret = fill_object_idr(dev, lessor_priv, &leases,
+			      object_count, object_ids);
+	kfree(object_ids);
+	if (ret) {
+		idr_destroy(&leases);
+		return ret;
+	}
+
+	/* Allocate a file descriptor for the lease */
+	fd = get_unused_fd_flags(cl->flags & (O_CLOEXEC | O_NONBLOCK));
+	if (fd < 0) {
+		idr_destroy(&leases);
+		return fd;
+	}
+
+	DRM_DEBUG_LEASE("Creating lease\n");
+	lessee = drm_lease_create(lessor, &leases);
+
+	if (IS_ERR(lessee)) {
+		ret = PTR_ERR(lessee);
+		goto out_leases;
+	}
+
+	/* Clone the lessor file to create a new file for us */
+	DRM_DEBUG_LEASE("Allocating lease file\n");
+	path_get(&lessor_file->f_path);
+	lessee_file = alloc_file(&lessor_file->f_path,
+				 lessor_file->f_mode,
+				 fops_get(lessor_file->f_inode->i_fop));
+
+	if (IS_ERR(lessee_file)) {
+		ret = PTR_ERR(lessee_file);
+		goto out_lessee;
+	}
+
+	/* Initialize the new file for DRM */
+	DRM_DEBUG_LEASE("Initializing the file with %p\n", lessee_file->f_op->open);
+	ret = lessee_file->f_op->open(lessee_file->f_inode, lessee_file);
+	if (ret)
+		goto out_lessee_file;
+
+	lessee_priv = lessee_file->private_data;
+
+	/* Change the file to a master one */
+	drm_master_put(&lessee_priv->master);
+	lessee_priv->master = lessee;
+	lessee_priv->is_master = 1;
+	lessee_priv->authenticated = 1;
+
+	/* Hook up the fd */
+	fd_install(fd, lessee_file);
+
+	/* Pass fd back to userspace */
+	DRM_DEBUG_LEASE("Returning fd %d id %d\n", fd, lessee->lessee_id);
+	cl->fd = fd;
+	cl->lessee_id = lessee->lessee_id;
+
+	DRM_DEBUG_LEASE("drm_mode_create_lease_ioctl succeeded\n");
+	return 0;
+
+out_lessee_file:
+	fput(lessee_file);
+
+out_lessee:
+	drm_master_put(&lessee);
+
+out_leases:
+	put_unused_fd(fd);
+	idr_destroy(&leases);
+
+	DRM_DEBUG_LEASE("drm_mode_create_lease_ioctl failed: %d\n", ret);
+	return ret;
+}
+
+/**
+ * drm_mode_list_lessees_ioctl - list lessee ids
+ * @dev: the drm device
+ * @data: pointer to struct drm_mode_list_lessees
+ * @lessor_priv: the file being manipulated
+ *
+ * Starting from the master associated with the specified file,
+ * the master with the provided lessee_id is found, and then
+ * an array of lessee ids associated with leases from that master
+ * are returned.
+ */
+
+int drm_mode_list_lessees_ioctl(struct drm_device *dev,
+			       void *data, struct drm_file *lessor_priv)
+{
+	struct drm_mode_list_lessees *arg = data;
+	__u32 __user *lessee_ids = (__u32 __user *) (uintptr_t) (arg->lessees_ptr);
+	__u32 count_lessees = arg->count_lessees;
+	struct drm_master *lessor = lessor_priv->master, *lessee;
+	int count;
+	int ret = 0;
+
+	if (arg->pad)
+		return -EINVAL;
+
+	/* Can't lease without MODESET */
+	if (!drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
+	DRM_DEBUG_LEASE("List lessees for %d\n", lessor->lessee_id);
+
+	mutex_lock(&dev->mode_config.idr_mutex);
+
+	count = 0;
+	drm_for_each_lessee(lessee, lessor) {
+		/* Only list un-revoked leases */
+		if (!idr_is_empty(&lessee->leases)) {
+			if (count_lessees > count) {
+				DRM_DEBUG_LEASE("Add lessee %d\n", lessee->lessee_id);
+				ret = put_user(lessee->lessee_id, lessee_ids + count);
+				if (ret)
+					break;
+			}
+			count++;
+		}
+	}
+
+	DRM_DEBUG_LEASE("Lessor leases to %d\n", count);
+	if (ret == 0)
+		arg->count_lessees = count;
+
+	mutex_unlock(&dev->mode_config.idr_mutex);
+
+	return ret;
+}
+
+/**
+ * drm_mode_get_lease_ioctl - list leased objects
+ * @dev: the drm device
+ * @data: pointer to struct drm_mode_get_lease
+ * @file_priv: the file being manipulated
+ *
+ * Return the list of leased objects for the specified lessee
+ */
+
+int drm_mode_get_lease_ioctl(struct drm_device *dev,
+			     void *data, struct drm_file *lessee_priv)
+{
+	struct drm_mode_get_lease *arg = data;
+	__u32 __user *object_ids = (__u32 __user *) (uintptr_t) (arg->objects_ptr);
+	__u32 count_objects = arg->count_objects;
+	struct drm_master *lessee = lessee_priv->master;
+	struct idr *object_idr;
+	int count;
+	void *entry;
+	int object;
+	int ret = 0;
+
+	if (arg->pad)
+		return -EINVAL;
+
+	/* Can't lease without MODESET */
+	if (!drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
+	DRM_DEBUG_LEASE("get lease for %d\n", lessee->lessee_id);
+
+	mutex_lock(&dev->mode_config.idr_mutex);
+
+	if (lessee->lessor == NULL)
+		/* owner can use all objects */
+		object_idr = &lessee->dev->mode_config.crtc_idr;
+	else
+		/* lessee can only use allowed object */
+		object_idr = &lessee->leases;
+
+	count = 0;
+	idr_for_each_entry(object_idr, entry, object) {
+		if (count_objects > count) {
+			DRM_DEBUG_LEASE("adding object %d\n", object);
+			ret = put_user(object, object_ids + count);
+			if (ret)
+				break;
+		}
+		count++;
+	}
+
+	DRM_DEBUG("lease holds %d objects\n", count);
+	if (ret == 0)
+		arg->count_objects = count;
+
+	mutex_unlock(&dev->mode_config.idr_mutex);
+
+	return ret;
+}
+
+/**
+ * drm_mode_revoke_lease_ioctl - revoke lease
+ * @dev: the drm device
+ * @data: pointer to struct drm_mode_revoke_lease
+ * @file_priv: the file being manipulated
+ *
+ * This removes all of the objects from the lease without
+ * actually getting rid of the lease itself; that way all
+ * references to it still work correctly
+ */
+int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
+				void *data, struct drm_file *lessor_priv)
+{
+	struct drm_mode_revoke_lease *arg = data;
+	struct drm_master *lessor = lessor_priv->master;
+	struct drm_master *lessee;
+	int ret = 0;
+
+	DRM_DEBUG_LEASE("revoke lease for %d\n", arg->lessee_id);
+
+	/* Can't lease without MODESET */
+	if (!drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
+	mutex_lock(&dev->mode_config.idr_mutex);
+
+	lessee = _drm_find_lessee(lessor, arg->lessee_id);
+
+	/* No such lessee */
+	if (!lessee) {
+		ret = -ENOENT;
+		goto fail;
+	}
+
+	/* Lease is not held by lessor */
+	if (lessee->lessor != lessor) {
+		ret = -EACCES;
+		goto fail;
+	}
+
+	_drm_lease_revoke(lessee);
+
+fail:
+	mutex_unlock(&dev->mode_config.idr_mutex);
+
+	return ret;
+}
diff --git a/drivers/gpu/drm/drm_mode_object.c b/drivers/gpu/drm/drm_mode_object.c
index d1599f36b605..7c8b2698c6a7 100644
--- a/drivers/gpu/drm/drm_mode_object.c
+++ b/drivers/gpu/drm/drm_mode_object.c
@@ -111,7 +111,7 @@ void drm_mode_object_unregister(struct drm_device *dev,
  * Returns whether the provided type of drm_mode_object must
  * be owned or leased to be used by a process.
  */
-static bool drm_lease_required(uint32_t type)
+bool drm_mode_object_lease_required(uint32_t type)
 {
 	switch(type) {
 	case DRM_MODE_OBJECT_CRTC:
@@ -136,7 +136,8 @@ struct drm_mode_object *__drm_mode_object_find(struct drm_device *dev,
 	if (obj && obj->id != id)
 		obj = NULL;
 
-	if (obj && drm_lease_required(obj->type) && !_drm_lease_held(file_priv, obj->id))
+	if (obj && drm_mode_object_lease_required(obj->type) &&
+	    !_drm_lease_held(file_priv, obj->id))
 		obj = NULL;
 
 	if (obj && obj->free_cb) {
diff --git a/include/drm/drm_lease.h b/include/drm/drm_lease.h
index 6149e56ddbf3..fbc0ab54855b 100644
--- a/include/drm/drm_lease.h
+++ b/include/drm/drm_lease.h
@@ -31,4 +31,16 @@ void drm_lease_revoke(struct drm_master *master);
 
 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
 
+int drm_mode_create_lease_ioctl(struct drm_device *dev,
+				void *data, struct drm_file *file_priv);
+
+int drm_mode_list_lessees_ioctl(struct drm_device *dev,
+				void *data, struct drm_file *file_priv);
+
+int drm_mode_get_lease_ioctl(struct drm_device *dev,
+			     void *data, struct drm_file *file_priv);
+
+int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
+				void *data, struct drm_file *file_priv);
+
 #endif /* _DRM_LEASE_H_ */
diff --git a/include/drm/drm_mode_object.h b/include/drm/drm_mode_object.h
index c8155cb5a932..7ba3913f30b5 100644
--- a/include/drm/drm_mode_object.h
+++ b/include/drm/drm_mode_object.h
@@ -154,4 +154,6 @@ int drm_object_property_get_value(struct drm_mode_object *obj,
 void drm_object_attach_property(struct drm_mode_object *obj,
 				struct drm_property *property,
 				uint64_t init_val);
+
+bool drm_mode_object_lease_required(uint32_t type);
 #endif
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 91d83c1747c0..6fdff5945c8a 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -888,6 +888,11 @@ extern "C" {
 #define DRM_IOCTL_SYNCOBJ_RESET		DRM_IOWR(0xC4, struct drm_syncobj_array)
 #define DRM_IOCTL_SYNCOBJ_SIGNAL	DRM_IOWR(0xC5, struct drm_syncobj_array)
 
+#define DRM_IOCTL_MODE_CREATE_LEASE	DRM_IOWR(0xC6, struct drm_mode_create_lease)
+#define DRM_IOCTL_MODE_LIST_LESSEES	DRM_IOWR(0xC7, struct drm_mode_list_lessees)
+#define DRM_IOCTL_MODE_GET_LEASE	DRM_IOWR(0xC8, struct drm_mode_get_lease)
+#define DRM_IOCTL_MODE_REVOKE_LEASE	DRM_IOWR(0xC9, struct drm_mode_revoke_lease)
+
 /**
  * Device specific ioctls should only be in their respective headers
  * The device specific ioctl range is from 0x40 to 0x9f.
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index 34b6bb34b002..5597a87154e5 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -782,6 +782,72 @@ struct drm_mode_destroy_blob {
 	__u32 blob_id;
 };
 
+/**
+ * Lease mode resources, creating another drm_master.
+ */
+struct drm_mode_create_lease {
+	/** Pointer to array of object ids (__u32) */
+	__u64 object_ids;
+	/** Number of object ids */
+	__u32 object_count;
+	/** flags for new FD (O_CLOEXEC, etc) */
+	__u32 flags;
+
+	/** Return: unique identifier for lessee. */
+	__u32 lessee_id;
+	/** Return: file descriptor to new drm_master file */
+	__u32 fd;
+};
+
+/**
+ * List lesses from a drm_master
+ */
+struct drm_mode_list_lessees {
+	/** Number of lessees.
+	 * On input, provides length of the array.
+	 * On output, provides total number. No
+	 * more than the input number will be written
+	 * back, so two calls can be used to get
+	 * the size and then the data.
+	 */
+	__u32 count_lessees;
+	__u32 pad;
+
+	/** Pointer to lessees.
+	 * pointer to __u64 array of lessee ids
+	 */
+	__u64 lessees_ptr;
+};
+
+/**
+ * Get leased objects
+ */
+struct drm_mode_get_lease {
+	/** Number of leased objects.
+	 * On input, provides length of the array.
+	 * On output, provides total number. No
+	 * more than the input number will be written
+	 * back, so two calls can be used to get
+	 * the size and then the data.
+	 */
+	__u32 count_objects;
+	__u32 pad;
+
+	/** Pointer to objects.
+	 * pointer to __u32 array of object ids
+	 */
+	__u64 objects_ptr;
+};
+
+/**
+ * Revoke lease
+ */
+struct drm_mode_revoke_lease {
+	/** Unique ID of lessee
+	 */
+	__u32 lessee_id;
+};
+
 #if defined(__cplusplus)
 }
 #endif
]

80/2 2026/06/15 16:37 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18149
							output: 55
							thoughts: 349
						

Thoughts:
**Analyzing a Potential Kernel Crash**

Okay, so this commit, `62884cd386b8`, added `drm_mode_create_lease_ioctl` and `fill_object_idr`. I see that `fill_object_idr` uses `kcalloc` to allocate memory for `objects`, which seems straightforward enough. But then in `drm_mode_create_lease_ioctl`, there's a `memdup_user` call to allocate `object_ids`. Hmm, the bug report says this is related to an unbounded memory allocation based on a user-controlled value causing a crash, and that sounds like a potential issue here.

Let me think… `memdup_user` is the culprit. And the report says it’s trying to allocate a chunk larger than `KMALLOC_MAX_SIZE`, which triggers a warning from the page allocator, leading to the crash. I know `memdup_user` uses `kmalloc_track_caller`, which by default, doesn't use `__GFP_NOWARN`. So, a failure would be reported. But if it does exceed `KMALLOC_MAX_SIZE`, a warning would be generated, which is exactly what the report says is happening.

The code seems to indicate that the `object_count` comes from user-supplied data, which makes it vulnerable. The use of `memdup_user` with a user-controlled `object_count`... yeah, that's a classic vulnerability pattern. The use of `memdup_array_user` may have been introduced to address this, so I need to check when it was introduced to the `drm_lease.c` file.



81/2 2026/06/15 16:37 tool git-log
0m Args:
map[CodeRegexp:memdup_array_user SourcePath:drivers/gpu/drm/drm_lease.c SymbolName:drm_mode_create_lease_ioctl]

Results:
map[Output:f37d63e219c3 drm_lease.c: copy user-array safely
7bd224b6625a drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
4bb2d367a5a2 drm/lease: allow empty leases
56f0729a510f drm: protect drm_master pointers in drm_lease.c
b216a8e7908c drm/lease: fix WARNING in idr_destroy
69ef943dbc14 drm: Use array_size() when creating lease
d7563c55ef9f Merge tag 'drm-misc-next-2018-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
a0c1af46e9d7 drm/lease: debug output for lease creation
53b3b6bbfde6 Merge tag 'drm-next-2018-10-24' of git://anongit.freedesktop.org/drm/drm
69fdf4206a8b drm: Differentiate the lack of an interface from invalid parameter
]

82/2 2026/06/15 16:38 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19208
							output: 27
							thoughts: 30
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person:

**Quick Check: Hash Identifiers**

Right, let's take a quick look at `f37d63e219c3` and `69ef943dbc14`. Given the typical workflow, my immediate assumption is that these are either commit hashes, file hashes (potentially checksums), or identifiers from a system I'm familiar with. I need more context to be certain, but the structure suggests they're likely related to version control or data integrity. My first instinct is to run a quick `git log -p` or a `find /path/to/files -print0 | xargs -0 shasum -a 256` to check the context of each, depending on the environment. I'll need to confirm what the underlying system is to decide the best path to investigate, likely checking the logs to understand what these identifiers relate to. My gut tells me these identifiers are key to understanding the next step. Let's see what they reveal.



83/2 2026/06/15 16:38 tool git-show
0m Args:
map[Commit:f37d63e219c3]

Results:
map[Output:commit f37d63e219c39199a59b8b8a211412ff27192830
Author: Philipp Stanner <pstanner@redhat.com>
Date:   Wed Sep 20 14:36:12 2023 +0200

    drm_lease.c: copy user-array safely
    
    Currently, there is no overflow-check with memdup_user().
    
    Use the new function memdup_array_user() instead of memdup_user() for
    duplicating the user-space array safely.
    
    Suggested-by: David Airlie <airlied@redhat.com>
    Signed-off-by: Philipp Stanner <pstanner@redhat.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Reviewed-by: Zack Rusin <zackr@vmware.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230920123612.16914-6-pstanner@redhat.com

diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 150fe1555068..94375c6a5425 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -510,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_user(u64_to_user_ptr(cl->object_ids),
-					 array_size(object_count, sizeof(__u32)));
+		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
+					       object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
]

84/2 2026/06/15 16:38 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20096
							output: 27
							thoughts: 214
						

Thoughts:
**Unraveling a Kernel Crash: An Expert's Perspective**

Okay, so I'm looking at this kernel crash report and the first thing that jumps out is that it's due to an unbounded memory allocation. It looks like the code in question is trying to allocate a contiguous chunk of memory that's exceeding the maximum size the slab allocator (`KMALLOC_MAX_SIZE`) can handle, which is, of course, a big no-no. We're getting a warning from the page allocator which is triggering the crash.

The report specifically points the finger at the commit `62884cd386b8`. Ah yes, the one that introduces those new ioctls for managing DRM mode object leases. Let's dig in a bit further to see exactly *where* it's happening. The report mentions `memdup_user` and `kcalloc` which I'll bet are the culprits. That `object_ids = memdup_user` line looks particularly dicey. Taking user input to determine the amount of allocation with no bounds.

I need to confirm that `kzalloc_objs` wasn't added *after* that commit. Gotta make sure we're getting the root cause right and not just a symptom of a later change.



85/2 2026/06/15 16:38 tool git-show
0m Args:
map[Commit:69050f8d6d07]

Results:
map[Output:
Full output is too long, showing 1000 out of 192786 lines.

[commit 69050f8d6d075dc01af7a5f2f550a8067510366f
 Author: Kees Cook <kees@kernel.org>
 Date:   Fri Feb 20 23:49:23 2026 -0800
 
     treewide: Replace kmalloc with kmalloc_obj for non-scalar types
     
     This is the result of running the Coccinelle script from
     scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
     avoid scalar types (which need careful case-by-case checking), and
     instead replace kmalloc-family calls that allocate struct or union
     object instances:
     
     Single allocations:     kmalloc(sizeof(TYPE), ...)
     are replaced with:      kmalloc_obj(TYPE, ...)
     
     Array allocations:      kmalloc_array(COUNT, sizeof(TYPE), ...)
     are replaced with:      kmalloc_objs(TYPE, COUNT, ...)
     
     Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
     are replaced with:      kmalloc_flex(*PTR, FAM, COUNT, ...)
     
     (where TYPE may also be *VAR)
     
     The resulting allocations no longer return "void *", instead returning
     "TYPE *".
     
     Signed-off-by: Kees Cook <kees@kernel.org>
 
 diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c
 index d38f4d6759e4..b5b547732398 100644
 --- a/arch/alpha/kernel/core_marvel.c
 +++ b/arch/alpha/kernel/core_marvel.c
 @@ -861,7 +861,7 @@ marvel_agp_setup(alpha_agp_info *agp)
  	if (!alpha_agpgart_size)
  		return -ENOMEM;
  
 -	aper = kmalloc(sizeof(*aper), GFP_KERNEL);
 +	aper = kmalloc_obj(*aper, GFP_KERNEL);
  	if (aper == NULL) return -ENOMEM;
  
  	aper->arena = agp->hose->sg_pci;
 @@ -1059,7 +1059,7 @@ marvel_agp_info(void)
  	/*
  	 * Allocate the info structure.
  	 */
 -	agp = kmalloc(sizeof(*agp), GFP_KERNEL);
 +	agp = kmalloc_obj(*agp, GFP_KERNEL);
  	if (!agp)
  		return NULL;
  
 diff --git a/arch/alpha/kernel/core_titan.c b/arch/alpha/kernel/core_titan.c
 index 77f5d68ed04b..ddaef7b75ba7 100644
 --- a/arch/alpha/kernel/core_titan.c
 +++ b/arch/alpha/kernel/core_titan.c
 @@ -594,7 +594,7 @@ titan_agp_setup(alpha_agp_info *agp)
  	if (!alpha_agpgart_size)
  		return -ENOMEM;
  
 -	aper = kmalloc(sizeof(struct titan_agp_aperture), GFP_KERNEL);
 +	aper = kmalloc_obj(struct titan_agp_aperture, GFP_KERNEL);
  	if (aper == NULL)
  		return -ENOMEM;
  
 @@ -760,7 +760,7 @@ titan_agp_info(void)
  	/*
  	 * Allocate the info structure.
  	 */
 -	agp = kmalloc(sizeof(*agp), GFP_KERNEL);
 +	agp = kmalloc_obj(*agp, GFP_KERNEL);
  	if (!agp)
  		return NULL;
  
 diff --git a/arch/alpha/kernel/module.c b/arch/alpha/kernel/module.c
 index cbefa5a77384..6fbc2d179e93 100644
 --- a/arch/alpha/kernel/module.c
 +++ b/arch/alpha/kernel/module.c
 @@ -46,7 +46,7 @@ process_reloc_for_got(Elf64_Rela *rela,
  			goto found_entry;
  		}
  
 -	g = kmalloc (sizeof (*g), GFP_KERNEL);
 +	g = kmalloc_obj(*g, GFP_KERNEL);
  	g->next = chains[r_sym].next;
  	g->r_addend = r_addend;
  	g->got_offset = *poffset;
 @@ -93,7 +93,7 @@ module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
  	}
  
  	nsyms = symtab->sh_size / sizeof(Elf64_Sym);
 -	chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL);
 +	chains = kzalloc_objs(struct got_entry, nsyms, GFP_KERNEL);
  	if (!chains) {
  		printk(KERN_ERR
  		       "module %s: no memory for symbol chain buffer\n",
 diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c
 index 8e9b4ac86b7e..93eb07018e6b 100644
 --- a/arch/alpha/kernel/pci.c
 +++ b/arch/alpha/kernel/pci.c
 @@ -220,7 +220,7 @@ static void pdev_save_srm_config(struct pci_dev *dev)
  		printed = 1;
  	}
  
 -	tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
 +	tmp = kmalloc_obj(*tmp, GFP_KERNEL);
  	if (!tmp) {
  		printk(KERN_ERR "%s: kmalloc() failed!\n", __func__);
  		return;
 diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
 index f0af444a69a4..ea4e7243c0e9 100644
 --- a/arch/alpha/kernel/setup.c
 +++ b/arch/alpha/kernel/setup.c
 @@ -392,7 +392,7 @@ register_cpus(void)
  	int i;
  
  	for_each_possible_cpu(i) {
 -		struct cpu *p = kzalloc(sizeof(*p), GFP_KERNEL);
 +		struct cpu *p = kzalloc_obj(*p, GFP_KERNEL);
  		if (!p)
  			return -ENOMEM;
  		register_cpu(p, i);
 diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
 index 789cfb9ea14e..dcdc8bd916db 100644
 --- a/arch/arc/kernel/unwind.c
 +++ b/arch/arc/kernel/unwind.c
 @@ -366,7 +366,7 @@ void *unwind_add_table(struct module *module, const void *table_start,
  	if (table_size <= 0)
  		return NULL;
  
 -	table = kmalloc(sizeof(*table), GFP_KERNEL);
 +	table = kmalloc_obj(*table, GFP_KERNEL);
  	if (!table)
  		return NULL;
  
 diff --git a/arch/arc/net/bpf_jit_core.c b/arch/arc/net/bpf_jit_core.c
 index e3628922c24a..5695da795536 100644
 --- a/arch/arc/net/bpf_jit_core.c
 +++ b/arch/arc/net/bpf_jit_core.c
 @@ -1140,7 +1140,7 @@ static int jit_prepare_final_mem_alloc(struct jit_context *ctx)
  	}
  
  	if (ctx->need_extra_pass) {
 -		ctx->jit_data = kzalloc(sizeof(*ctx->jit_data), GFP_KERNEL);
 +		ctx->jit_data = kzalloc_obj(*ctx->jit_data, GFP_KERNEL);
  		if (!ctx->jit_data)
  			return -ENOMEM;
  	}
 diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c
 index cb6ef449b987..4820b1094dfa 100644
 --- a/arch/arm/common/locomo.c
 +++ b/arch/arm/common/locomo.c
 @@ -222,7 +222,7 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info)
  	struct locomo_dev *dev;
  	int ret;
  
 -	dev = kzalloc(sizeof(struct locomo_dev), GFP_KERNEL);
 +	dev = kzalloc_obj(struct locomo_dev, GFP_KERNEL);
  	if (!dev) {
  		ret = -ENOMEM;
  		goto out;
 @@ -277,7 +277,7 @@ static int locomo_suspend(struct platform_device *dev, pm_message_t state)
  	struct locomo_save_data *save;
  	unsigned long flags;
  
 -	save = kmalloc(sizeof(struct locomo_save_data), GFP_KERNEL);
 +	save = kmalloc_obj(struct locomo_save_data, GFP_KERNEL);
  	if (!save)
  		return -ENOMEM;
  
 @@ -360,7 +360,7 @@ __locomo_probe(struct device *me, struct resource *mem, int irq)
  	unsigned long r;
  	int i, ret = -ENODEV;
  
 -	lchip = kzalloc(sizeof(struct locomo), GFP_KERNEL);
 +	lchip = kzalloc_obj(struct locomo, GFP_KERNEL);
  	if (!lchip)
  		return -ENOMEM;
  
 diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
 index 04ff75dcc20e..8bd217789439 100644
 --- a/arch/arm/common/sa1111.c
 +++ b/arch/arm/common/sa1111.c
 @@ -737,7 +737,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
  	unsigned i;
  	int ret;
  
 -	dev = kzalloc(sizeof(struct sa1111_dev), GFP_KERNEL);
 +	dev = kzalloc_obj(struct sa1111_dev, GFP_KERNEL);
  	if (!dev) {
  		ret = -ENOMEM;
  		goto err_alloc;
 @@ -969,7 +969,7 @@ static int sa1111_suspend_noirq(struct device *dev)
  	unsigned int val;
  	void __iomem *base;
  
 -	save = kmalloc(sizeof(struct sa1111_save_data), GFP_KERNEL);
 +	save = kmalloc_obj(struct sa1111_save_data, GFP_KERNEL);
  	if (!save)
  		return -ENOMEM;
  	sachip->saved_state = save;
 diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
 index dddb73c96826..10e8e9716bd3 100644
 --- a/arch/arm/common/scoop.c
 +++ b/arch/arm/common/scoop.c
 @@ -185,7 +185,7 @@ static int scoop_probe(struct platform_device *pdev)
  	if (!mem)
  		return -EINVAL;
  
 -	devptr = kzalloc(sizeof(struct scoop_dev), GFP_KERNEL);
 +	devptr = kzalloc_obj(struct scoop_dev, GFP_KERNEL);
  	if (!devptr)
  		return -ENOMEM;
  
 diff --git a/arch/arm/kernel/atags_proc.c b/arch/arm/kernel/atags_proc.c
 index cd09f8ab93e3..6106385d25a0 100644
 --- a/arch/arm/kernel/atags_proc.c
 +++ b/arch/arm/kernel/atags_proc.c
 @@ -54,7 +54,7 @@ static int __init init_atags_procfs(void)
  
  	WARN_ON(tag->hdr.tag != ATAG_NONE);
  
 -	b = kmalloc(struct_size(b, data, size), GFP_KERNEL);
 +	b = kmalloc_flex(*b, data, size, GFP_KERNEL);
  	if (!b)
  		goto nomem;
  
 diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
 index 50999886a8b5..504f22b420a8 100644
 --- a/arch/arm/kernel/smp.c
 +++ b/arch/arm/kernel/smp.c
 @@ -108,7 +108,7 @@ static unsigned long get_arch_pgd(pgd_t *pgd)
  static int secondary_biglittle_prepare(unsigned int cpu)
  {
  	if (!cpu_vtable[cpu])
 -		cpu_vtable[cpu] = kzalloc(sizeof(*cpu_vtable[cpu]), GFP_KERNEL);
 +		cpu_vtable[cpu] = kzalloc_obj(*cpu_vtable[cpu], GFP_KERNEL);
  
  	return cpu_vtable[cpu] ? 0 : -ENOMEM;
  }
 diff --git a/arch/arm/kernel/sys_oabi-compat.c b/arch/arm/kernel/sys_oabi-compat.c
 index 2944721e82a2..fe73d759d078 100644
 --- a/arch/arm/kernel/sys_oabi-compat.c
 +++ b/arch/arm/kernel/sys_oabi-compat.c
 @@ -349,7 +349,7 @@ asmlinkage long sys_oabi_semtimedop(int semid,
  		return -E2BIG;
  	if (nsops < 1 || nsops > SEMOPM)
  		return -EINVAL;
 -	sops = kvmalloc_array(nsops, sizeof(*sops), GFP_KERNEL);
 +	sops = kvmalloc_objs(*sops, nsops, GFP_KERNEL);
  	if (!sops)
  		return -ENOMEM;
  	err = 0;
 diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c
 index f60547dadc93..2b40c22234a9 100644
 --- a/arch/arm/kernel/unwind.c
 +++ b/arch/arm/kernel/unwind.c
 @@ -574,7 +574,7 @@ struct unwind_table *unwind_table_add(unsigned long start, unsigned long size,
  				      unsigned long text_size)
  {
  	unsigned long flags;
 -	struct unwind_table *tab = kmalloc(sizeof(*tab), GFP_KERNEL);
 +	struct unwind_table *tab = kmalloc_obj(*tab, GFP_KERNEL);
  
  	pr_debug("%s(%08lx, %08lx, %08lx, %08lx)\n", __func__, start, size,
  		 text_addr, text_size);
 diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c
 index 0108f33d6bed..884f1899dfba 100644
 --- a/arch/arm/kernel/vdso.c
 +++ b/arch/arm/kernel/vdso.c
 @@ -179,8 +179,7 @@ static int __init vdso_init(void)
  	text_pages = (vdso_end - vdso_start) >> PAGE_SHIFT;
  
  	/* Allocate the VDSO text pagelist */
 -	vdso_text_pagelist = kcalloc(text_pages, sizeof(struct page *),
 -				     GFP_KERNEL);
 +	vdso_text_pagelist = kzalloc_objs(struct page *, text_pages, GFP_KERNEL);
  	if (vdso_text_pagelist == NULL)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c
 index 6521ab3d24fa..765a97a30b8a 100644
 --- a/arch/arm/mach-footbridge/dc21285.c
 +++ b/arch/arm/mach-footbridge/dc21285.c
 @@ -262,7 +262,7 @@ int __init dc21285_setup(int nr, struct pci_sys_data *sys)
  {
  	struct resource *res;
  
 -	res = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
 +	res = kzalloc_objs(struct resource, 2, GFP_KERNEL);
  	if (!res) {
  		printk("out of memory for root bus resources");
  		return 0;
 diff --git a/arch/arm/mach-footbridge/ebsa285.c b/arch/arm/mach-footbridge/ebsa285.c
 index 21cf9a358b90..d75fc4b541f1 100644
 --- a/arch/arm/mach-footbridge/ebsa285.c
 +++ b/arch/arm/mach-footbridge/ebsa285.c
 @@ -84,7 +84,7 @@ static int __init ebsa285_leds_init(void)
  	for (i = 0; i < ARRAY_SIZE(ebsa285_leds); i++) {
  		struct ebsa285_led *led;
  
 -		led = kzalloc(sizeof(*led), GFP_KERNEL);
 +		led = kzalloc_obj(*led, GFP_KERNEL);
  		if (!led)
  			break;
  
 diff --git a/arch/arm/mach-footbridge/netwinder-hw.c b/arch/arm/mach-footbridge/netwinder-hw.c
 index 5f7265b1b34c..ae5cf7f1f74a 100644
 --- a/arch/arm/mach-footbridge/netwinder-hw.c
 +++ b/arch/arm/mach-footbridge/netwinder-hw.c
 @@ -727,7 +727,7 @@ static int __init netwinder_leds_init(void)
  	for (i = 0; i < ARRAY_SIZE(netwinder_leds); i++) {
  		struct netwinder_led *led;
  
 -		led = kzalloc(sizeof(*led), GFP_KERNEL);
 +		led = kzalloc_obj(*led, GFP_KERNEL);
  		if (!led)
  			break;
  
 diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c
 index 94e4f4a2f73f..d1d1ef3aa927 100644
 --- a/arch/arm/mach-imx/mmdc.c
 +++ b/arch/arm/mach-imx/mmdc.c
 @@ -477,7 +477,7 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b
  	char *name;
  	int ret;
  
 -	pmu_mmdc = kzalloc(sizeof(*pmu_mmdc), GFP_KERNEL);
 +	pmu_mmdc = kzalloc_obj(*pmu_mmdc, GFP_KERNEL);
  	if (!pmu_mmdc) {
  		pr_err("failed to allocate PMU device!\n");
  		return -ENOMEM;
 diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c
 index 04ad651d13a0..f7f142d6e49e 100644
 --- a/arch/arm/mach-mvebu/board-v7.c
 +++ b/arch/arm/mach-mvebu/board-v7.c
 @@ -127,7 +127,7 @@ static void __init i2c_quirk(void)
  	for_each_compatible_node(np, NULL, "marvell,mv78230-i2c") {
  		struct property *new_compat;
  
 -		new_compat = kzalloc(sizeof(*new_compat), GFP_KERNEL);
 +		new_compat = kzalloc_obj(*new_compat, GFP_KERNEL);
  
  		new_compat->name = kstrdup("compatible", GFP_KERNEL);
  		new_compat->length = sizeof("marvell,mv78230-a0-i2c");
 diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c
 index a6b621ff0b87..4af0df12f654 100644
 --- a/arch/arm/mach-mvebu/coherency.c
 +++ b/arch/arm/mach-mvebu/coherency.c
 @@ -190,7 +190,7 @@ static void __init armada_375_380_coherency_init(struct device_node *np)
  	for_each_compatible_node(cache_dn, NULL, "arm,pl310-cache") {
  		struct property *p;
  
 -		p = kzalloc(sizeof(*p), GFP_KERNEL);
 +		p = kzalloc_obj(*p, GFP_KERNEL);
  		p->name = kstrdup("arm,io-coherent", GFP_KERNEL);
  		of_add_property(cache_dn, p);
  	}
 diff --git a/arch/arm/mach-mvebu/mvebu-soc-id.c b/arch/arm/mach-mvebu/mvebu-soc-id.c
 index f436c7b8c7ae..ea4159a5b567 100644
 --- a/arch/arm/mach-mvebu/mvebu-soc-id.c
 +++ b/arch/arm/mach-mvebu/mvebu-soc-id.c
 @@ -154,7 +154,7 @@ static int __init mvebu_soc_device(void)
  	if (!is_id_valid)
  		return 0;
  
 -	soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
 +	soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL);
  	if (!soc_dev_attr)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c
 index 6e017fa306c8..24dd8a0c6567 100644
 --- a/arch/arm/mach-mxs/mach-mxs.c
 +++ b/arch/arm/mach-mxs/mach-mxs.c
 @@ -387,7 +387,7 @@ static void __init mxs_machine_init(void)
  	const u32 *ocotp = mxs_get_ocotp();
  	int ret;
  
 -	soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
 +	soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL);
  	if (!soc_dev_attr)
  		return;
  
 diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c
 index 756966cb715f..491254010c0c 100644
 --- a/arch/arm/mach-omap1/dma.c
 +++ b/arch/arm/mach-omap1/dma.c
 @@ -319,7 +319,7 @@ static int __init omap1_system_dma_init(void)
  		goto exit_iounmap;
  	}
  
 -	d = kzalloc(sizeof(*d), GFP_KERNEL);
 +	d = kzalloc_obj(*d, GFP_KERNEL);
  	if (!d) {
  		ret = -ENOMEM;
  		goto exit_iounmap;
 diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c
 index 37863bdce9ea..a4dae1baae99 100644
 --- a/arch/arm/mach-omap1/mcbsp.c
 +++ b/arch/arm/mach-omap1/mcbsp.c
 @@ -294,8 +294,8 @@ static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count,
  {
  	int i;
  
 -	omap_mcbsp_devices = kcalloc(size, sizeof(struct platform_device *),
 -				     GFP_KERNEL);
 +	omap_mcbsp_devices = kzalloc_objs(struct platform_device *, size,
 +					  GFP_KERNEL);
  	if (!omap_mcbsp_devices) {
  		printk(KERN_ERR "Could not register McBSP devices\n");
  		return;
 diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c
 index 81a912c1145a..09dab51d5728 100644
 --- a/arch/arm/mach-omap1/timer.c
 +++ b/arch/arm/mach-omap1/timer.c
 @@ -125,7 +125,7 @@ static int __init omap1_dm_timer_init(void)
  			goto err_free_pdev;
  		}
  
 -		pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
 +		pdata = kzalloc_obj(*pdata, GFP_KERNEL);
  		if (!pdata) {
  			ret = -ENOMEM;
  			goto err_free_pdata;
 diff --git a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c b/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
 index 96c5cdc718c8..0b9d4c7b6711 100644
 --- a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
 +++ b/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
 @@ -237,7 +237,7 @@ void omap2xxx_clkt_vps_init(void)
  	omap2xxx_clkt_vps_late_init();
  	omap2xxx_clkt_vps_check_bootloader_rates();
  
 -	hw = kzalloc(sizeof(*hw), GFP_KERNEL);
 +	hw = kzalloc_obj(*hw, GFP_KERNEL);
  	if (!hw)
  		return;
  	init.name = "virt_prcm_set";
 diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
 index 7f387706368a..fd9e4146db35 100644
 --- a/arch/arm/mach-omap2/id.c
 +++ b/arch/arm/mach-omap2/id.c
 @@ -787,7 +787,7 @@ void __init omap_soc_device_init(void)
  	struct soc_device *soc_dev;
  	struct soc_device_attribute *soc_dev_attr;
  
 -	soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
 +	soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL);
  	if (!soc_dev_attr)
  		return;
  
 diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c
 index 9c8a85198e16..debc3f0d0184 100644
 --- a/arch/arm/mach-omap2/omap-iommu.c
 +++ b/arch/arm/mach-omap2/omap-iommu.c
 @@ -99,7 +99,7 @@ static struct powerdomain *_get_pwrdm(struct device *dev)
  		return NULL;
  	}
  
 -	entry = kmalloc(sizeof(*entry), GFP_KERNEL);
 +	entry = kmalloc_obj(*entry, GFP_KERNEL);
  	if (entry) {
  		entry->dev = dev;
  		entry->pwrdm = pwrdm;
 diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c
 index 800980057373..ab8adccbd7dd 100644
 --- a/arch/arm/mach-omap2/omap_device.c
 +++ b/arch/arm/mach-omap2/omap_device.c
 @@ -156,7 +156,7 @@ static int omap_device_build_from_dt(struct platform_device *pdev)
  	    !omap_hwmod_parse_module_range(NULL, node, &res))
  		return -ENODEV;
  
 -	hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL);
 +	hwmods = kzalloc_objs(struct omap_hwmod *, oh_cnt, GFP_KERNEL);
  	if (!hwmods) {
  		ret = -ENOMEM;
  		goto odbfd_exit;
 @@ -309,7 +309,7 @@ static struct omap_device *omap_device_alloc(struct platform_device *pdev,
  	int i;
  	struct omap_hwmod **hwmods;
  
 -	od = kzalloc(sizeof(struct omap_device), GFP_KERNEL);
 +	od = kzalloc_obj(struct omap_device, GFP_KERNEL);
  	if (!od)
  		goto oda_exit1;
  
 diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
 index 111677878d9c..3591ca1f59c6 100644
 --- a/arch/arm/mach-omap2/omap_hwmod.c
 +++ b/arch/arm/mach-omap2/omap_hwmod.c
 @@ -3392,7 +3392,7 @@ static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh,
  	void __iomem *regs = NULL;
  	unsigned long flags;
  
 -	sysc = kzalloc(sizeof(*sysc), GFP_KERNEL);
 +	sysc = kzalloc_obj(*sysc, GFP_KERNEL);
  	if (!sysc)
  		return -ENOMEM;
  
 @@ -3422,7 +3422,7 @@ static int omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh,
  	}
  
  	if (list_empty(&oh->slave_ports)) {
 -		oi = kzalloc(sizeof(*oi), GFP_KERNEL);
 +		oi = kzalloc_obj(*oi, GFP_KERNEL);
  		if (!oi)
  			goto out_free_class;
  
 @@ -3525,7 +3525,7 @@ int omap_hwmod_init_module(struct device *dev,
  
  	oh = _lookup(data->name);
  	if (!oh) {
 -		oh = kzalloc(sizeof(*oh), GFP_KERNEL);
 +		oh = kzalloc_obj(*oh, GFP_KERNEL);
  		if (!oh)
  			return -ENOMEM;
  
 @@ -3536,7 +3536,7 @@ int omap_hwmod_init_module(struct device *dev,
  		/* Unused, can be handled by PRM driver handling resets */
  		oh->prcm.omap4.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT;
  
 -		oh->class = kzalloc(sizeof(*oh->class), GFP_KERNEL);
 +		oh->class = kzalloc_obj(*oh->class, GFP_KERNEL);
  		if (!oh->class) {
  			kfree(oh);
  			return -ENOMEM;
 diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
 index 4abb86dc98fd..e3f47fb2d4ef 100644
 --- a/arch/arm/mach-omap2/pm33xx-core.c
 +++ b/arch/arm/mach-omap2/pm33xx-core.c
 @@ -410,7 +410,7 @@ static int __init amx3_idle_init(struct device_node *cpu_node, int cpu)
  		state_count++;
  	}
  
 -	idle_states = kcalloc(state_count, sizeof(*idle_states), GFP_KERNEL);
 +	idle_states = kzalloc_objs(*idle_states, state_count, GFP_KERNEL);
  	if (!idle_states)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
 index 68975771e633..9992549c7336 100644
 --- a/arch/arm/mach-omap2/pm34xx.c
 +++ b/arch/arm/mach-omap2/pm34xx.c
 @@ -410,7 +410,7 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
  	if (!pwrdm->pwrsts)
  		return 0;
  
 -	pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC);
 +	pwrst = kmalloc_obj(struct power_state, GFP_ATOMIC);
  	if (!pwrst)
  		return -ENOMEM;
  	pwrst->pwrdm = pwrdm;
 diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c
 index 37b168119fe4..554352e9e1c6 100644
 --- a/arch/arm/mach-omap2/pm44xx.c
 +++ b/arch/arm/mach-omap2/pm44xx.c
 @@ -132,7 +132,7 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
  	    !strncmp(pwrdm->name, "l4per", 5))
  		pwrdm_set_logic_retst(pwrdm, PWRDM_POWER_OFF);
  
 -	pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC);
 +	pwrst = kmalloc_obj(struct power_state, GFP_ATOMIC);
  	if (!pwrst)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c
 index d2133423b0c9..9d1a14771590 100644
 --- a/arch/arm/mach-omap2/sr_device.c
 +++ b/arch/arm/mach-omap2/sr_device.c
 @@ -39,7 +39,7 @@ static void __init sr_set_nvalues(struct omap_volt_data *volt_data,
  	while (volt_data[count].volt_nominal)
  		count++;
  
 -	nvalue_table = kcalloc(count, sizeof(*nvalue_table), GFP_KERNEL);
 +	nvalue_table = kzalloc_objs(*nvalue_table, count, GFP_KERNEL);
  	if (!nvalue_table)
  		return;
  
 diff --git a/arch/arm/mach-orion5x/pci.c b/arch/arm/mach-orion5x/pci.c
 index 3313bc5a63ea..2ee1ff7335db 100644
 --- a/arch/arm/mach-orion5x/pci.c
 +++ b/arch/arm/mach-orion5x/pci.c
 @@ -169,7 +169,7 @@ static int __init pcie_setup(struct pci_sys_data *sys)
  	/*
  	 * Request resources.
  	 */
 -	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
 +	res = kzalloc_obj(struct resource, GFP_KERNEL);
  	if (!res)
  		panic("pcie_setup unable to alloc resources");
  
 @@ -490,7 +490,7 @@ static int __init pci_setup(struct pci_sys_data *sys)
  	/*
  	 * Request resources
  	 */
 -	res = kzalloc(sizeof(struct resource), GFP_KERNEL);
 +	res = kzalloc_obj(struct resource, GFP_KERNEL);
  	if (!res)
  		panic("pci_setup unable to alloc resources");
  
 diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c
 index 2cde4c83b7f9..9f0edac1697c 100644
 --- a/arch/arm/mach-rpc/ecard.c
 +++ b/arch/arm/mach-rpc/ecard.c
 @@ -692,7 +692,7 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot)
  	unsigned long base;
  	int i;
  
 -	ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
 +	ec = kzalloc_obj(ecard_t, GFP_KERNEL);
  	if (!ec) {
  		ec = ERR_PTR(-ENOMEM);
  		goto nomem;
 diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c
 index e8691921c69a..e4c7a0b78783 100644
 --- a/arch/arm/mach-sa1100/clock.c
 +++ b/arch/arm/mach-sa1100/clock.c
 @@ -107,7 +107,7 @@ int __init sa11xx_clk_init(void)
  
  	clk_hw_register_clkdev(hw, "OSTIMER0", NULL);
  
 -	hw = kzalloc(sizeof(*hw), GFP_KERNEL);
 +	hw = kzalloc_obj(*hw, GFP_KERNEL);
  	if (!hw)
  		return -ENOMEM;
  	hw->init = &clk_mpll_init_data;
 @@ -129,7 +129,7 @@ int __init sa11xx_clk_init(void)
  				 FAlnMsk(TUCR_TSEL), 0, &tucr_lock);
  	clk_set_rate(hw->clk, 3686400);
  
 -	hw = kzalloc(sizeof(*hw), GFP_KERNEL);
 +	hw = kzalloc_obj(*hw, GFP_KERNEL);
  	if (!hw)
  		return -ENOMEM;
  	hw->init = &clk_gpio27_init_data;
 diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c
 index 5383a26f5116..078667b52b8a 100644
 --- a/arch/arm/mach-sa1100/generic.c
 +++ b/arch/arm/mach-sa1100/generic.c
 @@ -321,7 +321,7 @@ int __init sa11x0_register_fixed_regulator(int n,
  {
  	struct regulator_init_data *id;
  
 -	cfg->init_data = id = kzalloc(sizeof(*cfg->init_data), GFP_KERNEL);
 +	cfg->init_data = id = kzalloc_obj(*cfg->init_data, GFP_KERNEL);
  	if (!cfg->init_data)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c
 index 88fe79f0a4ed..f8960373fa06 100644
 --- a/arch/arm/mach-sa1100/neponset.c
 +++ b/arch/arm/mach-sa1100/neponset.c
 @@ -276,7 +276,7 @@ static int neponset_probe(struct platform_device *dev)
  		goto err_alloc;
  	}
  
 -	d = kzalloc(sizeof(*d), GFP_KERNEL);
 +	d = kzalloc_obj(*d, GFP_KERNEL);
  	if (!d) {
  		ret = -ENOMEM;
  		goto err_alloc;
 diff --git a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c
 index 117e7b07995b..c6659131f21b 100644
 --- a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c
 +++ b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c
 @@ -164,7 +164,7 @@ static int __init rcar_gen2_regulator_quirk(void)
  		if (ret)	/* Skip invalid entry and continue */
  			continue;
  
 -		quirk = kzalloc(sizeof(*quirk), GFP_KERNEL);
 +		quirk = kzalloc_obj(*quirk, GFP_KERNEL);
  		if (!quirk) {
  			ret = -ENOMEM;
  			of_node_put(np);
 diff --git a/arch/arm/mach-versatile/spc.c b/arch/arm/mach-versatile/spc.c
 index 2d27777a00d3..d77ed8ce5f32 100644
 --- a/arch/arm/mach-versatile/spc.c
 +++ b/arch/arm/mach-versatile/spc.c
 @@ -395,7 +395,7 @@ static int ve_spc_populate_opps(uint32_t cluster)
  	uint32_t data = 0, off, ret, idx;
  	struct ve_spc_opp *opps;
  
 -	opps = kcalloc(MAX_OPPS, sizeof(*opps), GFP_KERNEL);
 +	opps = kzalloc_objs(*opps, MAX_OPPS, GFP_KERNEL);
  	if (!opps)
  		return -ENOMEM;
  
 @@ -442,7 +442,7 @@ static int ve_init_opp_table(struct device *cpu_dev)
  int __init ve_spc_init(void __iomem *baseaddr, u32 a15_clusid, int irq)
  {
  	int ret;
 -	info = kzalloc(sizeof(*info), GFP_KERNEL);
 +	info = kzalloc_obj(*info, GFP_KERNEL);
  	if (!info)
  		return -ENOMEM;
  
 @@ -525,7 +525,7 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev)
  	struct clk_init_data init;
  	struct clk_spc *spc;
  
 -	spc = kzalloc(sizeof(*spc), GFP_KERNEL);
 +	spc = kzalloc_obj(*spc, GFP_KERNEL);
  	if (!spc)
  		return ERR_PTR(-ENOMEM);
  
 diff --git a/arch/arm/mach-versatile/versatile.c b/arch/arm/mach-versatile/versatile.c
 index f0c80d4663ca..53d02ce2ad43 100644
 --- a/arch/arm/mach-versatile/versatile.c
 +++ b/arch/arm/mach-versatile/versatile.c
 @@ -142,7 +142,7 @@ static void __init versatile_dt_pci_init(void)
  		goto out_put_node;
  	}
  
 -	newprop = kzalloc(sizeof(*newprop), GFP_KERNEL);
 +	newprop = kzalloc_obj(*newprop, GFP_KERNEL);
  	if (!newprop)
  		goto out_put_node;
  
 diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c
 index 15e8a321a713..ddb06d5ca55d 100644
 --- a/arch/arm/mach-zynq/common.c
 +++ b/arch/arm/mach-zynq/common.c
 @@ -108,7 +108,7 @@ static void __init zynq_init_machine(void)
  	struct soc_device *soc_dev;
  	struct device *parent = NULL;
  
 -	soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
 +	soc_dev_attr = kzalloc_obj(*soc_dev_attr, GFP_KERNEL);
  	if (!soc_dev_attr)
  		goto out;
  
 diff --git a/arch/arm/mm/cache-l2x0-pmu.c b/arch/arm/mm/cache-l2x0-pmu.c
 index 93ef0502b7ff..3d62bd48086b 100644
 --- a/arch/arm/mm/cache-l2x0-pmu.c
 +++ b/arch/arm/mm/cache-l2x0-pmu.c
 @@ -507,7 +507,7 @@ static __init int l2x0_pmu_init(void)
  	if (!l2x0_base)
  		return 0;
  
 -	l2x0_pmu = kzalloc(sizeof(*l2x0_pmu), GFP_KERNEL);
 +	l2x0_pmu = kzalloc_obj(*l2x0_pmu, GFP_KERNEL);
  	if (!l2x0_pmu) {
  		pr_warn("Unable to allocate L2x0 PMU\n");
  		return -ENOMEM;
 diff --git a/arch/arm/mm/cache-uniphier.c b/arch/arm/mm/cache-uniphier.c
 index 84a2f17ff32d..c601532f7a77 100644
 --- a/arch/arm/mm/cache-uniphier.c
 +++ b/arch/arm/mm/cache-uniphier.c
 @@ -342,7 +342,7 @@ static int __init __uniphier_cache_init(struct device_node *np,
  		return -EINVAL;
  	}
  
 -	data = kzalloc(sizeof(*data), GFP_KERNEL);
 +	data = kzalloc_obj(*data, GFP_KERNEL);
  	if (!data)
  		return -ENOMEM;
  
 diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
 index a4c765d24692..7aca3e747ad5 100644
 --- a/arch/arm/mm/dma-mapping.c
 +++ b/arch/arm/mm/dma-mapping.c
 @@ -558,8 +558,8 @@ static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
  	}
  #endif
  
 -	buf = kzalloc(sizeof(*buf),
 -		      gfp & ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM));
 +	buf = kzalloc_obj(*buf,
 +			  gfp & ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM));
  	if (!buf)
  		return NULL;
  
 @@ -1504,7 +1504,7 @@ arm_iommu_create_mapping(struct device *dev, dma_addr_t base, u64 size)
  		bitmap_size = PAGE_SIZE;
  	}
  
 -	mapping = kzalloc(sizeof(struct dma_iommu_mapping), GFP_KERNEL);
 +	mapping = kzalloc_obj(struct dma_iommu_mapping, GFP_KERNEL);
  	if (!mapping)
  		goto err;
  
 diff --git a/arch/arm/mm/pgd.c b/arch/arm/mm/pgd.c
 index 4eb81b7ed03a..447945836c3f 100644
 --- a/arch/arm/mm/pgd.c
 +++ b/arch/arm/mm/pgd.c
 @@ -17,7 +17,7 @@
  #include "mm.h"
  
  #ifdef CONFIG_ARM_LPAE
 -#define _pgd_alloc(mm)		kmalloc_array(PTRS_PER_PGD, sizeof(pgd_t), GFP_KERNEL | __GFP_ZERO)
 +#define _pgd_alloc(mm)		kmalloc_objs(pgd_t, PTRS_PER_PGD, GFP_KERNEL | __GFP_ZERO)
  #define _pgd_free(mm, pgd)	kfree(pgd)
  #else
  #define _pgd_alloc(mm)		__pgd_alloc(mm, 2)
 diff --git a/arch/arm/probes/kprobes/test-core.c b/arch/arm/probes/kprobes/test-core.c
 index 171c7076b89f..ef93f2f1db62 100644
 --- a/arch/arm/probes/kprobes/test-core.c
 +++ b/arch/arm/probes/kprobes/test-core.c
 @@ -763,9 +763,8 @@ static int coverage_start_fn(const struct decode_header *h, void *args)
  
  static int coverage_start(const union decode_item *table)
  {
 -	coverage.base = kmalloc_array(MAX_COVERAGE_ENTRIES,
 -				      sizeof(struct coverage_entry),
 -				      GFP_KERNEL);
 +	coverage.base = kmalloc_objs(struct coverage_entry,
 +				     MAX_COVERAGE_ENTRIES, GFP_KERNEL);
  	coverage.num_entries = 0;
  	coverage.nesting = 0;
  	return table_iter(table, coverage_start_fn, &coverage);
 diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
 index 8655bc3d3634..9c3e6145b810 100644
 --- a/arch/arm/xen/enlighten.c
 +++ b/arch/arm/xen/enlighten.c
 @@ -339,7 +339,7 @@ int __init arch_xen_unpopulated_init(struct resource **res)
  		return -EINVAL;
  	}
  
 -	regs = kcalloc(nr_reg, sizeof(*regs), GFP_KERNEL);
 +	regs = kzalloc_objs(*regs, nr_reg, GFP_KERNEL);
  	if (!regs) {
  		of_node_put(np);
  		return -ENOMEM;
 @@ -383,7 +383,7 @@ int __init arch_xen_unpopulated_init(struct resource **res)
  		start = regs[i - 1].end + 1;
  		end = regs[i].start - 1;
  
 -		tmp_res = kzalloc(sizeof(*tmp_res), GFP_KERNEL);
 +		tmp_res = kzalloc_obj(*tmp_res, GFP_KERNEL);
  		if (!tmp_res) {
  			rc = -ENOMEM;
  			goto err;
 diff --git a/arch/arm/xen/p2m.c b/arch/arm/xen/p2m.c
 index 9da57a5b81c7..d911d91d5832 100644
 --- a/arch/arm/xen/p2m.c
 +++ b/arch/arm/xen/p2m.c
 @@ -176,7 +176,7 @@ bool __set_phys_to_machine_multi(unsigned long pfn,
  		return true;
  	}
  
 -	p2m_entry = kzalloc(sizeof(*p2m_entry), GFP_NOWAIT);
 +	p2m_entry = kzalloc_obj(*p2m_entry, GFP_NOWAIT);
  	if (!p2m_entry)
  		return false;
  
 diff --git a/arch/arm64/kernel/machine_kexec_file.c b/arch/arm64/kernel/machine_kexec_file.c
 index 410060ebd86d..9038d46dacf5 100644
 --- a/arch/arm64/kernel/machine_kexec_file.c
 +++ b/arch/arm64/kernel/machine_kexec_file.c
 @@ -52,7 +52,7 @@ static int prepare_elf_headers(void **addr, unsigned long *sz)
  	for_each_mem_range(i, &start, &end)
  		nr_ranges++;
  
 -	cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL);
 +	cmem = kmalloc_flex(*cmem, ranges, nr_ranges, GFP_KERNEL);
  	if (!cmem)
  		return -ENOMEM;
  
 diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
 index 78ddf6bdecad..34d761ef08b0 100644
 --- a/arch/arm64/kernel/vdso.c
 +++ b/arch/arm64/kernel/vdso.c
 @@ -81,9 +81,8 @@ static int __init __vdso_init(enum vdso_abi abi)
  			vdso_info[abi].vdso_code_start) >>
  			PAGE_SHIFT;
  
 -	vdso_pagelist = kcalloc(vdso_info[abi].vdso_pages,
 -				sizeof(struct page *),
 -				GFP_KERNEL);
 +	vdso_pagelist = kzalloc_objs(struct page *, vdso_info[abi].vdso_pages,
 +				     GFP_KERNEL);
  	if (vdso_pagelist == NULL)
  		return -ENOMEM;
  
 diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
 index 94d5b0b99fd1..29f0326f7e00 100644
 --- a/arch/arm64/kvm/arm.c
 +++ b/arch/arm64/kvm/arm.c
 @@ -854,8 +854,8 @@ static void kvm_init_mpidr_data(struct kvm *kvm)
  	 * iterative method. Single vcpu VMs do not need this either.
  	 */
  	if (struct_size(data, cmpidr_to_idx, nr_entries) <= PAGE_SIZE)
 -		data = kzalloc(struct_size(data, cmpidr_to_idx, nr_entries),
 -			       GFP_KERNEL_ACCOUNT);
 +		data = kzalloc_flex(*data, cmpidr_to_idx, nr_entries,
 +				    GFP_KERNEL_ACCOUNT);
  
  	if (!data)
  		goto out;
 diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c
 index 8c5d259810b2..f6d8b294525d 100644
 --- a/arch/arm64/kvm/mmu.c
 +++ b/arch/arm64/kvm/mmu.c
 @@ -487,7 +487,7 @@ static int share_pfn_hyp(u64 pfn)
  		goto unlock;
  	}
  
 -	this = kzalloc(sizeof(*this), GFP_KERNEL);
 +	this = kzalloc_obj(*this, GFP_KERNEL);
  	if (!this) {
  		ret = -ENOMEM;
  		goto unlock;
 @@ -978,7 +978,7 @@ int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long t
  	if (err)
  		return err;
  
 -	pgt = kzalloc(sizeof(*pgt), GFP_KERNEL_ACCOUNT);
 +	pgt = kzalloc_obj(*pgt, GFP_KERNEL_ACCOUNT);
  	if (!pgt)
  		return -ENOMEM;
  
 @@ -1155,7 +1155,8 @@ int topup_hyp_memcache(struct kvm_hyp_memcache *mc, unsigned long min_pages)
  		return 0;
  
  	if (!mc->mapping) {
 -		mc->mapping = kzalloc(sizeof(struct pkvm_mapping), GFP_KERNEL_ACCOUNT);
 +		mc->mapping = kzalloc_obj(struct pkvm_mapping,
 +					  GFP_KERNEL_ACCOUNT);
  		if (!mc->mapping)
  			return -ENOMEM;
  	}
 @@ -2328,7 +2329,7 @@ int __init kvm_mmu_init(u32 hyp_va_bits)
  		goto out;
  	}
  
 -	hyp_pgtable = kzalloc(sizeof(*hyp_pgtable), GFP_KERNEL);
 +	hyp_pgtable = kzalloc_obj(*hyp_pgtable, GFP_KERNEL);
  	if (!hyp_pgtable) {
  		kvm_err("Hyp mode page-table not allocated\n");
  		err = -ENOMEM;
 diff --git a/arch/arm64/kvm/nested.c b/arch/arm64/kvm/nested.c
 index eeea5e692370..620126d1f0dc 100644
 --- a/arch/arm64/kvm/nested.c
 +++ b/arch/arm64/kvm/nested.c
 @@ -1215,8 +1215,8 @@ int kvm_vcpu_allocate_vncr_tlb(struct kvm_vcpu *vcpu)
  	if (!kvm_has_feat(vcpu->kvm, ID_AA64MMFR4_EL1, NV_frac, NV2_ONLY))
  		return 0;
  
 -	vcpu->arch.vncr_tlb = kzalloc(sizeof(*vcpu->arch.vncr_tlb),
 -				      GFP_KERNEL_ACCOUNT);
 +	vcpu->arch.vncr_tlb = kzalloc_obj(*vcpu->arch.vncr_tlb,
 +					  GFP_KERNEL_ACCOUNT);
  	if (!vcpu->arch.vncr_tlb)
  		return -ENOMEM;
  
 @@ -1704,8 +1704,8 @@ int kvm_init_nv_sysregs(struct kvm_vcpu *vcpu)
  	if (kvm->arch.sysreg_masks)
  		goto out;
  
 -	kvm->arch.sysreg_masks = kzalloc(sizeof(*(kvm->arch.sysreg_masks)),
 -					 GFP_KERNEL_ACCOUNT);
 +	kvm->arch.sysreg_masks = kzalloc_obj(*(kvm->arch.sysreg_masks),
 +					     GFP_KERNEL_ACCOUNT);
  	if (!kvm->arch.sysreg_masks)
  		return -ENOMEM;
  
 diff --git a/arch/arm64/kvm/pmu-emul.c b/arch/arm64/kvm/pmu-emul.c
 index b03dbda7f1ab..3a7b6e78a949 100644
 --- a/arch/arm64/kvm/pmu-emul.c
 +++ b/arch/arm64/kvm/pmu-emul.c
 @@ -797,7 +797,7 @@ void kvm_host_pmu_init(struct arm_pmu *pmu)
  
  	guard(mutex)(&arm_pmus_lock);
  
 -	entry = kmalloc(sizeof(*entry), GFP_KERNEL);
 +	entry = kmalloc_obj(*entry, GFP_KERNEL);
  	if (!entry)
  		return;
  
 diff --git a/arch/arm64/kvm/ptdump.c b/arch/arm64/kvm/ptdump.c
 index 6cbe018fd6fd..6a8836207a79 100644
 --- a/arch/arm64/kvm/ptdump.c
 +++ b/arch/arm64/kvm/ptdump.c
 @@ -119,7 +119,7 @@ static struct kvm_ptdump_guest_state *kvm_ptdump_parser_create(struct kvm *kvm)
  	struct kvm_pgtable *pgtable = mmu->pgt;
  	int ret;
  
 -	st = kzalloc(sizeof(struct kvm_ptdump_guest_state), GFP_KERNEL_ACCOUNT);
 +	st = kzalloc_obj(struct kvm_ptdump_guest_state, GFP_KERNEL_ACCOUNT);
  	if (!st)
  		return ERR_PTR(-ENOMEM);
  
 diff --git a/arch/arm64/kvm/vgic/vgic-debug.c b/arch/arm64/kvm/vgic/vgic-debug.c
 index 2c6776a1779b..fa1de8784617 100644
 --- a/arch/arm64/kvm/vgic/vgic-debug.c
 +++ b/arch/arm64/kvm/vgic/vgic-debug.c
 @@ -104,7 +104,7 @@ static void *vgic_debug_start(struct seq_file *s, loff_t *pos)
  	struct kvm *kvm = s->private;
  	struct vgic_state_iter *iter;
  
 -	iter = kmalloc(sizeof(*iter), GFP_KERNEL);
 +	iter = kmalloc_obj(*iter, GFP_KERNEL);
  	if (!iter)
  		return ERR_PTR(-ENOMEM);
  
 @@ -375,7 +375,7 @@ static void *vgic_its_debug_start(struct seq_file *s, loff_t *pos)
  	if (!dev)
  		return NULL;
  
 -	iter = kmalloc(sizeof(*iter), GFP_KERNEL);
 +	iter = kmalloc_obj(*iter, GFP_KERNEL);
  	if (!iter)
]
]

86/2 2026/06/15 16:38 llm fixes-finder
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37361
							output: 53
							thoughts: 2145
						

Thoughts:
**Analysis of the Kernel Memory Allocation Bug**

Okay, let's break this down. My initial thought was that the change from `kcalloc` to `kzalloc_objs` in commit `69050f8d6d07` was the source of the problem. However, the use of `kcalloc` itself in the `fill_object_idr` function, introduced in commit `62884cd386b8`, immediately flags this as the likely culprit. The unbounded nature of `kcalloc`, coupled with a user-controlled value for the object count, is a classic recipe for trouble.

The description of the crash pinpoints the unbounded allocation. We're looking at a scenario where a large contiguous memory chunk is requested, exceeding `KMALLOC_MAX_SIZE`. The switch to `kzalloc_objs` doesn't inherently worsen the situation; the core issue is the allocation itself. The key is that `kzalloc_objs` expands to `kzalloc` with `GFP_KERNEL` without the safety net of `__GFP_NOWARN`. This is what triggers the warning.

I had to backtrack to the introduction of `fill_object_idr` and its associated `drm_mode_create_lease_ioctl`, which is where the user-supplied `object_count` comes into play. Upon verifying commit `62884cd386b8` I confirmed this introduced both, and included the problematic `kcalloc` call. This is where the vulnerability was introduced.

The integer overflow fix, implemented in `f37d63e219c3`, changed `memdup_user` to `memdup_array_user` but did not address the fundamental issue of the unbounded memory allocation, it only helped a little by dealing with integer overflow. The root cause of the warning, the large allocation, remained unaddressed.

I confirmed that `62884cd386b876638720ef88374b31a84ca7ee5f` is the correct hash for that commit.

Therefore, the original commit `62884cd386b8` which introduced both `fill_object_idr` and `drm_mode_create_lease_ioctl` and subsequently the `kcalloc`, is the commit that introduced the bug. The introduction of this ioctl allowed an unbounded `object_count` to be passed into both the `kcalloc` and `memdup_user` calls. The fix, which replaced both `kzalloc_objs` with `kvcalloc` and `memdup_array_user` to `vmemdup_array_user` finally addressed the problem, ensuring that the allocation size is bounded, and that the buffer copy is safer and will properly catch overflows.



87/2 2026/06/15 16:38 tool set-results
0m Args:
map[FixesHash:62884cd386b876638720ef88374b31a84ca7ee5f]

Results:
map[FixesHash:62884cd386b876638720ef88374b31a84ca7ee5f]

88/1 2026/06/15 16:38 action format-fixes
0m Results:
map[Fixes:map[Hash:62884cd386b876638720ef88374b31a84ca7ee5f Title:drm: Add four ioctls for managing drm mode object leases [v7]]]

89/1 2026/06/15 16:38 action get-maintainers
0m Results:
map[Recipients:[map[Email:airlied@gmail.com Name:David Airlie To:true] map[Email:dri-devel@lists.freedesktop.org Name: To:true] map[Email:linux-kernel@vger.kernel.org Name: To:false] map[Email:maarten.lankhorst@linux.intel.com Name:Maarten Lankhorst To:true] map[Email:mripard@kernel.org Name:Maxime Ripard To:true] map[Email:simona@ffwll.ch Name:Simona Vetter To:true] map[Email:tzimmermann@suse.de Name:Thomas Zimmermann To:true]]]

90/1 2026/06/15 16:38 action get-recent-commits
0m Results:
map[RecentCommits:Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
drm_lease.c: copy user-array safely
drm: Remove unnecessary include statements for drm_crtc_helper.h
drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
drm/lease: allow empty leases
drm: clean up unused kerneldoc in drm_lease.c
drm: clarify usage of drm leases
drm: protect drm_master pointers in drm_lease.c
drm: Don't include drm_legacy.h in drm_lease.c
drm : Insert blank lines after declarations.
drm/lease: fix WARNING in idr_destroy
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
drm: drop use of drmP.h in drm/*
drm/lease: Check for lessor outside of locks
drm/lease: Drop recursive leads checks
drm/leases: Drop object_id validation for negative ids
drm: Use array_size() when creating lease
drm: Rename crtc_idr as object_idr to KMS cleanups
drm/lease: Send a distinct uevent
]

91/1 2026/06/15 16:38 agent description-generator
0m Model:
gemini-3.1-pro-preview

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

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

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


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

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

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

If the crash is reported by a sanitizer (e.g., KASAN, KMSAN, lockdep), include the relevant
parts of the sanitizer output to illustrate the problem. Exclude less relevant sections,
as the stack trace can be very long. Describe the execution path that leads to the manifestation
of the kernel bug.


If the patch removes the WARN_ON macro, refer to the fact that WARN_ON
must not be used for conditions that can legitimately happen, and that pr_err
should be used instead if necessary.

Don't assume that panic_on_warn is set, and that WARNINGs are fatal.
While panic_on_warn may be set when the bug was reproduced, it's generally not set on production systems.


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

Prompt:
The crash that corresponds to the bug is:

------------[ cut here ]------------
WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197, CPU#0: syz.0.17/6137
Modules linked in:
CPU: 0 UID: 0 PID: 6137 Comm: syz.0.17 Not tainted syzkaller #1 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_frozen_pages_noprof+0x2ce/0x380 mm/page_alloc.c:5197
Code: 74 10 4c 89 e7 89 54 24 0c e8 6e a2 0d 00 8b 54 24 0c 49 83 3c 24 00 0f 85 ab fe ff ff e9 ac fe ff ff c6 05 92 0e b2 0d 01 90 <0f> 0b 90 e9 17 ff ff ff a9 00 00 08 00 48 8b 4c 24 10 4c 8d 44 24
RSP: 0018:ffffc90003aa7800 EFLAGS: 00010246
RAX: ffffc90003aa7800 RBX: 000000000000000b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003aa7868
RBP: ffffc90003aa78e8 R08: ffffc90003aa7867 R09: 0000000000000000
R10: ffffc90003aa7840 R11: fffff52000754f0d R12: 0000000000000000
R13: 1ffff92000754f04 R14: 0000000000040dc0 R15: dffffc0000000000
FS:  00007fe037ac16c0(0000) GS:ffff8881a59ad000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003d0000 CR3: 0000000104ab0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521
 drm_ioctl_kernel+0x2df/0x3b0 drivers/gpu/drm/drm_ioctl.c:805
 drm_ioctl+0x6fa/0xbc0 drivers/gpu/drm/drm_ioctl.c:902
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0x560 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe036b9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe037ac1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe036e15fa0 RCX: 00007fe036b9ce59
RDX: 00002000000003c0 RSI: 00000000c01864c6 RDI: 0000000000000003
RBP: 00007fe036c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe036e16038 R14: 00007fe036e15fa0 R15: 00007fffcab0e958
 </TASK>




The explanation of the root cause of the bug is:

The root cause of this kernel crash is an unbounded memory allocation based on a user-controlled value, which attempts to allocate a contiguous memory chunk larger than the maximum allowed by the slab allocator (`KMALLOC_MAX_SIZE`), triggering a warning in the page allocator.

### Detailed Root Cause Analysis

1. **User-controlled `object_count`**:
   In `drivers/gpu/drm/drm_lease.c`, the `drm_mode_create_lease_ioctl()` function retrieves `object_count` directly from the user-provided `struct drm_mode_create_lease` argument:
   ```c
   object_count = cl->object_count;
   ```
   The syzkaller reproducer sets this value to `0xf4240` (1,000,000).

2. **First Allocation (`memdup_array_user`)**:
   The ioctl first allocates an array to hold the object IDs:
   ```c
   object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
                                  object_count, sizeof(__u32));
   ```
   For `1,000,000` objects, this requires `4,000,000` bytes (~3.8 MB). This size is typically just under the `KMALLOC_MAX_SIZE` limit (usually 4 MB on many architectures). Furthermore, `memdup_array_user()` internally uses `memdup_user()`, which allocates memory with the `__GFP_NOWARN` flag. Thus, even if it were to fail, it would gracefully return `-ENOMEM` without triggering a kernel warning.

3. **Second Allocation (`kzalloc_objs`)**:
   After successfully allocating `object_ids`, the ioctl calls `fill_object_idr()`:
   ```c
   ret = fill_object_idr(dev, lessor_priv, &leases, object_count, object_ids);
   ```
   Inside `fill_object_idr()`, the kernel attempts to allocate an array of pointers for the objects:
   ```c
   objects = kzalloc_objs(struct drm_mode_object *, object_count);
   ```
   The size of `struct drm_mode_object *` is 8 bytes (on 64-bit systems). For `1,000,000` objects, this requires `8,000,000` bytes (~7.6 MB). This size strictly exceeds the `KMALLOC_MAX_SIZE` limit. 
   
   Unlike `memdup_user()`, the `kzalloc_objs()` macro expands to a standard `kzalloc()` call using `GFP_KERNEL | __GFP_ZERO` **without** the `__GFP_NOWARN` flag. 

4. **The Crash (Warning)**:
   Because the requested size is larger than `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request directly to the page allocator (`___kmalloc_large_node`). The page allocator calculates the required page order (order 11 for 8 MB). Since order 11 is strictly greater than `MAX_PAGE_ORDER` (typically 10), the page allocator hits the following safety check in `__alloc_frozen_pages_noprof()`:
   ```c
   if (WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp))
       return NULL;
   ```
   Because `__GFP_NOWARN` was not provided, this triggers the `WARN_ON_ONCE_GFP` warning, which syzkaller correctly identifies as a crash.

### Proposed Fix

To fix this issue, both allocations should be updated to use the `kvmalloc` family of functions. These functions automatically fall back to `vmalloc()` for large allocations (avoiding memory fragmentation issues) and internally apply `__GFP_NOWARN` when attempting the initial `kmalloc()`, preventing the page allocator warning.

1. In `drm_mode_create_lease_ioctl()`, replace `memdup_array_user()` with `vmemdup_array_user()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~512
   - object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   + object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids), object_count, sizeof(__u32));
   
   // drivers/gpu/drm/drm_lease.c : ~523
   - kfree(object_ids);
   + kvfree(object_ids);
   ```

2. In `fill_object_idr()`, replace `kzalloc_objs()` with `kvcalloc()`, and change the corresponding `kfree()` to `kvfree()`:
   ```c
   // drivers/gpu/drm/drm_lease.c : ~389
   - objects = kzalloc_objs(struct drm_mode_object *, object_count);
   + objects = kvcalloc(object_count, sizeof(struct drm_mode_object *), GFP_KERNEL);
   
   // drivers/gpu/drm/drm_lease.c : ~465
   - kfree(objects);
   + kvfree(objects);
   ```

This ensures that userspace cannot trigger a kernel warning by passing an arbitrarily large `object_count`, and the kernel will gracefully return `-ENOMEM` if the system truly cannot satisfy the `vmalloc` request.

The diff of the bug fix is:

diff --git a/drivers/gpu/drm/drm_lease.c b/drivers/gpu/drm/drm_lease.c
index 5d2cf724c..240e0ea6c 100644
--- a/drivers/gpu/drm/drm_lease.c
+++ b/drivers/gpu/drm/drm_lease.c
@@ -386,7 +386,8 @@ static int fill_object_idr(struct drm_device *dev,
 	int ret;
 	bool universal_planes = READ_ONCE(lessor_priv->universal_planes);
 
-	objects = kzalloc_objs(struct drm_mode_object *, object_count);
+	objects = kvcalloc(object_count, sizeof(struct drm_mode_object *),
+			   GFP_KERNEL);
 	if (!objects)
 		return -ENOMEM;
 
@@ -462,7 +463,7 @@ static int fill_object_idr(struct drm_device *dev,
 		if (objects[o])
 			drm_mode_object_put(objects[o]);
 	}
-	kfree(objects);
+	kvfree(objects);
 	return ret;
 }
 
@@ -509,8 +510,8 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 	/* Handle leased objects, if any */
 	idr_init(&leases);
 	if (object_count != 0) {
-		object_ids = memdup_array_user(u64_to_user_ptr(cl->object_ids),
-					       object_count, sizeof(__u32));
+		object_ids = vmemdup_array_user(u64_to_user_ptr(cl->object_ids),
+						object_count, sizeof(__u32));
 		if (IS_ERR(object_ids)) {
 			ret = PTR_ERR(object_ids);
 			idr_destroy(&leases);
@@ -520,7 +521,7 @@ int drm_mode_create_lease_ioctl(struct drm_device *dev,
 		/* fill and validate the object idr */
 		ret = fill_object_idr(dev, lessor_priv, &leases,
 				      object_count, object_ids);
-		kfree(object_ids);
+		kvfree(object_ids);
 		if (ret) {
 			drm_dbg_lease(dev, "lease object lookup failed: %i\n", ret);
 			idr_destroy(&leases);


Additional description of the patch:

I have implemented the proposed fix.

### Explanation of the Fix

The crash is caused by an unbounded memory allocation in `drm_mode_create_lease_ioctl()` where the `object_count` is directly controlled by the user. A malicious or buggy userspace program can pass a very large `object_count` (e.g., 1,000,000), causing the kernel to attempt allocating a contiguous memory chunk that exceeds the maximum allowed size by the slab allocator (`KMALLOC_MAX_SIZE`).

There are two allocations involved:
1. **`object_ids` array**: Allocated using `memdup_array_user()`. While this doesn't trigger a warning because `memdup_user()` internally uses `__GFP_NOWARN`, it still attempts a large contiguous allocation (up to ~4MB) which can fail due to memory fragmentation.
2. **`objects` array**: Allocated using `kzalloc_objs()` in `fill_object_idr()`. This macro expands to a standard `kzalloc()` call without the `__GFP_NOWARN` flag. For 1,000,000 objects, this requires ~8MB of memory. Since this exceeds `KMALLOC_MAX_SIZE`, the SLUB allocator passes the request to the page allocator, which triggers a `WARN_ON_ONCE_GFP` because the required page order is greater than `MAX_PAGE_ORDER`.

To fix this, I replaced both allocations with their `kvmalloc` family equivalents:
- In `drm_mode_create_lease_ioctl()`, `memdup_array_user()` was replaced with `vmemdup_array_user()`, and the corresponding `kfree()` was changed to `kvfree()`.
- In `fill_object_idr()`, `kzalloc_objs()` was replaced with `kvcalloc()`, and the corresponding `kfree()` was changed to `kvfree()`.

The `kvmalloc` family of functions attempts a `kmalloc()` first (with `__GFP_NOWARN` applied internally to prevent warnings if it fails), and gracefully falls back to `vmalloc()` for large allocations. This not only prevents the kernel warning but also makes the allocations more robust against memory fragmentation, as `vmalloc()` can satisfy large requests using non-contiguous physical pages. If the system truly cannot satisfy the request, it will gracefully return `-ENOMEM` to userspace.

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

Convert more 'alloc_obj' cases to default GFP_KERNEL arguments
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
drm_lease.c: copy user-array safely
drm: Remove unnecessary include statements for drm_crtc_helper.h
drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE
drm/lease: allow empty leases
drm: clean up unused kerneldoc in drm_lease.c
drm: clarify usage of drm leases
drm: protect drm_master pointers in drm_lease.c
drm: Don't include drm_legacy.h in drm_lease.c
drm : Insert blank lines after declarations.
drm/lease: fix WARNING in idr_destroy
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
drm: drop use of drmP.h in drm/*
drm/lease: Check for lessor outside of locks
drm/lease: Drop recursive leads checks
drm/leases: Drop object_id validation for negative ids
drm: Use array_size() when creating lease
drm: Rename crtc_idr as object_idr to KMS cleanups
drm/lease: Send a distinct uevent


Reply:
drm/lease: use kvmalloc for user-controlled allocations

In drm_mode_create_lease_ioctl(), a user-controlled object_count is used to
allocate memory for object_ids and objects. If a user provides a very large
object_count (e.g., 1,000,000), the kernel attempts to allocate a
contiguous memory chunk that exceeds the maximum allowed size by the slab
allocator (KMALLOC_MAX_SIZE).

For the objects array, kzalloc_objs() is used, which expands to a standard
kzalloc() call without the __GFP_NOWARN flag. When the requested size
exceeds KMALLOC_MAX_SIZE, the SLUB allocator passes the request to the page
allocator, which triggers a WARN_ON_ONCE_GFP because the required page
order is greater than MAX_PAGE_ORDER:

WARNING: mm/page_alloc.c:5197 at __alloc_frozen_pages_noprof+0x2ce/0x380
mm/page_alloc.c:5197
Call Trace:
 <TASK>
 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490
 ___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268
 __do_kmalloc_node mm/slub.c:5284 [inline]
 __kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]
 drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521

To fix this, replace memdup_array_user() with vmemdup_array_user() and
kzalloc_objs() with kvcalloc(), along with changing their respective
kfree() calls to kvfree(). The kvmalloc family of functions attempts a
kmalloc() first with __GFP_NOWARN applied internally, and gracefully falls
back to vmalloc() for large allocations. This prevents the kernel warning
and makes the allocations more robust against memory fragmentation,
gracefully returning -ENOMEM if the system cannot satisfy the request.

92/2 2026/06/15 16:38 llm description-generator
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 8492
							output: 594
							thoughts: 2730
						

Thoughts:
**My Thoughts on the Fix**

Okay, so I've been looking at this `drm_lease.c` code, and I see a potential issue in how it handles memory allocation. Specifically, in `drm_mode_create_lease_ioctl()`, the `object_count` comes from user space, and it's used to determine the size of the memory allocation for `object_ids` and `objects`. A user could provide a large `object_count`, and that could cause some problems. If the requested allocation is too big, it exceeds `KMALLOC_MAX_SIZE`. The code uses `kzalloc_objs()`, which eventually calls `kzalloc()` without the `__GFP_NOWARN` flag. This then goes to the page allocator when it's too big, triggering a `WARN_ON_ONCE_GFP` because it's trying to allocate a page order greater than `MAX_PAGE_ORDER`. I see the call trace:

`alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490`
`___kmalloc_large_node+0x4c/0x120 mm/slub.c:5237`
`__kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5268`
`__do_kmalloc_node mm/slub.c:5284 [inline]`
`__kmalloc_noprof+0x3e4/0x750 mm/slub.c:5308`
`kmalloc_noprof include/linux/slab.h:954 [inline]`
`kzalloc_noprof include/linux/slab.h:1188 [inline]`
`fill_object_idr drivers/gpu/drm/drm_lease.c:389 [inline]`
`drm_mode_create_lease_ioctl+0x533/0x1ab0 drivers/gpu/drm/drm_lease.c:521`

To address this, I'm thinking we should change how the allocation is done. Instead of `memdup_array_user()` and `kzalloc_objs()`, I'll use `vmemdup_array_user()` and `kvcalloc()` and replace the associated `kfree` calls with `kvfree()`. The `kvmalloc` family of functions is the right choice here. It tries a `kmalloc()` first with `__GFP_NOWARN`, and if that fails, it falls back to `vmalloc()`. This should prevent the warning. Also, it's more robust, because it can handle fragmentation and will return `-ENOMEM` gracefully if it can't fulfill the request. That seems like a much better approach. So the one-line summary should be: `drm/lease: use kvmalloc for user-controlled allocations`.



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)