From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74EE8C2D0A3 for ; Fri, 30 Oct 2020 02:49:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CD93F207DE for ; Fri, 30 Oct 2020 02:49:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZzFLUcJs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD93F207DE Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5AE3E6B006E; Thu, 29 Oct 2020 22:49:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 55E716B0070; Thu, 29 Oct 2020 22:49:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4277A6B0071; Thu, 29 Oct 2020 22:49:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 12CF66B006E for ; Thu, 29 Oct 2020 22:49:33 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id AE06E3626 for ; Fri, 30 Oct 2020 02:49:32 +0000 (UTC) X-FDA: 77427060984.20.whip07_3c14edd27292 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 92F1A180C07A3 for ; Fri, 30 Oct 2020 02:49:32 +0000 (UTC) X-HE-Tag: whip07_3c14edd27292 X-Filterd-Recvd-Size: 4517 Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Fri, 30 Oct 2020 02:49:32 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id p15so5340970ljj.8 for ; Thu, 29 Oct 2020 19:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fnNcEaVlmZ1zwBSm6iv/h6d4SZP4svNibhnGn9WMLZQ=; b=ZzFLUcJsP78IqMGf1UPTImO/GIWxluLHjWL08uA0kJgFPvyHdkLU3YsuAawcL3Kb/S 8x1yf9XVuuJNX+R6p+BBLhq/COLE5NUqTnm01vdSYQCmGWI8CNUMcU/K9AB5mL34CYsV U0Rx/gOiFDe/OV3oY+b8FKTRHSUsgPKAH9LwEsFPKFTGxK+Bf9MzcrncK7+QFdNFIQ5I PdC3K43ieeFOSKouXW2Dt/T2B086TZdeXWey91Dk9t3+vg0QkY1pXZdNrMTYeutNBxXx ohGczaoXjo0bxJKoJCA9yXrvz/v0SkHbtLLXDAmxCLBjfrEa4f2cfYYI4o+gv14K/nFP hJmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fnNcEaVlmZ1zwBSm6iv/h6d4SZP4svNibhnGn9WMLZQ=; b=ZEulEE6oZxny2gXQ5/ufwGubvijqY+2/DO3nwS45ymNRUU39nbcfX67QEMUWdFCfkh ckEiraFMtMORnm7q6wlkoft1T3mOIUdzyb/yVFLRvSqspf88rd1Q1Qya8Zk2VHlCWqfW lrwZR/TSVZR1QBg8OojUdj+GWYBeg/E54JtRciwj+W720rQLPpzQ17fu2nVS/BDa73dZ qzfTPBNonmDYWtkWINOJnTCWW4IRrk/3lJ7UU5jfMvAVRK4il1thQkaccz5ifHlVjAB7 HyqRxKMsjJ708qV2impYUgay3vT/xs3dBq3/U0OlK5K3gvz4JOQfQwtQ75Kbk5xbXa4z oDtw== X-Gm-Message-State: AOAM5321ALBfjohWuuLmYNm58adYb8QlKG9gJdCIJU34R4NCGYTFdEHd wY4zhiPYoftl8CUrS8OEUMMnLVc+ZWy8JvXJCyEEzA== X-Google-Smtp-Source: ABdhPJxZ95Sl9a5nUjnr+zYQtfZedRy4PnTye/1nduOsAc2xLJZa5W80HAyqv6tzrVPMWEy/LeyxuqQT0TAnTiINPNI= X-Received: by 2002:a2e:9a17:: with SMTP id o23mr110783lji.242.1604026170432; Thu, 29 Oct 2020 19:49:30 -0700 (PDT) MIME-Version: 1.0 References: <20201029131649.182037-1-elver@google.com> In-Reply-To: <20201029131649.182037-1-elver@google.com> From: Jann Horn Date: Fri, 30 Oct 2020 03:49:04 +0100 Message-ID: Subject: Re: [PATCH v6 0/9] KFENCE: A low-overhead sampling-based memory safety error detector To: Marco Elver Cc: Andrew Morton , Alexander Potapenko , "H . Peter Anvin" , "Paul E . McKenney" , Andrey Konovalov , Andrey Ryabinin , Andy Lutomirski , Borislav Petkov , Catalin Marinas , Christoph Lameter , Dave Hansen , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Hillf Danton , Ingo Molnar , Jonathan Cameron , Jonathan Corbet , Joonsoo Kim , joern@purestorage.com, Kees Cook , Mark Rutland , Pekka Enberg , Peter Zijlstra , SeongJae Park , Thomas Gleixner , Vlastimil Babka , Will Deacon , "the arch/x86 maintainers" , "open list:DOCUMENTATION" , kernel list , kasan-dev , Linux ARM , Linux-MM Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Oct 29, 2020 at 2:16 PM Marco Elver wrote: > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > low-overhead sampling-based memory safety error detector of heap > use-after-free, invalid-free, and out-of-bounds access errors. This > series enables KFENCE for the x86 and arm64 architectures, and adds > KFENCE hooks to the SLAB and SLUB allocators. I think this is getting close to a good state, just a couple minor issues left. Now that the magic "embed the memory pool in the BSS section" stuff is gone, this series looks fairly straightforward.