Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp119030pxj; Tue, 15 Jun 2021 21:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGbFYVSxYn83vmXdsF2KtwlYgGO9FxVKblD/FZzLTJFX50ramWd8KOWXo3vmW2QvjSGw99 X-Received: by 2002:a05:6638:358e:: with SMTP id v14mr2438075jal.120.1623818642422; Tue, 15 Jun 2021 21:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623818642; cv=none; d=google.com; s=arc-20160816; b=xKUwhvB/zburtszkpvl7wYtRGIeF/GMkpR0x/UyZxTlQ9B+ZwzDmdPsD2XPMgzNjKc VSe/++wpMLu++3TJ4VAovrJla+NjVXwWMusWRYD9cjDJpf7ARU+BunGjE31IrGJBhbuX RNiKOn8+vXiEeg4bM6LyZvn2C1bhGRdkJirhRxvR63q9ac20d6L0eA/eBpxcsnSpKzJA 43a4Nk33+naMPxzkJt5cvhRqrNibDPOuPK2tkfrtj/pX8PEdUVGs8X1EORi40yjER3NR SOIhZXFL34Wg8mAmaEeCl9VMyrekMamzr3JJazRYKObgUuwYSWeLTM/kP4DmO2uqOdcs 7ycg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=yNLs0De7jThuF+2jQNPxEWOcx6TgeD4ov6vuIyTpd+A=; b=d4KU4JGgwR9eqrpFlsT4R7CjEJFoZyZboOgT2J/uHmEt05ZyijEEPjLEyMHGCRp7Kd ZZNbLBXe9decNYWfPdGClwlZF2GdVbrhHBMuLebxaDnWvN3yoFbXL2Y0CF9xiA2DFnxt YBSqEdrKwz7MWbHRzwnwCFO6JsG32lhIY86tDvoCiA3AFjCSwC6ojdA875gWtmpjzH2O WnbgCuJOEgzV4nsJHdm/rX1y/ChfpbF+jYpuFuNTG4IZWvCl6RPxnJAWWEDJ3UHD3ggt E9P5xoMj3wAL+RlIaP3Km8RdYvD/ADy1TOoVOaKL5dLO4TvpVCEq2kObMus5+kQSrV4a 7rfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=lKJIvf6p; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si111482ioh.104.2021.06.15.21.43.50; Tue, 15 Jun 2021 21:44:02 -0700 (PDT) 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=@axtens.net header.s=google header.b=lKJIvf6p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbhFPEnu (ORCPT + 99 others); Wed, 16 Jun 2021 00:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhFPEnt (ORCPT ); Wed, 16 Jun 2021 00:43:49 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C297BC061574 for ; Tue, 15 Jun 2021 21:41:43 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id k7so951910pjf.5 for ; Tue, 15 Jun 2021 21:41:43 -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=ks0XU++9h1HV6LDMHyb++ixuKP2q6fbkRrTbsUhO0P6B5nMH2+D5fTtj7yNPEH9BpC jjYQctsZzgARFqfqVN/pLT5m8W7XOCspy2WEgewtUNrXDsBVRyP78+2ozVtNRpigl9tK xxXeLoSwJWSvc0onpt6GuH1OiNOPfX0JvWpP9ay+h3Gc5QxfJQrapQsk2C8mxqfmrBNF gCHc2Hkr9P+oLjcJPzgRFlnCsjWxC8JOMNTZxsFuT3pfLUZVjeifrqrfIQrUIhL1RuMS PM5RkAdtX9I62CT+jD2kr3XZnjuRYMQqGQiILRECvpGx0pWoq9QB2lB07Vc5/wG73nPn wjNA== X-Gm-Message-State: AOAM5301l07xiCG9I5p/mqKW4V3piGTQG3JxtPcYMRAUvK3rCfTstYMg qGbFZYyOqNmXqz/0z/giXksUxA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.