diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-03-06 13:37:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-03-06 13:38:53 +0100 |
| commit | fd2a5f28eb5e2b7c83b5e814f53e44e2a5dde24c (patch) | |
| tree | 3db98c79b3220c44faa6ec98fda13eb594c4ed1e /executor/executor.cc | |
| parent | 7fb694ef82d4dace30cf68efba5a6af705c94fa4 (diff) | |
executor: prevent "NMI handler took too long" messages
nmi_check_duration() prints "INFO: NMI handler took too long" on slow debug kernels.
It happens a lot in qemu, and the messages are frequently corrupted
(intermixed with other kernel output as they are printed from NMI)
and are not matched against the suppression in pkg/report.
This write prevents these messages from being printed.
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 2635d5a7c..768081ad6 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1404,6 +1404,10 @@ void setup_features(char** enable, int n) { // This does any one-time setup for the requested features on the machine. // Note: this can be called multiple times and must be idempotent. +#if SYZ_HAVE_FEATURES + // Note: this is not executed in C reproducers. + setup_machine(); +#endif for (int i = 0; i < n; i++) { bool found = false; #if SYZ_HAVE_FEATURES |
