aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
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 ""