aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2019-10-07 21:54:59 +0200
committerMarco Elver <marco.elver@gmail.com>2019-10-08 15:04:54 +0200
commit137e37cac241dfee41f3899d3b97eca4e62b8359 (patch)
tree0e72d1f4e08fb7bad51fc8e50e87fde559e6aefb /pkg
parent64612bfd3c83d7246467cd9731f01a36b6331598 (diff)
Change KCSAN info file to debugfs
Diffstat (limited to 'pkg')
-rw-r--r--pkg/csource/generated.go2
-rw-r--r--pkg/host/host_linux.go2
2 files changed, 2 insertions, 2 deletions
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 ""