# Copyright 2020 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

# Auxiliary debug configs that detect non-critical bugs.

config:
 # Instances that use nonoise also ignore WARNINGs, so they don't want panic_on_warn.
 - CMDLINE: [append, "panic_on_warn=1"]

 - DEBUG_VM
 - DEBUG_VM_RB
 - DEBUG_VM_VMACACHE: [-v6.1]
 - DEBUG_VM_PGFLAGS
 - DEBUG_VM_PGTABLE: [v5.8, -arm]
 - DEBUG_VM_MAPLE_TREE: [v6.1]
 - DEBUG_MAPLE_TREE: [v6.1]
 - DEBUG_KMAP_LOCAL_FORCE_MAP: [x86_64, v5.11]
 - DEBUG_VIRTUAL: [-s390]
 - LOCKUP_DETECTOR: [-s390]
 - SOFTLOCKUP_DETECTOR: [-s390]
 - CSD_LOCK_WAIT_DEBUG: [v5.19, -arm]
 - DETECT_HUNG_TASK
 - WQ_WATCHDOG
 - BOOTPARAM_HUNG_TASK_PANIC
 - BOOTPARAM_SOFTLOCKUP_PANIC: [-s390]
 - DEBUG_DEVRES
 - DEBUG_MEMORY_INIT
 - DEBUG_NOTIFIERS
 - DEBUG_CREDENTIALS
 - DEBUG_TIMEKEEPING
 - DEBUG_OBJECTS
 - DEBUG_OBJECTS_ENABLE_DEFAULT: 1
 - DEBUG_OBJECTS_FREE
 - DEBUG_OBJECTS_PERCPU_COUNTER
 - DEBUG_OBJECTS_RCU_HEAD
 - DEBUG_OBJECTS_TIMERS
 - DEBUG_OBJECTS_WORK
 - DEBUG_OBJECTS_SELFTEST: n
 # Some base configs may not enable sound at all.
 - SND_DEBUG: [-riscv, -s390, optional]
 - SND_PCM_XRUN_DEBUG: [-riscv, -s390, optional]
 - SND_CTL_VALIDATION: [v5.6, -riscv, -s390, optional]
 - DYNAMIC_DEBUG
 - DEBUG_PER_CPU_MAPS
 - DEBUG_SG
 - DEBUG_PREEMPT: [optional]
 - PAGE_POISONING
 - PTDUMP_DEBUGFS: [v5.8, -arm]
 - HARDLOCKUP_DETECTOR: [x86_64]
 - BOOTPARAM_HARDLOCKUP_PANIC: [x86_64]
 - RING_BUFFER_VALIDATE_TIME_DELTAS: [x86_64, v5.11]
 # The check runs episodically, so won't be attributed to a test. And can happen on any memory corruption.
 - X86_CHECK_BIOS_CORRUPTION: n

 # For context see: https://groups.google.com/g/syzkaller/c/SoydtBd-dYs/m/ns67L4ApAwAJ
 - VIRT_CPU_ACCOUNTING_GEN
 - CONTEXT_TRACKING_FORCE: [-v6.1]
 - PAGE_TABLE_CHECK: [v5.17, -s390, -arm]
 - PAGE_TABLE_CHECK_ENFORCED: [v5.17, -s390, -arm]
