Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp496978imw; Wed, 13 Jul 2022 02:31:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4dWwflnsCdk19HvgR66cKLsH2l78M7s+cgounjXvl5GN37awtCMX6Jqy7AX1AKakUD50v X-Received: by 2002:a63:90c9:0:b0:413:9877:d8aa with SMTP id a192-20020a6390c9000000b004139877d8aamr2294071pge.298.1657704679035; Wed, 13 Jul 2022 02:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657704679; cv=none; d=google.com; s=arc-20160816; b=eXv3e44YSlucWYRU10JXQprPC2msqw5Qg3XgwiJMiyvWEbJkYnatZrZOl5Ke2+b+TN 6W8aUNuPDgp+XorG6JR3tC081hNAYJILpGFaWRnBK82TcepYWZp8tUh5Z9fXTDWa0dVd tPxHWKCwU4cMddQDfL9g9VZi0BBxRtf1+7ACxhmRZf7FU8XmjzcMsK6VvTMcneMq6zbf Lg0E37RKK+lgMG2ROz9AsrrHK6f7tg5VXklHC3AcICKWU8y93a+uO5IhBflVVfkre9IC hxq9QnIGZBW4wc9jxmWp5NmfcKH2TPVKAoUpeendDwSDI0gX6M+qnBs6EsSOxy8k3dAk TLmg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=y/rRcSr0LdG+YdTaRLjdffwvOM+zTDAbKuKoY3nQK3A=; b=B1Y3pgR9cNu3w+PYGDtFClay1r1Vs/DhNYGb4+hqZco79jxmAZy/9c44kqUM47iqEJ I4twsD9ZickQuL9lQauZIR7+H/1MR3eTQdsI3lG6IYgknLqoWsjBlrKe8utj2+1Udy2Y 3jAYr76Kce6ItjiDH4nYRhpmwULqXY3JYQJwJ16Jjs+ne1PqFICigATyXalsrRK8Tl4c wpaRIHsSs8n3RKJiJABhM1SyE9jZMtlBS0p/WTObKls0VCfR6stGO6/ICzK0mX+fawwn TvuuIt0fj2t6hh7mdrVTCp5mBiEkuhTjdKuBwkIc+IOEDZnkdnOHjPQRLlqCUC6AfS93 x8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1sANN5Op; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a17090332c900b0016c37fd2ed7si18393848plr.511.2022.07.13.02.31.06; Wed, 13 Jul 2022 02:31:19 -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=@suse.de header.s=susede2_rsa header.b=1sANN5Op; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232153AbiGMJWW (ORCPT + 99 others); Wed, 13 Jul 2022 05:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbiGMJWU (ORCPT ); Wed, 13 Jul 2022 05:22:20 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F260EA173; Wed, 13 Jul 2022 02:22:19 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 76BD222C86; Wed, 13 Jul 2022 09:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1657704136; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y/rRcSr0LdG+YdTaRLjdffwvOM+zTDAbKuKoY3nQK3A=; b=1sANN5OpLm5MMnf374XyYrYZkh2mg+WBG85fPf32+xJqHveYC/lrQb2XlWL4lYhgrCluvB 7ZW+UOkLwht5QJwa6tBruwYDi6wkQncJF8+vx1/AiLp2KOH3vxqWoEnV2XneqEpobmOWhq 5BF6p9J4cb6kIgmQbyr428kax4pj2tA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1657704136; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y/rRcSr0LdG+YdTaRLjdffwvOM+zTDAbKuKoY3nQK3A=; b=Tiy9DwvhN5REdyRK1HjEBeDy6y4udrn8bY5EgBup7/E+aij6tZXTPAKpb2iEfDkigUkYAE QmMzDbyalDNH6nCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 67C9413754; Wed, 13 Jul 2022 09:22:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id l5s5GciOzmJIUQAAMHmgww (envelope-from ); Wed, 13 Jul 2022 09:22:16 +0000 Date: Wed, 13 Jul 2022 11:21:30 +0200 From: Borislav Petkov To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Josh Poimboeuf , Thadeu Lima de Souza Cascardo Subject: Re: [PATCH 5.18 34/61] objtool: Update Retpoline validation Message-ID: References: <20220712183236.931648980@linuxfoundation.org> <20220712183238.342232911@linuxfoundation.org> <63e23f80-033f-f64e-7522-2816debbc367@kernel.org> <509dd891-73cc-31b9-18ac-2e930084c02f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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_PASS,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 Wed, Jul 13, 2022 at 10:17:54AM +0200, Greg Kroah-Hartman wrote: > > A naive fix is: > > --- a/arch/x86/kernel/head_32.S > > +++ b/arch/x86/kernel/head_32.S > > @@ -23,6 +23,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include Yap, pls send a proper patch. > I doubt it should be doing that, but I'll let others answer more > definitively. I'd leave that question to the objtool folks. Technically, the UNTRAIN_RET sequence is meant for both 32- and 64-bit so there should be no reason not to mitigate that on 32-bit too. Not that people should run 32-bit kernels... > Your commit seems sane, for some reason I thought Boris tested i386 > builds, but maybe in the end something snuck in that broke it. I caught one build breakage in relocate_kernel_32.S but this is a new one. Thx. -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)