aboutsummaryrefslogtreecommitdiffstats
path: root/docs/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-29 16:16:48 -0700
committerGitHub <noreply@github.com>2018-08-29 16:16:48 -0700
commite766b07a54b5ad857651e2c4abf46b059014e9b5 (patch)
tree3c3dc3392c3ac53c07636e0e9f582fbf154bced5 /docs/linux
parent2c6cb254ae6c06f61e3aba21bb89ffb05b5db946 (diff)
Update kernel_configs.md
Diffstat (limited to 'docs/linux')
-rw-r--r--docs/linux/kernel_configs.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/linux/kernel_configs.md b/docs/linux/kernel_configs.md
index 46b3fcb88..2d5a9cf04 100644
--- a/docs/linux/kernel_configs.md
+++ b/docs/linux/kernel_configs.md
@@ -1,6 +1,6 @@
# Linux kernel configs
-List of recommended kernel configs for `syzkaller`:
+List of recommended kernel configs for `syzkaller`. See [syzbot config](/dashboard/config/upstream-kasan.config) for a reference config.
## Syzkaller features
@@ -38,8 +38,8 @@ CONFIG_PID_NS=y
CONFIG_NET_NS=y
```
-If your kernel doesn't have commits [arm64: setup: introduce kaslr_offset()](https://github.com/torvalds/linux/commit/7ede8665f27cde7da69e8b2fbeaa1ed0664879c5)
- and [kcov: make kcov work properly with KASLR enabled](https://github.com/torvalds/linux/commit/4983f0ab7ffaad1e534b21975367429736475205), disable the following config:
+It is recommended to disable the following config (and required if your kernel doesn't have commits [arm64: setup: introduce kaslr_offset()](https://github.com/torvalds/linux/commit/7ede8665f27cde7da69e8b2fbeaa1ed0664879c5)
+ and [kcov: make kcov work properly with KASLR enabled](https://github.com/torvalds/linux/commit/4983f0ab7ffaad1e534b21975367429736475205)):
```
# CONFIG_RANDOMIZE_BASE is not set
```
@@ -89,11 +89,13 @@ CONFIG_HARDENED_USERCOPY=y
CONFIG_LOCKUP_DETECTOR=y
CONFIG_SOFTLOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y
+CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_WQ_WATCHDOG=y
```
-Increase RCU stall timeout to reduce false positive rate:
+Increase hung/stall timeout to reduce false positive rate:
```
-CONFIG_RCU_CPU_STALL_TIMEOUT=60
+CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=140
+CONFIG_RCU_CPU_STALL_TIMEOUT=100
```