Config-kernel.in 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181
  1. # Copyright (C) 2006-2014 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. config KERNEL_BUILD_USER
  7. string "Custom Kernel Build User Name"
  8. default "builder" if BUILDBOT
  9. default ""
  10. help
  11. Sets the Kernel build user string, which for example will be returned
  12. by 'uname -a' on running systems.
  13. If not set, uses system user at build time.
  14. config KERNEL_BUILD_DOMAIN
  15. string "Custom Kernel Build Domain Name"
  16. default "buildhost" if BUILDBOT
  17. default ""
  18. help
  19. Sets the Kernel build domain string, which for example will be
  20. returned by 'uname -a' on running systems.
  21. If not set, uses system hostname at build time.
  22. config KERNEL_PRINTK
  23. bool "Enable support for printk"
  24. default y
  25. config KERNEL_CRASHLOG
  26. bool "Crash logging"
  27. depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
  28. default y
  29. config KERNEL_SWAP
  30. bool "Support for paging of anonymous memory (swap)"
  31. default y if !SMALL_FLASH
  32. config KERNEL_DEBUG_FS
  33. bool "Compile the kernel with debug filesystem enabled"
  34. default y
  35. help
  36. debugfs is a virtual file system that kernel developers use to put
  37. debugging files into. Enable this option to be able to read and
  38. write to these files. Many common debugging facilities, such as
  39. ftrace, require the existence of debugfs.
  40. config KERNEL_MIPS_FP_SUPPORT
  41. bool
  42. default y if TARGET_pistachio
  43. config KERNEL_ARM_PMU
  44. bool
  45. default n
  46. depends on (arm || aarch64)
  47. config KERNEL_X86_VSYSCALL_EMULATION
  48. bool "Enable vsyscall emulation"
  49. default n
  50. depends on x86_64
  51. help
  52. This enables emulation of the legacy vsyscall page. Disabling
  53. it is roughly equivalent to booting with vsyscall=none, except
  54. that it will also disable the helpful warning if a program
  55. tries to use a vsyscall. With this option set to N, offending
  56. programs will just segfault, citing addresses of the form
  57. 0xffffffffff600?00.
  58. This option is required by many programs built before 2013, and
  59. care should be used even with newer programs if set to N.
  60. Disabling this option saves about 7K of kernel size and
  61. possibly 4K of additional runtime pagetable memory.
  62. config KERNEL_PERF_EVENTS
  63. bool "Compile the kernel with performance events and counters"
  64. default n
  65. select KERNEL_ARM_PMU if (arm || aarch64)
  66. config KERNEL_PROFILING
  67. bool "Compile the kernel with profiling enabled"
  68. default n
  69. select KERNEL_PERF_EVENTS
  70. help
  71. Enable the extended profiling support mechanisms used by profilers such
  72. as OProfile.
  73. config KERNEL_UBSAN
  74. bool "Compile the kernel with undefined behaviour sanity checker"
  75. help
  76. This option enables undefined behaviour sanity checker
  77. Compile-time instrumentation is used to detect various undefined
  78. behaviours in runtime. Various types of checks may be enabled
  79. via boot parameter ubsan_handle
  80. (see: Documentation/dev-tools/ubsan.rst).
  81. config KERNEL_UBSAN_SANITIZE_ALL
  82. bool "Enable instrumentation for the entire kernel"
  83. depends on KERNEL_UBSAN
  84. default y
  85. help
  86. This option activates instrumentation for the entire kernel.
  87. If you don't enable this option, you have to explicitly specify
  88. UBSAN_SANITIZE := y for the files/directories you want to check for UB.
  89. Enabling this option will get kernel image size increased
  90. significantly.
  91. config KERNEL_UBSAN_ALIGNMENT
  92. bool "Enable checking of pointers alignment"
  93. depends on KERNEL_UBSAN
  94. help
  95. This option enables detection of unaligned memory accesses.
  96. Enabling this option on architectures that support unaligned
  97. accesses may produce a lot of false positives.
  98. config KERNEL_UBSAN_NULL
  99. bool "Enable checking of null pointers"
  100. depends on KERNEL_UBSAN
  101. help
  102. This option enables detection of memory accesses via a
  103. null pointer.
  104. config KERNEL_KASAN
  105. bool "Compile the kernel with KASan: runtime memory debugger"
  106. select KERNEL_SLUB_DEBUG
  107. depends on (x86_64 || aarch64)
  108. help
  109. Enables kernel address sanitizer - runtime memory debugger,
  110. designed to find out-of-bounds accesses and use-after-free bugs.
  111. This is strictly a debugging feature and it requires a gcc version
  112. of 4.9.2 or later. Detection of out of bounds accesses to stack or
  113. global variables requires gcc 5.0 or later.
  114. This feature consumes about 1/8 of available memory and brings about
  115. ~x3 performance slowdown.
  116. For better error detection enable CONFIG_STACKTRACE.
  117. Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
  118. (the resulting kernel does not boot).
  119. config KERNEL_KASAN_EXTRA
  120. bool "KAsan: extra checks"
  121. depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL
  122. help
  123. This enables further checks in the kernel address sanitizer, for now
  124. it only includes the address-use-after-scope check that can lead
  125. to excessive kernel stack usage, frame size warnings and longer
  126. compile time.
  127. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
  128. choice
  129. prompt "Instrumentation type"
  130. depends on KERNEL_KASAN
  131. default KERNEL_KASAN_OUTLINE
  132. config KERNEL_KASAN_OUTLINE
  133. bool "Outline instrumentation"
  134. help
  135. Before every memory access compiler insert function call
  136. __asan_load*/__asan_store*. These functions performs check
  137. of shadow memory. This is slower than inline instrumentation,
  138. however it doesn't bloat size of kernel's .text section so
  139. much as inline does.
  140. config KERNEL_KASAN_INLINE
  141. bool "Inline instrumentation"
  142. help
  143. Compiler directly inserts code checking shadow memory before
  144. memory accesses. This is faster than outline (in some workloads
  145. it gives about x2 boost over outline instrumentation), but
  146. make kernel's .text size much bigger.
  147. This requires a gcc version of 5.0 or later.
  148. endchoice
  149. config KERNEL_KCOV
  150. bool "Compile the kernel with code coverage for fuzzing"
  151. select KERNEL_DEBUG_FS
  152. help
  153. KCOV exposes kernel code coverage information in a form suitable
  154. for coverage-guided fuzzing (randomized testing).
  155. If RANDOMIZE_BASE is enabled, PC values will not be stable across
  156. different machines and across reboots. If you need stable PC values,
  157. disable RANDOMIZE_BASE.
  158. For more details, see Documentation/kcov.txt.
  159. config KERNEL_KCOV_ENABLE_COMPARISONS
  160. bool "Enable comparison operands collection by KCOV"
  161. depends on KERNEL_KCOV
  162. help
  163. KCOV also exposes operands of every comparison in the instrumented
  164. code along with operand sizes and PCs of the comparison instructions.
  165. These operands can be used by fuzzing engines to improve the quality
  166. of fuzzing coverage.
  167. config KERNEL_KCOV_INSTRUMENT_ALL
  168. bool "Instrument all code by default"
  169. depends on KERNEL_KCOV
  170. default y if KERNEL_KCOV
  171. help
  172. If you are doing generic system call fuzzing (like e.g. syzkaller),
  173. then you will want to instrument the whole kernel and you should
  174. say y here. If you are doing more targeted fuzzing (like e.g.
  175. filesystem fuzzing with AFL) then you will want to enable coverage
  176. for more specific subsets of files, and should say n here.
  177. config KERNEL_TASKSTATS
  178. bool "Compile the kernel with task resource/io statistics and accounting"
  179. default n
  180. help
  181. Enable the collection and publishing of task/io statistics and
  182. accounting. Enable this option to enable i/o monitoring in system
  183. monitors.
  184. if KERNEL_TASKSTATS
  185. config KERNEL_TASK_DELAY_ACCT
  186. def_bool y
  187. config KERNEL_TASK_IO_ACCOUNTING
  188. def_bool y
  189. config KERNEL_TASK_XACCT
  190. def_bool y
  191. endif
  192. config KERNEL_KALLSYMS
  193. bool "Compile the kernel with symbol table information"
  194. default y if !SMALL_FLASH
  195. help
  196. This will give you more information in stack traces from kernel oopses.
  197. config KERNEL_FTRACE
  198. bool "Compile the kernel with tracing support"
  199. depends on !TARGET_uml
  200. default n
  201. config KERNEL_FTRACE_SYSCALLS
  202. bool "Trace system calls"
  203. depends on KERNEL_FTRACE
  204. default n
  205. config KERNEL_ENABLE_DEFAULT_TRACERS
  206. bool "Trace process context switches and events"
  207. depends on KERNEL_FTRACE
  208. default n
  209. config KERNEL_FUNCTION_TRACER
  210. bool "Function tracer"
  211. depends on KERNEL_FTRACE
  212. default n
  213. config KERNEL_FUNCTION_GRAPH_TRACER
  214. bool "Function graph tracer"
  215. depends on KERNEL_FUNCTION_TRACER
  216. default n
  217. config KERNEL_DYNAMIC_FTRACE
  218. bool "Enable/disable function tracing dynamically"
  219. depends on KERNEL_FUNCTION_TRACER
  220. default n
  221. config KERNEL_FUNCTION_PROFILER
  222. bool "Function profiler"
  223. depends on KERNEL_FUNCTION_TRACER
  224. default n
  225. config KERNEL_IRQSOFF_TRACER
  226. bool "Interrupts-off Latency Tracer"
  227. depends on KERNEL_FTRACE
  228. help
  229. This option measures the time spent in irqs-off critical
  230. sections, with microsecond accuracy.
  231. The default measurement method is a maximum search, which is
  232. disabled by default and can be runtime (re-)started
  233. via:
  234. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  235. (Note that kernel size and overhead increase with this option
  236. enabled. This option and the preempt-off timing option can be
  237. used together or separately.)
  238. config KERNEL_PREEMPT_TRACER
  239. bool "Preemption-off Latency Tracer"
  240. depends on KERNEL_FTRACE
  241. help
  242. This option measures the time spent in preemption-off critical
  243. sections, with microsecond accuracy.
  244. The default measurement method is a maximum search, which is
  245. disabled by default and can be runtime (re-)started
  246. via:
  247. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  248. (Note that kernel size and overhead increase with this option
  249. enabled. This option and the irqs-off timing option can be
  250. used together or separately.)
  251. config KERNEL_DEBUG_KERNEL
  252. bool
  253. default n
  254. config KERNEL_DEBUG_INFO
  255. bool "Compile the kernel with debug information"
  256. default y if !SMALL_FLASH
  257. select KERNEL_DEBUG_KERNEL
  258. help
  259. This will compile your kernel and modules with debug information.
  260. config KERNEL_DEBUG_LL_UART_NONE
  261. bool
  262. default n
  263. depends on arm
  264. config KERNEL_DEBUG_LL
  265. bool
  266. default n
  267. depends on arm
  268. select KERNEL_DEBUG_LL_UART_NONE
  269. help
  270. ARM low level debugging.
  271. config KERNEL_DYNAMIC_DEBUG
  272. bool "Compile the kernel with dynamic printk"
  273. select KERNEL_DEBUG_FS
  274. default n
  275. help
  276. Compiles debug level messages into the kernel, which would not
  277. otherwise be available at runtime. These messages can then be
  278. enabled/disabled based on various levels of scope - per source file,
  279. function, module, format string, and line number. This mechanism
  280. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  281. enlarges the kernel text size by about 2%.
  282. config KERNEL_EARLY_PRINTK
  283. bool "Compile the kernel with early printk"
  284. default y if TARGET_bcm53xx
  285. default n
  286. depends on arm
  287. select KERNEL_DEBUG_KERNEL
  288. select KERNEL_DEBUG_LL if arm
  289. help
  290. Compile the kernel with early printk support. This is only useful for
  291. debugging purposes to send messages over the serial console in early boot.
  292. Enable this to debug early boot problems.
  293. config KERNEL_KPROBES
  294. bool "Compile the kernel with kprobes support"
  295. default n
  296. select KERNEL_FTRACE
  297. select KERNEL_PERF_EVENTS
  298. help
  299. Compiles the kernel with KPROBES support, which allows you to trap
  300. at almost any kernel address and execute a callback function.
  301. register_kprobe() establishes a probepoint and specifies the
  302. callback. Kprobes is useful for kernel debugging, non-intrusive
  303. instrumentation and testing.
  304. If in doubt, say "N".
  305. config KERNEL_KPROBE_EVENT
  306. bool
  307. default y if KERNEL_KPROBES
  308. config KERNEL_KPROBE_EVENTS
  309. bool
  310. default y if KERNEL_KPROBES
  311. config KERNEL_AIO
  312. bool "Compile the kernel with asynchronous IO support"
  313. default y if !SMALL_FLASH
  314. config KERNEL_FHANDLE
  315. bool "Compile the kernel with support for fhandle syscalls"
  316. default y if !SMALL_FLASH
  317. config KERNEL_FANOTIFY
  318. bool "Compile the kernel with modern file notification support"
  319. default y if !SMALL_FLASH
  320. config KERNEL_BLK_DEV_BSG
  321. bool "Compile the kernel with SCSI generic v4 support for any block device"
  322. default n
  323. config KERNEL_TRANSPARENT_HUGEPAGE
  324. bool
  325. choice
  326. prompt "Transparent Hugepage Support sysfs defaults"
  327. depends on KERNEL_TRANSPARENT_HUGEPAGE
  328. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  329. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  330. bool "always"
  331. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  332. bool "madvise"
  333. endchoice
  334. config KERNEL_HUGETLBFS
  335. bool
  336. config KERNEL_HUGETLB_PAGE
  337. bool "Compile the kernel with HugeTLB support"
  338. select KERNEL_TRANSPARENT_HUGEPAGE
  339. select KERNEL_HUGETLBFS
  340. default n
  341. config KERNEL_MAGIC_SYSRQ
  342. bool "Compile the kernel with SysRq support"
  343. default y
  344. config KERNEL_DEBUG_PINCTRL
  345. bool "Compile the kernel with pinctrl debugging"
  346. select KERNEL_DEBUG_KERNEL
  347. config KERNEL_DEBUG_GPIO
  348. bool "Compile the kernel with gpio debugging"
  349. select KERNEL_DEBUG_KERNEL
  350. config KERNEL_COREDUMP
  351. bool
  352. config KERNEL_ELF_CORE
  353. bool "Enable process core dump support"
  354. select KERNEL_COREDUMP
  355. default y if !SMALL_FLASH
  356. config KERNEL_PROVE_LOCKING
  357. bool "Enable kernel lock checking"
  358. select KERNEL_DEBUG_KERNEL
  359. default n
  360. config KERNEL_LOCKUP_DETECTOR
  361. bool "Compile the kernel with detect Hard and Soft Lockups"
  362. depends on KERNEL_DEBUG_KERNEL
  363. help
  364. Say Y here to enable the kernel to act as a watchdog to detect
  365. hard and soft lockups.
  366. Softlockups are bugs that cause the kernel to loop in kernel
  367. mode for more than 20 seconds, without giving other tasks a
  368. chance to run. The current stack trace is displayed upon
  369. detection and the system will stay locked up.
  370. Hardlockups are bugs that cause the CPU to loop in kernel mode
  371. for more than 10 seconds, without letting other interrupts have a
  372. chance to run. The current stack trace is displayed upon detection
  373. and the system will stay locked up.
  374. The overhead should be minimal. A periodic hrtimer runs to
  375. generate interrupts and kick the watchdog task every 4 seconds.
  376. An NMI is generated every 10 seconds or so to check for hardlockups.
  377. The frequency of hrtimer and NMI events and the soft and hard lockup
  378. thresholds can be controlled through the sysctl watchdog_thresh.
  379. config KERNEL_DETECT_HUNG_TASK
  380. bool "Compile the kernel with detect Hung Tasks"
  381. depends on KERNEL_DEBUG_KERNEL
  382. default KERNEL_LOCKUP_DETECTOR
  383. help
  384. Say Y here to enable the kernel to detect "hung tasks",
  385. which are bugs that cause the task to be stuck in
  386. uninterruptible "D" state indefinitely.
  387. When a hung task is detected, the kernel will print the
  388. current stack trace (which you should report), but the
  389. task will stay in uninterruptible state. If lockdep is
  390. enabled then all held locks will also be reported. This
  391. feature has negligible overhead.
  392. config KERNEL_WQ_WATCHDOG
  393. bool "Compile the kernel with detect Workqueue Stalls"
  394. depends on KERNEL_DEBUG_KERNEL
  395. help
  396. Say Y here to enable stall detection on workqueues. If a
  397. worker pool doesn't make forward progress on a pending work
  398. item for over a given amount of time, 30s by default, a
  399. warning message is printed along with dump of workqueue
  400. state. This can be configured through kernel parameter
  401. "workqueue.watchdog_thresh" and its sysfs counterpart.
  402. config KERNEL_DEBUG_ATOMIC_SLEEP
  403. bool "Compile the kernel with sleep inside atomic section checking"
  404. depends on KERNEL_DEBUG_KERNEL
  405. help
  406. If you say Y here, various routines which may sleep will become very
  407. noisy if they are called inside atomic sections: when a spinlock is
  408. held, inside an rcu read side critical section, inside preempt disabled
  409. sections, inside an interrupt, etc...
  410. config KERNEL_DEBUG_VM
  411. bool "Compile the kernel with debug VM"
  412. depends on KERNEL_DEBUG_KERNEL
  413. help
  414. Enable this to turn on extended checks in the virtual-memory system
  415. that may impact performance.
  416. If unsure, say N.
  417. config KERNEL_PRINTK_TIME
  418. bool "Enable printk timestamps"
  419. default y
  420. config KERNEL_SLUB_DEBUG
  421. bool
  422. config KERNEL_SLUB_DEBUG_ON
  423. bool
  424. config KERNEL_SLABINFO
  425. select KERNEL_SLUB_DEBUG
  426. select KERNEL_SLUB_DEBUG_ON
  427. bool "Enable /proc slab debug info"
  428. config KERNEL_PROC_PAGE_MONITOR
  429. bool "Enable /proc page monitoring"
  430. config KERNEL_RELAY
  431. bool
  432. config KERNEL_KEXEC
  433. bool "Enable kexec support"
  434. config KERNEL_PROC_VMCORE
  435. bool
  436. config KERNEL_PROC_KCORE
  437. bool
  438. config KERNEL_CRASH_DUMP
  439. depends on i386 || x86_64 || arm || armeb
  440. select KERNEL_KEXEC
  441. select KERNEL_PROC_VMCORE
  442. select KERNEL_PROC_KCORE
  443. bool "Enable support for kexec crashdump"
  444. default y
  445. config USE_RFKILL
  446. bool "Enable rfkill support"
  447. default RFKILL_SUPPORT
  448. config USE_SPARSE
  449. bool "Enable sparse check during kernel build"
  450. default n
  451. config KERNEL_DEVTMPFS
  452. bool "Compile the kernel with device tmpfs enabled"
  453. default n
  454. help
  455. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  456. devices nodes for all registered devices to simplify boot, but leaves more
  457. complex tasks to userspace (e.g. udev).
  458. if KERNEL_DEVTMPFS
  459. config KERNEL_DEVTMPFS_MOUNT
  460. bool "Automatically mount devtmpfs after root filesystem is mounted"
  461. default n
  462. endif
  463. config KERNEL_KEYS
  464. bool "Enable kernel access key retention support"
  465. default !SMALL_FLASH
  466. config KERNEL_PERSISTENT_KEYRINGS
  467. bool "Enable kernel persistent keyrings"
  468. depends on KERNEL_KEYS
  469. default n
  470. config KERNEL_KEYS_REQUEST_CACHE
  471. bool "Enable temporary caching of the last request_key() result"
  472. depends on KERNEL_KEYS
  473. default n
  474. config KERNEL_BIG_KEYS
  475. bool "Enable large payload keys on kernel keyrings"
  476. depends on KERNEL_KEYS
  477. default n
  478. #
  479. # CGROUP support symbols
  480. #
  481. config KERNEL_CGROUPS
  482. bool "Enable kernel cgroups"
  483. default y if !SMALL_FLASH
  484. if KERNEL_CGROUPS
  485. config KERNEL_CGROUP_DEBUG
  486. bool "Example debug cgroup subsystem"
  487. default n
  488. help
  489. This option enables a simple cgroup subsystem that
  490. exports useful debugging information about the cgroups
  491. framework.
  492. config KERNEL_FREEZER
  493. bool
  494. config KERNEL_CGROUP_FREEZER
  495. bool "legacy Freezer cgroup subsystem"
  496. default n
  497. select KERNEL_FREEZER
  498. help
  499. Provides a way to freeze and unfreeze all tasks in a
  500. cgroup.
  501. (legacy cgroup1-only controller, in cgroup2 freezer
  502. is integrated in the Memory controller)
  503. config KERNEL_CGROUP_DEVICE
  504. bool "legacy Device controller for cgroups"
  505. default n
  506. help
  507. Provides a cgroup implementing whitelists for devices which
  508. a process in the cgroup can mknod or open.
  509. (legacy cgroup1-only controller)
  510. config KERNEL_CGROUP_HUGETLB
  511. bool "HugeTLB controller"
  512. default n
  513. select KERNEL_HUGETLB_PAGE
  514. config KERNEL_CGROUP_PIDS
  515. bool "PIDs cgroup subsystem"
  516. default y
  517. help
  518. Provides enforcement of process number limits in the scope of a
  519. cgroup.
  520. config KERNEL_CGROUP_RDMA
  521. bool "RDMA controller for cgroups"
  522. default y
  523. config KERNEL_CGROUP_BPF
  524. bool "Support for eBPF programs attached to cgroups"
  525. default y
  526. config KERNEL_CPUSETS
  527. bool "Cpuset support"
  528. default y
  529. help
  530. This option will let you create and manage CPUSETs which
  531. allow dynamically partitioning a system into sets of CPUs and
  532. Memory Nodes and assigning tasks to run only within those sets.
  533. This is primarily useful on large SMP or NUMA systems.
  534. config KERNEL_PROC_PID_CPUSET
  535. bool "Include legacy /proc/<pid>/cpuset file"
  536. default n
  537. depends on KERNEL_CPUSETS
  538. config KERNEL_CGROUP_CPUACCT
  539. bool "Simple CPU accounting cgroup subsystem"
  540. default y
  541. help
  542. Provides a simple Resource Controller for monitoring the
  543. total CPU consumed by the tasks in a cgroup.
  544. config KERNEL_RESOURCE_COUNTERS
  545. bool "Resource counters"
  546. default y
  547. help
  548. This option enables controller independent resource accounting
  549. infrastructure that works with cgroups.
  550. config KERNEL_MM_OWNER
  551. bool
  552. default y if KERNEL_MEMCG
  553. config KERNEL_MEMCG
  554. bool "Memory Resource Controller for Control Groups"
  555. default y
  556. select KERNEL_FREEZER
  557. depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
  558. help
  559. Provides a memory resource controller that manages both anonymous
  560. memory and page cache. (See Documentation/cgroups/memory.txt)
  561. Note that setting this option increases fixed memory overhead
  562. associated with each page of memory in the system. By this,
  563. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  564. usage tracking struct at boot. Total amount of this is printed out
  565. at boot.
  566. Only enable when you're ok with these tradeoffs and really
  567. sure you need the memory resource controller. Even when you enable
  568. this, you can set "cgroup_disable=memory" at your boot option to
  569. disable memory resource controller and you can avoid overheads
  570. (but lose benefits of memory resource controller).
  571. This config option also selects MM_OWNER config option, which
  572. could in turn add some fork/exit overhead.
  573. config KERNEL_MEMCG_SWAP
  574. bool "Memory Resource Controller Swap Extension"
  575. default y
  576. depends on KERNEL_MEMCG
  577. help
  578. Add swap management feature to memory resource controller. When you
  579. enable this, you can limit mem+swap usage per cgroup. In other words,
  580. when you disable this, memory resource controller has no cares to
  581. usage of swap...a process can exhaust all of the swap. This extension
  582. is useful when you want to avoid exhaustion swap but this itself
  583. adds more overheads and consumes memory for remembering information.
  584. Especially if you use 32bit system or small memory system, please
  585. be careful about enabling this. When memory resource controller
  586. is disabled by boot option, this will be automatically disabled and
  587. there will be no overhead from this. Even when you set this config=y,
  588. if boot option "swapaccount=0" is set, swap will not be accounted.
  589. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  590. size is 4096bytes, 512k per 1Gbytes of swap.
  591. config KERNEL_MEMCG_SWAP_ENABLED
  592. bool "Memory Resource Controller Swap Extension enabled by default"
  593. default n
  594. depends on KERNEL_MEMCG_SWAP
  595. help
  596. Memory Resource Controller Swap Extension comes with its price in
  597. a bigger memory consumption. General purpose distribution kernels
  598. which want to enable the feature but keep it disabled by default
  599. and let the user enable it by swapaccount boot command line
  600. parameter should have this option unselected.
  601. Those who want to have the feature enabled by default should
  602. select this option (if, for some reason, they need to disable it,
  603. then swapaccount=0 does the trick).
  604. config KERNEL_MEMCG_KMEM
  605. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  606. default y
  607. depends on KERNEL_MEMCG
  608. help
  609. The Kernel Memory extension for Memory Resource Controller can limit
  610. the amount of memory used by kernel objects in the system. Those are
  611. fundamentally different from the entities handled by the standard
  612. Memory Controller, which are page-based, and can be swapped. Users of
  613. the kmem extension can use it to guarantee that no group of processes
  614. will ever exhaust kernel resources alone.
  615. config KERNEL_CGROUP_PERF
  616. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  617. select KERNEL_PERF_EVENTS
  618. default n
  619. help
  620. This option extends the per-cpu mode to restrict monitoring to
  621. threads which belong to the cgroup specified and run on the
  622. designated cpu.
  623. menuconfig KERNEL_CGROUP_SCHED
  624. bool "Group CPU scheduler"
  625. default y
  626. help
  627. This feature lets CPU scheduler recognize task groups and control CPU
  628. bandwidth allocation to such task groups. It uses cgroups to group
  629. tasks.
  630. if KERNEL_CGROUP_SCHED
  631. config KERNEL_FAIR_GROUP_SCHED
  632. bool "Group scheduling for SCHED_OTHER"
  633. default y
  634. config KERNEL_CFS_BANDWIDTH
  635. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  636. default y
  637. depends on KERNEL_FAIR_GROUP_SCHED
  638. help
  639. This option allows users to define CPU bandwidth rates (limits) for
  640. tasks running within the fair group scheduler. Groups with no limit
  641. set are considered to be unconstrained and will run with no
  642. restriction.
  643. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  644. config KERNEL_RT_GROUP_SCHED
  645. bool "Group scheduling for SCHED_RR/FIFO"
  646. default y
  647. help
  648. This feature lets you explicitly allocate real CPU bandwidth
  649. to task groups. If enabled, it will also make it impossible to
  650. schedule realtime tasks for non-root users until you allocate
  651. realtime bandwidth for them.
  652. endif
  653. config KERNEL_BLK_CGROUP
  654. bool "Block IO controller"
  655. default y
  656. help
  657. Generic block IO controller cgroup interface. This is the common
  658. cgroup interface which should be used by various IO controlling
  659. policies.
  660. Currently, CFQ IO scheduler uses it to recognize task groups and
  661. control disk bandwidth allocation (proportional time slice allocation)
  662. to such task groups. It is also used by bio throttling logic in
  663. block layer to implement upper limit in IO rates on a device.
  664. This option only enables generic Block IO controller infrastructure.
  665. One needs to also enable actual IO controlling logic/policy. For
  666. enabling proportional weight division of disk bandwidth in CFQ, set
  667. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  668. CONFIG_BLK_DEV_THROTTLING=y.
  669. if KERNEL_BLK_CGROUP
  670. config KERNEL_CFQ_GROUP_IOSCHED
  671. bool "Proportional weight of disk bandwidth in CFQ"
  672. config KERNEL_BLK_DEV_THROTTLING
  673. bool "Enable throttling policy"
  674. default y
  675. config KERNEL_BLK_DEV_THROTTLING_LOW
  676. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  677. depends on KERNEL_BLK_DEV_THROTTLING
  678. endif
  679. config KERNEL_DEBUG_BLK_CGROUP
  680. bool "Enable Block IO controller debugging"
  681. default n
  682. depends on KERNEL_BLK_CGROUP
  683. help
  684. Enable some debugging help. Currently it exports additional stat
  685. files in a cgroup which can be useful for debugging.
  686. config KERNEL_NET_CLS_CGROUP
  687. bool "legacy Control Group Classifier"
  688. default n
  689. config KERNEL_CGROUP_NET_CLASSID
  690. bool "legacy Network classid cgroup"
  691. default n
  692. config KERNEL_CGROUP_NET_PRIO
  693. bool "legacy Network priority cgroup"
  694. default n
  695. endif
  696. #
  697. # Namespace support symbols
  698. #
  699. config KERNEL_NAMESPACES
  700. bool "Enable kernel namespaces"
  701. default y if !SMALL_FLASH
  702. if KERNEL_NAMESPACES
  703. config KERNEL_UTS_NS
  704. bool "UTS namespace"
  705. default y
  706. help
  707. In this namespace, tasks see different info provided
  708. with the uname() system call.
  709. config KERNEL_IPC_NS
  710. bool "IPC namespace"
  711. default y
  712. help
  713. In this namespace, tasks work with IPC ids which correspond to
  714. different IPC objects in different namespaces.
  715. config KERNEL_USER_NS
  716. bool "User namespace (EXPERIMENTAL)"
  717. default y
  718. help
  719. This allows containers, i.e. vservers, to use user namespaces
  720. to provide different user info for different servers.
  721. config KERNEL_PID_NS
  722. bool "PID Namespaces"
  723. default y
  724. help
  725. Support process id namespaces. This allows having multiple
  726. processes with the same pid as long as they are in different
  727. pid namespaces. This is a building block of containers.
  728. config KERNEL_NET_NS
  729. bool "Network namespace"
  730. default y
  731. help
  732. Allow user space to create what appear to be multiple instances
  733. of the network stack.
  734. endif
  735. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  736. bool "Support multiple instances of devpts"
  737. default y if !SMALL_FLASH
  738. help
  739. Enable support for multiple instances of devpts filesystem.
  740. If you want to have isolated PTY namespaces (eg: in containers),
  741. say Y here. Otherwise, say N. If enabled, each mount of devpts
  742. filesystem with the '-o newinstance' option will create an
  743. independent PTY namespace.
  744. config KERNEL_POSIX_MQUEUE
  745. bool "POSIX Message Queues"
  746. default y if !SMALL_FLASH
  747. help
  748. POSIX variant of message queues is a part of IPC. In POSIX message
  749. queues every message has a priority which decides about succession
  750. of receiving it by a process. If you want to compile and run
  751. programs written e.g. for Solaris with use of its POSIX message
  752. queues (functions mq_*) say Y here.
  753. POSIX message queues are visible as a filesystem called 'mqueue'
  754. and can be mounted somewhere if you want to do filesystem
  755. operations on message queues.
  756. config KERNEL_SECCOMP_FILTER
  757. bool
  758. default y if !SMALL_FLASH
  759. config KERNEL_SECCOMP
  760. bool "Enable seccomp support"
  761. depends on !(TARGET_uml)
  762. select KERNEL_SECCOMP_FILTER
  763. default y if !SMALL_FLASH
  764. help
  765. Build kernel with support for seccomp.
  766. #
  767. # IPv4 configuration
  768. #
  769. config KERNEL_IP_MROUTE
  770. bool "Enable IPv4 multicast routing"
  771. default y
  772. help
  773. Multicast routing requires a multicast routing daemon in
  774. addition to kernel support.
  775. #
  776. # IPv6 configuration
  777. #
  778. config KERNEL_IPV6
  779. def_bool IPV6
  780. if KERNEL_IPV6
  781. config KERNEL_IPV6_MULTIPLE_TABLES
  782. def_bool y
  783. config KERNEL_IPV6_SUBTREES
  784. def_bool y
  785. config KERNEL_IPV6_MROUTE
  786. bool "Enable IPv6 multicast routing"
  787. default y
  788. help
  789. Multicast routing requires a multicast routing daemon in
  790. addition to kernel support.
  791. config KERNEL_IPV6_PIMSM_V2
  792. def_bool n
  793. endif
  794. #
  795. # NFS related symbols
  796. #
  797. config KERNEL_IP_PNP
  798. bool "Compile the kernel with rootfs on NFS"
  799. help
  800. If you want to make your kernel boot off a NFS server as root
  801. filesystem, select Y here.
  802. if KERNEL_IP_PNP
  803. config KERNEL_IP_PNP_DHCP
  804. def_bool y
  805. config KERNEL_IP_PNP_BOOTP
  806. def_bool n
  807. config KERNEL_IP_PNP_RARP
  808. def_bool n
  809. config KERNEL_NFS_FS
  810. def_bool y
  811. config KERNEL_NFS_V2
  812. def_bool y
  813. config KERNEL_NFS_V3
  814. def_bool y
  815. config KERNEL_ROOT_NFS
  816. def_bool y
  817. endif
  818. menu "Filesystem ACL and attr support options"
  819. config USE_FS_ACL_ATTR
  820. bool "Use filesystem ACL and attr support by default"
  821. default n
  822. help
  823. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  824. for kernel and packages, except tmpfs, flash filesystems,
  825. and old NFS. Also enable userspace extended attribute support
  826. by default. (OpenWrt already has an expection it will be
  827. present in the kernel).
  828. config KERNEL_FS_POSIX_ACL
  829. bool "Enable POSIX ACL support"
  830. default y if USE_FS_ACL_ATTR
  831. config KERNEL_BTRFS_FS_POSIX_ACL
  832. bool "Enable POSIX ACL for BtrFS Filesystems"
  833. select KERNEL_FS_POSIX_ACL
  834. default y if USE_FS_ACL_ATTR
  835. config KERNEL_EXT4_FS_POSIX_ACL
  836. bool "Enable POSIX ACL for Ext4 Filesystems"
  837. select KERNEL_FS_POSIX_ACL
  838. default y if USE_FS_ACL_ATTR
  839. config KERNEL_F2FS_FS_POSIX_ACL
  840. bool "Enable POSIX ACL for F2FS Filesystems"
  841. select KERNEL_FS_POSIX_ACL
  842. default n
  843. config KERNEL_JFFS2_FS_POSIX_ACL
  844. bool "Enable POSIX ACL for JFFS2 Filesystems"
  845. select KERNEL_FS_POSIX_ACL
  846. default n
  847. config KERNEL_TMPFS_POSIX_ACL
  848. bool "Enable POSIX ACL for TMPFS Filesystems"
  849. select KERNEL_FS_POSIX_ACL
  850. default n
  851. config KERNEL_CIFS_ACL
  852. bool "Enable CIFS ACLs"
  853. select KERNEL_FS_POSIX_ACL
  854. default y if USE_FS_ACL_ATTR
  855. config KERNEL_HFS_FS_POSIX_ACL
  856. bool "Enable POSIX ACL for HFS Filesystems"
  857. select KERNEL_FS_POSIX_ACL
  858. default y if USE_FS_ACL_ATTR
  859. config KERNEL_HFSPLUS_FS_POSIX_ACL
  860. bool "Enable POSIX ACL for HFS+ Filesystems"
  861. select KERNEL_FS_POSIX_ACL
  862. default y if USE_FS_ACL_ATTR
  863. config KERNEL_NFS_ACL_SUPPORT
  864. bool "Enable ACLs for NFS"
  865. default y if USE_FS_ACL_ATTR
  866. config KERNEL_NFS_V3_ACL_SUPPORT
  867. bool "Enable ACLs for NFSv3"
  868. default n
  869. config KERNEL_NFSD_V2_ACL_SUPPORT
  870. bool "Enable ACLs for NFSDv2"
  871. default n
  872. config KERNEL_NFSD_V3_ACL_SUPPORT
  873. bool "Enable ACLs for NFSDv3"
  874. default n
  875. config KERNEL_REISER_FS_POSIX_ACL
  876. bool "Enable POSIX ACLs for ReiserFS"
  877. select KERNEL_FS_POSIX_ACL
  878. default y if USE_FS_ACL_ATTR
  879. config KERNEL_XFS_POSIX_ACL
  880. bool "Enable POSIX ACLs for XFS"
  881. select KERNEL_FS_POSIX_ACL
  882. default y if USE_FS_ACL_ATTR
  883. config KERNEL_JFS_POSIX_ACL
  884. bool "Enable POSIX ACLs for JFS"
  885. select KERNEL_FS_POSIX_ACL
  886. default y if USE_FS_ACL_ATTR
  887. endmenu
  888. config KERNEL_DEVMEM
  889. bool "/dev/mem virtual device support"
  890. help
  891. Say Y here if you want to support the /dev/mem device.
  892. The /dev/mem device is used to access areas of physical
  893. memory.
  894. config KERNEL_DEVKMEM
  895. bool "/dev/kmem virtual device support"
  896. help
  897. Say Y here if you want to support the /dev/kmem device. The
  898. /dev/kmem device is rarely used, but can be used for certain
  899. kind of kernel debugging operations.
  900. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  901. int "Number of squashfs fragments cached"
  902. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  903. default 3
  904. config KERNEL_SQUASHFS_XATTR
  905. bool "Squashfs XATTR support"
  906. #
  907. # compile optimiziation setting
  908. #
  909. choice
  910. prompt "Compiler optimization level"
  911. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  912. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  913. bool "Optimize for performance"
  914. help
  915. This is the default optimization level for the kernel, building
  916. with the "-O2" compiler flag for best performance and most
  917. helpful compile-time warnings.
  918. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  919. bool "Optimize for size"
  920. help
  921. Enabling this option will pass "-Os" instead of "-O2" to
  922. your compiler resulting in a smaller kernel.
  923. endchoice
  924. config KERNEL_AUDIT
  925. bool "Auditing support"
  926. config KERNEL_SECURITY
  927. bool "Enable different security models"
  928. config KERNEL_SECURITY_NETWORK
  929. bool "Socket and Networking Security Hooks"
  930. select KERNEL_SECURITY
  931. config KERNEL_SECURITY_SELINUX
  932. bool "NSA SELinux Support"
  933. select KERNEL_SECURITY_NETWORK
  934. select KERNEL_AUDIT
  935. config KERNEL_SECURITY_SELINUX_BOOTPARAM
  936. bool "NSA SELinux boot parameter"
  937. depends on KERNEL_SECURITY_SELINUX
  938. default y
  939. config KERNEL_SECURITY_SELINUX_DISABLE
  940. bool "NSA SELinux runtime disable"
  941. depends on KERNEL_SECURITY_SELINUX
  942. config KERNEL_SECURITY_SELINUX_DEVELOP
  943. bool "NSA SELinux Development Support"
  944. depends on KERNEL_SECURITY_SELINUX
  945. default y
  946. config KERNEL_LSM
  947. string
  948. default "lockdown,yama,loadpin,safesetid,integrity,selinux"
  949. depends on KERNEL_SECURITY_SELINUX
  950. config KERNEL_EXT4_FS_SECURITY
  951. bool "Ext4 Security Labels"
  952. config KERNEL_F2FS_FS_SECURITY
  953. bool "F2FS Security Labels"
  954. config KERNEL_UBIFS_FS_SECURITY
  955. bool "UBIFS Security Labels"
  956. config KERNEL_JFFS2_FS_SECURITY
  957. bool "JFFS2 Security Labels"