Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2026898pxb; Fri, 5 Mar 2021 05:51:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl3ussHkVo+qoB1xB+PisstVt0uyatpI4x9IxTbsBraw5aYcMMLoa89PTp7s5TQBH8pn5O X-Received: by 2002:a17:907:2075:: with SMTP id qp21mr2361698ejb.451.1614952279193; Fri, 05 Mar 2021 05:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614952279; cv=none; d=google.com; s=arc-20160816; b=gBw/Y//snoLJGRFT3Y9dx8GTdCMaRpGNySZZLz5PBtBBGnfbIugV6Wy5g8EcP8p6hZ a0HBz6LrYshta/YM2Wb3O0XovLRs8EiZYkNXSD55qANN8hOU3y7xcsP8kiNgdMkf7fQk BJPMt4f1bbOoDKpJk8v+JS8XI9rbk4OfBhojgFp52E9AnGQgoFv8/yrTWh81GO8FzTxg SqKDmQnlbWxLR7/3NdEmgqCbw5DQJGmDOvg9fTIhE3h2uReb7qKsTgols996wPyiCVES o4tDCiCGQQ4XhOYNkTYWIbgC/fiWlSvTpTECid+j+eubtbnsm5HhMx1ay5qGBdXlJz3K 1icA== 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=SInNMXqsGtA9/hulueI4v7s5Z4FGO7USmnkW6ykDyNk=; b=rM93beCfJ9yY++42BOvpf1vnMOdrI7ZfAxW8rsYrJEarjxOAzz2kEMppIgkkcTucyV +Hdl9vVrVKh2wGnbcvn2Ern9DzocMBLMC9zTKDiLhyioWJp+z7ptIfGj8+1YPNZ9is8U 2bg4RANB00TEkEV1MpoikmKImIUaLFILhQo68EFW+RIk+m+T1tNFlmM+q/9IUbtIxbp3 /EmnPIid3t9WUjSA8eKthfnBYIu3wIZV1LAF3W33GGCZL5Vn9oEhGBgSfJg1QFixuUhj /jl8KqzU8rsk18yxBqEGE6yi1e9SjJI5+Mt2opsX14kZwLYzAQEHCeyOEKm68tWyipis 8JKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DhVOTTeN; 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 x10si1492964eds.158.2021.03.05.05.50.53; Fri, 05 Mar 2021 05:51:19 -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=DhVOTTeN; 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 S230449AbhCENrg (ORCPT + 99 others); Fri, 5 Mar 2021 08:47:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbhCENrL (ORCPT ); Fri, 5 Mar 2021 08:47:11 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD3DC061574 for ; Fri, 5 Mar 2021 05:47:10 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id a13so2588259oid.0 for ; Fri, 05 Mar 2021 05:47:10 -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=SInNMXqsGtA9/hulueI4v7s5Z4FGO7USmnkW6ykDyNk=; b=DhVOTTeNEWGP7nvs0N/96ctaUuIi3XAgBRwWEtcDF9LYjBWCG9/iF2Z2IeAfgY9gSk EuxxAQT4/gGX6oWuIsL6s1QIwBjSRsL2dc7lgry22R6oLBArIyQwgw2T1gFk3S+cGX+q Hx7usAEK/x12IwalJNVxcV6vyfULFvH09nCkI8BKgJ2tE+n1rlu0+POxAoWC/QLasjmI LGeYlSTK5JxCH23E0aZKYzbMAlfwLAkH8DVqxUtkJDTwZlLL1f4UaDgFPUbxJtmdX3ao m8DaAsVeHxyL9TdQxZTB0Rg+TiMf5JfAQsFOB+islX108CeCvfwMT1fIi6W4EdAyn7hF qODg== 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=SInNMXqsGtA9/hulueI4v7s5Z4FGO7USmnkW6ykDyNk=; b=e/KksqQ2pc8bZSTk+cPMVktZPlpafbgbXApZQcxKCePWOFUN2FzFm0Zf7qVfydtAUV /bvbCrWIumspH5x5zWGk/iIwctCKfXyaCftlAfJoVtcfedHquxPllaCxLC3Jb38HI4ow q9HwKAQ+3z5y1BYhpn8STH4c/nVEaTiOoWOvYxuz/09CekN7Y6WPB1YH3BUPkdnJ3MnP ivkmHCwMWUicT6zGJZ9UfcaLd/Vaw0jYrEv8AExMyaiZlc/34/7ZCdy68GqdICvZ2vjI COX80HgLzdZx+C4zmLx/3Oj2gBeg+QYXX7g2viQWBL6aCTq4PmtqViehEVAUOSVFwZZm VYjQ== X-Gm-Message-State: AOAM532DjdnWEMdNaq6a/n/EfOLdIdQxb5Hv8VjMRZnZBGc5hPlKM+B0 f2MuC5x8PJtf1k0564XmmWzOrMNZDuYODmlucCCS5g== X-Received: by 2002:a05:6808:10d3:: with SMTP id s19mr7309520ois.70.1614952029845; Fri, 05 Mar 2021 05:47:09 -0800 (PST) MIME-Version: 1.0 References: <08a96c5d-4ae7-03b4-208f-956226dee6bb@csgroup.eu> <7270e1cc-bb6b-99ee-0043-08a027b8d83a@csgroup.eu> <874khqry78.fsf@mpe.ellerman.id.au> <87tupprfan.fsf@mpe.ellerman.id.au> In-Reply-To: <87tupprfan.fsf@mpe.ellerman.id.au> From: Marco Elver Date: Fri, 5 Mar 2021 14:46:58 +0100 Message-ID: Subject: Re: [RFC PATCH v1] powerpc: Enable KFENCE for PPC32 To: Michael Ellerman Cc: Christophe Leroy , Alexander Potapenko , Benjamin Herrenschmidt , Paul Mackerras , Dmitry Vyukov , LKML , linuxppc-dev@lists.ozlabs.org, kasan-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Mar 2021 at 12:49, Michael Ellerman wrote: > Marco Elver writes: > ... > > > > The choice is between: > > > > 1. ARCH_FUNC_PREFIX (as a matter of fact, the ARCH_FUNC_PREFIX patch > > is already in -mm). Perhaps we could optimize it further, by checking > > ARCH_FUNC_PREFIX in buf, and advancing buf like you propose, but I'm > > not sure it's worth worrying about. > > > > 2. The dynamic solution that I proposed that does not use a hard-coded > > '.' (or some variation thereof). > > > > Please tell me which solution you prefer, 1 or 2 -- I'd like to stop > > bikeshedding here. If there's a compelling argument for hard-coding > > the '.' in non-arch code, please clarify, but otherwise I'd like to > > keep arch-specific things out of generic code. > > It's your choice, I was just trying to minimise the size of the wart you > have to carry in kfence code to deal with it. > > The ARCH_FUNC_PREFIX solution is fine by me. Thank you -- the ARCH_FUNC_PREFIX version is already in -mm, so let's keep it. It's purely static vs the other options. Should another debugging tool need something similar we can revisit whether to change or move it. Thanks, -- Marco