Kconfig 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049
  1. config DEFCONFIG_LIST
  2. string
  3. depends on !UML
  4. option defconfig_list
  5. default "/lib/modules/$(shell,uname -r)/.config"
  6. default "/etc/kernel-config"
  7. default "/boot/config-$(shell,uname -r)"
  8. default ARCH_DEFCONFIG
  9. default "arch/$(ARCH)/defconfig"
  10. config CC_IS_GCC
  11. def_bool $(success,$(CC) --version | head -n 1 | grep -q gcc)
  12. config GCC_VERSION
  13. int
  14. default $(shell,$(srctree)/scripts/gcc-version.sh -p $(CC) | sed 's/^0*//') if CC_IS_GCC
  15. default 0
  16. config CC_IS_CLANG
  17. def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
  18. config CLANG_VERSION
  19. int
  20. default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
  21. config CONSTRUCTORS
  22. bool
  23. depends on !UML
  24. config IRQ_WORK
  25. bool
  26. config BUILDTIME_EXTABLE_SORT
  27. bool
  28. config THREAD_INFO_IN_TASK
  29. bool
  30. help
  31. Select this to move thread_info off the stack into task_struct. To
  32. make this work, an arch will need to remove all thread_info fields
  33. except flags and fix any runtime bugs.
  34. One subtle change that will be needed is to use try_get_task_stack()
  35. and put_task_stack() in save_thread_stack_tsk() and get_wchan().
  36. menu "General setup"
  37. config BROKEN
  38. bool
  39. config BROKEN_ON_SMP
  40. bool
  41. depends on BROKEN || !SMP
  42. default y
  43. config INIT_ENV_ARG_LIMIT
  44. int
  45. default 32 if !UML
  46. default 128 if UML
  47. help
  48. Maximum of each of the number of arguments and environment
  49. variables passed to init from the kernel command line.
  50. config COMPILE_TEST
  51. bool "Compile also drivers which will not load"
  52. depends on !UML
  53. default n
  54. help
  55. Some drivers can be compiled on a different platform than they are
  56. intended to be run on. Despite they cannot be loaded there (or even
  57. when they load they cannot be used due to missing HW support),
  58. developers still, opposing to distributors, might want to build such
  59. drivers to compile-test them.
  60. If you are a developer and want to build everything available, say Y
  61. here. If you are a user/distributor, say N here to exclude useless
  62. drivers to be distributed.
  63. config LOCALVERSION
  64. string "Local version - append to kernel release"
  65. help
  66. Append an extra string to the end of your kernel version.
  67. This will show up when you type uname, for example.
  68. The string you set here will be appended after the contents of
  69. any files with a filename matching localversion* in your
  70. object and source tree, in that order. Your total string can
  71. be a maximum of 64 characters.
  72. config LOCALVERSION_AUTO
  73. bool "Automatically append version information to the version string"
  74. default y
  75. depends on !COMPILE_TEST
  76. help
  77. This will try to automatically determine if the current tree is a
  78. release tree by looking for git tags that belong to the current
  79. top of tree revision.
  80. A string of the format -gxxxxxxxx will be added to the localversion
  81. if a git-based tree is found. The string generated by this will be
  82. appended after any matching localversion* files, and after the value
  83. set in CONFIG_LOCALVERSION.
  84. (The actual string used here is the first eight characters produced
  85. by running the command:
  86. $ git rev-parse --verify HEAD
  87. which is done within the script "scripts/setlocalversion".)
  88. config BUILD_SALT
  89. string "Build ID Salt"
  90. default ""
  91. help
  92. The build ID is used to link binaries and their debug info. Setting
  93. this option will use the value in the calculation of the build id.
  94. This is mostly useful for distributions which want to ensure the
  95. build is unique between builds. It's safe to leave the default.
  96. config HAVE_KERNEL_GZIP
  97. bool
  98. config HAVE_KERNEL_BZIP2
  99. bool
  100. config HAVE_KERNEL_LZMA
  101. bool
  102. config HAVE_KERNEL_XZ
  103. bool
  104. config HAVE_KERNEL_LZO
  105. bool
  106. config HAVE_KERNEL_LZ4
  107. bool
  108. config HAVE_KERNEL_UNCOMPRESSED
  109. bool
  110. choice
  111. prompt "Kernel compression mode"
  112. default KERNEL_GZIP
  113. depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
  114. help
  115. The linux kernel is a kind of self-extracting executable.
  116. Several compression algorithms are available, which differ
  117. in efficiency, compression and decompression speed.
  118. Compression speed is only relevant when building a kernel.
  119. Decompression speed is relevant at each boot.
  120. If you have any problems with bzip2 or lzma compressed
  121. kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
  122. version of this functionality (bzip2 only), for 2.4, was
  123. supplied by Christian Ludwig)
  124. High compression options are mostly useful for users, who
  125. are low on disk space (embedded systems), but for whom ram
  126. size matters less.
  127. If in doubt, select 'gzip'
  128. config KERNEL_GZIP
  129. bool "Gzip"
  130. depends on HAVE_KERNEL_GZIP
  131. help
  132. The old and tried gzip compression. It provides a good balance
  133. between compression ratio and decompression speed.
  134. config KERNEL_BZIP2
  135. bool "Bzip2"
  136. depends on HAVE_KERNEL_BZIP2
  137. help
  138. Its compression ratio and speed is intermediate.
  139. Decompression speed is slowest among the choices. The kernel
  140. size is about 10% smaller with bzip2, in comparison to gzip.
  141. Bzip2 uses a large amount of memory. For modern kernels you
  142. will need at least 8MB RAM or more for booting.
  143. config KERNEL_LZMA
  144. bool "LZMA"
  145. depends on HAVE_KERNEL_LZMA
  146. help
  147. This compression algorithm's ratio is best. Decompression speed
  148. is between gzip and bzip2. Compression is slowest.
  149. The kernel size is about 33% smaller with LZMA in comparison to gzip.
  150. config KERNEL_XZ
  151. bool "XZ"
  152. depends on HAVE_KERNEL_XZ
  153. help
  154. XZ uses the LZMA2 algorithm and instruction set specific
  155. BCJ filters which can improve compression ratio of executable
  156. code. The size of the kernel is about 30% smaller with XZ in
  157. comparison to gzip. On architectures for which there is a BCJ
  158. filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
  159. will create a few percent smaller kernel than plain LZMA.
  160. The speed is about the same as with LZMA: The decompression
  161. speed of XZ is better than that of bzip2 but worse than gzip
  162. and LZO. Compression is slow.
  163. config KERNEL_LZO
  164. bool "LZO"
  165. depends on HAVE_KERNEL_LZO
  166. help
  167. Its compression ratio is the poorest among the choices. The kernel
  168. size is about 10% bigger than gzip; however its speed
  169. (both compression and decompression) is the fastest.
  170. config KERNEL_LZ4
  171. bool "LZ4"
  172. depends on HAVE_KERNEL_LZ4
  173. help
  174. LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
  175. A preliminary version of LZ4 de/compression tool is available at
  176. <https://code.google.com/p/lz4/>.
  177. Its compression ratio is worse than LZO. The size of the kernel
  178. is about 8% bigger than LZO. But the decompression speed is
  179. faster than LZO.
  180. config KERNEL_UNCOMPRESSED
  181. bool "None"
  182. depends on HAVE_KERNEL_UNCOMPRESSED
  183. help
  184. Produce uncompressed kernel image. This option is usually not what
  185. you want. It is useful for debugging the kernel in slow simulation
  186. environments, where decompressing and moving the kernel is awfully
  187. slow. This option allows early boot code to skip the decompressor
  188. and jump right at uncompressed kernel image.
  189. endchoice
  190. config DEFAULT_HOSTNAME
  191. string "Default hostname"
  192. default "(none)"
  193. help
  194. This option determines the default system hostname before userspace
  195. calls sethostname(2). The kernel traditionally uses "(none)" here,
  196. but you may wish to use a different default here to make a minimal
  197. system more usable with less configuration.
  198. #
  199. # For some reason microblaze and nios2 hard code SWAP=n. Hopefully we can
  200. # add proper SWAP support to them, in which case this can be remove.
  201. #
  202. config ARCH_NO_SWAP
  203. bool
  204. config SWAP
  205. bool "Support for paging of anonymous memory (swap)"
  206. depends on MMU && BLOCK && !ARCH_NO_SWAP
  207. default y
  208. help
  209. This option allows you to choose whether you want to have support
  210. for so called swap devices or swap files in your kernel that are
  211. used to provide more virtual memory than the actual RAM present
  212. in your computer. If unsure say Y.
  213. config SYSVIPC
  214. bool "System V IPC"
  215. ---help---
  216. Inter Process Communication is a suite of library functions and
  217. system calls which let processes (running programs) synchronize and
  218. exchange information. It is generally considered to be a good thing,
  219. and some programs won't run unless you say Y here. In particular, if
  220. you want to run the DOS emulator dosemu under Linux (read the
  221. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  222. you'll need to say Y here.
  223. You can find documentation about IPC with "info ipc" and also in
  224. section 6.4 of the Linux Programmer's Guide, available from
  225. <http://www.tldp.org/guides.html>.
  226. config SYSVIPC_SYSCTL
  227. bool
  228. depends on SYSVIPC
  229. depends on SYSCTL
  230. default y
  231. config POSIX_MQUEUE
  232. bool "POSIX Message Queues"
  233. depends on NET
  234. ---help---
  235. POSIX variant of message queues is a part of IPC. In POSIX message
  236. queues every message has a priority which decides about succession
  237. of receiving it by a process. If you want to compile and run
  238. programs written e.g. for Solaris with use of its POSIX message
  239. queues (functions mq_*) say Y here.
  240. POSIX message queues are visible as a filesystem called 'mqueue'
  241. and can be mounted somewhere if you want to do filesystem
  242. operations on message queues.
  243. If unsure, say Y.
  244. config POSIX_MQUEUE_SYSCTL
  245. bool
  246. depends on POSIX_MQUEUE
  247. depends on SYSCTL
  248. default y
  249. config CROSS_MEMORY_ATTACH
  250. bool "Enable process_vm_readv/writev syscalls"
  251. depends on MMU
  252. default y
  253. help
  254. Enabling this option adds the system calls process_vm_readv and
  255. process_vm_writev which allow a process with the correct privileges
  256. to directly read from or write to another process' address space.
  257. See the man page for more details.
  258. config USELIB
  259. bool "uselib syscall"
  260. def_bool ALPHA || M68K || SPARC || X86_32 || IA32_EMULATION
  261. help
  262. This option enables the uselib syscall, a system call used in the
  263. dynamic linker from libc5 and earlier. glibc does not use this
  264. system call. If you intend to run programs built on libc5 or
  265. earlier, you may need to enable this syscall. Current systems
  266. running glibc can safely disable this.
  267. config AUDIT
  268. bool "Auditing support"
  269. depends on NET
  270. help
  271. Enable auditing infrastructure that can be used with another
  272. kernel subsystem, such as SELinux (which requires this for
  273. logging of avc messages output). System call auditing is included
  274. on architectures which support it.
  275. config HAVE_ARCH_AUDITSYSCALL
  276. bool
  277. config AUDITSYSCALL
  278. def_bool y
  279. depends on AUDIT && HAVE_ARCH_AUDITSYSCALL
  280. config AUDIT_WATCH
  281. def_bool y
  282. depends on AUDITSYSCALL
  283. select FSNOTIFY
  284. config AUDIT_TREE
  285. def_bool y
  286. depends on AUDITSYSCALL
  287. select FSNOTIFY
  288. source "kernel/irq/Kconfig"
  289. source "kernel/time/Kconfig"
  290. source "kernel/Kconfig.preempt"
  291. menu "CPU/Task time and stats accounting"
  292. config VIRT_CPU_ACCOUNTING
  293. bool
  294. choice
  295. prompt "Cputime accounting"
  296. default TICK_CPU_ACCOUNTING if !PPC64
  297. default VIRT_CPU_ACCOUNTING_NATIVE if PPC64
  298. # Kind of a stub config for the pure tick based cputime accounting
  299. config TICK_CPU_ACCOUNTING
  300. bool "Simple tick based cputime accounting"
  301. depends on !S390 && !NO_HZ_FULL
  302. help
  303. This is the basic tick based cputime accounting that maintains
  304. statistics about user, system and idle time spent on per jiffies
  305. granularity.
  306. If unsure, say Y.
  307. config VIRT_CPU_ACCOUNTING_NATIVE
  308. bool "Deterministic task and CPU time accounting"
  309. depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
  310. select VIRT_CPU_ACCOUNTING
  311. help
  312. Select this option to enable more accurate task and CPU time
  313. accounting. This is done by reading a CPU counter on each
  314. kernel entry and exit and on transitions within the kernel
  315. between system, softirq and hardirq state, so there is a
  316. small performance impact. In the case of s390 or IBM POWER > 5,
  317. this also enables accounting of stolen time on logically-partitioned
  318. systems.
  319. config VIRT_CPU_ACCOUNTING_GEN
  320. bool "Full dynticks CPU time accounting"
  321. depends on HAVE_CONTEXT_TRACKING
  322. depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
  323. select VIRT_CPU_ACCOUNTING
  324. select CONTEXT_TRACKING
  325. help
  326. Select this option to enable task and CPU time accounting on full
  327. dynticks systems. This accounting is implemented by watching every
  328. kernel-user boundaries using the context tracking subsystem.
  329. The accounting is thus performed at the expense of some significant
  330. overhead.
  331. For now this is only useful if you are working on the full
  332. dynticks subsystem development.
  333. If unsure, say N.
  334. endchoice
  335. config IRQ_TIME_ACCOUNTING
  336. bool "Fine granularity task level IRQ time accounting"
  337. depends on HAVE_IRQ_TIME_ACCOUNTING && !VIRT_CPU_ACCOUNTING_NATIVE
  338. help
  339. Select this option to enable fine granularity task irq time
  340. accounting. This is done by reading a timestamp on each
  341. transitions between softirq and hardirq state, so there can be a
  342. small performance impact.
  343. If in doubt, say N here.
  344. config HAVE_SCHED_AVG_IRQ
  345. def_bool y
  346. depends on IRQ_TIME_ACCOUNTING || PARAVIRT_TIME_ACCOUNTING
  347. depends on SMP
  348. config BSD_PROCESS_ACCT
  349. bool "BSD Process Accounting"
  350. depends on MULTIUSER
  351. help
  352. If you say Y here, a user level program will be able to instruct the
  353. kernel (via a special system call) to write process accounting
  354. information to a file: whenever a process exits, information about
  355. that process will be appended to the file by the kernel. The
  356. information includes things such as creation time, owning user,
  357. command name, memory usage, controlling terminal etc. (the complete
  358. list is in the struct acct in <file:include/linux/acct.h>). It is
  359. up to the user level program to do useful things with this
  360. information. This is generally a good idea, so say Y.
  361. config BSD_PROCESS_ACCT_V3
  362. bool "BSD Process Accounting version 3 file format"
  363. depends on BSD_PROCESS_ACCT
  364. default n
  365. help
  366. If you say Y here, the process accounting information is written
  367. in a new file format that also logs the process IDs of each
  368. process and its parent. Note that this file format is incompatible
  369. with previous v0/v1/v2 file formats, so you will need updated tools
  370. for processing it. A preliminary version of these tools is available
  371. at <http://www.gnu.org/software/acct/>.
  372. config TASKSTATS
  373. bool "Export task/process statistics through netlink"
  374. depends on NET
  375. depends on MULTIUSER
  376. default n
  377. help
  378. Export selected statistics for tasks/processes through the
  379. generic netlink interface. Unlike BSD process accounting, the
  380. statistics are available during the lifetime of tasks/processes as
  381. responses to commands. Like BSD accounting, they are sent to user
  382. space on task exit.
  383. Say N if unsure.
  384. config TASK_DELAY_ACCT
  385. bool "Enable per-task delay accounting"
  386. depends on TASKSTATS
  387. select SCHED_INFO
  388. help
  389. Collect information on time spent by a task waiting for system
  390. resources like cpu, synchronous block I/O completion and swapping
  391. in pages. Such statistics can help in setting a task's priorities
  392. relative to other tasks for cpu, io, rss limits etc.
  393. Say N if unsure.
  394. config TASK_XACCT
  395. bool "Enable extended accounting over taskstats"
  396. depends on TASKSTATS
  397. help
  398. Collect extended task accounting data and send the data
  399. to userland for processing over the taskstats interface.
  400. Say N if unsure.
  401. config TASK_IO_ACCOUNTING
  402. bool "Enable per-task storage I/O accounting"
  403. depends on TASK_XACCT
  404. help
  405. Collect information on the number of bytes of storage I/O which this
  406. task has caused.
  407. Say N if unsure.
  408. config PSI
  409. bool "Pressure stall information tracking"
  410. help
  411. Collect metrics that indicate how overcommitted the CPU, memory,
  412. and IO capacity are in the system.
  413. If you say Y here, the kernel will create /proc/pressure/ with the
  414. pressure statistics files cpu, memory, and io. These will indicate
  415. the share of walltime in which some or all tasks in the system are
  416. delayed due to contention of the respective resource.
  417. In kernels with cgroup support, cgroups (cgroup2 only) will
  418. have cpu.pressure, memory.pressure, and io.pressure files,
  419. which aggregate pressure stalls for the grouped tasks only.
  420. For more details see Documentation/accounting/psi.txt.
  421. Say N if unsure.
  422. config PSI_DEFAULT_DISABLED
  423. bool "Require boot parameter to enable pressure stall information tracking"
  424. default n
  425. depends on PSI
  426. help
  427. If set, pressure stall information tracking will be disabled
  428. per default but can be enabled through passing psi=1 on the
  429. kernel commandline during boot.
  430. endmenu # "CPU/Task time and stats accounting"
  431. config CPU_ISOLATION
  432. bool "CPU isolation"
  433. depends on SMP || COMPILE_TEST
  434. default y
  435. help
  436. Make sure that CPUs running critical tasks are not disturbed by
  437. any source of "noise" such as unbound workqueues, timers, kthreads...
  438. Unbound jobs get offloaded to housekeeping CPUs. This is driven by
  439. the "isolcpus=" boot parameter.
  440. Say Y if unsure.
  441. source "kernel/rcu/Kconfig"
  442. config BUILD_BIN2C
  443. bool
  444. default n
  445. config IKCONFIG
  446. tristate "Kernel .config support"
  447. select BUILD_BIN2C
  448. ---help---
  449. This option enables the complete Linux kernel ".config" file
  450. contents to be saved in the kernel. It provides documentation
  451. of which kernel options are used in a running kernel or in an
  452. on-disk kernel. This information can be extracted from the kernel
  453. image file with the script scripts/extract-ikconfig and used as
  454. input to rebuild the current kernel or to build another kernel.
  455. It can also be extracted from a running kernel by reading
  456. /proc/config.gz if enabled (below).
  457. config IKCONFIG_PROC
  458. bool "Enable access to .config through /proc/config.gz"
  459. depends on IKCONFIG && PROC_FS
  460. ---help---
  461. This option enables access to the kernel configuration file
  462. through /proc/config.gz.
  463. config LOG_BUF_SHIFT
  464. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  465. range 12 25
  466. default 17
  467. depends on PRINTK
  468. help
  469. Select the minimal kernel log buffer size as a power of 2.
  470. The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
  471. parameter, see below. Any higher size also might be forced
  472. by "log_buf_len" boot parameter.
  473. Examples:
  474. 17 => 128 KB
  475. 16 => 64 KB
  476. 15 => 32 KB
  477. 14 => 16 KB
  478. 13 => 8 KB
  479. 12 => 4 KB
  480. config LOG_CPU_MAX_BUF_SHIFT
  481. int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
  482. depends on SMP
  483. range 0 21
  484. default 12 if !BASE_SMALL
  485. default 0 if BASE_SMALL
  486. depends on PRINTK
  487. help
  488. This option allows to increase the default ring buffer size
  489. according to the number of CPUs. The value defines the contribution
  490. of each CPU as a power of 2. The used space is typically only few
  491. lines however it might be much more when problems are reported,
  492. e.g. backtraces.
  493. The increased size means that a new buffer has to be allocated and
  494. the original static one is unused. It makes sense only on systems
  495. with more CPUs. Therefore this value is used only when the sum of
  496. contributions is greater than the half of the default kernel ring
  497. buffer as defined by LOG_BUF_SHIFT. The default values are set
  498. so that more than 64 CPUs are needed to trigger the allocation.
  499. Also this option is ignored when "log_buf_len" kernel parameter is
  500. used as it forces an exact (power of two) size of the ring buffer.
  501. The number of possible CPUs is used for this computation ignoring
  502. hotplugging making the computation optimal for the worst case
  503. scenario while allowing a simple algorithm to be used from bootup.
  504. Examples shift values and their meaning:
  505. 17 => 128 KB for each CPU
  506. 16 => 64 KB for each CPU
  507. 15 => 32 KB for each CPU
  508. 14 => 16 KB for each CPU
  509. 13 => 8 KB for each CPU
  510. 12 => 4 KB for each CPU
  511. config PRINTK_SAFE_LOG_BUF_SHIFT
  512. int "Temporary per-CPU printk log buffer size (12 => 4KB, 13 => 8KB)"
  513. range 10 21
  514. default 13
  515. depends on PRINTK
  516. help
  517. Select the size of an alternate printk per-CPU buffer where messages
  518. printed from usafe contexts are temporary stored. One example would
  519. be NMI messages, another one - printk recursion. The messages are
  520. copied to the main log buffer in a safe context to avoid a deadlock.
  521. The value defines the size as a power of 2.
  522. Those messages are rare and limited. The largest one is when
  523. a backtrace is printed. It usually fits into 4KB. Select
  524. 8KB if you want to be on the safe side.
  525. Examples:
  526. 17 => 128 KB for each CPU
  527. 16 => 64 KB for each CPU
  528. 15 => 32 KB for each CPU
  529. 14 => 16 KB for each CPU
  530. 13 => 8 KB for each CPU
  531. 12 => 4 KB for each CPU
  532. #
  533. # Architectures with an unreliable sched_clock() should select this:
  534. #
  535. config HAVE_UNSTABLE_SCHED_CLOCK
  536. bool
  537. config GENERIC_SCHED_CLOCK
  538. bool
  539. #
  540. # For architectures that want to enable the support for NUMA-affine scheduler
  541. # balancing logic:
  542. #
  543. config ARCH_SUPPORTS_NUMA_BALANCING
  544. bool
  545. #
  546. # For architectures that prefer to flush all TLBs after a number of pages
  547. # are unmapped instead of sending one IPI per page to flush. The architecture
  548. # must provide guarantees on what happens if a clean TLB cache entry is
  549. # written after the unmap. Details are in mm/rmap.c near the check for
  550. # should_defer_flush. The architecture should also consider if the full flush
  551. # and the refill costs are offset by the savings of sending fewer IPIs.
  552. config ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
  553. bool
  554. #
  555. # For architectures that know their GCC __int128 support is sound
  556. #
  557. config ARCH_SUPPORTS_INT128
  558. bool
  559. # For architectures that (ab)use NUMA to represent different memory regions
  560. # all cpu-local but of different latencies, such as SuperH.
  561. #
  562. config ARCH_WANT_NUMA_VARIABLE_LOCALITY
  563. bool
  564. config NUMA_BALANCING
  565. bool "Memory placement aware NUMA scheduler"
  566. depends on ARCH_SUPPORTS_NUMA_BALANCING
  567. depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
  568. depends on SMP && NUMA && MIGRATION
  569. help
  570. This option adds support for automatic NUMA aware memory/task placement.
  571. The mechanism is quite primitive and is based on migrating memory when
  572. it has references to the node the task is running on.
  573. This system will be inactive on UMA systems.
  574. config NUMA_BALANCING_DEFAULT_ENABLED
  575. bool "Automatically enable NUMA aware memory/task placement"
  576. default y
  577. depends on NUMA_BALANCING
  578. help
  579. If set, automatic NUMA balancing will be enabled if running on a NUMA
  580. machine.
  581. menuconfig CGROUPS
  582. bool "Control Group support"
  583. select KERNFS
  584. help
  585. This option adds support for grouping sets of processes together, for
  586. use with process control subsystems such as Cpusets, CFS, memory
  587. controls or device isolation.
  588. See
  589. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  590. - Documentation/cgroup-v1/ (features for grouping, isolation
  591. and resource control)
  592. Say N if unsure.
  593. if CGROUPS
  594. config PAGE_COUNTER
  595. bool
  596. config MEMCG
  597. bool "Memory controller"
  598. select PAGE_COUNTER
  599. select EVENTFD
  600. help
  601. Provides control over the memory footprint of tasks in a cgroup.
  602. config MEMCG_SWAP
  603. bool "Swap controller"
  604. depends on MEMCG && SWAP
  605. help
  606. Provides control over the swap space consumed by tasks in a cgroup.
  607. config MEMCG_SWAP_ENABLED
  608. bool "Swap controller enabled by default"
  609. depends on MEMCG_SWAP
  610. default y
  611. help
  612. Memory Resource Controller Swap Extension comes with its price in
  613. a bigger memory consumption. General purpose distribution kernels
  614. which want to enable the feature but keep it disabled by default
  615. and let the user enable it by swapaccount=1 boot command line
  616. parameter should have this option unselected.
  617. For those who want to have the feature enabled by default should
  618. select this option (if, for some reason, they need to disable it
  619. then swapaccount=0 does the trick).
  620. config MEMCG_KMEM
  621. bool
  622. depends on MEMCG && !SLOB
  623. default y
  624. config BLK_CGROUP
  625. bool "IO controller"
  626. depends on BLOCK
  627. default n
  628. ---help---
  629. Generic block IO controller cgroup interface. This is the common
  630. cgroup interface which should be used by various IO controlling
  631. policies.
  632. Currently, CFQ IO scheduler uses it to recognize task groups and
  633. control disk bandwidth allocation (proportional time slice allocation)
  634. to such task groups. It is also used by bio throttling logic in
  635. block layer to implement upper limit in IO rates on a device.
  636. This option only enables generic Block IO controller infrastructure.
  637. One needs to also enable actual IO controlling logic/policy. For
  638. enabling proportional weight division of disk bandwidth in CFQ, set
  639. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  640. CONFIG_BLK_DEV_THROTTLING=y.
  641. See Documentation/cgroup-v1/blkio-controller.txt for more information.
  642. config DEBUG_BLK_CGROUP
  643. bool "IO controller debugging"
  644. depends on BLK_CGROUP
  645. default n
  646. ---help---
  647. Enable some debugging help. Currently it exports additional stat
  648. files in a cgroup which can be useful for debugging.
  649. config CGROUP_WRITEBACK
  650. bool
  651. depends on MEMCG && BLK_CGROUP
  652. default y
  653. menuconfig CGROUP_SCHED
  654. bool "CPU controller"
  655. default n
  656. help
  657. This feature lets CPU scheduler recognize task groups and control CPU
  658. bandwidth allocation to such task groups. It uses cgroups to group
  659. tasks.
  660. if CGROUP_SCHED
  661. config FAIR_GROUP_SCHED
  662. bool "Group scheduling for SCHED_OTHER"
  663. depends on CGROUP_SCHED
  664. default CGROUP_SCHED
  665. config CFS_BANDWIDTH
  666. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  667. depends on FAIR_GROUP_SCHED
  668. default n
  669. help
  670. This option allows users to define CPU bandwidth rates (limits) for
  671. tasks running within the fair group scheduler. Groups with no limit
  672. set are considered to be unconstrained and will run with no
  673. restriction.
  674. See Documentation/scheduler/sched-bwc.txt for more information.
  675. config RT_GROUP_SCHED
  676. bool "Group scheduling for SCHED_RR/FIFO"
  677. depends on CGROUP_SCHED
  678. default n
  679. help
  680. This feature lets you explicitly allocate real CPU bandwidth
  681. to task groups. If enabled, it will also make it impossible to
  682. schedule realtime tasks for non-root users until you allocate
  683. realtime bandwidth for them.
  684. See Documentation/scheduler/sched-rt-group.txt for more information.
  685. endif #CGROUP_SCHED
  686. config CGROUP_PIDS
  687. bool "PIDs controller"
  688. help
  689. Provides enforcement of process number limits in the scope of a
  690. cgroup. Any attempt to fork more processes than is allowed in the
  691. cgroup will fail. PIDs are fundamentally a global resource because it
  692. is fairly trivial to reach PID exhaustion before you reach even a
  693. conservative kmemcg limit. As a result, it is possible to grind a
  694. system to halt without being limited by other cgroup policies. The
  695. PIDs controller is designed to stop this from happening.
  696. It should be noted that organisational operations (such as attaching
  697. to a cgroup hierarchy will *not* be blocked by the PIDs controller),
  698. since the PIDs limit only affects a process's ability to fork, not to
  699. attach to a cgroup.
  700. config CGROUP_RDMA
  701. bool "RDMA controller"
  702. help
  703. Provides enforcement of RDMA resources defined by IB stack.
  704. It is fairly easy for consumers to exhaust RDMA resources, which
  705. can result into resource unavailability to other consumers.
  706. RDMA controller is designed to stop this from happening.
  707. Attaching processes with active RDMA resources to the cgroup
  708. hierarchy is allowed even if can cross the hierarchy's limit.
  709. config CGROUP_FREEZER
  710. bool "Freezer controller"
  711. help
  712. Provides a way to freeze and unfreeze all tasks in a
  713. cgroup.
  714. This option affects the ORIGINAL cgroup interface. The cgroup2 memory
  715. controller includes important in-kernel memory consumers per default.
  716. If you're using cgroup2, say N.
  717. config CGROUP_HUGETLB
  718. bool "HugeTLB controller"
  719. depends on HUGETLB_PAGE
  720. select PAGE_COUNTER
  721. default n
  722. help
  723. Provides a cgroup controller for HugeTLB pages.
  724. When you enable this, you can put a per cgroup limit on HugeTLB usage.
  725. The limit is enforced during page fault. Since HugeTLB doesn't
  726. support page reclaim, enforcing the limit at page fault time implies
  727. that, the application will get SIGBUS signal if it tries to access
  728. HugeTLB pages beyond its limit. This requires the application to know
  729. beforehand how much HugeTLB pages it would require for its use. The
  730. control group is tracked in the third page lru pointer. This means
  731. that we cannot use the controller with huge page less than 3 pages.
  732. config CPUSETS
  733. bool "Cpuset controller"
  734. depends on SMP
  735. help
  736. This option will let you create and manage CPUSETs which
  737. allow dynamically partitioning a system into sets of CPUs and
  738. Memory Nodes and assigning tasks to run only within those sets.
  739. This is primarily useful on large SMP or NUMA systems.
  740. Say N if unsure.
  741. config PROC_PID_CPUSET
  742. bool "Include legacy /proc/<pid>/cpuset file"
  743. depends on CPUSETS
  744. default y
  745. config CGROUP_DEVICE
  746. bool "Device controller"
  747. help
  748. Provides a cgroup controller implementing whitelists for
  749. devices which a process in the cgroup can mknod or open.
  750. config CGROUP_CPUACCT
  751. bool "Simple CPU accounting controller"
  752. help
  753. Provides a simple controller for monitoring the
  754. total CPU consumed by the tasks in a cgroup.
  755. config CGROUP_PERF
  756. bool "Perf controller"
  757. depends on PERF_EVENTS
  758. help
  759. This option extends the perf per-cpu mode to restrict monitoring
  760. to threads which belong to the cgroup specified and run on the
  761. designated cpu.
  762. Say N if unsure.
  763. config CGROUP_BPF
  764. bool "Support for eBPF programs attached to cgroups"
  765. depends on BPF_SYSCALL
  766. select SOCK_CGROUP_DATA
  767. help
  768. Allow attaching eBPF programs to a cgroup using the bpf(2)
  769. syscall command BPF_PROG_ATTACH.
  770. In which context these programs are accessed depends on the type
  771. of attachment. For instance, programs that are attached using
  772. BPF_CGROUP_INET_INGRESS will be executed on the ingress path of
  773. inet sockets.
  774. config CGROUP_DEBUG
  775. bool "Debug controller"
  776. default n
  777. depends on DEBUG_KERNEL
  778. help
  779. This option enables a simple controller that exports
  780. debugging information about the cgroups framework. This
  781. controller is for control cgroup debugging only. Its
  782. interfaces are not stable.
  783. Say N.
  784. config SOCK_CGROUP_DATA
  785. bool
  786. default n
  787. endif # CGROUPS
  788. menuconfig NAMESPACES
  789. bool "Namespaces support" if EXPERT
  790. depends on MULTIUSER
  791. default !EXPERT
  792. help
  793. Provides the way to make tasks work with different objects using
  794. the same id. For example same IPC id may refer to different objects
  795. or same user id or pid may refer to different tasks when used in
  796. different namespaces.
  797. if NAMESPACES
  798. config UTS_NS
  799. bool "UTS namespace"
  800. default y
  801. help
  802. In this namespace tasks see different info provided with the
  803. uname() system call
  804. config IPC_NS
  805. bool "IPC namespace"
  806. depends on (SYSVIPC || POSIX_MQUEUE)
  807. default y
  808. help
  809. In this namespace tasks work with IPC ids which correspond to
  810. different IPC objects in different namespaces.
  811. config USER_NS
  812. bool "User namespace"
  813. default n
  814. help
  815. This allows containers, i.e. vservers, to use user namespaces
  816. to provide different user info for different servers.
  817. When user namespaces are enabled in the kernel it is
  818. recommended that the MEMCG option also be enabled and that
  819. user-space use the memory control groups to limit the amount
  820. of memory a memory unprivileged users can use.
  821. If unsure, say N.
  822. config PID_NS
  823. bool "PID Namespaces"
  824. default y
  825. help
  826. Support process id namespaces. This allows having multiple
  827. processes with the same pid as long as they are in different
  828. pid namespaces. This is a building block of containers.
  829. config NET_NS
  830. bool "Network namespace"
  831. depends on NET
  832. default y
  833. help
  834. Allow user space to create what appear to be multiple instances
  835. of the network stack.
  836. endif # NAMESPACES
  837. config CHECKPOINT_RESTORE
  838. bool "Checkpoint/restore support"
  839. select PROC_CHILDREN
  840. default n
  841. help
  842. Enables additional kernel features in a sake of checkpoint/restore.
  843. In particular it adds auxiliary prctl codes to setup process text,
  844. data and heap segment sizes, and a few additional /proc filesystem
  845. entries.
  846. If unsure, say N here.
  847. config SCHED_AUTOGROUP
  848. bool "Automatic process group scheduling"
  849. select CGROUPS
  850. select CGROUP_SCHED
  851. select FAIR_GROUP_SCHED
  852. help
  853. This option optimizes the scheduler for common desktop workloads by
  854. automatically creating and populating task groups. This separation
  855. of workloads isolates aggressive CPU burners (like build jobs) from
  856. desktop applications. Task group autogeneration is currently based
  857. upon task session.
  858. config SYSFS_DEPRECATED
  859. bool "Enable deprecated sysfs features to support old userspace tools"
  860. depends on SYSFS
  861. default n
  862. help
  863. This option adds code that switches the layout of the "block" class
  864. devices, to not show up in /sys/class/block/, but only in
  865. /sys/block/.
  866. This switch is only active when the sysfs.deprecated=1 boot option is
  867. passed or the SYSFS_DEPRECATED_V2 option is set.
  868. This option allows new kernels to run on old distributions and tools,
  869. which might get confused by /sys/class/block/. Since 2007/2008 all
  870. major distributions and tools handle this just fine.
  871. Recent distributions and userspace tools after 2009/2010 depend on
  872. the existence of /sys/class/block/, and will not work with this
  873. option enabled.
  874. Only if you are using a new kernel on an old distribution, you might
  875. need to say Y here.
  876. config SYSFS_DEPRECATED_V2
  877. bool "Enable deprecated sysfs features by default"
  878. default n
  879. depends on SYSFS
  880. depends on SYSFS_DEPRECATED
  881. help
  882. Enable deprecated sysfs by default.
  883. See the CONFIG_SYSFS_DEPRECATED option for more details about this
  884. option.
  885. Only if you are using a new kernel on an old distribution, you might
  886. need to say Y here. Even then, odds are you would not need it
  887. enabled, you can always pass the boot option if absolutely necessary.
  888. config RELAY
  889. bool "Kernel->user space relay support (formerly relayfs)"
  890. select IRQ_WORK
  891. help
  892. This option enables support for relay interface support in
  893. certain file systems (such as debugfs).
  894. It is designed to provide an efficient mechanism for tools and
  895. facilities to relay large amounts of data from kernel space to
  896. user space.
  897. If unsure, say N.
  898. config BLK_DEV_INITRD
  899. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  900. help
  901. The initial RAM filesystem is a ramfs which is loaded by the
  902. boot loader (loadlin or lilo) and that is mounted as root
  903. before the normal boot procedure. It is typically used to
  904. load modules needed to mount the "real" root file system,
  905. etc. See <file:Documentation/admin-guide/initrd.rst> for details.
  906. If RAM disk support (BLK_DEV_RAM) is also included, this
  907. also enables initial RAM disk (initrd) support and adds
  908. 15 Kbytes (more on some other architectures) to the kernel size.
  909. If unsure say Y.
  910. if BLK_DEV_INITRD
  911. source "usr/Kconfig"
  912. endif
  913. choice
  914. prompt "Compiler optimization level"
  915. default CC_OPTIMIZE_FOR_PERFORMANCE
  916. config CC_OPTIMIZE_FOR_PERFORMANCE
  917. bool "Optimize for performance"
  918. help
  919. This is the default optimization level for the kernel, building
  920. with the "-O2" compiler flag for best performance and most
  921. helpful compile-time warnings.
  922. config CC_OPTIMIZE_FOR_SIZE
  923. bool "Optimize for size"
  924. help
  925. Enabling this option will pass "-Os" instead of "-O2" to
  926. your compiler resulting in a smaller kernel.
  927. If unsure, say N.
  928. endchoice
  929. config HAVE_LD_DEAD_CODE_DATA_ELIMINATION
  930. bool
  931. help
  932. This requires that the arch annotates or otherwise protects
  933. its external entry points from being discarded. Linker scripts
  934. must also merge .text.*, .data.*, and .bss.* correctly into
  935. output sections. Care must be taken not to pull in unrelated
  936. sections (e.g., '.text.init'). Typically '.' in section names
  937. is used to distinguish them from label names / C identifiers.
  938. config LD_DEAD_CODE_DATA_ELIMINATION
  939. bool "Dead code and data elimination (EXPERIMENTAL)"
  940. depends on HAVE_LD_DEAD_CODE_DATA_ELIMINATION
  941. depends on EXPERT
  942. depends on $(cc-option,-ffunction-sections -fdata-sections)
  943. depends on $(ld-option,--gc-sections)
  944. help
  945. Enable this if you want to do dead code and data elimination with
  946. the linker by compiling with -ffunction-sections -fdata-sections,
  947. and linking with --gc-sections.
  948. This can reduce on disk and in-memory size of the kernel
  949. code and static data, particularly for small configs and
  950. on small systems. This has the possibility of introducing
  951. silently broken kernel if the required annotations are not
  952. present. This option is not well tested yet, so use at your
  953. own risk.
  954. config SYSCTL
  955. bool
  956. config ANON_INODES
  957. bool
  958. config HAVE_UID16
  959. bool
  960. config SYSCTL_EXCEPTION_TRACE
  961. bool
  962. help
  963. Enable support for /proc/sys/debug/exception-trace.
  964. config SYSCTL_ARCH_UNALIGN_NO_WARN
  965. bool
  966. help
  967. Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
  968. Allows arch to define/use @no_unaligned_warning to possibly warn
  969. about unaligned access emulation going on under the hood.
  970. config SYSCTL_ARCH_UNALIGN_ALLOW
  971. bool
  972. help
  973. Enable support for /proc/sys/kernel/unaligned-trap
  974. Allows arches to define/use @unaligned_enabled to runtime toggle
  975. the unaligned access emulation.
  976. see arch/parisc/kernel/unaligned.c for reference
  977. config HAVE_PCSPKR_PLATFORM
  978. bool
  979. # interpreter that classic socket filters depend on
  980. config BPF
  981. bool
  982. menuconfig EXPERT
  983. bool "Configure standard kernel features (expert users)"
  984. # Unhide debug options, to make the on-by-default options visible
  985. select DEBUG_KERNEL
  986. help
  987. This option allows certain base kernel options and settings
  988. to be disabled or tweaked. This is for specialized
  989. environments which can tolerate a "non-standard" kernel.
  990. Only use this if you really know what you are doing.
  991. config UID16
  992. bool "Enable 16-bit UID system calls" if EXPERT
  993. depends on HAVE_UID16 && MULTIUSER
  994. default y
  995. help
  996. This enables the legacy 16-bit UID syscall wrappers.
  997. config MULTIUSER
  998. bool "Multiple users, groups and capabilities support" if EXPERT
  999. default y
  1000. help
  1001. This option enables support for non-root users, groups and
  1002. capabilities.
  1003. If you say N here, all processes will run with UID 0, GID 0, and all
  1004. possible capabilities. Saying N here also compiles out support for
  1005. system calls related to UIDs, GIDs, and capabilities, such as setuid,
  1006. setgid, and capset.
  1007. If unsure, say Y here.
  1008. config SGETMASK_SYSCALL
  1009. bool "sgetmask/ssetmask syscalls support" if EXPERT
  1010. def_bool PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH
  1011. ---help---
  1012. sys_sgetmask and sys_ssetmask are obsolete system calls
  1013. no longer supported in libc but still enabled by default in some
  1014. architectures.
  1015. If unsure, leave the default option here.
  1016. config SYSFS_SYSCALL
  1017. bool "Sysfs syscall support" if EXPERT
  1018. default y
  1019. ---help---
  1020. sys_sysfs is an obsolete system call no longer supported in libc.
  1021. Note that disabling this option is more secure but might break
  1022. compatibility with some systems.
  1023. If unsure say Y here.
  1024. config SYSCTL_SYSCALL
  1025. bool "Sysctl syscall support" if EXPERT
  1026. depends on PROC_SYSCTL
  1027. default n
  1028. select SYSCTL
  1029. ---help---
  1030. sys_sysctl uses binary paths that have been found challenging
  1031. to properly maintain and use. The interface in /proc/sys
  1032. using paths with ascii names is now the primary path to this
  1033. information.
  1034. Almost nothing using the binary sysctl interface so if you are
  1035. trying to save some space it is probably safe to disable this,
  1036. making your kernel marginally smaller.
  1037. If unsure say N here.
  1038. config FHANDLE
  1039. bool "open by fhandle syscalls" if EXPERT
  1040. select EXPORTFS
  1041. default y
  1042. help
  1043. If you say Y here, a user level program will be able to map
  1044. file names to handle and then later use the handle for
  1045. different file system operations. This is useful in implementing
  1046. userspace file servers, which now track files using handles instead
  1047. of names. The handle would remain the same even if file names
  1048. get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
  1049. syscalls.
  1050. config POSIX_TIMERS
  1051. bool "Posix Clocks & timers" if EXPERT
  1052. default y
  1053. help
  1054. This includes native support for POSIX timers to the kernel.
  1055. Some embedded systems have no use for them and therefore they
  1056. can be configured out to reduce the size of the kernel image.
  1057. When this option is disabled, the following syscalls won't be
  1058. available: timer_create, timer_gettime: timer_getoverrun,
  1059. timer_settime, timer_delete, clock_adjtime, getitimer,
  1060. setitimer, alarm. Furthermore, the clock_settime, clock_gettime,
  1061. clock_getres and clock_nanosleep syscalls will be limited to
  1062. CLOCK_REALTIME, CLOCK_MONOTONIC and CLOCK_BOOTTIME only.
  1063. If unsure say y.
  1064. config PRINTK
  1065. default y
  1066. bool "Enable support for printk" if EXPERT
  1067. select IRQ_WORK
  1068. help
  1069. This option enables normal printk support. Removing it
  1070. eliminates most of the message strings from the kernel image
  1071. and makes the kernel more or less silent. As this makes it
  1072. very difficult to diagnose system problems, saying N here is
  1073. strongly discouraged.
  1074. config PRINTK_NMI
  1075. def_bool y
  1076. depends on PRINTK
  1077. depends on HAVE_NMI
  1078. config BUG
  1079. bool "BUG() support" if EXPERT
  1080. default y
  1081. help
  1082. Disabling this option eliminates support for BUG and WARN, reducing
  1083. the size of your kernel image and potentially quietly ignoring
  1084. numerous fatal conditions. You should only consider disabling this
  1085. option for embedded systems with no facilities for reporting errors.
  1086. Just say Y.
  1087. config ELF_CORE
  1088. depends on COREDUMP
  1089. default y
  1090. bool "Enable ELF core dumps" if EXPERT
  1091. help
  1092. Enable support for generating core dumps. Disabling saves about 4k.
  1093. config PCSPKR_PLATFORM
  1094. bool "Enable PC-Speaker support" if EXPERT
  1095. depends on HAVE_PCSPKR_PLATFORM
  1096. select I8253_LOCK
  1097. default y
  1098. help
  1099. This option allows to disable the internal PC-Speaker
  1100. support, saving some memory.
  1101. config BASE_FULL
  1102. default y
  1103. bool "Enable full-sized data structures for core" if EXPERT
  1104. help
  1105. Disabling this option reduces the size of miscellaneous core
  1106. kernel data structures. This saves memory on small machines,
  1107. but may reduce performance.
  1108. config FUTEX
  1109. bool "Enable futex support" if EXPERT
  1110. default y
  1111. imply RT_MUTEXES
  1112. help
  1113. Disabling this option will cause the kernel to be built without
  1114. support for "fast userspace mutexes". The resulting kernel may not
  1115. run glibc-based applications correctly.
  1116. config FUTEX_PI
  1117. bool
  1118. depends on FUTEX && RT_MUTEXES
  1119. default y
  1120. config HAVE_FUTEX_CMPXCHG
  1121. bool
  1122. depends on FUTEX
  1123. help
  1124. Architectures should select this if futex_atomic_cmpxchg_inatomic()
  1125. is implemented and always working. This removes a couple of runtime
  1126. checks.
  1127. config EPOLL
  1128. bool "Enable eventpoll support" if EXPERT
  1129. default y
  1130. select ANON_INODES
  1131. help
  1132. Disabling this option will cause the kernel to be built without
  1133. support for epoll family of system calls.
  1134. config SIGNALFD
  1135. bool "Enable signalfd() system call" if EXPERT
  1136. select ANON_INODES
  1137. default y
  1138. help
  1139. Enable the signalfd() system call that allows to receive signals
  1140. on a file descriptor.
  1141. If unsure, say Y.
  1142. config TIMERFD
  1143. bool "Enable timerfd() system call" if EXPERT
  1144. select ANON_INODES
  1145. default y
  1146. help
  1147. Enable the timerfd() system call that allows to receive timer
  1148. events on a file descriptor.
  1149. If unsure, say Y.
  1150. config EVENTFD
  1151. bool "Enable eventfd() system call" if EXPERT
  1152. select ANON_INODES
  1153. default y
  1154. help
  1155. Enable the eventfd() system call that allows to receive both
  1156. kernel notification (ie. KAIO) or userspace notifications.
  1157. If unsure, say Y.
  1158. config SHMEM
  1159. bool "Use full shmem filesystem" if EXPERT
  1160. default y
  1161. depends on MMU
  1162. help
  1163. The shmem is an internal filesystem used to manage shared memory.
  1164. It is backed by swap and manages resource limits. It is also exported
  1165. to userspace as tmpfs if TMPFS is enabled. Disabling this
  1166. option replaces shmem and tmpfs with the much simpler ramfs code,
  1167. which may be appropriate on small systems without swap.
  1168. config AIO
  1169. bool "Enable AIO support" if EXPERT
  1170. default y
  1171. help
  1172. This option enables POSIX asynchronous I/O which may by used
  1173. by some high performance threaded applications. Disabling
  1174. this option saves about 7k.
  1175. config ADVISE_SYSCALLS
  1176. bool "Enable madvise/fadvise syscalls" if EXPERT
  1177. default y
  1178. help
  1179. This option enables the madvise and fadvise syscalls, used by
  1180. applications to advise the kernel about their future memory or file
  1181. usage, improving performance. If building an embedded system where no
  1182. applications use these syscalls, you can disable this option to save
  1183. space.
  1184. config MEMBARRIER
  1185. bool "Enable membarrier() system call" if EXPERT
  1186. default y
  1187. help
  1188. Enable the membarrier() system call that allows issuing memory
  1189. barriers across all running threads, which can be used to distribute
  1190. the cost of user-space memory barriers asymmetrically by transforming
  1191. pairs of memory barriers into pairs consisting of membarrier() and a
  1192. compiler barrier.
  1193. If unsure, say Y.
  1194. config KALLSYMS
  1195. bool "Load all symbols for debugging/ksymoops" if EXPERT
  1196. default y
  1197. help
  1198. Say Y here to let the kernel print out symbolic crash information and
  1199. symbolic stack backtraces. This increases the size of the kernel
  1200. somewhat, as all symbols have to be loaded into the kernel image.
  1201. config KALLSYMS_ALL
  1202. bool "Include all symbols in kallsyms"
  1203. depends on DEBUG_KERNEL && KALLSYMS
  1204. help
  1205. Normally kallsyms only contains the symbols of functions for nicer
  1206. OOPS messages and backtraces (i.e., symbols from the text and inittext
  1207. sections). This is sufficient for most cases. And only in very rare
  1208. cases (e.g., when a debugger is used) all symbols are required (e.g.,
  1209. names of variables from the data sections, etc).
  1210. This option makes sure that all symbols are loaded into the kernel
  1211. image (i.e., symbols from all sections) in cost of increased kernel
  1212. size (depending on the kernel configuration, it may be 300KiB or
  1213. something like this).
  1214. Say N unless you really need all symbols.
  1215. config KALLSYMS_ABSOLUTE_PERCPU
  1216. bool
  1217. depends on KALLSYMS
  1218. default X86_64 && SMP
  1219. config KALLSYMS_BASE_RELATIVE
  1220. bool
  1221. depends on KALLSYMS
  1222. default !IA64
  1223. help
  1224. Instead of emitting them as absolute values in the native word size,
  1225. emit the symbol references in the kallsyms table as 32-bit entries,
  1226. each containing a relative value in the range [base, base + U32_MAX]
  1227. or, when KALLSYMS_ABSOLUTE_PERCPU is in effect, each containing either
  1228. an absolute value in the range [0, S32_MAX] or a relative value in the
  1229. range [base, base + S32_MAX], where base is the lowest relative symbol
  1230. address encountered in the image.
  1231. On 64-bit builds, this reduces the size of the address table by 50%,
  1232. but more importantly, it results in entries whose values are build
  1233. time constants, and no relocation pass is required at runtime to fix
  1234. up the entries based on the runtime load address of the kernel.
  1235. # end of the "standard kernel features (expert users)" menu
  1236. # syscall, maps, verifier
  1237. config BPF_SYSCALL
  1238. bool "Enable bpf() system call"
  1239. select ANON_INODES
  1240. select BPF
  1241. select IRQ_WORK
  1242. default n
  1243. help
  1244. Enable the bpf() system call that allows to manipulate eBPF
  1245. programs and maps via file descriptors.
  1246. config BPF_JIT_ALWAYS_ON
  1247. bool "Permanently enable BPF JIT and remove BPF interpreter"
  1248. depends on BPF_SYSCALL && HAVE_EBPF_JIT && BPF_JIT
  1249. help
  1250. Enables BPF JIT and removes BPF interpreter to avoid
  1251. speculative execution of BPF instructions by the interpreter
  1252. config USERFAULTFD
  1253. bool "Enable userfaultfd() system call"
  1254. select ANON_INODES
  1255. depends on MMU
  1256. help
  1257. Enable the userfaultfd() system call that allows to intercept and
  1258. handle page faults in userland.
  1259. config ARCH_HAS_MEMBARRIER_CALLBACKS
  1260. bool
  1261. config ARCH_HAS_MEMBARRIER_SYNC_CORE
  1262. bool
  1263. config RSEQ
  1264. bool "Enable rseq() system call" if EXPERT
  1265. default y
  1266. depends on HAVE_RSEQ
  1267. select MEMBARRIER
  1268. help
  1269. Enable the restartable sequences system call. It provides a
  1270. user-space cache for the current CPU number value, which
  1271. speeds up getting the current CPU number from user-space,
  1272. as well as an ABI to speed up user-space operations on
  1273. per-CPU data.
  1274. If unsure, say Y.
  1275. config DEBUG_RSEQ
  1276. default n
  1277. bool "Enabled debugging of rseq() system call" if EXPERT
  1278. depends on RSEQ && DEBUG_KERNEL
  1279. help
  1280. Enable extra debugging checks for the rseq system call.
  1281. If unsure, say N.
  1282. config EMBEDDED
  1283. bool "Embedded system"
  1284. option allnoconfig_y
  1285. select EXPERT
  1286. help
  1287. This option should be enabled if compiling the kernel for
  1288. an embedded system so certain expert options are available
  1289. for configuration.
  1290. config HAVE_PERF_EVENTS
  1291. bool
  1292. help
  1293. See tools/perf/design.txt for details.
  1294. config PERF_USE_VMALLOC
  1295. bool
  1296. help
  1297. See tools/perf/design.txt for details
  1298. config PC104
  1299. bool "PC/104 support" if EXPERT
  1300. help
  1301. Expose PC/104 form factor device drivers and options available for
  1302. selection and configuration. Enable this option if your target
  1303. machine has a PC/104 bus.
  1304. menu "Kernel Performance Events And Counters"
  1305. config PERF_EVENTS
  1306. bool "Kernel performance events and counters"
  1307. default y if PROFILING
  1308. depends on HAVE_PERF_EVENTS
  1309. select ANON_INODES
  1310. select IRQ_WORK
  1311. select SRCU
  1312. help
  1313. Enable kernel support for various performance events provided
  1314. by software and hardware.
  1315. Software events are supported either built-in or via the
  1316. use of generic tracepoints.
  1317. Most modern CPUs support performance events via performance
  1318. counter registers. These registers count the number of certain
  1319. types of hw events: such as instructions executed, cachemisses
  1320. suffered, or branches mis-predicted - without slowing down the
  1321. kernel or applications. These registers can also trigger interrupts
  1322. when a threshold number of events have passed - and can thus be
  1323. used to profile the code that runs on that CPU.
  1324. The Linux Performance Event subsystem provides an abstraction of
  1325. these software and hardware event capabilities, available via a
  1326. system call and used by the "perf" utility in tools/perf/. It
  1327. provides per task and per CPU counters, and it provides event
  1328. capabilities on top of those.
  1329. Say Y if unsure.
  1330. config DEBUG_PERF_USE_VMALLOC
  1331. default n
  1332. bool "Debug: use vmalloc to back perf mmap() buffers"
  1333. depends on PERF_EVENTS && DEBUG_KERNEL && !PPC
  1334. select PERF_USE_VMALLOC
  1335. help
  1336. Use vmalloc memory to back perf mmap() buffers.
  1337. Mostly useful for debugging the vmalloc code on platforms
  1338. that don't require it.
  1339. Say N if unsure.
  1340. endmenu
  1341. config VM_EVENT_COUNTERS
  1342. default y
  1343. bool "Enable VM event counters for /proc/vmstat" if EXPERT
  1344. help
  1345. VM event counters are needed for event counts to be shown.
  1346. This option allows the disabling of the VM event counters
  1347. on EXPERT systems. /proc/vmstat will only show page counts
  1348. if VM event counters are disabled.
  1349. config SLUB_DEBUG
  1350. default y
  1351. bool "Enable SLUB debugging support" if EXPERT
  1352. depends on SLUB && SYSFS
  1353. help
  1354. SLUB has extensive debug support features. Disabling these can
  1355. result in significant savings in code size. This also disables
  1356. SLUB sysfs support. /sys/slab will not exist and there will be
  1357. no support for cache validation etc.
  1358. config SLUB_MEMCG_SYSFS_ON
  1359. default n
  1360. bool "Enable memcg SLUB sysfs support by default" if EXPERT
  1361. depends on SLUB && SYSFS && MEMCG
  1362. help
  1363. SLUB creates a directory under /sys/kernel/slab for each
  1364. allocation cache to host info and debug files. If memory
  1365. cgroup is enabled, each cache can have per memory cgroup
  1366. caches. SLUB can create the same sysfs directories for these
  1367. caches under /sys/kernel/slab/CACHE/cgroup but it can lead
  1368. to a very high number of debug files being created. This is
  1369. controlled by slub_memcg_sysfs boot parameter and this
  1370. config option determines the parameter's default value.
  1371. config COMPAT_BRK
  1372. bool "Disable heap randomization"
  1373. default y
  1374. help
  1375. Randomizing heap placement makes heap exploits harder, but it
  1376. also breaks ancient binaries (including anything libc5 based).
  1377. This option changes the bootup default to heap randomization
  1378. disabled, and can be overridden at runtime by setting
  1379. /proc/sys/kernel/randomize_va_space to 2.
  1380. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  1381. choice
  1382. prompt "Choose SLAB allocator"
  1383. default SLUB
  1384. help
  1385. This option allows to select a slab allocator.
  1386. config SLAB
  1387. bool "SLAB"
  1388. select HAVE_HARDENED_USERCOPY_ALLOCATOR
  1389. help
  1390. The regular slab allocator that is established and known to work
  1391. well in all environments. It organizes cache hot objects in
  1392. per cpu and per node queues.
  1393. config SLUB
  1394. bool "SLUB (Unqueued Allocator)"
  1395. select HAVE_HARDENED_USERCOPY_ALLOCATOR
  1396. help
  1397. SLUB is a slab allocator that minimizes cache line usage
  1398. instead of managing queues of cached objects (SLAB approach).
  1399. Per cpu caching is realized using slabs of objects instead
  1400. of queues of objects. SLUB can use memory efficiently
  1401. and has enhanced diagnostics. SLUB is the default choice for
  1402. a slab allocator.
  1403. config SLOB
  1404. depends on EXPERT
  1405. bool "SLOB (Simple Allocator)"
  1406. help
  1407. SLOB replaces the stock allocator with a drastically simpler
  1408. allocator. SLOB is generally more space efficient but
  1409. does not perform as well on large systems.
  1410. endchoice
  1411. config SLAB_MERGE_DEFAULT
  1412. bool "Allow slab caches to be merged"
  1413. default y
  1414. help
  1415. For reduced kernel memory fragmentation, slab caches can be
  1416. merged when they share the same size and other characteristics.
  1417. This carries a risk of kernel heap overflows being able to
  1418. overwrite objects from merged caches (and more easily control
  1419. cache layout), which makes such heap attacks easier to exploit
  1420. by attackers. By keeping caches unmerged, these kinds of exploits
  1421. can usually only damage objects in the same cache. To disable
  1422. merging at runtime, "slab_nomerge" can be passed on the kernel
  1423. command line.
  1424. config SLAB_FREELIST_RANDOM
  1425. default n
  1426. depends on SLAB || SLUB
  1427. bool "SLAB freelist randomization"
  1428. help
  1429. Randomizes the freelist order used on creating new pages. This
  1430. security feature reduces the predictability of the kernel slab
  1431. allocator against heap overflows.
  1432. config SLAB_FREELIST_HARDENED
  1433. bool "Harden slab freelist metadata"
  1434. depends on SLUB
  1435. help
  1436. Many kernel heap attacks try to target slab cache metadata and
  1437. other infrastructure. This options makes minor performance
  1438. sacrifies to harden the kernel slab allocator against common
  1439. freelist exploit methods.
  1440. config SLUB_CPU_PARTIAL
  1441. default y
  1442. depends on SLUB && SMP
  1443. bool "SLUB per cpu partial cache"
  1444. help
  1445. Per cpu partial caches accellerate objects allocation and freeing
  1446. that is local to a processor at the price of more indeterminism
  1447. in the latency of the free. On overflow these caches will be cleared
  1448. which requires the taking of locks that may cause latency spikes.
  1449. Typically one would choose no for a realtime system.
  1450. config MMAP_ALLOW_UNINITIALIZED
  1451. bool "Allow mmapped anonymous memory to be uninitialized"
  1452. depends on EXPERT && !MMU
  1453. default n
  1454. help
  1455. Normally, and according to the Linux spec, anonymous memory obtained
  1456. from mmap() has its contents cleared before it is passed to
  1457. userspace. Enabling this config option allows you to request that
  1458. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  1459. providing a huge performance boost. If this option is not enabled,
  1460. then the flag will be ignored.
  1461. This is taken advantage of by uClibc's malloc(), and also by
  1462. ELF-FDPIC binfmt's brk and stack allocator.
  1463. Because of the obvious security issues, this option should only be
  1464. enabled on embedded devices where you control what is run in
  1465. userspace. Since that isn't generally a problem on no-MMU systems,
  1466. it is normally safe to say Y here.
  1467. See Documentation/nommu-mmap.txt for more information.
  1468. config SYSTEM_DATA_VERIFICATION
  1469. def_bool n
  1470. select SYSTEM_TRUSTED_KEYRING
  1471. select KEYS
  1472. select CRYPTO
  1473. select CRYPTO_RSA
  1474. select ASYMMETRIC_KEY_TYPE
  1475. select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  1476. select ASN1
  1477. select OID_REGISTRY
  1478. select X509_CERTIFICATE_PARSER
  1479. select PKCS7_MESSAGE_PARSER
  1480. help
  1481. Provide PKCS#7 message verification using the contents of the system
  1482. trusted keyring to provide public keys. This then can be used for
  1483. module verification, kexec image verification and firmware blob
  1484. verification.
  1485. config PROFILING
  1486. bool "Profiling support"
  1487. help
  1488. Say Y here to enable the extended profiling support mechanisms used
  1489. by profilers such as OProfile.
  1490. #
  1491. # Place an empty function call at each tracepoint site. Can be
  1492. # dynamically changed for a probe function.
  1493. #
  1494. config TRACEPOINTS
  1495. bool
  1496. endmenu # General setup
  1497. source "arch/Kconfig"
  1498. config RT_MUTEXES
  1499. bool
  1500. config BASE_SMALL
  1501. int
  1502. default 0 if BASE_FULL
  1503. default 1 if !BASE_FULL
  1504. menuconfig MODULES
  1505. bool "Enable loadable module support"
  1506. option modules
  1507. help
  1508. Kernel modules are small pieces of compiled code which can
  1509. be inserted in the running kernel, rather than being
  1510. permanently built into the kernel. You use the "modprobe"
  1511. tool to add (and sometimes remove) them. If you say Y here,
  1512. many parts of the kernel can be built as modules (by
  1513. answering M instead of Y where indicated): this is most
  1514. useful for infrequently used options which are not required
  1515. for booting. For more information, see the man pages for
  1516. modprobe, lsmod, modinfo, insmod and rmmod.
  1517. If you say Y here, you will need to run "make
  1518. modules_install" to put the modules under /lib/modules/
  1519. where modprobe can find them (you may need to be root to do
  1520. this).
  1521. If unsure, say Y.
  1522. if MODULES
  1523. config MODULE_FORCE_LOAD
  1524. bool "Forced module loading"
  1525. default n
  1526. help
  1527. Allow loading of modules without version information (ie. modprobe
  1528. --force). Forced module loading sets the 'F' (forced) taint flag and
  1529. is usually a really bad idea.
  1530. config MODULE_UNLOAD
  1531. bool "Module unloading"
  1532. help
  1533. Without this option you will not be able to unload any
  1534. modules (note that some modules may not be unloadable
  1535. anyway), which makes your kernel smaller, faster
  1536. and simpler. If unsure, say Y.
  1537. config MODULE_FORCE_UNLOAD
  1538. bool "Forced module unloading"
  1539. depends on MODULE_UNLOAD
  1540. help
  1541. This option allows you to force a module to unload, even if the
  1542. kernel believes it is unsafe: the kernel will remove the module
  1543. without waiting for anyone to stop using it (using the -f option to
  1544. rmmod). This is mainly for kernel developers and desperate users.
  1545. If unsure, say N.
  1546. config MODVERSIONS
  1547. bool "Module versioning support"
  1548. help
  1549. Usually, you have to use modules compiled with your kernel.
  1550. Saying Y here makes it sometimes possible to use modules
  1551. compiled for different kernels, by adding enough information
  1552. to the modules to (hopefully) spot any changes which would
  1553. make them incompatible with the kernel you are running. If
  1554. unsure, say N.
  1555. config MODULE_REL_CRCS
  1556. bool
  1557. depends on MODVERSIONS
  1558. config MODULE_SRCVERSION_ALL
  1559. bool "Source checksum for all modules"
  1560. help
  1561. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1562. field inserted into their modinfo section, which contains a
  1563. sum of the source files which made it. This helps maintainers
  1564. see exactly which source was used to build a module (since
  1565. others sometimes change the module source without updating
  1566. the version). With this option, such a "srcversion" field
  1567. will be created for all modules. If unsure, say N.
  1568. config MODULE_SIG
  1569. bool "Module signature verification"
  1570. depends on MODULES
  1571. select SYSTEM_DATA_VERIFICATION
  1572. help
  1573. Check modules for valid signatures upon load: the signature
  1574. is simply appended to the module. For more information see
  1575. <file:Documentation/admin-guide/module-signing.rst>.
  1576. Note that this option adds the OpenSSL development packages as a
  1577. kernel build dependency so that the signing tool can use its crypto
  1578. library.
  1579. !!!WARNING!!! If you enable this option, you MUST make sure that the
  1580. module DOES NOT get stripped after being signed. This includes the
  1581. debuginfo strip done by some packagers (such as rpmbuild) and
  1582. inclusion into an initramfs that wants the module size reduced.
  1583. config MODULE_SIG_FORCE
  1584. bool "Require modules to be validly signed"
  1585. depends on MODULE_SIG
  1586. help
  1587. Reject unsigned modules or signed modules for which we don't have a
  1588. key. Without this, such modules will simply taint the kernel.
  1589. config MODULE_SIG_ALL
  1590. bool "Automatically sign all modules"
  1591. default y
  1592. depends on MODULE_SIG
  1593. help
  1594. Sign all modules during make modules_install. Without this option,
  1595. modules must be signed manually, using the scripts/sign-file tool.
  1596. comment "Do not forget to sign required modules with scripts/sign-file"
  1597. depends on MODULE_SIG_FORCE && !MODULE_SIG_ALL
  1598. choice
  1599. prompt "Which hash algorithm should modules be signed with?"
  1600. depends on MODULE_SIG
  1601. help
  1602. This determines which sort of hashing algorithm will be used during
  1603. signature generation. This algorithm _must_ be built into the kernel
  1604. directly so that signature verification can take place. It is not
  1605. possible to load a signed module containing the algorithm to check
  1606. the signature on that module.
  1607. config MODULE_SIG_SHA1
  1608. bool "Sign modules with SHA-1"
  1609. select CRYPTO_SHA1
  1610. config MODULE_SIG_SHA224
  1611. bool "Sign modules with SHA-224"
  1612. select CRYPTO_SHA256
  1613. config MODULE_SIG_SHA256
  1614. bool "Sign modules with SHA-256"
  1615. select CRYPTO_SHA256
  1616. config MODULE_SIG_SHA384
  1617. bool "Sign modules with SHA-384"
  1618. select CRYPTO_SHA512
  1619. config MODULE_SIG_SHA512
  1620. bool "Sign modules with SHA-512"
  1621. select CRYPTO_SHA512
  1622. endchoice
  1623. config MODULE_SIG_HASH
  1624. string
  1625. depends on MODULE_SIG
  1626. default "sha1" if MODULE_SIG_SHA1
  1627. default "sha224" if MODULE_SIG_SHA224
  1628. default "sha256" if MODULE_SIG_SHA256
  1629. default "sha384" if MODULE_SIG_SHA384
  1630. default "sha512" if MODULE_SIG_SHA512
  1631. config MODULE_COMPRESS
  1632. bool "Compress modules on installation"
  1633. depends on MODULES
  1634. help
  1635. Compresses kernel modules when 'make modules_install' is run; gzip or
  1636. xz depending on "Compression algorithm" below.
  1637. module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
  1638. Out-of-tree kernel modules installed using Kbuild will also be
  1639. compressed upon installation.
  1640. Note: for modules inside an initrd or initramfs, it's more efficient
  1641. to compress the whole initrd or initramfs instead.
  1642. Note: This is fully compatible with signed modules.
  1643. If in doubt, say N.
  1644. choice
  1645. prompt "Compression algorithm"
  1646. depends on MODULE_COMPRESS
  1647. default MODULE_COMPRESS_GZIP
  1648. help
  1649. This determines which sort of compression will be used during
  1650. 'make modules_install'.
  1651. GZIP (default) and XZ are supported.
  1652. config MODULE_COMPRESS_GZIP
  1653. bool "GZIP"
  1654. config MODULE_COMPRESS_XZ
  1655. bool "XZ"
  1656. endchoice
  1657. config TRIM_UNUSED_KSYMS
  1658. bool "Trim unused exported kernel symbols"
  1659. depends on MODULES && !UNUSED_SYMBOLS
  1660. help
  1661. The kernel and some modules make many symbols available for
  1662. other modules to use via EXPORT_SYMBOL() and variants. Depending
  1663. on the set of modules being selected in your kernel configuration,
  1664. many of those exported symbols might never be used.
  1665. This option allows for unused exported symbols to be dropped from
  1666. the build. In turn, this provides the compiler more opportunities
  1667. (especially when using LTO) for optimizing the code and reducing
  1668. binary size. This might have some security advantages as well.
  1669. If unsure, or if you need to build out-of-tree modules, say N.
  1670. endif # MODULES
  1671. config MODULES_TREE_LOOKUP
  1672. def_bool y
  1673. depends on PERF_EVENTS || TRACING
  1674. config INIT_ALL_POSSIBLE
  1675. bool
  1676. help
  1677. Back when each arch used to define their own cpu_online_mask and
  1678. cpu_possible_mask, some of them chose to initialize cpu_possible_mask
  1679. with all 1s, and others with all 0s. When they were centralised,
  1680. it was better to provide this option than to break all the archs
  1681. and have several arch maintainers pursuing me down dark alleys.
  1682. source "block/Kconfig"
  1683. config PREEMPT_NOTIFIERS
  1684. bool
  1685. config PADATA
  1686. depends on SMP
  1687. bool
  1688. config ASN1
  1689. tristate
  1690. help
  1691. Build a simple ASN.1 grammar compiler that produces a bytecode output
  1692. that can be interpreted by the ASN.1 stream decoder and used to
  1693. inform it as to what tags are to be expected in a stream and what
  1694. functions to call on what tags.
  1695. source "kernel/Kconfig.locks"
  1696. config ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
  1697. bool
  1698. # It may be useful for an architecture to override the definitions of the
  1699. # SYSCALL_DEFINE() and __SYSCALL_DEFINEx() macros in <linux/syscalls.h>
  1700. # and the COMPAT_ variants in <linux/compat.h>, in particular to use a
  1701. # different calling convention for syscalls. They can also override the
  1702. # macros for not-implemented syscalls in kernel/sys_ni.c and
  1703. # kernel/time/posix-stubs.c. All these overrides need to be available in
  1704. # <asm/syscall_wrapper.h>.
  1705. config ARCH_HAS_SYSCALL_WRAPPER
  1706. def_bool n