From 305806d113f6aa210f98475ab157de72aa245c74 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 20 Sep 2018 00:57:21 +0200 Subject: ratelimiter: disable selftest with KASAN This this relies on instructions taking a "normal" amount of time, we really can't run this with KASAN, especially inside QEMU, so just disable it for KASAN, since it's hard to make it complete on slow systems. --- src/selftest/ratelimiter.h | 4 ++++ 1 file changed, 4 insertions(+) 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()) -- cgit v1.2.3-59-g8ed1b