Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2994515rwb; Fri, 20 Jan 2023 09:48:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXuBgmq4on8OuPZugwkwodk12EIm7RXeu+epX++8LHSp3krBrlCeAmN+kikSqT89MpnNP/I9 X-Received: by 2002:a17:90a:8a82:b0:226:ecec:9e6a with SMTP id x2-20020a17090a8a8200b00226ecec9e6amr15866072pjn.21.1674236921353; Fri, 20 Jan 2023 09:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674236921; cv=none; d=google.com; s=arc-20160816; b=tlAUs6rATkYY43FyYq8r+6+GiGAWyPgqVvKTwsiQHHRD7F20+Kiq+xEKkmw1YTYPrY yDYPV/utuL/CQMmz6fq2FZV3pMa895aYSIDrok8ZbsOPC7+85OYclfMgSkSSc6VxlsGF sEt1/NoQI4sx/Ez87V5QKfCr8wd1++seAHyi/rrowgGY9qQOvlwpAxvAgXiFd1auPC4i ccdLWo2XCWcyJH3lQGcHD4ezNTJOHiqJhLrq+mjutactnHTo0KubEyk6H/2yD8b93EoN SPF3Xz1OGQx4Rrr4n3Rkz68Gqc7QiTHaPmA3kDKM5tYivi4H9cA4ady7rQmGL/fV0mXz B7Ng== 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=5po2y4T/WB/mf6OhPM76DXTvY8yZFN4zjHCt8VgpEmw=; b=R5WvsUpd3nzxTw/vJef/nY7DPUN/8970jF6DYMzWf/HRHTr7sJ097widLJjV7rvxPt dfIUKKQ9KjqyB8JU874KLgxuy1LzbiamK2B96jyH+kqcMS0OHH6rrXAPw+07ZDjvauJF Vf52H+p3lQUmraMquTFMh/rPgxixFJoj0UC5eHz4gQfPtBVopXCY6CUMRF6fNU25EpqO nKlWE0dINQzCAgHCBoVqjuWCSEqYyhlBZ5NEoyLMPVXI6348qkO0hSYNOyZcT3QceYqd 2k4Jr6eqi3ezsOTCa5c/w/ZRPNB4Kz7wFkU2OMHg5RjL4aNdNlWko4I3OeOtEl7qUx9s nOFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=syEBgnBt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d32-20020a17090a6f2300b002291890533esi2965255pjk.114.2023.01.20.09.48.35; Fri, 20 Jan 2023 09:48:41 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=syEBgnBt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbjATR23 (ORCPT + 50 others); Fri, 20 Jan 2023 12:28:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjATR22 (ORCPT ); Fri, 20 Jan 2023 12:28:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3FF8A0FE; Fri, 20 Jan 2023 09:28:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5DFB2B82956; Fri, 20 Jan 2023 17:28:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB549C433D2; Fri, 20 Jan 2023 17:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674235705; bh=KAwE/FbwltwelgI8ONmnO6hv7GIwu9KbDHQvOnKG9yg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=syEBgnBtc8TijH398EU1BxYRtoKotdwdRfc1YGS0xJlWNFcb6WlLSE+FBVcQjp99t nMaeYglkBsAlu7umSsNEIJlyTyenBCbICIKh6HoykH4McvlT0KMes3oXX+51I7Ba/E 3U2B9+vDjcB4Xm+NPmVy13ZthwLAyS3N4C4vhuGAjbUphQigg2MRmnxl3PowFcDbTj CMU8a9tTCb9HSJFPHB8TsJKamPTjB5bP4h0JjmGOyXoqStdHUFfgPZye0SV/wzIb3M HKf/b4yjIa0ARBJ3LqHB7eN3oW/yN7DTiv8MGI2Z9Vzw1W5G9TxWVNSDagPFBpHNJZ qgmf6y/CaZdBQ== Date: Fri, 20 Jan 2023 09:28:22 -0800 From: Josh Poimboeuf To: Song Liu Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, live-patching@vger.kernel.org, x86@kernel.org, jikos@kernel.org, pmladek@suse.com, joe.lawrence@redhat.com, Miroslav Benes , Josh Poimboeuf Subject: Re: [PATCH v9] livepatch: Clear relocation targets on a module removal Message-ID: <20230120172822.43lreggioj7hozke@treble> References: <20230118204728.1876249-1-song@kernel.org> <20230118220812.dvztwhlmliypefha@treble> <20230120064215.cdyfbjlas5noxam6@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Fri, Jan 20, 2023 at 09:03:55AM -0800, Song Liu wrote: > > > > Shouldn't there also be a fix for this powerpc issue? > > > > > > There was a working version, but it was not very clean. We couldn't agree > > > on the path forward for powerpc, so we are hoping to ship the fix to x86 (and > > > s390?) first [1]. > > > > Sorry for coming in late, I was on leave so I missed a lot of the > > discussions on previous versions. The decision to leave powerpc broken > > wasn't clear from reading the commit message. The bug is mentioned, and > > the fix is implied, but surprisingly there's no fix. > > > > I agree that the powerpc fix should be in a separate patch, but I still > > don't feel comfortable merging the x86 fix without the corresponding > > powerpc fix. > > > > powerpc is a major arch and not a second-class citizen. If we don't fix > > it now then it'll probably never get fixed until it blows up in the real > > world. > > > > For powerpc, instead of clearing, how about just "fixing" the warning > > site, something like so (untested)? > > This version looks reasonable to me. Ok, I'll run it through testing and work up a proper patch. I just noticed the one I posted has a major bug thanks to restore_r2()'s surprising return semantics. -- Josh