Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1382218pxb; Thu, 4 Mar 2021 09:53:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRTCHV047WTCdR/1mDjJ1wBCph/LuDzYnUreKQ+bNQWQ1U21oohLrmjOdf+yPQ3C9+X2zO X-Received: by 2002:a17:906:58c9:: with SMTP id e9mr5421369ejs.26.1614880382169; Thu, 04 Mar 2021 09:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614880382; cv=none; d=google.com; s=arc-20160816; b=b1ESgwwi5kqv23KaCUdxxGNVxiS1LJsKmdqBINy/i4kyfpdqOkHu1/VVipEbl2trBH eB5xU82rsq07aAipolo4M6e6JUL9AKmEZYmn9XswLMQsYg6xJ96O7kf3y15g5A50c7Yv k7wGIweU5wTi8SPImdpudwZRjU0I2Nl9niT1o04LqpjVNPog1bEBUVf/t9hXbt9gsgII s2vnZCfM4HuOXt6LlDTPuj9iNwV924LjGIfo9INhpRdAVMEdrhJ3k1oDbCGG19BJslxP jh5OF+Mm3LPmmvxjGdxDfgdZpWiyZ+avbdRFxIEnNuIf83SimsivMumBJXWCkGRjAOfK ocFw== 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=2LI2p/if8xEFXIC8BcXuJlVrjYr1uk8YfFxNJskajiE=; b=IkSDccnS0DcrkN9hqTs5a3W4ie48W2PNn+qsQ6aifd5Wic3SrSSh04SC+za58G9bEd gGq3ITyOnrI40zomW+9Zn/36APIp4bIRvWFMLiQm1E3/e4e3JjXgzjIkl4wlNLEPMm5O 8++Uh1YYRmX/8Bc+YKTaJik0aagjKIvU1bke4T6pUeSKFXMLUIdaJbrJZs1TbDFuekbe /bwjarIL7mkAOaHuTvayt+kwb/TqlDMoNIoFjCxMnC90mkn661fviK3R02mFnjcL6xmZ yJd9Hq1xOJpG5aRYJBBVQJNChI3W/gQdyVQ0qyIgntpvyb+9/cRcu3orNpcuoNzI4/Dx w2Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y27+nz8+; 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 j7si86893edh.201.2021.03.04.09.52.37; Thu, 04 Mar 2021 09:53:02 -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=Y27+nz8+; 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 S232608AbhCDOpI (ORCPT + 99 others); Thu, 4 Mar 2021 09:45:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbhCDOom (ORCPT ); Thu, 4 Mar 2021 09:44:42 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793CCC061574 for ; Thu, 4 Mar 2021 06:44:02 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id h22so27449126otr.6 for ; Thu, 04 Mar 2021 06:44:02 -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=2LI2p/if8xEFXIC8BcXuJlVrjYr1uk8YfFxNJskajiE=; b=Y27+nz8+7m6FES5wuRgWNG0nv6IRv3Eix99tmmWj3xp4+43vzTLb8DNAxDLB234MJp JgQKSFvih+h0sZ5myoRQe6FB7vot2lhznHWToJXVnPvKLeGQh13gblTUyqTQZ/yGlxhc I0PKipuaygtO0jBPxoaLuN/vuiOdig2O/IBFSxw/oVTtv00lQHxA0Xve+lESaZJEQIdA yeuEYUAvcpL7OP/W2qsvFHvXmmwGSVSyJwjNxM76ZEtxj2flCyoIfxAnjcsSIvOdrjlD KZlW27cJqH4bqs1x5+TA+RrGM2JL1J4wbzXF0Tsrg1UnTl2nKxACmlyHpMqM5QgAjagg f8/g== 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=2LI2p/if8xEFXIC8BcXuJlVrjYr1uk8YfFxNJskajiE=; b=ouQYfDQn858+9jfTsXOpO4zUbU0RBxsGB02+d6DTUbg03go8K3E4X+N6ZRdpF9bjbT OMG7zdiCQOHINY96AXaawCqvmIU2eBNyiOKr4jAnu2kmrXDVeRC//EpDJ9QcdtX7ETut DQWbhsPnxRrMJE0YcgSHhTXPbB3ez9B6drVPyh60X9whEiiR+QWQpvYw5IiQ9+dyVEv8 U4HzrRe4Xzkp0znQxaGLA1VM03aBUAPIMJIdTDfljVzINi6k11rnPXO1xjWHe+my+XmV 2oNCsjvTOOtJnDCkIdOr/QYfWf6M1XBa7uEEuUePc7TTvGpVv3BeTKGz/pJUk4kDIm6+ Ly7Q== X-Gm-Message-State: AOAM530R2h4FVyhVyAHqcROIdDr9t8+vzBMBWBtOlyXDaR4GuycDNV2F L3paOuVZqWJWbm+cX6io5gI6vRwIW8soVd7BdGGO3g== X-Received: by 2002:a05:6830:1355:: with SMTP id r21mr3742038otq.17.1614869041680; Thu, 04 Mar 2021 06:44:01 -0800 (PST) MIME-Version: 1.0 References: <20210304144000.1148590-1-elver@google.com> In-Reply-To: <20210304144000.1148590-1-elver@google.com> From: Marco Elver Date: Thu, 4 Mar 2021 15:43:50 +0100 Message-ID: Subject: Re: [PATCH mm] kfence: fix reports if constant function prefixes exist To: Marco Elver , Andrew Morton Cc: Alexander Potapenko , Dmitry Vyukov , Andrey Konovalov , Jann Horn , LKML , Linux Memory Management List , kasan-dev , Christophe Leroy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Mar 2021 at 15:40, Marco Elver wrote: > Some architectures prefix all functions with a constant string ('.' on > ppc64). Add ARCH_FUNC_PREFIX, which may optionally be defined in > , so that get_stack_skipnr() can work properly. > > Link: https://lkml.kernel.org/r/f036c53d-7e81-763c-47f4-6024c6c5f058@csgroup.eu > Reported-by: Christophe Leroy > Tested-by: Christophe Leroy > Signed-off-by: Marco Elver > --- For further context, the corresponding ppc64-enablement patch is was just sent by Christophe: https://lkml.kernel.org/r/afaec81a551ef15345cb7d7563b3fac3d7041c3a.1614868445.git.christophe.leroy@csgroup.eu But there is no strict dependency between the patches, only that the stack traces that KFENCE prints aren't as pretty without the ARCH_FUNC_PREFIX patch. So it should be fine to take them through different trees, as long as they both make the next merge window. Thanks, -- Marco