Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2142165pxb; Fri, 25 Mar 2022 11:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn6bgtOxFowK75YdRTCquvkIwZKrKh2sLmdZ1u/3WXqYJUXxSxx3UpOUMrJ/ZV9npdXrjK X-Received: by 2002:a17:902:ca94:b0:154:b606:dd83 with SMTP id v20-20020a170902ca9400b00154b606dd83mr12962068pld.167.1648234245216; Fri, 25 Mar 2022 11:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648234245; cv=none; d=google.com; s=arc-20160816; b=UNJzr1+nJyrawa3IMVdqYDR7E5KXZqf6yJPn3pkCXuygDRIrvS/nSTN57HkJ4HswmS Ko0TqMLJl/1WIxcIU4OneVtcK2AHLOQDAYHJ+inSe9J8hYh26Bu2yA+k6IsG1KDWbODQ 548KkqwFYHD/zkkjEGH+PpxLpYSpZXNq6/Pha/rxcxw9Vp/FKpLwOlN/uw4wPG74NSU6 J0uzzE8GeJEwJ2dfB/HZFNXvJBZfzeoaO4NpgKxGND/QmKuoRbxuCVyBaCb3j4VCdfJO rF1x2uIO+2IhLwyh0CMMfbySnAxzFuua9pTwMxwe91b+We35AjGMAvCgbvtiOsF6Be9G gz1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vmqW5VjD5xTeUvvuR6l4c1t69fmcpu3iF95OGvbAoOQ=; b=ealeKJ6JmuL9NOd2BJn3f8jyKj+GyQG25CP7c8fQ72+dW02iRmxHi5a/HjPGKNZzy3 1sbWIeAvjX9PNdUyJ7WA2kTZcX2s+si5AKHXSxDtkHI21OvJtXYNsLGx+lDa27chK/Tp yrWkV2NJ6RXhyNR0eKX4lWYzY6HCIPXMAxT0z6FwUm6+x8KpJCM64oWhyKOEmu/Yh4mn oHki3/RVuMACNQFZvcCrtA9jr/Uu953mTUw7BqlHxQVhw6ToYQsuagI60/u8hm3QlezP 7hcqXIrL1ZHz3ADgL0cF055sJMGgvM4U+zy7NSgOWfvrfXZTu+Rnl/iXa2DIsrs30x2C GzYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="AE/0lKbx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i16-20020aa78b50000000b004fabb7eb4d0si3230768pfd.295.2022.03.25.11.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:50:45 -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=@kernel.org header.s=k20201202 header.b="AE/0lKbx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 041A11A8FE0; Fri, 25 Mar 2022 11:01:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353582AbiCYPrz (ORCPT + 99 others); Fri, 25 Mar 2022 11:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376763AbiCYPrk (ORCPT ); Fri, 25 Mar 2022 11:47:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3212D3D1CC for ; Fri, 25 Mar 2022 08:46:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C2BA7616CD for ; Fri, 25 Mar 2022 15:46:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5D7BC340E9; Fri, 25 Mar 2022 15:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648223161; bh=mPuYiGeXboo/JzYYaY6gaHdDwS1ZbhGYz7ajLqD1pqI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AE/0lKbxZ6Wfu6t+Divs1AlYxXxA0XQChUxEWLkegJw/AdsZRmW01WV+DcpS9bIZT o8C9HukYcZZjDVOyKbCNrmp12z9q88yRzcQw3kqbj9/m08MukKHBjGdVNThrJ0S8Nr ZdbeEdvuRaLJyLvkLUL2Lvz8Im0m9vUpezQSkS0j/w3rkB5J3zIasGy2RAayEabBCy NWfQOjdtKNic6y/IrEx+8xhpS+O2RqBxkxTHLJc9qcqoeMZikHdmhYrX7LBYsNOpRz s7S7cIfcKvATx7uj7WcwMA95uRt4/xRmgckP67ZXZSqqpaHbtQxetFt1HGjuXsRb3C aztQyMn9oaxmw== Message-ID: <9e1a95ef-69ad-1f6c-e1f3-dcff3ed65e79@kernel.org> Date: Fri, 25 Mar 2022 08:45:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/4] x86-32: Clean up GS segment handling Content-Language: en-US To: Brian Gerst , linux-kernel@vger.kernel.org, x86@kernel.org Cc: Borislav Petkov , Thomas Gleixner , "H . Peter Anvin" , Peter Zijlstra References: <20220325153953.162643-1-brgerst@gmail.com> From: Andy Lutomirski In-Reply-To: <20220325153953.162643-1-brgerst@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 3/25/22 08:39, Brian Gerst wrote: > Since commit 3fb0fdb3bbe ("Make the canary into a regular percpu > variable"), the GS segment is no longer switched on kernel entry for > 32-bit kernels. Clean up the remaining code that handled lazy GS > switching. > Acked-by: Andy Lutomirski Thanks! > Brian Gerst (4): > x86-32: Simplify ELF_CORE_COPY_REGS > ELF: Remove elf_core_copy_kernel_regs() > x86-32: Remove lazy GS macros > x86: Merge load_gs_index() > > arch/powerpc/kernel/fadump.c | 2 +- > arch/powerpc/platforms/powernv/opal-core.c | 2 +- > arch/x86/include/asm/elf.h | 15 ++------------- > arch/x86/include/asm/mmu_context.h | 2 +- > arch/x86/include/asm/segment.h | 12 ------------ > arch/x86/include/asm/special_insns.h | 7 ++++--- > arch/x86/kernel/process.c | 5 +---- > arch/x86/kernel/process_32.c | 11 ++++------- > arch/x86/kernel/ptrace.c | 6 +++--- > arch/x86/kernel/signal.c | 8 +++++--- > arch/x86/kernel/vm86_32.c | 4 ++-- > arch/x86/lib/insn-eval.c | 5 +++-- > arch/x86/math-emu/get_address.c | 2 +- > include/linux/elfcore.h | 9 --------- > kernel/kexec_core.c | 2 +- > 15 files changed, 29 insertions(+), 63 deletions(-) >