Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2386982ioo; Sat, 28 May 2022 12:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHYziN+vfyJdgY6JdjpWu+zEiAJcivJUDDdj0mCvr1c3BoY4s3sx3/L8xk0VBmpp4BZpAP X-Received: by 2002:a17:90a:2d89:b0:1e2:716a:65a6 with SMTP id p9-20020a17090a2d8900b001e2716a65a6mr11397100pjd.37.1653764600421; Sat, 28 May 2022 12:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653764600; cv=none; d=google.com; s=arc-20160816; b=bofiz6ihzNhrQtvo6y+FrCvf28/viuIf9GUgc017ArmbDzyjQMtoOMLY24JP0YrQv1 CuL6aK/Z55HDAS3fqn8udoE+Q6QbmL1/UQJF4g98jm2i82N+P4NufxsxZ02pi/cdfNmx kt156izRM4295LPpB+aNOGVn25pkAxB97bEPQuaIC4ADCfhSvX6klwcQqmAO4rneQoFC paFwHdHMTabIcs2x1rcfw0sdcEZm6cKOm8Dv5i0zbgSRs1F+8WEKwzT8X4u+e5rkeskO Wpb5YINzNh9khjoCIawiNmsTD9kxiAHLPJSwE/+UksuyIV3hMg71S6kwBLP9/bkmXaKf VDuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6omgAc60eG69JzGtQiTfcPgtFE9NaKuMPLnzcK+fPXs=; b=h/aUEFUiEUsMQotUeItuJJH8TumeSMJl0nboovjwBMANxGnflihe4wtzpIIYbo7KCk Od6Yp4MnniV6PjlhHiwJvvMHQQGi4bsB5esSi8N9mGwdTNc9c1rmL/7dR6GD9AXF3zst Gr1MOM3tMaCvk7Kru6siiXXJUOpn5ZgQGfmg9U4tfFUJt739FAqkjSsGuVfYaEsx0/kE KZLzWdM8LfF03lsKIAbSP+M/aZ80vyXfWvOhjhQtdS3CLSsz498ASkloucyZbyQ2eQIC 4JTbidwezeSokZagH3SOJ+KDVpU3HJ86e12bFMvfMkRly2adunkNECQ8ZIq3Qdx7UMjO YsQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Vkuk7I4Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bc21-20020a656d95000000b003c64af6e01dsi10824037pgb.123.2022.05.28.12.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Vkuk7I4Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 480BB3BFBD; Sat, 28 May 2022 11:44:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238753AbiEYT4m (ORCPT + 99 others); Wed, 25 May 2022 15:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346533AbiEYT4c (ORCPT ); Wed, 25 May 2022 15:56:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98DEE2CDD4 for ; Wed, 25 May 2022 12:56:31 -0700 (PDT) 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 538C4B81EA1 for ; Wed, 25 May 2022 19:56:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4CD6C34117; Wed, 25 May 2022 19:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1653508589; bh=X7C0hmbhpTB3GvF0P9XEj7WCHI8xPxoJdQtXCB0lpQE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Vkuk7I4YJwHwtgvQIjGGD67euU0yYsX+7dtU16FLwEvLwi8PlinTP7bamF/qsXX/R IemM4F1pZ/EVFJHycMBf5kl0RU9XRXgUsO0QL9o39JffkmNZtp/VWKGSmqu7oh8ZQC UU4QOnoINatpfxKdNgO8djo5bg0LXrduj8PpsVzg= Date: Wed, 25 May 2022 12:56:27 -0700 From: Andrew Morton To: "Eric W. Biederman" Cc: Baoquan He , "Naveen N. Rao" , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH] kexec_file: Drop weak attribute from arch_kexec_apply_relocations[_add] Message-Id: <20220525125627.acf27b28bb67417a6683a1d9@linux-foundation.org> In-Reply-To: <877d6g0zxq.fsf@email.froward.int.ebiederm.org> References: <20220518181828.645877-1-naveen.n.rao@linux.vnet.ibm.com> <87ee0q7b92.fsf@email.froward.int.ebiederm.org> <87bkvt4d56.fsf@email.froward.int.ebiederm.org> <20220520104641.GB194232@MiWiFi-R3L-srv> <877d6g0zxq.fsf@email.froward.int.ebiederm.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, 20 May 2022 14:25:05 -0500 "Eric W. Biederman" wrote: > > I am not strongly against taking off __weak, just wondering if there's > > chance to fix it in recordmcount, and the cost comparing with kernel fix; > > except of this issue, any other weakness of __weak. Noticed Andrew has > > picked this patch, as a witness of this moment, raise a tiny concern. > > I just don't see what else we can realistically do. I think converting all of the kexec __weaks to use the ifdef approach makes sense, if only because kexec is now using two different styles. But for now, I'll send Naveen's v2 patch in to Linus to get us out of trouble. I'm thinking that we should add cc:stable to that patch as well, to reduce the amount of problems which people experience when using newer binutils on older kernels?