Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp618974pxb; Thu, 12 Nov 2020 11:53:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGy7BbBhJ9+pn/kSfMFASZdjS6dJvpMLHocm2ExiJ75y1r/k/sV3BRqN65vu0s128LPjHq X-Received: by 2002:aa7:d709:: with SMTP id t9mr1594878edq.305.1605210836697; Thu, 12 Nov 2020 11:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605210836; cv=none; d=google.com; s=arc-20160816; b=eT7rll7nmU6ApbbMc8rL7mlY5TG/9ByJ5CUKc1ewq3NQAherC5s5xpIqGuqTqcolKB 2BFpXYT36i5lGCL1fXH+I5fzXsj4tEi9Qz66fpe5bf7GzH/C0/xuYDgWb1b2VolmM/xO SPIr/TRHy+3DK2ZHzQ833DihrKvquj3l22eufri2xPxDD5gSELaSuEUjhRD12JOHLyKE pLPcQeELdGvFGy/oTNVtCO1Wzua6jBxJandwvqg8FPzcBeAL8rb1Oj0jj3MXqMsty0y5 cWeh3MyItQr9merimscEFs+lUUCg6EgGAKMyQZLIEX8xcvusl+SyouTaqubiMBTo85Yf xzZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6grGTHRg8rsQq1ytOmJKPPc/a47JtcnHiEDyRqBbLFo=; b=S91fuzrC+VF2vQJxtPTUAXXOcveH3bcyvHY3JTZGdAGQ2qoqUSrsIs2BBBQVwegPOM zCzrgXrMWFGbJ1eGT6Gk1RXE9sizUVmewUJRxKX9XoMHKf+GlEnIfu58DD0daqIyUxYd EsZt4Red6GzWgyHmVUDb3MUOfOACQLCrC2VsBZhKLkHzmh5k+wGbd8xNNd+dPm0q4zby CRjco3hUnLNalC+Lj+p0n5kJ5rR3sy5/n6cfbI8eEziqcPGAlSevZgRcjyWSC5hmXora z9iHQskR6TJSvEahdLaQ5AB0YTXONubwJz3sLWbO64mNjmRwl7YunwyTd34ukgSrAV9w KpKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=euZJ1KFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si4270429ejb.716.2020.11.12.11.53.32; Thu, 12 Nov 2020 11:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=euZJ1KFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726826AbgKLTwH (ORCPT + 99 others); Thu, 12 Nov 2020 14:52:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbgKLTwG (ORCPT ); Thu, 12 Nov 2020 14:52:06 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2292C0613D1 for ; Thu, 12 Nov 2020 11:52:05 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id g7so5545513pfc.2 for ; Thu, 12 Nov 2020 11:52:05 -0800 (PST) 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=6grGTHRg8rsQq1ytOmJKPPc/a47JtcnHiEDyRqBbLFo=; b=euZJ1KFslUbqxplovouyxG8p0U+5+xuKJD4/GMN4ixlQJDzc/G0SQZTp3Fl2aryH9a jZuQg6p73xPEgXHx7QgnJGdxpcO43wqgWjrCEiigP6qhu0Z1ONy4LM69d5xWn5fqiAjf nKQRjWnb43kbs/G6nf27kwm0DIdmx4dezF7NZ18jeI0t3egMDcup0GnZ2C86V2fJPBJf O5Hjp9M28mx002EbXyvkABmb714LZbbKkBYqGZG7Sbv2lJZUBFQi+18Yw8nt7GZAmYC6 HR2kUslyxlb8trjZS5Y3X95dlNU7osxVXNTIhdobS1PtxwPkWIxUCsaMmLuKGdsZ3WpH Q9LA== 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=6grGTHRg8rsQq1ytOmJKPPc/a47JtcnHiEDyRqBbLFo=; b=XxHe5preXqlfk/BVL27CR9d5zwHAe9Xh8acjIahsk5GqnQ5FAUZVfeDl7ZVRK1ej9E S2LBbc8lBSXNZav96INuEfqySkbulWgXmWNRvIfrfpooGvBauv0TKVici8D78hGzomp1 Hnp7OMu4t3sLEEQe16D7tcsxZMX0MP5zBWJFzQ1lfxG+R6r3Au8zlsSqp4D/F7j9RVdZ IhFzzqQCFSPFOINHqKv+oOXoeX6AnOAxmtpl0Nd0CKtkKbba2e0+jtkXciGtk+uFfYqx 5z6Fd2ob1wdLq1ykVKbIMvq5cZvgMrIPrJhDlZmN1KRvloKE903/dVfFWTI6U5C8CGVb v0lA== X-Gm-Message-State: AOAM5335KgNZhUL2Kw7zZiLODN/mUauG6/9QhtVGSdO5/o3nnuY6wONJ eXYtonH+/4XyXXMei9tdI85yoAt+TQelbPOfTdA6bQ== X-Received: by 2002:a17:90a:eb02:: with SMTP id j2mr842940pjz.136.1605210725310; Thu, 12 Nov 2020 11:52:05 -0800 (PST) MIME-Version: 1.0 References: <20201111182931.GM517454@elver.google.com> In-Reply-To: <20201111182931.GM517454@elver.google.com> From: Andrey Konovalov Date: Thu, 12 Nov 2020 20:51:52 +0100 Message-ID: Subject: Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters To: Marco Elver Cc: Dmitry Vyukov , Alexander Potapenko , Catalin Marinas , Will Deacon , Vincenzo Frascino , Evgenii Stepanov , Andrey Ryabinin , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev , Linux ARM , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 7:29 PM Marco Elver wrote: > > > +#include > > +#include > > This should include -- although the rest of the > kernel seems to also inconsistently use on or the other. Since the name, > as referred to also by macros are "static keys", perhaps the > static_key.h header is more appropriate... Will fix. > > +enum kasan_arg_stacktrace { > > + KASAN_ARG_STACKTRACE_DEFAULT, > > It seems KASAN_ARG_STACKTRACE_DEFAULT is never used explicitly. Could > the switch statements just be changed to not have a 'default' but > instead refer to *DEFAULT where appropriate? We need to either cover all cases explicitly, or use default in each switch, otherwise there's a warning. I guess covering everything explicitly is a better approach, in case more values are added in the future, as we'll get warnings for those if they aren't covered in switches. Will do.