diff options
| -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 "" |
