Config-kernel.in 34 KB

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