Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10782887rwd; Thu, 22 Jun 2023 04:59:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ54+vUYonbzveft4p/wQcaIPRUcIzXXRcTJps4UVk81Uk9EPs/uS65PDndFmalXbbXN5ZMQ X-Received: by 2002:a17:903:234a:b0:1b6:b95d:768e with SMTP id c10-20020a170903234a00b001b6b95d768emr160254plh.32.1687435174765; Thu, 22 Jun 2023 04:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435174; cv=none; d=google.com; s=arc-20160816; b=OUNZ1B8m3vBYRe5I54jRTrPmvnRzUHNTQVwkfHzxPOju823kedheHuWvgFWjZs+D6K DrHP5F+WbMtN1J0nlbw8ly5GLWDbcByfUyG5oEdQJ0kxqg6MaeYGBfd4zmkOKW0JFCyL xVlYG9ELylEZbJC31u0Cut0z0/dfZjpg/SqyNHHhjH+in3Vs1avKHXqCg4ipWLdSF+Zj GOPMxHklHfEfM8lOelOMnFu2DlTJnwBb0+JGtTDaBdayM0Flh+gNfloGJvNJzUDsQHtw OkNTGcvZ1ThS92u8IPemPle6wpr/D1iIOmWwAU2s2OQitH6dqBkTYglMuol4I7NjBwP3 4otw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dnuSRjit9BClyf8ssWCLDDODxXJZmhDnJ4paeO5Nhx4=; b=0eO4oZysxkbHswl3Cw1kCHtKnHYlNUYi21BGxGiSbte6TF5kR5h8EIzHRnilMC+WF6 iYAmFVdNA+nMdqWL+FWA0mRi406rcKiKb4DYkVL8DmqvgUlEBxmighLNbW2SBzsBaDU+ SNDinRRCdzeaV87WMIHzhvysIi8FKO3p7rNrcguQnb79p7/U8IFMznsFhu2RqXfxWJmk kAfH+NOC1CAaWmqUQlDr82uSckNyG+es/wnOeQsMVHF8vfyWaIh1PwvcqVVoDa+1QMqD vqZ/ZUwlI0hoEiySVsAdKRJZCIsG3v4s9IOSVDF6sH76Wm8F/k4H7UxPIglTWl4A5Mh5 byeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pSWWLPWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a1709027c9600b001b222cd9826si5730313pll.349.2023.06.22.04.59.22; Thu, 22 Jun 2023 04:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pSWWLPWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbjFVL5K (ORCPT + 99 others); Thu, 22 Jun 2023 07:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjFVL5J (ORCPT ); Thu, 22 Jun 2023 07:57:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9A27198 for ; Thu, 22 Jun 2023 04:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dnuSRjit9BClyf8ssWCLDDODxXJZmhDnJ4paeO5Nhx4=; b=pSWWLPWkaaoJwHc5BYho2poyPl eIWhn/5lqy2SEgEoeR3nAv0aJ8EHJmEWIJd1pNAfu6XYd3iA1O0K29sU64D64FD89ly99k0csSzr6 /Yf44ZWG5r1/r112unkcSNqmOEFsnJ0IvnVjdtAkNmAO9AQWc1o4P0yHC+mBLwUSiUQ7FE0bdA9lh v6HwdXpSBBNckOoEpyjh5Vl/7X7BxoC8B860EG/qV4xYN9NQxldNh1LTQhU35lNy0OPwpkt+6q1EM TEp5tJ83ZWBXcldmwOlDKqgo28P7Gral3S6BrII6lffytuKus/FlQUaypbE+qdNfn7/7v3vGBBB92 oDeVJM5Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qCIvr-00FZUB-Ln; Thu, 22 Jun 2023 11:56:59 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4B83F300338; Thu, 22 Jun 2023 13:56:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1FD74241BF9B6; Thu, 22 Jun 2023 13:56:59 +0200 (CEST) Date: Thu, 22 Jun 2023 13:56:59 +0200 From: Peter Zijlstra To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , Josh Poimboeuf , Sathvika Vasireddy , Naveen N Rao , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 14/14] powerpc: Implement UACCESS validation on PPC32 Message-ID: <20230622115659.GO4253@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 12:54:36PM +0200, Christophe Leroy wrote: > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index f850ab892ad5..8ac5711a055f 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -218,6 +218,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, > "kthread_exit", > "kunit_try_catch_throw", > "lbug_with_loc", > + "longjmp", > "machine_real_restart", > "make_task_dead", > "mpt_halt_firmware", > @@ -230,7 +231,9 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, > "sev_es_terminate", > "snp_abort", > "start_kernel", > + "start_secondary_resume", > "stop_this_cpu", > + "unrecoverable_exception", > "usercopy_abort", > "x86_64_start_kernel", > "x86_64_start_reservations", Someone went and changed all that in tip/objtool/core :-) But perhaps, like the uaccess_safe_builtins[] array below, should we start marking sections so we can remember where stuff comes from later? > @@ -1335,6 +1338,8 @@ static const char *uaccess_safe_builtin[] = { > "rep_stos_alternative", > "rep_movs_alternative", > "__copy_user_nocache", > + "__copy_tofrom_user", > + "__arch_clear_user", > NULL > }; Do we want to rename the 'misc' sectino to 'x86' and start a 'ppc32' section there?