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