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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 265AAC48BE8 for ; Wed, 16 Jun 2021 04:41:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C468A61209 for ; Wed, 16 Jun 2021 04:41:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C468A61209 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=axtens.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 569D86B006C; Wed, 16 Jun 2021 00:41:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 519AC6B006E; Wed, 16 Jun 2021 00:41:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3937F6B0070; Wed, 16 Jun 2021 00:41:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0241.hostedemail.com [216.40.44.241]) by kanga.kvack.org (Postfix) with ESMTP id 068696B006C for ; Wed, 16 Jun 2021 00:41:44 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 95E5010EF9 for ; Wed, 16 Jun 2021 04:41:44 +0000 (UTC) X-FDA: 78258338928.08.EEB0BA1 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by imf29.hostedemail.com (Postfix) with ESMTP id 00760FF for ; Wed, 16 Jun 2021 04:41:30 +0000 (UTC) Received: by mail-pj1-f50.google.com with SMTP id g4so993998pjk.0 for ; Tue, 15 Jun 2021 21:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=yNLs0De7jThuF+2jQNPxEWOcx6TgeD4ov6vuIyTpd+A=; b=lKJIvf6pt1/GdaW2KeqS7wKBIja3w5kpORjD4jLrNWSEFfEOkW3onHIDqBu0GFngkS lxkWv44pwySHTfYWybvEhaBirmSWSJMqraifs7VnqCLsdljizzbcTlkUb4DkuOyQKb70 r/j3tlzKy+Tk59kdBEbDxcnNRfRigkfAmLaJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=yNLs0De7jThuF+2jQNPxEWOcx6TgeD4ov6vuIyTpd+A=; b=hyf0yAolvvX+KBPniuNakboZdyr3ygV+CEh3SOsIN5RgBLc7YmJDW0iG8DpJFqYW/y 27ptIzalbTFEbhr/5cOuo1mUPvbVrQUx6zfzU/jzg8GXv2GalQu2sk2iwLMh8YB7OLXT xT1TZC6Lb8eEHm/GAq4dVNwY7k3nRlJzfoL48gwaTkQRzkvJW8iNzn+pmtErRHaWCLhz AeIA9m2XRK+AgqLSiVa5psB2Wq5++rAp9q3BD3WBveHJJnFqOtgbbgTi5vcqit1rweOC HK+N6sSfJSD8N17Gk9BagqLpxVFNgNNtH3GHcjOVgaeskaAsaroQ3xKLd6Tx6rxojpas XxAg== X-Gm-Message-State: AOAM531fHiHHAQUi6jgzHtMix3aJjduVzEmdqOWvXB2zmftkvo1Bt2Ih 3s1NlqbV2nherwUXl50XjrhXIg== X-Google-Smtp-Source: ABdhPJxh2trs7JHKAmnz6ypTMfnczKQwyngda5/fDSTUi8HksJLDs/vs/uzec4cWsIlm+tLEn9utjQ== X-Received: by 2002:a17:903:228e:b029:101:af04:4e24 with SMTP id b14-20020a170903228eb0290101af044e24mr7415002plh.3.1623818503317; Tue, 15 Jun 2021 21:41:43 -0700 (PDT) Received: from localhost ([203.206.29.204]) by smtp.gmail.com with ESMTPSA id v10sm726962pgb.46.2021.06.15.21.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 21:41:42 -0700 (PDT) From: Daniel Axtens To: Marco Elver Cc: LKML , Linux Memory Management List , linuxppc-dev@lists.ozlabs.org, kasan-dev , Christophe Leroy , aneesh.kumar@linux.ibm.com, Balbir Singh , "Aneesh Kumar K . V" Subject: Re: [PATCH v12 2/6] kasan: allow architectures to provide an outline readiness check In-Reply-To: References: <20210615014705.2234866-1-dja@axtens.net> <20210615014705.2234866-3-dja@axtens.net> Date: Wed, 16 Jun 2021 14:41:39 +1000 Message-ID: <87fsxiv2t8.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 00760FF X-Stat-Signature: 816nc7d7b7tmznju1upt9af9mkxjhpco Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=axtens.net header.s=google header.b=lKJIvf6p; dmarc=none; spf=pass (imf29.hostedemail.com: domain of dja@axtens.net designates 209.85.216.50 as permitted sender) smtp.mailfrom=dja@axtens.net X-HE-Tag: 1623818490-839704 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: Hi Marco, >> + /* Don't touch the shadow memory if arch isn't ready */ >> + if (!kasan_arch_is_ready()) >> + return; >> + > > What about kasan_poison_last_granule()? kasan_unpoison() currently > seems to potentially trip on that. Ah the perils of rebasing an old series! I'll re-audit the generic code for functions that touch memory and make sure I have covered them all. Thanks for the review. Kind regards, Daniel > > -- > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/CANpmjNN2%3DgdDBPzYQYsmOtLQVVjSz2qFcwcTMEqB%3Ds_ZWndJLg%40mail.gmail.com.