diff options
| author | Marco Elver <elver@google.com> | 2019-10-07 21:54:59 +0200 |
|---|---|---|
| committer | Marco Elver <marco.elver@gmail.com> | 2019-10-08 15:04:54 +0200 |
| commit | 137e37cac241dfee41f3899d3b97eca4e62b8359 (patch) | |
| tree | 0e72d1f4e08fb7bad51fc8e50e87fde559e6aefb | |
| parent | 64612bfd3c83d7246467cd9731f01a36b6331598 (diff) | |
Change KCSAN info file to debugfs
| -rw-r--r-- | executor/common_linux.h | 2 | ||||
| -rw-r--r-- | pkg/csource/generated.go | 2 | ||||
| -rw-r--r-- | pkg/host/host_linux.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 13bc71011..de9db05ff 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2782,7 +2782,7 @@ static void setup_binfmt_misc() #if SYZ_EXECUTOR || SYZ_ENABLE_KCSAN static void setup_kcsan() { - if (!write_file("/proc/kcsaninfo", "on")) + if (!write_file("/sys/kernel/debug/kcsan", "on")) fail("failed to enable KCSAN"); } #endif diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index c216e0973..47bbfdfa6 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -5196,7 +5196,7 @@ static void setup_binfmt_misc() #if SYZ_EXECUTOR || SYZ_ENABLE_KCSAN static void setup_kcsan() { - if (!write_file("/proc/kcsaninfo", "on")) + if (!write_file("/sys/kernel/debug/kcsan", "on")) fail("failed to enable KCSAN"); } #endif diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index da208bbad..a1d5ff1b3 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -559,7 +559,7 @@ func checkDebugFS() string { } func checkKCSAN() string { - if err := osutil.IsAccessible("/proc/kcsaninfo"); err != nil { + if err := osutil.IsAccessible("/sys/kernel/debug/kcsan"); err != nil { return err.Error() } return "" |
