summaryrefslogtreecommitdiffhomepage
path: root/src/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'src/selftest')
-rw-r--r--src/selftest/ratelimiter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/selftest/ratelimiter.h b/src/selftest/ratelimiter.h
index f9f9996..43a68f8 100644
--- a/src/selftest/ratelimiter.h
+++ b/src/selftest/ratelimiter.h
@@ -41,6 +41,10 @@ bool __init ratelimiter_selftest(void)
struct sk_buff *skb4;
struct iphdr *hdr4;
+#if defined(CONFIG_KASAN) || defined(CONFIG_UBSAN)
+ return true;
+#endif
+
BUILD_BUG_ON(MSEC_PER_SEC % PACKETS_PER_SECOND != 0);
if (ratelimiter_init())